content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def get_context_user(context): if 'user' in context: return context['user'] elif 'request' in context: return getattr(context['request'], 'user', None)
def get_context_user(context): if 'user' in context: return context['user'] elif 'request' in context: return getattr(context['request'], 'user', None)
APP_NAME = "PythonCef.Vue.Vuetify2 Template" APP_NAME_NO_SPACE = APP_NAME.replace(' ', '') APP_VERSION = '0.0.1' APP_DESCRIPTION = "Template using PythonCef, Flask, Vue, webpack"
app_name = 'PythonCef.Vue.Vuetify2 Template' app_name_no_space = APP_NAME.replace(' ', '') app_version = '0.0.1' app_description = 'Template using PythonCef, Flask, Vue, webpack'
def count_substring(string, sub_string): c = 0 for i in range(0, len(string)): ss = string[i:len(sub_string)+i] if sub_string == ss: c += 1 return c print(count_substring('ABCDCDC', 'CDC')) print(count_substring('I am an Indian, by birth', 'Birth')) print(count_substring('ThIsisCoNfUsInG', 'is'))
def count_substring(string, sub_string): c = 0 for i in range(0, len(string)): ss = string[i:len(sub_string) + i] if sub_string == ss: c += 1 return c print(count_substring('ABCDCDC', 'CDC')) print(count_substring('I am an Indian, by birth', 'Birth')) print(count_substring('ThIsisCoNfUsInG', 'is'))
class PortData(object): def __init__(self, from_port, to_port, protocol, destination): """ec2_session :param from_port: to_port-start port :type from_port: int :param to_port: from_port-end port :type to_port: int :param protocol: protocol-can be UDP or TCP :type protocol: str :param destination: Determines the traffic that can leave your instance, and where it can go. :type destination: str :return: """ self.from_port = from_port self.to_port = to_port self.protocol = protocol self.destination = destination
class Portdata(object): def __init__(self, from_port, to_port, protocol, destination): """ec2_session :param from_port: to_port-start port :type from_port: int :param to_port: from_port-end port :type to_port: int :param protocol: protocol-can be UDP or TCP :type protocol: str :param destination: Determines the traffic that can leave your instance, and where it can go. :type destination: str :return: """ self.from_port = from_port self.to_port = to_port self.protocol = protocol self.destination = destination
a=int(input("Input an integer :")) n1=int("%s"%a) n2=int("%s%s"%(a,a)) n3=int("%s%s%s"%(a,a,a)) print(n1+n2+n3)
a = int(input('Input an integer :')) n1 = int('%s' % a) n2 = int('%s%s' % (a, a)) n3 = int('%s%s%s' % (a, a, a)) print(n1 + n2 + n3)
class Solution: def hasPathSum(self, root, target): def check(curr_node, curr_val): calc_val = curr_val + curr_node.val if calc_val == target and curr_node.left is None and curr_node.right is None: return True elif curr_node.left is not None and check(curr_node.left, calc_val): return True elif curr_node.right is not None and check(curr_node.right, calc_val): return True else: return False if not root: return False return check(root, 0)
class Solution: def has_path_sum(self, root, target): def check(curr_node, curr_val): calc_val = curr_val + curr_node.val if calc_val == target and curr_node.left is None and (curr_node.right is None): return True elif curr_node.left is not None and check(curr_node.left, calc_val): return True elif curr_node.right is not None and check(curr_node.right, calc_val): return True else: return False if not root: return False return check(root, 0)
#Boolean is like telling Python to do something based on conditions: #if this is true, do this; else do something different. #conditional logic in Python is written using booleans (True and False), along with if statements. user = 'James Bond' if user == 'James Bond': print('Awesome!') elif user == 'Ethan Hunt': print('Cool!') else: print('Nope!') #Python also allows you to use words like 'or', 'and', and 'not' for comparison if 30 > 40 or 40 > 30: print("yeah!") if 1 == 1 and 2 == 2: print("hmmm!") if not False: print("not False is oviously True ") # inequalities can be represented together without using the 'and' keyword: if 30 < 40 and 40 < 50: print("this is ok") if 30 < 40 < 50: print("this is better!") print("""Python does not require parenthesis around conditions, but each condition must end with a :. If you forget the colon , you'll get a SyntaxError.""")
user = 'James Bond' if user == 'James Bond': print('Awesome!') elif user == 'Ethan Hunt': print('Cool!') else: print('Nope!') if 30 > 40 or 40 > 30: print('yeah!') if 1 == 1 and 2 == 2: print('hmmm!') if not False: print('not False is oviously True ') if 30 < 40 and 40 < 50: print('this is ok') if 30 < 40 < 50: print('this is better!') print("Python does not require parenthesis around conditions,\n but each condition must end with a :.\nIf you forget the colon , you'll get a SyntaxError.")
##Patterns: W0109 ##Warn: W0109 cities = { 'CA': 'San Francisco', 'MI': 'Detroit', 'FL': 'Jacksonville', 'MI': 'Detroit' }
cities = {'CA': 'San Francisco', 'MI': 'Detroit', 'FL': 'Jacksonville', 'MI': 'Detroit'}
""" Reminders depending on the day of the week """ monday_msg = ["I hope you planned this week on Friday evening itself. If not, please do it now. Send out all the calendar events that you need to for this week. Accept (or reject) the calendar invites you received. Know at least two of your top priorities.", "Did you plan your week out in Friday? If not, now is the time. Planning your week in advance will help you say NO and help you from having to constantly firefight.", "How does your work week look? If you have not, list your action items and approximately when you think they will be tackled. Just doing this regularly will help you manage your time better.", "Please make an effort to manage your time well. Plan your week, be punctual, finish meetings on time and use the calendar well. These are important habits to cultivate a respectful environment.", "Make it a goal to avoid scheduling same-day-meetings. Those should be reserved for real emergencies. At the start of the week, make sure your have already scheduled all that you know is going to happen on your calendar.", "Did the previous week play out close to how you planned it? React with either a thumbs up or thumbs down.", "Your poor planning should not become someone elses emergency. Please take a few minutes to plan your week and schedule all the events that you might need!", "Please pay attention to mailers from 1to1help even if their material is of no use to you right now. Do not wait until you need the help. Gradually accumulating byte sized tips will most likely prove crucial in the future to you and people you care about.", "As you plan your week, please factor in time to remain minimally healthy. Schedule frequent breaks to stand up, stretch and walk multiple times during the day. Make an effort to apply the tips sent by 1to1help.net", "Avoiding burnout is important for an early employee. Make sure to pace yourself well. Finish your alloted vacation days every year. Take frequent breaks during the day to stand up, stretch and walk. Recognize when you are getting bored or overwhelmed and speak up. Accept the fact that it is OK to fail when you genuinely try. Ask your 1:1 manager for more tips."] tuesday_msg = ["Your Friday demos can be of work you did at a client in the past too! If you feel something you did in the past is interesting, please share!", "You can request your colleagues to demo something you know they have done? Just make sure to give them at least a week of prior notice.", "Think of what you want to demo on the sprint call. Work towards it in terms of visual milestones. That way, at all points you will have a working demo. Even if you don't complete your task, you can demo <i>something at least!</i>", "Friday demos are an inexpensive way for you to share your work with you colleagues while . Please make it a point to try and demo whatever you are working on.", "Your Friday demo need not be polished. You can demo work in progress too! In fact, you can demo some of the systems you are working with if you think that knowledge is not common place within Qxf2.", "You can preview the kind of socio-technical problems that we will face if we grow bigger at: https://growing-pains.qxf2.com", "Once in a while, when you are bored, please try out the-bored-qa.qxf2.com and give me some feedback.", "Qxf2 will gladly buy you tickets to one conference every year. The conference has to be related to software (or the business of software) in some way. A typical conference ticket costs INR 15k to USD 1k. We will also pay you for two days which spend attending the conference. All you need to do is to pay for your travel and stay.", "Qxf2 has partnered with 1to1help.net for mental wellbeing. Please make sure you are applying the useful tips and suggestions they offer in their weekly mailers.", "Qxf2 will gladly buy you technical books. In return, you need to read the book and create a good summary for us.", "Qxf2 will buy you online courses for upto INR 5k a year. The courses have to be related to something you hope to apply at Qxf2 some day.", "There should be absolutely no 1:1 technical communication! Technical questions should be asked on the common channel. https://qxf2.com/blog/banning-11-technical-communication/", "You should not discuss politics of religion on common channels. You are welcome to talk about them in 1:1 channels.", "For technical communication, please do not use any medium other than the ones listed here https://docs.google.com/presentation/d/1mQO7Hs45XMbmX6v5pP0V2027bqtpuN888sW8G2aEziM/edit#slide=id.g6f50f09311_0_63. No using SMS, Whatsapp, etc.", "Passwords should never be put in version control. Please remember to add the file to .gitignore and add a sentence or two in the readme of your repo on how to get setup.", "You can look at tickets of closed Trello board by searching for <b>board:number</b> in the ticket search field. For example, to see what ticket we tackled in our very first sprint, search for <i>board:0001</i>", "Keep your inbox as close to zero as possible. It will reduce the chances of missing important information. Tips available here: https://trello.com/c/eZHBXygi/23-tuesday-1400-good-gmail-habits", "You are expected to work 8 (or 9) hours a day. If you are frequently working more than that, please improve your planning and expectation setting. If you do not know how, please talk with your 1:1 manager.", "We do not use the phrase *manual testing*. Use the words <b>testing</b> or <b>exploratory testing</b> instead. Ask me or your 1:1 manager if you do not understand why.", "We do not sell *automated testing* as a service. Our goal is to test the product in front of us. Automation is a tool that helps us test better in some specific scenarios.", "Exploratory testing is not unstructured or haphazard or test-as-you-like. Good exploratory testing has structured and should be recorded/documented. Please look up the terms session-based-testing and testing-charters you do not know how to conduct your exploratory testing sessions."] wednesday_msg = ["As you go about this week, be on the lookout for how you can help a colleague get better. The help does not have to be substantial or life-changing or even correct! Just your attempt to help someone who is stuck will make Qxf2 suck a little less.", "You should pay attention to the work of your colleagues, at least at a high level. Read through Trello and Jira once or twice a week even if you are working on a client. Be curious about what your colleagues do at clients even if you are on R&D.", "1:1 sessions with your manager are supposed to be driven by the direct report. Your 1:1 manager should NOT be talking about technical work unless you bring it up. You should not be going to the meeting to report status. Instead, the sessions are to help you with your career. You can ask them for help on anything except technical problems. For technical problems, please post on the group channel.", "In a small company, enforcing culture is everyones responsibility. Please speak up if you notice someone doing something wrong.", "Do you know the number one reason early employees lose touch with the company they helped build? It is because they think correcting bad habits of later employees is the responsibility of management <i>only</i>. Well, it is the responsibility of the early employee <i>also</i>.", "I am open to trying out ideas that I completely disagree with. Suggest your idea. While I may turn it down in the moment, I will be trying incorporate it somehow, somewhere in a safe to fail way.", "The habits we stress at Qxf2 should continue at a client too. You should not suddenly go back to your old way of working when you are on a client!", "Early employees should get into the habit of asking for more responsibility! A growing bootstrapped company can afford to create all sorts of weird roles and one off opportunities.", "Please let work suffer if it is not being done in a fair way. Do NOT make it a habit to over-compensate for the weak links in your team. Instead, let the delivery fail and let the company fix the deeper issues (e.g.: poor hiring).", "As an early employee, when dealing with new hires, please attribute good intentions. New folks want to do well at their job but may not yet have enough context within Qxf2 to do well.", "We work on early stage products with small engineering teams. That means decisions around staffing, tooling, process, speed and stability are different from what you are used to. Please make an effort to think through the ramifications of what these mean. If you are not sure, please discuss with your 1:1 manager and/or your other colleagues.", "Are you multi-tasking better? We had a group discussion around multi-tasking a while ago. Today is a good time to check and see if you are adopting at least some new habits from that discussion: https://trello.com/c/hqe431zn/25-growing-pain-how-do-we-multi-task-better"] thursday_msg = ["Make an effort to share what you learn. Almost all the material on the Internet that you use to unblock yourself was created by busy professionals like you. So, once in a while, take a pause from consuming all that good stuff and try to share your own learnings", "You are expected to share what you know on our blog. If you feel unqualified, remember that technical expertise is a spectrum. There is always someone who will find your perspective useful.", "You can share personal stuff that you are excited about on the etc,etc,etc channel. You are not disturbing anyone or being noisy or anything like that. The channel exists so you can share such stuff.", "We strongly recommend regular 1:1 communication for non-technical stuff. Please make sure you are taking time to treat your colleagues like humans with lives.", "We have the habit of peer-checkins. If you havent done them in a while, please try one next week. https://sites.google.com/qxf2.com/wiki/home/r-d/newbie-orientation/peer-checkin", "Everyone starts out loving remote work. Then, it gets depressing. We expect everyone that joins us to face this challenge. If you are finding it hard to feel motivated, please reach out to the folks who have been here for a while. They can help. Helpful link: https://qxf2.com/blog/experience-working-remote/", "Remote work is a challenge, not a perk. It takes a lot of discipline to make remote work click. Please reach out when you find it hard and we will give you tips.", "Back, neck, eye and wrist problems are very common among remote workers. Please make sure you have an ergonomic work setup. Maintain good posture. Take a 2-minute break at least every hour to make sure you are walking, standing, stretching, exercising your wrists, etc.", "If you have been at Qxf2 for a while and find your work monotonous, talk to your 1:1 manager. It is OK to have such conversations within Qxf2. As an experienced engineer, I know finding work boring or stifling or monotonous is normal for anyone in any field.", "It is completely natural to have non-productive days as you transition into a completely remote environment. The best tip I have is to not hide it. Just admit the failure openly. We will work with you and try to help you make adjustments.", "Your QElo score depends on what you fill out in the help survey and the R&D task completion dashboard. If you forget to self-report, your score suffers. So please make it a habit to fill out the survey and task completion dashboard. http://34.205.45.167/survey https://docs.google.com/spreadsheets/d/1YtdX75BoCwnzkGbR6G4hHvPS_m2HfWffYTI_WCH-IlU", "Keep daily notes of what went good/bad, the folks that you gave or recieved help from and the new tech you (learnt + applied). It will help on Friday when you fill out your retrospective and help survey. The accurate information, in turn, will help you get a better QElo score", "QElo is a <i>rating</i> system. Not a ranking system. In a ranking system, the top ranks get rewarded disproportionately. E.g: The Olympics. In a rating system, people are rewarded proportionately. E.g.: Star rating of restaurants on Zomato", "The best way to get a high QElo rating is to perform four actions with four attributes. Four actions: Execute, Learn, Share, Choose. Four attributes: Consistency, Adaptability, Curiousity driven, Generalized.", "Tasks you choose to work on should benefit your client, Qxf2 and you! Choosing such tasks is a skill to be developed just like anything else.", "QElo is designed to use lifetime scores. I did this so people can make longer term plays and do not have to worry about what they did only in the last quarter.", "QElo is a group measure. You can improve and still have your score go down and vice versa!", "Your QElo score is does not depend on manager input or how well you talk/present or the visibility of your projects. Instead, it measures how much your work contributes to our goals.", "QElo is designed to keep freedom and responsibility proportional. If you have made genuine contributions, you can afford to take breaks, explore newer things, etc.", "Your QElo score will be visible to all your colleagues. You can see the discussion around this here: https://sites.google.com/qxf2.com/wiki/home/hr/pros-and-cons-of-an-open-qelo-rating", "One of the aims of QElo is to help engineers discover their own point of view.Once you have a unique way of looking at things, scoring well on QElo becomes natural.", "Qxf2 will change. As early employees, you might not like that but you have to accept it. It is not that different from how you, the individual, has changed as you grow up and deal with changes in your life."] friday_msg = ["Please fill out the help survey and retrospective card! Both habits are defenses to preserve the habit of remote work. http://34.205.45.167/survey", "Have you filled out the retrospective card? Have you filled out the survey? http://34.205.45.167/survey", "TGIF! Please remember to fill out the retrospective card and the survey! http://34.205.45.167/survey", "Survey reminder: https://docs.google.com/spreadsheets/d/1YtdX75BoCwnzkGbR6G4hHvPS_m2HfWffYTI_WCH-IlU"] messages = { 0: monday_msg, 1: tuesday_msg, 2: wednesday_msg, 3: thursday_msg, 4: friday_msg}
""" Reminders depending on the day of the week """ monday_msg = ['I hope you planned this week on Friday evening itself. If not, please do it now. Send out all the calendar events that you need to for this week. Accept (or reject) the calendar invites you received. Know at least two of your top priorities.', 'Did you plan your week out in Friday? If not, now is the time. Planning your week in advance will help you say NO and help you from having to constantly firefight.', 'How does your work week look? If you have not, list your action items and approximately when you think they will be tackled. Just doing this regularly will help you manage your time better.', 'Please make an effort to manage your time well. Plan your week, be punctual, finish meetings on time and use the calendar well. These are important habits to cultivate a respectful environment.', 'Make it a goal to avoid scheduling same-day-meetings. Those should be reserved for real emergencies. At the start of the week, make sure your have already scheduled all that you know is going to happen on your calendar.', 'Did the previous week play out close to how you planned it? React with either a thumbs up or thumbs down.', 'Your poor planning should not become someone elses emergency. Please take a few minutes to plan your week and schedule all the events that you might need!', 'Please pay attention to mailers from 1to1help even if their material is of no use to you right now. Do not wait until you need the help. Gradually accumulating byte sized tips will most likely prove crucial in the future to you and people you care about.', 'As you plan your week, please factor in time to remain minimally healthy. Schedule frequent breaks to stand up, stretch and walk multiple times during the day. Make an effort to apply the tips sent by 1to1help.net', 'Avoiding burnout is important for an early employee. Make sure to pace yourself well. Finish your alloted vacation days every year. Take frequent breaks during the day to stand up, stretch and walk. Recognize when you are getting bored or overwhelmed and speak up. Accept the fact that it is OK to fail when you genuinely try. Ask your 1:1 manager for more tips.'] tuesday_msg = ['Your Friday demos can be of work you did at a client in the past too! If you feel something you did in the past is interesting, please share!', 'You can request your colleagues to demo something you know they have done? Just make sure to give them at least a week of prior notice.', "Think of what you want to demo on the sprint call. Work towards it in terms of visual milestones. That way, at all points you will have a working demo. Even if you don't complete your task, you can demo <i>something at least!</i>", 'Friday demos are an inexpensive way for you to share your work with you colleagues while . Please make it a point to try and demo whatever you are working on.', 'Your Friday demo need not be polished. You can demo work in progress too! In fact, you can demo some of the systems you are working with if you think that knowledge is not common place within Qxf2.', 'You can preview the kind of socio-technical problems that we will face if we grow bigger at: https://growing-pains.qxf2.com', 'Once in a while, when you are bored, please try out the-bored-qa.qxf2.com and give me some feedback.', 'Qxf2 will gladly buy you tickets to one conference every year. The conference has to be related to software (or the business of software) in some way. A typical conference ticket costs INR 15k to USD 1k. We will also pay you for two days which spend attending the conference. All you need to do is to pay for your travel and stay.', 'Qxf2 has partnered with 1to1help.net for mental wellbeing. Please make sure you are applying the useful tips and suggestions they offer in their weekly mailers.', 'Qxf2 will gladly buy you technical books. In return, you need to read the book and create a good summary for us.', 'Qxf2 will buy you online courses for upto INR 5k a year. The courses have to be related to something you hope to apply at Qxf2 some day.', 'There should be absolutely no 1:1 technical communication! Technical questions should be asked on the common channel. https://qxf2.com/blog/banning-11-technical-communication/', 'You should not discuss politics of religion on common channels. You are welcome to talk about them in 1:1 channels.', 'For technical communication, please do not use any medium other than the ones listed here https://docs.google.com/presentation/d/1mQO7Hs45XMbmX6v5pP0V2027bqtpuN888sW8G2aEziM/edit#slide=id.g6f50f09311_0_63. No using SMS, Whatsapp, etc.', 'Passwords should never be put in version control. Please remember to add the file to .gitignore and add a sentence or two in the readme of your repo on how to get setup.', 'You can look at tickets of closed Trello board by searching for <b>board:number</b> in the ticket search field. For example, to see what ticket we tackled in our very first sprint, search for <i>board:0001</i>', 'Keep your inbox as close to zero as possible. It will reduce the chances of missing important information. Tips available here: https://trello.com/c/eZHBXygi/23-tuesday-1400-good-gmail-habits', 'You are expected to work 8 (or 9) hours a day. If you are frequently working more than that, please improve your planning and expectation setting. If you do not know how, please talk with your 1:1 manager.', 'We do not use the phrase *manual testing*. Use the words <b>testing</b> or <b>exploratory testing</b> instead. Ask me or your 1:1 manager if you do not understand why.', 'We do not sell *automated testing* as a service. Our goal is to test the product in front of us. Automation is a tool that helps us test better in some specific scenarios.', 'Exploratory testing is not unstructured or haphazard or test-as-you-like. Good exploratory testing has structured and should be recorded/documented. Please look up the terms session-based-testing and testing-charters you do not know how to conduct your exploratory testing sessions.'] wednesday_msg = ['As you go about this week, be on the lookout for how you can help a colleague get better. The help does not have to be substantial or life-changing or even correct! Just your attempt to help someone who is stuck will make Qxf2 suck a little less.', 'You should pay attention to the work of your colleagues, at least at a high level. Read through Trello and Jira once or twice a week even if you are working on a client. Be curious about what your colleagues do at clients even if you are on R&D.', '1:1 sessions with your manager are supposed to be driven by the direct report. Your 1:1 manager should NOT be talking about technical work unless you bring it up. You should not be going to the meeting to report status. Instead, the sessions are to help you with your career. You can ask them for help on anything except technical problems. For technical problems, please post on the group channel.', 'In a small company, enforcing culture is everyones responsibility. Please speak up if you notice someone doing something wrong.', 'Do you know the number one reason early employees lose touch with the company they helped build? It is because they think correcting bad habits of later employees is the responsibility of management <i>only</i>. Well, it is the responsibility of the early employee <i>also</i>.', 'I am open to trying out ideas that I completely disagree with. Suggest your idea. While I may turn it down in the moment, I will be trying incorporate it somehow, somewhere in a safe to fail way.', 'The habits we stress at Qxf2 should continue at a client too. You should not suddenly go back to your old way of working when you are on a client!', 'Early employees should get into the habit of asking for more responsibility! A growing bootstrapped company can afford to create all sorts of weird roles and one off opportunities.', 'Please let work suffer if it is not being done in a fair way. Do NOT make it a habit to over-compensate for the weak links in your team. Instead, let the delivery fail and let the company fix the deeper issues (e.g.: poor hiring).', 'As an early employee, when dealing with new hires, please attribute good intentions. New folks want to do well at their job but may not yet have enough context within Qxf2 to do well.', 'We work on early stage products with small engineering teams. That means decisions around staffing, tooling, process, speed and stability are different from what you are used to. Please make an effort to think through the ramifications of what these mean. If you are not sure, please discuss with your 1:1 manager and/or your other colleagues.', 'Are you multi-tasking better? We had a group discussion around multi-tasking a while ago. Today is a good time to check and see if you are adopting at least some new habits from that discussion: https://trello.com/c/hqe431zn/25-growing-pain-how-do-we-multi-task-better'] thursday_msg = ['Make an effort to share what you learn. Almost all the material on the Internet that you use to unblock yourself was created by busy professionals like you. So, once in a while, take a pause from consuming all that good stuff and try to share your own learnings', 'You are expected to share what you know on our blog. If you feel unqualified, remember that technical expertise is a spectrum. There is always someone who will find your perspective useful.', 'You can share personal stuff that you are excited about on the etc,etc,etc channel. You are not disturbing anyone or being noisy or anything like that. The channel exists so you can share such stuff.', 'We strongly recommend regular 1:1 communication for non-technical stuff. Please make sure you are taking time to treat your colleagues like humans with lives.', 'We have the habit of peer-checkins. If you havent done them in a while, please try one next week. https://sites.google.com/qxf2.com/wiki/home/r-d/newbie-orientation/peer-checkin', 'Everyone starts out loving remote work. Then, it gets depressing. We expect everyone that joins us to face this challenge. If you are finding it hard to feel motivated, please reach out to the folks who have been here for a while. They can help. Helpful link: https://qxf2.com/blog/experience-working-remote/', 'Remote work is a challenge, not a perk. It takes a lot of discipline to make remote work click. Please reach out when you find it hard and we will give you tips.', 'Back, neck, eye and wrist problems are very common among remote workers. Please make sure you have an ergonomic work setup. Maintain good posture. Take a 2-minute break at least every hour to make sure you are walking, standing, stretching, exercising your wrists, etc.', 'If you have been at Qxf2 for a while and find your work monotonous, talk to your 1:1 manager. It is OK to have such conversations within Qxf2. As an experienced engineer, I know finding work boring or stifling or monotonous is normal for anyone in any field.', 'It is completely natural to have non-productive days as you transition into a completely remote environment. The best tip I have is to not hide it. Just admit the failure openly. We will work with you and try to help you make adjustments.', 'Your QElo score depends on what you fill out in the help survey and the R&D task completion dashboard. If you forget to self-report, your score suffers. So please make it a habit to fill out the survey and task completion dashboard. http://34.205.45.167/survey https://docs.google.com/spreadsheets/d/1YtdX75BoCwnzkGbR6G4hHvPS_m2HfWffYTI_WCH-IlU', 'Keep daily notes of what went good/bad, the folks that you gave or recieved help from and the new tech you (learnt + applied). It will help on Friday when you fill out your retrospective and help survey. The accurate information, in turn, will help you get a better QElo score', 'QElo is a <i>rating</i> system. Not a ranking system. In a ranking system, the top ranks get rewarded disproportionately. E.g: The Olympics. In a rating system, people are rewarded proportionately. E.g.: Star rating of restaurants on Zomato', 'The best way to get a high QElo rating is to perform four actions with four attributes. Four actions: Execute, Learn, Share, Choose. Four attributes: Consistency, Adaptability, Curiousity driven, Generalized.', 'Tasks you choose to work on should benefit your client, Qxf2 and you! Choosing such tasks is a skill to be developed just like anything else.', 'QElo is designed to use lifetime scores. I did this so people can make longer term plays and do not have to worry about what they did only in the last quarter.', 'QElo is a group measure. You can improve and still have your score go down and vice versa!', 'Your QElo score is does not depend on manager input or how well you talk/present or the visibility of your projects. Instead, it measures how much your work contributes to our goals.', 'QElo is designed to keep freedom and responsibility proportional. If you have made genuine contributions, you can afford to take breaks, explore newer things, etc.', 'Your QElo score will be visible to all your colleagues. You can see the discussion around this here: https://sites.google.com/qxf2.com/wiki/home/hr/pros-and-cons-of-an-open-qelo-rating', 'One of the aims of QElo is to help engineers discover their own point of view.Once you have a unique way of looking at things, scoring well on QElo becomes natural.', 'Qxf2 will change. As early employees, you might not like that but you have to accept it. It is not that different from how you, the individual, has changed as you grow up and deal with changes in your life.'] friday_msg = ['Please fill out the help survey and retrospective card! Both habits are defenses to preserve the habit of remote work. http://34.205.45.167/survey', 'Have you filled out the retrospective card? Have you filled out the survey? http://34.205.45.167/survey', 'TGIF! Please remember to fill out the retrospective card and the survey! http://34.205.45.167/survey', 'Survey reminder: https://docs.google.com/spreadsheets/d/1YtdX75BoCwnzkGbR6G4hHvPS_m2HfWffYTI_WCH-IlU'] messages = {0: monday_msg, 1: tuesday_msg, 2: wednesday_msg, 3: thursday_msg, 4: friday_msg}
""" Write a Python program to swap cases of a given string. Sample Output: pYTHON eXERCISES jAVA nUMpy """ def swap_case_string(str1): result_str = "" for item in str1: if item.isupper(): result_str += item.lower() else: result_str += item.upper() return result_str print(swap_case_string("Python Exercises")) print(swap_case_string("Java")) print(swap_case_string("NumPy"))
""" Write a Python program to swap cases of a given string. Sample Output: pYTHON eXERCISES jAVA nUMpy """ def swap_case_string(str1): result_str = '' for item in str1: if item.isupper(): result_str += item.lower() else: result_str += item.upper() return result_str print(swap_case_string('Python Exercises')) print(swap_case_string('Java')) print(swap_case_string('NumPy'))
matriz = ([0,0,0], [0,0,0], [0,0,0]) par = terceira = maior = 0 for l in range(0,3): for c in range(0,3): matriz[l][c] = int(input(f'Type a value for [{l}, {c}]: ')) if matriz[l][c] % 2 == 0: par += matriz[l][c] print('=-'*15) for l in range (0,3): for c in range(0,3): print(f'[{matriz[l][c]:^5}]', end='') print() print('=-'*15) print(f'Sum of even values: {par}') for l in range(0,3): terceira += matriz[l][2] print(f'Sum from values of third column: {terceira}') for c in range(0,3): if c == 0: maior = matriz[1][c] elif matriz[1][c] > maior: maior = matriz[1][c] print(f'Bigger value of second line: {maior}')
matriz = ([0, 0, 0], [0, 0, 0], [0, 0, 0]) par = terceira = maior = 0 for l in range(0, 3): for c in range(0, 3): matriz[l][c] = int(input(f'Type a value for [{l}, {c}]: ')) if matriz[l][c] % 2 == 0: par += matriz[l][c] print('=-' * 15) for l in range(0, 3): for c in range(0, 3): print(f'[{matriz[l][c]:^5}]', end='') print() print('=-' * 15) print(f'Sum of even values: {par}') for l in range(0, 3): terceira += matriz[l][2] print(f'Sum from values of third column: {terceira}') for c in range(0, 3): if c == 0: maior = matriz[1][c] elif matriz[1][c] > maior: maior = matriz[1][c] print(f'Bigger value of second line: {maior}')
class Constant: __excludes__ = [] class ConstantError(Exception): pass def __setattr__(self, name, value): exclude = name in Constant.__excludes__ if self.__dict__.get(name, None) and not exclude: raise Constant.ConstantError("Property %s is not mutable" % name) self.__dict__[name] = value class Config(Constant): def __init__(self): Constant.__excludes__.append('sslVerification') Constant.__excludes__.append('connectionTimeout') Constant.__excludes__.append('url') Constant.__excludes__.append('useBalancing') Constant.__excludes__.append('rpcDebug') self.version = "1" self.url = "https://wallet.mile.global" self.appSchema = "mile-core:" self.sslVerification = True self.connectionTimeout = 30 self.useBalancing = True self.rpcDebug = False self.web = self.Web(self) class Web(Constant): def __init__(self, config): self.path = "shared" self.url = "https://wallet.mile.global" self.config = config self.wallet = self.Wallet(self) self.payment = self.Payment(self) def nodes_urls(self): return self.url + "/v" + self.config.version + "/nodes.json" def base_url(self): return self.url + "/v" + self.config.version class Wallet(Constant): def __init__(self, web): self.web = web self.public_key = "/" + self.web.path + "/wallet/key/public/" self.private_key = "/" + self.web.path + "/wallet/key/private/" self.note = "/" + self.web.path + "/wallet/note/" self.name = "/" + self.web.path + "/wallet/note/name/" self.secret_phrase = "/" + self.web.path + "/wallet/secret/phrase/" self.amount = "/" + self.web.path + "/wallet/amount/" class Payment: def __init__(self, web): self.web = web self.public_key = "/" + self.web.path + "/payment/key/public/" self.amount = "/" + self.web.path + "/payment/amount/" config = Config()
class Constant: __excludes__ = [] class Constanterror(Exception): pass def __setattr__(self, name, value): exclude = name in Constant.__excludes__ if self.__dict__.get(name, None) and (not exclude): raise Constant.ConstantError('Property %s is not mutable' % name) self.__dict__[name] = value class Config(Constant): def __init__(self): Constant.__excludes__.append('sslVerification') Constant.__excludes__.append('connectionTimeout') Constant.__excludes__.append('url') Constant.__excludes__.append('useBalancing') Constant.__excludes__.append('rpcDebug') self.version = '1' self.url = 'https://wallet.mile.global' self.appSchema = 'mile-core:' self.sslVerification = True self.connectionTimeout = 30 self.useBalancing = True self.rpcDebug = False self.web = self.Web(self) class Web(Constant): def __init__(self, config): self.path = 'shared' self.url = 'https://wallet.mile.global' self.config = config self.wallet = self.Wallet(self) self.payment = self.Payment(self) def nodes_urls(self): return self.url + '/v' + self.config.version + '/nodes.json' def base_url(self): return self.url + '/v' + self.config.version class Wallet(Constant): def __init__(self, web): self.web = web self.public_key = '/' + self.web.path + '/wallet/key/public/' self.private_key = '/' + self.web.path + '/wallet/key/private/' self.note = '/' + self.web.path + '/wallet/note/' self.name = '/' + self.web.path + '/wallet/note/name/' self.secret_phrase = '/' + self.web.path + '/wallet/secret/phrase/' self.amount = '/' + self.web.path + '/wallet/amount/' class Payment: def __init__(self, web): self.web = web self.public_key = '/' + self.web.path + '/payment/key/public/' self.amount = '/' + self.web.path + '/payment/amount/' config = config()
even = int(input("total even number : ")) print(even, "first even number : ",end="") for i in range(2,even*2,2): print (i,end=", ") print(even*2)
even = int(input('total even number : ')) print(even, 'first even number : ', end='') for i in range(2, even * 2, 2): print(i, end=', ') print(even * 2)
class Alphabet: """ Bijective mapping from strings to integers. >>> a = Alphabet() >>> [a[x] for x in 'abcd'] [0, 1, 2, 3] >>> list(map(a.lookup, range(4))) ['a', 'b', 'c', 'd'] >>> a.stop_growth() >>> a['e'] >>> a.freeze() >>> a.add('z') Traceback (most recent call last): ... ValueError: Alphabet is frozen. Key "z" not found. >>> print(a.plaintext()) a b c d """ def __init__(self): self._mapping = {} # str -> int self._flip = {} # int -> str; timv: consider using array or list self._i = 0 self._frozen = False self._growing = True def __repr__(self): return 'Alphabet(size=%s,frozen=%s)' % (len(self), self._frozen) def freeze(self): self._frozen = True def stop_growth(self): self._growing = False @classmethod def from_iterable(cls, s): "Assumes keys are strings." inst = cls() for x in s: inst.add(x) # inst.freeze() return inst def keys(self): return self._mapping.iterkeys() def items(self): return self._mapping.iteritems() def imap(self, seq, emit_none=False): """ Apply alphabet to sequence while filtering. By default, `None` is not emitted, so the Note that the output sequence may have fewer items. """ if emit_none: for s in seq: yield self[s] else: for s in seq: x = self[s] if x is not None: yield x def map(self, seq, *args, **kwargs): return list(self.imap(seq, *args, **kwargs)) def add_many(self, x): for k in x: self.add(k) def lookup(self, i): if i is None: return None #assert isinstance(i, int) return self._flip[i] def lookup_many(self, x): return map(self.lookup, x) def __contains__(self, k): #assert isinstance(k, basestring) return k in self._mapping def __getitem__(self, k): try: return self._mapping[k] except KeyError: #if not isinstance(k, basestring): # raise ValueError("Invalid key (%s): only strings allowed." % (k,)) if self._frozen: raise ValueError('Alphabet is frozen. Key "%s" not found.' % (k,)) if not self._growing: return None x = self._mapping[k] = self._i self._i += 1 self._flip[x] = k return x add = __getitem__ def __setitem__(self, k, v): assert k not in self._mapping assert isinstance(v, int) self._mapping[k] = v self._flip[v] = k def __iter__(self): for i in range(len(self)): yield self._flip[i] def enum(self): for i in range(len(self)): yield (i, self._flip[i]) def tolist(self): "Ordered list of the alphabet's keys." return [self._flip[i] for i in range(len(self))] def __len__(self): return len(self._mapping) def plaintext(self): "assumes keys are strings" return '\n'.join(self) @classmethod def load(cls, filename): if not os.path.exists(filename): return cls() with open(filename) as f: return cls.from_iterable(l.strip() for l in f) def save(self, filename): with open(filename, 'w') as f: f.write(self.plaintext()) def __eq__(self, other): return self._mapping == other._mapping
class Alphabet: """ Bijective mapping from strings to integers. >>> a = Alphabet() >>> [a[x] for x in 'abcd'] [0, 1, 2, 3] >>> list(map(a.lookup, range(4))) ['a', 'b', 'c', 'd'] >>> a.stop_growth() >>> a['e'] >>> a.freeze() >>> a.add('z') Traceback (most recent call last): ... ValueError: Alphabet is frozen. Key "z" not found. >>> print(a.plaintext()) a b c d """ def __init__(self): self._mapping = {} self._flip = {} self._i = 0 self._frozen = False self._growing = True def __repr__(self): return 'Alphabet(size=%s,frozen=%s)' % (len(self), self._frozen) def freeze(self): self._frozen = True def stop_growth(self): self._growing = False @classmethod def from_iterable(cls, s): """Assumes keys are strings.""" inst = cls() for x in s: inst.add(x) return inst def keys(self): return self._mapping.iterkeys() def items(self): return self._mapping.iteritems() def imap(self, seq, emit_none=False): """ Apply alphabet to sequence while filtering. By default, `None` is not emitted, so the Note that the output sequence may have fewer items. """ if emit_none: for s in seq: yield self[s] else: for s in seq: x = self[s] if x is not None: yield x def map(self, seq, *args, **kwargs): return list(self.imap(seq, *args, **kwargs)) def add_many(self, x): for k in x: self.add(k) def lookup(self, i): if i is None: return None return self._flip[i] def lookup_many(self, x): return map(self.lookup, x) def __contains__(self, k): return k in self._mapping def __getitem__(self, k): try: return self._mapping[k] except KeyError: if self._frozen: raise value_error('Alphabet is frozen. Key "%s" not found.' % (k,)) if not self._growing: return None x = self._mapping[k] = self._i self._i += 1 self._flip[x] = k return x add = __getitem__ def __setitem__(self, k, v): assert k not in self._mapping assert isinstance(v, int) self._mapping[k] = v self._flip[v] = k def __iter__(self): for i in range(len(self)): yield self._flip[i] def enum(self): for i in range(len(self)): yield (i, self._flip[i]) def tolist(self): """Ordered list of the alphabet's keys.""" return [self._flip[i] for i in range(len(self))] def __len__(self): return len(self._mapping) def plaintext(self): """assumes keys are strings""" return '\n'.join(self) @classmethod def load(cls, filename): if not os.path.exists(filename): return cls() with open(filename) as f: return cls.from_iterable((l.strip() for l in f)) def save(self, filename): with open(filename, 'w') as f: f.write(self.plaintext()) def __eq__(self, other): return self._mapping == other._mapping
__all__ = ["mi_enb_decoder"] PACKET_TYPE = { "0xB0A3": "LTE_PDCP_DL_Cipher_Data_PDU", "0xB0B3": "LTE_PDCP_UL_Cipher_Data_PDU", "0xB173": "LTE_PHY_PDSCH_Stat_Indication", "0xB063": "LTE_MAC_DL_Transport_Block", "0xB064": "LTE_MAC_UL_Transport_Block", "0xB092": "LTE_RLC_UL_AM_All_PDU", "0xB082": "LTE_RLC_DL_AM_All_PDU", "0xB13C": "LTE_PHY_PUCCH_SR", } FUNCTION_NAME = { "0xB0A3": "handle_pdcp_dl", "0xB0B3": "handle_pdcp_ul", "0xB173": "handle_pdsch_stat", "0xB063": "handle_mac_dl", "0xB064": "handle_mac_ul", "0xB092": "handle_rlc_ul", "0xB082": "handle_rlc_dl", "0xB13C": "handle_pucch_sr", } class mi_enb_decoder: def __init__(self, packet): self.packet = str(packet,'utf-8') self.p_type_name = None self.p_type = None self.content = None def get_type_id(self): # print (type(self.packet)) try: l = self.packet.split(" ") # print (l) if (l[1] in PACKET_TYPE): self.p_type = l[1] self.p_type_name = PACKET_TYPE[l[1]] return self.p_type_name except: return None def get_content(self): if self.p_type is None: return -1 else: method_to_call = getattr(self, FUNCTION_NAME[self.p_type]) return method_to_call() def handle_pdsch_stat(self): # PDSCH format: [MI] ID FN SFN nRB try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Records'] = [] dict_tmp = {} dict_tmp['Frame Num'] = int(l[2]) dict_tmp['Subframe Num'] = int(l[3]) dict_tmp['Num RBs'] = int(l[4]) d['Records'].append(dict_tmp) self.content = d finally: return self.content def handle_pdcp_dl(self): # PDCP DL format: [MI] 0xB0A3 FN SFN SN Size try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Subpackets'] = [] dict_tmp = {} dict_tmp['Sys FN'] = int(l[2]) dict_tmp['Sub FN'] = int(l[3]) dict_tmp['SN'] = int(l[4]) dict_tmp['PDU Size'] = int(l[5]) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_pdcp_ul(self): # PDCP UL format: [MI] 0xB0B3 FN SFN SN Size RLC_Mode try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Subpackets'] = [] dict_tmp = {} dict_tmp['Sys FN'] = int(l[2]) dict_tmp['Sub FN'] = int(l[3]) dict_tmp['SN'] = int(l[4]) dict_tmp['PDU Size'] = int(l[5]) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_mac_ul(self): # MAC UL format: [MI] ID FN SFN Grant try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Subpackets'] = [] dict_tmp = {} dict_tmp['Samples'] = [] dict_tmp2 = {} dict_tmp2['SFN'] = int(l[2]) dict_tmp2['Sub FN'] = int(l[3]) dict_tmp2['Grant (bytes)'] = int(l[4]) dict_tmp['Samples'].append(dict_tmp2) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_rlc_ul(self): # Format: [MI] 0xB092 SFN [MI] 0xB092 TYPE(1=data) FN SFN BEARER SIZE HDR_SIZE DATA_SIZE if self.content is None: packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") if l[5] == "0": return None d = {} d['Subpackets'] = [] sub_dict = {} record_dict = {} record_dict['sys_fn'] = int(l[6]) record_dict['sub_fn'] = int(l[2]) record_dict['pdu_bytes'] = int(l[9]) sub_dict['RLCUL PDUs'] = [record_dict] d['Subpackets'].append(sub_dict) self.content = d return self.content def handle_rlc_dl(self): pass def handle_pucch_sr(self): if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(" ") d['Records'] = [] record_dict = {} record_dict['Frame Num'] = int(l[3]) record_dict['Subframe Num'] = int(l[5]) d['Records'].append(record_dict) self.content = d return self.content
__all__ = ['mi_enb_decoder'] packet_type = {'0xB0A3': 'LTE_PDCP_DL_Cipher_Data_PDU', '0xB0B3': 'LTE_PDCP_UL_Cipher_Data_PDU', '0xB173': 'LTE_PHY_PDSCH_Stat_Indication', '0xB063': 'LTE_MAC_DL_Transport_Block', '0xB064': 'LTE_MAC_UL_Transport_Block', '0xB092': 'LTE_RLC_UL_AM_All_PDU', '0xB082': 'LTE_RLC_DL_AM_All_PDU', '0xB13C': 'LTE_PHY_PUCCH_SR'} function_name = {'0xB0A3': 'handle_pdcp_dl', '0xB0B3': 'handle_pdcp_ul', '0xB173': 'handle_pdsch_stat', '0xB063': 'handle_mac_dl', '0xB064': 'handle_mac_ul', '0xB092': 'handle_rlc_ul', '0xB082': 'handle_rlc_dl', '0xB13C': 'handle_pucch_sr'} class Mi_Enb_Decoder: def __init__(self, packet): self.packet = str(packet, 'utf-8') self.p_type_name = None self.p_type = None self.content = None def get_type_id(self): try: l = self.packet.split(' ') if l[1] in PACKET_TYPE: self.p_type = l[1] self.p_type_name = PACKET_TYPE[l[1]] return self.p_type_name except: return None def get_content(self): if self.p_type is None: return -1 else: method_to_call = getattr(self, FUNCTION_NAME[self.p_type]) return method_to_call() def handle_pdsch_stat(self): try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(' ') d['Records'] = [] dict_tmp = {} dict_tmp['Frame Num'] = int(l[2]) dict_tmp['Subframe Num'] = int(l[3]) dict_tmp['Num RBs'] = int(l[4]) d['Records'].append(dict_tmp) self.content = d finally: return self.content def handle_pdcp_dl(self): try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(' ') d['Subpackets'] = [] dict_tmp = {} dict_tmp['Sys FN'] = int(l[2]) dict_tmp['Sub FN'] = int(l[3]) dict_tmp['SN'] = int(l[4]) dict_tmp['PDU Size'] = int(l[5]) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_pdcp_ul(self): try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(' ') d['Subpackets'] = [] dict_tmp = {} dict_tmp['Sys FN'] = int(l[2]) dict_tmp['Sub FN'] = int(l[3]) dict_tmp['SN'] = int(l[4]) dict_tmp['PDU Size'] = int(l[5]) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_mac_ul(self): try: if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(' ') d['Subpackets'] = [] dict_tmp = {} dict_tmp['Samples'] = [] dict_tmp2 = {} dict_tmp2['SFN'] = int(l[2]) dict_tmp2['Sub FN'] = int(l[3]) dict_tmp2['Grant (bytes)'] = int(l[4]) dict_tmp['Samples'].append(dict_tmp2) d['Subpackets'].append(dict_tmp) self.content = d finally: return self.content def handle_rlc_ul(self): if self.content is None: packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(' ') if l[5] == '0': return None d = {} d['Subpackets'] = [] sub_dict = {} record_dict = {} record_dict['sys_fn'] = int(l[6]) record_dict['sub_fn'] = int(l[2]) record_dict['pdu_bytes'] = int(l[9]) sub_dict['RLCUL PDUs'] = [record_dict] d['Subpackets'].append(sub_dict) self.content = d return self.content def handle_rlc_dl(self): pass def handle_pucch_sr(self): if self.content is None: d = {} packet = self.packet if packet[-1] == '\n': packet = packet[0:-1] l = packet.split(' ') d['Records'] = [] record_dict = {} record_dict['Frame Num'] = int(l[3]) record_dict['Subframe Num'] = int(l[5]) d['Records'].append(record_dict) self.content = d return self.content
# Python - 2.7.6 eval_object = lambda v: { '+': v['a'] + v['b'], '-': v['a'] - v['b'], '/': v['a'] / v['b'], '*': v['a'] * v['b'], '%': v['a'] % v['b'], '**': v['a'] ** v['b'] }.get(v['operation'], 0)
eval_object = lambda v: {'+': v['a'] + v['b'], '-': v['a'] - v['b'], '/': v['a'] / v['b'], '*': v['a'] * v['b'], '%': v['a'] % v['b'], '**': v['a'] ** v['b']}.get(v['operation'], 0)
frase = str(input('Digite uma frase: ')) m5 = ' '.join(frase.replace(' ', '')) print(m5.split())
frase = str(input('Digite uma frase: ')) m5 = ' '.join(frase.replace(' ', '')) print(m5.split())
# varia class Sleep: def NREM(self): print('NREM') def REM(self): print('REM') class Awake: def act(self): print('act')
class Sleep: def nrem(self): print('NREM') def rem(self): print('REM') class Awake: def act(self): print('act')
#Init records_storage = dict() line_break = "-----------------------------------------------\n" run_program = True # Define Functions def add_item(key, value): records_storage[key] = value def delete_item(key): try: del records_storage[key] except KeyError: print(f"Key '{key}' could not be found") except: print("Something else went wrong") def display_data(): print("Values: ", records_storage) print(line_break) # Run Process while run_program: action = str(input("What would you like to do? \n[A] - Add Data\n[B] - Delete Data\n[C] - End]\n")).lower() if(action == 'a'): print("\nAdd Data Selected") key = str(input("Enter Key: ")) value = str(input("Enter Value:")) add_item(key, value) display_data() elif(action == 'b'): print("\nDelete Data Selected") key = str(input("Enter Key: ")) delete_item(key) display_data() elif(action == 'c'): print("\nTHANK YOU") break; else: print(f"\nThe command '{action}' was not found. Please try again") print(line_break)
records_storage = dict() line_break = '-----------------------------------------------\n' run_program = True def add_item(key, value): records_storage[key] = value def delete_item(key): try: del records_storage[key] except KeyError: print(f"Key '{key}' could not be found") except: print('Something else went wrong') def display_data(): print('Values: ', records_storage) print(line_break) while run_program: action = str(input('What would you like to do? \n[A] - Add Data\n[B] - Delete Data\n[C] - End]\n')).lower() if action == 'a': print('\nAdd Data Selected') key = str(input('Enter Key: ')) value = str(input('Enter Value:')) add_item(key, value) display_data() elif action == 'b': print('\nDelete Data Selected') key = str(input('Enter Key: ')) delete_item(key) display_data() elif action == 'c': print('\nTHANK YOU') break else: print(f"\nThe command '{action}' was not found. Please try again") print(line_break)
def example1(): g = ig.load("data/out_1.graphml") # whichever file you would like dend = g.community_fastgreedy() #get the clustering object c = dend.as_clustering() result = metrics.run_analysis(c) print(c)
def example1(): g = ig.load('data/out_1.graphml') dend = g.community_fastgreedy() c = dend.as_clustering() result = metrics.run_analysis(c) print(c)
class Player(object): def __init__(self): self.name = None self.results = dict() self.rolls = [] self.scores = dict() # # set pins scores for a frame. # def set_result(self, frame, result): self.results[frame] = result def calculate_score(self): running_total = 0 for frame, result in self.results.items(): frame_score = 0 # this is brutal but works, needs to be simplified currentIndex = result['index'] if result['strike'] or result['spare']: if len(self.rolls) - 1 >= currentIndex + 2: frame_score = self.rolls[currentIndex] + self.rolls[currentIndex + 1] + self.rolls[currentIndex + 2] else: frame_score = self.rolls[currentIndex] + self.rolls[currentIndex + 1] if frame == 10 and len(self.rolls) - 1 >= currentIndex + 2: frame_score = frame_score + self.rolls[currentIndex + 2] running_total = running_total + frame_score self.scores[frame] = { "frame_score": frame_score, "running_total": running_total }
class Player(object): def __init__(self): self.name = None self.results = dict() self.rolls = [] self.scores = dict() def set_result(self, frame, result): self.results[frame] = result def calculate_score(self): running_total = 0 for (frame, result) in self.results.items(): frame_score = 0 current_index = result['index'] if result['strike'] or result['spare']: if len(self.rolls) - 1 >= currentIndex + 2: frame_score = self.rolls[currentIndex] + self.rolls[currentIndex + 1] + self.rolls[currentIndex + 2] else: frame_score = self.rolls[currentIndex] + self.rolls[currentIndex + 1] if frame == 10 and len(self.rolls) - 1 >= currentIndex + 2: frame_score = frame_score + self.rolls[currentIndex + 2] running_total = running_total + frame_score self.scores[frame] = {'frame_score': frame_score, 'running_total': running_total}
class PyttmanProjectInvalidException(BaseException): """ Exception class for internal use. Raise this exception in situations when a user project is incorrectly configured in whatever way. """ pass class TypeConversionFailed(BaseException): """ Exception class for internal use. Raise this exception when a type conversion fails. """ def __init__(self, from_type, to_type): message = f"Type '{from_type}' could not be converted to '{to_type}'." super().__init__(message)
class Pyttmanprojectinvalidexception(BaseException): """ Exception class for internal use. Raise this exception in situations when a user project is incorrectly configured in whatever way. """ pass class Typeconversionfailed(BaseException): """ Exception class for internal use. Raise this exception when a type conversion fails. """ def __init__(self, from_type, to_type): message = f"Type '{from_type}' could not be converted to '{to_type}'." super().__init__(message)
#--------------------------------- # BATCH DEFAULTS #--------------------------------- # The default options applied to each stage in the shell script. These options # are overwritten by the options provided by the individual stages in the next # section. # Stage options which Rubra will recognise are: # - distributed: a boolean determining whether the task should be submitted to # a cluster job scheduling system (True) or run on the system local to Rubra # (False). # - walltime: for a distributed PBS job, gives the walltime requested from the # job queue system; the maximum allowed runtime. For local jobs has no # effect. # - memInGB: for a distributed PBS job, gives the memory in gigabytes requested # from the job queue system. For local jobs has no effect. # - queue: for a distributed PBS job, this is the name of the queue to submit # the job to. For local jobs has no effect. # - modules: the modules to be loaded before running the task. This is intended # for systems with environment modules installed. Rubra will call module load # on each required module before running the task. Note that defining modules # for individual stages will override (not add to) any modules listed here. # This currently only works for distributed jobs. stageDefaults = { "distributed": True, "walltime": "01:00:00", "memInGB": 4, "queue": "main", "modules": [ "perl/5.18.0", "java/1.7.0_25", "samtools-intel/0.1.19", "python-gcc/2.7.5", "fastqc/0.10.1", "bowtie2-intel/2.1.0", "tophat-gcc/2.0.8", "cufflinks-gcc/2.1.1", "bwa-intel/0.7.5a", ], "manager": "slurm", } #--------------------------------- # PBS STAGES #--------------------------------- # The configuration options for individual stages. stages = { "makeIndexHtml": { "command": "python %html_index %name %samp %comp %results %output", "walltime": "10:00", }, "fastQC": { "command": "fastqc -o %outdir -f fastq %pair1 %pair2", "walltime": "30:00" }, "trimReads": { "command": "java -Xmx6g %tmp -jar %trimmomatic %paired -threads 1 " \ "-phred33 %log %parameters", "walltime": "10:00:00", "memInGB": 10, }, "fastQCSummary": { "command": "python %script %fastqc_dir %fastqc_post_trim_dir " \ "%qc_summary %fastqc_summary %paired > %summary_txt", "walltime": "10:00", }, "buildTranscriptomeIndex": { "command": "sh %buildIndex %seq %tmp_dir %index_dir %index %gene_ref " \ "%genome_ref", "walltime": "2:00:00", "queue": "smp" }, "tophatAlign": { "command": "sh %tophat %pair1 %pair2 %out_dir %gene_ref %genome_ref " \ "%known %rgsm %rglb %rgid %rgpl %link", "walltime": "10:00:00", "memInGB": 32, "queue": "smp" }, "sortBam": { "command": "samtools sort %bam %output", "walltime": "2:00:00" }, "indexBam": { "command": "samtools index %bam", "walltime": "1:00:00" }, "mergeTophat" : { "command": "sh %merge %fix_reads %samp_dir %output", "walltime": "1:00:00", "memInGB": 24 }, "reorderBam": { "command": "java -Xmx2g %tmp -jar %reorder_sam INPUT=%input " \ "OUTPUT=%output REFERENCE=%genome_ref", "walltime": "1:00:00" }, "addRG": { "command": "java -Xmx2g %tmp -jar %add_rg INPUT=%bam OUTPUT=%output " \ "RGSM=%rgsm RGLB=%rglb RGID=%rgid RGPL=%rgpl RGPU=%rgpu", "walltime": "1:00:00" }, "markDuplicates": { "command": "java -Xmx10g %tmp -jar %mark_dup INPUT=%input " \ "REMOVE_DUPLICATES=false VALIDATION_STRINGENCY=LENIENT " \ "AS=true METRICS_FILE=%log OUTPUT=%output", "walltime": "1:00:00", "memInGB": 12 }, "rnaSeQC": { "command": "java -Xmx10g %tmp -jar %rnaseqc %paired -n 1000 -s %samp " \ "-r %genome_ref -t %gene_ref %rrna_ref -o %outDir", "walltime": "1:00:00", "memInGB": 16 }, "cufflinksAssembly": { "command": "cufflinks -p 8 -o %outdir %in", "walltime": "2:00:00", "memInGB": 32, "queue": "smp" }, "cuffmerge": { "command": "cuffmerge -g %gene_ref -s %genome_ref -p 8 -o %outdir %in", "walltime": "2:00:00", "memInGB": 32, "queue": "smp" }, "cuffdiff": { "command": "cuffdiff %mask -o %outdir -p 8 -L %labels -u %merged_gtf " \ "%samples1 %samples2", "walltime": "8:00:00", "memInGB": 40, "queue": "smp" }, "sortBamByName": { "command": "samtools sort -n %bam_file %sorted_file", "walltime": "1:00:00", }, "alignmentStats": { "command": "sh %script %bam %unmapped %output %paired", "walltime": "1:00:00", }, "qcSummary": { "command": "python %qc_script %fastqc_dir %fastqc_post_dir " \ "%alignment_stats_dir %rnaqc_dir %qc_summary %paired", "walltime": "10:00", }, "countReads": { "command": "sh %htseq %bam %gene_ref %union %strict %stranded", "walltime": "5:00:00", }, "combineAndAnnotate": { "command": "R --no-save --args %samples %comparisons %plain_text " \ "%rdata %annotate < %combine > %stdout 2> %stderr", "walltime": "30:00", "modules": ["R-intel/2.15.3"], }, "voom": { "command": "R --no-save --args %rdata %outdir %voom < %script " \ "> %stdout 2> %stderr", "walltime": "30:00", "modules": ["R-intel/2.15.3"] }, "edgeR": { "command": "R --no-save --args %rdata %outdir %edgeR < %script " \ "> %stdout 2> %stderr", "walltime": "30:00", "modules": ["R-intel/2.15.3"] }, }
stage_defaults = {'distributed': True, 'walltime': '01:00:00', 'memInGB': 4, 'queue': 'main', 'modules': ['perl/5.18.0', 'java/1.7.0_25', 'samtools-intel/0.1.19', 'python-gcc/2.7.5', 'fastqc/0.10.1', 'bowtie2-intel/2.1.0', 'tophat-gcc/2.0.8', 'cufflinks-gcc/2.1.1', 'bwa-intel/0.7.5a'], 'manager': 'slurm'} stages = {'makeIndexHtml': {'command': 'python %html_index %name %samp %comp %results %output', 'walltime': '10:00'}, 'fastQC': {'command': 'fastqc -o %outdir -f fastq %pair1 %pair2', 'walltime': '30:00'}, 'trimReads': {'command': 'java -Xmx6g %tmp -jar %trimmomatic %paired -threads 1 -phred33 %log %parameters', 'walltime': '10:00:00', 'memInGB': 10}, 'fastQCSummary': {'command': 'python %script %fastqc_dir %fastqc_post_trim_dir %qc_summary %fastqc_summary %paired > %summary_txt', 'walltime': '10:00'}, 'buildTranscriptomeIndex': {'command': 'sh %buildIndex %seq %tmp_dir %index_dir %index %gene_ref %genome_ref', 'walltime': '2:00:00', 'queue': 'smp'}, 'tophatAlign': {'command': 'sh %tophat %pair1 %pair2 %out_dir %gene_ref %genome_ref %known %rgsm %rglb %rgid %rgpl %link', 'walltime': '10:00:00', 'memInGB': 32, 'queue': 'smp'}, 'sortBam': {'command': 'samtools sort %bam %output', 'walltime': '2:00:00'}, 'indexBam': {'command': 'samtools index %bam', 'walltime': '1:00:00'}, 'mergeTophat': {'command': 'sh %merge %fix_reads %samp_dir %output', 'walltime': '1:00:00', 'memInGB': 24}, 'reorderBam': {'command': 'java -Xmx2g %tmp -jar %reorder_sam INPUT=%input OUTPUT=%output REFERENCE=%genome_ref', 'walltime': '1:00:00'}, 'addRG': {'command': 'java -Xmx2g %tmp -jar %add_rg INPUT=%bam OUTPUT=%output RGSM=%rgsm RGLB=%rglb RGID=%rgid RGPL=%rgpl RGPU=%rgpu', 'walltime': '1:00:00'}, 'markDuplicates': {'command': 'java -Xmx10g %tmp -jar %mark_dup INPUT=%input REMOVE_DUPLICATES=false VALIDATION_STRINGENCY=LENIENT AS=true METRICS_FILE=%log OUTPUT=%output', 'walltime': '1:00:00', 'memInGB': 12}, 'rnaSeQC': {'command': 'java -Xmx10g %tmp -jar %rnaseqc %paired -n 1000 -s %samp -r %genome_ref -t %gene_ref %rrna_ref -o %outDir', 'walltime': '1:00:00', 'memInGB': 16}, 'cufflinksAssembly': {'command': 'cufflinks -p 8 -o %outdir %in', 'walltime': '2:00:00', 'memInGB': 32, 'queue': 'smp'}, 'cuffmerge': {'command': 'cuffmerge -g %gene_ref -s %genome_ref -p 8 -o %outdir %in', 'walltime': '2:00:00', 'memInGB': 32, 'queue': 'smp'}, 'cuffdiff': {'command': 'cuffdiff %mask -o %outdir -p 8 -L %labels -u %merged_gtf %samples1 %samples2', 'walltime': '8:00:00', 'memInGB': 40, 'queue': 'smp'}, 'sortBamByName': {'command': 'samtools sort -n %bam_file %sorted_file', 'walltime': '1:00:00'}, 'alignmentStats': {'command': 'sh %script %bam %unmapped %output %paired', 'walltime': '1:00:00'}, 'qcSummary': {'command': 'python %qc_script %fastqc_dir %fastqc_post_dir %alignment_stats_dir %rnaqc_dir %qc_summary %paired', 'walltime': '10:00'}, 'countReads': {'command': 'sh %htseq %bam %gene_ref %union %strict %stranded', 'walltime': '5:00:00'}, 'combineAndAnnotate': {'command': 'R --no-save --args %samples %comparisons %plain_text %rdata %annotate < %combine > %stdout 2> %stderr', 'walltime': '30:00', 'modules': ['R-intel/2.15.3']}, 'voom': {'command': 'R --no-save --args %rdata %outdir %voom < %script > %stdout 2> %stderr', 'walltime': '30:00', 'modules': ['R-intel/2.15.3']}, 'edgeR': {'command': 'R --no-save --args %rdata %outdir %edgeR < %script > %stdout 2> %stderr', 'walltime': '30:00', 'modules': ['R-intel/2.15.3']}}
class Diamond: START_LETTER = 'A' ENTER = '\n' SPACE = ' ' BLANK = '' def __init__(self, upTo): self.upTo = upTo def show(self): top = self.BLANK bottom = self.BLANK for c in range(ord(self.START_LETTER), ord(self.upTo)+1): line = self.buildLine(chr(c)) top += line bottom = self.bottomLine(chr(c), line, bottom) return top + bottom def bottomLine(self, c, line, bottom): return line + bottom if(c != self.upTo) else bottom def buildLine(self, c): return self.indent(c) + \ self.letter(c) + \ self.innerSpace(c) + \ self.secondLetter(c) + \ self.ENTER def letter(self, c): return c def secondLetter(self, c): return c if c != self.START_LETTER else '' def indent(self, c): count = ord(self.upTo) - ord(c) return self.makeSpace(count) def innerSpace(self, c): index = ord(c) - ord(self.START_LETTER) count = index*2-1 return self.makeSpace(count) def makeSpace(self, count): space = '' for i in range(0, count): space += self.SPACE return space
class Diamond: start_letter = 'A' enter = '\n' space = ' ' blank = '' def __init__(self, upTo): self.upTo = upTo def show(self): top = self.BLANK bottom = self.BLANK for c in range(ord(self.START_LETTER), ord(self.upTo) + 1): line = self.buildLine(chr(c)) top += line bottom = self.bottomLine(chr(c), line, bottom) return top + bottom def bottom_line(self, c, line, bottom): return line + bottom if c != self.upTo else bottom def build_line(self, c): return self.indent(c) + self.letter(c) + self.innerSpace(c) + self.secondLetter(c) + self.ENTER def letter(self, c): return c def second_letter(self, c): return c if c != self.START_LETTER else '' def indent(self, c): count = ord(self.upTo) - ord(c) return self.makeSpace(count) def inner_space(self, c): index = ord(c) - ord(self.START_LETTER) count = index * 2 - 1 return self.makeSpace(count) def make_space(self, count): space = '' for i in range(0, count): space += self.SPACE return space
# https://docs.google.com/document/d/1Ljm9S29J-mFOZ3fwrkGohMDrn9fORVteWjzucuZfyaM/edit?usp=sharing # Huu Hung Nguyen # 12/12/2021 # Nguyen_HuuHung_accounts.py # The program stores the Account class, the SavingAccount class, and # the CreditCardAccount class. class Account: ''' Account class for representing and manipulating number, balance coordinates. ''' def __init__(self, number, balance): ''' Create a new point at the given coordinates. ''' self.number = number self.balance = balance def __str__(self): ''' Display the account number and balance. ''' display = f'Account number: {self.number}' + '\n' + \ f'Balance: ${self.balance:,.2f}' return display def deposit(self, amount): ''' Return the balance after depositting. ''' if amount >= 0: self.balance += amount return self.balance def withdraw(self, amount): ''' Return the balance after withdrawing. ''' if amount <= self.balance: self.balance -= amount return self.balance class SavingAccount(Account): ''' SavingAccount class for representing and manipulating number, balance, apr coordinates. ''' def __init__(self, number, balance, apr): ''' Create a new point at the given coordinates. ''' super().__init__(number, balance) self.apr = apr / 100 def __str__(self): ''' Display the account number, balance, and apr. ''' return super().__str__() + f'\nAPR: {self.apr * 100:,.2f}%' def calculate_interest(self): ''' Return the annual interest. ''' annual_interest = self.balance * self.apr return annual_interest class CreditCardAccount(Account): ''' SavingAccount class for representing and manipulating number, balance, apr, credit limit coordinates. ''' def __init__(self, number, balance, apr, credit_limit): ''' Create a new point at the given coordinates. ''' super().__init__(number, balance) self.apr = apr / 100 self.credit_limit = credit_limit def __str__(self): ''' Display the account number, balance, apr, and credit limit. ''' display = super().__str__() + f'\nAPR: {self.apr * 100:,.2f}%' + \ f'\nCredit Limit: ${self.credit_limit:,.2f}' return display def withdraw(self, amount): ''' Return the balance after withdrawing. ''' if amount <= self.balance + self.credit_limit: self.balance -= amount return self.balance def calculate_payment(self): ''' Return the monthly payment. ''' if self.balance > 0: monthly_payment = 0 elif (self.apr / 12) * (-self.balance) >= 20: monthly_payment = 20 else: monthly_payment = (self.apr / 12) * (-self.balance) return monthly_payment
class Account: """ Account class for representing and manipulating number, balance coordinates. """ def __init__(self, number, balance): """ Create a new point at the given coordinates. """ self.number = number self.balance = balance def __str__(self): """ Display the account number and balance. """ display = f'Account number: {self.number}' + '\n' + f'Balance: ${self.balance:,.2f}' return display def deposit(self, amount): """ Return the balance after depositting. """ if amount >= 0: self.balance += amount return self.balance def withdraw(self, amount): """ Return the balance after withdrawing. """ if amount <= self.balance: self.balance -= amount return self.balance class Savingaccount(Account): """ SavingAccount class for representing and manipulating number, balance, apr coordinates. """ def __init__(self, number, balance, apr): """ Create a new point at the given coordinates. """ super().__init__(number, balance) self.apr = apr / 100 def __str__(self): """ Display the account number, balance, and apr. """ return super().__str__() + f'\nAPR: {self.apr * 100:,.2f}%' def calculate_interest(self): """ Return the annual interest. """ annual_interest = self.balance * self.apr return annual_interest class Creditcardaccount(Account): """ SavingAccount class for representing and manipulating number, balance, apr, credit limit coordinates. """ def __init__(self, number, balance, apr, credit_limit): """ Create a new point at the given coordinates. """ super().__init__(number, balance) self.apr = apr / 100 self.credit_limit = credit_limit def __str__(self): """ Display the account number, balance, apr, and credit limit. """ display = super().__str__() + f'\nAPR: {self.apr * 100:,.2f}%' + f'\nCredit Limit: ${self.credit_limit:,.2f}' return display def withdraw(self, amount): """ Return the balance after withdrawing. """ if amount <= self.balance + self.credit_limit: self.balance -= amount return self.balance def calculate_payment(self): """ Return the monthly payment. """ if self.balance > 0: monthly_payment = 0 elif self.apr / 12 * -self.balance >= 20: monthly_payment = 20 else: monthly_payment = self.apr / 12 * -self.balance return monthly_payment
path = "data/DataPoints.txt" lines_path = "data/lines.txt" index_and_slope_delim = ';' slope_and_intercept_delim = ":" delim = ","
path = 'data/DataPoints.txt' lines_path = 'data/lines.txt' index_and_slope_delim = ';' slope_and_intercept_delim = ':' delim = ','
routers = dict( BASE = dict( default_application = "webremote", default_controller = "webremote", default_function = "index", ) )
routers = dict(BASE=dict(default_application='webremote', default_controller='webremote', default_function='index'))
# # PySNMP MIB module BIANCA-BRICK-TOKEN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-TOKEN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:21:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter64, TimeTicks, Gauge32, NotificationType, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Bits, Counter32, ObjectIdentity, IpAddress, MibIdentifier, iso, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "TimeTicks", "Gauge32", "NotificationType", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Bits", "Counter32", "ObjectIdentity", "IpAddress", "MibIdentifier", "iso", "ModuleIdentity") TextualConvention, PhysAddress, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "PhysAddress", "DisplayString") org = MibIdentifier((1, 3)) dod = MibIdentifier((1, 3, 6)) internet = MibIdentifier((1, 3, 6, 1)) private = MibIdentifier((1, 3, 6, 1, 4)) enterprises = MibIdentifier((1, 3, 6, 1, 4, 1)) bintec = MibIdentifier((1, 3, 6, 1, 4, 1, 272)) bibo = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4)) tokenring = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4, 11)) class Date(Integer32): pass class HexValue(Integer32): pass tokenringIfTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 11, 1), ) if mibBuilder.loadTexts: tokenringIfTable.setStatus('mandatory') tokenringIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1), ).setIndexNames((0, "BIANCA-BRICK-TOKEN-MIB", "tokenringIfSlot")) if mibBuilder.loadTexts: tokenringIfEntry.setStatus('mandatory') tokenringIfSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfSlot.setStatus('mandatory') tokenringIfState = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))).clone(namedValues=NamedValues(("down", 1), ("start", 2), ("download", 3), ("reset", 4), ("bud", 5), ("tferipb", 6), ("wait1", 7), ("open", 8), ("wait2", 9), ("delay1", 10), ("receive", 11), ("wait3", 12), ("done", 13), ("close", 14), ("error", 15)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfState.setStatus('mandatory') tokenringIfRingRate = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("tr-4Mbit", 1), ("tr-16Mbit", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfRingRate.setStatus('mandatory') tokenringIfEarlyTokenRelease = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfEarlyTokenRelease.setStatus('mandatory') tokenringIfWrapInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfWrapInterface.setStatus('mandatory') tokenringIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(15, 17800))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfMtu.setStatus('mandatory') tokenringIfOverwritePhysAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 7), PhysAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfOverwritePhysAddress.setStatus('mandatory') tokenringIfNAUN = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 8), PhysAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfNAUN.setStatus('mandatory') tokenringIfLineError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfLineError.setStatus('mandatory') tokenringIfBurstError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfBurstError.setStatus('mandatory') tokenringIfAriFciError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfAriFciError.setStatus('mandatory') tokenringIfLostFrameError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfLostFrameError.setStatus('mandatory') tokenringIfReceiveCongestionError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfReceiveCongestionError.setStatus('mandatory') tokenringIfFrameCopiedError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfFrameCopiedError.setStatus('mandatory') tokenringIfTokenError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfTokenError.setStatus('mandatory') tokenringIfDmaBusError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfDmaBusError.setStatus('mandatory') tokenringIfDmaParityError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfDmaParityError.setStatus('mandatory') tokenringIfSoftError = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tokenringIfSoftError.setStatus('mandatory') tokenringIfSourceRouting = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tokenringIfSourceRouting.setStatus('mandatory') mibBuilder.exportSymbols("BIANCA-BRICK-TOKEN-MIB", tokenringIfAriFciError=tokenringIfAriFciError, tokenringIfSlot=tokenringIfSlot, tokenringIfWrapInterface=tokenringIfWrapInterface, tokenringIfRingRate=tokenringIfRingRate, HexValue=HexValue, internet=internet, tokenringIfSoftError=tokenringIfSoftError, bintec=bintec, tokenringIfNAUN=tokenringIfNAUN, tokenringIfState=tokenringIfState, bibo=bibo, tokenringIfLostFrameError=tokenringIfLostFrameError, private=private, tokenringIfTokenError=tokenringIfTokenError, tokenringIfReceiveCongestionError=tokenringIfReceiveCongestionError, org=org, tokenring=tokenring, tokenringIfEntry=tokenringIfEntry, Date=Date, tokenringIfTable=tokenringIfTable, tokenringIfOverwritePhysAddress=tokenringIfOverwritePhysAddress, tokenringIfFrameCopiedError=tokenringIfFrameCopiedError, tokenringIfBurstError=tokenringIfBurstError, tokenringIfDmaParityError=tokenringIfDmaParityError, tokenringIfSourceRouting=tokenringIfSourceRouting, tokenringIfEarlyTokenRelease=tokenringIfEarlyTokenRelease, tokenringIfMtu=tokenringIfMtu, dod=dod, tokenringIfLineError=tokenringIfLineError, enterprises=enterprises, tokenringIfDmaBusError=tokenringIfDmaBusError)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_intersection, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter64, time_ticks, gauge32, notification_type, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, bits, counter32, object_identity, ip_address, mib_identifier, iso, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'TimeTicks', 'Gauge32', 'NotificationType', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Bits', 'Counter32', 'ObjectIdentity', 'IpAddress', 'MibIdentifier', 'iso', 'ModuleIdentity') (textual_convention, phys_address, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'PhysAddress', 'DisplayString') org = mib_identifier((1, 3)) dod = mib_identifier((1, 3, 6)) internet = mib_identifier((1, 3, 6, 1)) private = mib_identifier((1, 3, 6, 1, 4)) enterprises = mib_identifier((1, 3, 6, 1, 4, 1)) bintec = mib_identifier((1, 3, 6, 1, 4, 1, 272)) bibo = mib_identifier((1, 3, 6, 1, 4, 1, 272, 4)) tokenring = mib_identifier((1, 3, 6, 1, 4, 1, 272, 4, 11)) class Date(Integer32): pass class Hexvalue(Integer32): pass tokenring_if_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 11, 1)) if mibBuilder.loadTexts: tokenringIfTable.setStatus('mandatory') tokenring_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1)).setIndexNames((0, 'BIANCA-BRICK-TOKEN-MIB', 'tokenringIfSlot')) if mibBuilder.loadTexts: tokenringIfEntry.setStatus('mandatory') tokenring_if_slot = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfSlot.setStatus('mandatory') tokenring_if_state = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))).clone(namedValues=named_values(('down', 1), ('start', 2), ('download', 3), ('reset', 4), ('bud', 5), ('tferipb', 6), ('wait1', 7), ('open', 8), ('wait2', 9), ('delay1', 10), ('receive', 11), ('wait3', 12), ('done', 13), ('close', 14), ('error', 15)))).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfState.setStatus('mandatory') tokenring_if_ring_rate = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('tr-4Mbit', 1), ('tr-16Mbit', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tokenringIfRingRate.setStatus('mandatory') tokenring_if_early_token_release = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tokenringIfEarlyTokenRelease.setStatus('mandatory') tokenring_if_wrap_interface = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tokenringIfWrapInterface.setStatus('mandatory') tokenring_if_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(15, 17800))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tokenringIfMtu.setStatus('mandatory') tokenring_if_overwrite_phys_address = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 7), phys_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tokenringIfOverwritePhysAddress.setStatus('mandatory') tokenring_if_naun = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 8), phys_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfNAUN.setStatus('mandatory') tokenring_if_line_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfLineError.setStatus('mandatory') tokenring_if_burst_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfBurstError.setStatus('mandatory') tokenring_if_ari_fci_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfAriFciError.setStatus('mandatory') tokenring_if_lost_frame_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfLostFrameError.setStatus('mandatory') tokenring_if_receive_congestion_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfReceiveCongestionError.setStatus('mandatory') tokenring_if_frame_copied_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfFrameCopiedError.setStatus('mandatory') tokenring_if_token_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfTokenError.setStatus('mandatory') tokenring_if_dma_bus_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfDmaBusError.setStatus('mandatory') tokenring_if_dma_parity_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfDmaParityError.setStatus('mandatory') tokenring_if_soft_error = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tokenringIfSoftError.setStatus('mandatory') tokenring_if_source_routing = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 11, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tokenringIfSourceRouting.setStatus('mandatory') mibBuilder.exportSymbols('BIANCA-BRICK-TOKEN-MIB', tokenringIfAriFciError=tokenringIfAriFciError, tokenringIfSlot=tokenringIfSlot, tokenringIfWrapInterface=tokenringIfWrapInterface, tokenringIfRingRate=tokenringIfRingRate, HexValue=HexValue, internet=internet, tokenringIfSoftError=tokenringIfSoftError, bintec=bintec, tokenringIfNAUN=tokenringIfNAUN, tokenringIfState=tokenringIfState, bibo=bibo, tokenringIfLostFrameError=tokenringIfLostFrameError, private=private, tokenringIfTokenError=tokenringIfTokenError, tokenringIfReceiveCongestionError=tokenringIfReceiveCongestionError, org=org, tokenring=tokenring, tokenringIfEntry=tokenringIfEntry, Date=Date, tokenringIfTable=tokenringIfTable, tokenringIfOverwritePhysAddress=tokenringIfOverwritePhysAddress, tokenringIfFrameCopiedError=tokenringIfFrameCopiedError, tokenringIfBurstError=tokenringIfBurstError, tokenringIfDmaParityError=tokenringIfDmaParityError, tokenringIfSourceRouting=tokenringIfSourceRouting, tokenringIfEarlyTokenRelease=tokenringIfEarlyTokenRelease, tokenringIfMtu=tokenringIfMtu, dod=dod, tokenringIfLineError=tokenringIfLineError, enterprises=enterprises, tokenringIfDmaBusError=tokenringIfDmaBusError)
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' def evalFile(f1, f2): op = open(f1) plain = op.read() op.close() op = open(f2) imperfect = op.read() op.close() list1 = [] list2 = [] for letter in plain: if letter.upper() in LETTERS: if letter.upper() not in list1: list1.append(letter.upper()) for letter in imperfect: if letter.upper() in LETTERS: if letter.upper() not in list2: list2.append(letter.upper()) keyAccuaracy = 0 for i in range(len(list1)): if list1[i] == list2[i]: keyAccuaracy += 1 keyAccuaracy = keyAccuaracy/len(list1) list1 = [] list2 = [] for letter in plain: if letter.upper() in LETTERS: list1.append(letter.upper()) for letter in imperfect: if letter.upper() in LETTERS: list2.append(letter.upper()) deciphermentAccuracy = 0 for i in range(len(list1)): if list1[i] == list2[i]: deciphermentAccuracy += 1 deciphermentAccuracy = deciphermentAccuracy/len(list1) return [keyAccuaracy, deciphermentAccuracy]
letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' def eval_file(f1, f2): op = open(f1) plain = op.read() op.close() op = open(f2) imperfect = op.read() op.close() list1 = [] list2 = [] for letter in plain: if letter.upper() in LETTERS: if letter.upper() not in list1: list1.append(letter.upper()) for letter in imperfect: if letter.upper() in LETTERS: if letter.upper() not in list2: list2.append(letter.upper()) key_accuaracy = 0 for i in range(len(list1)): if list1[i] == list2[i]: key_accuaracy += 1 key_accuaracy = keyAccuaracy / len(list1) list1 = [] list2 = [] for letter in plain: if letter.upper() in LETTERS: list1.append(letter.upper()) for letter in imperfect: if letter.upper() in LETTERS: list2.append(letter.upper()) decipherment_accuracy = 0 for i in range(len(list1)): if list1[i] == list2[i]: decipherment_accuracy += 1 decipherment_accuracy = deciphermentAccuracy / len(list1) return [keyAccuaracy, deciphermentAccuracy]
''' You work for an airline, and your manager has asked you to do a competitive analysis and see how often passengers flying on other airlines are involuntarily bumped from their flights. You got a CSV file (airline_bumping.csv) from the Department of Transportation containing data on passengers that were involuntarily denied boarding in 2016 and 2017, but it doesn't have the exact numbers you want. In order to figure this out, you'll need to get the CSV into a pandas DataFrame and do some manipulation! pandas is imported for you as pd. "airline_bumping.csv" is in your working directory. '''
""" You work for an airline, and your manager has asked you to do a competitive analysis and see how often passengers flying on other airlines are involuntarily bumped from their flights. You got a CSV file (airline_bumping.csv) from the Department of Transportation containing data on passengers that were involuntarily denied boarding in 2016 and 2017, but it doesn't have the exact numbers you want. In order to figure this out, you'll need to get the CSV into a pandas DataFrame and do some manipulation! pandas is imported for you as pd. "airline_bumping.csv" is in your working directory. """
# LIFO Stack DS using Python Lists (Arrays) class StacksArray: def __init__(self): self.stackArray = [] def __len__(self): return len(self.stackArray) def isempty(self): return len(self.stackArray) == 0 def display(self): print(self.stackArray) def top(self): return self.stackArray[-1] def pop(self): if self.isempty(): print("Stack is empty") return None return self.stackArray.pop() def push(self, element): self.stackArray.append(element) if __name__ =='__main__': S = StacksArray() S.push(5) S.push(3) S.display() print(len(S)) print(S.pop()) print(S.isempty()) print(S.pop()) print(S.isempty()) S.push(7) S.push(9) print(S.top()) S.push(4) print(len(S)) print(S.pop()) S.push(6) S.push(8) print(S.pop())
class Stacksarray: def __init__(self): self.stackArray = [] def __len__(self): return len(self.stackArray) def isempty(self): return len(self.stackArray) == 0 def display(self): print(self.stackArray) def top(self): return self.stackArray[-1] def pop(self): if self.isempty(): print('Stack is empty') return None return self.stackArray.pop() def push(self, element): self.stackArray.append(element) if __name__ == '__main__': s = stacks_array() S.push(5) S.push(3) S.display() print(len(S)) print(S.pop()) print(S.isempty()) print(S.pop()) print(S.isempty()) S.push(7) S.push(9) print(S.top()) S.push(4) print(len(S)) print(S.pop()) S.push(6) S.push(8) print(S.pop())
class ClassDictionary: def __init__(self, value): self.dict_value = value def __getattribute__(self, name): if name == "dict_value": return super().__getattribute__(name) result = self.dict_value.get(name) return result def __setattr__(self, name, value): if name == "dict_value": return super().__setattr__(name, value) self.dict_value[name] = value def pop(self, name, default=None): return self.dict_value.pop(name, default)
class Classdictionary: def __init__(self, value): self.dict_value = value def __getattribute__(self, name): if name == 'dict_value': return super().__getattribute__(name) result = self.dict_value.get(name) return result def __setattr__(self, name, value): if name == 'dict_value': return super().__setattr__(name, value) self.dict_value[name] = value def pop(self, name, default=None): return self.dict_value.pop(name, default)
# String Rotation: Assume you have a method isSubstringwhich checks if one word is a substring # of another. Given two strings, sl and s2, write code to check if s2 is a rotation of sl using only one # call to isSubstring (e.g., "waterbottle" is a rotation of "erbottlewat") def is_substring(s1, s2): return s2 in s1 def is_string_rotation(s1, s2): if not len(s1) == len(s2): return False double_s1 = s1 + s1 return is_substring(double_s1, s2) print(is_string_rotation('waterbottle', 'erbottlewat')) # Time: O(n)
def is_substring(s1, s2): return s2 in s1 def is_string_rotation(s1, s2): if not len(s1) == len(s2): return False double_s1 = s1 + s1 return is_substring(double_s1, s2) print(is_string_rotation('waterbottle', 'erbottlewat'))
""" I, Andy Le, student number 000805099, certify that all code submitted is my own work; that i have not copied it from any other source. I also certify that I have not allowed my work to be copied by others. """ def score(earnedPercent, overallWeight): if (earnedPercent == -1): return -1 else: return ((earnedPercent / 100) * overallWeight) def ad(l, a, e): total = 0 denom = 0 if (l != -1): total = total + l denom = denom + 20 if (a != -1): total = total + a denom = denom + 10 if (e != -1): total = total + e denom = denom + 70 return (round(((total / denom) * 100), 1)) def grade(percent): if (percent >= 90): return 'A' elif ((percent < 90) and (percent >= 75)): return 'B' elif ((percent < 75) and (percent >= 60)): return 'C' elif ((percent < 60) and (percent >= 50)): return 'D' else: return 'F' lab = int(input("What is your lab percent so far (-1 if no labs yet)? ")) lab = score(lab, 20) ass = int(input("What is your assignment percent so far (-1 if no assignment yet)? ")) ass = score(ass, 10) exam = int(input("What is your exam percent so far (-1 if no assignment yet)? ")) exam = score(exam, 70) mark = ad(lab, ass, exam) print("If things keep going the way they are you should get a " + str(mark) + " in the course, which is a " + grade(mark))
""" I, Andy Le, student number 000805099, certify that all code submitted is my own work; that i have not copied it from any other source. I also certify that I have not allowed my work to be copied by others. """ def score(earnedPercent, overallWeight): if earnedPercent == -1: return -1 else: return earnedPercent / 100 * overallWeight def ad(l, a, e): total = 0 denom = 0 if l != -1: total = total + l denom = denom + 20 if a != -1: total = total + a denom = denom + 10 if e != -1: total = total + e denom = denom + 70 return round(total / denom * 100, 1) def grade(percent): if percent >= 90: return 'A' elif percent < 90 and percent >= 75: return 'B' elif percent < 75 and percent >= 60: return 'C' elif percent < 60 and percent >= 50: return 'D' else: return 'F' lab = int(input('What is your lab percent so far (-1 if no labs yet)? ')) lab = score(lab, 20) ass = int(input('What is your assignment percent so far (-1 if no assignment yet)? ')) ass = score(ass, 10) exam = int(input('What is your exam percent so far (-1 if no assignment yet)? ')) exam = score(exam, 70) mark = ad(lab, ass, exam) print('If things keep going the way they are you should get a ' + str(mark) + ' in the course, which is a ' + grade(mark))
__author__ = 'fabian' __all__ = ['handler']
__author__ = 'fabian' __all__ = ['handler']
class AccountNotFoundError(Exception): pass class TransactionError(Exception): pass class AccountClosedError(TransactionError): pass class InsufficientFundsError(TransactionError): pass
class Accountnotfounderror(Exception): pass class Transactionerror(Exception): pass class Accountclosederror(TransactionError): pass class Insufficientfundserror(TransactionError): pass
text = input().split() times_seen = {} for word in text: if word not in times_seen: times_seen[word] = 0 print(times_seen[word], end=' ') times_seen[word] += 1
text = input().split() times_seen = {} for word in text: if word not in times_seen: times_seen[word] = 0 print(times_seen[word], end=' ') times_seen[word] += 1
def LeftView(root): ''' :param root: root of given tree. :return: print the left view of tree, dont print new line ''' # code here res = [] while root: res.append(root.data) if root.left: root = root.left elif root.right: root = root.right else: break # print(res) for n in res: print(n, end=' ') return res
def left_view(root): """ :param root: root of given tree. :return: print the left view of tree, dont print new line """ res = [] while root: res.append(root.data) if root.left: root = root.left elif root.right: root = root.right else: break for n in res: print(n, end=' ') return res
# # PySNMP MIB module APPIAN-PPORT-SONET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPIAN-PPORT-SONET-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:23:54 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) # acPport, AcAdminStatus, AcOpStatus, AcSlotNumber, AcPortNumber, AcNodeId = mibBuilder.importSymbols("APPIAN-SMI-MIB", "acPport", "AcAdminStatus", "AcOpStatus", "AcSlotNumber", "AcPortNumber", "AcNodeId") ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint") PerfIntervalCount, = mibBuilder.importSymbols("PerfHist-TC-MIB", "PerfIntervalCount") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ModuleIdentity, MibIdentifier, Counter64, IpAddress, ObjectIdentity, TimeTicks, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Bits, Gauge32, NotificationType, Integer32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "MibIdentifier", "Counter64", "IpAddress", "ObjectIdentity", "TimeTicks", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Bits", "Gauge32", "NotificationType", "Integer32", "Counter32") DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention") acSonet = ModuleIdentity((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6)) acSonet.setRevisions(('1900-02-23 16:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: acSonet.setRevisionsDescriptions(('Engineering draft, not for release.',)) if mibBuilder.loadTexts: acSonet.setLastUpdated('0002231600Z') if mibBuilder.loadTexts: acSonet.setOrganization('Appian Communications, Inc.') if mibBuilder.loadTexts: acSonet.setContactInfo('Douglas Stahl') if mibBuilder.loadTexts: acSonet.setDescription('The MIB module to describe SONET/SDH objects.') class AcTraceString(TextualConvention, OctetString): description = "A string of up to printable characters, followed by padding NULL characters, and terminated with <CR> and <LF> characters, for a total of 64 characters. The maximum number of printable characters is 62 and if it's less, it's padded with NULL. Therefore the number of padding NULL characters is 0 to 62." status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(64, 64) fixedLength = 64 acSonetObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1)) acSonetObjectsPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2)) acSonetObjectsVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3)) acSonetPort = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1)) acSonetSection = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2)) acSonetLine = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3)) acSonetFarEndLine = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4)) acSonetPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1)) acSonetFarEndPath = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2)) acSonetVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1)) acSonetFarEndVT = MibIdentifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2)) acSonetPortTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1), ) if mibBuilder.loadTexts: acSonetPortTable.setStatus('current') if mibBuilder.loadTexts: acSonetPortTable.setDescription('The SONET/SDH Port table which must be created by the management client.') acSonetPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPortNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortPort")) if mibBuilder.loadTexts: acSonetPortEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPortEntry.setDescription('An entry in the SONET/SDH Port table.') acSonetPortNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPortNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPortSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPortSlot.setDescription('The physical slot number of the port.') acSonetPortPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortPort.setStatus('current') if mibBuilder.loadTexts: acSonetPortPort.setDescription('The physical port number of the port.') acSonetPortAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 4), AcAdminStatus().clone('inactivate')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortAdminStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPortAdminStatus.setDescription('Appian Administrative Status attribute used to set the provisioning state as either activate(1), inactivate(2) or delete(3). Refer to the Appian-SMI.mib file for additional information.') acSonetPortOpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 5), AcOpStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortOpStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPortOpStatus.setDescription('The current operational status for the SONET module controlling this port.') acSonetPortOpCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortOpCode.setStatus('current') if mibBuilder.loadTexts: acSonetPortOpCode.setDescription('Provides a detailed status code which can be used to isolate a problem or state condition reported in acSonetPortOpStatus.') acSonetPortMediumType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("sonet", 1), ("sdh", 2))).clone('sonet')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortMediumType.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumType.setDescription('This variable identifies whether a SONET or a SDH signal is used across this interface.') acSonetPortTimeElapsed = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 900))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortTimeElapsed.setStatus('current') if mibBuilder.loadTexts: acSonetPortTimeElapsed.setDescription("The number of seconds, including partial seconds, that have elapsed since the beginning of the current measurement period. If, for some reason, such as an adjustment in the system's time-of-day clock, the current interval exceeds the maximum value, the agent will return the maximum value.") acSonetPortValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortValidIntervals.setStatus('current') if mibBuilder.loadTexts: acSonetPortValidIntervals.setDescription('The number of previous 15-minute intervals for which data was collected. A SONET/SDH interface must be capable of supporting at least n intervals. The minimum value of n is 4. The default of n is 32. The maximum value of n is 96. The value will be <n> unless the measurement was (re-)started within the last (<n>*15) minutes, in which case the value will be the number of complete 15 minute intervals for which the agent has at least some data. In certain cases (e.g., in the case where the agent is a proxy) it is possible that some intervals are unavailable. In this case, this interval is the maximum interval number for which data is available. ') acSonetPortMediumLineCoding = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("b3zs", 2), ("cmi", 3), ("nrz", 4), ("rz", 5))).clone('nrz')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortMediumLineCoding.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumLineCoding.setDescription('This variable describes the line coding for this interface. The B3ZS and CMI are used for electrical SONET/SDH signals (STS-1 and STS-3). The Non-Return to Zero (NRZ) and the Return to Zero are used for optical SONET/SDH signals.') acSonetPortMediumLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("short-single", 2), ("long-single", 3), ("multi", 4), ("coax", 5), ("utp", 6), ("intermediate", 7))).clone('multi')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortMediumLineType.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumLineType.setDescription('This variable describes the line type for this interface. The line types are Short and Long Range Single Mode fiber or Multi-Mode fiber interfaces, and coax and UTP for electrical interfaces. The value acSonetOther should be used when the Line Type is not one of the listed values.') acSonetPortTransmitterEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 12), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortTransmitterEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPortTransmitterEnable.setDescription('Turns the laser on and off.') acSonetPortCircuitIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortCircuitIdentifier.setStatus('current') if mibBuilder.loadTexts: acSonetPortCircuitIdentifier.setDescription("This variable contains the transmission vendor's circuit identifier, for the purpose of facilitating troubleshooting. Note that the circuit identifier, if available, is also represented by ifPhysAddress.") acSonetPortInvalidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPortInvalidIntervals.setStatus('current') if mibBuilder.loadTexts: acSonetPortInvalidIntervals.setDescription('The number of intervals in the range from 0 to acSonetPortValidIntervals for which no data is available. This object will typically be zero except in cases where the data for some intervals are not available (e.g., in proxy situations).') acSonetPortLoopbackConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("none", 0), ("facility", 1), ("terminal", 2), ("other", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortLoopbackConfig.setStatus('current') if mibBuilder.loadTexts: acSonetPortLoopbackConfig.setDescription('The current loopback state of the SONET/SDH interface. The values mean: none(0) Not in the loopback state. A device that is not capable of performing a loopback on this interface shall always return this value. facility(1) The received signal at this interface is looped back out through the corresponding transmitter in the return direction. terminal(2) The signal that is about to be transmitted is connected to the associated incoming receiver. other(3) Loopbacks that are not defined here.') acSonetPortResetCurrentPMregs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 16), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortResetCurrentPMregs.setStatus('current') if mibBuilder.loadTexts: acSonetPortResetCurrentPMregs.setDescription('Reset Performance Monitoring Registers for current 15 minute and day to zero for entity-related statisics. Reset on receiving a 1, will automatically go to 0 at next 15 minute or day interval.') acSonetPortResetAllPMregs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 17), TruthValue().clone('false')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortResetAllPMregs.setStatus('current') if mibBuilder.loadTexts: acSonetPortResetAllPMregs.setDescription('Reset Performance Monitoring Registers to zero for all entity-related statisics. Reset on receiving a 1, will automatically go to 0 at next 15 minute or day interval.') acSonetPortConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ring", 1), ("interconnect", 2))).clone('interconnect')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortConnectionType.setStatus('current') if mibBuilder.loadTexts: acSonetPortConnectionType.setDescription('Whether the port is used on the ring side or the interconnect side. An interconnect interface is the one that connects to the ADM.') acSonetPortRingIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 19), Integer32().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortRingIdentifier.setStatus('current') if mibBuilder.loadTexts: acSonetPortRingIdentifier.setDescription('This is a number assigned by carrier. It is contained here as a convenience for carrier and the EMS. It is not used by the device. When used, this should be set in east facing port row in this table. It can also be optionally set in the west facing port row in this table but it must be the same as the set in the east facing port row.') acSonetPortRingName = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: acSonetPortRingName.setStatus('current') if mibBuilder.loadTexts: acSonetPortRingName.setDescription('An ASCII text name up to 32 characters in length which is assigned to this optical ring. Like the RingIdentifier, this is contained here as a convenience for the carrier and the EMS. It is not used by the device. When used, this should be set in east facing port row in this table. It can also be optionally set in the west facing port row in this table but it must be the same as the set in the east facing port row.') acSonetThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2), ) if mibBuilder.loadTexts: acSonetThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdTable.setDescription('The SONET/SDH Threshold Table.') acSonetThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetThresholdPort")) if mibBuilder.loadTexts: acSonetThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdEntry.setDescription('An entry in the SONET/SDH Port Table.') acSonetThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdSlot.setDescription('The physical slot number of the port.') acSonetThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdPort.setDescription('The physical port number of the port.') acSonetThresholdSESSet = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("bellcore", 2), ("ansi93", 3), ("itu", 4), ("ansi97", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetThresholdSESSet.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdSESSet.setDescription('An enumerated integer indicating which recognized set of thresholds that the agent uses for determining severely errored seconds and unavailable time. other(1) None of the following. Bellcore1991(2) Bellcore TR-NWT-000253, 1991 [32], or ANSI T1M1.3/93-005R2, 1993 [22]. See also Appendix B. ansi1993(3) ANSI T1.231, 1993 [31], or Bellcore GR-253-CORE, Issue 2, 1995 [34] itu1995(4) ITU Recommendation G.826, 1995 [33] ansi1997(5) ANSI T1.231, 1997 [35] If a manager changes the value of this object then the SES statistics collected prior to this change must be invalidated.') acSonetDCCTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3), ) if mibBuilder.loadTexts: acSonetDCCTable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCTable.setDescription('The SONET/SDH DCC Table.') acSonetDCCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetDCCPort")) if mibBuilder.loadTexts: acSonetDCCEntry.setStatus('current') if mibBuilder.loadTexts: acSonetDCCEntry.setDescription('An entry in the SONET/SDH Port Table.') acSonetDCCNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetDCCNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetDCCNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetDCCSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetDCCSlot.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSlot.setDescription('The physical slot number of the port.') acSonetDCCPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetDCCPort.setStatus('current') if mibBuilder.loadTexts: acSonetDCCPort.setDescription('The physical port number of the port.') acSonetDCCSectionEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetDCCSectionEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSectionEnable.setDescription('This variable indicates that the DCC for the section is enabled.') acSonetDCCLineEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetDCCLineEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCLineEnable.setDescription('This variable indicates that the DCC for the line is enabled.') acSonetDCCAppianEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetDCCAppianEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCAppianEnable.setDescription('This variable indicates that the Appian DCC is enabled.') acSonetDCCSectionFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetDCCSectionFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSectionFail.setDescription('This variable indicates that the DCC for the section has failed.') acSonetDCCLineFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetDCCLineFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCLineFail.setDescription('This variable indicates that the DCC for the line has failed.') acSonetDCCAppianFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetDCCAppianFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCAppianFail.setDescription('This variable indicates that the Appian DCC has failed.') acSonetSection15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1), ) if mibBuilder.loadTexts: acSonetSection15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalTable.setDescription('The SONET/SDH Section 15Minute Interval table.') acSonetSection15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSection15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetSection15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Section 15Minute Interval table.') acSonetSection15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSection15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetSection15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetSection15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetSection15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalValidStats.setDescription('This flag indicates if the data for this interval is valid.') acSonetSection15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for a 15 minute interval.') acSonetSection15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetSectionCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetSectionNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetSectionNoDefect 2 acSonetSectionLOS 4 acSonetSectionLOF') acSonetSection15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') acSonetSection15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') acSonetSection15MinuteIntervalSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSEFSs.setDescription('The counter associated with the number of Severely Errored Framing Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') acSonetSection15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSection15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') acSonetSectionDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2), ) if mibBuilder.loadTexts: acSonetSectionDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalTable.setDescription('The SONET/SDH Section Day Interval table.') acSonetSectionDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionDayIntervalNumber")) if mibBuilder.loadTexts: acSonetSectionDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalEntry.setDescription('An entry in the SONET/SDH Section Day Interval table.') acSonetSectionDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSectionDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetSectionDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalPort.setDescription('The physical port number of the port.') acSonetSectionDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetSectionDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalValidStats.setDescription('This flag indicates if the data for this interval is valid.') acSonetSectionDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalResetStats.setDescription('Flag used to reset the current day interval stats.') acSonetSectionDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetSectionCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetSectionNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetSectionNoDefect 2 acSonetSectionLOS 4 acSonetSectionLOF') acSonetSectionDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') acSonetSectionDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') acSonetSectionDayIntervalSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSEFSs.setDescription('The counter associated with the number of Severely Errored Framing Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') acSonetSectionDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') acSonetSectionThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3), ) if mibBuilder.loadTexts: acSonetSectionThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdTable.setDescription('The SONET/SDH Section Threshold Table.') acSonetSectionThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetSectionThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdEntry.setDescription('An entry in the SONET/SDH Section Threshold Table.') acSonetSectionThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSectionThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSlot.setDescription('The physical slot number of the port.') acSonetSectionThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdPort.setDescription('The physical port number of the port.') acSonetSectionThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds.') acSonetSectionThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetSectionThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this sonet port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetSectionThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetSectionThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetSectionThresholdSEFSs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSEFSs.setDescription('The threshold associated with Severely Errored Framing Seconds.') acSonetSectionThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetSectionTIMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4), ) if mibBuilder.loadTexts: acSonetSectionTIMTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMTable.setDescription('The SONET/SDH Section Trace Identifier Mismatch Table.') acSonetSectionTIMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionTIMPort")) if mibBuilder.loadTexts: acSonetSectionTIMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMEntry.setDescription('An entry in the SONET/SDH Section Trace Identifier Mismatch Table.') acSonetSectionTIMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionTIMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSectionTIMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionTIMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMSlot.setDescription('The physical slot number of the port.') acSonetSectionTIMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionTIMPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMPort.setDescription('The physical port number of the port.') acSonetSectionTIMGenerateEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMGenerateEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMGenerateEnable.setDescription('Enables the generation of the Section Trace Identifier.') acSonetSectionTIMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMDetectEnable.setDescription('Enables the detection of the Section Trace Identifier.') acSonetSectionTIMTransmitedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 6), AcTraceString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMTransmitedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMTransmitedString.setDescription('The string that gets sent to the destination.') acSonetSectionTIMExpectedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 7), AcTraceString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMExpectedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMExpectedString.setDescription('The expected string that is to be received.') acSonetSectionTIMReceivedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 8), AcTraceString()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionTIMReceivedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMReceivedString.setDescription('The contents of the string that is received.') acSonetSectionTIMFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionTIMFailure.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMFailure.setDescription('Failure declared of the Section Trace Identifier.') acSonetSectionTIMFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("void", 0), ("t64", 1), ("t64-crlf", 2), ("t16", 3), ("t16-msb1", 4), ("t16-crc7", 5))).clone('void')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMFormat.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMFormat.setDescription('Format of Path Trace buffer.') acSonetSectionTIMMismatchZeros = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionTIMMismatchZeros.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMMismatchZeros.setDescription('Controls whether a received trace message containing all zeros can cause a mismatch defect.') acSonetSectionSSMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5), ) if mibBuilder.loadTexts: acSonetSectionSSMTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMTable.setDescription('The SONET/SDH Section Synchronization Status Message Table.') acSonetSectionSSMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetSectionSSMPort")) if mibBuilder.loadTexts: acSonetSectionSSMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMEntry.setDescription('An entry in the SONET/SDH Section Synchronization Status Message Table.') acSonetSectionSSMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionSSMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetSectionSSMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionSSMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMSlot.setDescription('The physical slot number of the port.') acSonetSectionSSMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetSectionSSMPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMPort.setDescription('The physical port number of the port.') acSonetSectionSSMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetSectionSSMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMDetectEnable.setDescription('Enables the detection of the Synchronization Status Message.') acSonetSectionSSMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionSSMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMTransmitedValue.setDescription('The S1 byte value that gets sent to the destination.') acSonetSectionSSMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetSectionSSMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMReceivedValue.setDescription('The S1 byte value that is received.') acSonetLine15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1), ) if mibBuilder.loadTexts: acSonetLine15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalTable.setDescription('The SONET/SDH Line 15Minute Interval Table.') acSonetLine15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLine15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetLine15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Line 15Minute Interval table.') acSonetLine15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetLine15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetLine15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetLine15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetLine15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetLine15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalResetStats.setDescription('Flag to reset the 15 minute SONET Line interval statistics.') acSonetLine15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetLineCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetLineNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetLineNoDefect 2 acSonetLineAIS 4 acSonetLineRDI') acSonetLine15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') acSonetLine15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') acSonetLine15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') acSonetLine15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') acSonetLine15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLine15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalBER.setDescription('The counter associated with the max BER encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours. ') acSonetLineDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2), ) if mibBuilder.loadTexts: acSonetLineDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalTable.setDescription('The SONET/SDH Line Day Interval Table.') acSonetLineDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineDayIntervalNumber")) if mibBuilder.loadTexts: acSonetLineDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalEntry.setDescription('An entry in the SONET/SDH Line Day Interval table.') acSonetLineDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetLineDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetLineDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalPort.setDescription('The physical port number of the port.') acSonetLineDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetLineDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetLineDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalResetStats.setDescription('Flag to reset the SONET Line Day interval statistics.') acSonetLineDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetLineCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetLineNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetLineNoDefect 2 acSonetLineAIS 4 acSonetLineRDI') acSonetLineDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetLineDayIntervalBER.setDescription('The counter associated with the max BER encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') acSonetLineThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3), ) if mibBuilder.loadTexts: acSonetLineThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdTable.setDescription('The SONET/SDH Line Threshold Table.') acSonetLineThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetLineThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdEntry.setDescription('An entry in the SONET/SDH Line Threshold Table.') acSonetLineThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetLineThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSlot.setDescription('The physical slot number of the port.') acSonetLineThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdPort.setDescription('The physical port number of the port.') acSonetLineThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetLineThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetLineThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetLineThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetLineThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetLineThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetLineThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetFarEndLine15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1), ) if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalTable.setDescription('The SONET/SDH FarEndLine 15Minute Interval Table.') acSonetFarEndLine15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLine15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndLine 15Minute Interval table.') acSonetFarEndLine15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndLine15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndLine15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndLine15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetFarEndLine15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetFarEndLine15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalResetStats.setDescription('Flag to reset the SONET Far End Line 15 minute interval statistics.') acSonetFarEndLine15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 7), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') acSonetFarEndLine15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') acSonetFarEndLine15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') acSonetFarEndLine15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') acSonetFarEndLineDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2), ) if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalTable.setDescription('The SONET/SDH FarEndLine Day Interval Table.') acSonetFarEndLineDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineDayIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndLine Day Interval table.') acSonetFarEndLineDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndLineDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndLineDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndLineDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetFarEndLineDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetFarEndLineDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalResetStats.setDescription('Flag to reset the SONET far end line day interval statistics.') acSonetFarEndLineDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 7), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') acSonetFarEndLineDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') acSonetFarEndLineDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') acSonetFarEndLineDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') acSonetFarEndLineThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3), ) if mibBuilder.loadTexts: acSonetFarEndLineThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdTable.setDescription('The SONET/SDH FarEndLine Threshold Table.') acSonetFarEndLineThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndLineThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetFarEndLineThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdEntry.setDescription('An entry in the SONET/SDH FarEndLine Threshold Table.') acSonetFarEndLineThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndLineThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSlot.setDescription('The physical slot number of the port.') acSonetFarEndLineThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdPort.setDescription('The physical port number of the port.') acSonetFarEndLineThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndLineThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetFarEndLineThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 5), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndLineThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetFarEndLineThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetFarEndLineThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetFarEndLineThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetFarEndLineThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndLineThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetPath15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1), ) if mibBuilder.loadTexts: acSonetPath15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalTable.setDescription('The SONET/SDH Path 15Minute Interval table.') acSonetPath15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPath15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetPath15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Path 15Minute Interval table.') acSonetPath15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPath15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetPath15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetPath15MinuteIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPath.setDescription('The STS Path for which the set of statistics is available.') acSonetPath15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetPath15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 62))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetPathCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetPathNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetPathNoDefect 2 acSonetPathSTSLOP 4 acSonetPathSTSAIS 8 acSonetPathSTSRDI 16 acSonetPathUnequipped 32 acSonetPathPayloadLabelMismatch') acSonetPath15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') acSonetPath15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for a 15 minute interval.') acSonetPath15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Path in the current 15 minute interval.') acSonetPath15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Path in the current 15 minute interval.') acSonetPath15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Path in the current 15 minute interval.') acSonetPath15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a Path in the current 15 minute interval.') acSonetPath15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPath15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalBER.setDescription('The counter associated with the BER encountered by a Path in the current 15 minute interval. Represents the max value for an interval for number > 1.') acSonetPathDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2), ) if mibBuilder.loadTexts: acSonetPathDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalTable.setDescription('The SONET/SDH Path Day Interval table.') acSonetPathDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathDayIntervalNumber")) if mibBuilder.loadTexts: acSonetPathDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalEntry.setDescription('An entry in the SONET/SDH Path Day Interval table.') acSonetPathDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetPathDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalPort.setDescription('The physical port number of the port.') acSonetPathDayIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalPath.setDescription('The STS Path for which the set of statistics is available.') acSonetPathDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetPathDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 62))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetPathCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetPathNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetPathNoDefect 2 acSonetPathSTSLOP 4 acSonetPathSTSAIS 8 acSonetPathSTSRDI 16 acSonetPathUnequipped 32 acSonetPathPayloadLabelMismatch') acSonetPathDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalValidStats.setDescription('This variable indicates if the data for this day is valid.') acSonetPathDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalResetStats.setDescription('This flag is used to reset the data for day interval.') acSonetPathDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Path in the past day interval.') acSonetPathDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Path in the past day interval.') acSonetPathDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Path in the past day interval.') acSonetPathDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a Path in the past day interval.') acSonetPathDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathDayIntervalBER.setDescription('The counter associated with the BER encountered by a Path in the past day interval.') acSonetPathThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3), ) if mibBuilder.loadTexts: acSonetPathThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdTable.setDescription('The SONET/SDH Path Threshold Table.') acSonetPathThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetPathThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdEntry.setDescription('An entry in the SONET/SDH Path Threshold Table.') acSonetPathThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSlot.setDescription('The physical slot number of the port.') acSonetPathThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdPort.setDescription('The physical port number of the port.') acSonetPathThresholdPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdPath.setDescription('The STS Path for which the set of statistics is available.') acSonetPathThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetPathThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetPathThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetPathThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetPathThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetPathThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdUASs.setDescription('The threshold associated with Unavailable Seconds.') acSonetPathRDITable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4), ) if mibBuilder.loadTexts: acSonetPathRDITable.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDITable.setDescription('The SONET/SDH Path RDI Table.') acSonetPathRDIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDINodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDISlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDIPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathRDIPath")) if mibBuilder.loadTexts: acSonetPathRDIEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIEntry.setDescription('An entry in the SONET/SDH Path RDI Table.') acSonetPathRDINodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathRDINodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDINodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathRDISlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathRDISlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDISlot.setDescription('The physical slot number of the port.') acSonetPathRDIPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathRDIPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIPort.setDescription('The physical port number of the port.') acSonetPathRDIPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathRDIPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIPath.setDescription('The STS path instance for this port') acSonetPathRDIOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rdi", 1), ("erdi", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathRDIOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIOpMode.setDescription('The Remote Defect Indiction signals have undergone a number of changes over the years, and now encompass two or even three different versions. See GR-253 6.2.1.3.2 for more information.') acSonetPathTIMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5), ) if mibBuilder.loadTexts: acSonetPathTIMTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMTable.setDescription('The SONET/SDH Path Trace Identifier Mismatch Table.') acSonetPathTIMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathTIMPath")) if mibBuilder.loadTexts: acSonetPathTIMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMEntry.setDescription('An entry in the SONET/SDH Path Trace Identifier Mismatch Table.') acSonetPathTIMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathTIMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathTIMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathTIMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMSlot.setDescription('The physical slot number of the port.') acSonetPathTIMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathTIMPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMPort.setDescription('The physical port number of the port.') acSonetPathTIMPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathTIMPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMPath.setDescription('The path instance of the port.') acSonetPathTIMGenerateEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 5), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMGenerateEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMGenerateEnable.setDescription('Enables the generation of the Path Trace Identifier.') acSonetPathTIMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMDetectEnable.setDescription('Enables the detection of the Path Trace Identifier.') acSonetPathTIMTransmitedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 7), AcTraceString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMTransmitedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMTransmitedString.setDescription('The string that gets sent to the destination.') acSonetPathTIMExpectedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 8), AcTraceString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMExpectedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMExpectedString.setDescription('The expected string that is to be received.') acSonetPathTIMReceivedString = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 9), AcTraceString()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathTIMReceivedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMReceivedString.setDescription('The contents of the string that is received.') acSonetPathTIMFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathTIMFailure.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMFailure.setDescription('Failure declared of the Path Trace Identifier.') acSonetPathTIMFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("void", 0), ("t64", 1), ("t64-crlf", 2), ("t16", 3), ("t16-msb1", 4), ("t16-crc7", 5))).clone('void')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMFormat.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMFormat.setDescription('Format of Path Trace buffer.') acSonetPathTIMMismatchZeros = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 12), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathTIMMismatchZeros.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMMismatchZeros.setDescription('Controls whether a received trace message containing all zeros can cause a mismatch defect.') acSonetPathPLMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6), ) if mibBuilder.loadTexts: acSonetPathPLMTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMTable.setDescription('The SONET/SDH Path Payload Label Mismatch Table.') acSonetPathPLMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathPLMPath")) if mibBuilder.loadTexts: acSonetPathPLMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMEntry.setDescription('An entry in the SONET/SDH Path Payload Label Mismatch Table.') acSonetPathPLMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathPLMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathPLMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathPLMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMSlot.setDescription('The physical slot number of the port.') acSonetPathPLMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathPLMPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMPort.setDescription('The physical port number of the port.') acSonetPathPLMPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathPLMPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMPath.setDescription('The path instance of the port.') acSonetPathPLMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathPLMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMDetectEnable.setDescription('Enables the detection of the Path Payload Label.') acSonetPathPLMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathPLMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMTransmitedValue.setDescription('The Path Payload Label that gets sent to the destination. See GR-253 Tables 3-2, 3-3.') acSonetPathPLMExpectedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathPLMExpectedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMExpectedValue.setDescription('The expected Path Payload Label that is to be received. See GR-253 Tables 3-2, 3-3.') acSonetPathPLMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathPLMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMReceivedValue.setDescription('The contents of the Path Payload Label that is received. See GR-253 Tables 3-2, 3-3.') acSonetPathPLMMismatchFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathPLMMismatchFailure.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMMismatchFailure.setDescription('Mismatch failure declared for the Path Payload Label.') acSonetPathPLMUnequipped = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathPLMUnequipped.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMUnequipped.setDescription('Unequipped failure declared for the Path Payload Label.') acSonetFarEndPath15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1), ) if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalTable.setDescription('The SONET/SDH FarEndPath 15Minute Interval table.') acSonetFarEndPath15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPath15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndPath 15Minute Interval table.') acSonetFarEndPath15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndPath15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndPath15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndPath15MinuteIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPath.setDescription('The STS Path for which the set of statistics is available.') acSonetFarEndPath15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetFarEndPath15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this far end 15 minute interval is valid.') acSonetFarEndPath15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for far end 15 minute interval.') acSonetFarEndPath15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPath15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPath15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPath15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndPath in the current 15 minute interval.') acSonetFarEndPathDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2), ) if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalTable.setDescription('The SONET/SDH FarEndPath Day Interval table.') acSonetFarEndPathDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathDayIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndPath Day Interval table.') acSonetFarEndPathDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndPathDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndPathDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndPathDayIntervalPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPath.setDescription('The STS Path for which the set of statistics is available.') acSonetFarEndPathDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetFarEndPathDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalValidStats.setDescription('This variable indicates if the data for this far end day interval is valid.') acSonetFarEndPathDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalResetStats.setDescription('This flag is used to reset the data for far end day interval.') acSonetFarEndPathDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPathDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPathDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') acSonetFarEndPathDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndPath in the current 15 minute interval.') acSonetFarEndPathThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3), ) if mibBuilder.loadTexts: acSonetFarEndPathThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdTable.setDescription('The SONET/SDH FarEndPath Threshold Table.') acSonetFarEndPathThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdPath"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndPathThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetFarEndPathThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdEntry.setDescription('An entry in the SONET/SDH FarEndPath Threshold Table.') acSonetFarEndPathThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndPathThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSlot.setDescription('The physical slot number of the port.') acSonetFarEndPathThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdPort.setDescription('The physical port number of the port.') acSonetFarEndPathThresholdPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdPath.setDescription('The STS Path for which the set of statistics is available.') acSonetFarEndPathThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndPathThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetFarEndPathThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndPathThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetFarEndPathThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetFarEndPathThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetFarEndPathThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetFarEndPathThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndPathThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetVT15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1), ) if mibBuilder.loadTexts: acSonetVT15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalTable.setDescription('The SONET/SDH VT 15Minute Interval table.') acSonetVT15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVT15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetVT15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH VT 15Minute Interval table.') acSonetVT15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVT15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetVT15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetVT15MinuteIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalVT.setDescription('The VT for which the set of statistics is available.') acSonetVT15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetVT15MinuteIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 192))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetVTCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects and failures simultaneously. The acSonetVTNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetVTNoDefect 2 acSonetVTLOP 4 acSonetVTPathAIS 8 acSonetVTPathRDI 16 acSonetVTPathRFI 32 acSonetVTUnequipped 64 acSonetVTPayloadLabelMismatch') acSonetVT15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this VT 15 minute interval is valid.') acSonetVT15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 9), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for this VT 15 minute interval.') acSonetVT15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH VT in the current 15 minute interval.') acSonetVT15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH VT in the current 15 minute interval.') acSonetVT15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH VT in the current 15 minute interval.') acSonetVT15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a VT in the current 15 minute interval.') acSonetVT15MinuteIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 14), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVT15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalBER.setDescription('The counter associated with the BER encountered by a VT in the current 15 minute interval. Represents the max BER for the interval when number > 1.') acSonetVTDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2), ) if mibBuilder.loadTexts: acSonetVTDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalTable.setDescription('The SONET/SDH VT Day Interval table.') acSonetVTDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTDayIntervalNumber")) if mibBuilder.loadTexts: acSonetVTDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalEntry.setDescription('An entry in the SONET/SDH VT Day Interval table.') acSonetVTDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetVTDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalPort.setDescription('The physical port number of the port.') acSonetVTDayIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalVT.setDescription('The VT for which the set of statistics is available.') acSonetVTDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetVTDayIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 192))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetVTCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects and failures simultaneously. The acSonetVTNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetVTNoDefect 2 acSonetVTLOP 4 acSonetVTPathAIS 8 acSonetVTPathRDI 16 acSonetVTPathRFI 32 acSonetVTUnequipped 64 acSonetVTPayloadLabelMismatch') acSonetVTDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalValidStats.setDescription('This variable indicates if the data for this VT Day interval is valid.') acSonetVTDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalResetStats.setDescription('This flag is used to reset the data for this VT Day interval.') acSonetVTDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH VT in the last day interval.') acSonetVTDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH VT in the last day interval.') acSonetVTDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH VT in the last day interval.') acSonetVTDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a VT in the last day interval.') acSonetVTDayIntervalBER = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetVTDayIntervalBER.setDescription('The counter associated with the max BER encountered by a VT in a day.') acSonetVTThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3), ) if mibBuilder.loadTexts: acSonetVTThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdTable.setDescription('The SONET/SDH VT Threshold Table.') acSonetVTThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetVTThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdEntry.setDescription('An entry in the SONET/SDH VT Threshold Table.') acSonetVTThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSlot.setDescription('The physical slot number of the port.') acSonetVTThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdPort.setDescription('The physical port number of the port.') acSonetVTThresholdVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdVT.setDescription('The VT for which the set of statistics is available.') acSonetVTThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetVTThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetVTThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetVTThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetVTThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetVTThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetVTThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetVTRDITable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4), ) if mibBuilder.loadTexts: acSonetVTRDITable.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDITable.setDescription('The SONET/SDH VT RDI Table.') acSonetVTRDIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDINodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDISlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDIPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTRDIVT")) if mibBuilder.loadTexts: acSonetVTRDIEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIEntry.setDescription('An entry in the SONET/SDH VT RDI Table.') acSonetVTRDINodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTRDINodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDINodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTRDISlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTRDISlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDISlot.setDescription('The physical slot number of the port.') acSonetVTRDIPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTRDIPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIPort.setDescription('The physical port number of the port.') acSonetVTRDIVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTRDIVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIVT.setDescription('The Virtual Tributary (VT) instance.') acSonetVTRDIOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rdi", 1), ("erdi", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTRDIOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIOpMode.setDescription('The Remote Defect Indiction signals have undergone a number of changes over the years, and now encompass two or even three different versions. See GR-253 6.2.1.3.3 for more information.') acSonetVTPLMTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5), ) if mibBuilder.loadTexts: acSonetVTPLMTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMTable.setDescription('The SONET/SDH VT Payload Label Mismatch Table.') acSonetVTPLMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTPLMVT")) if mibBuilder.loadTexts: acSonetVTPLMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMEntry.setDescription('An entry in the SONET/SDH VT Payload Label Mismatch Table.') acSonetVTPLMNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTPLMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTPLMSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTPLMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMSlot.setDescription('The physical slot number of the port.') acSonetVTPLMPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTPLMPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMPort.setDescription('The physical port number of the port.') acSonetVTPLMVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTPLMVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMVT.setDescription('The Virtual Tributary (VT) instance.') acSonetVTPLMDetectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTPLMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMDetectEnable.setDescription('Enables the detection of the VT Payload Label.') acSonetVTPLMTransmitedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTPLMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMTransmitedValue.setDescription('The VT Payload Label that gets sent to the destination. See GR-253 Tables 3-4.') acSonetVTPLMExpectedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTPLMExpectedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMExpectedValue.setDescription('The expected VT Payload Label that is to be received. See GR-253 Tables 3-4.') acSonetVTPLMReceivedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTPLMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMReceivedValue.setDescription('The contents of the VT Payload Label that is received. See GR-253 Tables 3-4.') acSonetVTPLMMismatchFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTPLMMismatchFailure.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMMismatchFailure.setDescription('Mismatch failure declared for the VT Payload Label.') acSonetVTPLMUnequipped = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTPLMUnequipped.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMUnequipped.setDescription('Unequipped failure declared for the VT Payload Label.') acSonetFarEndVT15MinuteIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1), ) if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalTable.setDescription('The SONET/SDH FarEndVT 15Minute Interval table.') acSonetFarEndVT15MinuteIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVT15MinuteIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndVT 15Minute Interval table.') acSonetFarEndVT15MinuteIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndVT15MinuteIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndVT15MinuteIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndVT15MinuteIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalVT.setDescription('The VT for which the set of statistics is available.') acSonetFarEndVT15MinuteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 98))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') acSonetFarEndVT15MinuteIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this VT FE 15 minute interval is valid.') acSonetFarEndVT15MinuteIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for this VT FE 15 minute interval.') acSonetFarEndVT15MinuteIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVT15MinuteIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVT15MinuteIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVT15MinuteIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndVT in the current 15 minute interval.') acSonetFarEndVTDayIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2), ) if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalTable.setDescription('The SONET/SDH FarEndVT Day Interval table.') acSonetFarEndVTDayIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTDayIntervalNumber")) if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndVT Day Interval table.') acSonetFarEndVTDayIntervalNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndVTDayIntervalSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSlot.setDescription('The physical slot number of the port.') acSonetFarEndVTDayIntervalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalPort.setDescription('The physical port number of the port.') acSonetFarEndVTDayIntervalVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalVT.setDescription('The VT for which the set of statistics is available.') acSonetFarEndVTDayIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 31))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') acSonetFarEndVTDayIntervalValidStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 6), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalValidStats.setDescription('This variable indicates if the data for this VT Day interval is valid.') acSonetFarEndVTDayIntervalResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalResetStats.setDescription('This flag is used to reset the data for this VT Day interval.') acSonetFarEndVTDayIntervalESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVTDayIntervalSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVTDayIntervalCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') acSonetFarEndVTDayIntervalUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndVT in the current 15 minute interval.') acSonetFarEndVTThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3), ) if mibBuilder.loadTexts: acSonetFarEndVTThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdTable.setDescription('The SONET/SDH FarEndVT Threshold Table.') acSonetFarEndVTThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdVT"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetFarEndVTThresholdSelectionNum")) if mibBuilder.loadTexts: acSonetFarEndVTThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdEntry.setDescription('An entry in the SONET/SDH FarEndVT Threshold Table.') acSonetFarEndVTThresholdNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetFarEndVTThresholdSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSlot.setDescription('The physical slot number of the port.') acSonetFarEndVTThresholdPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdPort.setDescription('The physical port number of the port.') acSonetFarEndVTThresholdVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdVT.setDescription('The VT for which the set of statistics is available.') acSonetFarEndVTThresholdSelectionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("minute", 1), ("day", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetFarEndVTThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') acSonetFarEndVTThresholdAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 6), AcAdminStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndVTThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') acSonetFarEndVTThresholdESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdESs.setDescription('The threshold associated with Errored Seconds.') acSonetFarEndVTThresholdSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') acSonetFarEndVTThresholdCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdCVs.setDescription('The threshold associated with Coding Violations.') acSonetFarEndVTThresholdUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetFarEndVTThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') acSonetPortProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4), ) if mibBuilder.loadTexts: acSonetPortProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionTable.setDescription('The SONET/SDH Port Protection table.') acSonetPortProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPortProtectionPort")) if mibBuilder.loadTexts: acSonetPortProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionEntry.setDescription('An entry in the SONET/SDH Port Protection table.') acSonetPortProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPortProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionSlot.setDescription('The physical slot number of the port.') acSonetPortProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPortProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionPort.setDescription('The physical port number of the port.') acSonetPortProtectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("working", 1), ("protection", 2), ("west", 3), ("east", 4), ("match", 5), ("ring", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPortProtectionType.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionType.setDescription('This variable statically defines the purpose of the physical port connection as the working or protection port. It does not convey whether the system has undergone a protection switch.') acSonetLineProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4), ) if mibBuilder.loadTexts: acSonetLineProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionTable.setDescription('The SONET/SDH Line Protection table.') acSonetLineProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetLineProtectionPort")) if mibBuilder.loadTexts: acSonetLineProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionEntry.setDescription('An entry in the SONET/SDH Line Protection table.') acSonetLineProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetLineProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSlot.setDescription('The physical slot number of the port.') acSonetLineProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetLineProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionPort.setDescription('The physical port number of the port.') acSonetLineProtectionArchitecture = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("one-plus-one", 2), ("one-to-one", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionArchitecture.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionArchitecture.setDescription('This variable defines the APS architecture as either 1+1 or 1:1.') acSonetLineProtectionOpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("unidirectional", 1), ("bidirectional", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionOpMode.setDescription('This variable defines the APS mode as either unidirectional or bidirectional.') acSonetLineProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSwitchType.setDescription('This variable defines the APS switch type as either revertive or nonrevertive.') acSonetLineProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching.') acSonetLineProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 9)).clone(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching.') acSonetLineProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 9), TruthValue().clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionActiveTraffic.setDescription('This variable indicates when active traffic is on this line.') acSonetLineProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 10), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionProtectionSwitch.setDescription('This variable indicates when a protection switch is currently affecting this line.') acSonetLineProtectionFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 11), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionFail.setDescription('This variable indicates when a protection switching failure has taken place. See GR-253, 6.2.1.1.6.') acSonetLineProtectionChannelMismatchFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 12), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionChannelMismatchFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionChannelMismatchFail.setDescription('This variable indicates when a protection switching channel mismatch failure has taken place. See GR-253, 6.2.1.1.6.') acSonetLineProtectionModeMismatchFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 13), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionModeMismatchFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionModeMismatchFail.setDescription('This variable indicates when a protection switching mode mismatch failure has taken place. See GR-253, 6.2.1.1.6.') acSonetLineProtectionFarEndLineFail = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 14), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetLineProtectionFarEndLineFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionFarEndLineFail.setDescription('This variable indicates when a protection switching far-end protection-line failure has taken place. See GR-253, 6.2.1.1.6.') acSonetLineProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(300, 720))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionWTRTime.setDescription('This variable defines the APS Wait To Restore time. The time has one second granularity and may have a value in the range from 300 seconds (5 minutes) to 720 seconds (12 minutes).') acSonetLineProtectionManCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6), ("exercise", 7), ("lockout-working", 8), ("clear-lockout-working", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetLineProtectionManCommand.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionManCommand.setDescription('This variable defines the APS manually initiated commands.') acSonetPathProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7), ) if mibBuilder.loadTexts: acSonetPathProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionTable.setDescription('The SONET/SDH Path Protection table.') acSonetPathProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetPathProtectionPath")) if mibBuilder.loadTexts: acSonetPathProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionEntry.setDescription('An entry in the SONET/SDH Path Protection table.') acSonetPathProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetPathProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSlot.setDescription('The physical slot number of the port.') acSonetPathProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionPort.setDescription('The physical port number of the port.') acSonetPathProtectionPath = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetPathProtectionPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionPath.setDescription('The STS-1 path for the port.') acSonetPathProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSwitchType.setDescription('This variable defines the path switch type as either revertive or nonrevertive.') acSonetPathProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching. The value used is the exponent to a power of 10, so 3 means 10E-3.') acSonetPathProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 9)).clone(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching. The value used is the exponent to a power of 10, so 6 means 10E-6.') acSonetPathProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionActiveTraffic.setDescription('This variable indicates when ODP or UPSR active traffic is on this path.') acSonetPathProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 9), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionProtectionSwitch.setDescription('This variable indicates when either a UPSR or an ODP protection switch is currently affecting this path.') acSonetPathProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTRTime.setDescription('This variable defines the ODP or UPSR Wait To Restore time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds(12 minutes).') acSonetPathProtectionWTITime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionWTITime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTITime.setDescription('This variable defines the ODP Wait To Idle time. The time has one second granularity and may have a value in the range from 1 to 50 seconds.') acSonetPathProtectionWTCTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionWTCTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTCTime.setDescription('This variable defines the ODP Wait To Clear time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds (12 minutes).') acSonetPathProtectionWTRelTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionWTRelTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTRelTime.setDescription('This variable defines the ODP Wait To Release time. The time has one second granularity and may have a value in the range from 1 to 50 seconds.') acSonetPathProtectionManSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6), ("exercise", 7), ("lockout-working", 8), ("clear-lockout-working", 9), ("extra-traffic", 10)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionManSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionManSwitch.setDescription('This variable defines the ODP and UPSR manually initiated commands. Entries 7..10 are used in ODP only.') acSonetPathProtectionSwitchOpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("idle", 1), ("bridged", 2), ("switched", 3), ("passthrough", 4), ("extra-traffic", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetPathProtectionSwitchOpStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSwitchOpStatus.setDescription('This variable defines the current switch condition of an ODP path.') acSonetPathProtectionProtectionMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("odp", 1), ("upsr", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetPathProtectionProtectionMode.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathProtectionProtectionMode.setDescription(' !! This object *MUST* be set before any other object is accessed. !! This is the type of protection switching to be used if independent path level protection switching is enabled. This is similar to the acTimeSlotPathProtectionMode object that resides in the timeslot table. Refer to it for a description of the enumerations.') acSonetVTProtectionTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6), ) if mibBuilder.loadTexts: acSonetVTProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionTable.setDescription('The SONET/SDH VT Protection table.') acSonetVTProtectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1), ).setIndexNames((0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionNodeId"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionSlot"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionPort"), (0, "APPIAN-PPORT-SONET-MIB", "acSonetVTProtectionVT")) if mibBuilder.loadTexts: acSonetVTProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionEntry.setDescription('An entry in the SONET/SDH VT Protection table.') acSonetVTProtectionNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 1), AcNodeId()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') acSonetVTProtectionSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 2), AcSlotNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSlot.setDescription('The physical slot number of the port.') acSonetVTProtectionPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 3), AcPortNumber()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionPort.setDescription('The physical port number of the port.') acSonetVTProtectionVT = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acSonetVTProtectionVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionVT.setDescription('The VT path instance for the port.') acSonetVTProtectionSwitchType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSwitchType.setDescription('This variable defines the VT path switch type as either revertive or nonrevertive.') acSonetVTProtectionSFThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 5)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching.') acSonetVTProtectionSDThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 8)).clone(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching.') acSonetVTProtectionProtectionSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionProtectionSwitch.setDescription('This variable indicates when a protection switch is currently affecting this path.') acSonetVTProtectionWTRTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 720))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionWTRTime.setDescription('This variable defines the UPSR Wait To Restore time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds(12 minutes).') acSonetVTProtectionManSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("clear", 1), ("lockout-protection", 2), ("force-working", 3), ("force-protection", 4), ("manual-working", 5), ("manual-protection", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: acSonetVTProtectionManSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionManSwitch.setDescription('This variable defines the UPSR manually initiated commands.') acSonetVTProtectionActiveTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 11), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: acSonetVTProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionActiveTraffic.setDescription('This variable indicates when UPSR active traffic is on this path.') mibBuilder.exportSymbols("APPIAN-PPORT-SONET-MIB", acSonetPathTIMFormat=acSonetPathTIMFormat, acSonetFarEndVTThresholdPort=acSonetFarEndVTThresholdPort, acSonetPathProtectionProtectionMode=acSonetPathProtectionProtectionMode, acSonetSectionSSMEntry=acSonetSectionSSMEntry, acSonetPathProtectionSlot=acSonetPathProtectionSlot, acSonetFarEndPathDayIntervalValidStats=acSonetFarEndPathDayIntervalValidStats, acSonetVTDayIntervalVT=acSonetVTDayIntervalVT, acSonetFarEndVT15MinuteIntervalPort=acSonetFarEndVT15MinuteIntervalPort, acSonetSection15MinuteIntervalPort=acSonetSection15MinuteIntervalPort, acSonetPortValidIntervals=acSonetPortValidIntervals, acSonetFarEndPath15MinuteIntervalNodeId=acSonetFarEndPath15MinuteIntervalNodeId, acSonetVT15MinuteIntervalSESs=acSonetVT15MinuteIntervalSESs, acSonetPath15MinuteIntervalESs=acSonetPath15MinuteIntervalESs, acSonetSectionSSMNodeId=acSonetSectionSSMNodeId, acSonetLine15MinuteIntervalUASs=acSonetLine15MinuteIntervalUASs, acSonetSection=acSonetSection, acSonetPath=acSonetPath, acSonetPathThresholdNodeId=acSonetPathThresholdNodeId, acSonetPathDayIntervalUASs=acSonetPathDayIntervalUASs, acSonetPortOpStatus=acSonetPortOpStatus, acSonetPath15MinuteIntervalSlot=acSonetPath15MinuteIntervalSlot, acSonetVTRDIVT=acSonetVTRDIVT, acSonetVTThresholdSlot=acSonetVTThresholdSlot, acSonetVTThresholdSelectionNum=acSonetVTThresholdSelectionNum, acSonetPortNodeId=acSonetPortNodeId, acSonetPathDayIntervalBER=acSonetPathDayIntervalBER, acSonetPathTIMSlot=acSonetPathTIMSlot, acSonetFarEndPathThresholdCVs=acSonetFarEndPathThresholdCVs, acSonetFarEndVTDayIntervalVT=acSonetFarEndVTDayIntervalVT, acSonetPortProtectionEntry=acSonetPortProtectionEntry, acSonetFarEndVT15MinuteIntervalSlot=acSonetFarEndVT15MinuteIntervalSlot, acSonetPathThresholdUASs=acSonetPathThresholdUASs, acSonetVT15MinuteIntervalNodeId=acSonetVT15MinuteIntervalNodeId, acSonetVTDayIntervalNodeId=acSonetVTDayIntervalNodeId, acSonetVTProtectionEntry=acSonetVTProtectionEntry, acSonetVTDayIntervalSlot=acSonetVTDayIntervalSlot, acSonetVTProtectionSlot=acSonetVTProtectionSlot, acSonetFarEndPathDayIntervalPath=acSonetFarEndPathDayIntervalPath, acSonetVTPLMExpectedValue=acSonetVTPLMExpectedValue, acSonetFarEndVTThresholdSelectionNum=acSonetFarEndVTThresholdSelectionNum, acSonetPortProtectionType=acSonetPortProtectionType, acSonetLineProtectionManCommand=acSonetLineProtectionManCommand, acSonetFarEndLine15MinuteIntervalESs=acSonetFarEndLine15MinuteIntervalESs, acSonetFarEndVTDayIntervalNumber=acSonetFarEndVTDayIntervalNumber, acSonetPathTIMDetectEnable=acSonetPathTIMDetectEnable, acSonetVTProtectionActiveTraffic=acSonetVTProtectionActiveTraffic, acSonetVTRDIPort=acSonetVTRDIPort, acSonetPath15MinuteIntervalResetStats=acSonetPath15MinuteIntervalResetStats, acSonetThresholdSlot=acSonetThresholdSlot, acSonetPath15MinuteIntervalUASs=acSonetPath15MinuteIntervalUASs, acSonetSectionDayIntervalESs=acSonetSectionDayIntervalESs, acSonetFarEndVTThresholdSESs=acSonetFarEndVTThresholdSESs, acSonetLineDayIntervalSESs=acSonetLineDayIntervalSESs, acSonetLineProtectionOpMode=acSonetLineProtectionOpMode, acSonetVT15MinuteIntervalStatus=acSonetVT15MinuteIntervalStatus, acSonetFarEndVTDayIntervalValidStats=acSonetFarEndVTDayIntervalValidStats, acSonetFarEndVTDayIntervalCVs=acSonetFarEndVTDayIntervalCVs, acSonetDCCSlot=acSonetDCCSlot, acSonetFarEndLineThresholdESs=acSonetFarEndLineThresholdESs, acSonetVTThresholdEntry=acSonetVTThresholdEntry, acSonetLineDayIntervalUASs=acSonetLineDayIntervalUASs, acSonetPathRDIOpMode=acSonetPathRDIOpMode, acSonetPathProtectionWTRelTime=acSonetPathProtectionWTRelTime, acSonetPathTIMNodeId=acSonetPathTIMNodeId, acSonetVTDayIntervalTable=acSonetVTDayIntervalTable, acSonetPathPLMEntry=acSonetPathPLMEntry, acSonetPathThresholdCVs=acSonetPathThresholdCVs, acSonetFarEndPathDayIntervalResetStats=acSonetFarEndPathDayIntervalResetStats, acSonetPathProtectionPath=acSonetPathProtectionPath, acSonetFarEndVTDayIntervalSlot=acSonetFarEndVTDayIntervalSlot, acSonetVT15MinuteIntervalNumber=acSonetVT15MinuteIntervalNumber, acSonetFarEndLineDayIntervalUASs=acSonetFarEndLineDayIntervalUASs, acSonetLineThresholdCVs=acSonetLineThresholdCVs, acSonetVTDayIntervalBER=acSonetVTDayIntervalBER, acSonetFarEndVTDayIntervalResetStats=acSonetFarEndVTDayIntervalResetStats, acSonetLineProtectionModeMismatchFail=acSonetLineProtectionModeMismatchFail, acSonetFarEndLineThresholdPort=acSonetFarEndLineThresholdPort, acSonetFarEndLineDayIntervalCVs=acSonetFarEndLineDayIntervalCVs, acSonetPathDayIntervalCVs=acSonetPathDayIntervalCVs, acSonetPathDayIntervalEntry=acSonetPathDayIntervalEntry, acSonetFarEndVTDayIntervalUASs=acSonetFarEndVTDayIntervalUASs, acSonetFarEndPathDayIntervalSESs=acSonetFarEndPathDayIntervalSESs, acSonetPortOpCode=acSonetPortOpCode, acSonetVTProtectionSwitchType=acSonetVTProtectionSwitchType, acSonetFarEndLineDayIntervalESs=acSonetFarEndLineDayIntervalESs, acSonetFarEndVT15MinuteIntervalUASs=acSonetFarEndVT15MinuteIntervalUASs, acSonetPathDayIntervalStatus=acSonetPathDayIntervalStatus, acSonetFarEndPath15MinuteIntervalSESs=acSonetFarEndPath15MinuteIntervalSESs, acSonetVT15MinuteIntervalSlot=acSonetVT15MinuteIntervalSlot, acSonetPathTIMReceivedString=acSonetPathTIMReceivedString, acSonetLine=acSonetLine, acSonetFarEndVTDayIntervalPort=acSonetFarEndVTDayIntervalPort, acSonetVTRDITable=acSonetVTRDITable, acSonetFarEndLine15MinuteIntervalEntry=acSonetFarEndLine15MinuteIntervalEntry, acSonetPathProtectionWTCTime=acSonetPathProtectionWTCTime, acSonetFarEndPath15MinuteIntervalPath=acSonetFarEndPath15MinuteIntervalPath, acSonetFarEndVTThresholdCVs=acSonetFarEndVTThresholdCVs, acSonetSection15MinuteIntervalTable=acSonetSection15MinuteIntervalTable, acSonetPathProtectionTable=acSonetPathProtectionTable, acSonetLineProtectionChannelMismatchFail=acSonetLineProtectionChannelMismatchFail, acSonetVTThresholdUASs=acSonetVTThresholdUASs, acSonetVTDayIntervalCVs=acSonetVTDayIntervalCVs, acSonetPathPLMMismatchFailure=acSonetPathPLMMismatchFailure, acSonetFarEndLine15MinuteIntervalSlot=acSonetFarEndLine15MinuteIntervalSlot, acSonetFarEndVTThresholdUASs=acSonetFarEndVTThresholdUASs, acSonetLineProtectionTable=acSonetLineProtectionTable, acSonetPortEntry=acSonetPortEntry, acSonetFarEndLineThresholdEntry=acSonetFarEndLineThresholdEntry, acSonetLineDayIntervalCVs=acSonetLineDayIntervalCVs, acSonetSection15MinuteIntervalResetStats=acSonetSection15MinuteIntervalResetStats, acSonetVTThresholdPort=acSonetVTThresholdPort, acSonetVTProtectionSFThreshold=acSonetVTProtectionSFThreshold, acSonetDCCAppianEnable=acSonetDCCAppianEnable, acSonetSectionDayIntervalNumber=acSonetSectionDayIntervalNumber, acSonetLineDayIntervalNodeId=acSonetLineDayIntervalNodeId, acSonetVTProtectionNodeId=acSonetVTProtectionNodeId, acSonetFarEndPathDayIntervalUASs=acSonetFarEndPathDayIntervalUASs, acSonetFarEndVTDayIntervalSESs=acSonetFarEndVTDayIntervalSESs, acSonetLineThresholdPort=acSonetLineThresholdPort, acSonetPortRingName=acSonetPortRingName, acSonetSectionThresholdTable=acSonetSectionThresholdTable, acSonetPathThresholdPort=acSonetPathThresholdPort, acSonetLine15MinuteIntervalPort=acSonetLine15MinuteIntervalPort, acSonetSectionTIMSlot=acSonetSectionTIMSlot, acSonetFarEndLine15MinuteIntervalPort=acSonetFarEndLine15MinuteIntervalPort, acSonetVT15MinuteIntervalEntry=acSonetVT15MinuteIntervalEntry, acSonetFarEndLine=acSonetFarEndLine, acSonetLineThresholdNodeId=acSonetLineThresholdNodeId, acSonetVTProtectionManSwitch=acSonetVTProtectionManSwitch, acSonetFarEndVT=acSonetFarEndVT, acSonetSectionTIMDetectEnable=acSonetSectionTIMDetectEnable, acSonetPortProtectionNodeId=acSonetPortProtectionNodeId, acSonetPathProtectionActiveTraffic=acSonetPathProtectionActiveTraffic, acSonetPortResetAllPMregs=acSonetPortResetAllPMregs, acSonetPortConnectionType=acSonetPortConnectionType, acSonetVTDayIntervalResetStats=acSonetVTDayIntervalResetStats, acSonetFarEndPathThresholdEntry=acSonetFarEndPathThresholdEntry, acSonetLine15MinuteIntervalBER=acSonetLine15MinuteIntervalBER, acSonetDCCSectionEnable=acSonetDCCSectionEnable, acSonetFarEndPathThresholdUASs=acSonetFarEndPathThresholdUASs, acSonetPathTIMTable=acSonetPathTIMTable, acSonetVTPLMVT=acSonetVTPLMVT, acSonetPathDayIntervalPort=acSonetPathDayIntervalPort, acSonetSectionSSMReceivedValue=acSonetSectionSSMReceivedValue, acSonetFarEndLineThresholdSlot=acSonetFarEndLineThresholdSlot, acSonetSectionDayIntervalResetStats=acSonetSectionDayIntervalResetStats, acSonetVTProtectionPort=acSonetVTProtectionPort, acSonetLineDayIntervalPort=acSonetLineDayIntervalPort, acSonetLineDayIntervalTable=acSonetLineDayIntervalTable, acSonetFarEndVTThresholdEntry=acSonetFarEndVTThresholdEntry, acSonetPathThresholdSlot=acSonetPathThresholdSlot, acSonetPath15MinuteIntervalStatus=acSonetPath15MinuteIntervalStatus, acSonetFarEndPath15MinuteIntervalNumber=acSonetFarEndPath15MinuteIntervalNumber, acSonetPortProtectionPort=acSonetPortProtectionPort, acSonetVTPLMTable=acSonetVTPLMTable, acSonetFarEndLine15MinuteIntervalTable=acSonetFarEndLine15MinuteIntervalTable, acSonetFarEndPath=acSonetFarEndPath, acSonetPathThresholdTable=acSonetPathThresholdTable, acSonetFarEndVT15MinuteIntervalValidStats=acSonetFarEndVT15MinuteIntervalValidStats, acSonetFarEndPathDayIntervalTable=acSonetFarEndPathDayIntervalTable, acSonetSectionDayIntervalTable=acSonetSectionDayIntervalTable, acSonetDCCPort=acSonetDCCPort, acSonetSectionTIMExpectedString=acSonetSectionTIMExpectedString, acSonetSectionTIMFailure=acSonetSectionTIMFailure, acSonetSectionSSMDetectEnable=acSonetSectionSSMDetectEnable, acSonetDCCAppianFail=acSonetDCCAppianFail, acSonetLineProtectionSwitchType=acSonetLineProtectionSwitchType, acSonetPathDayIntervalTable=acSonetPathDayIntervalTable, acSonetFarEndPath15MinuteIntervalResetStats=acSonetFarEndPath15MinuteIntervalResetStats, acSonetPathTIMEntry=acSonetPathTIMEntry, acSonetVTDayIntervalPort=acSonetVTDayIntervalPort, acSonetLineDayIntervalValidStats=acSonetLineDayIntervalValidStats, acSonetFarEndLineDayIntervalEntry=acSonetFarEndLineDayIntervalEntry, acSonetLineProtectionNodeId=acSonetLineProtectionNodeId, acSonetSection15MinuteIntervalNodeId=acSonetSection15MinuteIntervalNodeId, acSonetPathDayIntervalPath=acSonetPathDayIntervalPath, acSonetSectionTIMReceivedString=acSonetSectionTIMReceivedString, acSonetPathProtectionWTRTime=acSonetPathProtectionWTRTime, acSonetFarEndLine15MinuteIntervalResetStats=acSonetFarEndLine15MinuteIntervalResetStats, acSonetFarEndLineThresholdUASs=acSonetFarEndLineThresholdUASs, acSonetFarEndLine15MinuteIntervalSESs=acSonetFarEndLine15MinuteIntervalSESs, acSonetFarEndLineDayIntervalNodeId=acSonetFarEndLineDayIntervalNodeId, acSonetFarEndVT15MinuteIntervalResetStats=acSonetFarEndVT15MinuteIntervalResetStats, acSonetSection15MinuteIntervalCVs=acSonetSection15MinuteIntervalCVs, acSonetLineDayIntervalStatus=acSonetLineDayIntervalStatus, acSonetLine15MinuteIntervalESs=acSonetLine15MinuteIntervalESs, acSonetPathThresholdSelectionNum=acSonetPathThresholdSelectionNum, acSonetPathRDINodeId=acSonetPathRDINodeId, acSonetLineThresholdSelectionNum=acSonetLineThresholdSelectionNum, acSonetFarEndLineThresholdNodeId=acSonetFarEndLineThresholdNodeId, acSonetFarEndLineThresholdSelectionNum=acSonetFarEndLineThresholdSelectionNum, acSonetFarEndVT15MinuteIntervalEntry=acSonetFarEndVT15MinuteIntervalEntry, acSonetPortTimeElapsed=acSonetPortTimeElapsed, acSonetPathRDIPort=acSonetPathRDIPort, acSonetPortAdminStatus=acSonetPortAdminStatus, acSonetSection15MinuteIntervalESs=acSonetSection15MinuteIntervalESs, acSonetSectionDayIntervalEntry=acSonetSectionDayIntervalEntry, acSonetLineProtectionSFThreshold=acSonetLineProtectionSFThreshold, acSonetLineDayIntervalResetStats=acSonetLineDayIntervalResetStats, acSonetLineProtectionProtectionSwitch=acSonetLineProtectionProtectionSwitch, acSonetVT15MinuteIntervalUASs=acSonetVT15MinuteIntervalUASs, acSonetLine15MinuteIntervalSlot=acSonetLine15MinuteIntervalSlot, acSonetLine15MinuteIntervalTable=acSonetLine15MinuteIntervalTable, acSonetSectionSSMSlot=acSonetSectionSSMSlot, acSonetLine15MinuteIntervalCVs=acSonetLine15MinuteIntervalCVs, acSonetLineThresholdSESs=acSonetLineThresholdSESs, acSonetPathProtectionNodeId=acSonetPathProtectionNodeId, acSonetDCCTable=acSonetDCCTable, acSonetPath15MinuteIntervalCVs=acSonetPath15MinuteIntervalCVs, acSonetFarEndVTThresholdNodeId=acSonetFarEndVTThresholdNodeId, acSonetVTPLMUnequipped=acSonetVTPLMUnequipped, acSonetPortTransmitterEnable=acSonetPortTransmitterEnable, acSonetLineDayIntervalEntry=acSonetLineDayIntervalEntry, acSonetVT15MinuteIntervalResetStats=acSonetVT15MinuteIntervalResetStats, acSonetPathProtectionProtectionSwitch=acSonetPathProtectionProtectionSwitch, acSonetPortRingIdentifier=acSonetPortRingIdentifier, acSonetFarEndPathThresholdSESs=acSonetFarEndPathThresholdSESs, acSonetPathThresholdEntry=acSonetPathThresholdEntry, acSonetPathProtectionSwitchType=acSonetPathProtectionSwitchType, acSonetFarEndPathThresholdPort=acSonetFarEndPathThresholdPort, acSonetSectionTIMTable=acSonetSectionTIMTable, acSonetFarEndPathDayIntervalEntry=acSonetFarEndPathDayIntervalEntry, acSonetLineDayIntervalBER=acSonetLineDayIntervalBER, acSonetFarEndLine15MinuteIntervalNodeId=acSonetFarEndLine15MinuteIntervalNodeId, acSonetSectionThresholdSESs=acSonetSectionThresholdSESs, acSonetPath15MinuteIntervalPath=acSonetPath15MinuteIntervalPath, acSonetSectionDayIntervalPort=acSonetSectionDayIntervalPort, acSonetVTProtectionSDThreshold=acSonetVTProtectionSDThreshold, acSonetSectionThresholdCVs=acSonetSectionThresholdCVs, acSonetLineThresholdTable=acSonetLineThresholdTable, acSonetSectionTIMFormat=acSonetSectionTIMFormat, acSonetFarEndLineThresholdAdminStatus=acSonetFarEndLineThresholdAdminStatus, acSonetPathTIMGenerateEnable=acSonetPathTIMGenerateEnable, acSonetFarEndLineDayIntervalSESs=acSonetFarEndLineDayIntervalSESs, acSonetFarEndPath15MinuteIntervalEntry=acSonetFarEndPath15MinuteIntervalEntry, acSonetObjectsVT=acSonetObjectsVT, acSonetSectionDayIntervalValidStats=acSonetSectionDayIntervalValidStats, acSonetThresholdPort=acSonetThresholdPort, acSonetLineProtectionSDThreshold=acSonetLineProtectionSDThreshold, acSonetLineProtectionArchitecture=acSonetLineProtectionArchitecture, acSonetFarEndPathDayIntervalESs=acSonetFarEndPathDayIntervalESs, acSonetFarEndLineDayIntervalSlot=acSonetFarEndLineDayIntervalSlot, acSonetPathTIMMismatchZeros=acSonetPathTIMMismatchZeros, acSonetVTPLMMismatchFailure=acSonetVTPLMMismatchFailure, acSonetFarEndPath15MinuteIntervalCVs=acSonetFarEndPath15MinuteIntervalCVs, acSonetSectionDayIntervalSESs=acSonetSectionDayIntervalSESs, acSonetVT15MinuteIntervalCVs=acSonetVT15MinuteIntervalCVs, acSonetPathProtectionManSwitch=acSonetPathProtectionManSwitch, acSonetVTProtectionWTRTime=acSonetVTProtectionWTRTime, acSonetPort=acSonetPort, acSonetPortSlot=acSonetPortSlot, acSonetPathPLMNodeId=acSonetPathPLMNodeId, acSonetFarEndPathDayIntervalNumber=acSonetFarEndPathDayIntervalNumber, acSonetSectionThresholdNodeId=acSonetSectionThresholdNodeId) mibBuilder.exportSymbols("APPIAN-PPORT-SONET-MIB", acSonetSectionDayIntervalCVs=acSonetSectionDayIntervalCVs, acSonetVTDayIntervalStatus=acSonetVTDayIntervalStatus, acSonetLineProtectionFarEndLineFail=acSonetLineProtectionFarEndLineFail, acSonetPathThresholdSESs=acSonetPathThresholdSESs, acSonetSectionDayIntervalSEFSs=acSonetSectionDayIntervalSEFSs, acSonetSectionSSMTable=acSonetSectionSSMTable, acSonetPortMediumType=acSonetPortMediumType, acSonetLineDayIntervalSlot=acSonetLineDayIntervalSlot, acSonetFarEndPath15MinuteIntervalTable=acSonetFarEndPath15MinuteIntervalTable, acSonetLineProtectionEntry=acSonetLineProtectionEntry, acSonetPathProtectionSwitchOpStatus=acSonetPathProtectionSwitchOpStatus, acSonetFarEndVT15MinuteIntervalNumber=acSonetFarEndVT15MinuteIntervalNumber, acSonetSectionThresholdEntry=acSonetSectionThresholdEntry, acSonetFarEndPathDayIntervalPort=acSonetFarEndPathDayIntervalPort, acSonetFarEndLine15MinuteIntervalCVs=acSonetFarEndLine15MinuteIntervalCVs, acSonetPathRDITable=acSonetPathRDITable, acSonetVT15MinuteIntervalPort=acSonetVT15MinuteIntervalPort, acSonetVT15MinuteIntervalTable=acSonetVT15MinuteIntervalTable, acSonetFarEndVT15MinuteIntervalSESs=acSonetFarEndVT15MinuteIntervalSESs, acSonetPortProtectionTable=acSonetPortProtectionTable, acSonetSectionDayIntervalSlot=acSonetSectionDayIntervalSlot, acSonetFarEndPathThresholdAdminStatus=acSonetFarEndPathThresholdAdminStatus, acSonetVTDayIntervalEntry=acSonetVTDayIntervalEntry, acSonetThresholdNodeId=acSonetThresholdNodeId, acSonetSectionSSMPort=acSonetSectionSSMPort, acSonetVTDayIntervalESs=acSonetVTDayIntervalESs, acSonetVTPLMDetectEnable=acSonetVTPLMDetectEnable, AcTraceString=AcTraceString, acSonetLineProtectionFail=acSonetLineProtectionFail, acSonetPathTIMPort=acSonetPathTIMPort, acSonetLine15MinuteIntervalValidStats=acSonetLine15MinuteIntervalValidStats, acSonetVTRDISlot=acSonetVTRDISlot, acSonetVTRDIOpMode=acSonetVTRDIOpMode, acSonetPath15MinuteIntervalValidStats=acSonetPath15MinuteIntervalValidStats, acSonetFarEndVTThresholdESs=acSonetFarEndVTThresholdESs, acSonetSectionDayIntervalStatus=acSonetSectionDayIntervalStatus, acSonetVTPLMReceivedValue=acSonetVTPLMReceivedValue, acSonetPathTIMTransmitedString=acSonetPathTIMTransmitedString, acSonetFarEndLineThresholdCVs=acSonetFarEndLineThresholdCVs, acSonetPath15MinuteIntervalNumber=acSonetPath15MinuteIntervalNumber, acSonetPathProtectionPort=acSonetPathProtectionPort, acSonetFarEndPathDayIntervalCVs=acSonetFarEndPathDayIntervalCVs, acSonetLineThresholdESs=acSonetLineThresholdESs, acSonetPathPLMExpectedValue=acSonetPathPLMExpectedValue, acSonetFarEndPath15MinuteIntervalUASs=acSonetFarEndPath15MinuteIntervalUASs, acSonetVTProtectionTable=acSonetVTProtectionTable, acSonetLineThresholdUASs=acSonetLineThresholdUASs, acSonetSectionThresholdSelectionNum=acSonetSectionThresholdSelectionNum, acSonetPathPLMReceivedValue=acSonetPathPLMReceivedValue, acSonetVTThresholdCVs=acSonetVTThresholdCVs, acSonetPathThresholdESs=acSonetPathThresholdESs, acSonetFarEndVTThresholdAdminStatus=acSonetFarEndVTThresholdAdminStatus, acSonetDCCNodeId=acSonetDCCNodeId, acSonetPathDayIntervalValidStats=acSonetPathDayIntervalValidStats, acSonetSectionDayIntervalNodeId=acSonetSectionDayIntervalNodeId, acSonetVT15MinuteIntervalVT=acSonetVT15MinuteIntervalVT, acSonetPortPort=acSonetPortPort, acSonetLineDayIntervalNumber=acSonetLineDayIntervalNumber, acSonetFarEndLineDayIntervalResetStats=acSonetFarEndLineDayIntervalResetStats, acSonetSectionSSMTransmitedValue=acSonetSectionSSMTransmitedValue, acSonetVTDayIntervalUASs=acSonetVTDayIntervalUASs, acSonetVTRDINodeId=acSonetVTRDINodeId, acSonetPathProtectionSFThreshold=acSonetPathProtectionSFThreshold, acSonetFarEndLineDayIntervalTable=acSonetFarEndLineDayIntervalTable, acSonetLineDayIntervalESs=acSonetLineDayIntervalESs, acSonetPortProtectionSlot=acSonetPortProtectionSlot, acSonetFarEndVTThresholdVT=acSonetFarEndVTThresholdVT, acSonetSection15MinuteIntervalNumber=acSonetSection15MinuteIntervalNumber, acSonetLine15MinuteIntervalSESs=acSonetLine15MinuteIntervalSESs, acSonetVTPLMTransmitedValue=acSonetVTPLMTransmitedValue, acSonetVT15MinuteIntervalBER=acSonetVT15MinuteIntervalBER, acSonetVTPLMNodeId=acSonetVTPLMNodeId, acSonetVTThresholdNodeId=acSonetVTThresholdNodeId, acSonetFarEndVTDayIntervalESs=acSonetFarEndVTDayIntervalESs, acSonetFarEndVTDayIntervalEntry=acSonetFarEndVTDayIntervalEntry, acSonetThresholdTable=acSonetThresholdTable, acSonetFarEndPath15MinuteIntervalESs=acSonetFarEndPath15MinuteIntervalESs, acSonetFarEndPathThresholdSlot=acSonetFarEndPathThresholdSlot, acSonetFarEndLineDayIntervalValidStats=acSonetFarEndLineDayIntervalValidStats, acSonetFarEndPathThresholdSelectionNum=acSonetFarEndPathThresholdSelectionNum, acSonetFarEndVTDayIntervalNodeId=acSonetFarEndVTDayIntervalNodeId, acSonetFarEndLineThresholdSESs=acSonetFarEndLineThresholdSESs, acSonetPortResetCurrentPMregs=acSonetPortResetCurrentPMregs, acSonetSection15MinuteIntervalEntry=acSonetSection15MinuteIntervalEntry, acSonetPortTable=acSonetPortTable, acSonetFarEndPathThresholdPath=acSonetFarEndPathThresholdPath, acSonetVTThresholdSESs=acSonetVTThresholdSESs, acSonetPathRDIPath=acSonetPathRDIPath, acSonetFarEndLineDayIntervalNumber=acSonetFarEndLineDayIntervalNumber, acSonetLineProtectionActiveTraffic=acSonetLineProtectionActiveTraffic, acSonetPathPLMTransmitedValue=acSonetPathPLMTransmitedValue, acSonetLineThresholdEntry=acSonetLineThresholdEntry, acSonetSection15MinuteIntervalSESs=acSonetSection15MinuteIntervalSESs, acSonetLine15MinuteIntervalStatus=acSonetLine15MinuteIntervalStatus, acSonetPathDayIntervalSESs=acSonetPathDayIntervalSESs, acSonet=acSonet, acSonetPathPLMSlot=acSonetPathPLMSlot, acSonetVTProtectionVT=acSonetVTProtectionVT, acSonetFarEndLine15MinuteIntervalNumber=acSonetFarEndLine15MinuteIntervalNumber, acSonetFarEndLine15MinuteIntervalValidStats=acSonetFarEndLine15MinuteIntervalValidStats, acSonetVT15MinuteIntervalValidStats=acSonetVT15MinuteIntervalValidStats, acSonetThresholdSESSet=acSonetThresholdSESSet, acSonetSectionTIMGenerateEnable=acSonetSectionTIMGenerateEnable, acSonetVTDayIntervalSESs=acSonetVTDayIntervalSESs, acSonetLineThresholdSlot=acSonetLineThresholdSlot, acSonetPath15MinuteIntervalBER=acSonetPath15MinuteIntervalBER, PYSNMP_MODULE_ID=acSonet, acSonetPortCircuitIdentifier=acSonetPortCircuitIdentifier, acSonetFarEndVTThresholdSlot=acSonetFarEndVTThresholdSlot, acSonetPathPLMDetectEnable=acSonetPathPLMDetectEnable, acSonetFarEndPathThresholdTable=acSonetFarEndPathThresholdTable, acSonetDCCLineEnable=acSonetDCCLineEnable, acSonetSectionThresholdPort=acSonetSectionThresholdPort, acSonetSectionThresholdSEFSs=acSonetSectionThresholdSEFSs, acSonetPath15MinuteIntervalTable=acSonetPath15MinuteIntervalTable, acSonetVTDayIntervalValidStats=acSonetVTDayIntervalValidStats, acSonetPath15MinuteIntervalNodeId=acSonetPath15MinuteIntervalNodeId, acSonetSectionTIMEntry=acSonetSectionTIMEntry, acSonetPathDayIntervalResetStats=acSonetPathDayIntervalResetStats, acSonetSectionTIMTransmitedString=acSonetSectionTIMTransmitedString, acSonetFarEndLineDayIntervalPort=acSonetFarEndLineDayIntervalPort, acSonetLine15MinuteIntervalNodeId=acSonetLine15MinuteIntervalNodeId, acSonetVTDayIntervalNumber=acSonetVTDayIntervalNumber, acSonetPortInvalidIntervals=acSonetPortInvalidIntervals, acSonetPathProtectionWTITime=acSonetPathProtectionWTITime, acSonetPath15MinuteIntervalEntry=acSonetPath15MinuteIntervalEntry, acSonetPathThresholdAdminStatus=acSonetPathThresholdAdminStatus, acSonetFarEndVT15MinuteIntervalTable=acSonetFarEndVT15MinuteIntervalTable, acSonetSectionThresholdESs=acSonetSectionThresholdESs, acSonetPortMediumLineCoding=acSonetPortMediumLineCoding, acSonetPathPLMTable=acSonetPathPLMTable, acSonetVT15MinuteIntervalESs=acSonetVT15MinuteIntervalESs, acSonetFarEndVT15MinuteIntervalVT=acSonetFarEndVT15MinuteIntervalVT, acSonetSection15MinuteIntervalSEFSs=acSonetSection15MinuteIntervalSEFSs, acSonetFarEndVT15MinuteIntervalNodeId=acSonetFarEndVT15MinuteIntervalNodeId, acSonetPortLoopbackConfig=acSonetPortLoopbackConfig, acSonetFarEndPathDayIntervalNodeId=acSonetFarEndPathDayIntervalNodeId, acSonetLineProtectionWTRTime=acSonetLineProtectionWTRTime, acSonetPathDayIntervalNumber=acSonetPathDayIntervalNumber, acSonetVT=acSonetVT, acSonetVTProtectionProtectionSwitch=acSonetVTProtectionProtectionSwitch, acSonetPath15MinuteIntervalSESs=acSonetPath15MinuteIntervalSESs, acSonetVTRDIEntry=acSonetVTRDIEntry, acSonetObjectsPath=acSonetObjectsPath, acSonetVTPLMEntry=acSonetVTPLMEntry, acSonetSection15MinuteIntervalSlot=acSonetSection15MinuteIntervalSlot, acSonetFarEndPath15MinuteIntervalValidStats=acSonetFarEndPath15MinuteIntervalValidStats, acSonetFarEndPathThresholdESs=acSonetFarEndPathThresholdESs, acSonetObjects=acSonetObjects, acSonetFarEndLine15MinuteIntervalUASs=acSonetFarEndLine15MinuteIntervalUASs, acSonetLine15MinuteIntervalNumber=acSonetLine15MinuteIntervalNumber, acSonetFarEndVTDayIntervalTable=acSonetFarEndVTDayIntervalTable, acSonetPathThresholdPath=acSonetPathThresholdPath, acSonetSectionTIMMismatchZeros=acSonetSectionTIMMismatchZeros, acSonetLineProtectionSlot=acSonetLineProtectionSlot, acSonetFarEndPathThresholdNodeId=acSonetFarEndPathThresholdNodeId, acSonetPortMediumLineType=acSonetPortMediumLineType, acSonetLine15MinuteIntervalResetStats=acSonetLine15MinuteIntervalResetStats, acSonetVTPLMSlot=acSonetVTPLMSlot, acSonetPathPLMUnequipped=acSonetPathPLMUnequipped, acSonetSectionTIMNodeId=acSonetSectionTIMNodeId, acSonetDCCSectionFail=acSonetDCCSectionFail, acSonetLine15MinuteIntervalEntry=acSonetLine15MinuteIntervalEntry, acSonetFarEndPath15MinuteIntervalSlot=acSonetFarEndPath15MinuteIntervalSlot, acSonetPathTIMFailure=acSonetPathTIMFailure, acSonetLineProtectionPort=acSonetLineProtectionPort, acSonetSection15MinuteIntervalValidStats=acSonetSection15MinuteIntervalValidStats, acSonetPathDayIntervalNodeId=acSonetPathDayIntervalNodeId, acSonetFarEndVT15MinuteIntervalCVs=acSonetFarEndVT15MinuteIntervalCVs, acSonetFarEndLineThresholdTable=acSonetFarEndLineThresholdTable, acSonetPathRDIEntry=acSonetPathRDIEntry, acSonetPathProtectionSDThreshold=acSonetPathProtectionSDThreshold, acSonetPathPLMPort=acSonetPathPLMPort, acSonetVTThresholdVT=acSonetVTThresholdVT, acSonetPathPLMPath=acSonetPathPLMPath, acSonetVTThresholdESs=acSonetVTThresholdESs, acSonetPathRDISlot=acSonetPathRDISlot, acSonetDCCEntry=acSonetDCCEntry, acSonetThresholdEntry=acSonetThresholdEntry, acSonetSection15MinuteIntervalStatus=acSonetSection15MinuteIntervalStatus, acSonetFarEndVT15MinuteIntervalESs=acSonetFarEndVT15MinuteIntervalESs, acSonetPathTIMExpectedString=acSonetPathTIMExpectedString, acSonetSectionThresholdSlot=acSonetSectionThresholdSlot, acSonetPathDayIntervalSlot=acSonetPathDayIntervalSlot, acSonetFarEndPath15MinuteIntervalPort=acSonetFarEndPath15MinuteIntervalPort, acSonetFarEndVTThresholdTable=acSonetFarEndVTThresholdTable, acSonetVTThresholdAdminStatus=acSonetVTThresholdAdminStatus, acSonetPathProtectionEntry=acSonetPathProtectionEntry, acSonetFarEndPathDayIntervalSlot=acSonetFarEndPathDayIntervalSlot, acSonetVTThresholdTable=acSonetVTThresholdTable, acSonetPathTIMPath=acSonetPathTIMPath, acSonetPathDayIntervalESs=acSonetPathDayIntervalESs, acSonetSectionTIMPort=acSonetSectionTIMPort, acSonetSectionThresholdAdminStatus=acSonetSectionThresholdAdminStatus, acSonetPath15MinuteIntervalPort=acSonetPath15MinuteIntervalPort, acSonetDCCLineFail=acSonetDCCLineFail, acSonetVTPLMPort=acSonetVTPLMPort, acSonetLineThresholdAdminStatus=acSonetLineThresholdAdminStatus)
(ac_pport, ac_admin_status, ac_op_status, ac_slot_number, ac_port_number, ac_node_id) = mibBuilder.importSymbols('APPIAN-SMI-MIB', 'acPport', 'AcAdminStatus', 'AcOpStatus', 'AcSlotNumber', 'AcPortNumber', 'AcNodeId') (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, value_size_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint') (perf_interval_count,) = mibBuilder.importSymbols('PerfHist-TC-MIB', 'PerfIntervalCount') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (module_identity, mib_identifier, counter64, ip_address, object_identity, time_ticks, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, bits, gauge32, notification_type, integer32, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'MibIdentifier', 'Counter64', 'IpAddress', 'ObjectIdentity', 'TimeTicks', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Bits', 'Gauge32', 'NotificationType', 'Integer32', 'Counter32') (display_string, truth_value, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TruthValue', 'TextualConvention') ac_sonet = module_identity((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6)) acSonet.setRevisions(('1900-02-23 16:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: acSonet.setRevisionsDescriptions(('Engineering draft, not for release.',)) if mibBuilder.loadTexts: acSonet.setLastUpdated('0002231600Z') if mibBuilder.loadTexts: acSonet.setOrganization('Appian Communications, Inc.') if mibBuilder.loadTexts: acSonet.setContactInfo('Douglas Stahl') if mibBuilder.loadTexts: acSonet.setDescription('The MIB module to describe SONET/SDH objects.') class Actracestring(TextualConvention, OctetString): description = "A string of up to printable characters, followed by padding NULL characters, and terminated with <CR> and <LF> characters, for a total of 64 characters. The maximum number of printable characters is 62 and if it's less, it's padded with NULL. Therefore the number of padding NULL characters is 0 to 62." status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(64, 64) fixed_length = 64 ac_sonet_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1)) ac_sonet_objects_path = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2)) ac_sonet_objects_vt = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3)) ac_sonet_port = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1)) ac_sonet_section = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2)) ac_sonet_line = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3)) ac_sonet_far_end_line = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4)) ac_sonet_path = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1)) ac_sonet_far_end_path = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2)) ac_sonet_vt = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1)) ac_sonet_far_end_vt = mib_identifier((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2)) ac_sonet_port_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1)) if mibBuilder.loadTexts: acSonetPortTable.setStatus('current') if mibBuilder.loadTexts: acSonetPortTable.setDescription('The SONET/SDH Port table which must be created by the management client.') ac_sonet_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPortNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPortSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPortPort')) if mibBuilder.loadTexts: acSonetPortEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPortEntry.setDescription('An entry in the SONET/SDH Port table.') ac_sonet_port_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPortNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPortNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_port_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPortSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPortSlot.setDescription('The physical slot number of the port.') ac_sonet_port_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPortPort.setStatus('current') if mibBuilder.loadTexts: acSonetPortPort.setDescription('The physical port number of the port.') ac_sonet_port_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 4), ac_admin_status().clone('inactivate')).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortAdminStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPortAdminStatus.setDescription('Appian Administrative Status attribute used to set the provisioning state as either activate(1), inactivate(2) or delete(3). Refer to the Appian-SMI.mib file for additional information.') ac_sonet_port_op_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 5), ac_op_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPortOpStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPortOpStatus.setDescription('The current operational status for the SONET module controlling this port.') ac_sonet_port_op_code = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPortOpCode.setStatus('current') if mibBuilder.loadTexts: acSonetPortOpCode.setDescription('Provides a detailed status code which can be used to isolate a problem or state condition reported in acSonetPortOpStatus.') ac_sonet_port_medium_type = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('sonet', 1), ('sdh', 2))).clone('sonet')).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortMediumType.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumType.setDescription('This variable identifies whether a SONET or a SDH signal is used across this interface.') ac_sonet_port_time_elapsed = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 900))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPortTimeElapsed.setStatus('current') if mibBuilder.loadTexts: acSonetPortTimeElapsed.setDescription("The number of seconds, including partial seconds, that have elapsed since the beginning of the current measurement period. If, for some reason, such as an adjustment in the system's time-of-day clock, the current interval exceeds the maximum value, the agent will return the maximum value.") ac_sonet_port_valid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPortValidIntervals.setStatus('current') if mibBuilder.loadTexts: acSonetPortValidIntervals.setDescription('The number of previous 15-minute intervals for which data was collected. A SONET/SDH interface must be capable of supporting at least n intervals. The minimum value of n is 4. The default of n is 32. The maximum value of n is 96. The value will be <n> unless the measurement was (re-)started within the last (<n>*15) minutes, in which case the value will be the number of complete 15 minute intervals for which the agent has at least some data. In certain cases (e.g., in the case where the agent is a proxy) it is possible that some intervals are unavailable. In this case, this interval is the maximum interval number for which data is available. ') ac_sonet_port_medium_line_coding = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('b3zs', 2), ('cmi', 3), ('nrz', 4), ('rz', 5))).clone('nrz')).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortMediumLineCoding.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumLineCoding.setDescription('This variable describes the line coding for this interface. The B3ZS and CMI are used for electrical SONET/SDH signals (STS-1 and STS-3). The Non-Return to Zero (NRZ) and the Return to Zero are used for optical SONET/SDH signals.') ac_sonet_port_medium_line_type = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('short-single', 2), ('long-single', 3), ('multi', 4), ('coax', 5), ('utp', 6), ('intermediate', 7))).clone('multi')).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortMediumLineType.setStatus('current') if mibBuilder.loadTexts: acSonetPortMediumLineType.setDescription('This variable describes the line type for this interface. The line types are Short and Long Range Single Mode fiber or Multi-Mode fiber interfaces, and coax and UTP for electrical interfaces. The value acSonetOther should be used when the Line Type is not one of the listed values.') ac_sonet_port_transmitter_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 12), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortTransmitterEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPortTransmitterEnable.setDescription('Turns the laser on and off.') ac_sonet_port_circuit_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortCircuitIdentifier.setStatus('current') if mibBuilder.loadTexts: acSonetPortCircuitIdentifier.setDescription("This variable contains the transmission vendor's circuit identifier, for the purpose of facilitating troubleshooting. Note that the circuit identifier, if available, is also represented by ifPhysAddress.") ac_sonet_port_invalid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPortInvalidIntervals.setStatus('current') if mibBuilder.loadTexts: acSonetPortInvalidIntervals.setDescription('The number of intervals in the range from 0 to acSonetPortValidIntervals for which no data is available. This object will typically be zero except in cases where the data for some intervals are not available (e.g., in proxy situations).') ac_sonet_port_loopback_config = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('none', 0), ('facility', 1), ('terminal', 2), ('other', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortLoopbackConfig.setStatus('current') if mibBuilder.loadTexts: acSonetPortLoopbackConfig.setDescription('The current loopback state of the SONET/SDH interface. The values mean: none(0) Not in the loopback state. A device that is not capable of performing a loopback on this interface shall always return this value. facility(1) The received signal at this interface is looped back out through the corresponding transmitter in the return direction. terminal(2) The signal that is about to be transmitted is connected to the associated incoming receiver. other(3) Loopbacks that are not defined here.') ac_sonet_port_reset_current_p_mregs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 16), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortResetCurrentPMregs.setStatus('current') if mibBuilder.loadTexts: acSonetPortResetCurrentPMregs.setDescription('Reset Performance Monitoring Registers for current 15 minute and day to zero for entity-related statisics. Reset on receiving a 1, will automatically go to 0 at next 15 minute or day interval.') ac_sonet_port_reset_all_p_mregs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 17), truth_value().clone('false')).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortResetAllPMregs.setStatus('current') if mibBuilder.loadTexts: acSonetPortResetAllPMregs.setDescription('Reset Performance Monitoring Registers to zero for all entity-related statisics. Reset on receiving a 1, will automatically go to 0 at next 15 minute or day interval.') ac_sonet_port_connection_type = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ring', 1), ('interconnect', 2))).clone('interconnect')).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortConnectionType.setStatus('current') if mibBuilder.loadTexts: acSonetPortConnectionType.setDescription('Whether the port is used on the ring side or the interconnect side. An interconnect interface is the one that connects to the ADM.') ac_sonet_port_ring_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 19), integer32().clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortRingIdentifier.setStatus('current') if mibBuilder.loadTexts: acSonetPortRingIdentifier.setDescription('This is a number assigned by carrier. It is contained here as a convenience for carrier and the EMS. It is not used by the device. When used, this should be set in east facing port row in this table. It can also be optionally set in the west facing port row in this table but it must be the same as the set in the east facing port row.') ac_sonet_port_ring_name = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 1, 1, 20), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readcreate') if mibBuilder.loadTexts: acSonetPortRingName.setStatus('current') if mibBuilder.loadTexts: acSonetPortRingName.setDescription('An ASCII text name up to 32 characters in length which is assigned to this optical ring. Like the RingIdentifier, this is contained here as a convenience for the carrier and the EMS. It is not used by the device. When used, this should be set in east facing port row in this table. It can also be optionally set in the west facing port row in this table but it must be the same as the set in the east facing port row.') ac_sonet_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2)) if mibBuilder.loadTexts: acSonetThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdTable.setDescription('The SONET/SDH Threshold Table.') ac_sonet_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetThresholdNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetThresholdSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetThresholdPort')) if mibBuilder.loadTexts: acSonetThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdEntry.setDescription('An entry in the SONET/SDH Port Table.') ac_sonet_threshold_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_threshold_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdSlot.setDescription('The physical slot number of the port.') ac_sonet_threshold_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdPort.setDescription('The physical port number of the port.') ac_sonet_threshold_ses_set = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('bellcore', 2), ('ansi93', 3), ('itu', 4), ('ansi97', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetThresholdSESSet.setStatus('current') if mibBuilder.loadTexts: acSonetThresholdSESSet.setDescription('An enumerated integer indicating which recognized set of thresholds that the agent uses for determining severely errored seconds and unavailable time. other(1) None of the following. Bellcore1991(2) Bellcore TR-NWT-000253, 1991 [32], or ANSI T1M1.3/93-005R2, 1993 [22]. See also Appendix B. ansi1993(3) ANSI T1.231, 1993 [31], or Bellcore GR-253-CORE, Issue 2, 1995 [34] itu1995(4) ITU Recommendation G.826, 1995 [33] ansi1997(5) ANSI T1.231, 1997 [35] If a manager changes the value of this object then the SES statistics collected prior to this change must be invalidated.') ac_sonet_dcc_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3)) if mibBuilder.loadTexts: acSonetDCCTable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCTable.setDescription('The SONET/SDH DCC Table.') ac_sonet_dcc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetDCCNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetDCCSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetDCCPort')) if mibBuilder.loadTexts: acSonetDCCEntry.setStatus('current') if mibBuilder.loadTexts: acSonetDCCEntry.setDescription('An entry in the SONET/SDH Port Table.') ac_sonet_dcc_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetDCCNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetDCCNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_dcc_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetDCCSlot.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSlot.setDescription('The physical slot number of the port.') ac_sonet_dcc_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetDCCPort.setStatus('current') if mibBuilder.loadTexts: acSonetDCCPort.setDescription('The physical port number of the port.') ac_sonet_dcc_section_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetDCCSectionEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSectionEnable.setDescription('This variable indicates that the DCC for the section is enabled.') ac_sonet_dcc_line_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetDCCLineEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCLineEnable.setDescription('This variable indicates that the DCC for the line is enabled.') ac_sonet_dcc_appian_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 6), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetDCCAppianEnable.setStatus('current') if mibBuilder.loadTexts: acSonetDCCAppianEnable.setDescription('This variable indicates that the Appian DCC is enabled.') ac_sonet_dcc_section_fail = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetDCCSectionFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCSectionFail.setDescription('This variable indicates that the DCC for the section has failed.') ac_sonet_dcc_line_fail = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetDCCLineFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCLineFail.setDescription('This variable indicates that the DCC for the line has failed.') ac_sonet_dcc_appian_fail = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 3, 1, 9), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetDCCAppianFail.setStatus('current') if mibBuilder.loadTexts: acSonetDCCAppianFail.setDescription('This variable indicates that the Appian DCC has failed.') ac_sonet_section15_minute_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1)) if mibBuilder.loadTexts: acSonetSection15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalTable.setDescription('The SONET/SDH Section 15Minute Interval table.') ac_sonet_section15_minute_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSection15MinuteIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSection15MinuteIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSection15MinuteIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSection15MinuteIntervalNumber')) if mibBuilder.loadTexts: acSonetSection15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Section 15Minute Interval table.') ac_sonet_section15_minute_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_section15_minute_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_section15_minute_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalPort.setDescription('The physical port number of the port.') ac_sonet_section15_minute_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 98))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') ac_sonet_section15_minute_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalValidStats.setDescription('This flag indicates if the data for this interval is valid.') ac_sonet_section15_minute_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 6), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for a 15 minute interval.') ac_sonet_section15_minute_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetSectionCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetSectionNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetSectionNoDefect 2 acSonetSectionLOS 4 acSonetSectionLOF') ac_sonet_section15_minute_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') ac_sonet_section15_minute_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') ac_sonet_section15_minute_interval_sef_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalSEFSs.setDescription('The counter associated with the number of Severely Errored Framing Seconds encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') ac_sonet_section15_minute_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 1, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSection15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Section in a particular 15-minute interval in the past 24 hours.') ac_sonet_section_day_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2)) if mibBuilder.loadTexts: acSonetSectionDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalTable.setDescription('The SONET/SDH Section Day Interval table.') ac_sonet_section_day_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionDayIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionDayIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionDayIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionDayIntervalNumber')) if mibBuilder.loadTexts: acSonetSectionDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalEntry.setDescription('An entry in the SONET/SDH Section Day Interval table.') ac_sonet_section_day_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_section_day_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_section_day_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalPort.setDescription('The physical port number of the port.') ac_sonet_section_day_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') ac_sonet_section_day_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalValidStats.setDescription('This flag indicates if the data for this interval is valid.') ac_sonet_section_day_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 6), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalResetStats.setDescription('Flag used to reset the current day interval stats.') ac_sonet_section_day_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetSectionCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetSectionNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetSectionNoDefect 2 acSonetSectionLOS 4 acSonetSectionLOF') ac_sonet_section_day_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') ac_sonet_section_day_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') ac_sonet_section_day_interval_sef_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionDayIntervalSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalSEFSs.setDescription('The counter associated with the number of Severely Errored Framing Seconds encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') ac_sonet_section_day_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 2, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Section in a particular day interval in the past 30 days.') ac_sonet_section_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3)) if mibBuilder.loadTexts: acSonetSectionThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdTable.setDescription('The SONET/SDH Section Threshold Table.') ac_sonet_section_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionThresholdNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionThresholdSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionThresholdPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionThresholdSelectionNum')) if mibBuilder.loadTexts: acSonetSectionThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdEntry.setDescription('An entry in the SONET/SDH Section Threshold Table.') ac_sonet_section_threshold_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_section_threshold_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSlot.setDescription('The physical slot number of the port.') ac_sonet_section_threshold_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdPort.setDescription('The physical port number of the port.') ac_sonet_section_threshold_selection_num = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('minute', 1), ('day', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds.') ac_sonet_section_threshold_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 5), ac_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetSectionThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this sonet port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') ac_sonet_section_threshold_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdESs.setDescription('The threshold associated with Errored Seconds.') ac_sonet_section_threshold_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') ac_sonet_section_threshold_sef_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionThresholdSEFSs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdSEFSs.setDescription('The threshold associated with Severely Errored Framing Seconds.') ac_sonet_section_threshold_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetSectionThresholdCVs.setDescription('The threshold associated with Coding Violations.') ac_sonet_section_tim_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4)) if mibBuilder.loadTexts: acSonetSectionTIMTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMTable.setDescription('The SONET/SDH Section Trace Identifier Mismatch Table.') ac_sonet_section_tim_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionTIMNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionTIMSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionTIMPort')) if mibBuilder.loadTexts: acSonetSectionTIMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMEntry.setDescription('An entry in the SONET/SDH Section Trace Identifier Mismatch Table.') ac_sonet_section_tim_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionTIMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_section_tim_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionTIMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMSlot.setDescription('The physical slot number of the port.') ac_sonet_section_tim_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionTIMPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMPort.setDescription('The physical port number of the port.') ac_sonet_section_tim_generate_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionTIMGenerateEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMGenerateEnable.setDescription('Enables the generation of the Section Trace Identifier.') ac_sonet_section_tim_detect_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionTIMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMDetectEnable.setDescription('Enables the detection of the Section Trace Identifier.') ac_sonet_section_tim_transmited_string = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 6), ac_trace_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionTIMTransmitedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMTransmitedString.setDescription('The string that gets sent to the destination.') ac_sonet_section_tim_expected_string = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 7), ac_trace_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionTIMExpectedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMExpectedString.setDescription('The expected string that is to be received.') ac_sonet_section_tim_received_string = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 8), ac_trace_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionTIMReceivedString.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMReceivedString.setDescription('The contents of the string that is received.') ac_sonet_section_tim_failure = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 9), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionTIMFailure.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMFailure.setDescription('Failure declared of the Section Trace Identifier.') ac_sonet_section_tim_format = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('void', 0), ('t64', 1), ('t64-crlf', 2), ('t16', 3), ('t16-msb1', 4), ('t16-crc7', 5))).clone('void')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionTIMFormat.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMFormat.setDescription('Format of Path Trace buffer.') ac_sonet_section_tim_mismatch_zeros = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 4, 1, 11), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionTIMMismatchZeros.setStatus('current') if mibBuilder.loadTexts: acSonetSectionTIMMismatchZeros.setDescription('Controls whether a received trace message containing all zeros can cause a mismatch defect.') ac_sonet_section_ssm_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5)) if mibBuilder.loadTexts: acSonetSectionSSMTable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMTable.setDescription('The SONET/SDH Section Synchronization Status Message Table.') ac_sonet_section_ssm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionSSMNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionSSMSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetSectionSSMPort')) if mibBuilder.loadTexts: acSonetSectionSSMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMEntry.setDescription('An entry in the SONET/SDH Section Synchronization Status Message Table.') ac_sonet_section_ssm_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionSSMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_section_ssm_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionSSMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMSlot.setDescription('The physical slot number of the port.') ac_sonet_section_ssm_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetSectionSSMPort.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMPort.setDescription('The physical port number of the port.') ac_sonet_section_ssm_detect_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetSectionSSMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMDetectEnable.setDescription('Enables the detection of the Synchronization Status Message.') ac_sonet_section_ssm_transmited_value = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionSSMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMTransmitedValue.setDescription('The S1 byte value that gets sent to the destination.') ac_sonet_section_ssm_received_value = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 2, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetSectionSSMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetSectionSSMReceivedValue.setDescription('The S1 byte value that is received.') ac_sonet_line15_minute_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1)) if mibBuilder.loadTexts: acSonetLine15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalTable.setDescription('The SONET/SDH Line 15Minute Interval Table.') ac_sonet_line15_minute_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLine15MinuteIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLine15MinuteIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLine15MinuteIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLine15MinuteIntervalNumber')) if mibBuilder.loadTexts: acSonetLine15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Line 15Minute Interval table.') ac_sonet_line15_minute_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_line15_minute_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_line15_minute_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalPort.setDescription('The physical port number of the port.') ac_sonet_line15_minute_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 98))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') ac_sonet_line15_minute_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') ac_sonet_line15_minute_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalResetStats.setDescription('Flag to reset the 15 minute SONET Line interval statistics.') ac_sonet_line15_minute_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetLineCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetLineNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetLineNoDefect 2 acSonetLineAIS 4 acSonetLineRDI') ac_sonet_line15_minute_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') ac_sonet_line15_minute_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') ac_sonet_line15_minute_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') ac_sonet_line15_minute_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours.') ac_sonet_line15_minute_interval_ber = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 1, 1, 12), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetLine15MinuteIntervalBER.setDescription('The counter associated with the max BER encountered by a SONET/SDH Line in a particular 15-minute interval in the past 24 hours. ') ac_sonet_line_day_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2)) if mibBuilder.loadTexts: acSonetLineDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalTable.setDescription('The SONET/SDH Line Day Interval Table.') ac_sonet_line_day_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineDayIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineDayIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineDayIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineDayIntervalNumber')) if mibBuilder.loadTexts: acSonetLineDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalEntry.setDescription('An entry in the SONET/SDH Line Day Interval table.') ac_sonet_line_day_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_line_day_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_line_day_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalPort.setDescription('The physical port number of the port.') ac_sonet_line_day_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') ac_sonet_line_day_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') ac_sonet_line_day_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalResetStats.setDescription('Flag to reset the SONET Line Day interval statistics.') ac_sonet_line_day_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetLineCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetLineNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetLineNoDefect 2 acSonetLineAIS 4 acSonetLineRDI') ac_sonet_line_day_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') ac_sonet_line_day_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') ac_sonet_line_day_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') ac_sonet_line_day_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLineDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') ac_sonet_line_day_interval_ber = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 2, 1, 12), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetLineDayIntervalBER.setDescription('The counter associated with the max BER encountered by a SONET/SDH Line in a particular day interval in the past 30 days.') ac_sonet_line_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3)) if mibBuilder.loadTexts: acSonetLineThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdTable.setDescription('The SONET/SDH Line Threshold Table.') ac_sonet_line_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineThresholdNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineThresholdSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineThresholdPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineThresholdSelectionNum')) if mibBuilder.loadTexts: acSonetLineThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdEntry.setDescription('An entry in the SONET/SDH Line Threshold Table.') ac_sonet_line_threshold_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_line_threshold_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSlot.setDescription('The physical slot number of the port.') ac_sonet_line_threshold_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdPort.setDescription('The physical port number of the port.') ac_sonet_line_threshold_selection_num = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('minute', 1), ('day', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') ac_sonet_line_threshold_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 5), ac_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetLineThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') ac_sonet_line_threshold_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdESs.setDescription('The threshold associated with Errored Seconds.') ac_sonet_line_threshold_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') ac_sonet_line_threshold_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdCVs.setDescription('The threshold associated with Coding Violations.') ac_sonet_line_threshold_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetLineThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') ac_sonet_far_end_line15_minute_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1)) if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalTable.setDescription('The SONET/SDH FarEndLine 15Minute Interval Table.') ac_sonet_far_end_line15_minute_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLine15MinuteIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLine15MinuteIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLine15MinuteIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLine15MinuteIntervalNumber')) if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndLine 15Minute Interval table.') ac_sonet_far_end_line15_minute_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_line15_minute_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_line15_minute_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalPort.setDescription('The physical port number of the port.') ac_sonet_far_end_line15_minute_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 98))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') ac_sonet_far_end_line15_minute_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') ac_sonet_far_end_line15_minute_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalResetStats.setDescription('Flag to reset the SONET Far End Line 15 minute interval statistics.') ac_sonet_far_end_line15_minute_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 7), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') ac_sonet_far_end_line15_minute_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') ac_sonet_far_end_line15_minute_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') ac_sonet_far_end_line15_minute_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 1, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLine15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH FarEndLine in a particular 15-minute interval in the past 24 hours.') ac_sonet_far_end_line_day_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2)) if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalTable.setDescription('The SONET/SDH FarEndLine Day Interval Table.') ac_sonet_far_end_line_day_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLineDayIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLineDayIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLineDayIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLineDayIntervalNumber')) if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndLine Day Interval table.') ac_sonet_far_end_line_day_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_line_day_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_line_day_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalPort.setDescription('The physical port number of the port.') ac_sonet_far_end_line_day_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') ac_sonet_far_end_line_day_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') ac_sonet_far_end_line_day_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalResetStats.setDescription('Flag to reset the SONET far end line day interval statistics.') ac_sonet_far_end_line_day_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 7), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') ac_sonet_far_end_line_day_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') ac_sonet_far_end_line_day_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') ac_sonet_far_end_line_day_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 2, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a SONET/SDH FarEndLine in a particular day interval in the past 30 days.') ac_sonet_far_end_line_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3)) if mibBuilder.loadTexts: acSonetFarEndLineThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdTable.setDescription('The SONET/SDH FarEndLine Threshold Table.') ac_sonet_far_end_line_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLineThresholdNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLineThresholdSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLineThresholdPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndLineThresholdSelectionNum')) if mibBuilder.loadTexts: acSonetFarEndLineThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdEntry.setDescription('An entry in the SONET/SDH FarEndLine Threshold Table.') ac_sonet_far_end_line_threshold_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLineThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_line_threshold_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_line_threshold_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLineThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdPort.setDescription('The physical port number of the port.') ac_sonet_far_end_line_threshold_selection_num = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('minute', 1), ('day', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') ac_sonet_far_end_line_threshold_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 5), ac_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndLineThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndLineThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') ac_sonet_far_end_line_threshold_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndLineThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdESs.setDescription('The threshold associated with Errored Seconds.') ac_sonet_far_end_line_threshold_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') ac_sonet_far_end_line_threshold_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndLineThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdCVs.setDescription('The threshold associated with Coding Violations.') ac_sonet_far_end_line_threshold_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 4, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndLineThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndLineThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') ac_sonet_path15_minute_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1)) if mibBuilder.loadTexts: acSonetPath15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalTable.setDescription('The SONET/SDH Path 15Minute Interval table.') ac_sonet_path15_minute_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPath15MinuteIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPath15MinuteIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPath15MinuteIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPath15MinuteIntervalPath'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPath15MinuteIntervalNumber')) if mibBuilder.loadTexts: acSonetPath15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH Path 15Minute Interval table.') ac_sonet_path15_minute_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_path15_minute_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_path15_minute_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPort.setDescription('The physical port number of the port.') ac_sonet_path15_minute_interval_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalPath.setDescription('The STS Path for which the set of statistics is available.') ac_sonet_path15_minute_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 98))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') ac_sonet_path15_minute_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 62))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetPathCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetPathNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetPathNoDefect 2 acSonetPathSTSLOP 4 acSonetPathSTSAIS 8 acSonetPathSTSRDI 16 acSonetPathUnequipped 32 acSonetPathPayloadLabelMismatch') ac_sonet_path15_minute_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this interval is valid.') ac_sonet_path15_minute_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for a 15 minute interval.') ac_sonet_path15_minute_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Path in the current 15 minute interval.') ac_sonet_path15_minute_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Path in the current 15 minute interval.') ac_sonet_path15_minute_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Path in the current 15 minute interval.') ac_sonet_path15_minute_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 12), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a Path in the current 15 minute interval.') ac_sonet_path15_minute_interval_ber = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 1, 1, 13), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetPath15MinuteIntervalBER.setDescription('The counter associated with the BER encountered by a Path in the current 15 minute interval. Represents the max value for an interval for number > 1.') ac_sonet_path_day_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2)) if mibBuilder.loadTexts: acSonetPathDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalTable.setDescription('The SONET/SDH Path Day Interval table.') ac_sonet_path_day_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathDayIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathDayIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathDayIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathDayIntervalPath'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathDayIntervalNumber')) if mibBuilder.loadTexts: acSonetPathDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalEntry.setDescription('An entry in the SONET/SDH Path Day Interval table.') ac_sonet_path_day_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_path_day_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_path_day_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalPort.setDescription('The physical port number of the port.') ac_sonet_path_day_interval_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathDayIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalPath.setDescription('The STS Path for which the set of statistics is available.') ac_sonet_path_day_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') ac_sonet_path_day_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 62))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetPathCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects simultaneously. The acSonetPathNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetPathNoDefect 2 acSonetPathSTSLOP 4 acSonetPathSTSAIS 8 acSonetPathSTSRDI 16 acSonetPathUnequipped 32 acSonetPathPayloadLabelMismatch') ac_sonet_path_day_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalValidStats.setDescription('This variable indicates if the data for this day is valid.') ac_sonet_path_day_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalResetStats.setDescription('This flag is used to reset the data for day interval.') ac_sonet_path_day_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH Path in the past day interval.') ac_sonet_path_day_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH Path in the past day interval.') ac_sonet_path_day_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH Path in the past day interval.') ac_sonet_path_day_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 12), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPathDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a Path in the past day interval.') ac_sonet_path_day_interval_ber = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 2, 1, 13), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathDayIntervalBER.setDescription('The counter associated with the BER encountered by a Path in the past day interval.') ac_sonet_path_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3)) if mibBuilder.loadTexts: acSonetPathThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdTable.setDescription('The SONET/SDH Path Threshold Table.') ac_sonet_path_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathThresholdNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathThresholdSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathThresholdPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathThresholdPath'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathThresholdSelectionNum')) if mibBuilder.loadTexts: acSonetPathThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdEntry.setDescription('An entry in the SONET/SDH Path Threshold Table.') ac_sonet_path_threshold_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_path_threshold_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSlot.setDescription('The physical slot number of the port.') ac_sonet_path_threshold_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdPort.setDescription('The physical port number of the port.') ac_sonet_path_threshold_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathThresholdPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdPath.setDescription('The STS Path for which the set of statistics is available.') ac_sonet_path_threshold_selection_num = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('minute', 1), ('day', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') ac_sonet_path_threshold_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 6), ac_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') ac_sonet_path_threshold_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdESs.setDescription('The threshold associated with Errored Seconds.') ac_sonet_path_threshold_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') ac_sonet_path_threshold_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdCVs.setDescription('The threshold associated with Coding Violations.') ac_sonet_path_threshold_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 3, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetPathThresholdUASs.setDescription('The threshold associated with Unavailable Seconds.') ac_sonet_path_rdi_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4)) if mibBuilder.loadTexts: acSonetPathRDITable.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDITable.setDescription('The SONET/SDH Path RDI Table.') ac_sonet_path_rdi_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathRDINodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathRDISlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathRDIPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathRDIPath')) if mibBuilder.loadTexts: acSonetPathRDIEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIEntry.setDescription('An entry in the SONET/SDH Path RDI Table.') ac_sonet_path_rdi_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathRDINodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDINodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_path_rdi_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathRDISlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDISlot.setDescription('The physical slot number of the port.') ac_sonet_path_rdi_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathRDIPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIPort.setDescription('The physical port number of the port.') ac_sonet_path_rdi_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathRDIPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIPath.setDescription('The STS path instance for this port') ac_sonet_path_rdi_op_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('rdi', 1), ('erdi', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathRDIOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetPathRDIOpMode.setDescription('The Remote Defect Indiction signals have undergone a number of changes over the years, and now encompass two or even three different versions. See GR-253 6.2.1.3.2 for more information.') ac_sonet_path_tim_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5)) if mibBuilder.loadTexts: acSonetPathTIMTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMTable.setDescription('The SONET/SDH Path Trace Identifier Mismatch Table.') ac_sonet_path_tim_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathTIMNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathTIMSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathTIMPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathTIMPath')) if mibBuilder.loadTexts: acSonetPathTIMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMEntry.setDescription('An entry in the SONET/SDH Path Trace Identifier Mismatch Table.') ac_sonet_path_tim_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathTIMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_path_tim_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathTIMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMSlot.setDescription('The physical slot number of the port.') ac_sonet_path_tim_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathTIMPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMPort.setDescription('The physical port number of the port.') ac_sonet_path_tim_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathTIMPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMPath.setDescription('The path instance of the port.') ac_sonet_path_tim_generate_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 5), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathTIMGenerateEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMGenerateEnable.setDescription('Enables the generation of the Path Trace Identifier.') ac_sonet_path_tim_detect_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 6), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathTIMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMDetectEnable.setDescription('Enables the detection of the Path Trace Identifier.') ac_sonet_path_tim_transmited_string = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 7), ac_trace_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathTIMTransmitedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMTransmitedString.setDescription('The string that gets sent to the destination.') ac_sonet_path_tim_expected_string = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 8), ac_trace_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathTIMExpectedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMExpectedString.setDescription('The expected string that is to be received.') ac_sonet_path_tim_received_string = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 9), ac_trace_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathTIMReceivedString.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMReceivedString.setDescription('The contents of the string that is received.') ac_sonet_path_tim_failure = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 10), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathTIMFailure.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMFailure.setDescription('Failure declared of the Path Trace Identifier.') ac_sonet_path_tim_format = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('void', 0), ('t64', 1), ('t64-crlf', 2), ('t16', 3), ('t16-msb1', 4), ('t16-crc7', 5))).clone('void')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathTIMFormat.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMFormat.setDescription('Format of Path Trace buffer.') ac_sonet_path_tim_mismatch_zeros = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 5, 1, 12), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathTIMMismatchZeros.setStatus('current') if mibBuilder.loadTexts: acSonetPathTIMMismatchZeros.setDescription('Controls whether a received trace message containing all zeros can cause a mismatch defect.') ac_sonet_path_plm_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6)) if mibBuilder.loadTexts: acSonetPathPLMTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMTable.setDescription('The SONET/SDH Path Payload Label Mismatch Table.') ac_sonet_path_plm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathPLMNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathPLMSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathPLMPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathPLMPath')) if mibBuilder.loadTexts: acSonetPathPLMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMEntry.setDescription('An entry in the SONET/SDH Path Payload Label Mismatch Table.') ac_sonet_path_plm_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathPLMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_path_plm_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathPLMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMSlot.setDescription('The physical slot number of the port.') ac_sonet_path_plm_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathPLMPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMPort.setDescription('The physical port number of the port.') ac_sonet_path_plm_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathPLMPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMPath.setDescription('The path instance of the port.') ac_sonet_path_plm_detect_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathPLMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMDetectEnable.setDescription('Enables the detection of the Path Payload Label.') ac_sonet_path_plm_transmited_value = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathPLMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMTransmitedValue.setDescription('The Path Payload Label that gets sent to the destination. See GR-253 Tables 3-2, 3-3.') ac_sonet_path_plm_expected_value = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathPLMExpectedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMExpectedValue.setDescription('The expected Path Payload Label that is to be received. See GR-253 Tables 3-2, 3-3.') ac_sonet_path_plm_received_value = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathPLMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMReceivedValue.setDescription('The contents of the Path Payload Label that is received. See GR-253 Tables 3-2, 3-3.') ac_sonet_path_plm_mismatch_failure = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 9), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathPLMMismatchFailure.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMMismatchFailure.setDescription('Mismatch failure declared for the Path Payload Label.') ac_sonet_path_plm_unequipped = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 6, 1, 10), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathPLMUnequipped.setStatus('current') if mibBuilder.loadTexts: acSonetPathPLMUnequipped.setDescription('Unequipped failure declared for the Path Payload Label.') ac_sonet_far_end_path15_minute_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1)) if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalTable.setDescription('The SONET/SDH FarEndPath 15Minute Interval table.') ac_sonet_far_end_path15_minute_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPath15MinuteIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPath15MinuteIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPath15MinuteIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPath15MinuteIntervalPath'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPath15MinuteIntervalNumber')) if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndPath 15Minute Interval table.') ac_sonet_far_end_path15_minute_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_path15_minute_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_path15_minute_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPort.setDescription('The physical port number of the port.') ac_sonet_far_end_path15_minute_interval_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalPath.setDescription('The STS Path for which the set of statistics is available.') ac_sonet_far_end_path15_minute_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 98))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') ac_sonet_far_end_path15_minute_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 6), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this far end 15 minute interval is valid.') ac_sonet_far_end_path15_minute_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 7), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for far end 15 minute interval.') ac_sonet_far_end_path15_minute_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') ac_sonet_far_end_path15_minute_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') ac_sonet_far_end_path15_minute_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') ac_sonet_far_end_path15_minute_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 1, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPath15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndPath in the current 15 minute interval.') ac_sonet_far_end_path_day_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2)) if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalTable.setDescription('The SONET/SDH FarEndPath Day Interval table.') ac_sonet_far_end_path_day_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathDayIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathDayIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathDayIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathDayIntervalPath'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathDayIntervalNumber')) if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndPath Day Interval table.') ac_sonet_far_end_path_day_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_path_day_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_path_day_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPort.setDescription('The physical port number of the port.') ac_sonet_far_end_path_day_interval_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalPath.setDescription('The STS Path for which the set of statistics is available.') ac_sonet_far_end_path_day_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') ac_sonet_far_end_path_day_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 6), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalValidStats.setDescription('This variable indicates if the data for this far end day interval is valid.') ac_sonet_far_end_path_day_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 7), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalResetStats.setDescription('This flag is used to reset the data for far end day interval.') ac_sonet_far_end_path_day_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') ac_sonet_far_end_path_day_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') ac_sonet_far_end_path_day_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndPath in the current 15 minute interval.') ac_sonet_far_end_path_day_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 2, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndPath in the current 15 minute interval.') ac_sonet_far_end_path_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3)) if mibBuilder.loadTexts: acSonetFarEndPathThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdTable.setDescription('The SONET/SDH FarEndPath Threshold Table.') ac_sonet_far_end_path_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathThresholdNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathThresholdSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathThresholdPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathThresholdPath'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndPathThresholdSelectionNum')) if mibBuilder.loadTexts: acSonetFarEndPathThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdEntry.setDescription('An entry in the SONET/SDH FarEndPath Threshold Table.') ac_sonet_far_end_path_threshold_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_path_threshold_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_path_threshold_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdPort.setDescription('The physical port number of the port.') ac_sonet_far_end_path_threshold_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathThresholdPath.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdPath.setDescription('The STS Path for which the set of statistics is available.') ac_sonet_far_end_path_threshold_selection_num = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('minute', 1), ('day', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') ac_sonet_far_end_path_threshold_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 6), ac_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndPathThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndPathThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') ac_sonet_far_end_path_threshold_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndPathThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdESs.setDescription('The threshold associated with Errored Seconds.') ac_sonet_far_end_path_threshold_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') ac_sonet_far_end_path_threshold_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndPathThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdCVs.setDescription('The threshold associated with Coding Violations.') ac_sonet_far_end_path_threshold_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 2, 3, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndPathThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndPathThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') ac_sonet_vt15_minute_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1)) if mibBuilder.loadTexts: acSonetVT15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalTable.setDescription('The SONET/SDH VT 15Minute Interval table.') ac_sonet_vt15_minute_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVT15MinuteIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVT15MinuteIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVT15MinuteIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVT15MinuteIntervalVT'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVT15MinuteIntervalNumber')) if mibBuilder.loadTexts: acSonetVT15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH VT 15Minute Interval table.') ac_sonet_vt15_minute_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_vt15_minute_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_vt15_minute_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalPort.setDescription('The physical port number of the port.') ac_sonet_vt15_minute_interval_vt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalVT.setDescription('The VT for which the set of statistics is available.') ac_sonet_vt15_minute_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 98))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') ac_sonet_vt15_minute_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 192))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetVTCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects and failures simultaneously. The acSonetVTNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetVTNoDefect 2 acSonetVTLOP 4 acSonetVTPathAIS 8 acSonetVTPathRDI 16 acSonetVTPathRFI 32 acSonetVTUnequipped 64 acSonetVTPayloadLabelMismatch') ac_sonet_vt15_minute_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this VT 15 minute interval is valid.') ac_sonet_vt15_minute_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 9), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for this VT 15 minute interval.') ac_sonet_vt15_minute_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH VT in the current 15 minute interval.') ac_sonet_vt15_minute_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH VT in the current 15 minute interval.') ac_sonet_vt15_minute_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 12), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH VT in the current 15 minute interval.') ac_sonet_vt15_minute_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 13), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a VT in the current 15 minute interval.') ac_sonet_vt15_minute_interval_ber = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 1, 1, 14), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalBER.setStatus('current') if mibBuilder.loadTexts: acSonetVT15MinuteIntervalBER.setDescription('The counter associated with the BER encountered by a VT in the current 15 minute interval. Represents the max BER for the interval when number > 1.') ac_sonet_vt_day_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2)) if mibBuilder.loadTexts: acSonetVTDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalTable.setDescription('The SONET/SDH VT Day Interval table.') ac_sonet_vt_day_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTDayIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTDayIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTDayIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTDayIntervalVT'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTDayIntervalNumber')) if mibBuilder.loadTexts: acSonetVTDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalEntry.setDescription('An entry in the SONET/SDH VT Day Interval table.') ac_sonet_vt_day_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_vt_day_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_vt_day_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalPort.setDescription('The physical port number of the port.') ac_sonet_vt_day_interval_vt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTDayIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalVT.setDescription('The VT for which the set of statistics is available.') ac_sonet_vt_day_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') ac_sonet_vt_day_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 192))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTDayIntervalStatus.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalStatus.setDescription('This variable indicates the status of the interface. The acSonetVTCurrentStatus is a bit map represented as a sum, therefore, it can represent multiple defects and failures simultaneously. The acSonetVTNoDefect should be set if and only if no other flag is set. The various bit positions are: 1 acSonetVTNoDefect 2 acSonetVTLOP 4 acSonetVTPathAIS 8 acSonetVTPathRDI 16 acSonetVTPathRFI 32 acSonetVTUnequipped 64 acSonetVTPayloadLabelMismatch') ac_sonet_vt_day_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalValidStats.setDescription('This variable indicates if the data for this VT Day interval is valid.') ac_sonet_vt_day_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalResetStats.setDescription('This flag is used to reset the data for this VT Day interval.') ac_sonet_vt_day_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH VT in the last day interval.') ac_sonet_vt_day_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH VT in the last day interval.') ac_sonet_vt_day_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH VT in the last day interval.') ac_sonet_vt_day_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 12), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVTDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a VT in the last day interval.') ac_sonet_vt_day_interval_ber = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 2, 1, 13), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTDayIntervalBER.setStatus('deprecated') if mibBuilder.loadTexts: acSonetVTDayIntervalBER.setDescription('The counter associated with the max BER encountered by a VT in a day.') ac_sonet_vt_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3)) if mibBuilder.loadTexts: acSonetVTThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdTable.setDescription('The SONET/SDH VT Threshold Table.') ac_sonet_vt_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTThresholdNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTThresholdSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTThresholdPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTThresholdVT'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTThresholdSelectionNum')) if mibBuilder.loadTexts: acSonetVTThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdEntry.setDescription('An entry in the SONET/SDH VT Threshold Table.') ac_sonet_vt_threshold_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_vt_threshold_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSlot.setDescription('The physical slot number of the port.') ac_sonet_vt_threshold_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdPort.setDescription('The physical port number of the port.') ac_sonet_vt_threshold_vt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTThresholdVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdVT.setDescription('The VT for which the set of statistics is available.') ac_sonet_vt_threshold_selection_num = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('minute', 1), ('day', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') ac_sonet_vt_threshold_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 6), ac_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetVTThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') ac_sonet_vt_threshold_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdESs.setDescription('The threshold associated with Errored Seconds.') ac_sonet_vt_threshold_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') ac_sonet_vt_threshold_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdCVs.setDescription('The threshold associated with Coding Violations.') ac_sonet_vt_threshold_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 3, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetVTThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') ac_sonet_vtrdi_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4)) if mibBuilder.loadTexts: acSonetVTRDITable.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDITable.setDescription('The SONET/SDH VT RDI Table.') ac_sonet_vtrdi_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTRDINodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTRDISlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTRDIPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTRDIVT')) if mibBuilder.loadTexts: acSonetVTRDIEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIEntry.setDescription('An entry in the SONET/SDH VT RDI Table.') ac_sonet_vtrdi_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTRDINodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDINodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_vtrdi_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTRDISlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDISlot.setDescription('The physical slot number of the port.') ac_sonet_vtrdi_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTRDIPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIPort.setDescription('The physical port number of the port.') ac_sonet_vtrdivt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTRDIVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIVT.setDescription('The Virtual Tributary (VT) instance.') ac_sonet_vtrdi_op_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('rdi', 1), ('erdi', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTRDIOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetVTRDIOpMode.setDescription('The Remote Defect Indiction signals have undergone a number of changes over the years, and now encompass two or even three different versions. See GR-253 6.2.1.3.3 for more information.') ac_sonet_vtplm_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5)) if mibBuilder.loadTexts: acSonetVTPLMTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMTable.setDescription('The SONET/SDH VT Payload Label Mismatch Table.') ac_sonet_vtplm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTPLMNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTPLMSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTPLMPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTPLMVT')) if mibBuilder.loadTexts: acSonetVTPLMEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMEntry.setDescription('An entry in the SONET/SDH VT Payload Label Mismatch Table.') ac_sonet_vtplm_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTPLMNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_vtplm_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTPLMSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMSlot.setDescription('The physical slot number of the port.') ac_sonet_vtplm_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTPLMPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMPort.setDescription('The physical port number of the port.') ac_sonet_vtplmvt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTPLMVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMVT.setDescription('The Virtual Tributary (VT) instance.') ac_sonet_vtplm_detect_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTPLMDetectEnable.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMDetectEnable.setDescription('Enables the detection of the VT Payload Label.') ac_sonet_vtplm_transmited_value = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTPLMTransmitedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMTransmitedValue.setDescription('The VT Payload Label that gets sent to the destination. See GR-253 Tables 3-4.') ac_sonet_vtplm_expected_value = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTPLMExpectedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMExpectedValue.setDescription('The expected VT Payload Label that is to be received. See GR-253 Tables 3-4.') ac_sonet_vtplm_received_value = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTPLMReceivedValue.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMReceivedValue.setDescription('The contents of the VT Payload Label that is received. See GR-253 Tables 3-4.') ac_sonet_vtplm_mismatch_failure = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 9), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTPLMMismatchFailure.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMMismatchFailure.setDescription('Mismatch failure declared for the VT Payload Label.') ac_sonet_vtplm_unequipped = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 5, 1, 10), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTPLMUnequipped.setStatus('current') if mibBuilder.loadTexts: acSonetVTPLMUnequipped.setDescription('Unequipped failure declared for the VT Payload Label.') ac_sonet_far_end_vt15_minute_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1)) if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalTable.setDescription('The SONET/SDH FarEndVT 15Minute Interval table.') ac_sonet_far_end_vt15_minute_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVT15MinuteIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVT15MinuteIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVT15MinuteIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVT15MinuteIntervalVT'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVT15MinuteIntervalNumber')) if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalEntry.setDescription('An entry in the SONET/SDH FarEndVT 15Minute Interval table.') ac_sonet_far_end_vt15_minute_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_vt15_minute_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_vt15_minute_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalPort.setDescription('The physical port number of the port.') ac_sonet_far_end_vt15_minute_interval_vt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalVT.setDescription('The VT for which the set of statistics is available.') ac_sonet_far_end_vt15_minute_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 98))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalNumber.setDescription('A number between 1 and 98, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current 15 minute interval. The interval identified by 2 is the most recently completed 15 minute interval. The interval identified by 97 is the oldest 15 minute interval. The interval identified by 98 is a total of the previous 96 stored 15 minute intervals.') ac_sonet_far_end_vt15_minute_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 6), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalValidStats.setDescription('This variable indicates if the data for this VT FE 15 minute interval is valid.') ac_sonet_far_end_vt15_minute_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 7), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalResetStats.setDescription('This flag is used to reset the data for this VT FE 15 minute interval.') ac_sonet_far_end_vt15_minute_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') ac_sonet_far_end_vt15_minute_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') ac_sonet_far_end_vt15_minute_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') ac_sonet_far_end_vt15_minute_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 1, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVT15MinuteIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndVT in the current 15 minute interval.') ac_sonet_far_end_vt_day_interval_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2)) if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalTable.setDescription('The SONET/SDH FarEndVT Day Interval table.') ac_sonet_far_end_vt_day_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTDayIntervalNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTDayIntervalSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTDayIntervalPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTDayIntervalVT'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTDayIntervalNumber')) if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalEntry.setDescription('An entry in the SONET/SDH FarEndVT Day Interval table.') ac_sonet_far_end_vt_day_interval_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_vt_day_interval_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_vt_day_interval_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalPort.setDescription('The physical port number of the port.') ac_sonet_far_end_vt_day_interval_vt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalVT.setDescription('The VT for which the set of statistics is available.') ac_sonet_far_end_vt_day_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 31))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNumber.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalNumber.setDescription('A number between 1 and 31, which identifies the interval for which the set of statistics is available. The interval identified by 1 is the ongoing, current day performance monitoring interval. The interval identified by 2 is the most recently completed day interval. The interval identified by 31 is the oldest day interval.') ac_sonet_far_end_vt_day_interval_valid_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 6), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalValidStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalValidStats.setDescription('This variable indicates if the data for this VT Day interval is valid.') ac_sonet_far_end_vt_day_interval_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 7), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalResetStats.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalResetStats.setDescription('This flag is used to reset the data for this VT Day interval.') ac_sonet_far_end_vt_day_interval_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalESs.setDescription('The counter associated with the number of Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') ac_sonet_far_end_vt_day_interval_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalSESs.setDescription('The counter associated with the number of Severely Errored Seconds encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') ac_sonet_far_end_vt_day_interval_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalCVs.setDescription('The counter associated with the number of Coding Violations encountered by a SONET/SDH FarEndVT in the current 15 minute interval.') ac_sonet_far_end_vt_day_interval_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 2, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTDayIntervalUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered by a FarEndVT in the current 15 minute interval.') ac_sonet_far_end_vt_threshold_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3)) if mibBuilder.loadTexts: acSonetFarEndVTThresholdTable.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdTable.setDescription('The SONET/SDH FarEndVT Threshold Table.') ac_sonet_far_end_vt_threshold_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTThresholdNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTThresholdSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTThresholdPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTThresholdVT'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetFarEndVTThresholdSelectionNum')) if mibBuilder.loadTexts: acSonetFarEndVTThresholdEntry.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdEntry.setDescription('An entry in the SONET/SDH FarEndVT Threshold Table.') ac_sonet_far_end_vt_threshold_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTThresholdNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_far_end_vt_threshold_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSlot.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSlot.setDescription('The physical slot number of the port.') ac_sonet_far_end_vt_threshold_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTThresholdPort.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdPort.setDescription('The physical port number of the port.') ac_sonet_far_end_vt_threshold_vt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTThresholdVT.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdVT.setDescription('The VT for which the set of statistics is available.') ac_sonet_far_end_vt_threshold_selection_num = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('minute', 1), ('day', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSelectionNum.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSelectionNum.setDescription('A number that selects either the 15 thresholds or the day thresholds. ') ac_sonet_far_end_vt_threshold_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 6), ac_admin_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndVTThresholdAdminStatus.setStatus('deprecated') if mibBuilder.loadTexts: acSonetFarEndVTThresholdAdminStatus.setDescription('This field is used by the administrator to ensure only one client is performing management operations on this serial port at a time. When the field is read as available(0), the client can write the value locked(1) into this field to prevent a second client from performing managment ops on this instance.') ac_sonet_far_end_vt_threshold_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndVTThresholdESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdESs.setDescription('The threshold associated with Errored Seconds.') ac_sonet_far_end_vt_threshold_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSESs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdSESs.setDescription('The threshold associated with Severely Errored Seconds.') ac_sonet_far_end_vt_threshold_c_vs = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndVTThresholdCVs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdCVs.setDescription('The threshold associated with Coding Violations.') ac_sonet_far_end_vt_threshold_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 2, 3, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetFarEndVTThresholdUASs.setStatus('current') if mibBuilder.loadTexts: acSonetFarEndVTThresholdUASs.setDescription('The threshold associated with Unavailable Secondss.') ac_sonet_port_protection_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4)) if mibBuilder.loadTexts: acSonetPortProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionTable.setDescription('The SONET/SDH Port Protection table.') ac_sonet_port_protection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPortProtectionNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPortProtectionSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPortProtectionPort')) if mibBuilder.loadTexts: acSonetPortProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionEntry.setDescription('An entry in the SONET/SDH Port Protection table.') ac_sonet_port_protection_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPortProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_port_protection_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPortProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionSlot.setDescription('The physical slot number of the port.') ac_sonet_port_protection_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPortProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionPort.setDescription('The physical port number of the port.') ac_sonet_port_protection_type = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 1, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('working', 1), ('protection', 2), ('west', 3), ('east', 4), ('match', 5), ('ring', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPortProtectionType.setStatus('current') if mibBuilder.loadTexts: acSonetPortProtectionType.setDescription('This variable statically defines the purpose of the physical port connection as the working or protection port. It does not convey whether the system has undergone a protection switch.') ac_sonet_line_protection_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4)) if mibBuilder.loadTexts: acSonetLineProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionTable.setDescription('The SONET/SDH Line Protection table.') ac_sonet_line_protection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineProtectionNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineProtectionSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetLineProtectionPort')) if mibBuilder.loadTexts: acSonetLineProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionEntry.setDescription('An entry in the SONET/SDH Line Protection table.') ac_sonet_line_protection_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_line_protection_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSlot.setDescription('The physical slot number of the port.') ac_sonet_line_protection_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetLineProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionPort.setDescription('The physical port number of the port.') ac_sonet_line_protection_architecture = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('one-plus-one', 2), ('one-to-one', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineProtectionArchitecture.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionArchitecture.setDescription('This variable defines the APS architecture as either 1+1 or 1:1.') ac_sonet_line_protection_op_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('unidirectional', 1), ('bidirectional', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineProtectionOpMode.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionOpMode.setDescription('This variable defines the APS mode as either unidirectional or bidirectional.') ac_sonet_line_protection_switch_type = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('revertive', 1), ('nonrevertive', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSwitchType.setDescription('This variable defines the APS switch type as either revertive or nonrevertive.') ac_sonet_line_protection_sf_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(3, 5)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching.') ac_sonet_line_protection_sd_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(5, 9)).clone(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching.') ac_sonet_line_protection_active_traffic = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 9), truth_value().clone('false')).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionActiveTraffic.setDescription('This variable indicates when active traffic is on this line.') ac_sonet_line_protection_protection_switch = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 10), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionProtectionSwitch.setDescription('This variable indicates when a protection switch is currently affecting this line.') ac_sonet_line_protection_fail = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 11), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineProtectionFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionFail.setDescription('This variable indicates when a protection switching failure has taken place. See GR-253, 6.2.1.1.6.') ac_sonet_line_protection_channel_mismatch_fail = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 12), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineProtectionChannelMismatchFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionChannelMismatchFail.setDescription('This variable indicates when a protection switching channel mismatch failure has taken place. See GR-253, 6.2.1.1.6.') ac_sonet_line_protection_mode_mismatch_fail = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 13), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineProtectionModeMismatchFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionModeMismatchFail.setDescription('This variable indicates when a protection switching mode mismatch failure has taken place. See GR-253, 6.2.1.1.6.') ac_sonet_line_protection_far_end_line_fail = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 14), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetLineProtectionFarEndLineFail.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionFarEndLineFail.setDescription('This variable indicates when a protection switching far-end protection-line failure has taken place. See GR-253, 6.2.1.1.6.') ac_sonet_line_protection_wtr_time = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(300, 720))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionWTRTime.setDescription('This variable defines the APS Wait To Restore time. The time has one second granularity and may have a value in the range from 300 seconds (5 minutes) to 720 seconds (12 minutes).') ac_sonet_line_protection_man_command = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 1, 3, 4, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('clear', 1), ('lockout-protection', 2), ('force-working', 3), ('force-protection', 4), ('manual-working', 5), ('manual-protection', 6), ('exercise', 7), ('lockout-working', 8), ('clear-lockout-working', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetLineProtectionManCommand.setStatus('current') if mibBuilder.loadTexts: acSonetLineProtectionManCommand.setDescription('This variable defines the APS manually initiated commands.') ac_sonet_path_protection_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7)) if mibBuilder.loadTexts: acSonetPathProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionTable.setDescription('The SONET/SDH Path Protection table.') ac_sonet_path_protection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathProtectionNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathProtectionSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathProtectionPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetPathProtectionPath')) if mibBuilder.loadTexts: acSonetPathProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionEntry.setDescription('An entry in the SONET/SDH Path Protection table.') ac_sonet_path_protection_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_path_protection_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSlot.setDescription('The physical slot number of the port.') ac_sonet_path_protection_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionPort.setDescription('The physical port number of the port.') ac_sonet_path_protection_path = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetPathProtectionPath.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionPath.setDescription('The STS-1 path for the port.') ac_sonet_path_protection_switch_type = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('revertive', 1), ('nonrevertive', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSwitchType.setDescription('This variable defines the path switch type as either revertive or nonrevertive.') ac_sonet_path_protection_sf_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(3, 5)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching. The value used is the exponent to a power of 10, so 3 means 10E-3.') ac_sonet_path_protection_sd_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(5, 9)).clone(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching. The value used is the exponent to a power of 10, so 6 means 10E-6.') ac_sonet_path_protection_active_traffic = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionActiveTraffic.setDescription('This variable indicates when ODP or UPSR active traffic is on this path.') ac_sonet_path_protection_protection_switch = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 9), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionProtectionSwitch.setDescription('This variable indicates when either a UPSR or an ODP protection switch is currently affecting this path.') ac_sonet_path_protection_wtr_time = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 720))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTRTime.setDescription('This variable defines the ODP or UPSR Wait To Restore time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds(12 minutes).') ac_sonet_path_protection_wti_time = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionWTITime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTITime.setDescription('This variable defines the ODP Wait To Idle time. The time has one second granularity and may have a value in the range from 1 to 50 seconds.') ac_sonet_path_protection_wtc_time = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 720))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionWTCTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTCTime.setDescription('This variable defines the ODP Wait To Clear time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds (12 minutes).') ac_sonet_path_protection_wt_rel_time = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 50))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionWTRelTime.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionWTRelTime.setDescription('This variable defines the ODP Wait To Release time. The time has one second granularity and may have a value in the range from 1 to 50 seconds.') ac_sonet_path_protection_man_switch = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('clear', 1), ('lockout-protection', 2), ('force-working', 3), ('force-protection', 4), ('manual-working', 5), ('manual-protection', 6), ('exercise', 7), ('lockout-working', 8), ('clear-lockout-working', 9), ('extra-traffic', 10)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionManSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionManSwitch.setDescription('This variable defines the ODP and UPSR manually initiated commands. Entries 7..10 are used in ODP only.') ac_sonet_path_protection_switch_op_status = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('idle', 1), ('bridged', 2), ('switched', 3), ('passthrough', 4), ('extra-traffic', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetPathProtectionSwitchOpStatus.setStatus('current') if mibBuilder.loadTexts: acSonetPathProtectionSwitchOpStatus.setDescription('This variable defines the current switch condition of an ODP path.') ac_sonet_path_protection_protection_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 2, 1, 7, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('odp', 1), ('upsr', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetPathProtectionProtectionMode.setStatus('deprecated') if mibBuilder.loadTexts: acSonetPathProtectionProtectionMode.setDescription(' !! This object *MUST* be set before any other object is accessed. !! This is the type of protection switching to be used if independent path level protection switching is enabled. This is similar to the acTimeSlotPathProtectionMode object that resides in the timeslot table. Refer to it for a description of the enumerations.') ac_sonet_vt_protection_table = mib_table((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6)) if mibBuilder.loadTexts: acSonetVTProtectionTable.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionTable.setDescription('The SONET/SDH VT Protection table.') ac_sonet_vt_protection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1)).setIndexNames((0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTProtectionNodeId'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTProtectionSlot'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTProtectionPort'), (0, 'APPIAN-PPORT-SONET-MIB', 'acSonetVTProtectionVT')) if mibBuilder.loadTexts: acSonetVTProtectionEntry.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionEntry.setDescription('An entry in the SONET/SDH VT Protection table.') ac_sonet_vt_protection_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 1), ac_node_id()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTProtectionNodeId.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionNodeId.setDescription('The node id is the id for this specific node in the OSAP ring.') ac_sonet_vt_protection_slot = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 2), ac_slot_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTProtectionSlot.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSlot.setDescription('The physical slot number of the port.') ac_sonet_vt_protection_port = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 3), ac_port_number()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTProtectionPort.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionPort.setDescription('The physical port number of the port.') ac_sonet_vt_protection_vt = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: acSonetVTProtectionVT.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionVT.setDescription('The VT path instance for the port.') ac_sonet_vt_protection_switch_type = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('revertive', 1), ('nonrevertive', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTProtectionSwitchType.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSwitchType.setDescription('This variable defines the VT path switch type as either revertive or nonrevertive.') ac_sonet_vt_protection_sf_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(3, 5)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTProtectionSFThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSFThreshold.setDescription('The threshold associated with Signal Fail (SF). This value determines the BER level for protection switching.') ac_sonet_vt_protection_sd_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(5, 8)).clone(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTProtectionSDThreshold.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionSDThreshold.setDescription('The threshold associated with Signal Degrade (SD). This value determines the BER level for protection switching.') ac_sonet_vt_protection_protection_switch = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTProtectionProtectionSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionProtectionSwitch.setDescription('This variable indicates when a protection switch is currently affecting this path.') ac_sonet_vt_protection_wtr_time = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 720))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTProtectionWTRTime.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionWTRTime.setDescription('This variable defines the UPSR Wait To Restore time. The time has one second granularity and may have a value in the range from 1 second to 720 seconds(12 minutes).') ac_sonet_vt_protection_man_switch = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('clear', 1), ('lockout-protection', 2), ('force-working', 3), ('force-protection', 4), ('manual-working', 5), ('manual-protection', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: acSonetVTProtectionManSwitch.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionManSwitch.setDescription('This variable defines the UPSR manually initiated commands.') ac_sonet_vt_protection_active_traffic = mib_table_column((1, 3, 6, 1, 4, 1, 2785, 2, 3, 6, 3, 1, 6, 1, 11), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: acSonetVTProtectionActiveTraffic.setStatus('current') if mibBuilder.loadTexts: acSonetVTProtectionActiveTraffic.setDescription('This variable indicates when UPSR active traffic is on this path.') mibBuilder.exportSymbols('APPIAN-PPORT-SONET-MIB', acSonetPathTIMFormat=acSonetPathTIMFormat, acSonetFarEndVTThresholdPort=acSonetFarEndVTThresholdPort, acSonetPathProtectionProtectionMode=acSonetPathProtectionProtectionMode, acSonetSectionSSMEntry=acSonetSectionSSMEntry, acSonetPathProtectionSlot=acSonetPathProtectionSlot, acSonetFarEndPathDayIntervalValidStats=acSonetFarEndPathDayIntervalValidStats, acSonetVTDayIntervalVT=acSonetVTDayIntervalVT, acSonetFarEndVT15MinuteIntervalPort=acSonetFarEndVT15MinuteIntervalPort, acSonetSection15MinuteIntervalPort=acSonetSection15MinuteIntervalPort, acSonetPortValidIntervals=acSonetPortValidIntervals, acSonetFarEndPath15MinuteIntervalNodeId=acSonetFarEndPath15MinuteIntervalNodeId, acSonetVT15MinuteIntervalSESs=acSonetVT15MinuteIntervalSESs, acSonetPath15MinuteIntervalESs=acSonetPath15MinuteIntervalESs, acSonetSectionSSMNodeId=acSonetSectionSSMNodeId, acSonetLine15MinuteIntervalUASs=acSonetLine15MinuteIntervalUASs, acSonetSection=acSonetSection, acSonetPath=acSonetPath, acSonetPathThresholdNodeId=acSonetPathThresholdNodeId, acSonetPathDayIntervalUASs=acSonetPathDayIntervalUASs, acSonetPortOpStatus=acSonetPortOpStatus, acSonetPath15MinuteIntervalSlot=acSonetPath15MinuteIntervalSlot, acSonetVTRDIVT=acSonetVTRDIVT, acSonetVTThresholdSlot=acSonetVTThresholdSlot, acSonetVTThresholdSelectionNum=acSonetVTThresholdSelectionNum, acSonetPortNodeId=acSonetPortNodeId, acSonetPathDayIntervalBER=acSonetPathDayIntervalBER, acSonetPathTIMSlot=acSonetPathTIMSlot, acSonetFarEndPathThresholdCVs=acSonetFarEndPathThresholdCVs, acSonetFarEndVTDayIntervalVT=acSonetFarEndVTDayIntervalVT, acSonetPortProtectionEntry=acSonetPortProtectionEntry, acSonetFarEndVT15MinuteIntervalSlot=acSonetFarEndVT15MinuteIntervalSlot, acSonetPathThresholdUASs=acSonetPathThresholdUASs, acSonetVT15MinuteIntervalNodeId=acSonetVT15MinuteIntervalNodeId, acSonetVTDayIntervalNodeId=acSonetVTDayIntervalNodeId, acSonetVTProtectionEntry=acSonetVTProtectionEntry, acSonetVTDayIntervalSlot=acSonetVTDayIntervalSlot, acSonetVTProtectionSlot=acSonetVTProtectionSlot, acSonetFarEndPathDayIntervalPath=acSonetFarEndPathDayIntervalPath, acSonetVTPLMExpectedValue=acSonetVTPLMExpectedValue, acSonetFarEndVTThresholdSelectionNum=acSonetFarEndVTThresholdSelectionNum, acSonetPortProtectionType=acSonetPortProtectionType, acSonetLineProtectionManCommand=acSonetLineProtectionManCommand, acSonetFarEndLine15MinuteIntervalESs=acSonetFarEndLine15MinuteIntervalESs, acSonetFarEndVTDayIntervalNumber=acSonetFarEndVTDayIntervalNumber, acSonetPathTIMDetectEnable=acSonetPathTIMDetectEnable, acSonetVTProtectionActiveTraffic=acSonetVTProtectionActiveTraffic, acSonetVTRDIPort=acSonetVTRDIPort, acSonetPath15MinuteIntervalResetStats=acSonetPath15MinuteIntervalResetStats, acSonetThresholdSlot=acSonetThresholdSlot, acSonetPath15MinuteIntervalUASs=acSonetPath15MinuteIntervalUASs, acSonetSectionDayIntervalESs=acSonetSectionDayIntervalESs, acSonetFarEndVTThresholdSESs=acSonetFarEndVTThresholdSESs, acSonetLineDayIntervalSESs=acSonetLineDayIntervalSESs, acSonetLineProtectionOpMode=acSonetLineProtectionOpMode, acSonetVT15MinuteIntervalStatus=acSonetVT15MinuteIntervalStatus, acSonetFarEndVTDayIntervalValidStats=acSonetFarEndVTDayIntervalValidStats, acSonetFarEndVTDayIntervalCVs=acSonetFarEndVTDayIntervalCVs, acSonetDCCSlot=acSonetDCCSlot, acSonetFarEndLineThresholdESs=acSonetFarEndLineThresholdESs, acSonetVTThresholdEntry=acSonetVTThresholdEntry, acSonetLineDayIntervalUASs=acSonetLineDayIntervalUASs, acSonetPathRDIOpMode=acSonetPathRDIOpMode, acSonetPathProtectionWTRelTime=acSonetPathProtectionWTRelTime, acSonetPathTIMNodeId=acSonetPathTIMNodeId, acSonetVTDayIntervalTable=acSonetVTDayIntervalTable, acSonetPathPLMEntry=acSonetPathPLMEntry, acSonetPathThresholdCVs=acSonetPathThresholdCVs, acSonetFarEndPathDayIntervalResetStats=acSonetFarEndPathDayIntervalResetStats, acSonetPathProtectionPath=acSonetPathProtectionPath, acSonetFarEndVTDayIntervalSlot=acSonetFarEndVTDayIntervalSlot, acSonetVT15MinuteIntervalNumber=acSonetVT15MinuteIntervalNumber, acSonetFarEndLineDayIntervalUASs=acSonetFarEndLineDayIntervalUASs, acSonetLineThresholdCVs=acSonetLineThresholdCVs, acSonetVTDayIntervalBER=acSonetVTDayIntervalBER, acSonetFarEndVTDayIntervalResetStats=acSonetFarEndVTDayIntervalResetStats, acSonetLineProtectionModeMismatchFail=acSonetLineProtectionModeMismatchFail, acSonetFarEndLineThresholdPort=acSonetFarEndLineThresholdPort, acSonetFarEndLineDayIntervalCVs=acSonetFarEndLineDayIntervalCVs, acSonetPathDayIntervalCVs=acSonetPathDayIntervalCVs, acSonetPathDayIntervalEntry=acSonetPathDayIntervalEntry, acSonetFarEndVTDayIntervalUASs=acSonetFarEndVTDayIntervalUASs, acSonetFarEndPathDayIntervalSESs=acSonetFarEndPathDayIntervalSESs, acSonetPortOpCode=acSonetPortOpCode, acSonetVTProtectionSwitchType=acSonetVTProtectionSwitchType, acSonetFarEndLineDayIntervalESs=acSonetFarEndLineDayIntervalESs, acSonetFarEndVT15MinuteIntervalUASs=acSonetFarEndVT15MinuteIntervalUASs, acSonetPathDayIntervalStatus=acSonetPathDayIntervalStatus, acSonetFarEndPath15MinuteIntervalSESs=acSonetFarEndPath15MinuteIntervalSESs, acSonetVT15MinuteIntervalSlot=acSonetVT15MinuteIntervalSlot, acSonetPathTIMReceivedString=acSonetPathTIMReceivedString, acSonetLine=acSonetLine, acSonetFarEndVTDayIntervalPort=acSonetFarEndVTDayIntervalPort, acSonetVTRDITable=acSonetVTRDITable, acSonetFarEndLine15MinuteIntervalEntry=acSonetFarEndLine15MinuteIntervalEntry, acSonetPathProtectionWTCTime=acSonetPathProtectionWTCTime, acSonetFarEndPath15MinuteIntervalPath=acSonetFarEndPath15MinuteIntervalPath, acSonetFarEndVTThresholdCVs=acSonetFarEndVTThresholdCVs, acSonetSection15MinuteIntervalTable=acSonetSection15MinuteIntervalTable, acSonetPathProtectionTable=acSonetPathProtectionTable, acSonetLineProtectionChannelMismatchFail=acSonetLineProtectionChannelMismatchFail, acSonetVTThresholdUASs=acSonetVTThresholdUASs, acSonetVTDayIntervalCVs=acSonetVTDayIntervalCVs, acSonetPathPLMMismatchFailure=acSonetPathPLMMismatchFailure, acSonetFarEndLine15MinuteIntervalSlot=acSonetFarEndLine15MinuteIntervalSlot, acSonetFarEndVTThresholdUASs=acSonetFarEndVTThresholdUASs, acSonetLineProtectionTable=acSonetLineProtectionTable, acSonetPortEntry=acSonetPortEntry, acSonetFarEndLineThresholdEntry=acSonetFarEndLineThresholdEntry, acSonetLineDayIntervalCVs=acSonetLineDayIntervalCVs, acSonetSection15MinuteIntervalResetStats=acSonetSection15MinuteIntervalResetStats, acSonetVTThresholdPort=acSonetVTThresholdPort, acSonetVTProtectionSFThreshold=acSonetVTProtectionSFThreshold, acSonetDCCAppianEnable=acSonetDCCAppianEnable, acSonetSectionDayIntervalNumber=acSonetSectionDayIntervalNumber, acSonetLineDayIntervalNodeId=acSonetLineDayIntervalNodeId, acSonetVTProtectionNodeId=acSonetVTProtectionNodeId, acSonetFarEndPathDayIntervalUASs=acSonetFarEndPathDayIntervalUASs, acSonetFarEndVTDayIntervalSESs=acSonetFarEndVTDayIntervalSESs, acSonetLineThresholdPort=acSonetLineThresholdPort, acSonetPortRingName=acSonetPortRingName, acSonetSectionThresholdTable=acSonetSectionThresholdTable, acSonetPathThresholdPort=acSonetPathThresholdPort, acSonetLine15MinuteIntervalPort=acSonetLine15MinuteIntervalPort, acSonetSectionTIMSlot=acSonetSectionTIMSlot, acSonetFarEndLine15MinuteIntervalPort=acSonetFarEndLine15MinuteIntervalPort, acSonetVT15MinuteIntervalEntry=acSonetVT15MinuteIntervalEntry, acSonetFarEndLine=acSonetFarEndLine, acSonetLineThresholdNodeId=acSonetLineThresholdNodeId, acSonetVTProtectionManSwitch=acSonetVTProtectionManSwitch, acSonetFarEndVT=acSonetFarEndVT, acSonetSectionTIMDetectEnable=acSonetSectionTIMDetectEnable, acSonetPortProtectionNodeId=acSonetPortProtectionNodeId, acSonetPathProtectionActiveTraffic=acSonetPathProtectionActiveTraffic, acSonetPortResetAllPMregs=acSonetPortResetAllPMregs, acSonetPortConnectionType=acSonetPortConnectionType, acSonetVTDayIntervalResetStats=acSonetVTDayIntervalResetStats, acSonetFarEndPathThresholdEntry=acSonetFarEndPathThresholdEntry, acSonetLine15MinuteIntervalBER=acSonetLine15MinuteIntervalBER, acSonetDCCSectionEnable=acSonetDCCSectionEnable, acSonetFarEndPathThresholdUASs=acSonetFarEndPathThresholdUASs, acSonetPathTIMTable=acSonetPathTIMTable, acSonetVTPLMVT=acSonetVTPLMVT, acSonetPathDayIntervalPort=acSonetPathDayIntervalPort, acSonetSectionSSMReceivedValue=acSonetSectionSSMReceivedValue, acSonetFarEndLineThresholdSlot=acSonetFarEndLineThresholdSlot, acSonetSectionDayIntervalResetStats=acSonetSectionDayIntervalResetStats, acSonetVTProtectionPort=acSonetVTProtectionPort, acSonetLineDayIntervalPort=acSonetLineDayIntervalPort, acSonetLineDayIntervalTable=acSonetLineDayIntervalTable, acSonetFarEndVTThresholdEntry=acSonetFarEndVTThresholdEntry, acSonetPathThresholdSlot=acSonetPathThresholdSlot, acSonetPath15MinuteIntervalStatus=acSonetPath15MinuteIntervalStatus, acSonetFarEndPath15MinuteIntervalNumber=acSonetFarEndPath15MinuteIntervalNumber, acSonetPortProtectionPort=acSonetPortProtectionPort, acSonetVTPLMTable=acSonetVTPLMTable, acSonetFarEndLine15MinuteIntervalTable=acSonetFarEndLine15MinuteIntervalTable, acSonetFarEndPath=acSonetFarEndPath, acSonetPathThresholdTable=acSonetPathThresholdTable, acSonetFarEndVT15MinuteIntervalValidStats=acSonetFarEndVT15MinuteIntervalValidStats, acSonetFarEndPathDayIntervalTable=acSonetFarEndPathDayIntervalTable, acSonetSectionDayIntervalTable=acSonetSectionDayIntervalTable, acSonetDCCPort=acSonetDCCPort, acSonetSectionTIMExpectedString=acSonetSectionTIMExpectedString, acSonetSectionTIMFailure=acSonetSectionTIMFailure, acSonetSectionSSMDetectEnable=acSonetSectionSSMDetectEnable, acSonetDCCAppianFail=acSonetDCCAppianFail, acSonetLineProtectionSwitchType=acSonetLineProtectionSwitchType, acSonetPathDayIntervalTable=acSonetPathDayIntervalTable, acSonetFarEndPath15MinuteIntervalResetStats=acSonetFarEndPath15MinuteIntervalResetStats, acSonetPathTIMEntry=acSonetPathTIMEntry, acSonetVTDayIntervalPort=acSonetVTDayIntervalPort, acSonetLineDayIntervalValidStats=acSonetLineDayIntervalValidStats, acSonetFarEndLineDayIntervalEntry=acSonetFarEndLineDayIntervalEntry, acSonetLineProtectionNodeId=acSonetLineProtectionNodeId, acSonetSection15MinuteIntervalNodeId=acSonetSection15MinuteIntervalNodeId, acSonetPathDayIntervalPath=acSonetPathDayIntervalPath, acSonetSectionTIMReceivedString=acSonetSectionTIMReceivedString, acSonetPathProtectionWTRTime=acSonetPathProtectionWTRTime, acSonetFarEndLine15MinuteIntervalResetStats=acSonetFarEndLine15MinuteIntervalResetStats, acSonetFarEndLineThresholdUASs=acSonetFarEndLineThresholdUASs, acSonetFarEndLine15MinuteIntervalSESs=acSonetFarEndLine15MinuteIntervalSESs, acSonetFarEndLineDayIntervalNodeId=acSonetFarEndLineDayIntervalNodeId, acSonetFarEndVT15MinuteIntervalResetStats=acSonetFarEndVT15MinuteIntervalResetStats, acSonetSection15MinuteIntervalCVs=acSonetSection15MinuteIntervalCVs, acSonetLineDayIntervalStatus=acSonetLineDayIntervalStatus, acSonetLine15MinuteIntervalESs=acSonetLine15MinuteIntervalESs, acSonetPathThresholdSelectionNum=acSonetPathThresholdSelectionNum, acSonetPathRDINodeId=acSonetPathRDINodeId, acSonetLineThresholdSelectionNum=acSonetLineThresholdSelectionNum, acSonetFarEndLineThresholdNodeId=acSonetFarEndLineThresholdNodeId, acSonetFarEndLineThresholdSelectionNum=acSonetFarEndLineThresholdSelectionNum, acSonetFarEndVT15MinuteIntervalEntry=acSonetFarEndVT15MinuteIntervalEntry, acSonetPortTimeElapsed=acSonetPortTimeElapsed, acSonetPathRDIPort=acSonetPathRDIPort, acSonetPortAdminStatus=acSonetPortAdminStatus, acSonetSection15MinuteIntervalESs=acSonetSection15MinuteIntervalESs, acSonetSectionDayIntervalEntry=acSonetSectionDayIntervalEntry, acSonetLineProtectionSFThreshold=acSonetLineProtectionSFThreshold, acSonetLineDayIntervalResetStats=acSonetLineDayIntervalResetStats, acSonetLineProtectionProtectionSwitch=acSonetLineProtectionProtectionSwitch, acSonetVT15MinuteIntervalUASs=acSonetVT15MinuteIntervalUASs, acSonetLine15MinuteIntervalSlot=acSonetLine15MinuteIntervalSlot, acSonetLine15MinuteIntervalTable=acSonetLine15MinuteIntervalTable, acSonetSectionSSMSlot=acSonetSectionSSMSlot, acSonetLine15MinuteIntervalCVs=acSonetLine15MinuteIntervalCVs, acSonetLineThresholdSESs=acSonetLineThresholdSESs, acSonetPathProtectionNodeId=acSonetPathProtectionNodeId, acSonetDCCTable=acSonetDCCTable, acSonetPath15MinuteIntervalCVs=acSonetPath15MinuteIntervalCVs, acSonetFarEndVTThresholdNodeId=acSonetFarEndVTThresholdNodeId, acSonetVTPLMUnequipped=acSonetVTPLMUnequipped, acSonetPortTransmitterEnable=acSonetPortTransmitterEnable, acSonetLineDayIntervalEntry=acSonetLineDayIntervalEntry, acSonetVT15MinuteIntervalResetStats=acSonetVT15MinuteIntervalResetStats, acSonetPathProtectionProtectionSwitch=acSonetPathProtectionProtectionSwitch, acSonetPortRingIdentifier=acSonetPortRingIdentifier, acSonetFarEndPathThresholdSESs=acSonetFarEndPathThresholdSESs, acSonetPathThresholdEntry=acSonetPathThresholdEntry, acSonetPathProtectionSwitchType=acSonetPathProtectionSwitchType, acSonetFarEndPathThresholdPort=acSonetFarEndPathThresholdPort, acSonetSectionTIMTable=acSonetSectionTIMTable, acSonetFarEndPathDayIntervalEntry=acSonetFarEndPathDayIntervalEntry, acSonetLineDayIntervalBER=acSonetLineDayIntervalBER, acSonetFarEndLine15MinuteIntervalNodeId=acSonetFarEndLine15MinuteIntervalNodeId, acSonetSectionThresholdSESs=acSonetSectionThresholdSESs, acSonetPath15MinuteIntervalPath=acSonetPath15MinuteIntervalPath, acSonetSectionDayIntervalPort=acSonetSectionDayIntervalPort, acSonetVTProtectionSDThreshold=acSonetVTProtectionSDThreshold, acSonetSectionThresholdCVs=acSonetSectionThresholdCVs, acSonetLineThresholdTable=acSonetLineThresholdTable, acSonetSectionTIMFormat=acSonetSectionTIMFormat, acSonetFarEndLineThresholdAdminStatus=acSonetFarEndLineThresholdAdminStatus, acSonetPathTIMGenerateEnable=acSonetPathTIMGenerateEnable, acSonetFarEndLineDayIntervalSESs=acSonetFarEndLineDayIntervalSESs, acSonetFarEndPath15MinuteIntervalEntry=acSonetFarEndPath15MinuteIntervalEntry, acSonetObjectsVT=acSonetObjectsVT, acSonetSectionDayIntervalValidStats=acSonetSectionDayIntervalValidStats, acSonetThresholdPort=acSonetThresholdPort, acSonetLineProtectionSDThreshold=acSonetLineProtectionSDThreshold, acSonetLineProtectionArchitecture=acSonetLineProtectionArchitecture, acSonetFarEndPathDayIntervalESs=acSonetFarEndPathDayIntervalESs, acSonetFarEndLineDayIntervalSlot=acSonetFarEndLineDayIntervalSlot, acSonetPathTIMMismatchZeros=acSonetPathTIMMismatchZeros, acSonetVTPLMMismatchFailure=acSonetVTPLMMismatchFailure, acSonetFarEndPath15MinuteIntervalCVs=acSonetFarEndPath15MinuteIntervalCVs, acSonetSectionDayIntervalSESs=acSonetSectionDayIntervalSESs, acSonetVT15MinuteIntervalCVs=acSonetVT15MinuteIntervalCVs, acSonetPathProtectionManSwitch=acSonetPathProtectionManSwitch, acSonetVTProtectionWTRTime=acSonetVTProtectionWTRTime, acSonetPort=acSonetPort, acSonetPortSlot=acSonetPortSlot, acSonetPathPLMNodeId=acSonetPathPLMNodeId, acSonetFarEndPathDayIntervalNumber=acSonetFarEndPathDayIntervalNumber, acSonetSectionThresholdNodeId=acSonetSectionThresholdNodeId) mibBuilder.exportSymbols('APPIAN-PPORT-SONET-MIB', acSonetSectionDayIntervalCVs=acSonetSectionDayIntervalCVs, acSonetVTDayIntervalStatus=acSonetVTDayIntervalStatus, acSonetLineProtectionFarEndLineFail=acSonetLineProtectionFarEndLineFail, acSonetPathThresholdSESs=acSonetPathThresholdSESs, acSonetSectionDayIntervalSEFSs=acSonetSectionDayIntervalSEFSs, acSonetSectionSSMTable=acSonetSectionSSMTable, acSonetPortMediumType=acSonetPortMediumType, acSonetLineDayIntervalSlot=acSonetLineDayIntervalSlot, acSonetFarEndPath15MinuteIntervalTable=acSonetFarEndPath15MinuteIntervalTable, acSonetLineProtectionEntry=acSonetLineProtectionEntry, acSonetPathProtectionSwitchOpStatus=acSonetPathProtectionSwitchOpStatus, acSonetFarEndVT15MinuteIntervalNumber=acSonetFarEndVT15MinuteIntervalNumber, acSonetSectionThresholdEntry=acSonetSectionThresholdEntry, acSonetFarEndPathDayIntervalPort=acSonetFarEndPathDayIntervalPort, acSonetFarEndLine15MinuteIntervalCVs=acSonetFarEndLine15MinuteIntervalCVs, acSonetPathRDITable=acSonetPathRDITable, acSonetVT15MinuteIntervalPort=acSonetVT15MinuteIntervalPort, acSonetVT15MinuteIntervalTable=acSonetVT15MinuteIntervalTable, acSonetFarEndVT15MinuteIntervalSESs=acSonetFarEndVT15MinuteIntervalSESs, acSonetPortProtectionTable=acSonetPortProtectionTable, acSonetSectionDayIntervalSlot=acSonetSectionDayIntervalSlot, acSonetFarEndPathThresholdAdminStatus=acSonetFarEndPathThresholdAdminStatus, acSonetVTDayIntervalEntry=acSonetVTDayIntervalEntry, acSonetThresholdNodeId=acSonetThresholdNodeId, acSonetSectionSSMPort=acSonetSectionSSMPort, acSonetVTDayIntervalESs=acSonetVTDayIntervalESs, acSonetVTPLMDetectEnable=acSonetVTPLMDetectEnable, AcTraceString=AcTraceString, acSonetLineProtectionFail=acSonetLineProtectionFail, acSonetPathTIMPort=acSonetPathTIMPort, acSonetLine15MinuteIntervalValidStats=acSonetLine15MinuteIntervalValidStats, acSonetVTRDISlot=acSonetVTRDISlot, acSonetVTRDIOpMode=acSonetVTRDIOpMode, acSonetPath15MinuteIntervalValidStats=acSonetPath15MinuteIntervalValidStats, acSonetFarEndVTThresholdESs=acSonetFarEndVTThresholdESs, acSonetSectionDayIntervalStatus=acSonetSectionDayIntervalStatus, acSonetVTPLMReceivedValue=acSonetVTPLMReceivedValue, acSonetPathTIMTransmitedString=acSonetPathTIMTransmitedString, acSonetFarEndLineThresholdCVs=acSonetFarEndLineThresholdCVs, acSonetPath15MinuteIntervalNumber=acSonetPath15MinuteIntervalNumber, acSonetPathProtectionPort=acSonetPathProtectionPort, acSonetFarEndPathDayIntervalCVs=acSonetFarEndPathDayIntervalCVs, acSonetLineThresholdESs=acSonetLineThresholdESs, acSonetPathPLMExpectedValue=acSonetPathPLMExpectedValue, acSonetFarEndPath15MinuteIntervalUASs=acSonetFarEndPath15MinuteIntervalUASs, acSonetVTProtectionTable=acSonetVTProtectionTable, acSonetLineThresholdUASs=acSonetLineThresholdUASs, acSonetSectionThresholdSelectionNum=acSonetSectionThresholdSelectionNum, acSonetPathPLMReceivedValue=acSonetPathPLMReceivedValue, acSonetVTThresholdCVs=acSonetVTThresholdCVs, acSonetPathThresholdESs=acSonetPathThresholdESs, acSonetFarEndVTThresholdAdminStatus=acSonetFarEndVTThresholdAdminStatus, acSonetDCCNodeId=acSonetDCCNodeId, acSonetPathDayIntervalValidStats=acSonetPathDayIntervalValidStats, acSonetSectionDayIntervalNodeId=acSonetSectionDayIntervalNodeId, acSonetVT15MinuteIntervalVT=acSonetVT15MinuteIntervalVT, acSonetPortPort=acSonetPortPort, acSonetLineDayIntervalNumber=acSonetLineDayIntervalNumber, acSonetFarEndLineDayIntervalResetStats=acSonetFarEndLineDayIntervalResetStats, acSonetSectionSSMTransmitedValue=acSonetSectionSSMTransmitedValue, acSonetVTDayIntervalUASs=acSonetVTDayIntervalUASs, acSonetVTRDINodeId=acSonetVTRDINodeId, acSonetPathProtectionSFThreshold=acSonetPathProtectionSFThreshold, acSonetFarEndLineDayIntervalTable=acSonetFarEndLineDayIntervalTable, acSonetLineDayIntervalESs=acSonetLineDayIntervalESs, acSonetPortProtectionSlot=acSonetPortProtectionSlot, acSonetFarEndVTThresholdVT=acSonetFarEndVTThresholdVT, acSonetSection15MinuteIntervalNumber=acSonetSection15MinuteIntervalNumber, acSonetLine15MinuteIntervalSESs=acSonetLine15MinuteIntervalSESs, acSonetVTPLMTransmitedValue=acSonetVTPLMTransmitedValue, acSonetVT15MinuteIntervalBER=acSonetVT15MinuteIntervalBER, acSonetVTPLMNodeId=acSonetVTPLMNodeId, acSonetVTThresholdNodeId=acSonetVTThresholdNodeId, acSonetFarEndVTDayIntervalESs=acSonetFarEndVTDayIntervalESs, acSonetFarEndVTDayIntervalEntry=acSonetFarEndVTDayIntervalEntry, acSonetThresholdTable=acSonetThresholdTable, acSonetFarEndPath15MinuteIntervalESs=acSonetFarEndPath15MinuteIntervalESs, acSonetFarEndPathThresholdSlot=acSonetFarEndPathThresholdSlot, acSonetFarEndLineDayIntervalValidStats=acSonetFarEndLineDayIntervalValidStats, acSonetFarEndPathThresholdSelectionNum=acSonetFarEndPathThresholdSelectionNum, acSonetFarEndVTDayIntervalNodeId=acSonetFarEndVTDayIntervalNodeId, acSonetFarEndLineThresholdSESs=acSonetFarEndLineThresholdSESs, acSonetPortResetCurrentPMregs=acSonetPortResetCurrentPMregs, acSonetSection15MinuteIntervalEntry=acSonetSection15MinuteIntervalEntry, acSonetPortTable=acSonetPortTable, acSonetFarEndPathThresholdPath=acSonetFarEndPathThresholdPath, acSonetVTThresholdSESs=acSonetVTThresholdSESs, acSonetPathRDIPath=acSonetPathRDIPath, acSonetFarEndLineDayIntervalNumber=acSonetFarEndLineDayIntervalNumber, acSonetLineProtectionActiveTraffic=acSonetLineProtectionActiveTraffic, acSonetPathPLMTransmitedValue=acSonetPathPLMTransmitedValue, acSonetLineThresholdEntry=acSonetLineThresholdEntry, acSonetSection15MinuteIntervalSESs=acSonetSection15MinuteIntervalSESs, acSonetLine15MinuteIntervalStatus=acSonetLine15MinuteIntervalStatus, acSonetPathDayIntervalSESs=acSonetPathDayIntervalSESs, acSonet=acSonet, acSonetPathPLMSlot=acSonetPathPLMSlot, acSonetVTProtectionVT=acSonetVTProtectionVT, acSonetFarEndLine15MinuteIntervalNumber=acSonetFarEndLine15MinuteIntervalNumber, acSonetFarEndLine15MinuteIntervalValidStats=acSonetFarEndLine15MinuteIntervalValidStats, acSonetVT15MinuteIntervalValidStats=acSonetVT15MinuteIntervalValidStats, acSonetThresholdSESSet=acSonetThresholdSESSet, acSonetSectionTIMGenerateEnable=acSonetSectionTIMGenerateEnable, acSonetVTDayIntervalSESs=acSonetVTDayIntervalSESs, acSonetLineThresholdSlot=acSonetLineThresholdSlot, acSonetPath15MinuteIntervalBER=acSonetPath15MinuteIntervalBER, PYSNMP_MODULE_ID=acSonet, acSonetPortCircuitIdentifier=acSonetPortCircuitIdentifier, acSonetFarEndVTThresholdSlot=acSonetFarEndVTThresholdSlot, acSonetPathPLMDetectEnable=acSonetPathPLMDetectEnable, acSonetFarEndPathThresholdTable=acSonetFarEndPathThresholdTable, acSonetDCCLineEnable=acSonetDCCLineEnable, acSonetSectionThresholdPort=acSonetSectionThresholdPort, acSonetSectionThresholdSEFSs=acSonetSectionThresholdSEFSs, acSonetPath15MinuteIntervalTable=acSonetPath15MinuteIntervalTable, acSonetVTDayIntervalValidStats=acSonetVTDayIntervalValidStats, acSonetPath15MinuteIntervalNodeId=acSonetPath15MinuteIntervalNodeId, acSonetSectionTIMEntry=acSonetSectionTIMEntry, acSonetPathDayIntervalResetStats=acSonetPathDayIntervalResetStats, acSonetSectionTIMTransmitedString=acSonetSectionTIMTransmitedString, acSonetFarEndLineDayIntervalPort=acSonetFarEndLineDayIntervalPort, acSonetLine15MinuteIntervalNodeId=acSonetLine15MinuteIntervalNodeId, acSonetVTDayIntervalNumber=acSonetVTDayIntervalNumber, acSonetPortInvalidIntervals=acSonetPortInvalidIntervals, acSonetPathProtectionWTITime=acSonetPathProtectionWTITime, acSonetPath15MinuteIntervalEntry=acSonetPath15MinuteIntervalEntry, acSonetPathThresholdAdminStatus=acSonetPathThresholdAdminStatus, acSonetFarEndVT15MinuteIntervalTable=acSonetFarEndVT15MinuteIntervalTable, acSonetSectionThresholdESs=acSonetSectionThresholdESs, acSonetPortMediumLineCoding=acSonetPortMediumLineCoding, acSonetPathPLMTable=acSonetPathPLMTable, acSonetVT15MinuteIntervalESs=acSonetVT15MinuteIntervalESs, acSonetFarEndVT15MinuteIntervalVT=acSonetFarEndVT15MinuteIntervalVT, acSonetSection15MinuteIntervalSEFSs=acSonetSection15MinuteIntervalSEFSs, acSonetFarEndVT15MinuteIntervalNodeId=acSonetFarEndVT15MinuteIntervalNodeId, acSonetPortLoopbackConfig=acSonetPortLoopbackConfig, acSonetFarEndPathDayIntervalNodeId=acSonetFarEndPathDayIntervalNodeId, acSonetLineProtectionWTRTime=acSonetLineProtectionWTRTime, acSonetPathDayIntervalNumber=acSonetPathDayIntervalNumber, acSonetVT=acSonetVT, acSonetVTProtectionProtectionSwitch=acSonetVTProtectionProtectionSwitch, acSonetPath15MinuteIntervalSESs=acSonetPath15MinuteIntervalSESs, acSonetVTRDIEntry=acSonetVTRDIEntry, acSonetObjectsPath=acSonetObjectsPath, acSonetVTPLMEntry=acSonetVTPLMEntry, acSonetSection15MinuteIntervalSlot=acSonetSection15MinuteIntervalSlot, acSonetFarEndPath15MinuteIntervalValidStats=acSonetFarEndPath15MinuteIntervalValidStats, acSonetFarEndPathThresholdESs=acSonetFarEndPathThresholdESs, acSonetObjects=acSonetObjects, acSonetFarEndLine15MinuteIntervalUASs=acSonetFarEndLine15MinuteIntervalUASs, acSonetLine15MinuteIntervalNumber=acSonetLine15MinuteIntervalNumber, acSonetFarEndVTDayIntervalTable=acSonetFarEndVTDayIntervalTable, acSonetPathThresholdPath=acSonetPathThresholdPath, acSonetSectionTIMMismatchZeros=acSonetSectionTIMMismatchZeros, acSonetLineProtectionSlot=acSonetLineProtectionSlot, acSonetFarEndPathThresholdNodeId=acSonetFarEndPathThresholdNodeId, acSonetPortMediumLineType=acSonetPortMediumLineType, acSonetLine15MinuteIntervalResetStats=acSonetLine15MinuteIntervalResetStats, acSonetVTPLMSlot=acSonetVTPLMSlot, acSonetPathPLMUnequipped=acSonetPathPLMUnequipped, acSonetSectionTIMNodeId=acSonetSectionTIMNodeId, acSonetDCCSectionFail=acSonetDCCSectionFail, acSonetLine15MinuteIntervalEntry=acSonetLine15MinuteIntervalEntry, acSonetFarEndPath15MinuteIntervalSlot=acSonetFarEndPath15MinuteIntervalSlot, acSonetPathTIMFailure=acSonetPathTIMFailure, acSonetLineProtectionPort=acSonetLineProtectionPort, acSonetSection15MinuteIntervalValidStats=acSonetSection15MinuteIntervalValidStats, acSonetPathDayIntervalNodeId=acSonetPathDayIntervalNodeId, acSonetFarEndVT15MinuteIntervalCVs=acSonetFarEndVT15MinuteIntervalCVs, acSonetFarEndLineThresholdTable=acSonetFarEndLineThresholdTable, acSonetPathRDIEntry=acSonetPathRDIEntry, acSonetPathProtectionSDThreshold=acSonetPathProtectionSDThreshold, acSonetPathPLMPort=acSonetPathPLMPort, acSonetVTThresholdVT=acSonetVTThresholdVT, acSonetPathPLMPath=acSonetPathPLMPath, acSonetVTThresholdESs=acSonetVTThresholdESs, acSonetPathRDISlot=acSonetPathRDISlot, acSonetDCCEntry=acSonetDCCEntry, acSonetThresholdEntry=acSonetThresholdEntry, acSonetSection15MinuteIntervalStatus=acSonetSection15MinuteIntervalStatus, acSonetFarEndVT15MinuteIntervalESs=acSonetFarEndVT15MinuteIntervalESs, acSonetPathTIMExpectedString=acSonetPathTIMExpectedString, acSonetSectionThresholdSlot=acSonetSectionThresholdSlot, acSonetPathDayIntervalSlot=acSonetPathDayIntervalSlot, acSonetFarEndPath15MinuteIntervalPort=acSonetFarEndPath15MinuteIntervalPort, acSonetFarEndVTThresholdTable=acSonetFarEndVTThresholdTable, acSonetVTThresholdAdminStatus=acSonetVTThresholdAdminStatus, acSonetPathProtectionEntry=acSonetPathProtectionEntry, acSonetFarEndPathDayIntervalSlot=acSonetFarEndPathDayIntervalSlot, acSonetVTThresholdTable=acSonetVTThresholdTable, acSonetPathTIMPath=acSonetPathTIMPath, acSonetPathDayIntervalESs=acSonetPathDayIntervalESs, acSonetSectionTIMPort=acSonetSectionTIMPort, acSonetSectionThresholdAdminStatus=acSonetSectionThresholdAdminStatus, acSonetPath15MinuteIntervalPort=acSonetPath15MinuteIntervalPort, acSonetDCCLineFail=acSonetDCCLineFail, acSonetVTPLMPort=acSonetVTPLMPort, acSonetLineThresholdAdminStatus=acSonetLineThresholdAdminStatus)
class Solution: def longestConsecutive(self, nums): nums_set = set(nums) longest_seq = 0 for num in nums_set: # Don't need to check if there is a - 1 smaller in the list. if num - 1 not in nums_set: current_num = num current_seq = 1 while current_num + 1 in nums_set: current_num += 1 current_seq += 1 longest_seq = max(longest_seq, current_seq) return longest_seq if __name__ == '__main__': s = Solution() nums = [100, 4, 200, 1, 3, 2] print(s.longestConsecutive(nums))
class Solution: def longest_consecutive(self, nums): nums_set = set(nums) longest_seq = 0 for num in nums_set: if num - 1 not in nums_set: current_num = num current_seq = 1 while current_num + 1 in nums_set: current_num += 1 current_seq += 1 longest_seq = max(longest_seq, current_seq) return longest_seq if __name__ == '__main__': s = solution() nums = [100, 4, 200, 1, 3, 2] print(s.longestConsecutive(nums))
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## { 'name': 'Advanced Routes', 'version': '1.0', 'category': 'Manufacturing', 'description': """ This module supplements the Warehouse application by effectively implementing Push and Pull inventory flows. ============================================================================================================ Typically this could be used to: -------------------------------- * Manage product manufacturing chains * Manage default locations per product * Define routes within your warehouse according to business needs, such as: - Quality Control - After Sales Services - Supplier Returns * Help rental management, by generating automated return moves for rented products Once this module is installed, an additional tab appear on the product form, where you can add Push and Pull flow specifications. The demo data of CPU1 product for that push/pull : Push flows: ----------- Push flows are useful when the arrival of certain products in a given location should always be followed by a corresponding move to another location, optionally after a certain delay. The original Warehouse application already supports such Push flow specifications on the Locations themselves, but these cannot be refined per-product. A push flow specification indicates which location is chained with which location, and with what parameters. As soon as a given quantity of products is moved in the source location, a chained move is automatically foreseen according to the parameters set on the flow specification (destination location, delay, type of move, journal). The new move can be automatically processed, or require a manual confirmation, depending on the parameters. Pull flows: ----------- Pull flows are a bit different from Push flows, in the sense that they are not related to the processing of product moves, but rather to the processing of procurement orders. What is being pulled is a need, not directly products. A classical example of Pull flow is when you have an Outlet company, with a parent Company that is responsible for the supplies of the Outlet. [ Customer ] <- A - [ Outlet ] <- B - [ Holding ] <~ C ~ [ Supplier ] When a new procurement order (A, coming from the confirmation of a Sale Order for example) arrives in the Outlet, it is converted into another procurement (B, via a Pull flow of type 'move') requested from the Holding. When procurement order B is processed by the Holding company, and if the product is out of stock, it can be converted into a Purchase Order (C) from the Supplier (Pull flow of type Purchase). The result is that the procurement order, the need, is pushed all the way between the Customer and Supplier. Technically, Pull flows allow to process procurement orders differently, not only depending on the product being considered, but also depending on which location holds the 'need' for that product (i.e. the destination location of that procurement order). Use-Case: --------- You can use the demo data as follow: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **CPU1:** Sell some CPU1 from Chicago Shop and run the scheduler - Warehouse: delivery order, Chicago Shop: reception **CPU3:** - When receiving the product, it goes to Quality Control location then stored to shelf 2. - When delivering the customer: Pick List -> Packing -> Delivery Order from Gate A """, 'author': 'OpenERP SA', 'images': ['images/pulled_flow.jpeg','images/pushed_flow.jpeg'], 'depends': ['procurement','stock','sale'], 'data': ['stock_location_view.xml', 'security/stock_location_security.xml', 'security/ir.model.access.csv', 'procurement_pull_workflow.xml'], 'demo': [ 'stock_location_demo_cpu1.xml', 'stock_location_demo_cpu3.yml', ], 'installable': True, 'test': [ 'test/stock_location_pull_flow.yml', 'test/stock_location_push_flow.yml', ], 'auto_install': False, } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
{'name': 'Advanced Routes', 'version': '1.0', 'category': 'Manufacturing', 'description': "\nThis module supplements the Warehouse application by effectively implementing Push and Pull inventory flows.\n============================================================================================================\n\nTypically this could be used to:\n--------------------------------\n * Manage product manufacturing chains\n * Manage default locations per product\n * Define routes within your warehouse according to business needs, such as:\n - Quality Control\n - After Sales Services\n - Supplier Returns\n\n * Help rental management, by generating automated return moves for rented products\n\nOnce this module is installed, an additional tab appear on the product form,\nwhere you can add Push and Pull flow specifications. The demo data of CPU1\nproduct for that push/pull :\n\nPush flows:\n-----------\nPush flows are useful when the arrival of certain products in a given location\nshould always be followed by a corresponding move to another location, optionally\nafter a certain delay. The original Warehouse application already supports such\nPush flow specifications on the Locations themselves, but these cannot be\nrefined per-product.\n\nA push flow specification indicates which location is chained with which location,\nand with what parameters. As soon as a given quantity of products is moved in the\nsource location, a chained move is automatically foreseen according to the\nparameters set on the flow specification (destination location, delay, type of\nmove, journal). The new move can be automatically processed, or require a manual\nconfirmation, depending on the parameters.\n\nPull flows:\n-----------\nPull flows are a bit different from Push flows, in the sense that they are not\nrelated to the processing of product moves, but rather to the processing of\nprocurement orders. What is being pulled is a need, not directly products. A\nclassical example of Pull flow is when you have an Outlet company, with a parent\nCompany that is responsible for the supplies of the Outlet.\n\n [ Customer ] <- A - [ Outlet ] <- B - [ Holding ] <~ C ~ [ Supplier ]\n\nWhen a new procurement order (A, coming from the confirmation of a Sale Order\nfor example) arrives in the Outlet, it is converted into another procurement\n(B, via a Pull flow of type 'move') requested from the Holding. When procurement\norder B is processed by the Holding company, and if the product is out of stock,\nit can be converted into a Purchase Order (C) from the Supplier (Pull flow of\ntype Purchase). The result is that the procurement order, the need, is pushed\nall the way between the Customer and Supplier.\n\nTechnically, Pull flows allow to process procurement orders differently, not\nonly depending on the product being considered, but also depending on which\nlocation holds the 'need' for that product (i.e. the destination location of\nthat procurement order).\n\nUse-Case:\n---------\n\nYou can use the demo data as follow:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n **CPU1:** Sell some CPU1 from Chicago Shop and run the scheduler\n - Warehouse: delivery order, Chicago Shop: reception\n **CPU3:**\n - When receiving the product, it goes to Quality Control location then\n stored to shelf 2.\n - When delivering the customer: Pick List -> Packing -> Delivery Order from Gate A\n ", 'author': 'OpenERP SA', 'images': ['images/pulled_flow.jpeg', 'images/pushed_flow.jpeg'], 'depends': ['procurement', 'stock', 'sale'], 'data': ['stock_location_view.xml', 'security/stock_location_security.xml', 'security/ir.model.access.csv', 'procurement_pull_workflow.xml'], 'demo': ['stock_location_demo_cpu1.xml', 'stock_location_demo_cpu3.yml'], 'installable': True, 'test': ['test/stock_location_pull_flow.yml', 'test/stock_location_push_flow.yml'], 'auto_install': False}
def test(): # Here we can either check objects created in the solution code, or the # string value of the solution, available as __solution__. A helper for # printing formatted messages is available as __msg__. See the testTemplate # in the meta.json for details. # If an assertion fails, the message will be displayed assert not numeric_cols is None, "Your answer for numeric_cols does not exist. Have you assigned the list of labels for numeric columns to the correct variable name?" assert type(numeric_cols) == list, "numeric_cols does not appear to be of type list. Can you store all the labels of the numeric columns into a list called numeric_cols?" assert set(numeric_cols) == set(['culmen_length_mm', 'culmen_depth_mm', 'flipper_length_mm', 'body_mass_g']), "Make sure you only include the numeric columns in numeric_cols. Hint: there are 4 numeric columns in the dataframe." assert numeric_cols == ['culmen_length_mm', 'culmen_depth_mm', 'flipper_length_mm', 'body_mass_g'], "You're close. Please make sure that the numeric columns are ordered in the same order they appear in the dataframe." assert not numeric_histograms is None, "Your answer for numeric_histograms does not exist. Have you assigned the chart object to the correct variable name?" assert type(numeric_histograms) == alt.vegalite.v4.api.RepeatChart, "Your answer is not an Altair RepeatChart object. Check to make sure that you have assigned an alt.Chart object to numeric_histograms and that you are repeating by columns in numeric_cols." assert numeric_histograms.columns == 2, "Make sure you have 2 columns in your RepeatChart. Hint: use columns argument." assert numeric_histograms.spec.mark == 'bar', "Make sure you are using the 'mark_bar' to generate histograms." assert numeric_histograms.spec.encoding.x.shorthand == alt.RepeatRef(repeat = 'repeat'), "Make sure you specify that the chart set-up is repeated for different columns as the x-axis encoding. Hint: use alt.repeat()" assert numeric_histograms.spec.encoding.x.bin != alt.utils.schemapi.Undefined, "Make sure you are specifying the bin argument for the x-axis encoding for the histogram." assert numeric_histograms.spec.encoding.x.bin.maxbins != alt.utils.schemapi.Undefined, "Make sure you specify the maxbins argument for binning the x-axis encoding to something reasonable (like 30 or 40)." assert numeric_histograms.spec.encoding.x.type == "quantitative", "Make sure you let Altair know that alt.repeat() is a quantitative type, since it's not a column in the dataframe." assert ( numeric_histograms.spec.encoding.y.field in {'count()', 'count():quantitative', 'count():Q'} or numeric_histograms.spec.encoding.y.shorthand in {'count()', 'count():quantitative', 'count():Q'} ), "Make sure you are using 'count()' as the y-axis encoding." assert numeric_histograms.spec.height == 150, "Make sure your plot has a height of 150." assert numeric_histograms.spec.width == 150, "Make sure your plot has a width of 150." __msg__.good("You're correct, well done!")
def test(): assert not numeric_cols is None, 'Your answer for numeric_cols does not exist. Have you assigned the list of labels for numeric columns to the correct variable name?' assert type(numeric_cols) == list, 'numeric_cols does not appear to be of type list. Can you store all the labels of the numeric columns into a list called numeric_cols?' assert set(numeric_cols) == set(['culmen_length_mm', 'culmen_depth_mm', 'flipper_length_mm', 'body_mass_g']), 'Make sure you only include the numeric columns in numeric_cols. Hint: there are 4 numeric columns in the dataframe.' assert numeric_cols == ['culmen_length_mm', 'culmen_depth_mm', 'flipper_length_mm', 'body_mass_g'], "You're close. Please make sure that the numeric columns are ordered in the same order they appear in the dataframe." assert not numeric_histograms is None, 'Your answer for numeric_histograms does not exist. Have you assigned the chart object to the correct variable name?' assert type(numeric_histograms) == alt.vegalite.v4.api.RepeatChart, 'Your answer is not an Altair RepeatChart object. Check to make sure that you have assigned an alt.Chart object to numeric_histograms and that you are repeating by columns in numeric_cols.' assert numeric_histograms.columns == 2, 'Make sure you have 2 columns in your RepeatChart. Hint: use columns argument.' assert numeric_histograms.spec.mark == 'bar', "Make sure you are using the 'mark_bar' to generate histograms." assert numeric_histograms.spec.encoding.x.shorthand == alt.RepeatRef(repeat='repeat'), 'Make sure you specify that the chart set-up is repeated for different columns as the x-axis encoding. Hint: use alt.repeat()' assert numeric_histograms.spec.encoding.x.bin != alt.utils.schemapi.Undefined, 'Make sure you are specifying the bin argument for the x-axis encoding for the histogram.' assert numeric_histograms.spec.encoding.x.bin.maxbins != alt.utils.schemapi.Undefined, 'Make sure you specify the maxbins argument for binning the x-axis encoding to something reasonable (like 30 or 40).' assert numeric_histograms.spec.encoding.x.type == 'quantitative', "Make sure you let Altair know that alt.repeat() is a quantitative type, since it's not a column in the dataframe." assert numeric_histograms.spec.encoding.y.field in {'count()', 'count():quantitative', 'count():Q'} or numeric_histograms.spec.encoding.y.shorthand in {'count()', 'count():quantitative', 'count():Q'}, "Make sure you are using 'count()' as the y-axis encoding." assert numeric_histograms.spec.height == 150, 'Make sure your plot has a height of 150.' assert numeric_histograms.spec.width == 150, 'Make sure your plot has a width of 150.' __msg__.good("You're correct, well done!")
# Section 5.16 Self Check snippets # Exercise 4 t = [[10, 7, 3], [20, 4, 17]] total = 0 items = 0 for row in t: for item in row: total += item items += 1 total / items total = 0 items = 0 for row in t: total += sum(row) items += len(row) total / items ########################################################################## # (C) Copyright 2019 by Deitel & Associates, Inc. and # # Pearson Education, Inc. All Rights Reserved. # # # # DISCLAIMER: The authors and publisher of this book have used their # # best efforts in preparing the book. These efforts include the # # development, research, and testing of the theories and programs # # to determine their effectiveness. The authors and publisher make # # no warranty of any kind, expressed or implied, with regard to these # # programs or to the documentation contained in these books. The authors # # and publisher shall not be liable in any event for incidental or # # consequential damages in connection with, or arising out of, the # # furnishing, performance, or use of these programs. # ##########################################################################
t = [[10, 7, 3], [20, 4, 17]] total = 0 items = 0 for row in t: for item in row: total += item items += 1 total / items total = 0 items = 0 for row in t: total += sum(row) items += len(row) total / items
""" Test getting repo functions. """ # pylint: disable=invalid-sequence-index def test_get_repos(ghh): """ Default get repos. """ ghh.get_requested_object("ckear1989") ghh.requested_object.get_repos() assert "github" in [repo.name for repo in ghh.requested_object.repos] def test_ignore(ghh): """ Get repos with ignore option. """ ghh.get_requested_object("ckear1989") ghh.requested_object.get_repos(ignore="github") assert "github" not in [repo.name for repo in ghh.requested_object.repos] def test_get_org_repos(ghh): """ Test get repos from known org. PyGitHub org has a repo called PyGithub (note the lowercase "h") """ ghh.get_requested_object("PyGitHub") ghh.requested_object.get_repos() assert "PyGithub" in [repo.name for repo in ghh.requested_object.repos] def test_results_limit(ghh): """ Test get repos from known user with limiting of results. """ ghh.user.get_metadata() ghh.user.metadata.set_input_limits(input_from=1, input_to=2) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 2 ghh.user.metadata.set_input_limits(input_from=1, input_to=4) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 4 ghh.user.metadata.set_input_limits(input_from=1, input_to=10) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 10
""" Test getting repo functions. """ def test_get_repos(ghh): """ Default get repos. """ ghh.get_requested_object('ckear1989') ghh.requested_object.get_repos() assert 'github' in [repo.name for repo in ghh.requested_object.repos] def test_ignore(ghh): """ Get repos with ignore option. """ ghh.get_requested_object('ckear1989') ghh.requested_object.get_repos(ignore='github') assert 'github' not in [repo.name for repo in ghh.requested_object.repos] def test_get_org_repos(ghh): """ Test get repos from known org. PyGitHub org has a repo called PyGithub (note the lowercase "h") """ ghh.get_requested_object('PyGitHub') ghh.requested_object.get_repos() assert 'PyGithub' in [repo.name for repo in ghh.requested_object.repos] def test_results_limit(ghh): """ Test get repos from known user with limiting of results. """ ghh.user.get_metadata() ghh.user.metadata.set_input_limits(input_from=1, input_to=2) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 2 ghh.user.metadata.set_input_limits(input_from=1, input_to=4) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 4 ghh.user.metadata.set_input_limits(input_from=1, input_to=10) ghh.user.metadata.get_metadata() assert len(ghh.user.metadata.metadata_df) <= 10
def minion_game(string): # your code goes here Kevin = 0 Stuart = 0 word = list(string) x = len(word) vowels = ['A','E','I','O','U'] for inx, w in enumerate(word): if w in vowels: Kevin = Kevin + x else: Stuart = Stuart + x x = x - 1 if Stuart > Kevin: print ('Stuart', Stuart) elif Kevin > Stuart: print ('Kevin', Kevin) else: print ('Draw')
def minion_game(string): kevin = 0 stuart = 0 word = list(string) x = len(word) vowels = ['A', 'E', 'I', 'O', 'U'] for (inx, w) in enumerate(word): if w in vowels: kevin = Kevin + x else: stuart = Stuart + x x = x - 1 if Stuart > Kevin: print('Stuart', Stuart) elif Kevin > Stuart: print('Kevin', Kevin) else: print('Draw')
no_exists = '{}_does_not_exists' already_exists = '{}_already_exists' exception_occurred = 'exception_occurred' no_modification_made = 'mo_modification_made' no_required_args = 'no_required_args' add_success = 'add_{}_success' delete_success = 'delete_{}_success' __all__ = ['no_exists', 'exception_occurred', 'no_modification_made', 'no_required_args', 'add_success', 'delete_success']
no_exists = '{}_does_not_exists' already_exists = '{}_already_exists' exception_occurred = 'exception_occurred' no_modification_made = 'mo_modification_made' no_required_args = 'no_required_args' add_success = 'add_{}_success' delete_success = 'delete_{}_success' __all__ = ['no_exists', 'exception_occurred', 'no_modification_made', 'no_required_args', 'add_success', 'delete_success']
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-21 Last_modify: 2016-03-21 ****************************************** ''' ''' Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assume that the version strings are non-empty and contain only digits and the . character. The . character does not represent a decimal point and is used to separate number sequences. For instance, 2.5 is not "two and a half" or "half way to version three", it is the fifth second-level revision of the second first-level revision. Here is an example of version numbers ordering: 0.1 < 1.1 < 1.2 < 13.37 Credits: Special thanks to @ts for adding this problem and creating all test cases. ''' class Solution(object): def compareVersion(self, version1, version2): """ :type version1: str :type version2: str :rtype: int """ n1, n2 = len(version1), len(version2) start1, start2 = 0, 0 i1, i2 = 0, 0 while i1 < n1 or i2 < n2: while i1 < n1 and version1[i1] != '.': i1 += 1 while i2 < n2 and version2[i2] != '.': i2 += 1 cmp1 = int(version1[start1:i1]) if i1 > start1 else 0 cmp2 = int(version2[start2:i2]) if i2 > start2 else 0 i1 += 1 i2 += 1 start1, start2 = i1, i2 if cmp1 == cmp2: continue return 1 if cmp1 > cmp2 else -1 return 0
""" ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-21 Last_modify: 2016-03-21 ****************************************** """ '\nCompare two version numbers version1 and version2.\nIf version1 > version2 return 1,\nif version1 < version2 return -1, otherwise return 0.\n\nYou may assume that the version strings are non-empty\nand contain only digits and the . character.\nThe . character does not represent a decimal point and\nis used to separate number sequences.\nFor instance, 2.5 is not "two and a half" or "half way\nto version three", it is the fifth second-level revision\nof the second first-level revision.\n\nHere is an example of version numbers ordering:\n\n0.1 < 1.1 < 1.2 < 13.37\nCredits:\nSpecial thanks to @ts for adding this problem and creating all test cases.\n' class Solution(object): def compare_version(self, version1, version2): """ :type version1: str :type version2: str :rtype: int """ (n1, n2) = (len(version1), len(version2)) (start1, start2) = (0, 0) (i1, i2) = (0, 0) while i1 < n1 or i2 < n2: while i1 < n1 and version1[i1] != '.': i1 += 1 while i2 < n2 and version2[i2] != '.': i2 += 1 cmp1 = int(version1[start1:i1]) if i1 > start1 else 0 cmp2 = int(version2[start2:i2]) if i2 > start2 else 0 i1 += 1 i2 += 1 (start1, start2) = (i1, i2) if cmp1 == cmp2: continue return 1 if cmp1 > cmp2 else -1 return 0
class RetrievalMethod(): def __init__(self,db): self.db = db def get_sentences_for_claim(self,claim_text,include_text=False): pass
class Retrievalmethod: def __init__(self, db): self.db = db def get_sentences_for_claim(self, claim_text, include_text=False): pass
''' WRITTEN BY Ramon Rossi PURPOSE Consider the Fionacci sequence. It is a sequence of natural numbers defined recursively as follows: * the first element is 0 * the second is 1 * each next element is the sum of the previous two elements This function will sum all even elements of the Fibonacci sequence with values less than 1 million. The function is called calculate() and prints the result to the console. EXAMPLE calculate(1000000) will have the result 1089154. ''' def calculate(limit): values_list = [] x = 0 # increment x by 1 until the Fibonacci number gets to the limit while(True): # the first element must be 0, and the second element must be 1 if x == 0 or x == 1: values_list.append(x) # the rest of the elements adds the previous two values else: values_list.append(values_list[x-1]+values_list[x-2]) # uncomment this line if need to see each Fibonacci number as its generated #print('Element {}, Fibonacci number is {}'.format(x, values_list[x])) # check if the Fibonacci number is at or past the limit if values_list[x] >= limit: # remove this last list item because its at or past the limit values_list.pop(x) break # increment x by 1 x += 1 # the values in the list are added if they are even sum_of_even_values = sum([values_list[i] for i in range(len(values_list)) if values_list[i]%2 == 0]) print(values_list) return sum_of_even_values # run test 1 print('Test 1'.center(40,'-')) limit = 1000000 result = calculate(limit) print('Sum of all even Fibonacci numbers up to {}: {}'.format(limit, result)) if result == 1089154: print('Test passed') else: print('Test failed')
""" WRITTEN BY Ramon Rossi PURPOSE Consider the Fionacci sequence. It is a sequence of natural numbers defined recursively as follows: * the first element is 0 * the second is 1 * each next element is the sum of the previous two elements This function will sum all even elements of the Fibonacci sequence with values less than 1 million. The function is called calculate() and prints the result to the console. EXAMPLE calculate(1000000) will have the result 1089154. """ def calculate(limit): values_list = [] x = 0 while True: if x == 0 or x == 1: values_list.append(x) else: values_list.append(values_list[x - 1] + values_list[x - 2]) if values_list[x] >= limit: values_list.pop(x) break x += 1 sum_of_even_values = sum([values_list[i] for i in range(len(values_list)) if values_list[i] % 2 == 0]) print(values_list) return sum_of_even_values print('Test 1'.center(40, '-')) limit = 1000000 result = calculate(limit) print('Sum of all even Fibonacci numbers up to {}: {}'.format(limit, result)) if result == 1089154: print('Test passed') else: print('Test failed')
def caesarCipherEncryptor(string, key): # To solve this problem, we need first to break the string into a list of chars, and then apply a function # basically transform each letter the key shifted, and then join them together. Obviously creating the list will take O(n) time and space # the function can be implemented in two ways: # 1. using Unicode and buildin functions. Specifically, using or to get the unicode value and chr to transform to char. # knowing that a = 97 and z = 122, we can convert the value. We need to understand the edge cases: # newlleter = letter + key: # # - If unicode > 122, we need to use the modulo : newletter = (shiftedletter % 122 + 96), we use 96, since # if char = 'a' -> 123 % 122 = 1 + 96 # - If key > 26, we need to be careful since we are not containing this in the prior logic: we need to use the modulo # ALSO in the key = key % 26 newLetters = [] newKey = key % 26 for letter in string: # instead of creating a new list, we can do this in place directly, populating the new list newLetters.append(getNewLetter(letter, newKey)) return "".join(newLetters) def getNewLetter(letter, key): newLetterCode = ord(letter) + key return chr(newLetterCode) if newLetterCode <= 122 else chr(96 + newLetterCode % 122)
def caesar_cipher_encryptor(string, key): new_letters = [] new_key = key % 26 for letter in string: newLetters.append(get_new_letter(letter, newKey)) return ''.join(newLetters) def get_new_letter(letter, key): new_letter_code = ord(letter) + key return chr(newLetterCode) if newLetterCode <= 122 else chr(96 + newLetterCode % 122)
f = open("test_data.txt", "r") fout = open("test_data_commas.txt", "w") for line in f: fout.write(line.replace(" ", ",")) f.close() fout.close()
f = open('test_data.txt', 'r') fout = open('test_data_commas.txt', 'w') for line in f: fout.write(line.replace(' ', ',')) f.close() fout.close()
class Menu: def __init__(self, Requests, log, presences): self.Requests = Requests self.log = log self.presences = presences def get_party_json(self, GamePlayersPuuid, presencesDICT): party_json = {} for presence in presencesDICT: if presence["puuid"] in GamePlayersPuuid: decodedPresence = self.presences.decode_presence(presence["private"]) if decodedPresence["isValid"]: if decodedPresence["partySize"] > 1: try: party_json[decodedPresence["partyId"]].append(presence["puuid"]) except KeyError: party_json.update({decodedPresence["partyId"]: [presence["puuid"]]}) self.log(f"retrieved party json: {party_json}") return party_json def get_party_members(self, self_puuid, presencesDICT): res = [] for presence in presencesDICT: if presence["puuid"] == self_puuid: decodedPresence = self.presences.decode_presence(presence["private"]) if decodedPresence["isValid"]: party_id = decodedPresence["partyId"] res.append({"Subject": presence["puuid"], "PlayerIdentity": {"AccountLevel": decodedPresence["accountLevel"]}}) for presence in presencesDICT: decodedPresence = self.presences.decode_presence(presence["private"]) if decodedPresence["isValid"]: if decodedPresence["partyId"] == party_id and presence["puuid"] != self_puuid: res.append({"Subject": presence["puuid"], "PlayerIdentity": {"AccountLevel": decodedPresence["accountLevel"]}}) self.log(f"retrieved party members: {res}") return res
class Menu: def __init__(self, Requests, log, presences): self.Requests = Requests self.log = log self.presences = presences def get_party_json(self, GamePlayersPuuid, presencesDICT): party_json = {} for presence in presencesDICT: if presence['puuid'] in GamePlayersPuuid: decoded_presence = self.presences.decode_presence(presence['private']) if decodedPresence['isValid']: if decodedPresence['partySize'] > 1: try: party_json[decodedPresence['partyId']].append(presence['puuid']) except KeyError: party_json.update({decodedPresence['partyId']: [presence['puuid']]}) self.log(f'retrieved party json: {party_json}') return party_json def get_party_members(self, self_puuid, presencesDICT): res = [] for presence in presencesDICT: if presence['puuid'] == self_puuid: decoded_presence = self.presences.decode_presence(presence['private']) if decodedPresence['isValid']: party_id = decodedPresence['partyId'] res.append({'Subject': presence['puuid'], 'PlayerIdentity': {'AccountLevel': decodedPresence['accountLevel']}}) for presence in presencesDICT: decoded_presence = self.presences.decode_presence(presence['private']) if decodedPresence['isValid']: if decodedPresence['partyId'] == party_id and presence['puuid'] != self_puuid: res.append({'Subject': presence['puuid'], 'PlayerIdentity': {'AccountLevel': decodedPresence['accountLevel']}}) self.log(f'retrieved party members: {res}') return res
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/suntao/workspace/gorobots/utils/real_robots/stbot/catkin_ws/src/lilistbot/msg/Jy901imu.msg" services_str = "" pkg_name = "lilistbot" dependencies_str = "std_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_str = "lilistbot;/home/suntao/workspace/gorobots/utils/real_robots/stbot/catkin_ws/src/lilistbot/msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/home/suntao/.pyenv/shims/python" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
messages_str = '/home/suntao/workspace/gorobots/utils/real_robots/stbot/catkin_ws/src/lilistbot/msg/Jy901imu.msg' services_str = '' pkg_name = 'lilistbot' dependencies_str = 'std_msgs' langs = 'gencpp;geneus;genlisp;gennodejs;genpy' dep_include_paths_str = 'lilistbot;/home/suntao/workspace/gorobots/utils/real_robots/stbot/catkin_ws/src/lilistbot/msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg' python_executable = '/home/suntao/.pyenv/shims/python' package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = '/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py'
pirate_ship_status = [int(i) for i in input().split('>')] warship_status = [int(i) for i in input().split('>')] health_capacity = int(input()) while True: command_nosplit = input() if command_nosplit == "Retire": break command = command_nosplit.split() if "Fire" in command: index = int(command[1]) damage = int(command[2]) if 0 <= index <= len(warship_status)-1: warship_status[index] -= damage if warship_status[index] <= 0: print(f"You won! The enemy ship has sunken.") exit() else: continue elif "Defend" in command: first_index = int(command[1]) last_index = int(command[2]) damage = int(command[3]) if (0 <= first_index and first_index < last_index) and (last_index <= len(pirate_ship_status)-1): for i in range(first_index,last_index+1): pirate_ship_status[i] -= damage if pirate_ship_status[i] <= 0: print(f"You lost! The pirate ship has sunken.") exit() else: continue elif "Repair" in command: index = int(command[1]) repair = int(command[2]) if 0 <= index <= len(pirate_ship_status)-1: pirate_ship_status[index] += repair if pirate_ship_status[index] > health_capacity: pirate_ship_status[index] = health_capacity else: continue elif "Status" in command: value_need_repair = health_capacity // 5 sections_for_repair = 0 for section in pirate_ship_status: if section < value_need_repair: sections_for_repair += 1 print(f"{sections_for_repair} sections need repair.") print(f"Pirate ship status: {sum(pirate_ship_status)}\nWarship status: {sum(warship_status)}")
pirate_ship_status = [int(i) for i in input().split('>')] warship_status = [int(i) for i in input().split('>')] health_capacity = int(input()) while True: command_nosplit = input() if command_nosplit == 'Retire': break command = command_nosplit.split() if 'Fire' in command: index = int(command[1]) damage = int(command[2]) if 0 <= index <= len(warship_status) - 1: warship_status[index] -= damage if warship_status[index] <= 0: print(f'You won! The enemy ship has sunken.') exit() else: continue elif 'Defend' in command: first_index = int(command[1]) last_index = int(command[2]) damage = int(command[3]) if (0 <= first_index and first_index < last_index) and last_index <= len(pirate_ship_status) - 1: for i in range(first_index, last_index + 1): pirate_ship_status[i] -= damage if pirate_ship_status[i] <= 0: print(f'You lost! The pirate ship has sunken.') exit() else: continue elif 'Repair' in command: index = int(command[1]) repair = int(command[2]) if 0 <= index <= len(pirate_ship_status) - 1: pirate_ship_status[index] += repair if pirate_ship_status[index] > health_capacity: pirate_ship_status[index] = health_capacity else: continue elif 'Status' in command: value_need_repair = health_capacity // 5 sections_for_repair = 0 for section in pirate_ship_status: if section < value_need_repair: sections_for_repair += 1 print(f'{sections_for_repair} sections need repair.') print(f'Pirate ship status: {sum(pirate_ship_status)}\nWarship status: {sum(warship_status)}')
class Solution(object): def findDisappearedNumbers(self, nums): return list(set(range(1,len(nums)+1)) - set(nums)) nums = [4, 6, 2, 6, 7, 2, 1] def test(): assert Solution().findDisappearedNumbers(nums) == [3, 5]
class Solution(object): def find_disappeared_numbers(self, nums): return list(set(range(1, len(nums) + 1)) - set(nums)) nums = [4, 6, 2, 6, 7, 2, 1] def test(): assert solution().findDisappearedNumbers(nums) == [3, 5]
# Copyright (c) OpenMMLab. All rights reserved. _base_ = './i_base.py' item_cfg = {'b': 2} item6 = {'cfg': item_cfg}
_base_ = './i_base.py' item_cfg = {'b': 2} item6 = {'cfg': item_cfg}
# type: ignore __all__ = [ "datatipinfo", "deprpt", "dbstep", "arrayviewfunc", "openvar", "workspace", "commandwindow", "runreport", "fixcontents", "projdumpmat", "urldecode", "renameStructField", "dbcont", "checkcode", "publish", "urlencode", "uiimport", "dbstop", "grabcode", "mlintrpt", "workspacefunc", "dbstack", "filebrowser", "dbstatus", "dbtype", "stripanchors", "auditcontents", "sharedplotfunc", "dbquit", "codetoolsswitchyard", "snapnow", "dofixrpt", "mdbfileonpath", "code2html", "mlint", "initdesktoputils", "commonplotfunc", "edit", "functionhintsfunc", "convertSpreadsheetDates", "contentsrpt", "commandhistory", "plotpickerfunc", "coveragerpt", "dbup", "opentoline", "m2struct", "convertSpreadsheetExcelDates", "profviewgateway", "makemcode", "indentcode", "profile", "mdbpublish", "dbdown", "pathtool", "value2CustomFcn", "profsave", "getcallinfo", "profview", "dbclear", "dbmex", "profreport", "makecontentsfile", "helprpt", "mdbstatus", "fixquote", ] def datatipinfo(*args): raise NotImplementedError("datatipinfo") def deprpt(*args): raise NotImplementedError("deprpt") def dbstep(*args): raise NotImplementedError("dbstep") def arrayviewfunc(*args): raise NotImplementedError("arrayviewfunc") def openvar(*args): raise NotImplementedError("openvar") def workspace(*args): raise NotImplementedError("workspace") def commandwindow(*args): raise NotImplementedError("commandwindow") def runreport(*args): raise NotImplementedError("runreport") def fixcontents(*args): raise NotImplementedError("fixcontents") def projdumpmat(*args): raise NotImplementedError("projdumpmat") def urldecode(*args): raise NotImplementedError("urldecode") def renameStructField(*args): raise NotImplementedError("renameStructField") def dbcont(*args): raise NotImplementedError("dbcont") def checkcode(*args): raise NotImplementedError("checkcode") def publish(*args): raise NotImplementedError("publish") def urlencode(*args): raise NotImplementedError("urlencode") def uiimport(*args): raise NotImplementedError("uiimport") def dbstop(*args): raise NotImplementedError("dbstop") def grabcode(*args): raise NotImplementedError("grabcode") def mlintrpt(*args): raise NotImplementedError("mlintrpt") def workspacefunc(*args): raise NotImplementedError("workspacefunc") def dbstack(*args): raise NotImplementedError("dbstack") def filebrowser(*args): raise NotImplementedError("filebrowser") def dbstatus(*args): raise NotImplementedError("dbstatus") def dbtype(*args): raise NotImplementedError("dbtype") def stripanchors(*args): raise NotImplementedError("stripanchors") def auditcontents(*args): raise NotImplementedError("auditcontents") def sharedplotfunc(*args): raise NotImplementedError("sharedplotfunc") def dbquit(*args): raise NotImplementedError("dbquit") def codetoolsswitchyard(*args): raise NotImplementedError("codetoolsswitchyard") def snapnow(*args): raise NotImplementedError("snapnow") def dofixrpt(*args): raise NotImplementedError("dofixrpt") def mdbfileonpath(*args): raise NotImplementedError("mdbfileonpath") def code2html(*args): raise NotImplementedError("code2html") def mlint(*args): raise NotImplementedError("mlint") def initdesktoputils(*args): raise NotImplementedError("initdesktoputils") def commonplotfunc(*args): raise NotImplementedError("commonplotfunc") def edit(*args): raise NotImplementedError("edit") def functionhintsfunc(*args): raise NotImplementedError("functionhintsfunc") def convertSpreadsheetDates(*args): raise NotImplementedError("convertSpreadsheetDates") def contentsrpt(*args): raise NotImplementedError("contentsrpt") def commandhistory(*args): raise NotImplementedError("commandhistory") def plotpickerfunc(*args): raise NotImplementedError("plotpickerfunc") def coveragerpt(*args): raise NotImplementedError("coveragerpt") def dbup(*args): raise NotImplementedError("dbup") def opentoline(*args): raise NotImplementedError("opentoline") def m2struct(*args): raise NotImplementedError("m2struct") def convertSpreadsheetExcelDates(*args): raise NotImplementedError("convertSpreadsheetExcelDates") def profviewgateway(*args): raise NotImplementedError("profviewgateway") def makemcode(*args): raise NotImplementedError("makemcode") def indentcode(*args): raise NotImplementedError("indentcode") def profile(*args): raise NotImplementedError("profile") def mdbpublish(*args): raise NotImplementedError("mdbpublish") def dbdown(*args): raise NotImplementedError("dbdown") def pathtool(*args): raise NotImplementedError("pathtool") def value2CustomFcn(*args): raise NotImplementedError("value2CustomFcn") def profsave(*args): raise NotImplementedError("profsave") def getcallinfo(*args): raise NotImplementedError("getcallinfo") def profview(*args): raise NotImplementedError("profview") def dbclear(*args): raise NotImplementedError("dbclear") def dbmex(*args): raise NotImplementedError("dbmex") def profreport(*args): raise NotImplementedError("profreport") def makecontentsfile(*args): raise NotImplementedError("makecontentsfile") def helprpt(*args): raise NotImplementedError("helprpt") def mdbstatus(*args): raise NotImplementedError("mdbstatus") def fixquote(*args): raise NotImplementedError("fixquote")
__all__ = ['datatipinfo', 'deprpt', 'dbstep', 'arrayviewfunc', 'openvar', 'workspace', 'commandwindow', 'runreport', 'fixcontents', 'projdumpmat', 'urldecode', 'renameStructField', 'dbcont', 'checkcode', 'publish', 'urlencode', 'uiimport', 'dbstop', 'grabcode', 'mlintrpt', 'workspacefunc', 'dbstack', 'filebrowser', 'dbstatus', 'dbtype', 'stripanchors', 'auditcontents', 'sharedplotfunc', 'dbquit', 'codetoolsswitchyard', 'snapnow', 'dofixrpt', 'mdbfileonpath', 'code2html', 'mlint', 'initdesktoputils', 'commonplotfunc', 'edit', 'functionhintsfunc', 'convertSpreadsheetDates', 'contentsrpt', 'commandhistory', 'plotpickerfunc', 'coveragerpt', 'dbup', 'opentoline', 'm2struct', 'convertSpreadsheetExcelDates', 'profviewgateway', 'makemcode', 'indentcode', 'profile', 'mdbpublish', 'dbdown', 'pathtool', 'value2CustomFcn', 'profsave', 'getcallinfo', 'profview', 'dbclear', 'dbmex', 'profreport', 'makecontentsfile', 'helprpt', 'mdbstatus', 'fixquote'] def datatipinfo(*args): raise not_implemented_error('datatipinfo') def deprpt(*args): raise not_implemented_error('deprpt') def dbstep(*args): raise not_implemented_error('dbstep') def arrayviewfunc(*args): raise not_implemented_error('arrayviewfunc') def openvar(*args): raise not_implemented_error('openvar') def workspace(*args): raise not_implemented_error('workspace') def commandwindow(*args): raise not_implemented_error('commandwindow') def runreport(*args): raise not_implemented_error('runreport') def fixcontents(*args): raise not_implemented_error('fixcontents') def projdumpmat(*args): raise not_implemented_error('projdumpmat') def urldecode(*args): raise not_implemented_error('urldecode') def rename_struct_field(*args): raise not_implemented_error('renameStructField') def dbcont(*args): raise not_implemented_error('dbcont') def checkcode(*args): raise not_implemented_error('checkcode') def publish(*args): raise not_implemented_error('publish') def urlencode(*args): raise not_implemented_error('urlencode') def uiimport(*args): raise not_implemented_error('uiimport') def dbstop(*args): raise not_implemented_error('dbstop') def grabcode(*args): raise not_implemented_error('grabcode') def mlintrpt(*args): raise not_implemented_error('mlintrpt') def workspacefunc(*args): raise not_implemented_error('workspacefunc') def dbstack(*args): raise not_implemented_error('dbstack') def filebrowser(*args): raise not_implemented_error('filebrowser') def dbstatus(*args): raise not_implemented_error('dbstatus') def dbtype(*args): raise not_implemented_error('dbtype') def stripanchors(*args): raise not_implemented_error('stripanchors') def auditcontents(*args): raise not_implemented_error('auditcontents') def sharedplotfunc(*args): raise not_implemented_error('sharedplotfunc') def dbquit(*args): raise not_implemented_error('dbquit') def codetoolsswitchyard(*args): raise not_implemented_error('codetoolsswitchyard') def snapnow(*args): raise not_implemented_error('snapnow') def dofixrpt(*args): raise not_implemented_error('dofixrpt') def mdbfileonpath(*args): raise not_implemented_error('mdbfileonpath') def code2html(*args): raise not_implemented_error('code2html') def mlint(*args): raise not_implemented_error('mlint') def initdesktoputils(*args): raise not_implemented_error('initdesktoputils') def commonplotfunc(*args): raise not_implemented_error('commonplotfunc') def edit(*args): raise not_implemented_error('edit') def functionhintsfunc(*args): raise not_implemented_error('functionhintsfunc') def convert_spreadsheet_dates(*args): raise not_implemented_error('convertSpreadsheetDates') def contentsrpt(*args): raise not_implemented_error('contentsrpt') def commandhistory(*args): raise not_implemented_error('commandhistory') def plotpickerfunc(*args): raise not_implemented_error('plotpickerfunc') def coveragerpt(*args): raise not_implemented_error('coveragerpt') def dbup(*args): raise not_implemented_error('dbup') def opentoline(*args): raise not_implemented_error('opentoline') def m2struct(*args): raise not_implemented_error('m2struct') def convert_spreadsheet_excel_dates(*args): raise not_implemented_error('convertSpreadsheetExcelDates') def profviewgateway(*args): raise not_implemented_error('profviewgateway') def makemcode(*args): raise not_implemented_error('makemcode') def indentcode(*args): raise not_implemented_error('indentcode') def profile(*args): raise not_implemented_error('profile') def mdbpublish(*args): raise not_implemented_error('mdbpublish') def dbdown(*args): raise not_implemented_error('dbdown') def pathtool(*args): raise not_implemented_error('pathtool') def value2_custom_fcn(*args): raise not_implemented_error('value2CustomFcn') def profsave(*args): raise not_implemented_error('profsave') def getcallinfo(*args): raise not_implemented_error('getcallinfo') def profview(*args): raise not_implemented_error('profview') def dbclear(*args): raise not_implemented_error('dbclear') def dbmex(*args): raise not_implemented_error('dbmex') def profreport(*args): raise not_implemented_error('profreport') def makecontentsfile(*args): raise not_implemented_error('makecontentsfile') def helprpt(*args): raise not_implemented_error('helprpt') def mdbstatus(*args): raise not_implemented_error('mdbstatus') def fixquote(*args): raise not_implemented_error('fixquote')
#!/usr/bin/env python ######################################################################## # Copyright 2012 Mandiant # Copyright 2014 FireEye # # Mandiant licenses this file to you under the Apache License, Version # 2.0 (the "License"); you may not use this file except in compliance with the # License. You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. See the License for the specific language governing # permissions and limitations under the License. # # Reference: # https://github.com/mandiant/flare-ida/blob/master/shellcode_hashes/make_sc_hash_db.py # ######################################################################## DESCRIPTION = "SHIFT LEFT 7 and SUB used in DoublePulsar backdoor" TYPE = 'unsigned_int' TEST_1 = 2493113697 def hash(data): eax = 0 edi = 0 for i in data: edi = 0xffffffff & (eax << 7) eax = 0xffffffff & (edi - eax) eax = eax + (0xff & i) edi = 0xffffffff & (eax << 7) eax = 0xffffffff & (edi - eax) return eax
description = 'SHIFT LEFT 7 and SUB used in DoublePulsar backdoor' type = 'unsigned_int' test_1 = 2493113697 def hash(data): eax = 0 edi = 0 for i in data: edi = 4294967295 & eax << 7 eax = 4294967295 & edi - eax eax = eax + (255 & i) edi = 4294967295 & eax << 7 eax = 4294967295 & edi - eax return eax
def loop(subject: int, loop_size: int) -> int: value = 1 for i in range(loop_size): value *= subject value = value % 20201227 return value def find_loopsize(public_key: int) -> int: value = 1 subject = 7 for i in range(100_000_000): value *= subject value = value % 20201227 if value == public_key: return i + 1 raise ValueError("Did not find public key") def get_secret(public_keys): loop_sizes = [find_loopsize(pk) for pk in public_keys] enc_key_0 = loop(public_keys[0], loop_sizes[1]) enc_key_1 = loop(public_keys[1], loop_sizes[0]) return enc_key_0, enc_key_1 def main(): public_keys = [11349501, 5107328] secret = get_secret(public_keys) print(f"The secret is {secret}") if __name__ == "__main__": main()
def loop(subject: int, loop_size: int) -> int: value = 1 for i in range(loop_size): value *= subject value = value % 20201227 return value def find_loopsize(public_key: int) -> int: value = 1 subject = 7 for i in range(100000000): value *= subject value = value % 20201227 if value == public_key: return i + 1 raise value_error('Did not find public key') def get_secret(public_keys): loop_sizes = [find_loopsize(pk) for pk in public_keys] enc_key_0 = loop(public_keys[0], loop_sizes[1]) enc_key_1 = loop(public_keys[1], loop_sizes[0]) return (enc_key_0, enc_key_1) def main(): public_keys = [11349501, 5107328] secret = get_secret(public_keys) print(f'The secret is {secret}') if __name__ == '__main__': main()
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Temperature, obj[3]: Time, obj[4]: Coupon, obj[5]: Coupon_validity, obj[6]: Gender, obj[7]: Age, obj[8]: Maritalstatus, obj[9]: Children, obj[10]: Education, obj[11]: Occupation, obj[12]: Income, obj[13]: Bar, obj[14]: Coffeehouse, obj[15]: Restaurantlessthan20, obj[16]: Restaurant20to50, obj[17]: Direction_same, obj[18]: Distance # {"feature": "Restaurant20to50", "instances": 51, "metric_value": 0.9864, "depth": 1} if obj[16]>0.0: # {"feature": "Restaurantlessthan20", "instances": 45, "metric_value": 0.9996, "depth": 2} if obj[15]>1.0: # {"feature": "Age", "instances": 37, "metric_value": 0.974, "depth": 3} if obj[7]<=3: # {"feature": "Income", "instances": 25, "metric_value": 0.9988, "depth": 4} if obj[12]>1: # {"feature": "Time", "instances": 16, "metric_value": 0.896, "depth": 5} if obj[3]>0: # {"feature": "Children", "instances": 12, "metric_value": 0.9799, "depth": 6} if obj[9]>0: # {"feature": "Coupon", "instances": 9, "metric_value": 0.7642, "depth": 7} if obj[4]>0: return 'False' elif obj[4]<=0: # {"feature": "Temperature", "instances": 3, "metric_value": 0.9183, "depth": 8} if obj[2]<=55: return 'True' elif obj[2]>55: return 'False' else: return 'False' else: return 'True' elif obj[9]<=0: return 'True' else: return 'True' elif obj[3]<=0: return 'False' else: return 'False' elif obj[12]<=1: # {"feature": "Education", "instances": 9, "metric_value": 0.7642, "depth": 5} if obj[10]<=2: return 'True' elif obj[10]>2: # {"feature": "Passanger", "instances": 3, "metric_value": 0.9183, "depth": 6} if obj[0]<=1: return 'False' elif obj[0]>1: return 'True' else: return 'True' else: return 'False' else: return 'True' elif obj[7]>3: # {"feature": "Occupation", "instances": 12, "metric_value": 0.65, "depth": 4} if obj[11]<=7: return 'True' elif obj[11]>7: # {"feature": "Coupon", "instances": 5, "metric_value": 0.971, "depth": 5} if obj[4]>1: # {"feature": "Maritalstatus", "instances": 3, "metric_value": 0.9183, "depth": 6} if obj[8]>0: return 'False' elif obj[8]<=0: return 'True' else: return 'True' elif obj[4]<=1: return 'True' else: return 'True' else: return 'True' else: return 'True' elif obj[15]<=1.0: # {"feature": "Education", "instances": 8, "metric_value": 0.5436, "depth": 3} if obj[10]<=2: return 'False' elif obj[10]>2: return 'True' else: return 'True' else: return 'False' elif obj[16]<=0.0: return 'True' else: return 'True'
def find_decision(obj): if obj[16] > 0.0: if obj[15] > 1.0: if obj[7] <= 3: if obj[12] > 1: if obj[3] > 0: if obj[9] > 0: if obj[4] > 0: return 'False' elif obj[4] <= 0: if obj[2] <= 55: return 'True' elif obj[2] > 55: return 'False' else: return 'False' else: return 'True' elif obj[9] <= 0: return 'True' else: return 'True' elif obj[3] <= 0: return 'False' else: return 'False' elif obj[12] <= 1: if obj[10] <= 2: return 'True' elif obj[10] > 2: if obj[0] <= 1: return 'False' elif obj[0] > 1: return 'True' else: return 'True' else: return 'False' else: return 'True' elif obj[7] > 3: if obj[11] <= 7: return 'True' elif obj[11] > 7: if obj[4] > 1: if obj[8] > 0: return 'False' elif obj[8] <= 0: return 'True' else: return 'True' elif obj[4] <= 1: return 'True' else: return 'True' else: return 'True' else: return 'True' elif obj[15] <= 1.0: if obj[10] <= 2: return 'False' elif obj[10] > 2: return 'True' else: return 'True' else: return 'False' elif obj[16] <= 0.0: return 'True' else: return 'True'
"""while loops, also known as indefinite loops""" # n = 5 # while n > 0: # print(n) # n = n - 1 # print('Blastoff') # print(n) # breaking out of loops # while True: # line = input('> ') # if line == 'done': # break #ends loop and jumps to the end of the code # print(line) # print('Done!') # while True: # line = input('> ') # if line == '#': # continue # if line == 'done': # break # print(line) # print('Done!!!') # """For loop, also known as definite Loops""" #"""This code finds the largest value in a list and returns it""" #largest_num_so_far = -1 # set an initial variable to hold largest num value #print('largest number before loop', largest_num_so_far) #for number in [3, 41, 12, 9, 74, 15]: # if number > largest_num_so_far: # largest_num_so_far = number # print('largest number so far is', largest_num_so_far) #print('After iteration, largest number is:', largest_num_so_far) """This code find the smallest value in a list of numbers""" smallest = None print("Before:", smallest) for itervar in [3, 41, 12, 9, 74, 15]: if smallest is None or itervar < smallest: smallest = itervar break print("Loop:", itervar, smallest) print("Smallest:", smallest)
"""while loops, also known as indefinite loops""" 'This code find the smallest value in a list of numbers' smallest = None print('Before:', smallest) for itervar in [3, 41, 12, 9, 74, 15]: if smallest is None or itervar < smallest: smallest = itervar break print('Loop:', itervar, smallest) print('Smallest:', smallest)
class Solution: def minDistance(self, word1: str, word2: str) -> int: m,n=len(word1),len(word2) dp=[[0 for _ in range(0,n+1)] for _ in range(0,m+1)] for _ in range(0,m+1):dp[_][0]=_ for _ in range(0,n+1):dp[0][_]=_ for i in range(1,m+1): for j in range(1,n+1): if word1[i-1]==word2[j-1]: dp[i][j]=dp[i-1][j-1] else: dp[i][j]=min(dp[i-1][j-1],dp[i-1][j],dp[i][j-1])+1 return dp[m][n]
class Solution: def min_distance(self, word1: str, word2: str) -> int: (m, n) = (len(word1), len(word2)) dp = [[0 for _ in range(0, n + 1)] for _ in range(0, m + 1)] for _ in range(0, m + 1): dp[_][0] = _ for _ in range(0, n + 1): dp[0][_] = _ for i in range(1, m + 1): for j in range(1, n + 1): if word1[i - 1] == word2[j - 1]: dp[i][j] = dp[i - 1][j - 1] else: dp[i][j] = min(dp[i - 1][j - 1], dp[i - 1][j], dp[i][j - 1]) + 1 return dp[m][n]
a = 999 b = 999 palindromes = [] for n in range(1,1000): for m in range(1,1000): num = m*n if str(num) == str(num)[::-1]: palindromes.append(num) print(max(palindromes))
a = 999 b = 999 palindromes = [] for n in range(1, 1000): for m in range(1, 1000): num = m * n if str(num) == str(num)[::-1]: palindromes.append(num) print(max(palindromes))
def fileNaming(names): outnames = [] for name in names: if name in outnames: k = 1 while "{}({})".format(name, k) in outnames: k += 1 name = "{}({})".format(name, k) outnames.append(name) return outnames
def file_naming(names): outnames = [] for name in names: if name in outnames: k = 1 while '{}({})'.format(name, k) in outnames: k += 1 name = '{}({})'.format(name, k) outnames.append(name) return outnames
print("Hello World") print("Hello Again") print("I Like typing this") print("This is fun.") print("Yay! Printing.") print("I'd much rather you 'not'.") print('I"said" do not touch this.') print("how to fix github")
print('Hello World') print('Hello Again') print('I Like typing this') print('This is fun.') print('Yay! Printing.') print("I'd much rather you 'not'.") print('I"said" do not touch this.') print('how to fix github')
#!/usr/env/bin python # https://www.hackerrank.com/challenges/array-left-rotation # Python 2 # first_input = '5 4' # second_input = '1 2 3 4 5' first_input = raw_input() second_input = raw_input() n, d = map(lambda x: int(x), first_input.split(' ')) items = second_input.split(' ') for i in xrange(d): item = items.pop(0) items.append(item) print(" ".join(items))
first_input = raw_input() second_input = raw_input() (n, d) = map(lambda x: int(x), first_input.split(' ')) items = second_input.split(' ') for i in xrange(d): item = items.pop(0) items.append(item) print(' '.join(items))
# Reading lines from file and putting in a content string for line in open('rosalind_iev.txt', 'r').readlines(): contents = line.rsplit() AA_AA = float(contents[0]) AA_Aa = float(contents[1]) AA_aa = float(contents[2]) Aa_Aa = float(contents[3]) Aa_aa = float(contents[4]) aa_aa = float(contents[5]) def iev_prob(offsprings, AA_AA, AA_Aa, AA_aa, Aa_Aa, Aa_aa, aa_aa): allel_prob = [1, 1, 1, 0.75, 0.5, 0] AA_AA *= allel_prob[0] AA_Aa *= allel_prob[1] AA_aa *= allel_prob[2] Aa_Aa *= allel_prob[3] Aa_aa *= allel_prob[4] aa_aa *= allel_prob[5] return offsprings*(AA_AA+AA_Aa+AA_aa+Aa_Aa+Aa_aa+aa_aa) print(iev_prob(2, AA_AA, AA_Aa, AA_aa, Aa_Aa, Aa_aa, aa_aa))
for line in open('rosalind_iev.txt', 'r').readlines(): contents = line.rsplit() aa_aa = float(contents[0]) aa__aa = float(contents[1]) aa_aa = float(contents[2]) aa__aa = float(contents[3]) aa_aa = float(contents[4]) aa_aa = float(contents[5]) def iev_prob(offsprings, AA_AA, AA_Aa, AA_aa, Aa_Aa, Aa_aa, aa_aa): allel_prob = [1, 1, 1, 0.75, 0.5, 0] aa_aa *= allel_prob[0] aa__aa *= allel_prob[1] aa_aa *= allel_prob[2] aa__aa *= allel_prob[3] aa_aa *= allel_prob[4] aa_aa *= allel_prob[5] return offsprings * (AA_AA + AA_Aa + AA_aa + Aa_Aa + Aa_aa + aa_aa) print(iev_prob(2, AA_AA, AA_Aa, AA_aa, Aa_Aa, Aa_aa, aa_aa))
#------------------------------------------------------------------------------ # Custom whitespace stripping -- Append to bottom of ~/.jupyter/jupyter_notebook_config.py # Found here: https://github.com/jupyter/notebook/issues/1455#issuecomment-519891159 #------------------------------------------------------------------------------ def strip_white_space(text): return '\n'.join([line.rstrip() for line in text.split('\n')]) def scrub_output_pre_save(model=None, **kwargs): """Auto strip trailing white space before saving.""" # If we are dealing with a notebook # if model['type'] == 'notebook': # Don't run on anything other than nbformat version 4 # if model['content']['nbformat'] != 4: print("Skipping white space stripping since `nbformat` != 4.") return # Apply function to every cell # print("Stripping white space on a notebook.") for cell in model['content']['cells']: if cell['cell_type'] != 'code': continue cell['source'] = strip_white_space(cell['source']) # If we are dealing with a file # if model['type'] == 'file': if model['format'] == 'text': print("Stripping white space on a file.") model['content'] = strip_white_space(model['content']) c.ContentsManager.pre_save_hook = scrub_output_pre_save
def strip_white_space(text): return '\n'.join([line.rstrip() for line in text.split('\n')]) def scrub_output_pre_save(model=None, **kwargs): """Auto strip trailing white space before saving.""" if model['type'] == 'notebook': if model['content']['nbformat'] != 4: print('Skipping white space stripping since `nbformat` != 4.') return print('Stripping white space on a notebook.') for cell in model['content']['cells']: if cell['cell_type'] != 'code': continue cell['source'] = strip_white_space(cell['source']) if model['type'] == 'file': if model['format'] == 'text': print('Stripping white space on a file.') model['content'] = strip_white_space(model['content']) c.ContentsManager.pre_save_hook = scrub_output_pre_save
""" --- Day 2: 1202 Program Alarm --- -- Part One -- An Intcode program is a list of integers separated by commas (like 1,0,0,3,99). To run one, start by looking at the first integer (called position 0). Here, you will find an opcode - either 1, 2, or 99. The opcode indicates what to do; for example, 99 means that the program is finished and should immediately halt. Encountering an unknown opcode means something went wrong. Opcode 1 adds together numbers read from two positions and stores the result in a third position. The three integers immediately after the opcode tell you these three positions - the first two indicate the positions from which you should read the input values, and the third indicates the position at which the output should be stored. For example, if your Intcode computer encounters 1,10,20,30, it should read the values at positions 10 and 20, add those values, and then overwrite the value at position 30 with their sum. Opcode 2 works exactly like opcode 1, except it multiplies the two inputs instead of adding them. Again, the three integers after the opcode indicate where the inputs and outputs are, not their values. (Opcode 99 halts the program.) Once you're done processing an opcode, move to the next one by stepping forward 4 positions. Once you have a working computer, the first step is to restore the gravity assist program (your puzzle input) to the "1202 program alarm" state it had just before the last computer caught fire. To do this, before running the program, replace position 1 with the value 12 and replace position 2 with the value 2. What value is left at position 0 after the program halts? -- Part Two -- "With terminology out of the way, we're ready to proceed. To complete the gravity assist, you need to determine what pair of inputs produces the output 19690720." The inputs should still be provided to the program by replacing the values at addresses 1 and 2, just like before. In this program, the value placed in address 1 is called the noun, and the value placed in address 2 is called the verb. Each of the two input values will be between 0 and 99, inclusive. Once the program has halted, its output is available at address 0, also just like before. Each time you try a pair of inputs, make sure you first reset the computer's memory to the values in the program (your puzzle input) - in other words, don't reuse memory from a previous attempt. Find the input noun and verb that cause the program to produce the output 19690720. What is 100 * noun + verb? (For example, if noun=12 and verb=2, the answer would be 1202.) """ def get_init(): a = open("intcode.txt", "r") b = (a.readline()).split(",") a.close() return b def opcode_one(arr, i): arr[int('%s'%(arr[i+3]))] = int(arr[int('%s'%(arr[i+1]))]) + int(arr[int('%s'%(arr[i+2]))]) def opcode_two(arr, i): arr[int('%s'%(arr[i+3]))] = int(arr[int('%s'%(arr[i+1]))]) * int(arr[int('%s'%(arr[i+2]))]) def part_one(): ics = get_init() i = 0 while i < (len(ics)): if ics[i] == "1": opcode_one(ics, i) i += 4 elif ics[i] == "2": opcode_two(ics, i) i += 4 elif ics[i] == "99": return ics[0] def part_two(): for k in range(0,100): for j in range(0, 100): ics = get_init() ics[1] = '%s'%(k) ics[2] = '%s'%(j) i = 0 while i < (len(ics)): if ics[i] == "1": opcode_one(ics, i) i += 4 elif ics[i] == "2": opcode_two(ics, i) i += 4 elif ics[i] == "99": break if ics[0] == 19690720: return(100*k + j) if __name__ == '__main__': print(part_one()) print(part_two())
""" --- Day 2: 1202 Program Alarm --- -- Part One -- An Intcode program is a list of integers separated by commas (like 1,0,0,3,99). To run one, start by looking at the first integer (called position 0). Here, you will find an opcode - either 1, 2, or 99. The opcode indicates what to do; for example, 99 means that the program is finished and should immediately halt. Encountering an unknown opcode means something went wrong. Opcode 1 adds together numbers read from two positions and stores the result in a third position. The three integers immediately after the opcode tell you these three positions - the first two indicate the positions from which you should read the input values, and the third indicates the position at which the output should be stored. For example, if your Intcode computer encounters 1,10,20,30, it should read the values at positions 10 and 20, add those values, and then overwrite the value at position 30 with their sum. Opcode 2 works exactly like opcode 1, except it multiplies the two inputs instead of adding them. Again, the three integers after the opcode indicate where the inputs and outputs are, not their values. (Opcode 99 halts the program.) Once you're done processing an opcode, move to the next one by stepping forward 4 positions. Once you have a working computer, the first step is to restore the gravity assist program (your puzzle input) to the "1202 program alarm" state it had just before the last computer caught fire. To do this, before running the program, replace position 1 with the value 12 and replace position 2 with the value 2. What value is left at position 0 after the program halts? -- Part Two -- "With terminology out of the way, we're ready to proceed. To complete the gravity assist, you need to determine what pair of inputs produces the output 19690720." The inputs should still be provided to the program by replacing the values at addresses 1 and 2, just like before. In this program, the value placed in address 1 is called the noun, and the value placed in address 2 is called the verb. Each of the two input values will be between 0 and 99, inclusive. Once the program has halted, its output is available at address 0, also just like before. Each time you try a pair of inputs, make sure you first reset the computer's memory to the values in the program (your puzzle input) - in other words, don't reuse memory from a previous attempt. Find the input noun and verb that cause the program to produce the output 19690720. What is 100 * noun + verb? (For example, if noun=12 and verb=2, the answer would be 1202.) """ def get_init(): a = open('intcode.txt', 'r') b = a.readline().split(',') a.close() return b def opcode_one(arr, i): arr[int('%s' % arr[i + 3])] = int(arr[int('%s' % arr[i + 1])]) + int(arr[int('%s' % arr[i + 2])]) def opcode_two(arr, i): arr[int('%s' % arr[i + 3])] = int(arr[int('%s' % arr[i + 1])]) * int(arr[int('%s' % arr[i + 2])]) def part_one(): ics = get_init() i = 0 while i < len(ics): if ics[i] == '1': opcode_one(ics, i) i += 4 elif ics[i] == '2': opcode_two(ics, i) i += 4 elif ics[i] == '99': return ics[0] def part_two(): for k in range(0, 100): for j in range(0, 100): ics = get_init() ics[1] = '%s' % k ics[2] = '%s' % j i = 0 while i < len(ics): if ics[i] == '1': opcode_one(ics, i) i += 4 elif ics[i] == '2': opcode_two(ics, i) i += 4 elif ics[i] == '99': break if ics[0] == 19690720: return 100 * k + j if __name__ == '__main__': print(part_one()) print(part_two())
"""import numpy as np import matplotlib.pyplot as plt class Grid: def __init__(self, height, weight, start): self.height = height self.weight = weight self.i = start[0] self.j = start[1] def set(self, rewards, actions): self.rewards = rewards self.actions = actions def set_state(self, s): self.i = s[0] self.j = s[1] def current_state(self): return (self.i, self.j) def is_terminal(self, s): return s not in self.actions def move(self, action): if action in self.actions[(self.i, self.j)]: if action == 'U': self.i -= 1 if action == "D": self.i += 1 if action == "R": self.j += 1 if action == "L": self.j -= 1 return self.rewards.get((self.i, self.j), 0) def undo_move(self, action): if action == 'U': self.i += 1 if action == 'D': self.i -= 1 if action == 'R': self.j -= 1 if action == 'L': self.j += 1 assert(self.current_state in self.all_states) def game_over(self): return (self.i, self.j) not in self.actions def all_states(self): return set(self.actions.keys()) | set(self.rewards.keys()) def standard_grid(): g = Grid(3, 4, (0,2)) rewards = {(0,3) : 1, (1,3) : -1} actions = { (0, 0): ('D', 'R'), (0, 1): ('L', 'R'), (0, 2): ('L', 'D', 'R'), (1, 0): ('U', 'D'), (1, 2): ('U', 'D', 'R'), (2, 0): ('U', 'R'), (2, 1): ('L', 'R'), (2, 2): ('L', 'R', 'U'), (2, 3): ('L', 'U'), } g.set(rewards, actions) return g def negative_grid(step_cost = -0.1): g = standard_grid() g.rewards.update({ (0, 0): step_cost, (0, 1): step_cost, (0, 2): step_cost, (1, 0): step_cost, (1, 2): step_cost, (2, 0): step_cost, (2, 1): step_cost, (2, 2): step_cost, (2, 3): step_cost, }) return g """ class Grid: #Environment def __init__(self, width, height, start): self.height = height self.width = width self.i = start[0] self.j = start[1] def set(self, rewards , actions): self.rewards = rewards self.actions = actions def set_state(self, s): self.i = s[0] self.j = s[1] def current_state(self): return (self.i, self.j) def game_over(self): return (self.i, self.j) not in self.actions def is_terminal(self, s): return s not in self.actions def move(self, action): if action in self.actions[(self.i, self.j)]: if action == 'U': self.i -= 1 if action == 'D': self.i += 1 if action == 'R': self.j += 1 if action == 'L': self.j -= 1 return self.rewards.get((self.i, self.j), 0) def undo_move(self, action): if action == 'U': self.i += 1 if action == 'D': self.i -= 1 if action == 'R': self.j -= 1 if action == 'L': self.j += 1 assert(self.current_state in self.all_states) def all_states(self): return set(self.actions.keys()) | set(self.rewards.keys()) def standard_grid(): g = Grid(3, 4, (2,0)) rewards = {(0,3) : 1, (1,3) : -1} actions = { (0, 0): ('D', 'R'), (0, 1): ('L', 'R'), (0, 2): ('L', 'D', 'R'), (1, 0): ('U', 'D'), (1, 2): ('U', 'D', 'R'), (2, 0): ('U', 'R'), (2, 1): ('L', 'R'), (2, 2): ('L', 'R', 'U'), (2, 3): ('L', 'U'), } g.set(rewards, actions) return g def negative_grid(step_cost = -0.1): g = standard_grid() g.rewards.update({ (0, 0): step_cost, (0, 1): step_cost, (0, 2): step_cost, (1, 0): step_cost, (1, 2): step_cost, (2, 0): step_cost, (2, 1): step_cost, (2, 2): step_cost, (2, 3): step_cost, }) return g
"""import numpy as np import matplotlib.pyplot as plt class Grid: def __init__(self, height, weight, start): self.height = height self.weight = weight self.i = start[0] self.j = start[1] def set(self, rewards, actions): self.rewards = rewards self.actions = actions def set_state(self, s): self.i = s[0] self.j = s[1] def current_state(self): return (self.i, self.j) def is_terminal(self, s): return s not in self.actions def move(self, action): if action in self.actions[(self.i, self.j)]: if action == 'U': self.i -= 1 if action == "D": self.i += 1 if action == "R": self.j += 1 if action == "L": self.j -= 1 return self.rewards.get((self.i, self.j), 0) def undo_move(self, action): if action == 'U': self.i += 1 if action == 'D': self.i -= 1 if action == 'R': self.j -= 1 if action == 'L': self.j += 1 assert(self.current_state in self.all_states) def game_over(self): return (self.i, self.j) not in self.actions def all_states(self): return set(self.actions.keys()) | set(self.rewards.keys()) def standard_grid(): g = Grid(3, 4, (0,2)) rewards = {(0,3) : 1, (1,3) : -1} actions = { (0, 0): ('D', 'R'), (0, 1): ('L', 'R'), (0, 2): ('L', 'D', 'R'), (1, 0): ('U', 'D'), (1, 2): ('U', 'D', 'R'), (2, 0): ('U', 'R'), (2, 1): ('L', 'R'), (2, 2): ('L', 'R', 'U'), (2, 3): ('L', 'U'), } g.set(rewards, actions) return g def negative_grid(step_cost = -0.1): g = standard_grid() g.rewards.update({ (0, 0): step_cost, (0, 1): step_cost, (0, 2): step_cost, (1, 0): step_cost, (1, 2): step_cost, (2, 0): step_cost, (2, 1): step_cost, (2, 2): step_cost, (2, 3): step_cost, }) return g """ class Grid: def __init__(self, width, height, start): self.height = height self.width = width self.i = start[0] self.j = start[1] def set(self, rewards, actions): self.rewards = rewards self.actions = actions def set_state(self, s): self.i = s[0] self.j = s[1] def current_state(self): return (self.i, self.j) def game_over(self): return (self.i, self.j) not in self.actions def is_terminal(self, s): return s not in self.actions def move(self, action): if action in self.actions[self.i, self.j]: if action == 'U': self.i -= 1 if action == 'D': self.i += 1 if action == 'R': self.j += 1 if action == 'L': self.j -= 1 return self.rewards.get((self.i, self.j), 0) def undo_move(self, action): if action == 'U': self.i += 1 if action == 'D': self.i -= 1 if action == 'R': self.j -= 1 if action == 'L': self.j += 1 assert self.current_state in self.all_states def all_states(self): return set(self.actions.keys()) | set(self.rewards.keys()) def standard_grid(): g = grid(3, 4, (2, 0)) rewards = {(0, 3): 1, (1, 3): -1} actions = {(0, 0): ('D', 'R'), (0, 1): ('L', 'R'), (0, 2): ('L', 'D', 'R'), (1, 0): ('U', 'D'), (1, 2): ('U', 'D', 'R'), (2, 0): ('U', 'R'), (2, 1): ('L', 'R'), (2, 2): ('L', 'R', 'U'), (2, 3): ('L', 'U')} g.set(rewards, actions) return g def negative_grid(step_cost=-0.1): g = standard_grid() g.rewards.update({(0, 0): step_cost, (0, 1): step_cost, (0, 2): step_cost, (1, 0): step_cost, (1, 2): step_cost, (2, 0): step_cost, (2, 1): step_cost, (2, 2): step_cost, (2, 3): step_cost}) return g
''' Represents the different HTTP status codes returned from the API to indicate errors. http://docs.veritranspay.co.id/sandbox/status_code.html ''' # 20x - successful submission to api SUCCESS = 200 # NOTE: this is returned when manually cancelled too! CHALLENGE = 201 PENDING = 201 # NOTE: returned when payment type is VirtualAccount, Cimb, Bri Epay, KlikBCA, Klikpay BCA, EXPIRED = 202 # NOTE: returned when payment type is GoPay # 30x MOVED_PERMANENTLY = 300 # 40x VALIDATION_ERROR = 400 ACCESS_DENIED = 401 # note: documented as 'Access Denied' but this is more descriptive # and that would also create two 'Access Denied' UNAVAILABLE_PAYMENT_TYPE = 402 DUPLICATE_ORDER_ID = 406 ACCOUNT_INACTIVE = 410 TOKEN_ERROR = 411 # 50x SERVER_ERROR = 500 FEATURE_UNAVAILABLE = 501 BANK_CONNECTION_PROBLEM = 502 SERVER_ERROR_OTHER = 503 FRAUD_DETECTION_UNAVAILABLE = 504
""" Represents the different HTTP status codes returned from the API to indicate errors. http://docs.veritranspay.co.id/sandbox/status_code.html """ success = 200 challenge = 201 pending = 201 expired = 202 moved_permanently = 300 validation_error = 400 access_denied = 401 unavailable_payment_type = 402 duplicate_order_id = 406 account_inactive = 410 token_error = 411 server_error = 500 feature_unavailable = 501 bank_connection_problem = 502 server_error_other = 503 fraud_detection_unavailable = 504
N = 4 board = [input() for _ in range(4)] for i in range(N): for j in range(N): cand = [] if j + 2 < N: cand.append([board[i][j+k] for k in range(3)]) if i + 2 < N: cand.append([board[i+k][j] for k in range(3)]) if i + 2 < N and j + 2 < N: cand.append([board[i+k][j+k] for k in range(3)]) if i + 2 < N and j - 2 >= 0: cand.append([board[i+k][j-k] for k in range(3)]) for row in cand: for k in range(3): if all(c == 'x' if i != k else c == '.' for i, c in enumerate(row)): print("YES") quit() print("NO")
n = 4 board = [input() for _ in range(4)] for i in range(N): for j in range(N): cand = [] if j + 2 < N: cand.append([board[i][j + k] for k in range(3)]) if i + 2 < N: cand.append([board[i + k][j] for k in range(3)]) if i + 2 < N and j + 2 < N: cand.append([board[i + k][j + k] for k in range(3)]) if i + 2 < N and j - 2 >= 0: cand.append([board[i + k][j - k] for k in range(3)]) for row in cand: for k in range(3): if all((c == 'x' if i != k else c == '.' for (i, c) in enumerate(row))): print('YES') quit() print('NO')
LOG_FILE = 'temperature.log' ZONE_ID = 'ZoneId' MAX_TEMP = 'MaximumTemperature' TRIGGERED = 'Triggered' INCORRECT_CREDENTIALS = 'Incorrect Credentials.' INCORRECT_ARGUEMENTS = 'Incorrect arguments provided - IP username password' TEMPERATURE_API = 'http://{}/axis-cgi/temperature_alarm/getzonestatus.cgi?' DATE_TIME_FORMAT = '%Y-%m-%d %H:%M:%S'
log_file = 'temperature.log' zone_id = 'ZoneId' max_temp = 'MaximumTemperature' triggered = 'Triggered' incorrect_credentials = 'Incorrect Credentials.' incorrect_arguements = 'Incorrect arguments provided - IP username password' temperature_api = 'http://{}/axis-cgi/temperature_alarm/getzonestatus.cgi?' date_time_format = '%Y-%m-%d %H:%M:%S'
def coroutine(seq): count = 0 while count < 200: count += yield seq.append(count) seq = [] c = coroutine(seq) next(c) ___assertEqual(seq, []) c.send(10) ___assertEqual(seq, [10]) c.send(10) ___assertEqual(seq, [10, 20])
def coroutine(seq): count = 0 while count < 200: count += (yield) seq.append(count) seq = [] c = coroutine(seq) next(c) ___assert_equal(seq, []) c.send(10) ___assert_equal(seq, [10]) c.send(10) ___assert_equal(seq, [10, 20])
# Make sure you follow the order of reaction # output should be H2O,CO2,CH4 def burner(c,h,o): water = co2 = methane = 0 if h >= 2 and o >= 1: if 2 * o >= h: water = h // 2 o -= water h -= 2*water else: water = o o -= water h -= 2 * water if o >= 2 and c >= 1: if 2 * c >= o: co2 = o // 2 c -= co2 o -= co2*2 else: co2 = c c -= co2 o -= co2 * 2 if c >= 1 and h >= 4: if c * 4 >= h: methane = h // 4 else: methane = c return water, co2, methane
def burner(c, h, o): water = co2 = methane = 0 if h >= 2 and o >= 1: if 2 * o >= h: water = h // 2 o -= water h -= 2 * water else: water = o o -= water h -= 2 * water if o >= 2 and c >= 1: if 2 * c >= o: co2 = o // 2 c -= co2 o -= co2 * 2 else: co2 = c c -= co2 o -= co2 * 2 if c >= 1 and h >= 4: if c * 4 >= h: methane = h // 4 else: methane = c return (water, co2, methane)
class Solution: def convertToBase7(self, num: int) -> str: if num == 0: return "0" num, neg = (num, False) if num > 0 else (-num, True) res = [] while num: num, r = divmod(num, 7) res.append(r) if neg: res.append("-") return "".join(map(str, reversed(res)))
class Solution: def convert_to_base7(self, num: int) -> str: if num == 0: return '0' (num, neg) = (num, False) if num > 0 else (-num, True) res = [] while num: (num, r) = divmod(num, 7) res.append(r) if neg: res.append('-') return ''.join(map(str, reversed(res)))
fin = open("Crime.csv") for line in fin: word = line.split() def crime(): print(" Crime Type | Crime ID | Crime Count") if (word == "ASSAULT" and word =="ROBBERY" and word == "THEFT OF VEHICLE" and word == "BREAK AND ENTER"): print (word) lst = [] for i in word: lst.append(i) crime
fin = open('Crime.csv') for line in fin: word = line.split() def crime(): print(' Crime Type | Crime ID | Crime Count') if word == 'ASSAULT' and word == 'ROBBERY' and (word == 'THEFT OF VEHICLE') and (word == 'BREAK AND ENTER'): print(word) lst = [] for i in word: lst.append(i) crime
def reduce_polymer(orig, to_remove=None, max_len=-1): polymer = [] for i in range(len(orig)): # We save a lot of processing time for Part 2 # if we cut off the string building once the # array is too long if max_len > 0 and len(polymer) >= max_len: return None # The test character for Part 2 is 'removed' # by just not adding it to the polymer array if to_remove and orig[i].lower() == to_remove: continue polymer.append(orig[i]) end_pair = polymer[len(polymer)-2:] while len(polymer) > 1 and end_pair[0] != end_pair[1] and end_pair[0].lower() == end_pair[1].lower(): # If the end pair meets the criteria of being a matched upper and lower case # then remove it from the end of the array. Repeat until the end pair is not removed polymer = polymer[:-2] end_pair = polymer[len(polymer)-2:] return polymer input = open('input/input05.txt').read() print('Solution 5.1:', len(reduce_polymer(input))) distinct_char = set(input.lower()) min_len = len(input) char_to_remove = '' for c in distinct_char: poly = reduce_polymer(input, c, min_len) if poly is not None and len(poly) < min_len: min_len = len(poly) char_to_remove = c print('Most troublesome character is', char_to_remove) print('Solution 5.2:', min_len)
def reduce_polymer(orig, to_remove=None, max_len=-1): polymer = [] for i in range(len(orig)): if max_len > 0 and len(polymer) >= max_len: return None if to_remove and orig[i].lower() == to_remove: continue polymer.append(orig[i]) end_pair = polymer[len(polymer) - 2:] while len(polymer) > 1 and end_pair[0] != end_pair[1] and (end_pair[0].lower() == end_pair[1].lower()): polymer = polymer[:-2] end_pair = polymer[len(polymer) - 2:] return polymer input = open('input/input05.txt').read() print('Solution 5.1:', len(reduce_polymer(input))) distinct_char = set(input.lower()) min_len = len(input) char_to_remove = '' for c in distinct_char: poly = reduce_polymer(input, c, min_len) if poly is not None and len(poly) < min_len: min_len = len(poly) char_to_remove = c print('Most troublesome character is', char_to_remove) print('Solution 5.2:', min_len)
# coding: utf-8 """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache LICENSE, Version 2.0 (the "LICENSE"); you may not use this file except in compliance with the LICENSE. You may obtain a copy of the LICENSE at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the LICENSE is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the LICENSE. """ class AuthCache: _cache_dict = {} @classmethod def get_auth(cls, ak_with_name): return cls._cache_dict.get(ak_with_name) if ak_with_name else None @classmethod def put_auth(cls, ak_with_name, _id): cls._cache_dict[ak_with_name] = _id
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache LICENSE, Version 2.0 (the "LICENSE"); you may not use this file except in compliance with the LICENSE. You may obtain a copy of the LICENSE at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the LICENSE is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the LICENSE. """ class Authcache: _cache_dict = {} @classmethod def get_auth(cls, ak_with_name): return cls._cache_dict.get(ak_with_name) if ak_with_name else None @classmethod def put_auth(cls, ak_with_name, _id): cls._cache_dict[ak_with_name] = _id
na, nb = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) a = set(a) b = set(b) t = len(a & b) t2 = len(a.union(b)) print(t/t2)
(na, nb) = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) a = set(a) b = set(b) t = len(a & b) t2 = len(a.union(b)) print(t / t2)
# # PySNMP MIB module MPLS-LC-FR-STD-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/MPLS-LC-FR-STD-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:21:02 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ( ObjectIdentifier, Integer, OctetString, ) = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint") ( DLCI, ) = mibBuilder.importSymbols("FRAME-RELAY-DTE-MIB", "DLCI") ( mplsInterfaceIndex, ) = mibBuilder.importSymbols("MPLS-LSR-STD-MIB", "mplsInterfaceIndex") ( mplsStdMIB, ) = mibBuilder.importSymbols("MPLS-TC-STD-MIB", "mplsStdMIB") ( ObjectGroup, ModuleCompliance, NotificationGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") ( TimeTicks, ObjectIdentity, NotificationType, Gauge32, ModuleIdentity, Counter64, Unsigned32, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Integer32, iso, Counter32, Bits, ) = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "NotificationType", "Gauge32", "ModuleIdentity", "Counter64", "Unsigned32", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Integer32", "iso", "Counter32", "Bits") ( TextualConvention, StorageType, DisplayString, RowStatus, ) = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "StorageType", "DisplayString", "RowStatus") mplsLcFrStdMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 10, 166, 10)).setRevisions(("2006-01-12 00:00",)) if mibBuilder.loadTexts: mplsLcFrStdMIB.setLastUpdated('200601120000Z') if mibBuilder.loadTexts: mplsLcFrStdMIB.setOrganization('Multiprotocol Label Switching (MPLS) Working Group') if mibBuilder.loadTexts: mplsLcFrStdMIB.setContactInfo(' Thomas D. Nadeau\n Cisco Systems, Inc.\n Email: tnadeau@cisco.com\n\n Subrahmanya Hegde\n Email: subrah@cisco.com\n\n General comments should be sent to mpls@uu.net\n ') if mibBuilder.loadTexts: mplsLcFrStdMIB.setDescription('This MIB module contains managed object definitions for\n MPLS Label-Controlled Frame-Relay interfaces as defined\n in (RFC3034).\n\n Copyright (C) The Internet Society (2006). This\n version of this MIB module is part of RFC 4368; see\n the RFC itself for full legal notices.') mplsLcFrStdNotifications = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 0)) mplsLcFrStdObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 1)) mplsLcFrStdConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 2)) mplsLcFrStdInterfaceConfTable = MibTable((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1), ) if mibBuilder.loadTexts: mplsLcFrStdInterfaceConfTable.setDescription("This table specifies per-interface MPLS LC-FR\n capability and associated information. In particular,\n this table sparsely extends the MPLS-LSR-STD-MIB's\n mplsInterfaceConfTable.") mplsLcFrStdInterfaceConfEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1), ).setIndexNames((0, "MPLS-LSR-STD-MIB", "mplsInterfaceIndex")) if mibBuilder.loadTexts: mplsLcFrStdInterfaceConfEntry.setDescription('An entry in this table is created by an LSR for\n every interface capable of supporting MPLS LC-FR.\n Each entry in this table will exist only if a\n corresponding entry in ifTable and mplsInterfaceConfTable\n exists. If the associated entries in ifTable and\n mplsInterfaceConfTable are deleted, the corresponding\n entry in this table must also be deleted shortly\n thereafter.') mplsLcFrStdTrafficMinDlci = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 1), DLCI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsLcFrStdTrafficMinDlci.setDescription('This is the minimum DLCI value over which this\n LSR is willing to accept traffic on this\n interface.') mplsLcFrStdTrafficMaxDlci = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 2), DLCI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsLcFrStdTrafficMaxDlci.setDescription('This is the max DLCI value over which this\n LSR is willing to accept traffic on this\n interface.') mplsLcFrStdCtrlMinDlci = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 3), DLCI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsLcFrStdCtrlMinDlci.setDescription('This is the min DLCI value over which this\n LSR is willing to accept control traffic\n on this interface.') mplsLcFrStdCtrlMaxDlci = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 4), DLCI()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsLcFrStdCtrlMaxDlci.setDescription('This is the max DLCI value over which this\n LSR is willing to accept control traffic\n on this interface.') mplsLcFrStdInterfaceConfRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsLcFrStdInterfaceConfRowStatus.setDescription('This object is used to create and\n delete entries in this table. When configuring\n entries in this table, the corresponding ifEntry and\n mplsInterfaceConfEntry MUST exist beforehand. If a manager\n attempts to create an entry for a corresponding\n mplsInterfaceConfEntry that does not support LC-FR,\n the agent MUST return an inconsistentValue error.\n If this table is implemented read-only, then the\n agent must set this object to active(1) when this\n row is made active. If this table is implemented\n writable, then an agent MUST not allow modification\n to its objects once this value is set to active(1),\n except to mplsLcFrStdInterfaceConfRowStatus and\n mplsLcFrStdInterfaceConfStorageType.') mplsLcFrStdInterfaceConfStorageType = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 6), StorageType().clone('nonVolatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: mplsLcFrStdInterfaceConfStorageType.setDescription("The storage type for this conceptual row.\n Conceptual rows having the value 'permanent(4)'\n need not allow write-access to any columnar\n objects in the row.") mplsLcFrStdCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 1)) mplsLcFrStdGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 2)) mplsLcFrStdModuleFullCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 1, 1)).setObjects(*(("MPLS-LC-FR-STD-MIB", "mplsLcFrStdIfGroup"),)) if mibBuilder.loadTexts: mplsLcFrStdModuleFullCompliance.setDescription('Compliance statement for agents that provide\n full support for MPLS-LC-FR-STD-MIB. Such\n devices can be monitored and also be configured\n using this MIB module.') mplsLcFrStdModuleReadOnlyCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 1, 2)).setObjects(*(("MPLS-LC-FR-STD-MIB", "mplsLcFrStdIfGroup"),)) if mibBuilder.loadTexts: mplsLcFrStdModuleReadOnlyCompliance.setDescription('Compliance requirement for implementations that only\n provide read-only support for MPLS-LC-FR-STD-MIB.\n Such devices can be monitored but cannot be configured\n using this MIB module.\n ') mplsLcFrStdIfGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 2, 1)).setObjects(*(("MPLS-LC-FR-STD-MIB", "mplsLcFrStdTrafficMinDlci"), ("MPLS-LC-FR-STD-MIB", "mplsLcFrStdTrafficMaxDlci"), ("MPLS-LC-FR-STD-MIB", "mplsLcFrStdCtrlMinDlci"), ("MPLS-LC-FR-STD-MIB", "mplsLcFrStdCtrlMaxDlci"), ("MPLS-LC-FR-STD-MIB", "mplsLcFrStdInterfaceConfRowStatus"), ("MPLS-LC-FR-STD-MIB", "mplsLcFrStdInterfaceConfStorageType"),)) if mibBuilder.loadTexts: mplsLcFrStdIfGroup.setDescription('Collection of objects needed for MPLS LC-FR\n interface configuration.') mibBuilder.exportSymbols("MPLS-LC-FR-STD-MIB", mplsLcFrStdInterfaceConfStorageType=mplsLcFrStdInterfaceConfStorageType, mplsLcFrStdConformance=mplsLcFrStdConformance, mplsLcFrStdModuleReadOnlyCompliance=mplsLcFrStdModuleReadOnlyCompliance, mplsLcFrStdMIB=mplsLcFrStdMIB, PYSNMP_MODULE_ID=mplsLcFrStdMIB, mplsLcFrStdTrafficMinDlci=mplsLcFrStdTrafficMinDlci, mplsLcFrStdCtrlMaxDlci=mplsLcFrStdCtrlMaxDlci, mplsLcFrStdIfGroup=mplsLcFrStdIfGroup, mplsLcFrStdGroups=mplsLcFrStdGroups, mplsLcFrStdInterfaceConfTable=mplsLcFrStdInterfaceConfTable, mplsLcFrStdTrafficMaxDlci=mplsLcFrStdTrafficMaxDlci, mplsLcFrStdCompliances=mplsLcFrStdCompliances, mplsLcFrStdModuleFullCompliance=mplsLcFrStdModuleFullCompliance, mplsLcFrStdCtrlMinDlci=mplsLcFrStdCtrlMinDlci, mplsLcFrStdNotifications=mplsLcFrStdNotifications, mplsLcFrStdObjects=mplsLcFrStdObjects, mplsLcFrStdInterfaceConfRowStatus=mplsLcFrStdInterfaceConfRowStatus, mplsLcFrStdInterfaceConfEntry=mplsLcFrStdInterfaceConfEntry)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, constraints_intersection, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint') (dlci,) = mibBuilder.importSymbols('FRAME-RELAY-DTE-MIB', 'DLCI') (mpls_interface_index,) = mibBuilder.importSymbols('MPLS-LSR-STD-MIB', 'mplsInterfaceIndex') (mpls_std_mib,) = mibBuilder.importSymbols('MPLS-TC-STD-MIB', 'mplsStdMIB') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (time_ticks, object_identity, notification_type, gauge32, module_identity, counter64, unsigned32, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, integer32, iso, counter32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ObjectIdentity', 'NotificationType', 'Gauge32', 'ModuleIdentity', 'Counter64', 'Unsigned32', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Integer32', 'iso', 'Counter32', 'Bits') (textual_convention, storage_type, display_string, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'StorageType', 'DisplayString', 'RowStatus') mpls_lc_fr_std_mib = module_identity((1, 3, 6, 1, 2, 1, 10, 166, 10)).setRevisions(('2006-01-12 00:00',)) if mibBuilder.loadTexts: mplsLcFrStdMIB.setLastUpdated('200601120000Z') if mibBuilder.loadTexts: mplsLcFrStdMIB.setOrganization('Multiprotocol Label Switching (MPLS) Working Group') if mibBuilder.loadTexts: mplsLcFrStdMIB.setContactInfo(' Thomas D. Nadeau\n Cisco Systems, Inc.\n Email: tnadeau@cisco.com\n\n Subrahmanya Hegde\n Email: subrah@cisco.com\n\n General comments should be sent to mpls@uu.net\n ') if mibBuilder.loadTexts: mplsLcFrStdMIB.setDescription('This MIB module contains managed object definitions for\n MPLS Label-Controlled Frame-Relay interfaces as defined\n in (RFC3034).\n\n Copyright (C) The Internet Society (2006). This\n version of this MIB module is part of RFC 4368; see\n the RFC itself for full legal notices.') mpls_lc_fr_std_notifications = mib_identifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 0)) mpls_lc_fr_std_objects = mib_identifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 1)) mpls_lc_fr_std_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 2)) mpls_lc_fr_std_interface_conf_table = mib_table((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1)) if mibBuilder.loadTexts: mplsLcFrStdInterfaceConfTable.setDescription("This table specifies per-interface MPLS LC-FR\n capability and associated information. In particular,\n this table sparsely extends the MPLS-LSR-STD-MIB's\n mplsInterfaceConfTable.") mpls_lc_fr_std_interface_conf_entry = mib_table_row((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1)).setIndexNames((0, 'MPLS-LSR-STD-MIB', 'mplsInterfaceIndex')) if mibBuilder.loadTexts: mplsLcFrStdInterfaceConfEntry.setDescription('An entry in this table is created by an LSR for\n every interface capable of supporting MPLS LC-FR.\n Each entry in this table will exist only if a\n corresponding entry in ifTable and mplsInterfaceConfTable\n exists. If the associated entries in ifTable and\n mplsInterfaceConfTable are deleted, the corresponding\n entry in this table must also be deleted shortly\n thereafter.') mpls_lc_fr_std_traffic_min_dlci = mib_table_column((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 1), dlci()).setMaxAccess('readcreate') if mibBuilder.loadTexts: mplsLcFrStdTrafficMinDlci.setDescription('This is the minimum DLCI value over which this\n LSR is willing to accept traffic on this\n interface.') mpls_lc_fr_std_traffic_max_dlci = mib_table_column((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 2), dlci()).setMaxAccess('readcreate') if mibBuilder.loadTexts: mplsLcFrStdTrafficMaxDlci.setDescription('This is the max DLCI value over which this\n LSR is willing to accept traffic on this\n interface.') mpls_lc_fr_std_ctrl_min_dlci = mib_table_column((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 3), dlci()).setMaxAccess('readcreate') if mibBuilder.loadTexts: mplsLcFrStdCtrlMinDlci.setDescription('This is the min DLCI value over which this\n LSR is willing to accept control traffic\n on this interface.') mpls_lc_fr_std_ctrl_max_dlci = mib_table_column((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 4), dlci()).setMaxAccess('readcreate') if mibBuilder.loadTexts: mplsLcFrStdCtrlMaxDlci.setDescription('This is the max DLCI value over which this\n LSR is willing to accept control traffic\n on this interface.') mpls_lc_fr_std_interface_conf_row_status = mib_table_column((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: mplsLcFrStdInterfaceConfRowStatus.setDescription('This object is used to create and\n delete entries in this table. When configuring\n entries in this table, the corresponding ifEntry and\n mplsInterfaceConfEntry MUST exist beforehand. If a manager\n attempts to create an entry for a corresponding\n mplsInterfaceConfEntry that does not support LC-FR,\n the agent MUST return an inconsistentValue error.\n If this table is implemented read-only, then the\n agent must set this object to active(1) when this\n row is made active. If this table is implemented\n writable, then an agent MUST not allow modification\n to its objects once this value is set to active(1),\n except to mplsLcFrStdInterfaceConfRowStatus and\n mplsLcFrStdInterfaceConfStorageType.') mpls_lc_fr_std_interface_conf_storage_type = mib_table_column((1, 3, 6, 1, 2, 1, 10, 166, 10, 1, 1, 1, 6), storage_type().clone('nonVolatile')).setMaxAccess('readcreate') if mibBuilder.loadTexts: mplsLcFrStdInterfaceConfStorageType.setDescription("The storage type for this conceptual row.\n Conceptual rows having the value 'permanent(4)'\n need not allow write-access to any columnar\n objects in the row.") mpls_lc_fr_std_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 1)) mpls_lc_fr_std_groups = mib_identifier((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 2)) mpls_lc_fr_std_module_full_compliance = module_compliance((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 1, 1)).setObjects(*(('MPLS-LC-FR-STD-MIB', 'mplsLcFrStdIfGroup'),)) if mibBuilder.loadTexts: mplsLcFrStdModuleFullCompliance.setDescription('Compliance statement for agents that provide\n full support for MPLS-LC-FR-STD-MIB. Such\n devices can be monitored and also be configured\n using this MIB module.') mpls_lc_fr_std_module_read_only_compliance = module_compliance((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 1, 2)).setObjects(*(('MPLS-LC-FR-STD-MIB', 'mplsLcFrStdIfGroup'),)) if mibBuilder.loadTexts: mplsLcFrStdModuleReadOnlyCompliance.setDescription('Compliance requirement for implementations that only\n provide read-only support for MPLS-LC-FR-STD-MIB.\n Such devices can be monitored but cannot be configured\n using this MIB module.\n ') mpls_lc_fr_std_if_group = object_group((1, 3, 6, 1, 2, 1, 10, 166, 10, 2, 2, 1)).setObjects(*(('MPLS-LC-FR-STD-MIB', 'mplsLcFrStdTrafficMinDlci'), ('MPLS-LC-FR-STD-MIB', 'mplsLcFrStdTrafficMaxDlci'), ('MPLS-LC-FR-STD-MIB', 'mplsLcFrStdCtrlMinDlci'), ('MPLS-LC-FR-STD-MIB', 'mplsLcFrStdCtrlMaxDlci'), ('MPLS-LC-FR-STD-MIB', 'mplsLcFrStdInterfaceConfRowStatus'), ('MPLS-LC-FR-STD-MIB', 'mplsLcFrStdInterfaceConfStorageType'))) if mibBuilder.loadTexts: mplsLcFrStdIfGroup.setDescription('Collection of objects needed for MPLS LC-FR\n interface configuration.') mibBuilder.exportSymbols('MPLS-LC-FR-STD-MIB', mplsLcFrStdInterfaceConfStorageType=mplsLcFrStdInterfaceConfStorageType, mplsLcFrStdConformance=mplsLcFrStdConformance, mplsLcFrStdModuleReadOnlyCompliance=mplsLcFrStdModuleReadOnlyCompliance, mplsLcFrStdMIB=mplsLcFrStdMIB, PYSNMP_MODULE_ID=mplsLcFrStdMIB, mplsLcFrStdTrafficMinDlci=mplsLcFrStdTrafficMinDlci, mplsLcFrStdCtrlMaxDlci=mplsLcFrStdCtrlMaxDlci, mplsLcFrStdIfGroup=mplsLcFrStdIfGroup, mplsLcFrStdGroups=mplsLcFrStdGroups, mplsLcFrStdInterfaceConfTable=mplsLcFrStdInterfaceConfTable, mplsLcFrStdTrafficMaxDlci=mplsLcFrStdTrafficMaxDlci, mplsLcFrStdCompliances=mplsLcFrStdCompliances, mplsLcFrStdModuleFullCompliance=mplsLcFrStdModuleFullCompliance, mplsLcFrStdCtrlMinDlci=mplsLcFrStdCtrlMinDlci, mplsLcFrStdNotifications=mplsLcFrStdNotifications, mplsLcFrStdObjects=mplsLcFrStdObjects, mplsLcFrStdInterfaceConfRowStatus=mplsLcFrStdInterfaceConfRowStatus, mplsLcFrStdInterfaceConfEntry=mplsLcFrStdInterfaceConfEntry)
# O(n^2) overall def get_longest_increasing_subsequence(nums): l = len(nums) # reverse adjacency list O(n^2) reverse_adjacency = {i:set() for i in range(l)} for i,n in enumerate(nums): for j,e in enumerate(nums[i+1:], i +1): if n < e: reverse_adjacency[j].add(i) # dynamic programming O(V+E) p = ['-']*l max_len = [0]*l best_max = (0,0) # (len, index) for i in range(l): if len(reverse_adjacency[i]) != 0: maxz = float('-inf') for c in reverse_adjacency[i]: if max_len[c] > maxz: max_i = c max_ = 1 + max_len[max_i] else: max_i = '-' max_ = 1 p[i] = max_i max_len[i] = max_ if max_ > best_max[0]: best_max = (max_, i) path = [best_max[1]] while path[-1] != '-': path.append(p[path[-1]]) return path, best_max[0]
def get_longest_increasing_subsequence(nums): l = len(nums) reverse_adjacency = {i: set() for i in range(l)} for (i, n) in enumerate(nums): for (j, e) in enumerate(nums[i + 1:], i + 1): if n < e: reverse_adjacency[j].add(i) p = ['-'] * l max_len = [0] * l best_max = (0, 0) for i in range(l): if len(reverse_adjacency[i]) != 0: maxz = float('-inf') for c in reverse_adjacency[i]: if max_len[c] > maxz: max_i = c max_ = 1 + max_len[max_i] else: max_i = '-' max_ = 1 p[i] = max_i max_len[i] = max_ if max_ > best_max[0]: best_max = (max_, i) path = [best_max[1]] while path[-1] != '-': path.append(p[path[-1]]) return (path, best_max[0])
""" Variables for configuration of zoom meetings using SCA Room Assign Tool """ N = 1 SESSION_PATH = "session_info.obj" CHROME_PATH = "C:/ChromeDriver/chromedriver.exe" existing_meeting_id = None # either a valid meeting ID or None, e.g. "860 1959 8282" username = "" password = "" room_names = ["Calligraphy", "Costume", "Cooking", "Performance", "Construction", "Other", "Chatroom 1", "Chatroom 2"] meeting_docs = """Bot started. """ meeting_params = { "room_names": room_names, "SESSION_PATH": SESSION_PATH, "CHROME_PATH": CHROME_PATH, "username": username, "password": password, "meeting_docs": meeting_docs}
""" Variables for configuration of zoom meetings using SCA Room Assign Tool """ n = 1 session_path = 'session_info.obj' chrome_path = 'C:/ChromeDriver/chromedriver.exe' existing_meeting_id = None username = '' password = '' room_names = ['Calligraphy', 'Costume', 'Cooking', 'Performance', 'Construction', 'Other', 'Chatroom 1', 'Chatroom 2'] meeting_docs = 'Bot started. ' meeting_params = {'room_names': room_names, 'SESSION_PATH': SESSION_PATH, 'CHROME_PATH': CHROME_PATH, 'username': username, 'password': password, 'meeting_docs': meeting_docs}
# This is how we print something print("Hello!") # Let's use python3 hello.py to run the program # We can set variables my_variable = 5 print(my_variable) # We can make a list my_list = [1, 2, 3] print(my_list)
print('Hello!') my_variable = 5 print(my_variable) my_list = [1, 2, 3] print(my_list)
def perm_coord( self, perm_coord_list=[0, 1, 2], ): """Permute coordinates of Mesh Solution in place Parameters ---------- self : MeshSolution a MeshSolution object perm_coord_list : list list of the coordinates to be permuted """ # swap mesh solution for sol in self.solution: # swap modal shapes meshsol_field = sol.field meshsol_field = meshsol_field.T[perm_coord_list].T sol.field = meshsol_field # swap mesh VTK meshsol_mesh = self.get_mesh() self.mesh = [meshsol_mesh.perm_coord(perm_coord_list=perm_coord_list)]
def perm_coord(self, perm_coord_list=[0, 1, 2]): """Permute coordinates of Mesh Solution in place Parameters ---------- self : MeshSolution a MeshSolution object perm_coord_list : list list of the coordinates to be permuted """ for sol in self.solution: meshsol_field = sol.field meshsol_field = meshsol_field.T[perm_coord_list].T sol.field = meshsol_field meshsol_mesh = self.get_mesh() self.mesh = [meshsol_mesh.perm_coord(perm_coord_list=perm_coord_list)]
class DisjointSets: """ Disjoint-set union data structure in which each element contributes an arbitrary measure. """ __slots__ = ('_parents', '_ranks', '_measures') def __init__(self, measures): """ Constructs DisjointSets with a fixed number of elements, each initially in a singleton. That is, it is as if a makeset operation is performed for each element and corresponding measure (element, measure) in enumerate(measures). """ self._measures = list(measures) length = len(self._measures) self._parents = list(range(length)) self._ranks = [0] * length def _find_set(self, element): """Finds the representative of the set contaiing the given element.""" # Find the ancestor. while element != self._parents[elements]: element = self._parents[element] # Compress the path. def sieve(bound): """Yields primes up to at least `bound` with a Sieve of Eratosthenes.""" yield 2 table = [True] * (bound + 1) # True means possibly prime. for factor in range(3, math.floor(math.sqrt(bound)) + 1, 2): if table[factor]: for multiple in range(factor * factor, bound + 1, factor * 2): table[multiple] = False for odd in range(3, bound + 1, 2): if table[odd]: yield odd PRIMES = tuple(sieve(100_000)) assert PRIMES, 'as implemented, the algorithms need a non-empty PRIMES table' def prime_factor_indices(product): """ Yields the `PRIMES` table index of each unique prime factor of `product`, in ascending order. """ for index, prime in enumerate(PRIMES): if product % prime == 0: yield index product //= prime while product % prime: product //= prime if product == 1: return index = bisect.bisect_left(PRIMES, product) assert PRIMES[index] == product, 'product should be reduced to one prime' yield index class Solution: @staticmethod def largestComponentSize(A: List[int]) -> int: pass # FIXME: implement this
class Disjointsets: """ Disjoint-set union data structure in which each element contributes an arbitrary measure. """ __slots__ = ('_parents', '_ranks', '_measures') def __init__(self, measures): """ Constructs DisjointSets with a fixed number of elements, each initially in a singleton. That is, it is as if a makeset operation is performed for each element and corresponding measure (element, measure) in enumerate(measures). """ self._measures = list(measures) length = len(self._measures) self._parents = list(range(length)) self._ranks = [0] * length def _find_set(self, element): """Finds the representative of the set contaiing the given element.""" while element != self._parents[elements]: element = self._parents[element] def sieve(bound): """Yields primes up to at least `bound` with a Sieve of Eratosthenes.""" yield 2 table = [True] * (bound + 1) for factor in range(3, math.floor(math.sqrt(bound)) + 1, 2): if table[factor]: for multiple in range(factor * factor, bound + 1, factor * 2): table[multiple] = False for odd in range(3, bound + 1, 2): if table[odd]: yield odd primes = tuple(sieve(100000)) assert PRIMES, 'as implemented, the algorithms need a non-empty PRIMES table' def prime_factor_indices(product): """ Yields the `PRIMES` table index of each unique prime factor of `product`, in ascending order. """ for (index, prime) in enumerate(PRIMES): if product % prime == 0: yield index product //= prime while product % prime: product //= prime if product == 1: return index = bisect.bisect_left(PRIMES, product) assert PRIMES[index] == product, 'product should be reduced to one prime' yield index class Solution: @staticmethod def largest_component_size(A: List[int]) -> int: pass
class Solution: def sortedSquares(self, A: List[int]) -> List[int]: A = [i*i for i in A] return sorted(A)
class Solution: def sorted_squares(self, A: List[int]) -> List[int]: a = [i * i for i in A] return sorted(A)
class Variable(object): def __init__(self, _id , offset): self._id = _id self.offset = offset def __str__(self): s = str(self._id) if self.offset: s = s + "/%d" % self.offset return s class VariableLimited(object): def __init__(self, _id , offset, size): self._id = _id self.offset = offset self.size = size def __str__(self): s = str(self._id) if self.offset: s = s + "/%d" % self.offset return s + ":%d" % self.size def VariableLimitedListInit(): return list() def VariableLimitedListNext(a, l): l.append(a) return l
class Variable(object): def __init__(self, _id, offset): self._id = _id self.offset = offset def __str__(self): s = str(self._id) if self.offset: s = s + '/%d' % self.offset return s class Variablelimited(object): def __init__(self, _id, offset, size): self._id = _id self.offset = offset self.size = size def __str__(self): s = str(self._id) if self.offset: s = s + '/%d' % self.offset return s + ':%d' % self.size def variable_limited_list_init(): return list() def variable_limited_list_next(a, l): l.append(a) return l
# -*- coding: utf-8 -*- # texttaglib's package version information __author__ = "Le Tuan Anh" __email__ = "tuananh.ke@gmail.com" __copyright__ = "Copyright (c) 2018, texttaglib, Le Tuan Anh" __credits__ = [] __license__ = "MIT License" __description__ = "Python library for managing and annotating text corpuses in different formats (ELAN, TIG, TTL, et cetera)" __url__ = "https://github.com/letuananh/texttaglib" __maintainer__ = "Le Tuan Anh" __version_major__ = "0.1.1" __version__ = "{}".format(__version_major__) __version_long__ = "{}".format(__version_major__) __status__ = "5 - Production/Stable"
__author__ = 'Le Tuan Anh' __email__ = 'tuananh.ke@gmail.com' __copyright__ = 'Copyright (c) 2018, texttaglib, Le Tuan Anh' __credits__ = [] __license__ = 'MIT License' __description__ = 'Python library for managing and annotating text corpuses in different formats (ELAN, TIG, TTL, et cetera)' __url__ = 'https://github.com/letuananh/texttaglib' __maintainer__ = 'Le Tuan Anh' __version_major__ = '0.1.1' __version__ = '{}'.format(__version_major__) __version_long__ = '{}'.format(__version_major__) __status__ = '5 - Production/Stable'
# General things: RIGHT = 1 LEFT = 2 TOP = 3 BOTTOM = 4 # Names of layers class Layers: game_actors = 4 main = 3 sticky_background = 2 background = 1 background_color = 0 # Message names: (MSGNs) class MSGN: COLLISION_SIDES = 0 VELOCITY = 1 STATE = 100 LOOKDIRECTION = 101 STATESTACK = 102 # Warios states: class WarioStates: UPRIGHT_STAY = 0 UPRIGHT_MOVE = 1 CROUCH_STAY = 2 CROUCH_MOVE = 3 JUMP_STAY = 4 JUMP_MOVE = 5 FALL_STAY = 6 FALL_MOVE = 7 GOTO_SLEEP = 8 WAKE_UP = 9 SLEEP = 10 TURN = 11 SFIST_ONGROUND = 12 SFIST_JUMP = 13 SFIST_FALL = 14 BUMP_BACK = 15 # Spearhead-states: class ShStates: STAY = 0 MOVE = 1 ANGRY = 2 BLINK = 3 SLEEP = 4 TURN = 5 UPSIDE_DOWN = 6
right = 1 left = 2 top = 3 bottom = 4 class Layers: game_actors = 4 main = 3 sticky_background = 2 background = 1 background_color = 0 class Msgn: collision_sides = 0 velocity = 1 state = 100 lookdirection = 101 statestack = 102 class Wariostates: upright_stay = 0 upright_move = 1 crouch_stay = 2 crouch_move = 3 jump_stay = 4 jump_move = 5 fall_stay = 6 fall_move = 7 goto_sleep = 8 wake_up = 9 sleep = 10 turn = 11 sfist_onground = 12 sfist_jump = 13 sfist_fall = 14 bump_back = 15 class Shstates: stay = 0 move = 1 angry = 2 blink = 3 sleep = 4 turn = 5 upside_down = 6
# -*- coding: utf-8 -*- account = { 'email': 'YOUR EMAIL', 'password': 'YOUR PASSWORD' } op = "Login" form_id = "packt_user_login_form" frequency = 8
account = {'email': 'YOUR EMAIL', 'password': 'YOUR PASSWORD'} op = 'Login' form_id = 'packt_user_login_form' frequency = 8
tabby_dog="\tI'm tabbed in"; persian_dog="I'm split\non s line." backslash_dog="i'm \\ a \\ dog" fat_dog="I'll do a list:\t* dog food \t* Fishies \t* Catnip\n\t* Grass" print(tabby_dog) print(persian_dog) print(backslash_dog) print(fat_dog)
tabby_dog = "\tI'm tabbed in" persian_dog = "I'm split\non s line." backslash_dog = "i'm \\ a \\ dog" fat_dog = "I'll do a list:\t* dog food \t* Fishies \t* Catnip\n\t* Grass" print(tabby_dog) print(persian_dog) print(backslash_dog) print(fat_dog)
# Change these to your instagram login credentials. username = "Username" password = "Password"
username = 'Username' password = 'Password'
#!chuck_extends project/urls.py #!chuck_appends URLS urlpatterns += patterns('', url(r'^', include('filer.server.urls')), url(r'^', include('cms.urls')), ) #!end
urlpatterns += patterns('', url('^', include('filer.server.urls')), url('^', include('cms.urls')))
# Easy horntail gem sm.spawnMob(8810202, 95, 260, False) sm.spawnMob(8810203, 95, 260, False) sm.spawnMob(8810204, 95, 260, False) sm.spawnMob(8810205, 95, 260, False) sm.spawnMob(8810206, 95, 260, False) sm.spawnMob(8810207, 95, 260, False) sm.spawnMob(8810208, 95, 260, False) sm.spawnMob(8810209, 95, 260, False) sm.spawnMob(8810214, 95, 260, False) sm.removeReactor()
sm.spawnMob(8810202, 95, 260, False) sm.spawnMob(8810203, 95, 260, False) sm.spawnMob(8810204, 95, 260, False) sm.spawnMob(8810205, 95, 260, False) sm.spawnMob(8810206, 95, 260, False) sm.spawnMob(8810207, 95, 260, False) sm.spawnMob(8810208, 95, 260, False) sm.spawnMob(8810209, 95, 260, False) sm.spawnMob(8810214, 95, 260, False) sm.removeReactor()
#https://codeforces.com/contest/1343/problem/C for _ in range(int(input())): n = int(input()) l = input().split() new = [] sn=[] nn=[] ans=0 for i in l: if i[0]!='-': sn.append(int(i)) if(nn!=[]): new.append(nn) nn=[] else: nn.append(int(i)) if(sn!=[]): new.append(sn) sn=[] new.append(nn) new.append(sn) new = [ele for ele in new if ele != []] for i in new: ans+=max(i) print(ans) # new = [] # ele=0 # t,p=0,0 # if l[0]>0: # t=1 # for i in range(n): # if l[i]>0 : # p=1 # elif l[i]<0: # p=0 # if(t!=p): # new.append(ele) # ele=0 # if(p==0 and (l[i]<0 or ele>l[i])): # ele=l[i] # t=p # elif(p==1 and (l[i]>0 or ele>l[i])): # ele=l[i] # t=p # print(new)
for _ in range(int(input())): n = int(input()) l = input().split() new = [] sn = [] nn = [] ans = 0 for i in l: if i[0] != '-': sn.append(int(i)) if nn != []: new.append(nn) nn = [] else: nn.append(int(i)) if sn != []: new.append(sn) sn = [] new.append(nn) new.append(sn) new = [ele for ele in new if ele != []] for i in new: ans += max(i) print(ans)
def in_bounds(matrix, i, j): rows = len(matrix) cols = len(matrix[0]) if i < 0 or i >= rows or j < 0 or j >= cols: return False return True def read_matrix(): matrix = [] while row := input(): matrix.append([int(num) for num in list(row)]) return matrix def pretty_print(matrix): for i in range(len(matrix)): for j in range(len(matrix[i])): print(matrix[i][j], end=' ') print()
def in_bounds(matrix, i, j): rows = len(matrix) cols = len(matrix[0]) if i < 0 or i >= rows or j < 0 or (j >= cols): return False return True def read_matrix(): matrix = [] while (row := input()): matrix.append([int(num) for num in list(row)]) return matrix def pretty_print(matrix): for i in range(len(matrix)): for j in range(len(matrix[i])): print(matrix[i][j], end=' ') print()
#in=5 #in=10 #in=11 #in=20 #in=22 #in=30 #in=33 #in=40 #in=44 #in=50 #in=55 #golden=6050 n = input_int() out = 0 while (n > 0): x = input_int() y = input_int() out = out + x * y n = n - 1 print(out)
n = input_int() out = 0 while n > 0: x = input_int() y = input_int() out = out + x * y n = n - 1 print(out)
for _ in range(int(input())): n=int(input()) if n%2==0: check=0 while n%2==0: n=n//2 check+=1 if n<=1: if check%2: print("Bob") else: print("Alice") else: print("Alice") else: print("Bob")
for _ in range(int(input())): n = int(input()) if n % 2 == 0: check = 0 while n % 2 == 0: n = n // 2 check += 1 if n <= 1: if check % 2: print('Bob') else: print('Alice') else: print('Alice') else: print('Bob')
class Solution: def isOneEditDistance(self, s, t): l1, l2, cnt, i, j = len(s), len(t), 0, 0, 0 while i < l1 and j < l2: if s[i] != t[j]: cnt += 1 if l1 < l2: i -= 1 elif l1 > l2: j -= 1 i += 1 j += 1 l = abs(l1 - l2) return (cnt == 1 and l <= 1) or (cnt == 0 and l == 1)
class Solution: def is_one_edit_distance(self, s, t): (l1, l2, cnt, i, j) = (len(s), len(t), 0, 0, 0) while i < l1 and j < l2: if s[i] != t[j]: cnt += 1 if l1 < l2: i -= 1 elif l1 > l2: j -= 1 i += 1 j += 1 l = abs(l1 - l2) return cnt == 1 and l <= 1 or (cnt == 0 and l == 1)