content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
m = 5 n = 0.000001 # rule-id: use-float-numbers assert(1.0000 == 1.000000) # rule-id: use-float-numbers assert(1.0000 == m) # rule-id: use-float-numbers assert(m == 1.0000) # rule-id: use-float-numbers assert(m == n)
m = 5 n = 1e-06 assert 1.0 == 1.0 assert 1.0 == m assert m == 1.0 assert m == n
while True: password = input("Password") print(password) if password == "stop": break print("the while loop has stopped")
while True: password = input('Password') print(password) if password == 'stop': break print('the while loop has stopped')
# wczytanie slow i szyfrow with open('../dane/sz.txt') as f: cyphers = [] for word in f.readlines(): cyphers.append(word[:-1]) with open('../dane/klucze2.txt') as f: keys = [] for word in f.readlines(): keys.append(word[:-1]) # zbior odszyfrowanych slow words = [] # przejscie po slowach i kluczach for cypher, key in zip(cyphers, keys): # zaszyfrowane slowo word = '' for i, char in enumerate(cypher): # odjecie ich kodow ascii plus 64 by uzyskac numer alfabetu klucza # klucz zawijam na wypadek krotszego klucza od szyfrowanego slowa currAscii = ord(char) - ord(key[i % len(key)]) + 64 # jezeli przekroczylo dolna granice, zawijam if currAscii < 65: currAscii += 26 word += chr(currAscii) words.append(word) # wyswietlenie odpowiedzi nl = '\n' answer = f'4 b) Odszyfrowane slowa: {nl}{nl.join(words)}' print(answer)
with open('../dane/sz.txt') as f: cyphers = [] for word in f.readlines(): cyphers.append(word[:-1]) with open('../dane/klucze2.txt') as f: keys = [] for word in f.readlines(): keys.append(word[:-1]) words = [] for (cypher, key) in zip(cyphers, keys): word = '' for (i, char) in enumerate(cypher): curr_ascii = ord(char) - ord(key[i % len(key)]) + 64 if currAscii < 65: curr_ascii += 26 word += chr(currAscii) words.append(word) nl = '\n' answer = f'4 b) Odszyfrowane slowa: {nl}{nl.join(words)}' print(answer)
def graph_pred_vs_actual(actual,pred,data_type): plt.scatter(actual,pred,alpha=.3) plt.plot(np.linspace(int(min(pred)),int(max(pred)),int(max(pred))), np.linspace(int(min(pred)),int(max(pred)),int(max(pred)))) plt.title('Actual vs Pred ({} Data)'.format(data_type)) plt.xlabel('Actual') plt.ylabel('Pred') plt.show() def graph_residual(actual,residual,data_type): plt.scatter(actual,residual,alpha=.3) plt.plot(np.linspace(int(min(actual)),int(max(actual)),int(max(actual))),np.linspace(0,0,int(max(actual)))) plt.title('Actual vs Residual ({} Data)'.format(data_type)) plt.xlabel('Actual') plt.ylabel('Residual') plt.show() def scrape_weather_url(url): # weather data holder to be inserted to pandas dataframe high_low, weather_desc, humidity_barometer, wind, date_time = [], [], [], [], [] # open url driver.get(url) soup = BeautifulSoup(driver.page_source, "lxml") days_chain = [x.find_all('a') for x in soup.find_all(class_='weatherLinks')] time.sleep(5) # Load Entire Page by Scrolling to charts driver.execute_script("window.scrollTo(0, document.body.scrollHeight/3.5);") # Scroll down to bottom # First load of each month takes extra long time. Therefore 'counter' variable is used to run else block first counter = 0 for ix,link in enumerate(days_chain[0]): ''' Bottom section tries to solve loading issue by implementing wait feature Refer : https://selenium-python.readthedocs.io/waits.html ''' wait = WebDriverWait(driver, 10) if counter!=0: delay = 3 # seconds try: myElem = wait.until(EC.presence_of_element_located((By.CLASS_NAME, 'weatherLinks'))) except TimeoutException: print("Loading took too much time!" ) day_link = driver.find_element_by_xpath("//div[@class='weatherLinks']/a[{}]".format(ix+1)) wait.until(EC.element_to_be_clickable((By.XPATH, "//div[@class='weatherLinks']/a[{}]".format(ix+1)))) day_link.click() else: delay = 5 # seconds try: myElem = WebDriverWait(driver, delay).until(EC.presence_of_element_located((By.CLASS_NAME, 'weatherLinks'))) except TimeoutException: print("Loading took too much time!" ) day_link = driver.find_element_by_xpath("//div[@class='weatherLinks']/a[{}]".format(ix+1)) wait.until(EC.element_to_be_clickable((By.XPATH, "//div[@class='weatherLinks']/a[{}]".format(ix+1)))) time.sleep(4) day_link.click() time.sleep(3) counter+=1 # Wait a bit for the Javascript to fully load data to be scraped time.sleep(2.5) # Scrape weather data high_low.insert(0,driver.find_elements_by_xpath("//div[@class='temp']")[-1].text) #notice elements, s at the end. This returns a list, and I can index it. weather_desc.insert(0,driver.find_element_by_xpath("//div[@class='wdesc']").text) humidity_barometer.insert(0,driver.find_element_by_xpath("//div[@class='mid__block']").text) wind.insert(0,driver.find_element_by_xpath("//div[@class='right__block']").text) date_time.insert(0,driver.find_elements_by_xpath("//div[@class='date']")[-1].text) return high_low, weather_desc, humidity_barometer, wind, date_time
def graph_pred_vs_actual(actual, pred, data_type): plt.scatter(actual, pred, alpha=0.3) plt.plot(np.linspace(int(min(pred)), int(max(pred)), int(max(pred))), np.linspace(int(min(pred)), int(max(pred)), int(max(pred)))) plt.title('Actual vs Pred ({} Data)'.format(data_type)) plt.xlabel('Actual') plt.ylabel('Pred') plt.show() def graph_residual(actual, residual, data_type): plt.scatter(actual, residual, alpha=0.3) plt.plot(np.linspace(int(min(actual)), int(max(actual)), int(max(actual))), np.linspace(0, 0, int(max(actual)))) plt.title('Actual vs Residual ({} Data)'.format(data_type)) plt.xlabel('Actual') plt.ylabel('Residual') plt.show() def scrape_weather_url(url): (high_low, weather_desc, humidity_barometer, wind, date_time) = ([], [], [], [], []) driver.get(url) soup = beautiful_soup(driver.page_source, 'lxml') days_chain = [x.find_all('a') for x in soup.find_all(class_='weatherLinks')] time.sleep(5) driver.execute_script('window.scrollTo(0, document.body.scrollHeight/3.5);') counter = 0 for (ix, link) in enumerate(days_chain[0]): '\n Bottom section tries to solve loading issue by implementing wait feature\n Refer : https://selenium-python.readthedocs.io/waits.html\n ' wait = web_driver_wait(driver, 10) if counter != 0: delay = 3 try: my_elem = wait.until(EC.presence_of_element_located((By.CLASS_NAME, 'weatherLinks'))) except TimeoutException: print('Loading took too much time!') day_link = driver.find_element_by_xpath("//div[@class='weatherLinks']/a[{}]".format(ix + 1)) wait.until(EC.element_to_be_clickable((By.XPATH, "//div[@class='weatherLinks']/a[{}]".format(ix + 1)))) day_link.click() else: delay = 5 try: my_elem = web_driver_wait(driver, delay).until(EC.presence_of_element_located((By.CLASS_NAME, 'weatherLinks'))) except TimeoutException: print('Loading took too much time!') day_link = driver.find_element_by_xpath("//div[@class='weatherLinks']/a[{}]".format(ix + 1)) wait.until(EC.element_to_be_clickable((By.XPATH, "//div[@class='weatherLinks']/a[{}]".format(ix + 1)))) time.sleep(4) day_link.click() time.sleep(3) counter += 1 time.sleep(2.5) high_low.insert(0, driver.find_elements_by_xpath("//div[@class='temp']")[-1].text) weather_desc.insert(0, driver.find_element_by_xpath("//div[@class='wdesc']").text) humidity_barometer.insert(0, driver.find_element_by_xpath("//div[@class='mid__block']").text) wind.insert(0, driver.find_element_by_xpath("//div[@class='right__block']").text) date_time.insert(0, driver.find_elements_by_xpath("//div[@class='date']")[-1].text) return (high_low, weather_desc, humidity_barometer, wind, date_time)
# # PySNMP MIB module DC-OPT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DC-OPT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:21:45 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") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Counter64, Counter32, ObjectIdentity, IpAddress, MibIdentifier, enterprises, Integer32, TimeTicks, NotificationType, ModuleIdentity, Gauge32, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Counter64", "Counter32", "ObjectIdentity", "IpAddress", "MibIdentifier", "enterprises", "Integer32", "TimeTicks", "NotificationType", "ModuleIdentity", "Gauge32", "iso") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") codex = MibIdentifier((1, 3, 6, 1, 4, 1, 449)) cdxProductSpecific = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2)) cdx6500 = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1)) cdx6500Statistics = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3)) cdx6500StatOtherStatsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2)) cdx6500Controls = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4)) class DisplayString(OctetString): pass cdx6500DCStatTable = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10)) cdx6500DCGenStatTable = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1)) cdx6500DCGenStatTableEntry = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1)) cdx6500DCGenStatDSPStatus = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("down", 1), ("up", 2), ("missing", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatDSPStatus.setStatus('mandatory') cdx6500DCGenStatHndlrSWRev = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatHndlrSWRev.setStatus('mandatory') cdx6500DCGenStatFnctnSWRev = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatFnctnSWRev.setStatus('mandatory') cdx6500DCGenStatMaxChannels = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatMaxChannels.setStatus('mandatory') cdx6500DCGenStatChanInUse = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatChanInUse.setStatus('mandatory') cdx6500DCGenStatMaxSmltChanUse = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatMaxSmltChanUse.setStatus('mandatory') cdx6500DCGenStatRejectConn = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatRejectConn.setStatus('mandatory') cdx6500DCGenStatAggCRatio = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatAggCRatio.setStatus('mandatory') cdx6500DCGenStatCurrEncQDepth = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatCurrEncQDepth.setStatus('mandatory') cdx6500DCGenStatMaxEncQDepth = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatMaxEncQDepth.setStatus('mandatory') cdx6500DCGenStatTmOfMaxEncQDepth = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatTmOfMaxEncQDepth.setStatus('mandatory') cdx6500DCGenStatCurrDecQDepth = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatCurrDecQDepth.setStatus('mandatory') cdx6500DCGenStatMaxDecQDepth = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatMaxDecQDepth.setStatus('mandatory') cdx6500DCGenStatTmOfMaxDecQDepth = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 14), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCGenStatTmOfMaxDecQDepth.setStatus('mandatory') cdx6500DCChanStatTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2), ) if mibBuilder.loadTexts: cdx6500DCChanStatTable.setStatus('mandatory') cdx6500DCChanStatTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1), ).setIndexNames((0, "DC-OPT-MIB", "cdx6500DCChanStatChanNum")) if mibBuilder.loadTexts: cdx6500DCChanStatTableEntry.setStatus('mandatory') cdx6500DCChanStatChanNum = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatChanNum.setStatus('mandatory') cdx6500DCChanStatTmOfLastStatRst = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatTmOfLastStatRst.setStatus('mandatory') cdx6500DCChanStatChanState = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("dspDown", 1), ("idle", 2), ("negotiating", 3), ("dataPassing", 4), ("flushingData", 5), ("flushingDCRing", 6), ("apClearing", 7), ("npClearing", 8), ("clearingCall", 9), ("flushingOnClr", 10), ("clearing", 11)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatChanState.setStatus('mandatory') cdx6500DCChanStatSourceChan = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatSourceChan.setStatus('mandatory') cdx6500DCChanStatDestChan = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatDestChan.setStatus('mandatory') cdx6500DCChanStatXmitCRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatXmitCRatio.setStatus('mandatory') cdx6500DCChanStatNumOfEncFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatNumOfEncFrames.setStatus('mandatory') cdx6500DCChanStatNumOfCharInToEnc = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatNumOfCharInToEnc.setStatus('mandatory') cdx6500DCChanStatNumOfCharOutOfEnc = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatNumOfCharOutOfEnc.setStatus('mandatory') cdx6500DCChanStatNumOfDecFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatNumOfDecFrames.setStatus('mandatory') cdx6500DCChanStatNumOfCharInToDec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatNumOfCharInToDec.setStatus('mandatory') cdx6500DCChanStatNumOfCharOutOfDec = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatNumOfCharOutOfDec.setStatus('mandatory') cdx6500DCChanStatEncAETrnstnCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatEncAETrnstnCnt.setStatus('mandatory') cdx6500DCChanStatEncAEFrameCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatEncAEFrameCnt.setStatus('mandatory') cdx6500DCChanStatEncAEModeStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatEncAEModeStatus.setStatus('mandatory') cdx6500DCChanStatDecAETrnstnCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatDecAETrnstnCnt.setStatus('mandatory') cdx6500DCChanStatDecAEFrameCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatDecAEFrameCnt.setStatus('mandatory') cdx6500DCChanStatDecAEModeStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatDecAEModeStatus.setStatus('mandatory') cdx6500DCChanStatDSWithBadFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatDSWithBadFrames.setStatus('mandatory') cdx6500DCChanStatDSWithBadHeaders = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatDSWithBadHeaders.setStatus('mandatory') cdx6500DCChanStatDSDueToRstOrCng = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500DCChanStatDSDueToRstOrCng.setStatus('mandatory') cdx6500ContDC = MibIdentifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9)) cdx6500ContResetAllDCStats = MibScalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("reset", 1), ("noreset", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: cdx6500ContResetAllDCStats.setStatus('mandatory') cdx6500ContDCTable = MibTable((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2), ) if mibBuilder.loadTexts: cdx6500ContDCTable.setStatus('mandatory') cdx6500ContDCTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2, 1), ).setIndexNames((0, "DC-OPT-MIB", "cdx6500ContDCChanNum")) if mibBuilder.loadTexts: cdx6500ContDCTableEntry.setStatus('mandatory') cdx6500ContDCChanNum = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cdx6500ContDCChanNum.setStatus('mandatory') cdx6500ContResetDCChanStats = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("reset", 1), ("noreset", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: cdx6500ContResetDCChanStats.setStatus('mandatory') cdx6500ContResetDCChanVocab = MibTableColumn((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("reset", 1), ("noreset", 2)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: cdx6500ContResetDCChanVocab.setStatus('mandatory') mibBuilder.exportSymbols("DC-OPT-MIB", cdx6500DCGenStatCurrDecQDepth=cdx6500DCGenStatCurrDecQDepth, cdx6500DCChanStatDecAEFrameCnt=cdx6500DCChanStatDecAEFrameCnt, cdx6500DCGenStatMaxEncQDepth=cdx6500DCGenStatMaxEncQDepth, cdx6500DCGenStatMaxDecQDepth=cdx6500DCGenStatMaxDecQDepth, cdx6500DCChanStatNumOfCharOutOfEnc=cdx6500DCChanStatNumOfCharOutOfEnc, cdx6500DCChanStatTmOfLastStatRst=cdx6500DCChanStatTmOfLastStatRst, cdx6500DCGenStatDSPStatus=cdx6500DCGenStatDSPStatus, cdx6500DCGenStatFnctnSWRev=cdx6500DCGenStatFnctnSWRev, cdx6500DCGenStatTmOfMaxDecQDepth=cdx6500DCGenStatTmOfMaxDecQDepth, cdx6500DCChanStatDSWithBadHeaders=cdx6500DCChanStatDSWithBadHeaders, cdx6500ContResetDCChanStats=cdx6500ContResetDCChanStats, cdx6500DCGenStatTable=cdx6500DCGenStatTable, cdx6500DCChanStatEncAEModeStatus=cdx6500DCChanStatEncAEModeStatus, cdx6500DCGenStatMaxSmltChanUse=cdx6500DCGenStatMaxSmltChanUse, cdx6500DCChanStatNumOfCharOutOfDec=cdx6500DCChanStatNumOfCharOutOfDec, cdx6500DCChanStatNumOfCharInToEnc=cdx6500DCChanStatNumOfCharInToEnc, cdx6500DCGenStatHndlrSWRev=cdx6500DCGenStatHndlrSWRev, codex=codex, cdx6500DCStatTable=cdx6500DCStatTable, cdx6500DCChanStatNumOfDecFrames=cdx6500DCChanStatNumOfDecFrames, cdx6500ContDCTableEntry=cdx6500ContDCTableEntry, cdx6500DCChanStatDSDueToRstOrCng=cdx6500DCChanStatDSDueToRstOrCng, cdx6500DCGenStatTmOfMaxEncQDepth=cdx6500DCGenStatTmOfMaxEncQDepth, cdx6500DCChanStatDecAETrnstnCnt=cdx6500DCChanStatDecAETrnstnCnt, cdx6500DCChanStatNumOfCharInToDec=cdx6500DCChanStatNumOfCharInToDec, cdx6500DCChanStatXmitCRatio=cdx6500DCChanStatXmitCRatio, cdx6500DCChanStatDestChan=cdx6500DCChanStatDestChan, cdx6500DCChanStatDSWithBadFrames=cdx6500DCChanStatDSWithBadFrames, cdx6500DCChanStatChanState=cdx6500DCChanStatChanState, cdx6500DCGenStatTableEntry=cdx6500DCGenStatTableEntry, cdx6500DCGenStatAggCRatio=cdx6500DCGenStatAggCRatio, DisplayString=DisplayString, cdxProductSpecific=cdxProductSpecific, cdx6500DCGenStatCurrEncQDepth=cdx6500DCGenStatCurrEncQDepth, cdx6500DCChanStatNumOfEncFrames=cdx6500DCChanStatNumOfEncFrames, cdx6500DCChanStatEncAEFrameCnt=cdx6500DCChanStatEncAEFrameCnt, cdx6500DCGenStatRejectConn=cdx6500DCGenStatRejectConn, cdx6500Statistics=cdx6500Statistics, cdx6500DCGenStatMaxChannels=cdx6500DCGenStatMaxChannels, cdx6500DCChanStatDecAEModeStatus=cdx6500DCChanStatDecAEModeStatus, cdx6500Controls=cdx6500Controls, cdx6500ContDCTable=cdx6500ContDCTable, cdx6500=cdx6500, cdx6500DCChanStatChanNum=cdx6500DCChanStatChanNum, cdx6500DCChanStatEncAETrnstnCnt=cdx6500DCChanStatEncAETrnstnCnt, cdx6500ContDC=cdx6500ContDC, cdx6500DCChanStatTableEntry=cdx6500DCChanStatTableEntry, cdx6500DCGenStatChanInUse=cdx6500DCGenStatChanInUse, cdx6500ContResetAllDCStats=cdx6500ContResetAllDCStats, cdx6500ContDCChanNum=cdx6500ContDCChanNum, cdx6500ContResetDCChanVocab=cdx6500ContResetDCChanVocab, cdx6500DCChanStatSourceChan=cdx6500DCChanStatSourceChan, cdx6500DCChanStatTable=cdx6500DCChanStatTable, cdx6500StatOtherStatsGroup=cdx6500StatOtherStatsGroup)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, counter64, counter32, object_identity, ip_address, mib_identifier, enterprises, integer32, time_ticks, notification_type, module_identity, gauge32, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Counter64', 'Counter32', 'ObjectIdentity', 'IpAddress', 'MibIdentifier', 'enterprises', 'Integer32', 'TimeTicks', 'NotificationType', 'ModuleIdentity', 'Gauge32', 'iso') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') codex = mib_identifier((1, 3, 6, 1, 4, 1, 449)) cdx_product_specific = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2)) cdx6500 = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1)) cdx6500_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3)) cdx6500_stat_other_stats_group = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2)) cdx6500_controls = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4)) class Displaystring(OctetString): pass cdx6500_dc_stat_table = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10)) cdx6500_dc_gen_stat_table = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1)) cdx6500_dc_gen_stat_table_entry = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1)) cdx6500_dc_gen_stat_dsp_status = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('down', 1), ('up', 2), ('missing', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatDSPStatus.setStatus('mandatory') cdx6500_dc_gen_stat_hndlr_sw_rev = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatHndlrSWRev.setStatus('mandatory') cdx6500_dc_gen_stat_fnctn_sw_rev = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatFnctnSWRev.setStatus('mandatory') cdx6500_dc_gen_stat_max_channels = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatMaxChannels.setStatus('mandatory') cdx6500_dc_gen_stat_chan_in_use = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatChanInUse.setStatus('mandatory') cdx6500_dc_gen_stat_max_smlt_chan_use = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatMaxSmltChanUse.setStatus('mandatory') cdx6500_dc_gen_stat_reject_conn = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatRejectConn.setStatus('mandatory') cdx6500_dc_gen_stat_agg_c_ratio = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatAggCRatio.setStatus('mandatory') cdx6500_dc_gen_stat_curr_enc_q_depth = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatCurrEncQDepth.setStatus('mandatory') cdx6500_dc_gen_stat_max_enc_q_depth = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatMaxEncQDepth.setStatus('mandatory') cdx6500_dc_gen_stat_tm_of_max_enc_q_depth = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 11), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatTmOfMaxEncQDepth.setStatus('mandatory') cdx6500_dc_gen_stat_curr_dec_q_depth = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatCurrDecQDepth.setStatus('mandatory') cdx6500_dc_gen_stat_max_dec_q_depth = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatMaxDecQDepth.setStatus('mandatory') cdx6500_dc_gen_stat_tm_of_max_dec_q_depth = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 1, 1, 14), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCGenStatTmOfMaxDecQDepth.setStatus('mandatory') cdx6500_dc_chan_stat_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2)) if mibBuilder.loadTexts: cdx6500DCChanStatTable.setStatus('mandatory') cdx6500_dc_chan_stat_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1)).setIndexNames((0, 'DC-OPT-MIB', 'cdx6500DCChanStatChanNum')) if mibBuilder.loadTexts: cdx6500DCChanStatTableEntry.setStatus('mandatory') cdx6500_dc_chan_stat_chan_num = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatChanNum.setStatus('mandatory') cdx6500_dc_chan_stat_tm_of_last_stat_rst = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatTmOfLastStatRst.setStatus('mandatory') cdx6500_dc_chan_stat_chan_state = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('dspDown', 1), ('idle', 2), ('negotiating', 3), ('dataPassing', 4), ('flushingData', 5), ('flushingDCRing', 6), ('apClearing', 7), ('npClearing', 8), ('clearingCall', 9), ('flushingOnClr', 10), ('clearing', 11)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatChanState.setStatus('mandatory') cdx6500_dc_chan_stat_source_chan = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatSourceChan.setStatus('mandatory') cdx6500_dc_chan_stat_dest_chan = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatDestChan.setStatus('mandatory') cdx6500_dc_chan_stat_xmit_c_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatXmitCRatio.setStatus('mandatory') cdx6500_dc_chan_stat_num_of_enc_frames = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatNumOfEncFrames.setStatus('mandatory') cdx6500_dc_chan_stat_num_of_char_in_to_enc = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatNumOfCharInToEnc.setStatus('mandatory') cdx6500_dc_chan_stat_num_of_char_out_of_enc = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatNumOfCharOutOfEnc.setStatus('mandatory') cdx6500_dc_chan_stat_num_of_dec_frames = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatNumOfDecFrames.setStatus('mandatory') cdx6500_dc_chan_stat_num_of_char_in_to_dec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatNumOfCharInToDec.setStatus('mandatory') cdx6500_dc_chan_stat_num_of_char_out_of_dec = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatNumOfCharOutOfDec.setStatus('mandatory') cdx6500_dc_chan_stat_enc_ae_trnstn_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatEncAETrnstnCnt.setStatus('mandatory') cdx6500_dc_chan_stat_enc_ae_frame_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatEncAEFrameCnt.setStatus('mandatory') cdx6500_dc_chan_stat_enc_ae_mode_status = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatEncAEModeStatus.setStatus('mandatory') cdx6500_dc_chan_stat_dec_ae_trnstn_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatDecAETrnstnCnt.setStatus('mandatory') cdx6500_dc_chan_stat_dec_ae_frame_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatDecAEFrameCnt.setStatus('mandatory') cdx6500_dc_chan_stat_dec_ae_mode_status = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatDecAEModeStatus.setStatus('mandatory') cdx6500_dc_chan_stat_ds_with_bad_frames = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatDSWithBadFrames.setStatus('mandatory') cdx6500_dc_chan_stat_ds_with_bad_headers = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatDSWithBadHeaders.setStatus('mandatory') cdx6500_dc_chan_stat_ds_due_to_rst_or_cng = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 3, 2, 10, 2, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500DCChanStatDSDueToRstOrCng.setStatus('mandatory') cdx6500_cont_dc = mib_identifier((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9)) cdx6500_cont_reset_all_dc_stats = mib_scalar((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('reset', 1), ('noreset', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: cdx6500ContResetAllDCStats.setStatus('mandatory') cdx6500_cont_dc_table = mib_table((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2)) if mibBuilder.loadTexts: cdx6500ContDCTable.setStatus('mandatory') cdx6500_cont_dc_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2, 1)).setIndexNames((0, 'DC-OPT-MIB', 'cdx6500ContDCChanNum')) if mibBuilder.loadTexts: cdx6500ContDCTableEntry.setStatus('mandatory') cdx6500_cont_dc_chan_num = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: cdx6500ContDCChanNum.setStatus('mandatory') cdx6500_cont_reset_dc_chan_stats = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('reset', 1), ('noreset', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: cdx6500ContResetDCChanStats.setStatus('mandatory') cdx6500_cont_reset_dc_chan_vocab = mib_table_column((1, 3, 6, 1, 4, 1, 449, 2, 1, 4, 9, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('reset', 1), ('noreset', 2)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: cdx6500ContResetDCChanVocab.setStatus('mandatory') mibBuilder.exportSymbols('DC-OPT-MIB', cdx6500DCGenStatCurrDecQDepth=cdx6500DCGenStatCurrDecQDepth, cdx6500DCChanStatDecAEFrameCnt=cdx6500DCChanStatDecAEFrameCnt, cdx6500DCGenStatMaxEncQDepth=cdx6500DCGenStatMaxEncQDepth, cdx6500DCGenStatMaxDecQDepth=cdx6500DCGenStatMaxDecQDepth, cdx6500DCChanStatNumOfCharOutOfEnc=cdx6500DCChanStatNumOfCharOutOfEnc, cdx6500DCChanStatTmOfLastStatRst=cdx6500DCChanStatTmOfLastStatRst, cdx6500DCGenStatDSPStatus=cdx6500DCGenStatDSPStatus, cdx6500DCGenStatFnctnSWRev=cdx6500DCGenStatFnctnSWRev, cdx6500DCGenStatTmOfMaxDecQDepth=cdx6500DCGenStatTmOfMaxDecQDepth, cdx6500DCChanStatDSWithBadHeaders=cdx6500DCChanStatDSWithBadHeaders, cdx6500ContResetDCChanStats=cdx6500ContResetDCChanStats, cdx6500DCGenStatTable=cdx6500DCGenStatTable, cdx6500DCChanStatEncAEModeStatus=cdx6500DCChanStatEncAEModeStatus, cdx6500DCGenStatMaxSmltChanUse=cdx6500DCGenStatMaxSmltChanUse, cdx6500DCChanStatNumOfCharOutOfDec=cdx6500DCChanStatNumOfCharOutOfDec, cdx6500DCChanStatNumOfCharInToEnc=cdx6500DCChanStatNumOfCharInToEnc, cdx6500DCGenStatHndlrSWRev=cdx6500DCGenStatHndlrSWRev, codex=codex, cdx6500DCStatTable=cdx6500DCStatTable, cdx6500DCChanStatNumOfDecFrames=cdx6500DCChanStatNumOfDecFrames, cdx6500ContDCTableEntry=cdx6500ContDCTableEntry, cdx6500DCChanStatDSDueToRstOrCng=cdx6500DCChanStatDSDueToRstOrCng, cdx6500DCGenStatTmOfMaxEncQDepth=cdx6500DCGenStatTmOfMaxEncQDepth, cdx6500DCChanStatDecAETrnstnCnt=cdx6500DCChanStatDecAETrnstnCnt, cdx6500DCChanStatNumOfCharInToDec=cdx6500DCChanStatNumOfCharInToDec, cdx6500DCChanStatXmitCRatio=cdx6500DCChanStatXmitCRatio, cdx6500DCChanStatDestChan=cdx6500DCChanStatDestChan, cdx6500DCChanStatDSWithBadFrames=cdx6500DCChanStatDSWithBadFrames, cdx6500DCChanStatChanState=cdx6500DCChanStatChanState, cdx6500DCGenStatTableEntry=cdx6500DCGenStatTableEntry, cdx6500DCGenStatAggCRatio=cdx6500DCGenStatAggCRatio, DisplayString=DisplayString, cdxProductSpecific=cdxProductSpecific, cdx6500DCGenStatCurrEncQDepth=cdx6500DCGenStatCurrEncQDepth, cdx6500DCChanStatNumOfEncFrames=cdx6500DCChanStatNumOfEncFrames, cdx6500DCChanStatEncAEFrameCnt=cdx6500DCChanStatEncAEFrameCnt, cdx6500DCGenStatRejectConn=cdx6500DCGenStatRejectConn, cdx6500Statistics=cdx6500Statistics, cdx6500DCGenStatMaxChannels=cdx6500DCGenStatMaxChannels, cdx6500DCChanStatDecAEModeStatus=cdx6500DCChanStatDecAEModeStatus, cdx6500Controls=cdx6500Controls, cdx6500ContDCTable=cdx6500ContDCTable, cdx6500=cdx6500, cdx6500DCChanStatChanNum=cdx6500DCChanStatChanNum, cdx6500DCChanStatEncAETrnstnCnt=cdx6500DCChanStatEncAETrnstnCnt, cdx6500ContDC=cdx6500ContDC, cdx6500DCChanStatTableEntry=cdx6500DCChanStatTableEntry, cdx6500DCGenStatChanInUse=cdx6500DCGenStatChanInUse, cdx6500ContResetAllDCStats=cdx6500ContResetAllDCStats, cdx6500ContDCChanNum=cdx6500ContDCChanNum, cdx6500ContResetDCChanVocab=cdx6500ContResetDCChanVocab, cdx6500DCChanStatSourceChan=cdx6500DCChanStatSourceChan, cdx6500DCChanStatTable=cdx6500DCChanStatTable, cdx6500StatOtherStatsGroup=cdx6500StatOtherStatsGroup)
# # PySNMP MIB module DGS-6600-STP-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DGS-6600-STP-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:45:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion") dgs6600_l2, = mibBuilder.importSymbols("DGS-6600-ID-MIB", "dgs6600-l2") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") Gauge32, TimeTicks, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, iso, Counter64, NotificationType, MibIdentifier, Integer32, Unsigned32, IpAddress, ObjectIdentity, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "TimeTicks", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "iso", "Counter64", "NotificationType", "MibIdentifier", "Integer32", "Unsigned32", "IpAddress", "ObjectIdentity", "Bits") TextualConvention, TruthValue, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "RowStatus", "DisplayString") dgs6600StpExtMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2)) if mibBuilder.loadTexts: dgs6600StpExtMIB.setLastUpdated('0812190000Z') if mibBuilder.loadTexts: dgs6600StpExtMIB.setOrganization('D-Link Corp.') if mibBuilder.loadTexts: dgs6600StpExtMIB.setContactInfo('http://support.dlink.com') if mibBuilder.loadTexts: dgs6600StpExtMIB.setDescription('The MIB module for managing MSTP.') class BridgeId(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 swMSTPGblMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1)) swMSTPCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2)) swMSTPStpAdminState = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpAdminState.setStatus('current') if mibBuilder.loadTexts: swMSTPStpAdminState.setDescription('This object indicates the spanning tree state of the bridge.') swMSTPStpVersion = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("stp", 0), ("rstp", 1), ("mstp", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpVersion.setStatus('current') if mibBuilder.loadTexts: swMSTPStpVersion.setDescription('The version of Spanning Tree Protocol the bridge is currently running.') swMSTPStpMaxAge = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(600, 4000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpMaxAge.setStatus('current') if mibBuilder.loadTexts: swMSTPStpMaxAge.setDescription('The value that all bridges use for MaxAge when this bridge is acting as the root. Note that the range for this parameter is related to the value of StpForwardDelay and PortAdminHelloTime. MaxAge <= 2(ForwardDelay - 1);MaxAge >= 2(HelloTime + 1) The granularity of this timer is specified by 802.1D-1990 to be 1 second. An agent may return a badValue error if a set is attempted to a value that is not a whole number of seconds.') swMSTPStpHelloTime = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 1000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpHelloTime.setStatus('current') if mibBuilder.loadTexts: swMSTPStpHelloTime.setDescription('The value is used for HelloTime when this bridge is acting in RSTP or STP mode, in units of hundredths of a second. You can only read/write this value in RSTP or STP mode.') swMSTPStpForwardDelay = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(400, 3000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpForwardDelay.setStatus('current') if mibBuilder.loadTexts: swMSTPStpForwardDelay.setDescription('This value controls how long a port changes its spanning state from blocking to learning state and from learning to forwarding state. Note that the range for this parameter is related to MaxAge') swMSTPStpMaxHops = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 40))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpMaxHops.setStatus('current') if mibBuilder.loadTexts: swMSTPStpMaxHops.setDescription('This value applies to all spanning trees within an MST Region for which the bridge is the Regional Root.') swMSTPStpTxHoldCount = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpTxHoldCount.setStatus('current') if mibBuilder.loadTexts: swMSTPStpTxHoldCount.setDescription('The value used by the Port Transmit state machine to limit the maximum transmission rate.') swMSTPStpForwardBPDU = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpForwardBPDU.setStatus('current') if mibBuilder.loadTexts: swMSTPStpForwardBPDU.setDescription('The enabled/disabled status is used to forward BPDU to a non STP port.') swMSTPStpLBD = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpLBD.setStatus('current') if mibBuilder.loadTexts: swMSTPStpLBD.setDescription('The enabled/disabled status is used in Loop-back prevention.') swMSTPStpLBDRecoverTime = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPStpLBDRecoverTime.setStatus('current') if mibBuilder.loadTexts: swMSTPStpLBDRecoverTime.setDescription("The period of time (in seconds) in which the STP module keeps checking the BPDU loop status. The valid range is 60 to 1000000. If this value is set from 1 to 59, you will get a 'bad value' return code. The value of zero is a special value that means to disable the auto-recovery mechanism for the LBD feature.") swMSTPNniBPDUAddress = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("dot1d", 1), ("dot1ad", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPNniBPDUAddress.setStatus('current') if mibBuilder.loadTexts: swMSTPNniBPDUAddress.setDescription('Specifies the BPDU MAC address of the NNI port in Q-in-Q status.') swMSTPName = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPName.setStatus('current') if mibBuilder.loadTexts: swMSTPName.setDescription('The object indicates the name of the MST Configuration Identification.') swMSTPRevisionLevel = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPRevisionLevel.setStatus('current') if mibBuilder.loadTexts: swMSTPRevisionLevel.setDescription('The object indicates the revision level of the MST Configuration Identification.') swMSTPInstanceCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3), ) if mibBuilder.loadTexts: swMSTPInstanceCtrlTable.setStatus('current') if mibBuilder.loadTexts: swMSTPInstanceCtrlTable.setDescription('A table that contains MSTP instance information.') swMSTPInstanceCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1), ).setIndexNames((0, "DGS-6600-STP-EXT-MIB", "swMSTPInstId")) if mibBuilder.loadTexts: swMSTPInstanceCtrlEntry.setStatus('current') if mibBuilder.loadTexts: swMSTPInstanceCtrlEntry.setDescription('A list of MSTP instance information.') swMSTPInstId = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstId.setStatus('current') if mibBuilder.loadTexts: swMSTPInstId.setDescription('This object indicates the specific instance. An MSTP Instance ID (MSTID) of zero is used to identify the CIST.') swMSTPInstVlanRangeList1to64 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstVlanRangeList1to64.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList1to64.setDescription('This object indicates the VLAN range (1-512) that belongs to the instance.') swMSTPInstVlanRangeList65to128 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstVlanRangeList65to128.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList65to128.setDescription('This object indicates the VLAN range (513-1024) that belongs to the instance.') swMSTPInstVlanRangeList129to192 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstVlanRangeList129to192.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList129to192.setDescription('This object indicates the VLAN range (1025-1536) that belongs to the instance.') swMSTPInstVlanRangeList193to256 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstVlanRangeList193to256.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList193to256.setDescription('This object indicates the VLAN range(1537-2048) that belongs to the instance.') swMSTPInstVlanRangeList257to320 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstVlanRangeList257to320.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList257to320.setDescription('This object indicates the VLAN range (2049-2560) that belongs to the instance.') swMSTPInstVlanRangeList321to384 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstVlanRangeList321to384.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList321to384.setDescription('This object indicates the VLAN range (2561-3072) that belongs to the instance.') swMSTPInstVlanRangeList385to448 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstVlanRangeList385to448.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList385to448.setDescription('This object indicates the VLAN range (3073-3584) that belongs to the instance.') swMSTPInstVlanRangeList449to512 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstVlanRangeList449to512.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList449to512.setDescription('This object indicates the VLAN range (3585-4096) that belongs to the instance.') swMSTPInstType = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cist", 0), ("msti", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstType.setStatus('current') if mibBuilder.loadTexts: swMSTPInstType.setDescription('This object indicates the type of instance.') swMSTPInstStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstStatus.setStatus('current') if mibBuilder.loadTexts: swMSTPInstStatus.setDescription('The instance state that could be enabled/disabled.') swMSTPInstPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 61440))).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstPriority.setStatus('current') if mibBuilder.loadTexts: swMSTPInstPriority.setDescription('The priority of the instance. The priority must be divisible by 4096 ') swMSTPInstDesignatedRootBridge = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 13), BridgeId()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstDesignatedRootBridge.setStatus('current') if mibBuilder.loadTexts: swMSTPInstDesignatedRootBridge.setDescription('The bridge identifier of the CIST. For MST instance, this object is unused.') swMSTPInstExternalRootCost = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstExternalRootCost.setStatus('current') if mibBuilder.loadTexts: swMSTPInstExternalRootCost.setDescription('The path cost between MST Regions from the transmitting bridge to the CIST Root. For MST instance this object is unused.') swMSTPInstRegionalRootBridge = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 15), BridgeId()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstRegionalRootBridge.setStatus('current') if mibBuilder.loadTexts: swMSTPInstRegionalRootBridge.setDescription('For CIST, Regional Root Identifier is the Bridge Identifier of the single bridge in a Region whose CIST Root Port is a Boundary Port, or the Bridge Identifier of the CIST Root if that is within the Region; For MSTI,MSTI Regional Root Identifier is the Bridge Identifier of the MSTI Regional Root for this particular MSTI in this MST Region; The Regional Root Bridge of this instance.') swMSTPInstInternalRootCost = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstInternalRootCost.setStatus('current') if mibBuilder.loadTexts: swMSTPInstInternalRootCost.setDescription('For CIST, the internal path cost is the path cost to the CIST Regional Root; For MSTI, the internal path cost is the path cost to the MSTI Regional Root for this particular MSTI in this MST Region') swMSTPInstDesignatedBridge = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 17), BridgeId()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstDesignatedBridge.setStatus('current') if mibBuilder.loadTexts: swMSTPInstDesignatedBridge.setDescription('The Bridge Identifier for the transmitting bridge for this CIST or MSTI') swMSTPInstRootPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstRootPort.setStatus('current') if mibBuilder.loadTexts: swMSTPInstRootPort.setDescription('The port number of the port which offers the lowest cost path from this bridge to the CIST or MSTI root bridge.') swMSTPInstMaxAge = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstMaxAge.setStatus('current') if mibBuilder.loadTexts: swMSTPInstMaxAge.setDescription('The maximum age of Spanning Tree Protocol information learned from the network on any port before it is discarded, in units of hundredths of a second. This is the actual value that this bridge is currently using.') swMSTPInstForwardDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstForwardDelay.setStatus('current') if mibBuilder.loadTexts: swMSTPInstForwardDelay.setDescription('This value, measured in units of hundredths of a second, controls how fast a port changes its spanning state when moving towards the forwarding state. The value determines how long the port stays in each of the listening and learning states, which precede the Forwarding state. This value is also used, when a topology change has been detected and is underway, to age all dynamic entries in the Forwarding Database.') swMSTPInstLastTopologyChange = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 21), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstLastTopologyChange.setStatus('current') if mibBuilder.loadTexts: swMSTPInstLastTopologyChange.setDescription('The time (in hundredths of a second) since the last time a topology change was detected by the bridge entity.') swMSTPInstTopChangesCount = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstTopChangesCount.setStatus('current') if mibBuilder.loadTexts: swMSTPInstTopChangesCount.setDescription('The total number of topology changes detected by this bridge since the management entity was last reset or initialized.') swMSTPInstRemainHops = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 23), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPInstRemainHops.setStatus('current') if mibBuilder.loadTexts: swMSTPInstRemainHops.setDescription('The root bridge in the instance for MSTI always sends a BPDU with a maximum hop count. When a switch receives this BPDU, it decrements the received maximum hop count by one and propagates this value as the remaining hop count in the BPDUs it generates.') swMSTPInstRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 24), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: swMSTPInstRowStatus.setStatus('current') if mibBuilder.loadTexts: swMSTPInstRowStatus.setDescription('This object indicates the RowStatus of this entry.') swMSTPPortTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4), ) if mibBuilder.loadTexts: swMSTPPortTable.setStatus('current') if mibBuilder.loadTexts: swMSTPPortTable.setDescription('A table that contains port-specific information for the Spanning Tree Protocol.') swMSTPPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1), ).setIndexNames((0, "DGS-6600-STP-EXT-MIB", "swMSTPPort")) if mibBuilder.loadTexts: swMSTPPortEntry.setStatus('current') if mibBuilder.loadTexts: swMSTPPortEntry.setDescription('A list of information maintained by every port about the Spanning Tree Protocol state for that port.') swMSTPPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPPort.setStatus('current') if mibBuilder.loadTexts: swMSTPPort.setDescription('The port number of the port for this entry.') swMSTPPortAdminHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 1000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortAdminHelloTime.setStatus('current') if mibBuilder.loadTexts: swMSTPPortAdminHelloTime.setDescription('The amount of time between the transmission of BPDU by this node on any port when it is the root of the spanning tree or trying to become so, in units of hundredths of a second.') swMSTPPortOperHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 1000))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPPortOperHelloTime.setStatus('current') if mibBuilder.loadTexts: swMSTPPortOperHelloTime.setDescription('The actual value of the hello time.') swMSTPSTPPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPSTPPortEnable.setStatus('current') if mibBuilder.loadTexts: swMSTPSTPPortEnable.setDescription('The enabled/disabled status of the port.') swMSTPPortExternalPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortExternalPathCost.setStatus('current') if mibBuilder.loadTexts: swMSTPPortExternalPathCost.setDescription('The contribution of this port to the path cost of paths towards the CIST root which include this port.') swMSTPPortMigration = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortMigration.setStatus('current') if mibBuilder.loadTexts: swMSTPPortMigration.setDescription('When operating in MSTP mode or RSTP mode, writing TRUE(1) to this object forces this port to transmit MST BPDUs. Any other operation on this object has no effect and it always returns FALSE(2) when read.') swMSTPPortAdminEdgePort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("auto", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortAdminEdgePort.setStatus('current') if mibBuilder.loadTexts: swMSTPPortAdminEdgePort.setDescription('The value of the Edge Port parameter. A value of TRUE indicates that this port should be assumed as an edge-port and a value of FALSE indicates that this port should be assumed as a non-edge-port') swMSTPPortOperEdgePort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("true", 1), ("false", 2), ("auto", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPPortOperEdgePort.setStatus('current') if mibBuilder.loadTexts: swMSTPPortOperEdgePort.setDescription('It is the acutual value of the edge port status.') swMSTPPortAdminP2P = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("true", 0), ("false", 1), ("auto", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortAdminP2P.setStatus('current') if mibBuilder.loadTexts: swMSTPPortAdminP2P.setDescription('The point-to-point status of the LAN segment attached to this port.') swMSTPPortOperP2P = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("true", 0), ("false", 1), ("auto", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPPortOperP2P.setStatus('current') if mibBuilder.loadTexts: swMSTPPortOperP2P.setDescription('It is the actual value of the P2P status.') swMSTPPortLBD = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortLBD.setStatus('current') if mibBuilder.loadTexts: swMSTPPortLBD.setDescription('The enabled/disabled status is used for Loop-back prevention attached to this port.') swMSTPPortBPDUFiltering = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortBPDUFiltering.setStatus('current') if mibBuilder.loadTexts: swMSTPPortBPDUFiltering.setDescription('The enabled/disabled status is used for BPDU Filtering attached to this port.BPDU filtering allows the administrator to prevent the system from sending or even receiving BPDUs on specified ports.') swMSTPPortRestrictedRole = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 13), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortRestrictedRole.setStatus('current') if mibBuilder.loadTexts: swMSTPPortRestrictedRole.setDescription('If TRUE, causes the port not to be selected as Root Port for the CIST or any MSTI, even it has the best spanning tree priority vector.') swMSTPPortRestrictedTCN = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 14), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortRestrictedTCN.setStatus('current') if mibBuilder.loadTexts: swMSTPPortRestrictedTCN.setDescription('If TRUE, causes the port not to propagate received topology change notifications and topology changes to other Ports.') swMSTPPortOperFilterBpdu = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("receiving", 1), ("filtering", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPPortOperFilterBpdu.setStatus('current') if mibBuilder.loadTexts: swMSTPPortOperFilterBpdu.setDescription('It is the actual value of the hardware filter BPDU status.') swMSTPPortRecoverFilterBpdu = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 16), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPPortRecoverFilterBpdu.setStatus('current') if mibBuilder.loadTexts: swMSTPPortRecoverFilterBpdu.setDescription('When operating in BPDU filtering mode, writing TRUE(1) to this object sets this port to receive BPDUs to the hardware. Any other operation on this object has no effect and it will always return FALSE(2) when read.') swMSTPMstPortTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5), ) if mibBuilder.loadTexts: swMSTPMstPortTable.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortTable.setDescription('A table that contains port-specific information for the MST Protocol.') swMSTPMstPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1), ).setIndexNames((0, "DGS-6600-STP-EXT-MIB", "swMSTPMstPort"), (0, "DGS-6600-STP-EXT-MIB", "swMSTPMstPortInsID")) if mibBuilder.loadTexts: swMSTPMstPortEntry.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortEntry.setDescription('A list of information maintained by every port about the MST state for that port.') swMSTPMstPort = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPMstPort.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPort.setDescription('The port number of the port for this entry.') swMSTPMstPortInsID = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPMstPortInsID.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortInsID.setDescription('This object indicates the MSTP Instance ID (MSTID).') swMSTPMstPortDesignatedBridge = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 3), BridgeId()).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPMstPortDesignatedBridge.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortDesignatedBridge.setDescription("The Bridge Identifier of the bridge which this port considers to be the Designated Bridge for this port's segment on the corresponding Spanning Tree instance.") swMSTPMstPortInternalPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPMstPortInternalPathCost.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortInternalPathCost.setDescription('This is the value of this port to the path cost of paths towards the MSTI root.') swMSTPMstPortPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 240))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swMSTPMstPortPriority.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortPriority.setDescription('The value of the priority field which is contained in the first (in network byte order) octet of the (2 octet long) Port ID.') swMSTPMstPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("discarding", 3), ("learning", 4), ("forwarding", 5), ("broken", 6), ("no-stp-enabled", 7), ("err-disabled", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPMstPortStatus.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortStatus.setDescription("When the port Enable state is enabled, the port's current state as defined by application of the Spanning Tree Protocol. If the PortEnable is disabled, the port status will be no-stp-enabled (7). If the port is in error disabled status, the port status will be err-disable(8)") swMSTPMstPortRole = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("disable", 0), ("alternate", 1), ("backup", 2), ("root", 3), ("designated", 4), ("master", 5), ("nonstp", 6), ("loopback", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swMSTPMstPortRole.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortRole.setDescription("When the port Enable state is enabled, the port's current port role as defined by application of the Spanning Tree Protocol. If the Port Enable state is disabled, the port role will be nonstp(5)") swMSTPTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11)) swMSTPNotify = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1)) swMSTPNotifyPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0)) swMSTPPortLBDTrap = NotificationType((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 1)).setObjects(("DGS-6600-STP-EXT-MIB", "swMSTPPort")) if mibBuilder.loadTexts: swMSTPPortLBDTrap.setStatus('current') if mibBuilder.loadTexts: swMSTPPortLBDTrap.setDescription('When STP port loopback detect is enabled, a trap will be generated.') swMSTPPortBackupTrap = NotificationType((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 2)).setObjects(("DGS-6600-STP-EXT-MIB", "swMSTPMstPort"), ("DGS-6600-STP-EXT-MIB", "swMSTPMstPortInsID")) if mibBuilder.loadTexts: swMSTPPortBackupTrap.setStatus('current') if mibBuilder.loadTexts: swMSTPPortBackupTrap.setDescription('When the STP port role goes to backup (defined in the STP standard), a trap will be generated.') swMSTPPortAlternateTrap = NotificationType((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 3)).setObjects(("DGS-6600-STP-EXT-MIB", "swMSTPMstPort"), ("DGS-6600-STP-EXT-MIB", "swMSTPMstPortInsID")) if mibBuilder.loadTexts: swMSTPPortAlternateTrap.setStatus('current') if mibBuilder.loadTexts: swMSTPPortAlternateTrap.setDescription('When the STP port role goes to alternate (defined in the STP standard), a trap will be generated.') swMSTPHwFilterStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 4)).setObjects(("DGS-6600-STP-EXT-MIB", "swMSTPPort"), ("DGS-6600-STP-EXT-MIB", "swMSTPPortOperFilterBpdu")) if mibBuilder.loadTexts: swMSTPHwFilterStatusChange.setStatus('current') if mibBuilder.loadTexts: swMSTPHwFilterStatusChange.setDescription('This trap is sent when a BPDU hardware filter status port changes.') swMSTPRootRestrictedChange = NotificationType((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 5)).setObjects(("DGS-6600-STP-EXT-MIB", "swMSTPPort"), ("DGS-6600-STP-EXT-MIB", "swMSTPPortRestrictedRole")) if mibBuilder.loadTexts: swMSTPRootRestrictedChange.setStatus('current') if mibBuilder.loadTexts: swMSTPRootRestrictedChange.setDescription('This trap is sent when a restricted role state port changes.') mibBuilder.exportSymbols("DGS-6600-STP-EXT-MIB", swMSTPPortBackupTrap=swMSTPPortBackupTrap, dgs6600StpExtMIB=dgs6600StpExtMIB, swMSTPMstPortEntry=swMSTPMstPortEntry, swMSTPInstVlanRangeList193to256=swMSTPInstVlanRangeList193to256, swMSTPStpMaxAge=swMSTPStpMaxAge, swMSTPInstDesignatedBridge=swMSTPInstDesignatedBridge, swMSTPPortAdminP2P=swMSTPPortAdminP2P, swMSTPPortOperP2P=swMSTPPortOperP2P, swMSTPGblMgmt=swMSTPGblMgmt, swMSTPPortLBDTrap=swMSTPPortLBDTrap, swMSTPPortOperEdgePort=swMSTPPortOperEdgePort, swMSTPRootRestrictedChange=swMSTPRootRestrictedChange, swMSTPStpLBDRecoverTime=swMSTPStpLBDRecoverTime, swMSTPInstVlanRangeList65to128=swMSTPInstVlanRangeList65to128, swMSTPInstTopChangesCount=swMSTPInstTopChangesCount, swMSTPInstVlanRangeList1to64=swMSTPInstVlanRangeList1to64, swMSTPPortEntry=swMSTPPortEntry, swMSTPPortRestrictedRole=swMSTPPortRestrictedRole, swMSTPInstExternalRootCost=swMSTPInstExternalRootCost, swMSTPStpAdminState=swMSTPStpAdminState, swMSTPPortBPDUFiltering=swMSTPPortBPDUFiltering, swMSTPInstVlanRangeList385to448=swMSTPInstVlanRangeList385to448, swMSTPInstRootPort=swMSTPInstRootPort, swMSTPPortAdminHelloTime=swMSTPPortAdminHelloTime, swMSTPNniBPDUAddress=swMSTPNniBPDUAddress, swMSTPMstPortDesignatedBridge=swMSTPMstPortDesignatedBridge, swMSTPInstanceCtrlTable=swMSTPInstanceCtrlTable, swMSTPInstStatus=swMSTPInstStatus, swMSTPInstanceCtrlEntry=swMSTPInstanceCtrlEntry, swMSTPMstPortStatus=swMSTPMstPortStatus, swMSTPInstRowStatus=swMSTPInstRowStatus, swMSTPStpForwardDelay=swMSTPStpForwardDelay, swMSTPInstType=swMSTPInstType, swMSTPSTPPortEnable=swMSTPSTPPortEnable, swMSTPRevisionLevel=swMSTPRevisionLevel, BridgeId=BridgeId, swMSTPStpLBD=swMSTPStpLBD, swMSTPInstForwardDelay=swMSTPInstForwardDelay, swMSTPMstPort=swMSTPMstPort, swMSTPPortRecoverFilterBpdu=swMSTPPortRecoverFilterBpdu, swMSTPStpMaxHops=swMSTPStpMaxHops, swMSTPPortRestrictedTCN=swMSTPPortRestrictedTCN, swMSTPPortOperHelloTime=swMSTPPortOperHelloTime, swMSTPInstMaxAge=swMSTPInstMaxAge, swMSTPTraps=swMSTPTraps, swMSTPInstRemainHops=swMSTPInstRemainHops, swMSTPMstPortRole=swMSTPMstPortRole, swMSTPInstPriority=swMSTPInstPriority, swMSTPStpForwardBPDU=swMSTPStpForwardBPDU, swMSTPInstDesignatedRootBridge=swMSTPInstDesignatedRootBridge, swMSTPInstRegionalRootBridge=swMSTPInstRegionalRootBridge, swMSTPInstInternalRootCost=swMSTPInstInternalRootCost, swMSTPNotify=swMSTPNotify, swMSTPStpVersion=swMSTPStpVersion, swMSTPInstVlanRangeList321to384=swMSTPInstVlanRangeList321to384, swMSTPStpHelloTime=swMSTPStpHelloTime, swMSTPPort=swMSTPPort, swMSTPMstPortTable=swMSTPMstPortTable, swMSTPNotifyPrefix=swMSTPNotifyPrefix, swMSTPPortOperFilterBpdu=swMSTPPortOperFilterBpdu, PYSNMP_MODULE_ID=dgs6600StpExtMIB, swMSTPInstVlanRangeList449to512=swMSTPInstVlanRangeList449to512, swMSTPInstVlanRangeList129to192=swMSTPInstVlanRangeList129to192, swMSTPPortExternalPathCost=swMSTPPortExternalPathCost, swMSTPHwFilterStatusChange=swMSTPHwFilterStatusChange, swMSTPName=swMSTPName, swMSTPInstLastTopologyChange=swMSTPInstLastTopologyChange, swMSTPCtrl=swMSTPCtrl, swMSTPInstId=swMSTPInstId, swMSTPPortAlternateTrap=swMSTPPortAlternateTrap, swMSTPStpTxHoldCount=swMSTPStpTxHoldCount, swMSTPMstPortPriority=swMSTPMstPortPriority, swMSTPInstVlanRangeList257to320=swMSTPInstVlanRangeList257to320, swMSTPMstPortInternalPathCost=swMSTPMstPortInternalPathCost, swMSTPPortMigration=swMSTPPortMigration, swMSTPPortTable=swMSTPPortTable, swMSTPPortAdminEdgePort=swMSTPPortAdminEdgePort, swMSTPPortLBD=swMSTPPortLBD, swMSTPMstPortInsID=swMSTPMstPortInsID)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, value_size_constraint, single_value_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (dgs6600_l2,) = mibBuilder.importSymbols('DGS-6600-ID-MIB', 'dgs6600-l2') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (gauge32, time_ticks, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, iso, counter64, notification_type, mib_identifier, integer32, unsigned32, ip_address, object_identity, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'TimeTicks', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'iso', 'Counter64', 'NotificationType', 'MibIdentifier', 'Integer32', 'Unsigned32', 'IpAddress', 'ObjectIdentity', 'Bits') (textual_convention, truth_value, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TruthValue', 'RowStatus', 'DisplayString') dgs6600_stp_ext_mib = module_identity((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2)) if mibBuilder.loadTexts: dgs6600StpExtMIB.setLastUpdated('0812190000Z') if mibBuilder.loadTexts: dgs6600StpExtMIB.setOrganization('D-Link Corp.') if mibBuilder.loadTexts: dgs6600StpExtMIB.setContactInfo('http://support.dlink.com') if mibBuilder.loadTexts: dgs6600StpExtMIB.setDescription('The MIB module for managing MSTP.') class Bridgeid(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 sw_mstp_gbl_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1)) sw_mstp_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2)) sw_mstp_stp_admin_state = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpAdminState.setStatus('current') if mibBuilder.loadTexts: swMSTPStpAdminState.setDescription('This object indicates the spanning tree state of the bridge.') sw_mstp_stp_version = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('stp', 0), ('rstp', 1), ('mstp', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpVersion.setStatus('current') if mibBuilder.loadTexts: swMSTPStpVersion.setDescription('The version of Spanning Tree Protocol the bridge is currently running.') sw_mstp_stp_max_age = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(600, 4000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpMaxAge.setStatus('current') if mibBuilder.loadTexts: swMSTPStpMaxAge.setDescription('The value that all bridges use for MaxAge when this bridge is acting as the root. Note that the range for this parameter is related to the value of StpForwardDelay and PortAdminHelloTime. MaxAge <= 2(ForwardDelay - 1);MaxAge >= 2(HelloTime + 1) The granularity of this timer is specified by 802.1D-1990 to be 1 second. An agent may return a badValue error if a set is attempted to a value that is not a whole number of seconds.') sw_mstp_stp_hello_time = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(100, 1000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpHelloTime.setStatus('current') if mibBuilder.loadTexts: swMSTPStpHelloTime.setDescription('The value is used for HelloTime when this bridge is acting in RSTP or STP mode, in units of hundredths of a second. You can only read/write this value in RSTP or STP mode.') sw_mstp_stp_forward_delay = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(400, 3000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpForwardDelay.setStatus('current') if mibBuilder.loadTexts: swMSTPStpForwardDelay.setDescription('This value controls how long a port changes its spanning state from blocking to learning state and from learning to forwarding state. Note that the range for this parameter is related to MaxAge') sw_mstp_stp_max_hops = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 40))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpMaxHops.setStatus('current') if mibBuilder.loadTexts: swMSTPStpMaxHops.setDescription('This value applies to all spanning trees within an MST Region for which the bridge is the Regional Root.') sw_mstp_stp_tx_hold_count = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpTxHoldCount.setStatus('current') if mibBuilder.loadTexts: swMSTPStpTxHoldCount.setDescription('The value used by the Port Transmit state machine to limit the maximum transmission rate.') sw_mstp_stp_forward_bpdu = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpForwardBPDU.setStatus('current') if mibBuilder.loadTexts: swMSTPStpForwardBPDU.setDescription('The enabled/disabled status is used to forward BPDU to a non STP port.') sw_mstp_stp_lbd = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpLBD.setStatus('current') if mibBuilder.loadTexts: swMSTPStpLBD.setDescription('The enabled/disabled status is used in Loop-back prevention.') sw_mstp_stp_lbd_recover_time = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPStpLBDRecoverTime.setStatus('current') if mibBuilder.loadTexts: swMSTPStpLBDRecoverTime.setDescription("The period of time (in seconds) in which the STP module keeps checking the BPDU loop status. The valid range is 60 to 1000000. If this value is set from 1 to 59, you will get a 'bad value' return code. The value of zero is a special value that means to disable the auto-recovery mechanism for the LBD feature.") sw_mstp_nni_bpdu_address = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('dot1d', 1), ('dot1ad', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPNniBPDUAddress.setStatus('current') if mibBuilder.loadTexts: swMSTPNniBPDUAddress.setDescription('Specifies the BPDU MAC address of the NNI port in Q-in-Q status.') sw_mstp_name = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPName.setStatus('current') if mibBuilder.loadTexts: swMSTPName.setDescription('The object indicates the name of the MST Configuration Identification.') sw_mstp_revision_level = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPRevisionLevel.setStatus('current') if mibBuilder.loadTexts: swMSTPRevisionLevel.setDescription('The object indicates the revision level of the MST Configuration Identification.') sw_mstp_instance_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3)) if mibBuilder.loadTexts: swMSTPInstanceCtrlTable.setStatus('current') if mibBuilder.loadTexts: swMSTPInstanceCtrlTable.setDescription('A table that contains MSTP instance information.') sw_mstp_instance_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1)).setIndexNames((0, 'DGS-6600-STP-EXT-MIB', 'swMSTPInstId')) if mibBuilder.loadTexts: swMSTPInstanceCtrlEntry.setStatus('current') if mibBuilder.loadTexts: swMSTPInstanceCtrlEntry.setDescription('A list of MSTP instance information.') sw_mstp_inst_id = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstId.setStatus('current') if mibBuilder.loadTexts: swMSTPInstId.setDescription('This object indicates the specific instance. An MSTP Instance ID (MSTID) of zero is used to identify the CIST.') sw_mstp_inst_vlan_range_list1to64 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstVlanRangeList1to64.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList1to64.setDescription('This object indicates the VLAN range (1-512) that belongs to the instance.') sw_mstp_inst_vlan_range_list65to128 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstVlanRangeList65to128.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList65to128.setDescription('This object indicates the VLAN range (513-1024) that belongs to the instance.') sw_mstp_inst_vlan_range_list129to192 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstVlanRangeList129to192.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList129to192.setDescription('This object indicates the VLAN range (1025-1536) that belongs to the instance.') sw_mstp_inst_vlan_range_list193to256 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstVlanRangeList193to256.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList193to256.setDescription('This object indicates the VLAN range(1537-2048) that belongs to the instance.') sw_mstp_inst_vlan_range_list257to320 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstVlanRangeList257to320.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList257to320.setDescription('This object indicates the VLAN range (2049-2560) that belongs to the instance.') sw_mstp_inst_vlan_range_list321to384 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstVlanRangeList321to384.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList321to384.setDescription('This object indicates the VLAN range (2561-3072) that belongs to the instance.') sw_mstp_inst_vlan_range_list385to448 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstVlanRangeList385to448.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList385to448.setDescription('This object indicates the VLAN range (3073-3584) that belongs to the instance.') sw_mstp_inst_vlan_range_list449to512 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstVlanRangeList449to512.setStatus('current') if mibBuilder.loadTexts: swMSTPInstVlanRangeList449to512.setDescription('This object indicates the VLAN range (3585-4096) that belongs to the instance.') sw_mstp_inst_type = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cist', 0), ('msti', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstType.setStatus('current') if mibBuilder.loadTexts: swMSTPInstType.setDescription('This object indicates the type of instance.') sw_mstp_inst_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstStatus.setStatus('current') if mibBuilder.loadTexts: swMSTPInstStatus.setDescription('The instance state that could be enabled/disabled.') sw_mstp_inst_priority = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 61440))).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstPriority.setStatus('current') if mibBuilder.loadTexts: swMSTPInstPriority.setDescription('The priority of the instance. The priority must be divisible by 4096 ') sw_mstp_inst_designated_root_bridge = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 13), bridge_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstDesignatedRootBridge.setStatus('current') if mibBuilder.loadTexts: swMSTPInstDesignatedRootBridge.setDescription('The bridge identifier of the CIST. For MST instance, this object is unused.') sw_mstp_inst_external_root_cost = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstExternalRootCost.setStatus('current') if mibBuilder.loadTexts: swMSTPInstExternalRootCost.setDescription('The path cost between MST Regions from the transmitting bridge to the CIST Root. For MST instance this object is unused.') sw_mstp_inst_regional_root_bridge = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 15), bridge_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstRegionalRootBridge.setStatus('current') if mibBuilder.loadTexts: swMSTPInstRegionalRootBridge.setDescription('For CIST, Regional Root Identifier is the Bridge Identifier of the single bridge in a Region whose CIST Root Port is a Boundary Port, or the Bridge Identifier of the CIST Root if that is within the Region; For MSTI,MSTI Regional Root Identifier is the Bridge Identifier of the MSTI Regional Root for this particular MSTI in this MST Region; The Regional Root Bridge of this instance.') sw_mstp_inst_internal_root_cost = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstInternalRootCost.setStatus('current') if mibBuilder.loadTexts: swMSTPInstInternalRootCost.setDescription('For CIST, the internal path cost is the path cost to the CIST Regional Root; For MSTI, the internal path cost is the path cost to the MSTI Regional Root for this particular MSTI in this MST Region') sw_mstp_inst_designated_bridge = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 17), bridge_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstDesignatedBridge.setStatus('current') if mibBuilder.loadTexts: swMSTPInstDesignatedBridge.setDescription('The Bridge Identifier for the transmitting bridge for this CIST or MSTI') sw_mstp_inst_root_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstRootPort.setStatus('current') if mibBuilder.loadTexts: swMSTPInstRootPort.setDescription('The port number of the port which offers the lowest cost path from this bridge to the CIST or MSTI root bridge.') sw_mstp_inst_max_age = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstMaxAge.setStatus('current') if mibBuilder.loadTexts: swMSTPInstMaxAge.setDescription('The maximum age of Spanning Tree Protocol information learned from the network on any port before it is discarded, in units of hundredths of a second. This is the actual value that this bridge is currently using.') sw_mstp_inst_forward_delay = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstForwardDelay.setStatus('current') if mibBuilder.loadTexts: swMSTPInstForwardDelay.setDescription('This value, measured in units of hundredths of a second, controls how fast a port changes its spanning state when moving towards the forwarding state. The value determines how long the port stays in each of the listening and learning states, which precede the Forwarding state. This value is also used, when a topology change has been detected and is underway, to age all dynamic entries in the Forwarding Database.') sw_mstp_inst_last_topology_change = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 21), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstLastTopologyChange.setStatus('current') if mibBuilder.loadTexts: swMSTPInstLastTopologyChange.setDescription('The time (in hundredths of a second) since the last time a topology change was detected by the bridge entity.') sw_mstp_inst_top_changes_count = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstTopChangesCount.setStatus('current') if mibBuilder.loadTexts: swMSTPInstTopChangesCount.setDescription('The total number of topology changes detected by this bridge since the management entity was last reset or initialized.') sw_mstp_inst_remain_hops = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 23), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPInstRemainHops.setStatus('current') if mibBuilder.loadTexts: swMSTPInstRemainHops.setDescription('The root bridge in the instance for MSTI always sends a BPDU with a maximum hop count. When a switch receives this BPDU, it decrements the received maximum hop count by one and propagates this value as the remaining hop count in the BPDUs it generates.') sw_mstp_inst_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 3, 1, 24), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: swMSTPInstRowStatus.setStatus('current') if mibBuilder.loadTexts: swMSTPInstRowStatus.setDescription('This object indicates the RowStatus of this entry.') sw_mstp_port_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4)) if mibBuilder.loadTexts: swMSTPPortTable.setStatus('current') if mibBuilder.loadTexts: swMSTPPortTable.setDescription('A table that contains port-specific information for the Spanning Tree Protocol.') sw_mstp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1)).setIndexNames((0, 'DGS-6600-STP-EXT-MIB', 'swMSTPPort')) if mibBuilder.loadTexts: swMSTPPortEntry.setStatus('current') if mibBuilder.loadTexts: swMSTPPortEntry.setDescription('A list of information maintained by every port about the Spanning Tree Protocol state for that port.') sw_mstp_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPPort.setStatus('current') if mibBuilder.loadTexts: swMSTPPort.setDescription('The port number of the port for this entry.') sw_mstp_port_admin_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(100, 1000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortAdminHelloTime.setStatus('current') if mibBuilder.loadTexts: swMSTPPortAdminHelloTime.setDescription('The amount of time between the transmission of BPDU by this node on any port when it is the root of the spanning tree or trying to become so, in units of hundredths of a second.') sw_mstp_port_oper_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(100, 1000))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPPortOperHelloTime.setStatus('current') if mibBuilder.loadTexts: swMSTPPortOperHelloTime.setDescription('The actual value of the hello time.') sw_mstpstp_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 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: swMSTPSTPPortEnable.setStatus('current') if mibBuilder.loadTexts: swMSTPSTPPortEnable.setDescription('The enabled/disabled status of the port.') sw_mstp_port_external_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 200000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortExternalPathCost.setStatus('current') if mibBuilder.loadTexts: swMSTPPortExternalPathCost.setDescription('The contribution of this port to the path cost of paths towards the CIST root which include this port.') sw_mstp_port_migration = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortMigration.setStatus('current') if mibBuilder.loadTexts: swMSTPPortMigration.setDescription('When operating in MSTP mode or RSTP mode, writing TRUE(1) to this object forces this port to transmit MST BPDUs. Any other operation on this object has no effect and it always returns FALSE(2) when read.') sw_mstp_port_admin_edge_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('auto', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortAdminEdgePort.setStatus('current') if mibBuilder.loadTexts: swMSTPPortAdminEdgePort.setDescription('The value of the Edge Port parameter. A value of TRUE indicates that this port should be assumed as an edge-port and a value of FALSE indicates that this port should be assumed as a non-edge-port') sw_mstp_port_oper_edge_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('true', 1), ('false', 2), ('auto', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPPortOperEdgePort.setStatus('current') if mibBuilder.loadTexts: swMSTPPortOperEdgePort.setDescription('It is the acutual value of the edge port status.') sw_mstp_port_admin_p2_p = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('true', 0), ('false', 1), ('auto', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortAdminP2P.setStatus('current') if mibBuilder.loadTexts: swMSTPPortAdminP2P.setDescription('The point-to-point status of the LAN segment attached to this port.') sw_mstp_port_oper_p2_p = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('true', 0), ('false', 1), ('auto', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPPortOperP2P.setStatus('current') if mibBuilder.loadTexts: swMSTPPortOperP2P.setDescription('It is the actual value of the P2P status.') sw_mstp_port_lbd = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortLBD.setStatus('current') if mibBuilder.loadTexts: swMSTPPortLBD.setDescription('The enabled/disabled status is used for Loop-back prevention attached to this port.') sw_mstp_port_bpdu_filtering = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortBPDUFiltering.setStatus('current') if mibBuilder.loadTexts: swMSTPPortBPDUFiltering.setDescription('The enabled/disabled status is used for BPDU Filtering attached to this port.BPDU filtering allows the administrator to prevent the system from sending or even receiving BPDUs on specified ports.') sw_mstp_port_restricted_role = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 13), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortRestrictedRole.setStatus('current') if mibBuilder.loadTexts: swMSTPPortRestrictedRole.setDescription('If TRUE, causes the port not to be selected as Root Port for the CIST or any MSTI, even it has the best spanning tree priority vector.') sw_mstp_port_restricted_tcn = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 14), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortRestrictedTCN.setStatus('current') if mibBuilder.loadTexts: swMSTPPortRestrictedTCN.setDescription('If TRUE, causes the port not to propagate received topology change notifications and topology changes to other Ports.') sw_mstp_port_oper_filter_bpdu = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('receiving', 1), ('filtering', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPPortOperFilterBpdu.setStatus('current') if mibBuilder.loadTexts: swMSTPPortOperFilterBpdu.setDescription('It is the actual value of the hardware filter BPDU status.') sw_mstp_port_recover_filter_bpdu = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 4, 1, 16), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPPortRecoverFilterBpdu.setStatus('current') if mibBuilder.loadTexts: swMSTPPortRecoverFilterBpdu.setDescription('When operating in BPDU filtering mode, writing TRUE(1) to this object sets this port to receive BPDUs to the hardware. Any other operation on this object has no effect and it will always return FALSE(2) when read.') sw_mstp_mst_port_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5)) if mibBuilder.loadTexts: swMSTPMstPortTable.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortTable.setDescription('A table that contains port-specific information for the MST Protocol.') sw_mstp_mst_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1)).setIndexNames((0, 'DGS-6600-STP-EXT-MIB', 'swMSTPMstPort'), (0, 'DGS-6600-STP-EXT-MIB', 'swMSTPMstPortInsID')) if mibBuilder.loadTexts: swMSTPMstPortEntry.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortEntry.setDescription('A list of information maintained by every port about the MST state for that port.') sw_mstp_mst_port = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPMstPort.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPort.setDescription('The port number of the port for this entry.') sw_mstp_mst_port_ins_id = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPMstPortInsID.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortInsID.setDescription('This object indicates the MSTP Instance ID (MSTID).') sw_mstp_mst_port_designated_bridge = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 3), bridge_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPMstPortDesignatedBridge.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortDesignatedBridge.setDescription("The Bridge Identifier of the bridge which this port considers to be the Designated Bridge for this port's segment on the corresponding Spanning Tree instance.") sw_mstp_mst_port_internal_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 200000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPMstPortInternalPathCost.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortInternalPathCost.setDescription('This is the value of this port to the path cost of paths towards the MSTI root.') sw_mstp_mst_port_priority = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 240))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swMSTPMstPortPriority.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortPriority.setDescription('The value of the priority field which is contained in the first (in network byte order) octet of the (2 octet long) Port ID.') sw_mstp_mst_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('discarding', 3), ('learning', 4), ('forwarding', 5), ('broken', 6), ('no-stp-enabled', 7), ('err-disabled', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPMstPortStatus.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortStatus.setDescription("When the port Enable state is enabled, the port's current state as defined by application of the Spanning Tree Protocol. If the PortEnable is disabled, the port status will be no-stp-enabled (7). If the port is in error disabled status, the port status will be err-disable(8)") sw_mstp_mst_port_role = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 2, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('disable', 0), ('alternate', 1), ('backup', 2), ('root', 3), ('designated', 4), ('master', 5), ('nonstp', 6), ('loopback', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swMSTPMstPortRole.setStatus('current') if mibBuilder.loadTexts: swMSTPMstPortRole.setDescription("When the port Enable state is enabled, the port's current port role as defined by application of the Spanning Tree Protocol. If the Port Enable state is disabled, the port role will be nonstp(5)") sw_mstp_traps = mib_identifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11)) sw_mstp_notify = mib_identifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1)) sw_mstp_notify_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0)) sw_mstp_port_lbd_trap = notification_type((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 1)).setObjects(('DGS-6600-STP-EXT-MIB', 'swMSTPPort')) if mibBuilder.loadTexts: swMSTPPortLBDTrap.setStatus('current') if mibBuilder.loadTexts: swMSTPPortLBDTrap.setDescription('When STP port loopback detect is enabled, a trap will be generated.') sw_mstp_port_backup_trap = notification_type((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 2)).setObjects(('DGS-6600-STP-EXT-MIB', 'swMSTPMstPort'), ('DGS-6600-STP-EXT-MIB', 'swMSTPMstPortInsID')) if mibBuilder.loadTexts: swMSTPPortBackupTrap.setStatus('current') if mibBuilder.loadTexts: swMSTPPortBackupTrap.setDescription('When the STP port role goes to backup (defined in the STP standard), a trap will be generated.') sw_mstp_port_alternate_trap = notification_type((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 3)).setObjects(('DGS-6600-STP-EXT-MIB', 'swMSTPMstPort'), ('DGS-6600-STP-EXT-MIB', 'swMSTPMstPortInsID')) if mibBuilder.loadTexts: swMSTPPortAlternateTrap.setStatus('current') if mibBuilder.loadTexts: swMSTPPortAlternateTrap.setDescription('When the STP port role goes to alternate (defined in the STP standard), a trap will be generated.') sw_mstp_hw_filter_status_change = notification_type((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 4)).setObjects(('DGS-6600-STP-EXT-MIB', 'swMSTPPort'), ('DGS-6600-STP-EXT-MIB', 'swMSTPPortOperFilterBpdu')) if mibBuilder.loadTexts: swMSTPHwFilterStatusChange.setStatus('current') if mibBuilder.loadTexts: swMSTPHwFilterStatusChange.setDescription('This trap is sent when a BPDU hardware filter status port changes.') sw_mstp_root_restricted_change = notification_type((1, 3, 6, 1, 4, 1, 171, 10, 120, 100, 2, 2, 11, 1, 0, 5)).setObjects(('DGS-6600-STP-EXT-MIB', 'swMSTPPort'), ('DGS-6600-STP-EXT-MIB', 'swMSTPPortRestrictedRole')) if mibBuilder.loadTexts: swMSTPRootRestrictedChange.setStatus('current') if mibBuilder.loadTexts: swMSTPRootRestrictedChange.setDescription('This trap is sent when a restricted role state port changes.') mibBuilder.exportSymbols('DGS-6600-STP-EXT-MIB', swMSTPPortBackupTrap=swMSTPPortBackupTrap, dgs6600StpExtMIB=dgs6600StpExtMIB, swMSTPMstPortEntry=swMSTPMstPortEntry, swMSTPInstVlanRangeList193to256=swMSTPInstVlanRangeList193to256, swMSTPStpMaxAge=swMSTPStpMaxAge, swMSTPInstDesignatedBridge=swMSTPInstDesignatedBridge, swMSTPPortAdminP2P=swMSTPPortAdminP2P, swMSTPPortOperP2P=swMSTPPortOperP2P, swMSTPGblMgmt=swMSTPGblMgmt, swMSTPPortLBDTrap=swMSTPPortLBDTrap, swMSTPPortOperEdgePort=swMSTPPortOperEdgePort, swMSTPRootRestrictedChange=swMSTPRootRestrictedChange, swMSTPStpLBDRecoverTime=swMSTPStpLBDRecoverTime, swMSTPInstVlanRangeList65to128=swMSTPInstVlanRangeList65to128, swMSTPInstTopChangesCount=swMSTPInstTopChangesCount, swMSTPInstVlanRangeList1to64=swMSTPInstVlanRangeList1to64, swMSTPPortEntry=swMSTPPortEntry, swMSTPPortRestrictedRole=swMSTPPortRestrictedRole, swMSTPInstExternalRootCost=swMSTPInstExternalRootCost, swMSTPStpAdminState=swMSTPStpAdminState, swMSTPPortBPDUFiltering=swMSTPPortBPDUFiltering, swMSTPInstVlanRangeList385to448=swMSTPInstVlanRangeList385to448, swMSTPInstRootPort=swMSTPInstRootPort, swMSTPPortAdminHelloTime=swMSTPPortAdminHelloTime, swMSTPNniBPDUAddress=swMSTPNniBPDUAddress, swMSTPMstPortDesignatedBridge=swMSTPMstPortDesignatedBridge, swMSTPInstanceCtrlTable=swMSTPInstanceCtrlTable, swMSTPInstStatus=swMSTPInstStatus, swMSTPInstanceCtrlEntry=swMSTPInstanceCtrlEntry, swMSTPMstPortStatus=swMSTPMstPortStatus, swMSTPInstRowStatus=swMSTPInstRowStatus, swMSTPStpForwardDelay=swMSTPStpForwardDelay, swMSTPInstType=swMSTPInstType, swMSTPSTPPortEnable=swMSTPSTPPortEnable, swMSTPRevisionLevel=swMSTPRevisionLevel, BridgeId=BridgeId, swMSTPStpLBD=swMSTPStpLBD, swMSTPInstForwardDelay=swMSTPInstForwardDelay, swMSTPMstPort=swMSTPMstPort, swMSTPPortRecoverFilterBpdu=swMSTPPortRecoverFilterBpdu, swMSTPStpMaxHops=swMSTPStpMaxHops, swMSTPPortRestrictedTCN=swMSTPPortRestrictedTCN, swMSTPPortOperHelloTime=swMSTPPortOperHelloTime, swMSTPInstMaxAge=swMSTPInstMaxAge, swMSTPTraps=swMSTPTraps, swMSTPInstRemainHops=swMSTPInstRemainHops, swMSTPMstPortRole=swMSTPMstPortRole, swMSTPInstPriority=swMSTPInstPriority, swMSTPStpForwardBPDU=swMSTPStpForwardBPDU, swMSTPInstDesignatedRootBridge=swMSTPInstDesignatedRootBridge, swMSTPInstRegionalRootBridge=swMSTPInstRegionalRootBridge, swMSTPInstInternalRootCost=swMSTPInstInternalRootCost, swMSTPNotify=swMSTPNotify, swMSTPStpVersion=swMSTPStpVersion, swMSTPInstVlanRangeList321to384=swMSTPInstVlanRangeList321to384, swMSTPStpHelloTime=swMSTPStpHelloTime, swMSTPPort=swMSTPPort, swMSTPMstPortTable=swMSTPMstPortTable, swMSTPNotifyPrefix=swMSTPNotifyPrefix, swMSTPPortOperFilterBpdu=swMSTPPortOperFilterBpdu, PYSNMP_MODULE_ID=dgs6600StpExtMIB, swMSTPInstVlanRangeList449to512=swMSTPInstVlanRangeList449to512, swMSTPInstVlanRangeList129to192=swMSTPInstVlanRangeList129to192, swMSTPPortExternalPathCost=swMSTPPortExternalPathCost, swMSTPHwFilterStatusChange=swMSTPHwFilterStatusChange, swMSTPName=swMSTPName, swMSTPInstLastTopologyChange=swMSTPInstLastTopologyChange, swMSTPCtrl=swMSTPCtrl, swMSTPInstId=swMSTPInstId, swMSTPPortAlternateTrap=swMSTPPortAlternateTrap, swMSTPStpTxHoldCount=swMSTPStpTxHoldCount, swMSTPMstPortPriority=swMSTPMstPortPriority, swMSTPInstVlanRangeList257to320=swMSTPInstVlanRangeList257to320, swMSTPMstPortInternalPathCost=swMSTPMstPortInternalPathCost, swMSTPPortMigration=swMSTPPortMigration, swMSTPPortTable=swMSTPPortTable, swMSTPPortAdminEdgePort=swMSTPPortAdminEdgePort, swMSTPPortLBD=swMSTPPortLBD, swMSTPMstPortInsID=swMSTPMstPortInsID)
def arithmetic_arranger(problems,calc = False): if 5 < len(problems): return "Error: Too many problems." sOperand1 = sOperand2 = sDashes = sResults = "" separator = " " for i in range(len(problems)): words = problems[i].split() if(not (words[1] == "+" or words[1] =="-")): return "Error: Operator must be '+' or '-'." if( not words[0].isnumeric() or not words[2].isnumeric()): return "Error: Numbers must only contain digits." if(4 < len(words[0] ) or 4 < len(words[2])): return "Error: Numbers cannot be more than four digits." lengthOp = max(len(words[0]),len(words[2])) sOperand1 += words[0].rjust(lengthOp+2) sOperand2 += words[1]+ " " + words[2].rjust(lengthOp) sDashes += "-"*(lengthOp + 2) if calc: if words[1] == "+": sResults += str(int(words[0])+int(words[2])).rjust(lengthOp+2) else: sResults += str(int(words[0])-int(words[2])).rjust(lengthOp+2) if i < len(problems)-1: sOperand1 += separator sOperand2 += separator sDashes += separator sResults += separator arranged_problems = sOperand1 + "\n" + sOperand2 + "\n" + sDashes if calc: arranged_problems += "\n" + sResults return arranged_problems
def arithmetic_arranger(problems, calc=False): if 5 < len(problems): return 'Error: Too many problems.' s_operand1 = s_operand2 = s_dashes = s_results = '' separator = ' ' for i in range(len(problems)): words = problems[i].split() if not (words[1] == '+' or words[1] == '-'): return "Error: Operator must be '+' or '-'." if not words[0].isnumeric() or not words[2].isnumeric(): return 'Error: Numbers must only contain digits.' if 4 < len(words[0]) or 4 < len(words[2]): return 'Error: Numbers cannot be more than four digits.' length_op = max(len(words[0]), len(words[2])) s_operand1 += words[0].rjust(lengthOp + 2) s_operand2 += words[1] + ' ' + words[2].rjust(lengthOp) s_dashes += '-' * (lengthOp + 2) if calc: if words[1] == '+': s_results += str(int(words[0]) + int(words[2])).rjust(lengthOp + 2) else: s_results += str(int(words[0]) - int(words[2])).rjust(lengthOp + 2) if i < len(problems) - 1: s_operand1 += separator s_operand2 += separator s_dashes += separator s_results += separator arranged_problems = sOperand1 + '\n' + sOperand2 + '\n' + sDashes if calc: arranged_problems += '\n' + sResults return arranged_problems
# # PySNMP MIB module MITEL-ERN (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MITEL-ERN # Produced by pysmi-0.3.4 at Wed May 1 14:13:10 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion") mitelAppCallServer, = mibBuilder.importSymbols("MITEL-MIB", "mitelAppCallServer") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") sysName, = mibBuilder.importSymbols("SNMPv2-MIB", "sysName") Bits, IpAddress, NotificationType, Counter32, Unsigned32, Gauge32, iso, MibIdentifier, NotificationType, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Counter64, Integer32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "IpAddress", "NotificationType", "Counter32", "Unsigned32", "Gauge32", "iso", "MibIdentifier", "NotificationType", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Counter64", "Integer32", "TimeTicks") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") class Integer32(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-2147483648, 2147483647) class DateAndTime(OctetString): subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(8, 8), ValueSizeConstraint(11, 11), ) mitelCsEmergencyResponse = MibIdentifier((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3)) mitelCsErSeqNumber = MibScalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 1), Integer32()) if mibBuilder.loadTexts: mitelCsErSeqNumber.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErSeqNumber.setDescription('Same number used in the Emergency Call logs.') mitelCsErCallType = MibScalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 2), Integer32()) if mibBuilder.loadTexts: mitelCsErCallType.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErCallType.setDescription('Type of Emergency Call.') mitelCsErDetectTime = MibScalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 3), DateAndTime()) if mibBuilder.loadTexts: mitelCsErDetectTime.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErDetectTime.setDescription('The time that the emergency call occurred on the Call Server.') mitelCsErCallingDN = MibScalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 4), DisplayString()) if mibBuilder.loadTexts: mitelCsErCallingDN.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErCallingDN.setDescription('The directory number dialed for the emergency call.') mitelCsErCallingPNI = MibScalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 5), DisplayString()) if mibBuilder.loadTexts: mitelCsErCallingPNI.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErCallingPNI.setDescription('The PNI dialed for the emergency call.') mitelCsErCesidDigits = MibScalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 6), DisplayString()) if mibBuilder.loadTexts: mitelCsErCesidDigits.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErCesidDigits.setDescription('The CESID assigned to the Dialing Number. May also be the default system CESID value or empty if the CESID is unknown.') mitelCsErDialledDigits = MibScalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 7), DisplayString()) if mibBuilder.loadTexts: mitelCsErDialledDigits.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErDialledDigits.setDescription('The number dialed for the emergency call.') mitelCsErRegistrationDN = MibScalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 8), DisplayString()) if mibBuilder.loadTexts: mitelCsErRegistrationDN.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErRegistrationDN.setDescription('The directory number dialed for the emergency call. This could be empty, the directory number of the device making the call, an incoming caller ID or remote CESID.') mitelCsErUnackTable = MibTable((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 9), ) if mibBuilder.loadTexts: mitelCsErUnackTable.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErUnackTable.setDescription("A list of notifications sent from this agent that are expected to be acknowledged, but have not yet received the acknowledgement. One entry is created for each acknowledgeable notification transmitted from this agent. Managers are expected to delete the rows in this table to acknowledge receipt of the notification. To do so, the index is provided in the notification sent to the manager. Any unacknowledged notifications are removed at the agent's discretion. This table is kept in volatile memory.") mitelCsErUnackTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 9, 1), ).setIndexNames((0, "MITEL-ERN", "mitelCsErUnackTableIndex")) if mibBuilder.loadTexts: mitelCsErUnackTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErUnackTableEntry.setDescription('An entry containing unacknowledged notification information.') mitelCsErUnackTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 9, 1, 1), Integer32()) if mibBuilder.loadTexts: mitelCsErUnackTableIndex.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErUnackTableIndex.setDescription('The index of the row for the Manager to acknowledge the notification. If no acknowledgement is required, this will be 0. For require acknowledgement this is a unique value, greater than zero, for each row. The values are assigned contiguously starting from 1, and are not re-used (to allow for duplicated Set Requests for destruction of the row).') mitelCsErUnackTableToken = MibTableColumn((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 9, 1, 2), Integer32()).setMaxAccess("writeonly") if mibBuilder.loadTexts: mitelCsErUnackTableToken.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErUnackTableToken.setDescription('The status of this row. A status of active indicates that an acknowledgement is still expected. Write a destroy(6) here to acknowledge this notification. A status of notInService indicates that no acknowledgement is expected.') mitelCsErNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 10)) mitelCsErNotification = NotificationType((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3) + (0,401)).setObjects(("SNMPv2-MIB", "sysName"), ("MITEL-ERN", "mitelCsErSeqNumber"), ("MITEL-ERN", "mitelCsErCallType"), ("MITEL-ERN", "mitelCsErDetectTime"), ("MITEL-ERN", "mitelCsErCallingDN"), ("MITEL-ERN", "mitelCsErCallingPNI"), ("MITEL-ERN", "mitelCsErCesidDigits"), ("MITEL-ERN", "mitelCsErDialledDigits"), ("MITEL-ERN", "mitelCsErRegistrationDN"), ("MITEL-ERN", "mitelCsErUnackTableIndex"), ("MITEL-ERN", "mitelCsErUnackTableToken")) if mibBuilder.loadTexts: mitelCsErNotification.setDescription('This notification is generated whenever an emergency call condition is detected. The manager is expected to ....') mibBuilder.exportSymbols("MITEL-ERN", mitelCsErCallingDN=mitelCsErCallingDN, mitelCsErRegistrationDN=mitelCsErRegistrationDN, Integer32=Integer32, DateAndTime=DateAndTime, mitelCsErUnackTableToken=mitelCsErUnackTableToken, mitelCsEmergencyResponse=mitelCsEmergencyResponse, mitelCsErDetectTime=mitelCsErDetectTime, mitelCsErCallingPNI=mitelCsErCallingPNI, mitelCsErNotification=mitelCsErNotification, mitelCsErCesidDigits=mitelCsErCesidDigits, mitelCsErDialledDigits=mitelCsErDialledDigits, mitelCsErUnackTableEntry=mitelCsErUnackTableEntry, mitelCsErUnackTable=mitelCsErUnackTable, mitelCsErCallType=mitelCsErCallType, mitelCsErUnackTableIndex=mitelCsErUnackTableIndex, mitelCsErSeqNumber=mitelCsErSeqNumber, mitelCsErNotifications=mitelCsErNotifications)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion') (mitel_app_call_server,) = mibBuilder.importSymbols('MITEL-MIB', 'mitelAppCallServer') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (sys_name,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysName') (bits, ip_address, notification_type, counter32, unsigned32, gauge32, iso, mib_identifier, notification_type, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, counter64, integer32, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'IpAddress', 'NotificationType', 'Counter32', 'Unsigned32', 'Gauge32', 'iso', 'MibIdentifier', 'NotificationType', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Counter64', 'Integer32', 'TimeTicks') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') class Integer32(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(-2147483648, 2147483647) class Dateandtime(OctetString): subtype_spec = OctetString.subtypeSpec + constraints_union(value_size_constraint(8, 8), value_size_constraint(11, 11)) mitel_cs_emergency_response = mib_identifier((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3)) mitel_cs_er_seq_number = mib_scalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 1), integer32()) if mibBuilder.loadTexts: mitelCsErSeqNumber.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErSeqNumber.setDescription('Same number used in the Emergency Call logs.') mitel_cs_er_call_type = mib_scalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 2), integer32()) if mibBuilder.loadTexts: mitelCsErCallType.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErCallType.setDescription('Type of Emergency Call.') mitel_cs_er_detect_time = mib_scalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 3), date_and_time()) if mibBuilder.loadTexts: mitelCsErDetectTime.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErDetectTime.setDescription('The time that the emergency call occurred on the Call Server.') mitel_cs_er_calling_dn = mib_scalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 4), display_string()) if mibBuilder.loadTexts: mitelCsErCallingDN.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErCallingDN.setDescription('The directory number dialed for the emergency call.') mitel_cs_er_calling_pni = mib_scalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 5), display_string()) if mibBuilder.loadTexts: mitelCsErCallingPNI.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErCallingPNI.setDescription('The PNI dialed for the emergency call.') mitel_cs_er_cesid_digits = mib_scalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 6), display_string()) if mibBuilder.loadTexts: mitelCsErCesidDigits.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErCesidDigits.setDescription('The CESID assigned to the Dialing Number. May also be the default system CESID value or empty if the CESID is unknown.') mitel_cs_er_dialled_digits = mib_scalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 7), display_string()) if mibBuilder.loadTexts: mitelCsErDialledDigits.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErDialledDigits.setDescription('The number dialed for the emergency call.') mitel_cs_er_registration_dn = mib_scalar((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 8), display_string()) if mibBuilder.loadTexts: mitelCsErRegistrationDN.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErRegistrationDN.setDescription('The directory number dialed for the emergency call. This could be empty, the directory number of the device making the call, an incoming caller ID or remote CESID.') mitel_cs_er_unack_table = mib_table((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 9)) if mibBuilder.loadTexts: mitelCsErUnackTable.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErUnackTable.setDescription("A list of notifications sent from this agent that are expected to be acknowledged, but have not yet received the acknowledgement. One entry is created for each acknowledgeable notification transmitted from this agent. Managers are expected to delete the rows in this table to acknowledge receipt of the notification. To do so, the index is provided in the notification sent to the manager. Any unacknowledged notifications are removed at the agent's discretion. This table is kept in volatile memory.") mitel_cs_er_unack_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 9, 1)).setIndexNames((0, 'MITEL-ERN', 'mitelCsErUnackTableIndex')) if mibBuilder.loadTexts: mitelCsErUnackTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErUnackTableEntry.setDescription('An entry containing unacknowledged notification information.') mitel_cs_er_unack_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 9, 1, 1), integer32()) if mibBuilder.loadTexts: mitelCsErUnackTableIndex.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErUnackTableIndex.setDescription('The index of the row for the Manager to acknowledge the notification. If no acknowledgement is required, this will be 0. For require acknowledgement this is a unique value, greater than zero, for each row. The values are assigned contiguously starting from 1, and are not re-used (to allow for duplicated Set Requests for destruction of the row).') mitel_cs_er_unack_table_token = mib_table_column((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 9, 1, 2), integer32()).setMaxAccess('writeonly') if mibBuilder.loadTexts: mitelCsErUnackTableToken.setStatus('mandatory') if mibBuilder.loadTexts: mitelCsErUnackTableToken.setDescription('The status of this row. A status of active indicates that an acknowledgement is still expected. Write a destroy(6) here to acknowledge this notification. A status of notInService indicates that no acknowledgement is expected.') mitel_cs_er_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3, 10)) mitel_cs_er_notification = notification_type((1, 3, 6, 1, 4, 1, 1027, 4, 1, 1, 3) + (0, 401)).setObjects(('SNMPv2-MIB', 'sysName'), ('MITEL-ERN', 'mitelCsErSeqNumber'), ('MITEL-ERN', 'mitelCsErCallType'), ('MITEL-ERN', 'mitelCsErDetectTime'), ('MITEL-ERN', 'mitelCsErCallingDN'), ('MITEL-ERN', 'mitelCsErCallingPNI'), ('MITEL-ERN', 'mitelCsErCesidDigits'), ('MITEL-ERN', 'mitelCsErDialledDigits'), ('MITEL-ERN', 'mitelCsErRegistrationDN'), ('MITEL-ERN', 'mitelCsErUnackTableIndex'), ('MITEL-ERN', 'mitelCsErUnackTableToken')) if mibBuilder.loadTexts: mitelCsErNotification.setDescription('This notification is generated whenever an emergency call condition is detected. The manager is expected to ....') mibBuilder.exportSymbols('MITEL-ERN', mitelCsErCallingDN=mitelCsErCallingDN, mitelCsErRegistrationDN=mitelCsErRegistrationDN, Integer32=Integer32, DateAndTime=DateAndTime, mitelCsErUnackTableToken=mitelCsErUnackTableToken, mitelCsEmergencyResponse=mitelCsEmergencyResponse, mitelCsErDetectTime=mitelCsErDetectTime, mitelCsErCallingPNI=mitelCsErCallingPNI, mitelCsErNotification=mitelCsErNotification, mitelCsErCesidDigits=mitelCsErCesidDigits, mitelCsErDialledDigits=mitelCsErDialledDigits, mitelCsErUnackTableEntry=mitelCsErUnackTableEntry, mitelCsErUnackTable=mitelCsErUnackTable, mitelCsErCallType=mitelCsErCallType, mitelCsErUnackTableIndex=mitelCsErUnackTableIndex, mitelCsErSeqNumber=mitelCsErSeqNumber, mitelCsErNotifications=mitelCsErNotifications)
def oneaway(x,y): # INSERT x = list(x) y = list(y) if (len(x)+1) == len(y): for k in x: if k in y: continue else: return "1 FUCK" # REMOVAL if (len(x)-1) == len(y): for k in y: if k in x: continue else: return "2 FUCK" # REPLACE count = 0 if len(x) == len(y): x = list(dict.fromkeys(x)) y = list(dict.fromkeys(y)) for k in x: if k in y: count += 1 if len(x) != (count+1): return "3 FUCK" return "WE ARE LAUGHING" ############################### print(oneaway("pale", "ple")) print(oneaway("pales", "pale")) print(oneaway("pale", "bale")) print(oneaway("pale", "bake"))
def oneaway(x, y): x = list(x) y = list(y) if len(x) + 1 == len(y): for k in x: if k in y: continue else: return '1 FUCK' if len(x) - 1 == len(y): for k in y: if k in x: continue else: return '2 FUCK' count = 0 if len(x) == len(y): x = list(dict.fromkeys(x)) y = list(dict.fromkeys(y)) for k in x: if k in y: count += 1 if len(x) != count + 1: return '3 FUCK' return 'WE ARE LAUGHING' print(oneaway('pale', 'ple')) print(oneaway('pales', 'pale')) print(oneaway('pale', 'bale')) print(oneaway('pale', 'bake'))
# Python - 3.6.0 test.describe('Example Tests') tests = ( ('John', 'Hello, John!'), ('aLIce', 'Hello, Alice!'), ('', 'Hello, World!') ) for inp, exp in tests: test.assert_equals(hello(inp), exp) test.assert_equals(hello(), 'Hello, World!')
test.describe('Example Tests') tests = (('John', 'Hello, John!'), ('aLIce', 'Hello, Alice!'), ('', 'Hello, World!')) for (inp, exp) in tests: test.assert_equals(hello(inp), exp) test.assert_equals(hello(), 'Hello, World!')
'''PROGRAM TO, FOR A GIVEN LIST OF TUPLES, WHERE EACH TUPLE TAKES PATTERN (NAME,MARKS) OF A STUDENT, DISPLAY ONLY NAMES.''' #Given list scores = [("akash", 85), ("arind", 80), ("asha",95), ('bhavana',90), ('bhavik',87)] #Seperaing names and marks sep = list(zip(*scores)) names = sep[0] #Displaying names print('\nNames of students:') for x in names: print(x.title()) print()
"""PROGRAM TO, FOR A GIVEN LIST OF TUPLES, WHERE EACH TUPLE TAKES PATTERN (NAME,MARKS) OF A STUDENT, DISPLAY ONLY NAMES.""" scores = [('akash', 85), ('arind', 80), ('asha', 95), ('bhavana', 90), ('bhavik', 87)] sep = list(zip(*scores)) names = sep[0] print('\nNames of students:') for x in names: print(x.title()) print()
# https://binarysearch.com/problems/Largest-Anagram-Group class Solution: def solve(self, words): anagrams = {} for i in range(len(words)): words[i] = "".join(sorted(list(words[i]))) if words[i] in anagrams: anagrams[words[i]]+=1 else: anagrams[words[i]]=1 return max(anagrams.values())
class Solution: def solve(self, words): anagrams = {} for i in range(len(words)): words[i] = ''.join(sorted(list(words[i]))) if words[i] in anagrams: anagrams[words[i]] += 1 else: anagrams[words[i]] = 1 return max(anagrams.values())
class Solution: def mostCommonWord(self, paragraph: str, banned: List[str]) -> str: paraList = re.split('\W', paragraph.lower()) paraListAlpha = [] for item in paraList: item = ''.join([i for i in item if i.isalpha()]) paraListAlpha.append(item) countParaList = Counter(paraListAlpha) countParaListSort = sorted(countParaList.items(), key = lambda x:x[1], reverse=True) print(countParaListSort) for item in countParaListSort: if item[0] in banned or item[0] == '': continue return item[0]
class Solution: def most_common_word(self, paragraph: str, banned: List[str]) -> str: para_list = re.split('\\W', paragraph.lower()) para_list_alpha = [] for item in paraList: item = ''.join([i for i in item if i.isalpha()]) paraListAlpha.append(item) count_para_list = counter(paraListAlpha) count_para_list_sort = sorted(countParaList.items(), key=lambda x: x[1], reverse=True) print(countParaListSort) for item in countParaListSort: if item[0] in banned or item[0] == '': continue return item[0]
with open("a.txt",'r') as ifile: with open("b.txt","w") as ofile: char = ifile.read(1) while char: if char==".": ofile.write(char) ofile.write("\n") char = ifile.read(1) else: ofile.write(char) char = ifile.read(1)
with open('a.txt', 'r') as ifile: with open('b.txt', 'w') as ofile: char = ifile.read(1) while char: if char == '.': ofile.write(char) ofile.write('\n') char = ifile.read(1) else: ofile.write(char) char = ifile.read(1)
L, R = map(int, input().split()) ll = list(map(int, input().split())) rl = list(map(int, input().split())) lsize = [0]*41 rsize = [0]*41 for l in ll: lsize[l] += 1 for r in rl: rsize[r] += 1 ans = 0 for i in range(10, 41): ans += min(lsize[i], rsize[i]) print(ans)
(l, r) = map(int, input().split()) ll = list(map(int, input().split())) rl = list(map(int, input().split())) lsize = [0] * 41 rsize = [0] * 41 for l in ll: lsize[l] += 1 for r in rl: rsize[r] += 1 ans = 0 for i in range(10, 41): ans += min(lsize[i], rsize[i]) print(ans)
SIZE = 32 class Tile(): def __init__(self, collision=False, image=None, action_index=None): self.collision = collision self.image = image self.action_index = action_index
size = 32 class Tile: def __init__(self, collision=False, image=None, action_index=None): self.collision = collision self.image = image self.action_index = action_index
A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] B = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20] C = [21, 22, 23, 24, 25, 26, 27, 28, 29, 30] intercalada = [] contador = 0 for i in range(10): intercalada.append(A[contador]) intercalada.append(B[contador]) intercalada.append(C[contador]) contador += 1 print(intercalada)
a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] b = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20] c = [21, 22, 23, 24, 25, 26, 27, 28, 29, 30] intercalada = [] contador = 0 for i in range(10): intercalada.append(A[contador]) intercalada.append(B[contador]) intercalada.append(C[contador]) contador += 1 print(intercalada)
# Python program to demonstrate working of # Set in Python # Creating two sets set1 = set() set2 = set() # Adding elements to set1 for i in range(1, 6): set1.add(i) # Adding elements to set2 for i in range(3, 8): set2.add(i) set1.add(1) print("Set1 = ", set1) print("Set2 = ", set2) print("\n") # Difference between discard() and remove() # initialize my_set my_set = {1, 3, 4, 5, 6} print(my_set) # discard an element # Output: {1, 3, 5, 6} my_set.discard(4) print(my_set) # remove an element # Output: {1, 3, 5} my_set.remove(6) print(my_set) # discard an element # not present in my_set # Output: {1, 3, 5} my_set.discard(2) print(my_set) # remove an element # not present in my_set # you will get an error. # Output: KeyError #my_set.remove(2) # initialize my_set # Output: set of unique elements my_set = set("HelloWorld") print(my_set) # pop an element # Output: random element print(my_set.pop()) # pop another element my_set.pop() print(my_set) # clear my_set # Output: set() my_set.clear() print(my_set) print(my_set) # Set union method # initialize A and B A = {1, 2, 3, 4, 5} B = {4, 5, 6, 7, 8} # use | operator # Output: {1, 2, 3, 4, 5, 6, 7, 8} print(A | B) print(A.union(B)) # Intersection of sets # initialize A and B A = {1, 2, 3, 4, 5} B = {4, 5, 6, 7, 8} # use & operator # Output: {4, 5} print(A & B) # A.intersection(B) # Difference of two sets # initialize A and B A = {1, 2, 3, 4, 5} B = {4, 5, 6, 7, 8} # use - operator on A # Output: {1, 2, 3} print(A - B) #A.difference(B) # in keyword in a set # initialize my_set my_set = set("apple") # check if 'a' is present # Output: True print('a' in my_set) # check if 'p' is present # Output: False print('p' not in my_set) for letter in set("apple"): print(letter)
set1 = set() set2 = set() for i in range(1, 6): set1.add(i) for i in range(3, 8): set2.add(i) set1.add(1) print('Set1 = ', set1) print('Set2 = ', set2) print('\n') my_set = {1, 3, 4, 5, 6} print(my_set) my_set.discard(4) print(my_set) my_set.remove(6) print(my_set) my_set.discard(2) print(my_set) my_set = set('HelloWorld') print(my_set) print(my_set.pop()) my_set.pop() print(my_set) my_set.clear() print(my_set) print(my_set) a = {1, 2, 3, 4, 5} b = {4, 5, 6, 7, 8} print(A | B) print(A.union(B)) a = {1, 2, 3, 4, 5} b = {4, 5, 6, 7, 8} print(A & B) a = {1, 2, 3, 4, 5} b = {4, 5, 6, 7, 8} print(A - B) my_set = set('apple') print('a' in my_set) print('p' not in my_set) for letter in set('apple'): print(letter)
''' Copyright 2011 Acknack Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ''' ''' Set of friendly error codes that can be displayed to the user on a webpage ''' CANNOT_CONNECT_TO_WAVE_ERR = "e0000" BOT_NOT_PARTICIPANT_ERR = "e0001" PERMISSION_DENIED_ERR = "e0002" REQUEST_DEADLINE_ERR = "e0003" UNKNOWN_ERR = "e0004" USER_DELETED_ERR = "e0005" INADEQUATE_PERMISSION_ERR = "e0006"
""" Copyright 2011 Acknack Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ '\nSet of friendly error codes that can be displayed to the user on a webpage\n' cannot_connect_to_wave_err = 'e0000' bot_not_participant_err = 'e0001' permission_denied_err = 'e0002' request_deadline_err = 'e0003' unknown_err = 'e0004' user_deleted_err = 'e0005' inadequate_permission_err = 'e0006'
# This is your Application's Configuration File. # Make sure not to upload this file! # Flask App Secret. Used for "session". flaskSecret = "<generateKey>" # Register your V1 app at https://portal.azure.com. # Sign-On URL as <domain>/customer/login/authorized i.e. http://localhost:5000/customer/login/authorized # Make the Application Multi-Tenant # Add access to Windows Azure Service Management API # Create an App Key clientId = "<GUID>" clientSecret = "<SECRET>" # The various resource endpoints. You may need to update this for different cloud environments. aad_endpoint = "https://login.microsoftonline.com/" resource_arm = "https://management.azure.com/" resource_graph = "https://graph.windows.net/" api_version_graph = "1.6"
flask_secret = '<generateKey>' client_id = '<GUID>' client_secret = '<SECRET>' aad_endpoint = 'https://login.microsoftonline.com/' resource_arm = 'https://management.azure.com/' resource_graph = 'https://graph.windows.net/' api_version_graph = '1.6'
def min4(*args): min_ = args[0] for item in args: if item < min_: min_ = item return min_ a, b, c, d = int(input()), int(input()), int(input()), int(input()) print(min4(a, b, c, d))
def min4(*args): min_ = args[0] for item in args: if item < min_: min_ = item return min_ (a, b, c, d) = (int(input()), int(input()), int(input()), int(input())) print(min4(a, b, c, d))
class Contender: def __init__(self, names, values): self.names = names self.values = values def __repr__(self): strings = tuple(str(v.id()) for v in self.values) return str(strings) + " contender" def __lt__(self, other): return self.values < other.values def __getitem__(self, item): idx = self.index_of(item) return self.values[idx] def index_of(self, varname): return self.names.index(varname) def id(self): return tuple(v.id() for v in self.values) def set_executor(self, executor): self.executor = executor def run(self, options, invocation): return self.executor.run_with(options, invocation)
class Contender: def __init__(self, names, values): self.names = names self.values = values def __repr__(self): strings = tuple((str(v.id()) for v in self.values)) return str(strings) + ' contender' def __lt__(self, other): return self.values < other.values def __getitem__(self, item): idx = self.index_of(item) return self.values[idx] def index_of(self, varname): return self.names.index(varname) def id(self): return tuple((v.id() for v in self.values)) def set_executor(self, executor): self.executor = executor def run(self, options, invocation): return self.executor.run_with(options, invocation)
def non_repeat(line): ls = [line[i:j] for i in range(len(line)) for j in range(i+1, len(line)+1) if len(set(line[i:j])) == j - i] return max(ls, key=len, default='')
def non_repeat(line): ls = [line[i:j] for i in range(len(line)) for j in range(i + 1, len(line) + 1) if len(set(line[i:j])) == j - i] return max(ls, key=len, default='')
first_number = int(input("Enter the first number(divisor): ")) second_number = int(input("Enter the second number(boundary): ")) for number in range(second_number, 0, -1): if number % first_number == 0: print(number) break
first_number = int(input('Enter the first number(divisor): ')) second_number = int(input('Enter the second number(boundary): ')) for number in range(second_number, 0, -1): if number % first_number == 0: print(number) break
n = int(input()) last = 1 lastlast = 0 print('0 1 ', end="") for i in range(n-2): now = last+lastlast if i == n-3: print('{}'.format(now)) else: print('{} '.format(now), end="") lastlast = last last = now
n = int(input()) last = 1 lastlast = 0 print('0 1 ', end='') for i in range(n - 2): now = last + lastlast if i == n - 3: print('{}'.format(now)) else: print('{} '.format(now), end='') lastlast = last last = now
# -*- coding: utf-8 -*- def main(): n = int(input()) dishes = list() ans = 0 # See: # https://poporix.hatenablog.com/entry/2019/01/28/222905 # https://misteer.hatenablog.com/entry/NIKKEI2019qual?_ga=2.121425408.962332021.1548821392-1201012407.1527836447 for i in range(n): ai, bi = map(int, input().split()) dishes.append((ai, bi)) for index, dish in enumerate(sorted(dishes, key=lambda x: x[0] + x[1], reverse=True)): if index % 2 == 0: ans += dish[0] else: ans -= dish[1] print(ans) if __name__ == '__main__': main()
def main(): n = int(input()) dishes = list() ans = 0 for i in range(n): (ai, bi) = map(int, input().split()) dishes.append((ai, bi)) for (index, dish) in enumerate(sorted(dishes, key=lambda x: x[0] + x[1], reverse=True)): if index % 2 == 0: ans += dish[0] else: ans -= dish[1] print(ans) if __name__ == '__main__': main()
class Cell: def __init__(self, x, y, entity = None, agent = None, dirty = False): self.x = x self.y = y self.entity = entity self.agent = agent self.dirty = dirty def set_entity(self, entity): self.entity = entity self.entity.x = self.x self.entity.y = self.y def set_agent(self, agent): self.agent = agent self.agent.x = self.x self.agent.y = self.y def free_entity(self): self.entity = None def free_agent(self): self.agent = None @property def is_dirty(self): return self.dirty @property def is_empty(self): return self.entity == None and self.agent == None and not self.dirty def __str__(self): if self.agent: return str(self.agent) elif self.entity: return str(self.entity) elif self.dirty: return "X" else: return "-"
class Cell: def __init__(self, x, y, entity=None, agent=None, dirty=False): self.x = x self.y = y self.entity = entity self.agent = agent self.dirty = dirty def set_entity(self, entity): self.entity = entity self.entity.x = self.x self.entity.y = self.y def set_agent(self, agent): self.agent = agent self.agent.x = self.x self.agent.y = self.y def free_entity(self): self.entity = None def free_agent(self): self.agent = None @property def is_dirty(self): return self.dirty @property def is_empty(self): return self.entity == None and self.agent == None and (not self.dirty) def __str__(self): if self.agent: return str(self.agent) elif self.entity: return str(self.entity) elif self.dirty: return 'X' else: return '-'
# Ann watched a TV program about health and learned that it is # recommended to sleep at least A hours per day, but # oversleeping is also not healthy, and you should not sleep more # than B hours. Now Ann sleeps H hours per day. If Ann's sleep # schedule complies with the requirements of that TV program - # print "Normal". If Ann sleeps less than A hours, output # "Deficiency", and if she sleeps more than B hours, output # "Excess". # Input to this program are the three strings with variables in the # following order: A, B, H. A is always less than or equal to B. # Please note the letter's cases: the output should exactly # correspendond to what required in the program, i.e. if the program # must output "Excess", output such as "excess", "EXCESS", or # "ExCess" will not be graded as correct. # You should carefully think about all the conditions, which you # need to use. Special attention should be paid to the strictness # of used conditional operators: distinguish between < and <=; # > and >=. In order to understand which ones to use, please # carefully read the problem statement. (a, b, h) = (int(input()), int(input()), int(input())) if h < a: print("Deficiency") elif h > b: print("Excess") else: print("Normal")
(a, b, h) = (int(input()), int(input()), int(input())) if h < a: print('Deficiency') elif h > b: print('Excess') else: print('Normal')
def menu(): simulation_name = "listWithOptionsOptimized" use_existing = True save_results = False print("This project is made to train agents to fight each other\nThere is three types of agents\n-dummy : don't do anything\n-runner : just moving\n-killer : move and shoot\nWe are only using dummies and runners for the three first basic levels\n\nYou will now choose the parameters of the game\n") skipParam = input("skip and use default setup ? (best and latest trained agents) Y/N\n") if skipParam == "Y" or skipParam == "y": pass elif skipParam == "N" or skipParam == "n": answer = input("Select the number corresponding to the simulation you want to make:\n1: killer vs dummy (only killer is an agent, 2D)\n2: killer vs runner (only killer is an agent, 2D)\n3: killer vs runner (both are agents, 2D)\n4: killer vs killer (2D)\n5: three killers (2D)\n6: with Options (create your own in 2D)\n7: Optimized version (memory optimized version of 6:)\n") if answer=='1': simulation_name = "killerVsDummy" elif answer=='2': simulation_name = "killerVsRunner" elif answer=='3': simulation_name = "listKillerVsRunner" elif answer=='4': simulation_name = "listKillerVsKiller" elif answer=='5': simulation_name = "listThreeKillers" elif answer=='6': simulation_name = "listWithOptions" elif answer=="7": simulation_name = "listWithOptionsOptimized" else: print("wrong value selected") answer = input("Do you want to use the already trained agents ? Y/N\n") if answer == "Y" or answer == "y": #use_existing = True pass elif answer == "N" or answer == "n": use_existing = False save = input("Do you want to save results after the training ? Y/N\n") if save == "Y" or save == "y": save_results = True elif save == "N" or save == "n": pass else: print("wrong value selected") else: print("wrong value selected") else: print("wrong value selected") print("\nYou have selected : "+str(simulation_name)+", using trained agents:"+str(use_existing)+", saving results:"+str(save_results)) return use_existing, save_results, simulation_name
def menu(): simulation_name = 'listWithOptionsOptimized' use_existing = True save_results = False print("This project is made to train agents to fight each other\nThere is three types of agents\n-dummy : don't do anything\n-runner : just moving\n-killer : move and shoot\nWe are only using dummies and runners for the three first basic levels\n\nYou will now choose the parameters of the game\n") skip_param = input('skip and use default setup ? (best and latest trained agents) Y/N\n') if skipParam == 'Y' or skipParam == 'y': pass elif skipParam == 'N' or skipParam == 'n': answer = input('Select the number corresponding to the simulation you want to make:\n1: killer vs dummy (only killer is an agent, 2D)\n2: killer vs runner (only killer is an agent, 2D)\n3: killer vs runner (both are agents, 2D)\n4: killer vs killer (2D)\n5: three killers (2D)\n6: with Options (create your own in 2D)\n7: Optimized version (memory optimized version of 6:)\n') if answer == '1': simulation_name = 'killerVsDummy' elif answer == '2': simulation_name = 'killerVsRunner' elif answer == '3': simulation_name = 'listKillerVsRunner' elif answer == '4': simulation_name = 'listKillerVsKiller' elif answer == '5': simulation_name = 'listThreeKillers' elif answer == '6': simulation_name = 'listWithOptions' elif answer == '7': simulation_name = 'listWithOptionsOptimized' else: print('wrong value selected') answer = input('Do you want to use the already trained agents ? Y/N\n') if answer == 'Y' or answer == 'y': pass elif answer == 'N' or answer == 'n': use_existing = False save = input('Do you want to save results after the training ? Y/N\n') if save == 'Y' or save == 'y': save_results = True elif save == 'N' or save == 'n': pass else: print('wrong value selected') else: print('wrong value selected') else: print('wrong value selected') print('\nYou have selected : ' + str(simulation_name) + ', using trained agents:' + str(use_existing) + ', saving results:' + str(save_results)) return (use_existing, save_results, simulation_name)
my_set = {4, 2, 8, 5, 10, 11, 10} # seturile sunt neordonate my_set2 = {9, 5, 77, 22, 98, 11, 10} print(my_set) # print(my_set[0:]) #nu se poate lst = (11, 12, 12, 14, 15, 13, 14) print(set(lst)) #eliminam duplicatele din lista prin transformarea in set print(my_set.difference(my_set2)) print(my_set.intersection(my_set2))
my_set = {4, 2, 8, 5, 10, 11, 10} my_set2 = {9, 5, 77, 22, 98, 11, 10} print(my_set) lst = (11, 12, 12, 14, 15, 13, 14) print(set(lst)) print(my_set.difference(my_set2)) print(my_set.intersection(my_set2))
def make_weights_for_balanced_classes(images, nclasses): count = [0] * nclasses for item in images: count[item[1]] += 1 weight_per_class = [0.] * nclasses N = float(sum(count)) for i in range(nclasses): weight_per_class[i] = N/float(count[i]) weight = [0] * len(images) for idx, val in enumerate(images): weight[idx] = weight_per_class[val[1]] return weight def train(net,train_loader,criterion,optimizer,epoch_num,device): print('\nEpoch: %d' % epoch_num) net.train() train_loss = 0 correct = 0 total = 0 with tqdm(total=math.ceil(len(train_loader)), desc="Training") as pbar: for batch_idx, (inputs, targets) in enumerate(train_loader): inputs, targets = inputs.to(device), targets.to(device) outputs = net(inputs) loss = criterion(outputs, targets) optimizer.zero_grad() loss.backward() optimizer.step() train_loss += criterion(outputs, targets).item() _, predicted = torch.max(outputs.data, 1) total += targets.size(0) correct += predicted.eq(targets.data).sum() pbar.set_postfix({'loss': '{0:1.5f}'.format(loss), 'accuracy': '{:.2%}'.format(correct.item() / total)}) pbar.update(1) pbar.close() return net def evaluate(net,test_loader,criterion,best_val_acc,save_name,device): with torch.no_grad(): test_loss = 0 correct = 0 total = 0 with tqdm(total=math.ceil(len(test_loader)), desc="Testing") as pbar: for batch_idx, (inputs, targets) in enumerate(test_loader): inputs, targets = inputs.to(device), targets.to(device) outputs = net(inputs) loss = criterion(outputs, targets) test_loss += loss.item() _, predicted = torch.max(outputs.data, 1) total += targets.size(0) correct += predicted.eq(targets.data).sum() pbar.set_postfix({'loss': '{0:1.5f}'.format(loss), 'accuracy': '{:.2%}'.format(correct.item() / total)}) pbar.update(1) pbar.close() acc = 100 * int(correct) / int(total) if acc > best_val_acc: torch.save(net.state_dict(),save_name) best_val_acc = acc return test_loss / (batch_idx + 1), best_val_acc
def make_weights_for_balanced_classes(images, nclasses): count = [0] * nclasses for item in images: count[item[1]] += 1 weight_per_class = [0.0] * nclasses n = float(sum(count)) for i in range(nclasses): weight_per_class[i] = N / float(count[i]) weight = [0] * len(images) for (idx, val) in enumerate(images): weight[idx] = weight_per_class[val[1]] return weight def train(net, train_loader, criterion, optimizer, epoch_num, device): print('\nEpoch: %d' % epoch_num) net.train() train_loss = 0 correct = 0 total = 0 with tqdm(total=math.ceil(len(train_loader)), desc='Training') as pbar: for (batch_idx, (inputs, targets)) in enumerate(train_loader): (inputs, targets) = (inputs.to(device), targets.to(device)) outputs = net(inputs) loss = criterion(outputs, targets) optimizer.zero_grad() loss.backward() optimizer.step() train_loss += criterion(outputs, targets).item() (_, predicted) = torch.max(outputs.data, 1) total += targets.size(0) correct += predicted.eq(targets.data).sum() pbar.set_postfix({'loss': '{0:1.5f}'.format(loss), 'accuracy': '{:.2%}'.format(correct.item() / total)}) pbar.update(1) pbar.close() return net def evaluate(net, test_loader, criterion, best_val_acc, save_name, device): with torch.no_grad(): test_loss = 0 correct = 0 total = 0 with tqdm(total=math.ceil(len(test_loader)), desc='Testing') as pbar: for (batch_idx, (inputs, targets)) in enumerate(test_loader): (inputs, targets) = (inputs.to(device), targets.to(device)) outputs = net(inputs) loss = criterion(outputs, targets) test_loss += loss.item() (_, predicted) = torch.max(outputs.data, 1) total += targets.size(0) correct += predicted.eq(targets.data).sum() pbar.set_postfix({'loss': '{0:1.5f}'.format(loss), 'accuracy': '{:.2%}'.format(correct.item() / total)}) pbar.update(1) pbar.close() acc = 100 * int(correct) / int(total) if acc > best_val_acc: torch.save(net.state_dict(), save_name) best_val_acc = acc return (test_loss / (batch_idx + 1), best_val_acc)
''' You own a Goal Parser that can interpret a string command. The command consists of an alphabet of "G", "()" and/or "(al)" in some order. The Goal Parser will interpret "G" as the string "G", "()" as the string "o", and "(al)" as the string "al". The interpreted strings are then concatenated in the original order. Given the string command, return the Goal Parser's interpretation of command. Example: Input: command = "G()(al)" Output: "Goal" Explanation: The Goal Parser interprets the command as follows: G -> G () -> o (al) -> al The final concatenated result is "Goal". Example: Input: command = "G()()()()(al)" Output: "Gooooal" Example: Input: command = "(al)G(al)()()G" Output: "alGalooG" Constraints: - 1 <= command.length <= 100 - command consists of "G", "()", and/or "(al)" in some order. ''' #Difficulty:Easy #105 / 105 test cases passed. #Runtime: 32 ms #Memory Usage: 14.1 MB #Runtime: 32 ms, faster than 77.40% of Python3 online submissions for Goal Parser Interpretation. #Memory Usage: 14.1 MB, less than 90.67% of Python3 online submissions for Goal Parser Interpretation. class Solution: def interpret(self, command: str) -> str: command = list(command) l = False for i, char in enumerate(command): if char == 'l': l = True elif char == '(': command[i] = '' elif char == ')': command[i] = '' if l else 'o' l = False return ''.join(command)
""" You own a Goal Parser that can interpret a string command. The command consists of an alphabet of "G", "()" and/or "(al)" in some order. The Goal Parser will interpret "G" as the string "G", "()" as the string "o", and "(al)" as the string "al". The interpreted strings are then concatenated in the original order. Given the string command, return the Goal Parser's interpretation of command. Example: Input: command = "G()(al)" Output: "Goal" Explanation: The Goal Parser interprets the command as follows: G -> G () -> o (al) -> al The final concatenated result is "Goal". Example: Input: command = "G()()()()(al)" Output: "Gooooal" Example: Input: command = "(al)G(al)()()G" Output: "alGalooG" Constraints: - 1 <= command.length <= 100 - command consists of "G", "()", and/or "(al)" in some order. """ class Solution: def interpret(self, command: str) -> str: command = list(command) l = False for (i, char) in enumerate(command): if char == 'l': l = True elif char == '(': command[i] = '' elif char == ')': command[i] = '' if l else 'o' l = False return ''.join(command)
def sequencia(): i = 0 j = 1 while i <= 2: for aux in range(3): if int(i) == i: print(f'I={int(i)} J={int(j)}') else: print(f'I={i:.1f} J={j:.1f}') j += 1 j = round(j - 3 + 0.2, 1) i = round(i + 0.2, 1) sequencia()
def sequencia(): i = 0 j = 1 while i <= 2: for aux in range(3): if int(i) == i: print(f'I={int(i)} J={int(j)}') else: print(f'I={i:.1f} J={j:.1f}') j += 1 j = round(j - 3 + 0.2, 1) i = round(i + 0.2, 1) sequencia()
def twoSum( nums, target: int): #Vaule = {}.fromkeys for i in range(len(nums)): a = target - nums[i] for j in range(i+1,len(nums),1): if a == nums[j]: return [i,j] findSum = twoSum(nums = [1,2,3,4,5,6,8],target=14) print(findSum)
def two_sum(nums, target: int): for i in range(len(nums)): a = target - nums[i] for j in range(i + 1, len(nums), 1): if a == nums[j]: return [i, j] find_sum = two_sum(nums=[1, 2, 3, 4, 5, 6, 8], target=14) print(findSum)
# Tot's reward lv 50 sm.completeQuest(5522) # Lv. 50 Equipment box sm.giveItem(2430450, 1) sm.dispose()
sm.completeQuest(5522) sm.giveItem(2430450, 1) sm.dispose()
class Board: def __init__(self): self.board = [0] * 9 def __getitem__(self, n): return self.board[n] def __setitem__(self, n, value): self.board[n] = value def __str__(self): return "\n".join([ "".join([[" ", "o", "x"][j] for j in self.board[3*i:3*i+3]]) for i in range(3) ]) def in_set(self, set): set = [s.n() for s in set] for a in self.permutations(): if a in set: return True return False def is_max(self): return self.n() == max(self.permutations()) def permutations(self): out = [] for rot in [ (0, 1, 2, 3, 4, 5, 6, 7, 8), (2, 5, 8, 1, 4, 7, 0, 3, 6), (8, 7, 6, 5, 4, 3, 2, 1, 0), (6, 3, 0, 7, 4, 1, 8, 5, 2), (2, 1, 0, 5, 4, 3, 8, 7, 6), (8, 5, 2, 7, 4, 1, 6, 3, 0), (6, 7, 8, 3, 4, 5, 0, 1, 2), (0, 3, 6, 1, 4, 7, 2, 5, 8) ]: out.append(self.nrot(rot)) return out def has_winner(self): for i, j, k in [ (0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6) ]: if self[i] != 0 and self[i] == self[j] == self[k]: return True return False def n(self): return self.nrot(list(range(9))) def nrot(self, rot): out = 0 for i in range(9): out += 3 ** i * self[rot[i]] return out def as_latex(self): out = "\\begin{tikzpicture}\n" out += "\\clip (3.75mm,-1mm) rectangle (40.25mm,25mm);\n" out += "\\draw[gray] (5mm,5mm) -- (39mm,5mm);\n" out += "\\draw[gray] (5mm,19mm) -- (39mm,19mm);\n" out += "\\draw[gray] (5mm,0mm) -- (5mm,24mm);\n" out += "\\draw[gray] (39mm,0mm) -- (39mm,24mm);\n" out += "\\draw (16mm,10mm) -- (28mm,10mm);\n" out += "\\draw (16mm,14mm) -- (28mm,14mm);\n" out += "\\draw (20mm,6mm) -- (20mm,18mm);\n" out += "\\draw (24mm,6mm) -- (24mm,18mm);\n" for i, c in enumerate([ (16, 6), (20, 6), (24, 6), (16, 10), (20, 10), (24, 10), (16, 14), (20, 14), (24, 14) ]): if self[i] == 1: # o out += f"\\draw ({c[0]+2}mm,{c[1]+2}mm) circle (1mm);\n" if self[i] == 2: # x out += (f"\\draw ({c[0]+1}mm,{c[1]+1}mm)" f" -- ({c[0]+3}mm,{c[1]+3}mm);\n" f"\\draw ({c[0]+1}mm,{c[1]+3}mm)" f" -- ({c[0]+3}mm,{c[1]+1}mm);\n") out += "\\end{tikzpicture}" return out
class Board: def __init__(self): self.board = [0] * 9 def __getitem__(self, n): return self.board[n] def __setitem__(self, n, value): self.board[n] = value def __str__(self): return '\n'.join([''.join([[' ', 'o', 'x'][j] for j in self.board[3 * i:3 * i + 3]]) for i in range(3)]) def in_set(self, set): set = [s.n() for s in set] for a in self.permutations(): if a in set: return True return False def is_max(self): return self.n() == max(self.permutations()) def permutations(self): out = [] for rot in [(0, 1, 2, 3, 4, 5, 6, 7, 8), (2, 5, 8, 1, 4, 7, 0, 3, 6), (8, 7, 6, 5, 4, 3, 2, 1, 0), (6, 3, 0, 7, 4, 1, 8, 5, 2), (2, 1, 0, 5, 4, 3, 8, 7, 6), (8, 5, 2, 7, 4, 1, 6, 3, 0), (6, 7, 8, 3, 4, 5, 0, 1, 2), (0, 3, 6, 1, 4, 7, 2, 5, 8)]: out.append(self.nrot(rot)) return out def has_winner(self): for (i, j, k) in [(0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)]: if self[i] != 0 and self[i] == self[j] == self[k]: return True return False def n(self): return self.nrot(list(range(9))) def nrot(self, rot): out = 0 for i in range(9): out += 3 ** i * self[rot[i]] return out def as_latex(self): out = '\\begin{tikzpicture}\n' out += '\\clip (3.75mm,-1mm) rectangle (40.25mm,25mm);\n' out += '\\draw[gray] (5mm,5mm) -- (39mm,5mm);\n' out += '\\draw[gray] (5mm,19mm) -- (39mm,19mm);\n' out += '\\draw[gray] (5mm,0mm) -- (5mm,24mm);\n' out += '\\draw[gray] (39mm,0mm) -- (39mm,24mm);\n' out += '\\draw (16mm,10mm) -- (28mm,10mm);\n' out += '\\draw (16mm,14mm) -- (28mm,14mm);\n' out += '\\draw (20mm,6mm) -- (20mm,18mm);\n' out += '\\draw (24mm,6mm) -- (24mm,18mm);\n' for (i, c) in enumerate([(16, 6), (20, 6), (24, 6), (16, 10), (20, 10), (24, 10), (16, 14), (20, 14), (24, 14)]): if self[i] == 1: out += f'\\draw ({c[0] + 2}mm,{c[1] + 2}mm) circle (1mm);\n' if self[i] == 2: out += f'\\draw ({c[0] + 1}mm,{c[1] + 1}mm) -- ({c[0] + 3}mm,{c[1] + 3}mm);\n\\draw ({c[0] + 1}mm,{c[1] + 3}mm) -- ({c[0] + 3}mm,{c[1] + 1}mm);\n' out += '\\end{tikzpicture}' return out
line = input() words = line.split() for word in words: line = line.replace(word, word.capitalize()) print(line)
line = input() words = line.split() for word in words: line = line.replace(word, word.capitalize()) print(line)
expected_output = { 'jid': {1: {'index': {1: {'data': 344, 'dynamic': 0, 'jid': 1, 'process': 'init', 'stack': 136, 'text': 296}}}, 51: {'index': {1: {'data': 1027776, 'dynamic': 5668, 'jid': 51, 'process': 'processmgr', 'stack': 136, 'text': 1372}}}, 53: {'index': {1: {'data': 342500, 'dynamic': 7095, 'jid': 53, 'process': 'dsr', 'stack': 136, 'text': 32}}}, 111: {'index': {1: {'data': 531876, 'dynamic': 514, 'jid': 111, 'process': 'devc-conaux-aux', 'stack': 136, 'text': 8}}}, 112: {'index': {1: {'data': 861144, 'dynamic': 957, 'jid': 112, 'process': 'qsm', 'stack': 136, 'text': 144}}}, 113: {'index': {1: {'data': 400776, 'dynamic': 671, 'jid': 113, 'process': 'spp', 'stack': 136, 'text': 328}}}, 114: {'index': {1: {'data': 531912, 'dynamic': 545, 'jid': 114, 'process': 'devc-conaux-con', 'stack': 136, 'text': 8}}}, 115: {'index': {1: {'data': 662452, 'dynamic': 366, 'jid': 115, 'process': 'syslogd_helper', 'stack': 136, 'text': 52}}}, 118: {'index': {1: {'data': 200748, 'dynamic': 426, 'jid': 118, 'process': 'shmwin_svr', 'stack': 136, 'text': 56}}}, 119: {'index': {1: {'data': 397880, 'dynamic': 828, 'jid': 119, 'process': 'syslog_dev', 'stack': 136, 'text': 12}}}, 121: {'index': {1: {'data': 470008, 'dynamic': 6347, 'jid': 121, 'process': 'calv_alarm_mgr', 'stack': 136, 'text': 504}}}, 122: {'index': {1: {'data': 1003480, 'dynamic': 2838, 'jid': 122, 'process': 'udp', 'stack': 136, 'text': 180}}}, 123: {'index': {1: {'data': 529852, 'dynamic': 389, 'jid': 123, 'process': 'enf_broker', 'stack': 136, 'text': 40}}}, 124: {'index': {1: {'data': 200120, 'dynamic': 351, 'jid': 124, 'process': 'procfs_server', 'stack': 168, 'text': 20}}}, 125: {'index': {1: {'data': 333592, 'dynamic': 1506, 'jid': 125, 'process': 'pifibm_server_rp', 'stack': 136, 'text': 312}}}, 126: {'index': {1: {'data': 399332, 'dynamic': 305, 'jid': 126, 'process': 'ltrace_sync', 'stack': 136, 'text': 28}}}, 127: {'index': {1: {'data': 797548, 'dynamic': 2573, 'jid': 127, 'process': 'ifindex_server', 'stack': 136, 'text': 96}}}, 128: {'index': {1: {'data': 532612, 'dynamic': 3543, 'jid': 128, 'process': 'eem_ed_test', 'stack': 136, 'text': 44}}}, 130: {'index': {1: {'data': 200120, 'dynamic': 257, 'jid': 130, 'process': 'igmp_policy_reg_agent', 'stack': 136, 'text': 8}}}, 132: {'index': {1: {'data': 200628, 'dynamic': 280, 'jid': 132, 'process': 'show_mediang_edm', 'stack': 136, 'text': 20}}}, 134: {'index': {1: {'data': 466168, 'dynamic': 580, 'jid': 134, 'process': 'ipv4_acl_act_agent', 'stack': 136, 'text': 28}}}, 136: {'index': {1: {'data': 997196, 'dynamic': 5618, 'jid': 136, 'process': 'resmon', 'stack': 136, 'text': 188}}}, 137: {'index': {1: {'data': 534184, 'dynamic': 2816, 'jid': 137, 'process': 'bundlemgr_local', 'stack': 136, 'text': 612}}}, 138: {'index': {1: {'data': 200652, 'dynamic': 284, 'jid': 138, 'process': 'chkpt_proxy', 'stack': 136, 'text': 16}}}, 139: {'index': {1: {'data': 200120, 'dynamic': 257, 'jid': 139, 'process': 'lisp_xr_policy_reg_agent', 'stack': 136, 'text': 8}}}, 141: {'index': {1: {'data': 200648, 'dynamic': 246, 'jid': 141, 'process': 'linux_nto_misc_showd', 'stack': 136, 'text': 20}}}, 143: {'index': {1: {'data': 200644, 'dynamic': 247, 'jid': 143, 'process': 'procfind', 'stack': 136, 'text': 20}}}, 146: {'index': {1: {'data': 200240, 'dynamic': 275, 'jid': 146, 'process': 'bgp_policy_reg_agent', 'stack': 136, 'text': 28}}}, 147: {'index': {1: {'data': 201332, 'dynamic': 418, 'jid': 147, 'process': 'type6_server', 'stack': 136, 'text': 68}}}, 149: {'index': {1: {'data': 663524, 'dynamic': 1297, 'jid': 149, 'process': 'clns', 'stack': 136, 'text': 188}}}, 152: {'index': {1: {'data': 532616, 'dynamic': 3541, 'jid': 152, 'process': 'eem_ed_none', 'stack': 136, 'text': 52}}}, 154: {'index': {1: {'data': 729896, 'dynamic': 1046, 'jid': 154, 'process': 'ipv4_acl_mgr', 'stack': 136, 'text': 140}}}, 155: {'index': {1: {'data': 200120, 'dynamic': 261, 'jid': 155, 'process': 'ospf_policy_reg_agent', 'stack': 136, 'text': 12}}}, 157: {'index': {1: {'data': 200908, 'dynamic': 626, 'jid': 157, 'process': 'ssh_key_server', 'stack': 136, 'text': 44}}}, 158: {'index': {1: {'data': 200628, 'dynamic': 285, 'jid': 158, 'process': 'heap_summary_edm', 'stack': 136, 'text': 20}}}, 161: {'index': {1: {'data': 200640, 'dynamic': 297, 'jid': 161, 'process': 'cmp_edm', 'stack': 136, 'text': 16}}}, 162: {'index': {1: {'data': 267456, 'dynamic': 693, 'jid': 162, 'process': 'ip_aps', 'stack': 136, 'text': 52}}}, 166: {'index': {1: {'data': 935480, 'dynamic': 8194, 'jid': 166, 'process': 'mpls_lsd', 'stack': 136, 'text': 1108}}}, 167: {'index': {1: {'data': 730776, 'dynamic': 3649, 'jid': 167, 'process': 'ipv6_ma', 'stack': 136, 'text': 540}}}, 168: {'index': {1: {'data': 266788, 'dynamic': 589, 'jid': 168, 'process': 'nd_partner', 'stack': 136, 'text': 36}}}, 169: {'index': {1: {'data': 735000, 'dynamic': 6057, 'jid': 169, 'process': 'ipsub_ma', 'stack': 136, 'text': 680}}}, 171: {'index': {1: {'data': 266432, 'dynamic': 530, 'jid': 171, 'process': 'shelf_mgr_proxy', 'stack': 136, 'text': 16}}}, 172: {'index': {1: {'data': 200604, 'dynamic': 253, 'jid': 172, 'process': 'early_fast_discard_verifier', 'stack': 136, 'text': 16}}}, 174: {'index': {1: {'data': 200096, 'dynamic': 256, 'jid': 174, 'process': 'bundlemgr_checker', 'stack': 136, 'text': 56}}}, 175: {'index': {1: {'data': 200120, 'dynamic': 248, 'jid': 175, 'process': 'syslog_infra_hm', 'stack': 136, 'text': 12}}}, 177: {'index': {1: {'data': 200112, 'dynamic': 241, 'jid': 177, 'process': 'meminfo_svr', 'stack': 136, 'text': 8}}}, 178: {'index': {1: {'data': 468272, 'dynamic': 2630, 'jid': 178, 'process': 'accounting_ma', 'stack': 136, 'text': 264}}}, 180: {'index': {1: {'data': 1651090, 'dynamic': 242, 'jid': 180, 'process': 'aipc_cleaner', 'stack': 136, 'text': 8}}}, 181: {'index': {1: {'data': 201280, 'dynamic': 329, 'jid': 181, 'process': 'nsr_ping_reply', 'stack': 136, 'text': 16}}}, 182: {'index': {1: {'data': 334236, 'dynamic': 843, 'jid': 182, 'process': 'spio_ma', 'stack': 136, 'text': 4}}}, 183: {'index': {1: {'data': 266788, 'dynamic': 607, 'jid': 183, 'process': 'statsd_server', 'stack': 136, 'text': 40}}}, 184: {'index': {1: {'data': 407016, 'dynamic': 8579, 'jid': 184, 'process': 'subdb_svr', 'stack': 136, 'text': 368}}}, 186: {'index': {1: {'data': 932992, 'dynamic': 3072, 'jid': 186, 'process': 'smartlicserver', 'stack': 136, 'text': 16}}}, 187: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 187, 'process': 'rip_policy_reg_agent', 'stack': 136, 'text': 8}}}, 188: {'index': {1: {'data': 533704, 'dynamic': 3710, 'jid': 188, 'process': 'eem_ed_nd', 'stack': 136, 'text': 60}}}, 189: {'index': {1: {'data': 401488, 'dynamic': 3499, 'jid': 189, 'process': 'ifmgr', 'stack': 136, 'text': 4}}}, 190: {'index': {1: {'data': 1001552, 'dynamic': 3082, 'jid': 190, 'process': 'rdsfs_svr', 'stack': 136, 'text': 196}}}, 191: {'index': {1: {'data': 398300, 'dynamic': 632, 'jid': 191, 'process': 'hostname_sync', 'stack': 136, 'text': 12}}}, 192: {'index': {1: {'data': 466168, 'dynamic': 570, 'jid': 192, 'process': 'l2vpn_policy_reg_agent', 'stack': 136, 'text': 20}}}, 193: {'index': {1: {'data': 665096, 'dynamic': 1405, 'jid': 193, 'process': 'ntpd', 'stack': 136, 'text': 344}}}, 194: {'index': {1: {'data': 794692, 'dynamic': 2629, 'jid': 194, 'process': 'nrssvr', 'stack': 136, 'text': 180}}}, 195: {'index': {1: {'data': 531776, 'dynamic': 748, 'jid': 195, 'process': 'ipv4_io', 'stack': 136, 'text': 256}}}, 196: {'index': {1: {'data': 200624, 'dynamic': 274, 'jid': 196, 'process': 'domain_sync', 'stack': 136, 'text': 16}}}, 197: {'index': {1: {'data': 1015252, 'dynamic': 21870, 'jid': 197, 'process': 'parser_server', 'stack': 136, 'text': 304}}}, 198: {'index': {1: {'data': 532612, 'dynamic': 3540, 'jid': 198, 'process': 'eem_ed_config', 'stack': 136, 'text': 56}}}, 199: {'index': {1: {'data': 200648, 'dynamic': 282, 'jid': 199, 'process': 'cerrno_server', 'stack': 136, 'text': 48}}}, 200: {'index': {1: {'data': 531264, 'dynamic': 1810, 'jid': 200, 'process': 'ipv4_arm', 'stack': 136, 'text': 344}}}, 201: {'index': {1: {'data': 268968, 'dynamic': 1619, 'jid': 201, 'process': 'session_mon', 'stack': 136, 'text': 68}}}, 202: {'index': {1: {'data': 864208, 'dynamic': 3472, 'jid': 202, 'process': 'netio', 'stack': 136, 'text': 292}}}, 204: {'index': {1: {'data': 268932, 'dynamic': 2122, 'jid': 204, 'process': 'ether_caps_partner', 'stack': 136, 'text': 152}}}, 205: {'index': {1: {'data': 201168, 'dynamic': 254, 'jid': 205, 'process': 'sunstone_stats_svr', 'stack': 136, 'text': 28}}}, 206: {'index': {1: {'data': 794684, 'dynamic': 2967, 'jid': 206, 'process': 'sysdb_shared_nc', 'stack': 136, 'text': 4}}}, 207: {'index': {1: {'data': 601736, 'dynamic': 2823, 'jid': 207, 'process': 'yang_server', 'stack': 136, 'text': 268}}}, 208: {'index': {1: {'data': 200096, 'dynamic': 251, 'jid': 208, 'process': 'ipodwdm', 'stack': 136, 'text': 16}}}, 209: {'index': {1: {'data': 200656, 'dynamic': 253, 'jid': 209, 'process': 'crypto_edm', 'stack': 136, 'text': 24}}}, 210: {'index': {1: {'data': 878632, 'dynamic': 13237, 'jid': 210, 'process': 'nvgen_server', 'stack': 136, 'text': 244}}}, 211: {'index': {1: {'data': 334080, 'dynamic': 2169, 'jid': 211, 'process': 'pfilter_ma', 'stack': 136, 'text': 228}}}, 213: {'index': {1: {'data': 531840, 'dynamic': 1073, 'jid': 213, 'process': 'kim', 'stack': 136, 'text': 428}}}, 216: {'index': {1: {'data': 267224, 'dynamic': 451, 'jid': 216, 'process': 'showd_lc', 'stack': 136, 'text': 64}}}, 217: {'index': {1: {'data': 406432, 'dynamic': 4666, 'jid': 217, 'process': 'pppoe_ma', 'stack': 136, 'text': 520}}}, 218: {'index': {1: {'data': 664484, 'dynamic': 2602, 'jid': 218, 'process': 'l2rib', 'stack': 136, 'text': 484}}}, 220: {'index': {1: {'data': 598812, 'dynamic': 3443, 'jid': 220, 'process': 'eem_ed_syslog', 'stack': 136, 'text': 60}}}, 221: {'index': {1: {'data': 267264, 'dynamic': 290, 'jid': 221, 'process': 'lpts_fm', 'stack': 136, 'text': 52}}}, 222: {'index': {1: {'data': 205484, 'dynamic': 5126, 'jid': 222, 'process': 'mpa_fm_svr', 'stack': 136, 'text': 12}}}, 243: {'index': {1: {'data': 267576, 'dynamic': 990, 'jid': 243, 'process': 'spio_ea', 'stack': 136, 'text': 8}}}, 244: {'index': {1: {'data': 200632, 'dynamic': 247, 'jid': 244, 'process': 'mempool_edm', 'stack': 136, 'text': 8}}}, 245: {'index': {1: {'data': 532624, 'dynamic': 3541, 'jid': 245, 'process': 'eem_ed_counter', 'stack': 136, 'text': 48}}}, 247: {'index': {1: {'data': 1010268, 'dynamic': 1923, 'jid': 247, 'process': 'cfgmgr-rp', 'stack': 136, 'text': 344}}}, 248: {'index': {1: {'data': 465260, 'dynamic': 1243, 'jid': 248, 'process': 'alarm-logger', 'stack': 136, 'text': 104}}}, 249: {'index': {1: {'data': 797376, 'dynamic': 1527, 'jid': 249, 'process': 'locald_DLRSC', 'stack': 136, 'text': 604}}}, 250: {'index': {1: {'data': 265800, 'dynamic': 438, 'jid': 250, 'process': 'lcp_mgr', 'stack': 136, 'text': 12}}}, 251: {'index': {1: {'data': 265840, 'dynamic': 712, 'jid': 251, 'process': 'tamfs', 'stack': 136, 'text': 32}}}, 252: {'index': {1: {'data': 531384, 'dynamic': 7041, 'jid': 252, 'process': 'sysdb_svr_local', 'stack': 136, 'text': 4}}}, 253: {'index': {1: {'data': 200672, 'dynamic': 256, 'jid': 253, 'process': 'tty_show_users_edm', 'stack': 136, 'text': 32}}}, 254: {'index': {1: {'data': 534032, 'dynamic': 4463, 'jid': 254, 'process': 'eem_ed_generic', 'stack': 136, 'text': 96}}}, 255: {'index': {1: {'data': 201200, 'dynamic': 409, 'jid': 255, 'process': 'ipv6_acl_cfg_agent', 'stack': 136, 'text': 32}}}, 256: {'index': {1: {'data': 334104, 'dynamic': 756, 'jid': 256, 'process': 'mpls_vpn_mib', 'stack': 136, 'text': 156}}}, 257: {'index': {1: {'data': 267888, 'dynamic': 339, 'jid': 257, 'process': 'bundlemgr_adj', 'stack': 136, 'text': 156}}}, 258: {'index': {1: {'data': 1651090, 'dynamic': 244, 'jid': 258, 'process': 'file_paltx', 'stack': 136, 'text': 16}}}, 259: {'index': {1: {'data': 1000600, 'dynamic': 6088, 'jid': 259, 'process': 'ipv6_nd', 'stack': 136, 'text': 1016}}}, 260: {'index': {1: {'data': 533044, 'dynamic': 1793, 'jid': 260, 'process': 'sdr_instagt', 'stack': 136, 'text': 260}}}, 261: {'index': {1: {'data': 334860, 'dynamic': 806, 'jid': 261, 'process': 'ipsec_pp', 'stack': 136, 'text': 220}}}, 266: {'index': {1: {'data': 266344, 'dynamic': 717, 'jid': 266, 'process': 'pm_server', 'stack': 136, 'text': 92}}}, 267: {'index': {1: {'data': 598760, 'dynamic': 2768, 'jid': 267, 'process': 'object_tracking', 'stack': 136, 'text': 204}}}, 268: {'index': {1: {'data': 200700, 'dynamic': 417, 'jid': 268, 'process': 'wdsysmon_fd_edm', 'stack': 136, 'text': 20}}}, 269: {'index': {1: {'data': 664752, 'dynamic': 2513, 'jid': 269, 'process': 'eth_mgmt', 'stack': 136, 'text': 60}}}, 270: {'index': {1: {'data': 200064, 'dynamic': 257, 'jid': 270, 'process': 'gcp_fib_verifier', 'stack': 136, 'text': 20}}}, 271: {'index': {1: {'data': 400624, 'dynamic': 2348, 'jid': 271, 'process': 'rsi_agent', 'stack': 136, 'text': 580}}}, 272: {'index': {1: {'data': 794692, 'dynamic': 1425, 'jid': 272, 'process': 'nrssvr_global', 'stack': 136, 'text': 180}}}, 273: {'index': {1: {'data': 494124, 'dynamic': 19690, 'jid': 273, 'process': 'invmgr_proxy', 'stack': 136, 'text': 112}}}, 275: {'index': {1: {'data': 199552, 'dynamic': 264, 'jid': 275, 'process': 'nsr_fo', 'stack': 136, 'text': 12}}}, 276: {'index': {1: {'data': 202328, 'dynamic': 436, 'jid': 276, 'process': 'mpls_fwd_show_proxy', 'stack': 136, 'text': 204}}}, 277: {'index': {1: {'data': 267112, 'dynamic': 688, 'jid': 277, 'process': 'tam_sync', 'stack': 136, 'text': 44}}}, 278: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 278, 'process': 'mldp_policy_reg_agent', 'stack': 136, 'text': 8}}}, 290: {'index': {1: {'data': 200640, 'dynamic': 262, 'jid': 290, 'process': 'sh_proc_mem_edm', 'stack': 136, 'text': 20}}}, 291: {'index': {1: {'data': 794684, 'dynamic': 3678, 'jid': 291, 'process': 'sysdb_shared_sc', 'stack': 136, 'text': 4}}}, 293: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 293, 'process': 'pim6_policy_reg_agent', 'stack': 136, 'text': 8}}}, 294: {'index': {1: {'data': 267932, 'dynamic': 1495, 'jid': 294, 'process': 'issumgr', 'stack': 136, 'text': 560}}}, 295: {'index': {1: {'data': 266744, 'dynamic': 296, 'jid': 295, 'process': 'vlan_ea', 'stack': 136, 'text': 220}}}, 296: {'index': {1: {'data': 796404, 'dynamic': 1902, 'jid': 296, 'process': 'correlatord', 'stack': 136, 'text': 292}}}, 297: {'index': {1: {'data': 201304, 'dynamic': 367, 'jid': 297, 'process': 'imaedm_server', 'stack': 136, 'text': 56}}}, 298: {'index': {1: {'data': 200224, 'dynamic': 246, 'jid': 298, 'process': 'ztp_cfg', 'stack': 136, 'text': 12}}}, 299: {'index': {1: {'data': 268000, 'dynamic': 459, 'jid': 299, 'process': 'ipv6_ea', 'stack': 136, 'text': 92}}}, 301: {'index': {1: {'data': 200644, 'dynamic': 250, 'jid': 301, 'process': 'sysmgr_show_proc_all_edm', 'stack': 136, 'text': 88}}}, 303: {'index': {1: {'data': 399360, 'dynamic': 882, 'jid': 303, 'process': 'tftp_fs', 'stack': 136, 'text': 68}}}, 304: {'index': {1: {'data': 202220, 'dynamic': 306, 'jid': 304, 'process': 'ncd', 'stack': 136, 'text': 32}}}, 305: {'index': {1: {'data': 1001716, 'dynamic': 9508, 'jid': 305, 'process': 'gsp', 'stack': 136, 'text': 1096}}}, 306: {'index': {1: {'data': 794684, 'dynamic': 1792, 'jid': 306, 'process': 'sysdb_svr_admin', 'stack': 136, 'text': 4}}}, 308: {'index': {1: {'data': 333172, 'dynamic': 538, 'jid': 308, 'process': 'devc-vty', 'stack': 136, 'text': 8}}}, 309: {'index': {1: {'data': 1012628, 'dynamic': 9404, 'jid': 309, 'process': 'tcp', 'stack': 136, 'text': 488}}}, 310: {'index': {1: {'data': 333572, 'dynamic': 2092, 'jid': 310, 'process': 'daps', 'stack': 136, 'text': 512}}}, 312: {'index': {1: {'data': 200620, 'dynamic': 283, 'jid': 312, 'process': 'ipv6_assembler', 'stack': 136, 'text': 36}}}, 313: {'index': {1: {'data': 199844, 'dynamic': 551, 'jid': 313, 'process': 'ssh_key_client', 'stack': 136, 'text': 48}}}, 314: {'index': {1: {'data': 332076, 'dynamic': 371, 'jid': 314, 'process': 'timezone_config', 'stack': 136, 'text': 28}}}, 316: {'index': {1: {'data': 531560, 'dynamic': 2016, 'jid': 316, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 317: {'index': {1: {'data': 531560, 'dynamic': 2015, 'jid': 317, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 318: {'index': {1: {'data': 532344, 'dynamic': 2874, 'jid': 318, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 319: {'index': {1: {'data': 532344, 'dynamic': 2874, 'jid': 319, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 320: {'index': {1: {'data': 531556, 'dynamic': 2013, 'jid': 320, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 326: {'index': {1: {'data': 398256, 'dynamic': 348, 'jid': 326, 'process': 'sld', 'stack': 136, 'text': 116}}}, 327: {'index': {1: {'data': 997196, 'dynamic': 3950, 'jid': 327, 'process': 'eem_policy_dir', 'stack': 136, 'text': 268}}}, 329: {'index': {1: {'data': 267464, 'dynamic': 434, 'jid': 329, 'process': 'mpls_io_ea', 'stack': 136, 'text': 108}}}, 332: {'index': {1: {'data': 332748, 'dynamic': 276, 'jid': 332, 'process': 'redstatsd', 'stack': 136, 'text': 20}}}, 333: {'index': {1: {'data': 799488, 'dynamic': 4511, 'jid': 333, 'process': 'rsi_master', 'stack': 136, 'text': 404}}}, 334: {'index': {1: {'data': 333648, 'dynamic': 351, 'jid': 334, 'process': 'sconbkup', 'stack': 136, 'text': 12}}}, 336: {'index': {1: {'data': 199440, 'dynamic': 204, 'jid': 336, 'process': 'pam_manager', 'stack': 136, 'text': 12}}}, 337: {'index': {1: {'data': 600644, 'dynamic': 3858, 'jid': 337, 'process': 'nve_mgr', 'stack': 136, 'text': 204}}}, 339: {'index': {1: {'data': 266800, 'dynamic': 679, 'jid': 339, 'process': 'rmf_svr', 'stack': 136, 'text': 140}}}, 341: {'index': {1: {'data': 465864, 'dynamic': 1145, 'jid': 341, 'process': 'ipv6_io', 'stack': 136, 'text': 160}}}, 342: {'index': {1: {'data': 864468, 'dynamic': 1011, 'jid': 342, 'process': 'syslogd', 'stack': 136, 'text': 224}}}, 343: {'index': {1: {'data': 663932, 'dynamic': 1013, 'jid': 343, 'process': 'ipv6_acl_daemon', 'stack': 136, 'text': 212}}}, 344: {'index': {1: {'data': 996048, 'dynamic': 2352, 'jid': 344, 'process': 'plat_sl_client', 'stack': 136, 'text': 108}}}, 346: {'index': {1: {'data': 598152, 'dynamic': 778, 'jid': 346, 'process': 'cinetd', 'stack': 136, 'text': 136}}}, 347: {'index': {1: {'data': 200648, 'dynamic': 261, 'jid': 347, 'process': 'debug_d', 'stack': 136, 'text': 24}}}, 349: {'index': {1: {'data': 200612, 'dynamic': 284, 'jid': 349, 'process': 'debug_d_admin', 'stack': 136, 'text': 20}}}, 350: {'index': {1: {'data': 399188, 'dynamic': 1344, 'jid': 350, 'process': 'vm-monitor', 'stack': 136, 'text': 72}}}, 352: {'index': {1: {'data': 465844, 'dynamic': 1524, 'jid': 352, 'process': 'lpts_pa', 'stack': 136, 'text': 308}}}, 353: {'index': {1: {'data': 1002896, 'dynamic': 5160, 'jid': 353, 'process': 'call_home', 'stack': 136, 'text': 728}}}, 355: {'index': {1: {'data': 994116, 'dynamic': 7056, 'jid': 355, 'process': 'eem_server', 'stack': 136, 'text': 292}}}, 356: {'index': {1: {'data': 200720, 'dynamic': 396, 'jid': 356, 'process': 'tcl_secure_mode', 'stack': 136, 'text': 8}}}, 357: {'index': {1: {'data': 202040, 'dynamic': 486, 'jid': 357, 'process': 'tamsvcs_tamm', 'stack': 136, 'text': 36}}}, 359: {'index': {1: {'data': 531256, 'dynamic': 1788, 'jid': 359, 'process': 'ipv6_arm', 'stack': 136, 'text': 328}}}, 360: {'index': {1: {'data': 201196, 'dynamic': 363, 'jid': 360, 'process': 'fwd_driver_partner', 'stack': 136, 'text': 88}}}, 361: {'index': {1: {'data': 533872, 'dynamic': 2637, 'jid': 361, 'process': 'ipv6_mfwd_partner', 'stack': 136, 'text': 836}}}, 362: {'index': {1: {'data': 932680, 'dynamic': 3880, 'jid': 362, 'process': 'arp', 'stack': 136, 'text': 728}}}, 363: {'index': {1: {'data': 202024, 'dynamic': 522, 'jid': 363, 'process': 'cepki', 'stack': 136, 'text': 96}}}, 364: {'index': {1: {'data': 1001736, 'dynamic': 4343, 'jid': 364, 'process': 'fib_mgr', 'stack': 136, 'text': 3580}}}, 365: {'index': {1: {'data': 269016, 'dynamic': 2344, 'jid': 365, 'process': 'pim_ma', 'stack': 136, 'text': 56}}}, 368: {'index': {1: {'data': 1002148, 'dynamic': 3111, 'jid': 368, 'process': 'raw_ip', 'stack': 136, 'text': 124}}}, 369: {'index': {1: {'data': 464272, 'dynamic': 625, 'jid': 369, 'process': 'ltrace_server', 'stack': 136, 'text': 40}}}, 371: {'index': {1: {'data': 200572, 'dynamic': 279, 'jid': 371, 'process': 'netio_debug_partner', 'stack': 136, 'text': 24}}}, 372: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 372, 'process': 'pim_policy_reg_agent', 'stack': 136, 'text': 8}}}, 373: {'index': {1: {'data': 333240, 'dynamic': 1249, 'jid': 373, 'process': 'policymgr_rp', 'stack': 136, 'text': 592}}}, 375: {'index': {1: {'data': 200624, 'dynamic': 290, 'jid': 375, 'process': 'loopback_caps_partner', 'stack': 136, 'text': 32}}}, 376: {'index': {1: {'data': 467420, 'dynamic': 3815, 'jid': 376, 'process': 'eem_ed_sysmgr', 'stack': 136, 'text': 76}}}, 377: {'index': {1: {'data': 333636, 'dynamic': 843, 'jid': 377, 'process': 'mpls_io', 'stack': 136, 'text': 140}}}, 378: {'index': {1: {'data': 200120, 'dynamic': 258, 'jid': 378, 'process': 'ospfv3_policy_reg_agent', 'stack': 136, 'text': 8}}}, 380: {'index': {1: {'data': 333604, 'dynamic': 520, 'jid': 380, 'process': 'fhrp_output', 'stack': 136, 'text': 124}}}, 381: {'index': {1: {'data': 533872, 'dynamic': 2891, 'jid': 381, 'process': 'ipv4_mfwd_partner', 'stack': 136, 'text': 828}}}, 382: {'index': {1: {'data': 465388, 'dynamic': 538, 'jid': 382, 'process': 'packet', 'stack': 136, 'text': 132}}}, 383: {'index': {1: {'data': 333284, 'dynamic': 359, 'jid': 383, 'process': 'dumper', 'stack': 136, 'text': 40}}}, 384: {'index': {1: {'data': 200636, 'dynamic': 244, 'jid': 384, 'process': 'showd_server', 'stack': 136, 'text': 12}}}, 385: {'index': {1: {'data': 603424, 'dynamic': 3673, 'jid': 385, 'process': 'ipsec_mp', 'stack': 136, 'text': 592}}}, 388: {'index': {1: {'data': 729160, 'dynamic': 836, 'jid': 388, 'process': 'bcdl_agent', 'stack': 136, 'text': 176}}}, 389: {'index': {1: {'data': 729880, 'dynamic': 1066, 'jid': 389, 'process': 'bcdl_agent', 'stack': 136, 'text': 176}}}, 390: {'index': {1: {'data': 663828, 'dynamic': 1384, 'jid': 390, 'process': 'bcdl_agent', 'stack': 136, 'text': 176}}}, 391: {'index': {1: {'data': 795416, 'dynamic': 1063, 'jid': 391, 'process': 'bcdl_agent', 'stack': 136, 'text': 176}}}, 401: {'index': {1: {'data': 466148, 'dynamic': 579, 'jid': 401, 'process': 'es_acl_act_agent', 'stack': 136, 'text': 20}}}, 402: {'index': {1: {'data': 597352, 'dynamic': 1456, 'jid': 402, 'process': 'vi_config_replicator', 'stack': 136, 'text': 40}}}, 403: {'index': {1: {'data': 532624, 'dynamic': 3546, 'jid': 403, 'process': 'eem_ed_timer', 'stack': 136, 'text': 64}}}, 405: {'index': {1: {'data': 664196, 'dynamic': 2730, 'jid': 405, 'process': 'pm_collector', 'stack': 136, 'text': 732}}}, 406: {'index': {1: {'data': 868076, 'dynamic': 5739, 'jid': 406, 'process': 'ppp_ma', 'stack': 136, 'text': 1268}}}, 407: {'index': {1: {'data': 794684, 'dynamic': 1753, 'jid': 407, 'process': 'sysdb_shared_data_nc', 'stack': 136, 'text': 4}}}, 408: {'index': {1: {'data': 415316, 'dynamic': 16797, 'jid': 408, 'process': 'statsd_manager_l', 'stack': 136, 'text': 4}}}, 409: {'index': {1: {'data': 946780, 'dynamic': 16438, 'jid': 409, 'process': 'iedged', 'stack': 136, 'text': 1824}}}, 411: {'index': {1: {'data': 542460, 'dynamic': 17658, 'jid': 411, 'process': 'sysdb_mc', 'stack': 136, 'text': 388}}}, 412: {'index': {1: {'data': 1003624, 'dynamic': 5783, 'jid': 412, 'process': 'l2fib_mgr', 'stack': 136, 'text': 1808}}}, 413: {'index': {1: {'data': 401532, 'dynamic': 2851, 'jid': 413, 'process': 'aib', 'stack': 136, 'text': 256}}}, 414: {'index': {1: {'data': 266776, 'dynamic': 440, 'jid': 414, 'process': 'rmf_cli_edm', 'stack': 136, 'text': 32}}}, 415: {'index': {1: {'data': 399116, 'dynamic': 895, 'jid': 415, 'process': 'ether_sock', 'stack': 136, 'text': 28}}}, 416: {'index': {1: {'data': 200980, 'dynamic': 275, 'jid': 416, 'process': 'shconf-edm', 'stack': 136, 'text': 32}}}, 417: {'index': {1: {'data': 532108, 'dynamic': 3623, 'jid': 417, 'process': 'eem_ed_stats', 'stack': 136, 'text': 60}}}, 418: {'index': {1: {'data': 532288, 'dynamic': 2306, 'jid': 418, 'process': 'ipv4_ma', 'stack': 136, 'text': 540}}}, 419: {'index': {1: {'data': 689020, 'dynamic': 15522, 'jid': 419, 'process': 'sdr_invmgr', 'stack': 136, 'text': 144}}}, 420: {'index': {1: {'data': 466456, 'dynamic': 1661, 'jid': 420, 'process': 'http_client', 'stack': 136, 'text': 96}}}, 421: {'index': {1: {'data': 201152, 'dynamic': 285, 'jid': 421, 'process': 'pak_capture_partner', 'stack': 136, 'text': 16}}}, 422: {'index': {1: {'data': 200016, 'dynamic': 267, 'jid': 422, 'process': 'bag_schema_svr', 'stack': 136, 'text': 36}}}, 424: {'index': {1: {'data': 604932, 'dynamic': 8135, 'jid': 424, 'process': 'issudir', 'stack': 136, 'text': 212}}}, 425: {'index': {1: {'data': 466796, 'dynamic': 1138, 'jid': 425, 'process': 'l2snoop', 'stack': 136, 'text': 104}}}, 426: {'index': {1: {'data': 331808, 'dynamic': 444, 'jid': 426, 'process': 'ssm_process', 'stack': 136, 'text': 56}}}, 427: {'index': {1: {'data': 200120, 'dynamic': 245, 'jid': 427, 'process': 'media_server', 'stack': 136, 'text': 16}}}, 428: {'index': {1: {'data': 267340, 'dynamic': 432, 'jid': 428, 'process': 'ip_app', 'stack': 136, 'text': 48}}}, 429: {'index': {1: {'data': 269032, 'dynamic': 2344, 'jid': 429, 'process': 'pim6_ma', 'stack': 136, 'text': 56}}}, 431: {'index': {1: {'data': 200416, 'dynamic': 390, 'jid': 431, 'process': 'local_sock', 'stack': 136, 'text': 16}}}, 432: {'index': {1: {'data': 265704, 'dynamic': 269, 'jid': 432, 'process': 'crypto_monitor', 'stack': 136, 'text': 68}}}, 433: {'index': {1: {'data': 597624, 'dynamic': 1860, 'jid': 433, 'process': 'ema_server_sdr', 'stack': 136, 'text': 112}}}, 434: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 434, 'process': 'isis_policy_reg_agent', 'stack': 136, 'text': 8}}}, 435: {'index': {1: {'data': 200120, 'dynamic': 261, 'jid': 435, 'process': 'eigrp_policy_reg_agent', 'stack': 136, 'text': 12}}}, 437: {'index': {1: {'data': 794096, 'dynamic': 776, 'jid': 437, 'process': 'cdm_rs', 'stack': 136, 'text': 80}}}, 1003: {'index': {1: {'data': 798196, 'dynamic': 3368, 'jid': 1003, 'process': 'eigrp', 'stack': 136, 'text': 936}}}, 1011: {'index': {1: {'data': 1006776, 'dynamic': 8929, 'jid': 1011, 'process': 'isis', 'stack': 136, 'text': 4888}}}, 1012: {'index': {1: {'data': 1006776, 'dynamic': 8925, 'jid': 1012, 'process': 'isis', 'stack': 136, 'text': 4888}}}, 1027: {'index': {1: {'data': 1012376, 'dynamic': 14258, 'jid': 1027, 'process': 'ospf', 'stack': 136, 'text': 2880}}}, 1046: {'index': {1: {'data': 804288, 'dynamic': 8673, 'jid': 1046, 'process': 'ospfv3', 'stack': 136, 'text': 1552}}}, 1066: {'index': {1: {'data': 333188, 'dynamic': 1084, 'jid': 1066, 'process': 'autorp_candidate_rp', 'stack': 136, 'text': 52}}}, 1067: {'index': {1: {'data': 532012, 'dynamic': 1892, 'jid': 1067, 'process': 'autorp_map_agent', 'stack': 136, 'text': 84}}}, 1071: {'index': {1: {'data': 998992, 'dynamic': 5498, 'jid': 1071, 'process': 'msdp', 'stack': 136, 'text': 484}}}, 1074: {'index': {1: {'data': 599436, 'dynamic': 1782, 'jid': 1074, 'process': 'rip', 'stack': 136, 'text': 296}}}, 1078: {'index': {1: {'data': 1045796, 'dynamic': 40267, 'jid': 1078, 'process': 'bgp', 'stack': 136, 'text': 2408}}}, 1093: {'index': {1: {'data': 668844, 'dynamic': 3577, 'jid': 1093, 'process': 'bpm', 'stack': 136, 'text': 716}}}, 1101: {'index': {1: {'data': 266776, 'dynamic': 602, 'jid': 1101, 'process': 'cdp_mgr', 'stack': 136, 'text': 24}}}, 1113: {'index': {1: {'data': 200096, 'dynamic': 251, 'jid': 1113, 'process': 'eigrp_uv', 'stack': 136, 'text': 48}}}, 1114: {'index': {1: {'data': 1084008, 'dynamic': 45594, 'jid': 1114, 'process': 'emsd', 'stack': 136, 'text': 10636}}}, 1128: {'index': {1: {'data': 200156, 'dynamic': 284, 'jid': 1128, 'process': 'isis_uv', 'stack': 136, 'text': 84}}}, 1130: {'index': {1: {'data': 599144, 'dynamic': 2131, 'jid': 1130, 'process': 'lldp_agent', 'stack': 136, 'text': 412}}}, 1135: {'index': {1: {'data': 1052648, 'dynamic': 24083, 'jid': 1135, 'process': 'netconf', 'stack': 136, 'text': 772}}}, 1136: {'index': {1: {'data': 600036, 'dynamic': 795, 'jid': 1136, 'process': 'netconf_agent_tty', 'stack': 136, 'text': 20}}}, 1139: {'index': {1: {'data': 200092, 'dynamic': 259, 'jid': 1139, 'process': 'ospf_uv', 'stack': 136, 'text': 48}}}, 1140: {'index': {1: {'data': 200092, 'dynamic': 258, 'jid': 1140, 'process': 'ospfv3_uv', 'stack': 136, 'text': 32}}}, 1147: {'index': {1: {'data': 808524, 'dynamic': 5098, 'jid': 1147, 'process': 'sdr_mgbl_proxy', 'stack': 136, 'text': 464}}}, 1221: {'index': {1: {'data': 200848, 'dynamic': 503, 'jid': 1221, 'process': 'ssh_conf_verifier', 'stack': 136, 'text': 32}}}, 1233: {'index': {1: {'data': 399212, 'dynamic': 1681, 'jid': 1233, 'process': 'mpls_static', 'stack': 136, 'text': 252}}}, 1234: {'index': {1: {'data': 464512, 'dynamic': 856, 'jid': 1234, 'process': 'lldp_mgr', 'stack': 136, 'text': 100}}}, 1235: {'index': {1: {'data': 665416, 'dynamic': 1339, 'jid': 1235, 'process': 'intf_mgbl', 'stack': 136, 'text': 212}}}, 1236: {'index': {1: {'data': 546924, 'dynamic': 17047, 'jid': 1236, 'process': 'statsd_manager_g', 'stack': 136, 'text': 4}}}, 1237: {'index': {1: {'data': 201996, 'dynamic': 1331, 'jid': 1237, 'process': 'ipv4_mfwd_ma', 'stack': 136, 'text': 144}}}, 1238: {'index': {1: {'data': 1015244, 'dynamic': 22504, 'jid': 1238, 'process': 'ipv4_rib', 'stack': 136, 'text': 1008}}}, 1239: {'index': {1: {'data': 201364, 'dynamic': 341, 'jid': 1239, 'process': 'ipv6_mfwd_ma', 'stack': 136, 'text': 136}}}, 1240: {'index': {1: {'data': 951448, 'dynamic': 26381, 'jid': 1240, 'process': 'ipv6_rib', 'stack': 136, 'text': 1160}}}, 1241: {'index': {1: {'data': 873952, 'dynamic': 11135, 'jid': 1241, 'process': 'mrib', 'stack': 136, 'text': 1536}}}, 1242: {'index': {1: {'data': 873732, 'dynamic': 11043, 'jid': 1242, 'process': 'mrib6', 'stack': 136, 'text': 1516}}}, 1243: {'index': {1: {'data': 800236, 'dynamic': 3444, 'jid': 1243, 'process': 'policy_repository', 'stack': 136, 'text': 472}}}, 1244: {'index': {1: {'data': 399440, 'dynamic': 892, 'jid': 1244, 'process': 'ipv4_mpa', 'stack': 136, 'text': 160}}}, 1245: {'index': {1: {'data': 399444, 'dynamic': 891, 'jid': 1245, 'process': 'ipv6_mpa', 'stack': 136, 'text': 160}}}, 1246: {'index': {1: {'data': 200664, 'dynamic': 261, 'jid': 1246, 'process': 'eth_gl_cfg', 'stack': 136, 'text': 20}}}, 1247: {'index': {1: {'data': 941936, 'dynamic': 13246, 'jid': 1247, 'process': 'igmp', 'stack': 144, 'text': 980}}}, 1248: {'index': {1: {'data': 267440, 'dynamic': 677, 'jid': 1248, 'process': 'ipv4_connected', 'stack': 136, 'text': 4}}}, 1249: {'index': {1: {'data': 267424, 'dynamic': 677, 'jid': 1249, 'process': 'ipv4_local', 'stack': 136, 'text': 4}}}, 1250: {'index': {1: {'data': 267436, 'dynamic': 680, 'jid': 1250, 'process': 'ipv6_connected', 'stack': 136, 'text': 4}}}, 1251: {'index': {1: {'data': 267420, 'dynamic': 681, 'jid': 1251, 'process': 'ipv6_local', 'stack': 136, 'text': 4}}}, 1252: {'index': {1: {'data': 940472, 'dynamic': 12973, 'jid': 1252, 'process': 'mld', 'stack': 136, 'text': 928}}}, 1253: {'index': {1: {'data': 1018740, 'dynamic': 22744, 'jid': 1253, 'process': 'pim', 'stack': 136, 'text': 4424}}}, 1254: {'index': {1: {'data': 1017788, 'dynamic': 22444, 'jid': 1254, 'process': 'pim6', 'stack': 136, 'text': 4544}}}, 1255: {'index': {1: {'data': 799148, 'dynamic': 4916, 'jid': 1255, 'process': 'bundlemgr_distrib', 'stack': 136, 'text': 2588}}}, 1256: {'index': {1: {'data': 999524, 'dynamic': 7871, 'jid': 1256, 'process': 'bfd', 'stack': 136, 'text': 1512}}}, 1257: {'index': {1: {'data': 268092, 'dynamic': 1903, 'jid': 1257, 'process': 'bgp_epe', 'stack': 136, 'text': 60}}}, 1258: {'index': {1: {'data': 268016, 'dynamic': 493, 'jid': 1258, 'process': 'domain_services', 'stack': 136, 'text': 136}}}, 1259: {'index': {1: {'data': 201184, 'dynamic': 272, 'jid': 1259, 'process': 'ethernet_stats_controller_edm', 'stack': 136, 'text': 32}}}, 1260: {'index': {1: {'data': 399868, 'dynamic': 874, 'jid': 1260, 'process': 'ftp_fs', 'stack': 136, 'text': 64}}}, 1261: {'index': {1: {'data': 206536, 'dynamic': 2468, 'jid': 1261, 'process': 'python_process_manager', 'stack': 136, 'text': 12}}}, 1262: {'index': {1: {'data': 200360, 'dynamic': 421, 'jid': 1262, 'process': 'tty_verifyd', 'stack': 136, 'text': 8}}}, 1263: {'index': {1: {'data': 265924, 'dynamic': 399, 'jid': 1263, 'process': 'ipv4_rump', 'stack': 136, 'text': 60}}}, 1264: {'index': {1: {'data': 265908, 'dynamic': 394, 'jid': 1264, 'process': 'ipv6_rump', 'stack': 136, 'text': 108}}}, 1265: {'index': {1: {'data': 729900, 'dynamic': 1030, 'jid': 1265, 'process': 'es_acl_mgr', 'stack': 136, 'text': 56}}}, 1266: {'index': {1: {'data': 530424, 'dynamic': 723, 'jid': 1266, 'process': 'rt_check_mgr', 'stack': 136, 'text': 104}}}, 1267: {'index': {1: {'data': 336304, 'dynamic': 2594, 'jid': 1267, 'process': 'pbr_ma', 'stack': 136, 'text': 184}}}, 1268: {'index': {1: {'data': 466552, 'dynamic': 2107, 'jid': 1268, 'process': 'qos_ma', 'stack': 136, 'text': 876}}}, 1269: {'index': {1: {'data': 334576, 'dynamic': 975, 'jid': 1269, 'process': 'vservice_mgr', 'stack': 136, 'text': 60}}}, 1270: {'index': {1: {'data': 1000676, 'dynamic': 5355, 'jid': 1270, 'process': 'mpls_ldp', 'stack': 136, 'text': 2952}}}, 1271: {'index': {1: {'data': 1002132, 'dynamic': 6985, 'jid': 1271, 'process': 'xtc_agent', 'stack': 136, 'text': 1948}}}, 1272: {'index': {1: {'data': 1017288, 'dynamic': 14858, 'jid': 1272, 'process': 'l2vpn_mgr', 'stack': 136, 'text': 5608}}}, 1273: {'index': {1: {'data': 424, 'dynamic': 0, 'jid': 1273, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 1274: {'index': {1: {'data': 202200, 'dynamic': 1543, 'jid': 1274, 'process': 'cmpp', 'stack': 136, 'text': 60}}}, 1275: {'index': {1: {'data': 334624, 'dynamic': 1555, 'jid': 1275, 'process': 'l2tp_mgr', 'stack': 136, 'text': 960}}}, 1276: {'index': {1: {'data': 223128, 'dynamic': 16781, 'jid': 1276, 'process': 'schema_server', 'stack': 136, 'text': 80}}}, 1277: {'index': {1: {'data': 670692, 'dynamic': 6660, 'jid': 1277, 'process': 'sdr_instmgr', 'stack': 136, 'text': 1444}}}, 1278: {'index': {1: {'data': 1004336, 'dynamic': 436, 'jid': 1278, 'process': 'snmppingd', 'stack': 136, 'text': 24}}}, 1279: {'index': {1: {'data': 200120, 'dynamic': 263, 'jid': 1279, 'process': 'ssh_backup_server', 'stack': 136, 'text': 100}}}, 1280: {'index': {1: {'data': 398960, 'dynamic': 835, 'jid': 1280, 'process': 'ssh_server', 'stack': 136, 'text': 228}}}, 1281: {'index': {1: {'data': 399312, 'dynamic': 1028, 'jid': 1281, 'process': 'tc_server', 'stack': 136, 'text': 240}}}, 1282: {'index': {1: {'data': 200636, 'dynamic': 281, 'jid': 1282, 'process': 'wanphy_proc', 'stack': 136, 'text': 12}}}, 67280: {'index': {1: {'data': 204, 'dynamic': 0, 'jid': 67280, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67321: {'index': {1: {'data': 132, 'dynamic': 0, 'jid': 67321, 'process': 'sh', 'stack': 136, 'text': 1016}}}, 67322: {'index': {1: {'data': 204, 'dynamic': 0, 'jid': 67322, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67338: {'index': {1: {'data': 40, 'dynamic': 0, 'jid': 67338, 'process': 'cgroup_oom', 'stack': 136, 'text': 8}}}, 67493: {'index': {1: {'data': 176, 'dynamic': 0, 'jid': 67493, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67499: {'index': {1: {'data': 624, 'dynamic': 0, 'jid': 67499, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67513: {'index': {1: {'data': 256, 'dynamic': 0, 'jid': 67513, 'process': 'inotifywait', 'stack': 136, 'text': 24}}}, 67514: {'index': {1: {'data': 636, 'dynamic': 0, 'jid': 67514, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67563: {'index': {1: {'data': 8408, 'dynamic': 0, 'jid': 67563, 'process': 'dbus-daemon', 'stack': 136, 'text': 408}}}, 67582: {'index': {1: {'data': 440, 'dynamic': 0, 'jid': 67582, 'process': 'sshd', 'stack': 136, 'text': 704}}}, 67592: {'index': {1: {'data': 200, 'dynamic': 0, 'jid': 67592, 'process': 'rpcbind', 'stack': 136, 'text': 44}}}, 67686: {'index': {1: {'data': 244, 'dynamic': 0, 'jid': 67686, 'process': 'rngd', 'stack': 136, 'text': 20}}}, 67692: {'index': {1: {'data': 176, 'dynamic': 0, 'jid': 67692, 'process': 'syslogd', 'stack': 136, 'text': 44}}}, 67695: {'index': {1: {'data': 3912, 'dynamic': 0, 'jid': 67695, 'process': 'klogd', 'stack': 136, 'text': 28}}}, 67715: {'index': {1: {'data': 176, 'dynamic': 0, 'jid': 67715, 'process': 'xinetd', 'stack': 136, 'text': 156}}}, 67758: {'index': {1: {'data': 748, 'dynamic': 0, 'jid': 67758, 'process': 'crond', 'stack': 524, 'text': 56}}}, 68857: {'index': {1: {'data': 672, 'dynamic': 0, 'jid': 68857, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 68876: {'index': {1: {'data': 744, 'dynamic': 0, 'jid': 68876, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 68881: {'index': {1: {'data': 82976, 'dynamic': 0, 'jid': 68881, 'process': 'dev_inotify_hdlr', 'stack': 136, 'text': 12}}}, 68882: {'index': {1: {'data': 82976, 'dynamic': 0, 'jid': 68882, 'process': 'dev_inotify_hdlr', 'stack': 136, 'text': 12}}}, 68909: {'index': {1: {'data': 88312, 'dynamic': 0, 'jid': 68909, 'process': 'ds', 'stack': 136, 'text': 56}}}, 69594: {'index': {1: {'data': 199480, 'dynamic': 173, 'jid': 69594, 'process': 'tty_exec_launcher', 'stack': 136, 'text': 16}}}, 70487: {'index': {1: {'data': 200108, 'dynamic': 312, 'jid': 70487, 'process': 'tams_proc', 'stack': 136, 'text': 440}}}, 70709: {'index': {1: {'data': 200200, 'dynamic': 342, 'jid': 70709, 'process': 'tamd_proc', 'stack': 136, 'text': 32}}}, 73424: {'index': {1: {'data': 200808, 'dynamic': 0, 'jid': 73424, 'process': 'attestation_agent', 'stack': 136, 'text': 108}}}, 75962: {'index': {1: {'data': 206656, 'dynamic': 0, 'jid': 75962, 'process': 'pyztp2', 'stack': 136, 'text': 8}}}, 76021: {'index': {1: {'data': 1536, 'dynamic': 0, 'jid': 76021, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 76022: {'index': {1: {'data': 1784, 'dynamic': 0, 'jid': 76022, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 76639: {'index': {1: {'data': 16480, 'dynamic': 0, 'jid': 76639, 'process': 'perl', 'stack': 136, 'text': 8}}}, 76665: {'index': {1: {'data': 487380, 'dynamic': 0, 'jid': 76665, 'process': 'pam_cli_agent', 'stack': 136, 'text': 1948}}}, 76768: {'index': {1: {'data': 24868, 'dynamic': 0, 'jid': 76768, 'process': 'perl', 'stack': 136, 'text': 8}}}, 76784: {'index': {1: {'data': 17356, 'dynamic': 0, 'jid': 76784, 'process': 'perl', 'stack': 136, 'text': 8}}}, 76802: {'index': {1: {'data': 16280, 'dynamic': 0, 'jid': 76802, 'process': 'perl', 'stack': 136, 'text': 8}}}, 77304: {'index': {1: {'data': 598100, 'dynamic': 703, 'jid': 77304, 'process': 'exec', 'stack': 136, 'text': 76}}}, 80488: {'index': {1: {'data': 172, 'dynamic': 0, 'jid': 80488, 'process': 'sleep', 'stack': 136, 'text': 32}}}, 80649: {'index': {1: {'data': 172, 'dynamic': 0, 'jid': 80649, 'process': 'sleep', 'stack': 136, 'text': 32}}}, 80788: {'index': {1: {'data': 1484, 'dynamic': 2, 'jid': 80788, 'process': 'sleep', 'stack': 136, 'text': 32}}}, 80791: {'index': {1: {'data': 420, 'dynamic': 0, 'jid': 80791, 'process': 'sh', 'stack': 136, 'text': 1016}}}, 80792: {'index': {1: {'data': 133912, 'dynamic': 194, 'jid': 80792, 'process': 'sh_proc_mem_cli', 'stack': 136, 'text': 12}}}, 80796: {'index': {1: {'data': 484, 'dynamic': 0, 'jid': 80796, 'process': 'sh', 'stack': 136, 'text': 1016}}}, 80797: {'index': {1: {'data': 133916, 'dynamic': 204, 'jid': 80797, 'process': 'sh_proc_memory', 'stack': 136, 'text': 12 } } } } }
expected_output = {'jid': {1: {'index': {1: {'data': 344, 'dynamic': 0, 'jid': 1, 'process': 'init', 'stack': 136, 'text': 296}}}, 51: {'index': {1: {'data': 1027776, 'dynamic': 5668, 'jid': 51, 'process': 'processmgr', 'stack': 136, 'text': 1372}}}, 53: {'index': {1: {'data': 342500, 'dynamic': 7095, 'jid': 53, 'process': 'dsr', 'stack': 136, 'text': 32}}}, 111: {'index': {1: {'data': 531876, 'dynamic': 514, 'jid': 111, 'process': 'devc-conaux-aux', 'stack': 136, 'text': 8}}}, 112: {'index': {1: {'data': 861144, 'dynamic': 957, 'jid': 112, 'process': 'qsm', 'stack': 136, 'text': 144}}}, 113: {'index': {1: {'data': 400776, 'dynamic': 671, 'jid': 113, 'process': 'spp', 'stack': 136, 'text': 328}}}, 114: {'index': {1: {'data': 531912, 'dynamic': 545, 'jid': 114, 'process': 'devc-conaux-con', 'stack': 136, 'text': 8}}}, 115: {'index': {1: {'data': 662452, 'dynamic': 366, 'jid': 115, 'process': 'syslogd_helper', 'stack': 136, 'text': 52}}}, 118: {'index': {1: {'data': 200748, 'dynamic': 426, 'jid': 118, 'process': 'shmwin_svr', 'stack': 136, 'text': 56}}}, 119: {'index': {1: {'data': 397880, 'dynamic': 828, 'jid': 119, 'process': 'syslog_dev', 'stack': 136, 'text': 12}}}, 121: {'index': {1: {'data': 470008, 'dynamic': 6347, 'jid': 121, 'process': 'calv_alarm_mgr', 'stack': 136, 'text': 504}}}, 122: {'index': {1: {'data': 1003480, 'dynamic': 2838, 'jid': 122, 'process': 'udp', 'stack': 136, 'text': 180}}}, 123: {'index': {1: {'data': 529852, 'dynamic': 389, 'jid': 123, 'process': 'enf_broker', 'stack': 136, 'text': 40}}}, 124: {'index': {1: {'data': 200120, 'dynamic': 351, 'jid': 124, 'process': 'procfs_server', 'stack': 168, 'text': 20}}}, 125: {'index': {1: {'data': 333592, 'dynamic': 1506, 'jid': 125, 'process': 'pifibm_server_rp', 'stack': 136, 'text': 312}}}, 126: {'index': {1: {'data': 399332, 'dynamic': 305, 'jid': 126, 'process': 'ltrace_sync', 'stack': 136, 'text': 28}}}, 127: {'index': {1: {'data': 797548, 'dynamic': 2573, 'jid': 127, 'process': 'ifindex_server', 'stack': 136, 'text': 96}}}, 128: {'index': {1: {'data': 532612, 'dynamic': 3543, 'jid': 128, 'process': 'eem_ed_test', 'stack': 136, 'text': 44}}}, 130: {'index': {1: {'data': 200120, 'dynamic': 257, 'jid': 130, 'process': 'igmp_policy_reg_agent', 'stack': 136, 'text': 8}}}, 132: {'index': {1: {'data': 200628, 'dynamic': 280, 'jid': 132, 'process': 'show_mediang_edm', 'stack': 136, 'text': 20}}}, 134: {'index': {1: {'data': 466168, 'dynamic': 580, 'jid': 134, 'process': 'ipv4_acl_act_agent', 'stack': 136, 'text': 28}}}, 136: {'index': {1: {'data': 997196, 'dynamic': 5618, 'jid': 136, 'process': 'resmon', 'stack': 136, 'text': 188}}}, 137: {'index': {1: {'data': 534184, 'dynamic': 2816, 'jid': 137, 'process': 'bundlemgr_local', 'stack': 136, 'text': 612}}}, 138: {'index': {1: {'data': 200652, 'dynamic': 284, 'jid': 138, 'process': 'chkpt_proxy', 'stack': 136, 'text': 16}}}, 139: {'index': {1: {'data': 200120, 'dynamic': 257, 'jid': 139, 'process': 'lisp_xr_policy_reg_agent', 'stack': 136, 'text': 8}}}, 141: {'index': {1: {'data': 200648, 'dynamic': 246, 'jid': 141, 'process': 'linux_nto_misc_showd', 'stack': 136, 'text': 20}}}, 143: {'index': {1: {'data': 200644, 'dynamic': 247, 'jid': 143, 'process': 'procfind', 'stack': 136, 'text': 20}}}, 146: {'index': {1: {'data': 200240, 'dynamic': 275, 'jid': 146, 'process': 'bgp_policy_reg_agent', 'stack': 136, 'text': 28}}}, 147: {'index': {1: {'data': 201332, 'dynamic': 418, 'jid': 147, 'process': 'type6_server', 'stack': 136, 'text': 68}}}, 149: {'index': {1: {'data': 663524, 'dynamic': 1297, 'jid': 149, 'process': 'clns', 'stack': 136, 'text': 188}}}, 152: {'index': {1: {'data': 532616, 'dynamic': 3541, 'jid': 152, 'process': 'eem_ed_none', 'stack': 136, 'text': 52}}}, 154: {'index': {1: {'data': 729896, 'dynamic': 1046, 'jid': 154, 'process': 'ipv4_acl_mgr', 'stack': 136, 'text': 140}}}, 155: {'index': {1: {'data': 200120, 'dynamic': 261, 'jid': 155, 'process': 'ospf_policy_reg_agent', 'stack': 136, 'text': 12}}}, 157: {'index': {1: {'data': 200908, 'dynamic': 626, 'jid': 157, 'process': 'ssh_key_server', 'stack': 136, 'text': 44}}}, 158: {'index': {1: {'data': 200628, 'dynamic': 285, 'jid': 158, 'process': 'heap_summary_edm', 'stack': 136, 'text': 20}}}, 161: {'index': {1: {'data': 200640, 'dynamic': 297, 'jid': 161, 'process': 'cmp_edm', 'stack': 136, 'text': 16}}}, 162: {'index': {1: {'data': 267456, 'dynamic': 693, 'jid': 162, 'process': 'ip_aps', 'stack': 136, 'text': 52}}}, 166: {'index': {1: {'data': 935480, 'dynamic': 8194, 'jid': 166, 'process': 'mpls_lsd', 'stack': 136, 'text': 1108}}}, 167: {'index': {1: {'data': 730776, 'dynamic': 3649, 'jid': 167, 'process': 'ipv6_ma', 'stack': 136, 'text': 540}}}, 168: {'index': {1: {'data': 266788, 'dynamic': 589, 'jid': 168, 'process': 'nd_partner', 'stack': 136, 'text': 36}}}, 169: {'index': {1: {'data': 735000, 'dynamic': 6057, 'jid': 169, 'process': 'ipsub_ma', 'stack': 136, 'text': 680}}}, 171: {'index': {1: {'data': 266432, 'dynamic': 530, 'jid': 171, 'process': 'shelf_mgr_proxy', 'stack': 136, 'text': 16}}}, 172: {'index': {1: {'data': 200604, 'dynamic': 253, 'jid': 172, 'process': 'early_fast_discard_verifier', 'stack': 136, 'text': 16}}}, 174: {'index': {1: {'data': 200096, 'dynamic': 256, 'jid': 174, 'process': 'bundlemgr_checker', 'stack': 136, 'text': 56}}}, 175: {'index': {1: {'data': 200120, 'dynamic': 248, 'jid': 175, 'process': 'syslog_infra_hm', 'stack': 136, 'text': 12}}}, 177: {'index': {1: {'data': 200112, 'dynamic': 241, 'jid': 177, 'process': 'meminfo_svr', 'stack': 136, 'text': 8}}}, 178: {'index': {1: {'data': 468272, 'dynamic': 2630, 'jid': 178, 'process': 'accounting_ma', 'stack': 136, 'text': 264}}}, 180: {'index': {1: {'data': 1651090, 'dynamic': 242, 'jid': 180, 'process': 'aipc_cleaner', 'stack': 136, 'text': 8}}}, 181: {'index': {1: {'data': 201280, 'dynamic': 329, 'jid': 181, 'process': 'nsr_ping_reply', 'stack': 136, 'text': 16}}}, 182: {'index': {1: {'data': 334236, 'dynamic': 843, 'jid': 182, 'process': 'spio_ma', 'stack': 136, 'text': 4}}}, 183: {'index': {1: {'data': 266788, 'dynamic': 607, 'jid': 183, 'process': 'statsd_server', 'stack': 136, 'text': 40}}}, 184: {'index': {1: {'data': 407016, 'dynamic': 8579, 'jid': 184, 'process': 'subdb_svr', 'stack': 136, 'text': 368}}}, 186: {'index': {1: {'data': 932992, 'dynamic': 3072, 'jid': 186, 'process': 'smartlicserver', 'stack': 136, 'text': 16}}}, 187: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 187, 'process': 'rip_policy_reg_agent', 'stack': 136, 'text': 8}}}, 188: {'index': {1: {'data': 533704, 'dynamic': 3710, 'jid': 188, 'process': 'eem_ed_nd', 'stack': 136, 'text': 60}}}, 189: {'index': {1: {'data': 401488, 'dynamic': 3499, 'jid': 189, 'process': 'ifmgr', 'stack': 136, 'text': 4}}}, 190: {'index': {1: {'data': 1001552, 'dynamic': 3082, 'jid': 190, 'process': 'rdsfs_svr', 'stack': 136, 'text': 196}}}, 191: {'index': {1: {'data': 398300, 'dynamic': 632, 'jid': 191, 'process': 'hostname_sync', 'stack': 136, 'text': 12}}}, 192: {'index': {1: {'data': 466168, 'dynamic': 570, 'jid': 192, 'process': 'l2vpn_policy_reg_agent', 'stack': 136, 'text': 20}}}, 193: {'index': {1: {'data': 665096, 'dynamic': 1405, 'jid': 193, 'process': 'ntpd', 'stack': 136, 'text': 344}}}, 194: {'index': {1: {'data': 794692, 'dynamic': 2629, 'jid': 194, 'process': 'nrssvr', 'stack': 136, 'text': 180}}}, 195: {'index': {1: {'data': 531776, 'dynamic': 748, 'jid': 195, 'process': 'ipv4_io', 'stack': 136, 'text': 256}}}, 196: {'index': {1: {'data': 200624, 'dynamic': 274, 'jid': 196, 'process': 'domain_sync', 'stack': 136, 'text': 16}}}, 197: {'index': {1: {'data': 1015252, 'dynamic': 21870, 'jid': 197, 'process': 'parser_server', 'stack': 136, 'text': 304}}}, 198: {'index': {1: {'data': 532612, 'dynamic': 3540, 'jid': 198, 'process': 'eem_ed_config', 'stack': 136, 'text': 56}}}, 199: {'index': {1: {'data': 200648, 'dynamic': 282, 'jid': 199, 'process': 'cerrno_server', 'stack': 136, 'text': 48}}}, 200: {'index': {1: {'data': 531264, 'dynamic': 1810, 'jid': 200, 'process': 'ipv4_arm', 'stack': 136, 'text': 344}}}, 201: {'index': {1: {'data': 268968, 'dynamic': 1619, 'jid': 201, 'process': 'session_mon', 'stack': 136, 'text': 68}}}, 202: {'index': {1: {'data': 864208, 'dynamic': 3472, 'jid': 202, 'process': 'netio', 'stack': 136, 'text': 292}}}, 204: {'index': {1: {'data': 268932, 'dynamic': 2122, 'jid': 204, 'process': 'ether_caps_partner', 'stack': 136, 'text': 152}}}, 205: {'index': {1: {'data': 201168, 'dynamic': 254, 'jid': 205, 'process': 'sunstone_stats_svr', 'stack': 136, 'text': 28}}}, 206: {'index': {1: {'data': 794684, 'dynamic': 2967, 'jid': 206, 'process': 'sysdb_shared_nc', 'stack': 136, 'text': 4}}}, 207: {'index': {1: {'data': 601736, 'dynamic': 2823, 'jid': 207, 'process': 'yang_server', 'stack': 136, 'text': 268}}}, 208: {'index': {1: {'data': 200096, 'dynamic': 251, 'jid': 208, 'process': 'ipodwdm', 'stack': 136, 'text': 16}}}, 209: {'index': {1: {'data': 200656, 'dynamic': 253, 'jid': 209, 'process': 'crypto_edm', 'stack': 136, 'text': 24}}}, 210: {'index': {1: {'data': 878632, 'dynamic': 13237, 'jid': 210, 'process': 'nvgen_server', 'stack': 136, 'text': 244}}}, 211: {'index': {1: {'data': 334080, 'dynamic': 2169, 'jid': 211, 'process': 'pfilter_ma', 'stack': 136, 'text': 228}}}, 213: {'index': {1: {'data': 531840, 'dynamic': 1073, 'jid': 213, 'process': 'kim', 'stack': 136, 'text': 428}}}, 216: {'index': {1: {'data': 267224, 'dynamic': 451, 'jid': 216, 'process': 'showd_lc', 'stack': 136, 'text': 64}}}, 217: {'index': {1: {'data': 406432, 'dynamic': 4666, 'jid': 217, 'process': 'pppoe_ma', 'stack': 136, 'text': 520}}}, 218: {'index': {1: {'data': 664484, 'dynamic': 2602, 'jid': 218, 'process': 'l2rib', 'stack': 136, 'text': 484}}}, 220: {'index': {1: {'data': 598812, 'dynamic': 3443, 'jid': 220, 'process': 'eem_ed_syslog', 'stack': 136, 'text': 60}}}, 221: {'index': {1: {'data': 267264, 'dynamic': 290, 'jid': 221, 'process': 'lpts_fm', 'stack': 136, 'text': 52}}}, 222: {'index': {1: {'data': 205484, 'dynamic': 5126, 'jid': 222, 'process': 'mpa_fm_svr', 'stack': 136, 'text': 12}}}, 243: {'index': {1: {'data': 267576, 'dynamic': 990, 'jid': 243, 'process': 'spio_ea', 'stack': 136, 'text': 8}}}, 244: {'index': {1: {'data': 200632, 'dynamic': 247, 'jid': 244, 'process': 'mempool_edm', 'stack': 136, 'text': 8}}}, 245: {'index': {1: {'data': 532624, 'dynamic': 3541, 'jid': 245, 'process': 'eem_ed_counter', 'stack': 136, 'text': 48}}}, 247: {'index': {1: {'data': 1010268, 'dynamic': 1923, 'jid': 247, 'process': 'cfgmgr-rp', 'stack': 136, 'text': 344}}}, 248: {'index': {1: {'data': 465260, 'dynamic': 1243, 'jid': 248, 'process': 'alarm-logger', 'stack': 136, 'text': 104}}}, 249: {'index': {1: {'data': 797376, 'dynamic': 1527, 'jid': 249, 'process': 'locald_DLRSC', 'stack': 136, 'text': 604}}}, 250: {'index': {1: {'data': 265800, 'dynamic': 438, 'jid': 250, 'process': 'lcp_mgr', 'stack': 136, 'text': 12}}}, 251: {'index': {1: {'data': 265840, 'dynamic': 712, 'jid': 251, 'process': 'tamfs', 'stack': 136, 'text': 32}}}, 252: {'index': {1: {'data': 531384, 'dynamic': 7041, 'jid': 252, 'process': 'sysdb_svr_local', 'stack': 136, 'text': 4}}}, 253: {'index': {1: {'data': 200672, 'dynamic': 256, 'jid': 253, 'process': 'tty_show_users_edm', 'stack': 136, 'text': 32}}}, 254: {'index': {1: {'data': 534032, 'dynamic': 4463, 'jid': 254, 'process': 'eem_ed_generic', 'stack': 136, 'text': 96}}}, 255: {'index': {1: {'data': 201200, 'dynamic': 409, 'jid': 255, 'process': 'ipv6_acl_cfg_agent', 'stack': 136, 'text': 32}}}, 256: {'index': {1: {'data': 334104, 'dynamic': 756, 'jid': 256, 'process': 'mpls_vpn_mib', 'stack': 136, 'text': 156}}}, 257: {'index': {1: {'data': 267888, 'dynamic': 339, 'jid': 257, 'process': 'bundlemgr_adj', 'stack': 136, 'text': 156}}}, 258: {'index': {1: {'data': 1651090, 'dynamic': 244, 'jid': 258, 'process': 'file_paltx', 'stack': 136, 'text': 16}}}, 259: {'index': {1: {'data': 1000600, 'dynamic': 6088, 'jid': 259, 'process': 'ipv6_nd', 'stack': 136, 'text': 1016}}}, 260: {'index': {1: {'data': 533044, 'dynamic': 1793, 'jid': 260, 'process': 'sdr_instagt', 'stack': 136, 'text': 260}}}, 261: {'index': {1: {'data': 334860, 'dynamic': 806, 'jid': 261, 'process': 'ipsec_pp', 'stack': 136, 'text': 220}}}, 266: {'index': {1: {'data': 266344, 'dynamic': 717, 'jid': 266, 'process': 'pm_server', 'stack': 136, 'text': 92}}}, 267: {'index': {1: {'data': 598760, 'dynamic': 2768, 'jid': 267, 'process': 'object_tracking', 'stack': 136, 'text': 204}}}, 268: {'index': {1: {'data': 200700, 'dynamic': 417, 'jid': 268, 'process': 'wdsysmon_fd_edm', 'stack': 136, 'text': 20}}}, 269: {'index': {1: {'data': 664752, 'dynamic': 2513, 'jid': 269, 'process': 'eth_mgmt', 'stack': 136, 'text': 60}}}, 270: {'index': {1: {'data': 200064, 'dynamic': 257, 'jid': 270, 'process': 'gcp_fib_verifier', 'stack': 136, 'text': 20}}}, 271: {'index': {1: {'data': 400624, 'dynamic': 2348, 'jid': 271, 'process': 'rsi_agent', 'stack': 136, 'text': 580}}}, 272: {'index': {1: {'data': 794692, 'dynamic': 1425, 'jid': 272, 'process': 'nrssvr_global', 'stack': 136, 'text': 180}}}, 273: {'index': {1: {'data': 494124, 'dynamic': 19690, 'jid': 273, 'process': 'invmgr_proxy', 'stack': 136, 'text': 112}}}, 275: {'index': {1: {'data': 199552, 'dynamic': 264, 'jid': 275, 'process': 'nsr_fo', 'stack': 136, 'text': 12}}}, 276: {'index': {1: {'data': 202328, 'dynamic': 436, 'jid': 276, 'process': 'mpls_fwd_show_proxy', 'stack': 136, 'text': 204}}}, 277: {'index': {1: {'data': 267112, 'dynamic': 688, 'jid': 277, 'process': 'tam_sync', 'stack': 136, 'text': 44}}}, 278: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 278, 'process': 'mldp_policy_reg_agent', 'stack': 136, 'text': 8}}}, 290: {'index': {1: {'data': 200640, 'dynamic': 262, 'jid': 290, 'process': 'sh_proc_mem_edm', 'stack': 136, 'text': 20}}}, 291: {'index': {1: {'data': 794684, 'dynamic': 3678, 'jid': 291, 'process': 'sysdb_shared_sc', 'stack': 136, 'text': 4}}}, 293: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 293, 'process': 'pim6_policy_reg_agent', 'stack': 136, 'text': 8}}}, 294: {'index': {1: {'data': 267932, 'dynamic': 1495, 'jid': 294, 'process': 'issumgr', 'stack': 136, 'text': 560}}}, 295: {'index': {1: {'data': 266744, 'dynamic': 296, 'jid': 295, 'process': 'vlan_ea', 'stack': 136, 'text': 220}}}, 296: {'index': {1: {'data': 796404, 'dynamic': 1902, 'jid': 296, 'process': 'correlatord', 'stack': 136, 'text': 292}}}, 297: {'index': {1: {'data': 201304, 'dynamic': 367, 'jid': 297, 'process': 'imaedm_server', 'stack': 136, 'text': 56}}}, 298: {'index': {1: {'data': 200224, 'dynamic': 246, 'jid': 298, 'process': 'ztp_cfg', 'stack': 136, 'text': 12}}}, 299: {'index': {1: {'data': 268000, 'dynamic': 459, 'jid': 299, 'process': 'ipv6_ea', 'stack': 136, 'text': 92}}}, 301: {'index': {1: {'data': 200644, 'dynamic': 250, 'jid': 301, 'process': 'sysmgr_show_proc_all_edm', 'stack': 136, 'text': 88}}}, 303: {'index': {1: {'data': 399360, 'dynamic': 882, 'jid': 303, 'process': 'tftp_fs', 'stack': 136, 'text': 68}}}, 304: {'index': {1: {'data': 202220, 'dynamic': 306, 'jid': 304, 'process': 'ncd', 'stack': 136, 'text': 32}}}, 305: {'index': {1: {'data': 1001716, 'dynamic': 9508, 'jid': 305, 'process': 'gsp', 'stack': 136, 'text': 1096}}}, 306: {'index': {1: {'data': 794684, 'dynamic': 1792, 'jid': 306, 'process': 'sysdb_svr_admin', 'stack': 136, 'text': 4}}}, 308: {'index': {1: {'data': 333172, 'dynamic': 538, 'jid': 308, 'process': 'devc-vty', 'stack': 136, 'text': 8}}}, 309: {'index': {1: {'data': 1012628, 'dynamic': 9404, 'jid': 309, 'process': 'tcp', 'stack': 136, 'text': 488}}}, 310: {'index': {1: {'data': 333572, 'dynamic': 2092, 'jid': 310, 'process': 'daps', 'stack': 136, 'text': 512}}}, 312: {'index': {1: {'data': 200620, 'dynamic': 283, 'jid': 312, 'process': 'ipv6_assembler', 'stack': 136, 'text': 36}}}, 313: {'index': {1: {'data': 199844, 'dynamic': 551, 'jid': 313, 'process': 'ssh_key_client', 'stack': 136, 'text': 48}}}, 314: {'index': {1: {'data': 332076, 'dynamic': 371, 'jid': 314, 'process': 'timezone_config', 'stack': 136, 'text': 28}}}, 316: {'index': {1: {'data': 531560, 'dynamic': 2016, 'jid': 316, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 317: {'index': {1: {'data': 531560, 'dynamic': 2015, 'jid': 317, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 318: {'index': {1: {'data': 532344, 'dynamic': 2874, 'jid': 318, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 319: {'index': {1: {'data': 532344, 'dynamic': 2874, 'jid': 319, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 320: {'index': {1: {'data': 531556, 'dynamic': 2013, 'jid': 320, 'process': 'bcdls', 'stack': 136, 'text': 112}}}, 326: {'index': {1: {'data': 398256, 'dynamic': 348, 'jid': 326, 'process': 'sld', 'stack': 136, 'text': 116}}}, 327: {'index': {1: {'data': 997196, 'dynamic': 3950, 'jid': 327, 'process': 'eem_policy_dir', 'stack': 136, 'text': 268}}}, 329: {'index': {1: {'data': 267464, 'dynamic': 434, 'jid': 329, 'process': 'mpls_io_ea', 'stack': 136, 'text': 108}}}, 332: {'index': {1: {'data': 332748, 'dynamic': 276, 'jid': 332, 'process': 'redstatsd', 'stack': 136, 'text': 20}}}, 333: {'index': {1: {'data': 799488, 'dynamic': 4511, 'jid': 333, 'process': 'rsi_master', 'stack': 136, 'text': 404}}}, 334: {'index': {1: {'data': 333648, 'dynamic': 351, 'jid': 334, 'process': 'sconbkup', 'stack': 136, 'text': 12}}}, 336: {'index': {1: {'data': 199440, 'dynamic': 204, 'jid': 336, 'process': 'pam_manager', 'stack': 136, 'text': 12}}}, 337: {'index': {1: {'data': 600644, 'dynamic': 3858, 'jid': 337, 'process': 'nve_mgr', 'stack': 136, 'text': 204}}}, 339: {'index': {1: {'data': 266800, 'dynamic': 679, 'jid': 339, 'process': 'rmf_svr', 'stack': 136, 'text': 140}}}, 341: {'index': {1: {'data': 465864, 'dynamic': 1145, 'jid': 341, 'process': 'ipv6_io', 'stack': 136, 'text': 160}}}, 342: {'index': {1: {'data': 864468, 'dynamic': 1011, 'jid': 342, 'process': 'syslogd', 'stack': 136, 'text': 224}}}, 343: {'index': {1: {'data': 663932, 'dynamic': 1013, 'jid': 343, 'process': 'ipv6_acl_daemon', 'stack': 136, 'text': 212}}}, 344: {'index': {1: {'data': 996048, 'dynamic': 2352, 'jid': 344, 'process': 'plat_sl_client', 'stack': 136, 'text': 108}}}, 346: {'index': {1: {'data': 598152, 'dynamic': 778, 'jid': 346, 'process': 'cinetd', 'stack': 136, 'text': 136}}}, 347: {'index': {1: {'data': 200648, 'dynamic': 261, 'jid': 347, 'process': 'debug_d', 'stack': 136, 'text': 24}}}, 349: {'index': {1: {'data': 200612, 'dynamic': 284, 'jid': 349, 'process': 'debug_d_admin', 'stack': 136, 'text': 20}}}, 350: {'index': {1: {'data': 399188, 'dynamic': 1344, 'jid': 350, 'process': 'vm-monitor', 'stack': 136, 'text': 72}}}, 352: {'index': {1: {'data': 465844, 'dynamic': 1524, 'jid': 352, 'process': 'lpts_pa', 'stack': 136, 'text': 308}}}, 353: {'index': {1: {'data': 1002896, 'dynamic': 5160, 'jid': 353, 'process': 'call_home', 'stack': 136, 'text': 728}}}, 355: {'index': {1: {'data': 994116, 'dynamic': 7056, 'jid': 355, 'process': 'eem_server', 'stack': 136, 'text': 292}}}, 356: {'index': {1: {'data': 200720, 'dynamic': 396, 'jid': 356, 'process': 'tcl_secure_mode', 'stack': 136, 'text': 8}}}, 357: {'index': {1: {'data': 202040, 'dynamic': 486, 'jid': 357, 'process': 'tamsvcs_tamm', 'stack': 136, 'text': 36}}}, 359: {'index': {1: {'data': 531256, 'dynamic': 1788, 'jid': 359, 'process': 'ipv6_arm', 'stack': 136, 'text': 328}}}, 360: {'index': {1: {'data': 201196, 'dynamic': 363, 'jid': 360, 'process': 'fwd_driver_partner', 'stack': 136, 'text': 88}}}, 361: {'index': {1: {'data': 533872, 'dynamic': 2637, 'jid': 361, 'process': 'ipv6_mfwd_partner', 'stack': 136, 'text': 836}}}, 362: {'index': {1: {'data': 932680, 'dynamic': 3880, 'jid': 362, 'process': 'arp', 'stack': 136, 'text': 728}}}, 363: {'index': {1: {'data': 202024, 'dynamic': 522, 'jid': 363, 'process': 'cepki', 'stack': 136, 'text': 96}}}, 364: {'index': {1: {'data': 1001736, 'dynamic': 4343, 'jid': 364, 'process': 'fib_mgr', 'stack': 136, 'text': 3580}}}, 365: {'index': {1: {'data': 269016, 'dynamic': 2344, 'jid': 365, 'process': 'pim_ma', 'stack': 136, 'text': 56}}}, 368: {'index': {1: {'data': 1002148, 'dynamic': 3111, 'jid': 368, 'process': 'raw_ip', 'stack': 136, 'text': 124}}}, 369: {'index': {1: {'data': 464272, 'dynamic': 625, 'jid': 369, 'process': 'ltrace_server', 'stack': 136, 'text': 40}}}, 371: {'index': {1: {'data': 200572, 'dynamic': 279, 'jid': 371, 'process': 'netio_debug_partner', 'stack': 136, 'text': 24}}}, 372: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 372, 'process': 'pim_policy_reg_agent', 'stack': 136, 'text': 8}}}, 373: {'index': {1: {'data': 333240, 'dynamic': 1249, 'jid': 373, 'process': 'policymgr_rp', 'stack': 136, 'text': 592}}}, 375: {'index': {1: {'data': 200624, 'dynamic': 290, 'jid': 375, 'process': 'loopback_caps_partner', 'stack': 136, 'text': 32}}}, 376: {'index': {1: {'data': 467420, 'dynamic': 3815, 'jid': 376, 'process': 'eem_ed_sysmgr', 'stack': 136, 'text': 76}}}, 377: {'index': {1: {'data': 333636, 'dynamic': 843, 'jid': 377, 'process': 'mpls_io', 'stack': 136, 'text': 140}}}, 378: {'index': {1: {'data': 200120, 'dynamic': 258, 'jid': 378, 'process': 'ospfv3_policy_reg_agent', 'stack': 136, 'text': 8}}}, 380: {'index': {1: {'data': 333604, 'dynamic': 520, 'jid': 380, 'process': 'fhrp_output', 'stack': 136, 'text': 124}}}, 381: {'index': {1: {'data': 533872, 'dynamic': 2891, 'jid': 381, 'process': 'ipv4_mfwd_partner', 'stack': 136, 'text': 828}}}, 382: {'index': {1: {'data': 465388, 'dynamic': 538, 'jid': 382, 'process': 'packet', 'stack': 136, 'text': 132}}}, 383: {'index': {1: {'data': 333284, 'dynamic': 359, 'jid': 383, 'process': 'dumper', 'stack': 136, 'text': 40}}}, 384: {'index': {1: {'data': 200636, 'dynamic': 244, 'jid': 384, 'process': 'showd_server', 'stack': 136, 'text': 12}}}, 385: {'index': {1: {'data': 603424, 'dynamic': 3673, 'jid': 385, 'process': 'ipsec_mp', 'stack': 136, 'text': 592}}}, 388: {'index': {1: {'data': 729160, 'dynamic': 836, 'jid': 388, 'process': 'bcdl_agent', 'stack': 136, 'text': 176}}}, 389: {'index': {1: {'data': 729880, 'dynamic': 1066, 'jid': 389, 'process': 'bcdl_agent', 'stack': 136, 'text': 176}}}, 390: {'index': {1: {'data': 663828, 'dynamic': 1384, 'jid': 390, 'process': 'bcdl_agent', 'stack': 136, 'text': 176}}}, 391: {'index': {1: {'data': 795416, 'dynamic': 1063, 'jid': 391, 'process': 'bcdl_agent', 'stack': 136, 'text': 176}}}, 401: {'index': {1: {'data': 466148, 'dynamic': 579, 'jid': 401, 'process': 'es_acl_act_agent', 'stack': 136, 'text': 20}}}, 402: {'index': {1: {'data': 597352, 'dynamic': 1456, 'jid': 402, 'process': 'vi_config_replicator', 'stack': 136, 'text': 40}}}, 403: {'index': {1: {'data': 532624, 'dynamic': 3546, 'jid': 403, 'process': 'eem_ed_timer', 'stack': 136, 'text': 64}}}, 405: {'index': {1: {'data': 664196, 'dynamic': 2730, 'jid': 405, 'process': 'pm_collector', 'stack': 136, 'text': 732}}}, 406: {'index': {1: {'data': 868076, 'dynamic': 5739, 'jid': 406, 'process': 'ppp_ma', 'stack': 136, 'text': 1268}}}, 407: {'index': {1: {'data': 794684, 'dynamic': 1753, 'jid': 407, 'process': 'sysdb_shared_data_nc', 'stack': 136, 'text': 4}}}, 408: {'index': {1: {'data': 415316, 'dynamic': 16797, 'jid': 408, 'process': 'statsd_manager_l', 'stack': 136, 'text': 4}}}, 409: {'index': {1: {'data': 946780, 'dynamic': 16438, 'jid': 409, 'process': 'iedged', 'stack': 136, 'text': 1824}}}, 411: {'index': {1: {'data': 542460, 'dynamic': 17658, 'jid': 411, 'process': 'sysdb_mc', 'stack': 136, 'text': 388}}}, 412: {'index': {1: {'data': 1003624, 'dynamic': 5783, 'jid': 412, 'process': 'l2fib_mgr', 'stack': 136, 'text': 1808}}}, 413: {'index': {1: {'data': 401532, 'dynamic': 2851, 'jid': 413, 'process': 'aib', 'stack': 136, 'text': 256}}}, 414: {'index': {1: {'data': 266776, 'dynamic': 440, 'jid': 414, 'process': 'rmf_cli_edm', 'stack': 136, 'text': 32}}}, 415: {'index': {1: {'data': 399116, 'dynamic': 895, 'jid': 415, 'process': 'ether_sock', 'stack': 136, 'text': 28}}}, 416: {'index': {1: {'data': 200980, 'dynamic': 275, 'jid': 416, 'process': 'shconf-edm', 'stack': 136, 'text': 32}}}, 417: {'index': {1: {'data': 532108, 'dynamic': 3623, 'jid': 417, 'process': 'eem_ed_stats', 'stack': 136, 'text': 60}}}, 418: {'index': {1: {'data': 532288, 'dynamic': 2306, 'jid': 418, 'process': 'ipv4_ma', 'stack': 136, 'text': 540}}}, 419: {'index': {1: {'data': 689020, 'dynamic': 15522, 'jid': 419, 'process': 'sdr_invmgr', 'stack': 136, 'text': 144}}}, 420: {'index': {1: {'data': 466456, 'dynamic': 1661, 'jid': 420, 'process': 'http_client', 'stack': 136, 'text': 96}}}, 421: {'index': {1: {'data': 201152, 'dynamic': 285, 'jid': 421, 'process': 'pak_capture_partner', 'stack': 136, 'text': 16}}}, 422: {'index': {1: {'data': 200016, 'dynamic': 267, 'jid': 422, 'process': 'bag_schema_svr', 'stack': 136, 'text': 36}}}, 424: {'index': {1: {'data': 604932, 'dynamic': 8135, 'jid': 424, 'process': 'issudir', 'stack': 136, 'text': 212}}}, 425: {'index': {1: {'data': 466796, 'dynamic': 1138, 'jid': 425, 'process': 'l2snoop', 'stack': 136, 'text': 104}}}, 426: {'index': {1: {'data': 331808, 'dynamic': 444, 'jid': 426, 'process': 'ssm_process', 'stack': 136, 'text': 56}}}, 427: {'index': {1: {'data': 200120, 'dynamic': 245, 'jid': 427, 'process': 'media_server', 'stack': 136, 'text': 16}}}, 428: {'index': {1: {'data': 267340, 'dynamic': 432, 'jid': 428, 'process': 'ip_app', 'stack': 136, 'text': 48}}}, 429: {'index': {1: {'data': 269032, 'dynamic': 2344, 'jid': 429, 'process': 'pim6_ma', 'stack': 136, 'text': 56}}}, 431: {'index': {1: {'data': 200416, 'dynamic': 390, 'jid': 431, 'process': 'local_sock', 'stack': 136, 'text': 16}}}, 432: {'index': {1: {'data': 265704, 'dynamic': 269, 'jid': 432, 'process': 'crypto_monitor', 'stack': 136, 'text': 68}}}, 433: {'index': {1: {'data': 597624, 'dynamic': 1860, 'jid': 433, 'process': 'ema_server_sdr', 'stack': 136, 'text': 112}}}, 434: {'index': {1: {'data': 200120, 'dynamic': 259, 'jid': 434, 'process': 'isis_policy_reg_agent', 'stack': 136, 'text': 8}}}, 435: {'index': {1: {'data': 200120, 'dynamic': 261, 'jid': 435, 'process': 'eigrp_policy_reg_agent', 'stack': 136, 'text': 12}}}, 437: {'index': {1: {'data': 794096, 'dynamic': 776, 'jid': 437, 'process': 'cdm_rs', 'stack': 136, 'text': 80}}}, 1003: {'index': {1: {'data': 798196, 'dynamic': 3368, 'jid': 1003, 'process': 'eigrp', 'stack': 136, 'text': 936}}}, 1011: {'index': {1: {'data': 1006776, 'dynamic': 8929, 'jid': 1011, 'process': 'isis', 'stack': 136, 'text': 4888}}}, 1012: {'index': {1: {'data': 1006776, 'dynamic': 8925, 'jid': 1012, 'process': 'isis', 'stack': 136, 'text': 4888}}}, 1027: {'index': {1: {'data': 1012376, 'dynamic': 14258, 'jid': 1027, 'process': 'ospf', 'stack': 136, 'text': 2880}}}, 1046: {'index': {1: {'data': 804288, 'dynamic': 8673, 'jid': 1046, 'process': 'ospfv3', 'stack': 136, 'text': 1552}}}, 1066: {'index': {1: {'data': 333188, 'dynamic': 1084, 'jid': 1066, 'process': 'autorp_candidate_rp', 'stack': 136, 'text': 52}}}, 1067: {'index': {1: {'data': 532012, 'dynamic': 1892, 'jid': 1067, 'process': 'autorp_map_agent', 'stack': 136, 'text': 84}}}, 1071: {'index': {1: {'data': 998992, 'dynamic': 5498, 'jid': 1071, 'process': 'msdp', 'stack': 136, 'text': 484}}}, 1074: {'index': {1: {'data': 599436, 'dynamic': 1782, 'jid': 1074, 'process': 'rip', 'stack': 136, 'text': 296}}}, 1078: {'index': {1: {'data': 1045796, 'dynamic': 40267, 'jid': 1078, 'process': 'bgp', 'stack': 136, 'text': 2408}}}, 1093: {'index': {1: {'data': 668844, 'dynamic': 3577, 'jid': 1093, 'process': 'bpm', 'stack': 136, 'text': 716}}}, 1101: {'index': {1: {'data': 266776, 'dynamic': 602, 'jid': 1101, 'process': 'cdp_mgr', 'stack': 136, 'text': 24}}}, 1113: {'index': {1: {'data': 200096, 'dynamic': 251, 'jid': 1113, 'process': 'eigrp_uv', 'stack': 136, 'text': 48}}}, 1114: {'index': {1: {'data': 1084008, 'dynamic': 45594, 'jid': 1114, 'process': 'emsd', 'stack': 136, 'text': 10636}}}, 1128: {'index': {1: {'data': 200156, 'dynamic': 284, 'jid': 1128, 'process': 'isis_uv', 'stack': 136, 'text': 84}}}, 1130: {'index': {1: {'data': 599144, 'dynamic': 2131, 'jid': 1130, 'process': 'lldp_agent', 'stack': 136, 'text': 412}}}, 1135: {'index': {1: {'data': 1052648, 'dynamic': 24083, 'jid': 1135, 'process': 'netconf', 'stack': 136, 'text': 772}}}, 1136: {'index': {1: {'data': 600036, 'dynamic': 795, 'jid': 1136, 'process': 'netconf_agent_tty', 'stack': 136, 'text': 20}}}, 1139: {'index': {1: {'data': 200092, 'dynamic': 259, 'jid': 1139, 'process': 'ospf_uv', 'stack': 136, 'text': 48}}}, 1140: {'index': {1: {'data': 200092, 'dynamic': 258, 'jid': 1140, 'process': 'ospfv3_uv', 'stack': 136, 'text': 32}}}, 1147: {'index': {1: {'data': 808524, 'dynamic': 5098, 'jid': 1147, 'process': 'sdr_mgbl_proxy', 'stack': 136, 'text': 464}}}, 1221: {'index': {1: {'data': 200848, 'dynamic': 503, 'jid': 1221, 'process': 'ssh_conf_verifier', 'stack': 136, 'text': 32}}}, 1233: {'index': {1: {'data': 399212, 'dynamic': 1681, 'jid': 1233, 'process': 'mpls_static', 'stack': 136, 'text': 252}}}, 1234: {'index': {1: {'data': 464512, 'dynamic': 856, 'jid': 1234, 'process': 'lldp_mgr', 'stack': 136, 'text': 100}}}, 1235: {'index': {1: {'data': 665416, 'dynamic': 1339, 'jid': 1235, 'process': 'intf_mgbl', 'stack': 136, 'text': 212}}}, 1236: {'index': {1: {'data': 546924, 'dynamic': 17047, 'jid': 1236, 'process': 'statsd_manager_g', 'stack': 136, 'text': 4}}}, 1237: {'index': {1: {'data': 201996, 'dynamic': 1331, 'jid': 1237, 'process': 'ipv4_mfwd_ma', 'stack': 136, 'text': 144}}}, 1238: {'index': {1: {'data': 1015244, 'dynamic': 22504, 'jid': 1238, 'process': 'ipv4_rib', 'stack': 136, 'text': 1008}}}, 1239: {'index': {1: {'data': 201364, 'dynamic': 341, 'jid': 1239, 'process': 'ipv6_mfwd_ma', 'stack': 136, 'text': 136}}}, 1240: {'index': {1: {'data': 951448, 'dynamic': 26381, 'jid': 1240, 'process': 'ipv6_rib', 'stack': 136, 'text': 1160}}}, 1241: {'index': {1: {'data': 873952, 'dynamic': 11135, 'jid': 1241, 'process': 'mrib', 'stack': 136, 'text': 1536}}}, 1242: {'index': {1: {'data': 873732, 'dynamic': 11043, 'jid': 1242, 'process': 'mrib6', 'stack': 136, 'text': 1516}}}, 1243: {'index': {1: {'data': 800236, 'dynamic': 3444, 'jid': 1243, 'process': 'policy_repository', 'stack': 136, 'text': 472}}}, 1244: {'index': {1: {'data': 399440, 'dynamic': 892, 'jid': 1244, 'process': 'ipv4_mpa', 'stack': 136, 'text': 160}}}, 1245: {'index': {1: {'data': 399444, 'dynamic': 891, 'jid': 1245, 'process': 'ipv6_mpa', 'stack': 136, 'text': 160}}}, 1246: {'index': {1: {'data': 200664, 'dynamic': 261, 'jid': 1246, 'process': 'eth_gl_cfg', 'stack': 136, 'text': 20}}}, 1247: {'index': {1: {'data': 941936, 'dynamic': 13246, 'jid': 1247, 'process': 'igmp', 'stack': 144, 'text': 980}}}, 1248: {'index': {1: {'data': 267440, 'dynamic': 677, 'jid': 1248, 'process': 'ipv4_connected', 'stack': 136, 'text': 4}}}, 1249: {'index': {1: {'data': 267424, 'dynamic': 677, 'jid': 1249, 'process': 'ipv4_local', 'stack': 136, 'text': 4}}}, 1250: {'index': {1: {'data': 267436, 'dynamic': 680, 'jid': 1250, 'process': 'ipv6_connected', 'stack': 136, 'text': 4}}}, 1251: {'index': {1: {'data': 267420, 'dynamic': 681, 'jid': 1251, 'process': 'ipv6_local', 'stack': 136, 'text': 4}}}, 1252: {'index': {1: {'data': 940472, 'dynamic': 12973, 'jid': 1252, 'process': 'mld', 'stack': 136, 'text': 928}}}, 1253: {'index': {1: {'data': 1018740, 'dynamic': 22744, 'jid': 1253, 'process': 'pim', 'stack': 136, 'text': 4424}}}, 1254: {'index': {1: {'data': 1017788, 'dynamic': 22444, 'jid': 1254, 'process': 'pim6', 'stack': 136, 'text': 4544}}}, 1255: {'index': {1: {'data': 799148, 'dynamic': 4916, 'jid': 1255, 'process': 'bundlemgr_distrib', 'stack': 136, 'text': 2588}}}, 1256: {'index': {1: {'data': 999524, 'dynamic': 7871, 'jid': 1256, 'process': 'bfd', 'stack': 136, 'text': 1512}}}, 1257: {'index': {1: {'data': 268092, 'dynamic': 1903, 'jid': 1257, 'process': 'bgp_epe', 'stack': 136, 'text': 60}}}, 1258: {'index': {1: {'data': 268016, 'dynamic': 493, 'jid': 1258, 'process': 'domain_services', 'stack': 136, 'text': 136}}}, 1259: {'index': {1: {'data': 201184, 'dynamic': 272, 'jid': 1259, 'process': 'ethernet_stats_controller_edm', 'stack': 136, 'text': 32}}}, 1260: {'index': {1: {'data': 399868, 'dynamic': 874, 'jid': 1260, 'process': 'ftp_fs', 'stack': 136, 'text': 64}}}, 1261: {'index': {1: {'data': 206536, 'dynamic': 2468, 'jid': 1261, 'process': 'python_process_manager', 'stack': 136, 'text': 12}}}, 1262: {'index': {1: {'data': 200360, 'dynamic': 421, 'jid': 1262, 'process': 'tty_verifyd', 'stack': 136, 'text': 8}}}, 1263: {'index': {1: {'data': 265924, 'dynamic': 399, 'jid': 1263, 'process': 'ipv4_rump', 'stack': 136, 'text': 60}}}, 1264: {'index': {1: {'data': 265908, 'dynamic': 394, 'jid': 1264, 'process': 'ipv6_rump', 'stack': 136, 'text': 108}}}, 1265: {'index': {1: {'data': 729900, 'dynamic': 1030, 'jid': 1265, 'process': 'es_acl_mgr', 'stack': 136, 'text': 56}}}, 1266: {'index': {1: {'data': 530424, 'dynamic': 723, 'jid': 1266, 'process': 'rt_check_mgr', 'stack': 136, 'text': 104}}}, 1267: {'index': {1: {'data': 336304, 'dynamic': 2594, 'jid': 1267, 'process': 'pbr_ma', 'stack': 136, 'text': 184}}}, 1268: {'index': {1: {'data': 466552, 'dynamic': 2107, 'jid': 1268, 'process': 'qos_ma', 'stack': 136, 'text': 876}}}, 1269: {'index': {1: {'data': 334576, 'dynamic': 975, 'jid': 1269, 'process': 'vservice_mgr', 'stack': 136, 'text': 60}}}, 1270: {'index': {1: {'data': 1000676, 'dynamic': 5355, 'jid': 1270, 'process': 'mpls_ldp', 'stack': 136, 'text': 2952}}}, 1271: {'index': {1: {'data': 1002132, 'dynamic': 6985, 'jid': 1271, 'process': 'xtc_agent', 'stack': 136, 'text': 1948}}}, 1272: {'index': {1: {'data': 1017288, 'dynamic': 14858, 'jid': 1272, 'process': 'l2vpn_mgr', 'stack': 136, 'text': 5608}}}, 1273: {'index': {1: {'data': 424, 'dynamic': 0, 'jid': 1273, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 1274: {'index': {1: {'data': 202200, 'dynamic': 1543, 'jid': 1274, 'process': 'cmpp', 'stack': 136, 'text': 60}}}, 1275: {'index': {1: {'data': 334624, 'dynamic': 1555, 'jid': 1275, 'process': 'l2tp_mgr', 'stack': 136, 'text': 960}}}, 1276: {'index': {1: {'data': 223128, 'dynamic': 16781, 'jid': 1276, 'process': 'schema_server', 'stack': 136, 'text': 80}}}, 1277: {'index': {1: {'data': 670692, 'dynamic': 6660, 'jid': 1277, 'process': 'sdr_instmgr', 'stack': 136, 'text': 1444}}}, 1278: {'index': {1: {'data': 1004336, 'dynamic': 436, 'jid': 1278, 'process': 'snmppingd', 'stack': 136, 'text': 24}}}, 1279: {'index': {1: {'data': 200120, 'dynamic': 263, 'jid': 1279, 'process': 'ssh_backup_server', 'stack': 136, 'text': 100}}}, 1280: {'index': {1: {'data': 398960, 'dynamic': 835, 'jid': 1280, 'process': 'ssh_server', 'stack': 136, 'text': 228}}}, 1281: {'index': {1: {'data': 399312, 'dynamic': 1028, 'jid': 1281, 'process': 'tc_server', 'stack': 136, 'text': 240}}}, 1282: {'index': {1: {'data': 200636, 'dynamic': 281, 'jid': 1282, 'process': 'wanphy_proc', 'stack': 136, 'text': 12}}}, 67280: {'index': {1: {'data': 204, 'dynamic': 0, 'jid': 67280, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67321: {'index': {1: {'data': 132, 'dynamic': 0, 'jid': 67321, 'process': 'sh', 'stack': 136, 'text': 1016}}}, 67322: {'index': {1: {'data': 204, 'dynamic': 0, 'jid': 67322, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67338: {'index': {1: {'data': 40, 'dynamic': 0, 'jid': 67338, 'process': 'cgroup_oom', 'stack': 136, 'text': 8}}}, 67493: {'index': {1: {'data': 176, 'dynamic': 0, 'jid': 67493, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67499: {'index': {1: {'data': 624, 'dynamic': 0, 'jid': 67499, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67513: {'index': {1: {'data': 256, 'dynamic': 0, 'jid': 67513, 'process': 'inotifywait', 'stack': 136, 'text': 24}}}, 67514: {'index': {1: {'data': 636, 'dynamic': 0, 'jid': 67514, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 67563: {'index': {1: {'data': 8408, 'dynamic': 0, 'jid': 67563, 'process': 'dbus-daemon', 'stack': 136, 'text': 408}}}, 67582: {'index': {1: {'data': 440, 'dynamic': 0, 'jid': 67582, 'process': 'sshd', 'stack': 136, 'text': 704}}}, 67592: {'index': {1: {'data': 200, 'dynamic': 0, 'jid': 67592, 'process': 'rpcbind', 'stack': 136, 'text': 44}}}, 67686: {'index': {1: {'data': 244, 'dynamic': 0, 'jid': 67686, 'process': 'rngd', 'stack': 136, 'text': 20}}}, 67692: {'index': {1: {'data': 176, 'dynamic': 0, 'jid': 67692, 'process': 'syslogd', 'stack': 136, 'text': 44}}}, 67695: {'index': {1: {'data': 3912, 'dynamic': 0, 'jid': 67695, 'process': 'klogd', 'stack': 136, 'text': 28}}}, 67715: {'index': {1: {'data': 176, 'dynamic': 0, 'jid': 67715, 'process': 'xinetd', 'stack': 136, 'text': 156}}}, 67758: {'index': {1: {'data': 748, 'dynamic': 0, 'jid': 67758, 'process': 'crond', 'stack': 524, 'text': 56}}}, 68857: {'index': {1: {'data': 672, 'dynamic': 0, 'jid': 68857, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 68876: {'index': {1: {'data': 744, 'dynamic': 0, 'jid': 68876, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 68881: {'index': {1: {'data': 82976, 'dynamic': 0, 'jid': 68881, 'process': 'dev_inotify_hdlr', 'stack': 136, 'text': 12}}}, 68882: {'index': {1: {'data': 82976, 'dynamic': 0, 'jid': 68882, 'process': 'dev_inotify_hdlr', 'stack': 136, 'text': 12}}}, 68909: {'index': {1: {'data': 88312, 'dynamic': 0, 'jid': 68909, 'process': 'ds', 'stack': 136, 'text': 56}}}, 69594: {'index': {1: {'data': 199480, 'dynamic': 173, 'jid': 69594, 'process': 'tty_exec_launcher', 'stack': 136, 'text': 16}}}, 70487: {'index': {1: {'data': 200108, 'dynamic': 312, 'jid': 70487, 'process': 'tams_proc', 'stack': 136, 'text': 440}}}, 70709: {'index': {1: {'data': 200200, 'dynamic': 342, 'jid': 70709, 'process': 'tamd_proc', 'stack': 136, 'text': 32}}}, 73424: {'index': {1: {'data': 200808, 'dynamic': 0, 'jid': 73424, 'process': 'attestation_agent', 'stack': 136, 'text': 108}}}, 75962: {'index': {1: {'data': 206656, 'dynamic': 0, 'jid': 75962, 'process': 'pyztp2', 'stack': 136, 'text': 8}}}, 76021: {'index': {1: {'data': 1536, 'dynamic': 0, 'jid': 76021, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 76022: {'index': {1: {'data': 1784, 'dynamic': 0, 'jid': 76022, 'process': 'bash', 'stack': 136, 'text': 1016}}}, 76639: {'index': {1: {'data': 16480, 'dynamic': 0, 'jid': 76639, 'process': 'perl', 'stack': 136, 'text': 8}}}, 76665: {'index': {1: {'data': 487380, 'dynamic': 0, 'jid': 76665, 'process': 'pam_cli_agent', 'stack': 136, 'text': 1948}}}, 76768: {'index': {1: {'data': 24868, 'dynamic': 0, 'jid': 76768, 'process': 'perl', 'stack': 136, 'text': 8}}}, 76784: {'index': {1: {'data': 17356, 'dynamic': 0, 'jid': 76784, 'process': 'perl', 'stack': 136, 'text': 8}}}, 76802: {'index': {1: {'data': 16280, 'dynamic': 0, 'jid': 76802, 'process': 'perl', 'stack': 136, 'text': 8}}}, 77304: {'index': {1: {'data': 598100, 'dynamic': 703, 'jid': 77304, 'process': 'exec', 'stack': 136, 'text': 76}}}, 80488: {'index': {1: {'data': 172, 'dynamic': 0, 'jid': 80488, 'process': 'sleep', 'stack': 136, 'text': 32}}}, 80649: {'index': {1: {'data': 172, 'dynamic': 0, 'jid': 80649, 'process': 'sleep', 'stack': 136, 'text': 32}}}, 80788: {'index': {1: {'data': 1484, 'dynamic': 2, 'jid': 80788, 'process': 'sleep', 'stack': 136, 'text': 32}}}, 80791: {'index': {1: {'data': 420, 'dynamic': 0, 'jid': 80791, 'process': 'sh', 'stack': 136, 'text': 1016}}}, 80792: {'index': {1: {'data': 133912, 'dynamic': 194, 'jid': 80792, 'process': 'sh_proc_mem_cli', 'stack': 136, 'text': 12}}}, 80796: {'index': {1: {'data': 484, 'dynamic': 0, 'jid': 80796, 'process': 'sh', 'stack': 136, 'text': 1016}}}, 80797: {'index': {1: {'data': 133916, 'dynamic': 204, 'jid': 80797, 'process': 'sh_proc_memory', 'stack': 136, 'text': 12}}}}}
def primefactor(n): for i in range(2,n+1): if n%i==0: isprime=1 for j in range(2,int(i/2+1)): if i%j==0: isprime=0 break if isprime: print(i) n=315 primefactor(n)
def primefactor(n): for i in range(2, n + 1): if n % i == 0: isprime = 1 for j in range(2, int(i / 2 + 1)): if i % j == 0: isprime = 0 break if isprime: print(i) n = 315 primefactor(n)
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ '../../../build/common.gypi', ], 'variables': { 'common_sources': [ ], }, 'targets' : [ { 'target_name': 'nosys_lib', 'type': 'none', 'variables': { 'nlib_target': 'libnosys.a', 'build_glibc': 0, 'build_newlib': 1, 'build_pnacl_newlib': 1, }, 'sources': [ 'access.c', 'chmod.c', 'chown.c', 'endpwent.c', 'environ.c', 'execve.c', '_execve.c', 'fcntl.c', 'fchdir.c', 'fchmod.c', 'fchown.c', 'fdatasync.c', 'fork.c', 'fsync.c', 'ftruncate.c', 'get_current_dir_name.c', 'getegid.c', 'geteuid.c', 'getgid.c', 'getlogin.c', 'getrusage.c', 'getppid.c', 'getpwent.c', 'getpwnam.c', 'getpwnam_r.c', 'getpwuid.c', 'getpwuid_r.c', 'getuid.c', 'getwd.c', 'ioctl.c', 'issetugid.c', 'isatty.c', 'kill.c', 'lchown.c', 'link.c', 'llseek.c', 'lstat.c', 'pclose.c', 'pipe.c', 'popen.c', 'pselect.c', 'readlink.c', 'remove.c', 'rename.c', 'select.c', 'setegid.c', 'seteuid.c', 'setgid.c', 'setpwent.c', 'settimeofday.c', 'setuid.c', 'signal.c', 'sigprocmask.c', 'symlink.c', 'system.c', 'times.c', 'tmpfile.c', 'truncate.c', 'ttyname.c', 'ttyname_r.c', 'umask.c', 'utime.c', 'utimes.c', 'vfork.c', 'wait.c', 'waitpid.c', ], 'dependencies': [ '<(DEPTH)/native_client/tools.gyp:prep_toolchain', ], }, ], }
{'includes': ['../../../build/common.gypi'], 'variables': {'common_sources': []}, 'targets': [{'target_name': 'nosys_lib', 'type': 'none', 'variables': {'nlib_target': 'libnosys.a', 'build_glibc': 0, 'build_newlib': 1, 'build_pnacl_newlib': 1}, 'sources': ['access.c', 'chmod.c', 'chown.c', 'endpwent.c', 'environ.c', 'execve.c', '_execve.c', 'fcntl.c', 'fchdir.c', 'fchmod.c', 'fchown.c', 'fdatasync.c', 'fork.c', 'fsync.c', 'ftruncate.c', 'get_current_dir_name.c', 'getegid.c', 'geteuid.c', 'getgid.c', 'getlogin.c', 'getrusage.c', 'getppid.c', 'getpwent.c', 'getpwnam.c', 'getpwnam_r.c', 'getpwuid.c', 'getpwuid_r.c', 'getuid.c', 'getwd.c', 'ioctl.c', 'issetugid.c', 'isatty.c', 'kill.c', 'lchown.c', 'link.c', 'llseek.c', 'lstat.c', 'pclose.c', 'pipe.c', 'popen.c', 'pselect.c', 'readlink.c', 'remove.c', 'rename.c', 'select.c', 'setegid.c', 'seteuid.c', 'setgid.c', 'setpwent.c', 'settimeofday.c', 'setuid.c', 'signal.c', 'sigprocmask.c', 'symlink.c', 'system.c', 'times.c', 'tmpfile.c', 'truncate.c', 'ttyname.c', 'ttyname_r.c', 'umask.c', 'utime.c', 'utimes.c', 'vfork.c', 'wait.c', 'waitpid.c'], 'dependencies': ['<(DEPTH)/native_client/tools.gyp:prep_toolchain']}]}
def is_leap(year): if ( year >= 1900 and year <=100000): leap = False if ( (year % 4 == 0) and (year % 400 == 0 or year % 100 != 0) ): leap = True return leap year = int(input()) print(is_leap(year))
def is_leap(year): if year >= 1900 and year <= 100000: leap = False if year % 4 == 0 and (year % 400 == 0 or year % 100 != 0): leap = True return leap year = int(input()) print(is_leap(year))
# -*- coding: utf-8 -*- def count_days(y, m, d): return (365 * y + (y // 4) - (y // 100) + (y // 400) + ((306 * (m + 1)) // 10) + d - 429) def main(): y = int(input()) m = int(input()) d = int(input()) if m == 1 or m == 2: m += 12 y -= 1 print(count_days(2014, 5, 17) - count_days(y, m, d)) if __name__ == '__main__': main()
def count_days(y, m, d): return 365 * y + y // 4 - y // 100 + y // 400 + 306 * (m + 1) // 10 + d - 429 def main(): y = int(input()) m = int(input()) d = int(input()) if m == 1 or m == 2: m += 12 y -= 1 print(count_days(2014, 5, 17) - count_days(y, m, d)) if __name__ == '__main__': main()
class CausalFactor: def __init__(self, id_: int, name: str, description: str): self.id_ = id_ self.name = name self.description = description class VehicleCausalFactor: def __init__(self): self.cf_driver = [] self.cf_fellow_passenger = [] self.cf_vehicle = [] @property def cf_driver(self): return self.cf_driver @cf_driver.setter def cf_driver(self, value: CausalFactor): self.cf_driver.append(value) @property def cf_fellow_passenger(self): return self.cf_fellow_passenger @cf_fellow_passenger.setter def cf_fellow_passenger(self, value: CausalFactor): self.cf_fellow_passenger.append(value) @property def cf_vehicle(self): return self.cf_vehicle @cf_vehicle.setter def cf_vehicle(self, value: CausalFactor): self.cf_vehicle.append(value) class SubScenario: def __init__(self): self.id_ = None self.name = None self.description = None class Scenario: def __init__(self): self.id_ = None self.name = None self.description = None self.sub_scenarios: [SubScenario] = [] @property def id_(self): return self.id_ @id_.setter def id_(self, value: int): self.id_ = value @property def name(self): return self.name @name.setter def name(self, value: str): self.name = value @property def description(self): return self.description @description.setter def description(self, value: str): self.description = value @property def sub_scenarios(self): return self.sub_scenarios @sub_scenarios.setter def sub_scenarios(self, value): self.sub_scenarios.append(value) class VehicleSettings: def __init__(self): self.id_ = None self.vehicle_causal_factor_id = None self.vehicle_causal_factor_value = None self.vehicle_causal_factor_description = None self.driver_causal_factor_id = None self.driver_causal_factor_value = None self.driver_causal_factor_description = None self.fellow_passenger_causal_factor_id = None self.fellow_passenger_causal_factor_value = None self.fellow_passenger_causal_factor_description = None @property def vehicle_causal_factor_id(self): return self.vehicle_causal_factor_id @vehicle_causal_factor_id.setter def vehicle_causal_factor_id(self, value): self.vehicle_causal_factor_id = value @property def vehicle_causal_factor_value(self): return self.vehicle_causal_factor_value @vehicle_causal_factor_value.setter def vehicle_causal_factor_value(self, value): self.vehicle_causal_factor_value = value @property def vehicle_causal_factor_description(self): return self.vehicle_causal_factor_description @vehicle_causal_factor_description.setter def vehicle_causal_factor_description(self, value): self.vehicle_causal_factor_description = value @property def driver_causal_factor_id(self): return self.driver_causal_factor_id @driver_causal_factor_id.setter def driver_causal_factor_id(self, value): self.driver_causal_factor_id = value @property def driver_causal_factor_value(self): return self.driver_causal_factor_value @driver_causal_factor_value.setter def driver_causal_factor_value(self, value): self.driver_causal_factor_value = value @property def driver_causal_factor_description(self): return self.driver_causal_factor_description @driver_causal_factor_description.setter def driver_causal_factor_description(self, value): self.driver_causal_factor_description = value @property def fellow_passenger_causal_factor_id(self): return self.fellow_passenger_causal_factor_id @fellow_passenger_causal_factor_id.setter def fellow_passenger_causal_factor_id(self, value): self.fellow_passenger_causal_factor_id = value @property def fellow_passenger_causal_factor_value(self): return self.fellow_passenger_causal_factor_value @fellow_passenger_causal_factor_value.setter def fellow_passenger_causal_factor_value(self, value): self.fellow_passenger_causal_factor_value = value @property def fellow_passenger_causal_factor_description(self): return self.fellow_passenger_causal_factor_description @fellow_passenger_causal_factor_description.setter def fellow_passenger_causal_factor_description(self, value): self.fellow_passenger_causal_factor_description = value class Scenarios: def __init__(self): self.scenario: [Scenario] = [] self.ego_settings = [] self.vehicle_settings: [VehicleSettings] = [] self.passenger_settings = [] @property def scenario(self): return self.scenario @scenario.setter def scenario(self, value: Scenario): self.scenario.append(value) @property def vehicle_settings(self): return self.vehicle_settings @vehicle_settings.setter def vehicle_settings(self, value: VehicleSettings): self.vehicle_settings.append(value)
class Causalfactor: def __init__(self, id_: int, name: str, description: str): self.id_ = id_ self.name = name self.description = description class Vehiclecausalfactor: def __init__(self): self.cf_driver = [] self.cf_fellow_passenger = [] self.cf_vehicle = [] @property def cf_driver(self): return self.cf_driver @cf_driver.setter def cf_driver(self, value: CausalFactor): self.cf_driver.append(value) @property def cf_fellow_passenger(self): return self.cf_fellow_passenger @cf_fellow_passenger.setter def cf_fellow_passenger(self, value: CausalFactor): self.cf_fellow_passenger.append(value) @property def cf_vehicle(self): return self.cf_vehicle @cf_vehicle.setter def cf_vehicle(self, value: CausalFactor): self.cf_vehicle.append(value) class Subscenario: def __init__(self): self.id_ = None self.name = None self.description = None class Scenario: def __init__(self): self.id_ = None self.name = None self.description = None self.sub_scenarios: [SubScenario] = [] @property def id_(self): return self.id_ @id_.setter def id_(self, value: int): self.id_ = value @property def name(self): return self.name @name.setter def name(self, value: str): self.name = value @property def description(self): return self.description @description.setter def description(self, value: str): self.description = value @property def sub_scenarios(self): return self.sub_scenarios @sub_scenarios.setter def sub_scenarios(self, value): self.sub_scenarios.append(value) class Vehiclesettings: def __init__(self): self.id_ = None self.vehicle_causal_factor_id = None self.vehicle_causal_factor_value = None self.vehicle_causal_factor_description = None self.driver_causal_factor_id = None self.driver_causal_factor_value = None self.driver_causal_factor_description = None self.fellow_passenger_causal_factor_id = None self.fellow_passenger_causal_factor_value = None self.fellow_passenger_causal_factor_description = None @property def vehicle_causal_factor_id(self): return self.vehicle_causal_factor_id @vehicle_causal_factor_id.setter def vehicle_causal_factor_id(self, value): self.vehicle_causal_factor_id = value @property def vehicle_causal_factor_value(self): return self.vehicle_causal_factor_value @vehicle_causal_factor_value.setter def vehicle_causal_factor_value(self, value): self.vehicle_causal_factor_value = value @property def vehicle_causal_factor_description(self): return self.vehicle_causal_factor_description @vehicle_causal_factor_description.setter def vehicle_causal_factor_description(self, value): self.vehicle_causal_factor_description = value @property def driver_causal_factor_id(self): return self.driver_causal_factor_id @driver_causal_factor_id.setter def driver_causal_factor_id(self, value): self.driver_causal_factor_id = value @property def driver_causal_factor_value(self): return self.driver_causal_factor_value @driver_causal_factor_value.setter def driver_causal_factor_value(self, value): self.driver_causal_factor_value = value @property def driver_causal_factor_description(self): return self.driver_causal_factor_description @driver_causal_factor_description.setter def driver_causal_factor_description(self, value): self.driver_causal_factor_description = value @property def fellow_passenger_causal_factor_id(self): return self.fellow_passenger_causal_factor_id @fellow_passenger_causal_factor_id.setter def fellow_passenger_causal_factor_id(self, value): self.fellow_passenger_causal_factor_id = value @property def fellow_passenger_causal_factor_value(self): return self.fellow_passenger_causal_factor_value @fellow_passenger_causal_factor_value.setter def fellow_passenger_causal_factor_value(self, value): self.fellow_passenger_causal_factor_value = value @property def fellow_passenger_causal_factor_description(self): return self.fellow_passenger_causal_factor_description @fellow_passenger_causal_factor_description.setter def fellow_passenger_causal_factor_description(self, value): self.fellow_passenger_causal_factor_description = value class Scenarios: def __init__(self): self.scenario: [Scenario] = [] self.ego_settings = [] self.vehicle_settings: [VehicleSettings] = [] self.passenger_settings = [] @property def scenario(self): return self.scenario @scenario.setter def scenario(self, value: Scenario): self.scenario.append(value) @property def vehicle_settings(self): return self.vehicle_settings @vehicle_settings.setter def vehicle_settings(self, value: VehicleSettings): self.vehicle_settings.append(value)
class Solution: def numJewelsInStones(self, J: str, S: str) -> int: result = 0 for i in set(J): result += S.count(i) return result
class Solution: def num_jewels_in_stones(self, J: str, S: str) -> int: result = 0 for i in set(J): result += S.count(i) return result
class Indent: def __init__(self, left: int = None, top: int = None, right: int = None, bottom: int = None): self.left = left self.top = top self.right = right self.bottom = bottom
class Indent: def __init__(self, left: int=None, top: int=None, right: int=None, bottom: int=None): self.left = left self.top = top self.right = right self.bottom = bottom
drink = input() sugar = input() drinks_count = int(input()) if drink == "Espresso": if sugar == "Without": price = 0.90 elif sugar == "Normal": price = 1 elif sugar == "Extra": price = 1.20 elif drink == "Cappuccino": if sugar == "Without": price = 1 elif sugar == "Normal": price = 1.20 elif sugar == "Extra": price = 1.60 elif drink == "Tea": if sugar == "Without": price = 0.50 elif sugar == "Normal": price = 0.60 elif sugar == "Extra": price = 0.70 total_price = drinks_count * price if sugar == "Without": total_price -= total_price * 0.35 if drink == "Espresso": if drinks_count >= 5: total_price -= total_price * 0.25 if total_price > 15: total_price -= total_price * 0.2 print(f"You bought {drinks_count} cups of {drink} for {total_price:.2f} lv.")
drink = input() sugar = input() drinks_count = int(input()) if drink == 'Espresso': if sugar == 'Without': price = 0.9 elif sugar == 'Normal': price = 1 elif sugar == 'Extra': price = 1.2 elif drink == 'Cappuccino': if sugar == 'Without': price = 1 elif sugar == 'Normal': price = 1.2 elif sugar == 'Extra': price = 1.6 elif drink == 'Tea': if sugar == 'Without': price = 0.5 elif sugar == 'Normal': price = 0.6 elif sugar == 'Extra': price = 0.7 total_price = drinks_count * price if sugar == 'Without': total_price -= total_price * 0.35 if drink == 'Espresso': if drinks_count >= 5: total_price -= total_price * 0.25 if total_price > 15: total_price -= total_price * 0.2 print(f'You bought {drinks_count} cups of {drink} for {total_price:.2f} lv.')
n = int(input()) arr = [int(e) for e in input().split()] ans = 0 for i in arr: if i % 2 == 0: ans += i / 4 else: ans += i * 3 print("{:.1f}".format(ans))
n = int(input()) arr = [int(e) for e in input().split()] ans = 0 for i in arr: if i % 2 == 0: ans += i / 4 else: ans += i * 3 print('{:.1f}'.format(ans))
# This exercise should be done in the interpreter # Create a variable and assign it the string value of your first name, # assign your age to another variable (you are free to lie!), print out a message saying how old you are name = "John" age = 21 print("my name is", name, "and I am", age, "years old.") # Use the addition operator to add 10 to your age and print out a message saying how old you will be in 10 years time age += 10 print(name, "will be", age, "in 10 years.")
name = 'John' age = 21 print('my name is', name, 'and I am', age, 'years old.') age += 10 print(name, 'will be', age, 'in 10 years.')
def divide(num1, num2): try: num1 / num2 except Exception as e: print(e) divide(1, 0)
def divide(num1, num2): try: num1 / num2 except Exception as e: print(e) divide(1, 0)
class Automation(object): def __init__(self, productivity, cost,numberOfAutomations, lifeSpan): # self.annualHours = annualHours self.productivity = float(productivity) self.cost = float(cost) self.lifeSpan = float(lifeSpan) self.numberOfAutomations = float(numberOfAutomations) # self.failureRate = failureRate # self.annualCost = annualCost def Production(self): return self.productivity def Cost(self): return self.cost def LifeSpan(self): return self.lifeSpan def NumberOfAutomations(self): return self.numberOfAutomations
class Automation(object): def __init__(self, productivity, cost, numberOfAutomations, lifeSpan): self.productivity = float(productivity) self.cost = float(cost) self.lifeSpan = float(lifeSpan) self.numberOfAutomations = float(numberOfAutomations) def production(self): return self.productivity def cost(self): return self.cost def life_span(self): return self.lifeSpan def number_of_automations(self): return self.numberOfAutomations
# coding=utf-8 DBcsvName = 'houseinfo_readable_withXY' with open(DBcsvName + '.csv', 'r', encoding='UTF-8') as f: lines = f.readlines() print(lines[0]) with open(DBcsvName + '_correct.csv', 'w', encoding='UTF-8') as fw: fw.write( "houseID" + "," + "title" + "," + "link" + "," + "community" + "," + "years" + "," + "housetype" + "," + "square" + "," + "direction" + "," + "floor" + "," + "taxtype" + "," + "totalPrice" + "," + "unitPrice" + "," + "followInfo" + "," + "decoration" + "," + "validdate" + "," + "coor_x,y") fw.write('\n') i = 1 for line in lines: if i > 12000: exit(-1) if line.count(',') == 16: fw.write(line.strip() + '\n') print("count: " + str(i)) i = i + 1
d_bcsv_name = 'houseinfo_readable_withXY' with open(DBcsvName + '.csv', 'r', encoding='UTF-8') as f: lines = f.readlines() print(lines[0]) with open(DBcsvName + '_correct.csv', 'w', encoding='UTF-8') as fw: fw.write('houseID' + ',' + 'title' + ',' + 'link' + ',' + 'community' + ',' + 'years' + ',' + 'housetype' + ',' + 'square' + ',' + 'direction' + ',' + 'floor' + ',' + 'taxtype' + ',' + 'totalPrice' + ',' + 'unitPrice' + ',' + 'followInfo' + ',' + 'decoration' + ',' + 'validdate' + ',' + 'coor_x,y') fw.write('\n') i = 1 for line in lines: if i > 12000: exit(-1) if line.count(',') == 16: fw.write(line.strip() + '\n') print('count: ' + str(i)) i = i + 1
class Node(): def __init__(self, val, left, right): self.val = val self.left = left self.right = right def collect(node, data, depth = 0): if not node: return None if depth not in data: data[depth] = [] data[depth].append(node.val) collect(node.left, data, depth + 1) collect(node.right, data, depth + 1) return None def avgByDepth(node): data = {} result = [] collect(node, data) i = 0 while i in data: nums = data[i] avg = sum(nums) / len(nums) result.append(avg) i += 1 return result n8 = Node(2, False, False) n7 = Node(6, n8, False) n6 = Node(6, False, False) n5 = Node(2, False, n7) n4 = Node(10, False, False) n3 = Node(9, n6, False) n2 = Node(7, n4, n5) n1 = Node(4, n2, n3) finalResult = avgByDepth(n1) print(finalResult)
class Node: def __init__(self, val, left, right): self.val = val self.left = left self.right = right def collect(node, data, depth=0): if not node: return None if depth not in data: data[depth] = [] data[depth].append(node.val) collect(node.left, data, depth + 1) collect(node.right, data, depth + 1) return None def avg_by_depth(node): data = {} result = [] collect(node, data) i = 0 while i in data: nums = data[i] avg = sum(nums) / len(nums) result.append(avg) i += 1 return result n8 = node(2, False, False) n7 = node(6, n8, False) n6 = node(6, False, False) n5 = node(2, False, n7) n4 = node(10, False, False) n3 = node(9, n6, False) n2 = node(7, n4, n5) n1 = node(4, n2, n3) final_result = avg_by_depth(n1) print(finalResult)
ques=input('Do you wish to find the Volume of Cube by 2D Method or via Side Method? Please enter either 2D or Side') if ques=='2D': print ('OK.') ba=int(input('Enter the Base Area of the Cube')) Height=int(input('Enter a Height measure')) v=ba*Height print ('Volume of the Cube is', v) elif ques=='Side': print ('OK.') side=int(input('Enter the measure of the Side')) v=side**3 print ('Volume of the Cube is', v) else: exit()
ques = input('Do you wish to find the Volume of Cube by 2D Method or via Side Method? Please enter either 2D or Side') if ques == '2D': print('OK.') ba = int(input('Enter the Base Area of the Cube')) height = int(input('Enter a Height measure')) v = ba * Height print('Volume of the Cube is', v) elif ques == 'Side': print('OK.') side = int(input('Enter the measure of the Side')) v = side ** 3 print('Volume of the Cube is', v) else: exit()
#!/usr/bin/env python3 class Solution: def fizzBuzz(self, n: int): res = [] for i in range(1, n+1): if i % 15 == 0: res.append('FizzBuzz') elif i % 3 == 0: res.append('Fizz') elif i % 5 == 0: res.append('Buzz') else: res.append('{i}'.format(i=i)) return res sol = Solution() print(sol.fizzBuzz(3)) print(sol.fizzBuzz(15)) print(sol.fizzBuzz(1)) print(sol.fizzBuzz(0))
class Solution: def fizz_buzz(self, n: int): res = [] for i in range(1, n + 1): if i % 15 == 0: res.append('FizzBuzz') elif i % 3 == 0: res.append('Fizz') elif i % 5 == 0: res.append('Buzz') else: res.append('{i}'.format(i=i)) return res sol = solution() print(sol.fizzBuzz(3)) print(sol.fizzBuzz(15)) print(sol.fizzBuzz(1)) print(sol.fizzBuzz(0))
#!/usr/bin/python3 accesses = {} with open('download.log') as f: for line in f: splitted_line = line.split(',') if len(splitted_line) != 2: continue [file_path, ip_addr] = splitted_line if file_path not in accesses: accesses[file_path] = [] if ip_addr not in accesses[file_path]: accesses[file_path].append(ip_addr) for file_path, ip_addr in accesses.items(): print(file_path + " " + str(len(ip_addr)))
accesses = {} with open('download.log') as f: for line in f: splitted_line = line.split(',') if len(splitted_line) != 2: continue [file_path, ip_addr] = splitted_line if file_path not in accesses: accesses[file_path] = [] if ip_addr not in accesses[file_path]: accesses[file_path].append(ip_addr) for (file_path, ip_addr) in accesses.items(): print(file_path + ' ' + str(len(ip_addr)))
''' This module contains all the configurations needed by the modules in the etl package ''' # import os # from definitions import ROOT_DIR TRANSFORMED_DATA_DB_CONFIG = { 'user': 'root', 'password': 'xxxxxxxxxxxx', 'host': '35.244.x.xxx', 'port': 3306, 'database': 'transformed_data' # 'raise_on_warnings': True --> raises exceptions on warnings, ex: for drop if exists, because it causes warnings in MySQL }
""" This module contains all the configurations needed by the modules in the etl package """ transformed_data_db_config = {'user': 'root', 'password': 'xxxxxxxxxxxx', 'host': '35.244.x.xxx', 'port': 3306, 'database': 'transformed_data'}
file_name = input('Enter file name: ') fn = open(file_name) count = 0 for line in fn: words = line.strip().split() try: if words[0] == 'From': print(words[1]) count += 1 except IndexError: pass print(f'There were {count} lines in the file with From as the first word')
file_name = input('Enter file name: ') fn = open(file_name) count = 0 for line in fn: words = line.strip().split() try: if words[0] == 'From': print(words[1]) count += 1 except IndexError: pass print(f'There were {count} lines in the file with From as the first word')
# -*- coding: utf-8 -*- class GeneratorRegister(object): def __init__(self): self.generators = [] def register(self, obj): self.generators.append(obj) def generate(self, command=None): for generator in self.generators: if command is not None and command.verbosity > 1: command.stdout.write('\nGenerating ' + generator.__class__.__name__ + ' ', ending='') command.stdout.flush() generator.generate(command) generator.done()
class Generatorregister(object): def __init__(self): self.generators = [] def register(self, obj): self.generators.append(obj) def generate(self, command=None): for generator in self.generators: if command is not None and command.verbosity > 1: command.stdout.write('\nGenerating ' + generator.__class__.__name__ + ' ', ending='') command.stdout.flush() generator.generate(command) generator.done()
class CoOccurrence: def __init__(self, entity: str, score: float, entity_type: str = None): self.entity = entity self.score = score self.entity_type = entity_type def __repr__(self): return f'{self.entity} - {self.entity_type} ({self.score})' def as_dict(self): d = dict(entity=self.entity, score=self.score, entity_type=self.entity_type) return {k: v for k, v in d.items() if v is not None}
class Cooccurrence: def __init__(self, entity: str, score: float, entity_type: str=None): self.entity = entity self.score = score self.entity_type = entity_type def __repr__(self): return f'{self.entity} - {self.entity_type} ({self.score})' def as_dict(self): d = dict(entity=self.entity, score=self.score, entity_type=self.entity_type) return {k: v for (k, v) in d.items() if v is not None}
year = int(input()) if year % 4 == 0 and not (year % 100 == 0): print("Leap") else: if year % 400 == 0: print("Leap") else: print("Ordinary")
year = int(input()) if year % 4 == 0 and (not year % 100 == 0): print('Leap') elif year % 400 == 0: print('Leap') else: print('Ordinary')
class ChatRoom: def __init__(self): self.people = [] def broadcast(self, source, message): for p in self.people: if p.name != source: p.receive(source, message) def join(self, person): join_msg = f'{person.name} joins the chat' self.broadcast('room', join_msg) person.room = self self.people.append(person) def message(self, source, destination, message): for p in self.people: if p.name == destination: p.receive(source, message)
class Chatroom: def __init__(self): self.people = [] def broadcast(self, source, message): for p in self.people: if p.name != source: p.receive(source, message) def join(self, person): join_msg = f'{person.name} joins the chat' self.broadcast('room', join_msg) person.room = self self.people.append(person) def message(self, source, destination, message): for p in self.people: if p.name == destination: p.receive(source, message)
class LinkedList: def __init__(self): self.head = None def insert(self, value): self.head = Node(value, self.head) def append(self, value): new_node = Node(value) current = self.head if current == None: self.head = new_node elif current.next == None: self.head.next = new_node elif current.next: while current.next: current = current.next current.next = new_node def insert_before(self, key, value): new_node = Node(value) current = self.head if current == None: return 'Key not found.' elif self.head.value == key: new_node.next = self.head self.head = new_node while current.next: if current.next.value == key: new_node.next = current.next current.next = new_node return return 'Key not found.' def insert_after(self, key, value): new_node = Node(value) current = self.head if current == None: return 'Key not found.' if self.head.value == key: new_node.next = self.head.next self.head.next = new_node while current: if current.value == key: new_node.next = current.next current.next = new_node return current = current.next return 'Key not found.' def includes(self, key): if self.head == None: return False current = self.head while True: if current.value == key: return True if current.next: current = current.next else: return False def kth_from_end(self, k): if k < 0: raise ValueError elif k == 0: return self.head.value counter = 0 result = self.head current = self.head while current: current = current.next if current: counter += 1 if counter > k: result = result.next if counter <= k: raise ValueError else: return result.value def __str__(self): if self.head == None: return 'This linked list is empty' result = '' current = self.head while True: if current.next: result += f'{current.value}' current = current.next else: return result + f'{current.value}' class Node: def __init__(self, value, next=None): self.value = value self.next = next
class Linkedlist: def __init__(self): self.head = None def insert(self, value): self.head = node(value, self.head) def append(self, value): new_node = node(value) current = self.head if current == None: self.head = new_node elif current.next == None: self.head.next = new_node elif current.next: while current.next: current = current.next current.next = new_node def insert_before(self, key, value): new_node = node(value) current = self.head if current == None: return 'Key not found.' elif self.head.value == key: new_node.next = self.head self.head = new_node while current.next: if current.next.value == key: new_node.next = current.next current.next = new_node return return 'Key not found.' def insert_after(self, key, value): new_node = node(value) current = self.head if current == None: return 'Key not found.' if self.head.value == key: new_node.next = self.head.next self.head.next = new_node while current: if current.value == key: new_node.next = current.next current.next = new_node return current = current.next return 'Key not found.' def includes(self, key): if self.head == None: return False current = self.head while True: if current.value == key: return True if current.next: current = current.next else: return False def kth_from_end(self, k): if k < 0: raise ValueError elif k == 0: return self.head.value counter = 0 result = self.head current = self.head while current: current = current.next if current: counter += 1 if counter > k: result = result.next if counter <= k: raise ValueError else: return result.value def __str__(self): if self.head == None: return 'This linked list is empty' result = '' current = self.head while True: if current.next: result += f'{current.value}' current = current.next else: return result + f'{current.value}' class Node: def __init__(self, value, next=None): self.value = value self.next = next
# # Explore # - The Adventure Interpreter # # Copyright (C) 2006 Joe Peterson # class ItemContainer: def __init__(self): self.items = [] self.item_limit = None def has_no_items(self): return len(self.items) == 0 def has_item(self, item): return item in self.items def is_full(self): if self.item_limit == None or len(self.items) < self.item_limit: return False else: return True def expand_item_name(self, item): if item in self.items: return item for test_item in self.items: word_list = test_item.split() if len(word_list) > 1: if word_list[0] == item or word_list[-1] == item: return test_item return item def add_item(self, item, mayExpand): if not self.is_full() or mayExpand: self.items.append(item) return True else: return False def remove_item(self, item): if item in self.items: self.items.remove(item) return True else: return False
class Itemcontainer: def __init__(self): self.items = [] self.item_limit = None def has_no_items(self): return len(self.items) == 0 def has_item(self, item): return item in self.items def is_full(self): if self.item_limit == None or len(self.items) < self.item_limit: return False else: return True def expand_item_name(self, item): if item in self.items: return item for test_item in self.items: word_list = test_item.split() if len(word_list) > 1: if word_list[0] == item or word_list[-1] == item: return test_item return item def add_item(self, item, mayExpand): if not self.is_full() or mayExpand: self.items.append(item) return True else: return False def remove_item(self, item): if item in self.items: self.items.remove(item) return True else: return False
#!/usr/bin/python3 a = sum(range(100)) print(a)
a = sum(range(100)) print(a)
WINDOW_TITLE = "ElectriPy" HEIGHT = 750 WIDTH = 750 RESIZABLE = True FPS = 40 DEFAULT_FORCE_VECTOR_SCALE_FACTOR = 22e32 DEFAULT_EF_VECTOR_SCALE_FACTOR = 2e14 DEFAULT_EF_BRIGHTNESS = 105 DEFAULT_SPACE_BETWEEN_EF_VECTORS = 20 MINIMUM_FORCE_VECTOR_NORM = 10 MINIMUM_ELECTRIC_FIELD_VECTOR_NORM = 15 KEYS = { "clear_screen": "r", "show_vector_components": "space", "show_electric_forces_vectors": "f", "show_electric_field_at_mouse_position": "m", "show_electric_field": "e", "increment_electric_field_brightness": "+", "decrement_electric_field_brightness": "-", "remove_last_charge_added": "z", "add_last_charge_removed": "y", } # Text settings: CHARGES_SIGN_FONT = "Arial" PROTON_SIGN_FONT_SIZE = 23 ELECTRON_SIGN_FONT_SIZE = 35 VECTOR_COMPONENTS_FONT = "Arial" VECTOR_COMPONENTS_FONT_SIZE = 13
window_title = 'ElectriPy' height = 750 width = 750 resizable = True fps = 40 default_force_vector_scale_factor = 2.2e+33 default_ef_vector_scale_factor = 200000000000000.0 default_ef_brightness = 105 default_space_between_ef_vectors = 20 minimum_force_vector_norm = 10 minimum_electric_field_vector_norm = 15 keys = {'clear_screen': 'r', 'show_vector_components': 'space', 'show_electric_forces_vectors': 'f', 'show_electric_field_at_mouse_position': 'm', 'show_electric_field': 'e', 'increment_electric_field_brightness': '+', 'decrement_electric_field_brightness': '-', 'remove_last_charge_added': 'z', 'add_last_charge_removed': 'y'} charges_sign_font = 'Arial' proton_sign_font_size = 23 electron_sign_font_size = 35 vector_components_font = 'Arial' vector_components_font_size = 13
# Multiples of 3 and 5 # Problem 1 # If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. # The sum of these multiples is 23. # Find the sum of all the multiples of 3 or 5 below 1000 def solution(limit): s = 0 for x in range(1, limit): if x % 3 == 0: s = s + x elif x % 5 == 0: s = s + x return s def main(): limit = 1000 ans = solution(limit) print(ans) if __name__ == "__main__": main()
def solution(limit): s = 0 for x in range(1, limit): if x % 3 == 0: s = s + x elif x % 5 == 0: s = s + x return s def main(): limit = 1000 ans = solution(limit) print(ans) if __name__ == '__main__': main()
class Index: def set_index(self, index_name): self.index = index_name def mapping(self): return { self.doc_type:{ "properties":self.properties() } } def analysis(self): return { 'filter':{ 'spanish_stop':{ 'type':'stop', 'stopwords':'_spanish_', }, 'spanish_stemmer':{ 'type':'stemmer', 'language':'light_spanish' } }, 'analyzer':{ 'default':{ 'tokenizer':'standard', 'filter':[ 'lowercase', 'asciifolding', 'spanish_stemmer', 'spanish_stop' ] } } } class EventIndex(Index): index = "events" doc_type = "doc" def properties(self): props = { "id": { "type": "integer" }, "email": { "type": "keyword" }, "timestamp": { "type": "date", "format": "epoch_millis"}, } return props
class Index: def set_index(self, index_name): self.index = index_name def mapping(self): return {self.doc_type: {'properties': self.properties()}} def analysis(self): return {'filter': {'spanish_stop': {'type': 'stop', 'stopwords': '_spanish_'}, 'spanish_stemmer': {'type': 'stemmer', 'language': 'light_spanish'}}, 'analyzer': {'default': {'tokenizer': 'standard', 'filter': ['lowercase', 'asciifolding', 'spanish_stemmer', 'spanish_stop']}}} class Eventindex(Index): index = 'events' doc_type = 'doc' def properties(self): props = {'id': {'type': 'integer'}, 'email': {'type': 'keyword'}, 'timestamp': {'type': 'date', 'format': 'epoch_millis'}} return props
''' Encontrar el valor repetido de ''' lista =[1,2,2,3,1,5,6,1] for number in lista: if lista.count(number) > 1: i = lista.index(number) print(i) lista_dos = ["a", "b", "a", "c", "c"] mylist = list(dict.fromkeys(lista_dos)) print(mylist) print("*"*10)
""" Encontrar el valor repetido de """ lista = [1, 2, 2, 3, 1, 5, 6, 1] for number in lista: if lista.count(number) > 1: i = lista.index(number) print(i) lista_dos = ['a', 'b', 'a', 'c', 'c'] mylist = list(dict.fromkeys(lista_dos)) print(mylist) print('*' * 10)
# 969. Pancake Sorting class Solution: def pancakeSort2(self, A): ans, n = [], len(A) B = sorted(range(1, n+1), key=lambda i: -A[i-1]) for i in B: for f in ans: if i <= f: i = f + 1 - i ans.extend([i, n]) n -= 1 return ans def pancakeSort(self, A): res = [] for x in range(len(A), 1, -1): i = A.index(x) res.extend([i+1, x]) A = A[:i:-1] + A[:i] return res sol = Solution() print(sol.pancakeSort2([3,2,4,1]))
class Solution: def pancake_sort2(self, A): (ans, n) = ([], len(A)) b = sorted(range(1, n + 1), key=lambda i: -A[i - 1]) for i in B: for f in ans: if i <= f: i = f + 1 - i ans.extend([i, n]) n -= 1 return ans def pancake_sort(self, A): res = [] for x in range(len(A), 1, -1): i = A.index(x) res.extend([i + 1, x]) a = A[:i:-1] + A[:i] return res sol = solution() print(sol.pancakeSort2([3, 2, 4, 1]))
## Logging logging_config = { 'console_log_enabled': True, 'console_log_level': 25, # SPECIAL 'console_fmt': '[%(asctime)s] %(message)s', 'console_datefmt': '%y-%m-%d %H:%M:%S', ## 'file_log_enabled': True, 'file_log_level': 15, # VERBOSE 'file_fmt': '%(asctime)s %(levelname)-8s %(name)s: %(message)s', 'file_datefmt': '%y-%m-%d %H:%M:%S', 'log_dir': 'logs', 'log_file': 'psict_{:%y%m%d_%H%M%S}', } ## Parameter value pre-processing and conversion parameter_pre_process = { "SQPG": { "pulse": { "o": { # Actual channel number is 1 more than the Labber lookup table specification 1: 0, 2: 1, 3: 2, 4: 3, }, # end o (Output) }, # end pulse }, # end SQPG } ## Iteration permissions outfile_iter_automatic = True outfile_iter_user_check = True ## Post-measurement script copy options script_copy_enabled = True # Copy the measurement script to the specified target directory script_copy_postfix = '_script' # postfixed to the script name after copying
logging_config = {'console_log_enabled': True, 'console_log_level': 25, 'console_fmt': '[%(asctime)s] %(message)s', 'console_datefmt': '%y-%m-%d %H:%M:%S', 'file_log_enabled': True, 'file_log_level': 15, 'file_fmt': '%(asctime)s %(levelname)-8s %(name)s: %(message)s', 'file_datefmt': '%y-%m-%d %H:%M:%S', 'log_dir': 'logs', 'log_file': 'psict_{:%y%m%d_%H%M%S}'} parameter_pre_process = {'SQPG': {'pulse': {'o': {1: 0, 2: 1, 3: 2, 4: 3}}}} outfile_iter_automatic = True outfile_iter_user_check = True script_copy_enabled = True script_copy_postfix = '_script'
# coding:utf-8 ''' @Copyright:LintCode @Author: taoleetju @Problem: http://www.lintcode.com/problem/find-minimum-in-rotated-sorted-array @Language: Python @Datetime: 15-12-14 03:26 ''' class Solution: # @param num: a rotated sorted array # @return: the minimum number in the array def findMin(self, num): p1 = 0 p2 = len(num)-1 pm = p1 while( num[p1] >= num[p2] ): if (p2 - p1) == 1: pm = p2 break else: pm = (p1+p2)/2 if num[pm] >= num[p1]: p1 = pm else: p2 = pm return num[pm]
""" @Copyright:LintCode @Author: taoleetju @Problem: http://www.lintcode.com/problem/find-minimum-in-rotated-sorted-array @Language: Python @Datetime: 15-12-14 03:26 """ class Solution: def find_min(self, num): p1 = 0 p2 = len(num) - 1 pm = p1 while num[p1] >= num[p2]: if p2 - p1 == 1: pm = p2 break else: pm = (p1 + p2) / 2 if num[pm] >= num[p1]: p1 = pm else: p2 = pm return num[pm]
# These constants are all possible fields in a message. ADDRESS_FAMILY = 'address_family' ADDRESS_FAMILY_IPv4 = 'ipv4' ADDRESS_FAMILY_IPv6 = 'ipv6' CITY = 'city' COUNTRY = 'country' RESPONSE_FORMAT = 'format' FORMAT_HTML = 'html' FORMAT_JSON = 'json' FORMAT_MAP = 'map' FORMAT_REDIRECT = 'redirect' FORMAT_BT = 'bt' VALID_FORMATS = [FORMAT_HTML, FORMAT_JSON, FORMAT_MAP, FORMAT_REDIRECT, FORMAT_BT] DEFAULT_RESPONSE_FORMAT = FORMAT_JSON HEADER_CITY = 'X-AppEngine-City' HEADER_COUNTRY = 'X-AppEngine-Country' HEADER_LAT_LONG = 'X-AppEngine-CityLatLong' LATITUDE = 'lat' LONGITUDE = 'lon' METRO = 'metro' POLICY = 'policy' POLICY_GEO = 'geo' POLICY_GEO_OPTIONS = 'geo_options' POLICY_METRO = 'metro' POLICY_RANDOM = 'random' POLICY_COUNTRY = 'country' POLICY_ALL = 'all' REMOTE_ADDRESS = 'ip' NO_IP_ADDRESS = 'off' STATUS = 'status' STATUS_IPv4 = 'status_ipv4' STATUS_IPv6 = 'status_ipv6' STATUS_OFFLINE = 'offline' STATUS_ONLINE = 'online' URL = 'url' USER_AGENT = 'User-Agent'
address_family = 'address_family' address_family_i_pv4 = 'ipv4' address_family_i_pv6 = 'ipv6' city = 'city' country = 'country' response_format = 'format' format_html = 'html' format_json = 'json' format_map = 'map' format_redirect = 'redirect' format_bt = 'bt' valid_formats = [FORMAT_HTML, FORMAT_JSON, FORMAT_MAP, FORMAT_REDIRECT, FORMAT_BT] default_response_format = FORMAT_JSON header_city = 'X-AppEngine-City' header_country = 'X-AppEngine-Country' header_lat_long = 'X-AppEngine-CityLatLong' latitude = 'lat' longitude = 'lon' metro = 'metro' policy = 'policy' policy_geo = 'geo' policy_geo_options = 'geo_options' policy_metro = 'metro' policy_random = 'random' policy_country = 'country' policy_all = 'all' remote_address = 'ip' no_ip_address = 'off' status = 'status' status_i_pv4 = 'status_ipv4' status_i_pv6 = 'status_ipv6' status_offline = 'offline' status_online = 'online' url = 'url' user_agent = 'User-Agent'
def f(): x = 5 def g(y): print (x + y) g(1) x = 6 g(1) x = 7 g(1) f()
def f(): x = 5 def g(y): print(x + y) g(1) x = 6 g(1) x = 7 g(1) f()
# Python program to insert, delete and search in binary search tree using linked lists # A Binary Tree Node class Node: # Constructor to create a new node def __init__(self, key): self.key = key self.left = None self.right = None # A utility function to do inorder traversal of BST def inorder(root): if root is not None: inorder(root.left) print(root.key, end=', ') inorder(root.right) # A utility function to insert a # new node with given key in BST def insert(node, key): # If the tree is empty, return a new node if node is None: return Node(key) # Otherwise recur down the tree if key < node.key: node.left = insert(node.left, key) else: node.right = insert(node.right, key) # return the (unchanged) node pointer return node # Given a non-empty binary # search tree, return the node # with maximun key value # found in that tree. Note that the # entire tree does not need to be searched def maxValueNode(node): current = node # loop down to find the rightmost leaf while(current.right is not None): current = current.right return current # Given a binary search tree and a key, this function # delete the key and returns the new root def deleteNode(root, key): # Base Case if root is None: return root # If the key to be deleted # is smaller than the root's # key then it lies in left subtree if key < root.key: root.left = deleteNode(root.left, key) # If the kye to be delete # is greater than the root's key # then it lies in right subtree elif(key > root.key): root.right = deleteNode(root.right, key) # If key is same as root's key, then this is the node # to be deleted else: # Node with only one child or no child if root.left is None: temp = root.right root = None return temp elif root.right is None: temp = root.left root = None return temp # Node with two children: # Get the inorder predecessor # (largest in the left subtree) temp = maxValueNode(root.left) # Copy the inorder predecessor's # content to this node root.key = temp.key # Delete the inorder predecessor root.left = deleteNode(root.left, temp.key) return root # Given a binary search tree and a key, this function # returns whether the key exists in the tree or not def searchNode(root, key): if key == root.key: return True elif root.right == None and root.left == None: return False elif key > root.key and root.right != None: return searchNode(root.right, key) elif key < root.key and root.left != None: return searchNode(root.left, key) return False # Driver code # Lets create tree: # 4 # / \ # 2 6 # / \ / \ # 0 3 5 10 # / \ # 8 12 # / \ # 7 9 root = None root = insert(root, 4) root = insert(root, 2) root = insert(root, 6) root = insert(root, 10) root = insert(root, 8) root = insert(root, 0) root = insert(root, 3) root = insert(root, 5) root = insert(root, 7) root = insert(root, 9) root = insert(root, 12) print("Inorder traversal of the given tree") inorder(root) print("\nDelete 2") root = deleteNode(root, 2) print("Inorder traversal of the modified tree") inorder(root) print("\nDelete 3") root = deleteNode(root, 3) print("Inorder traversal of the modified tree") inorder(root) print("\nDelete 10") root = deleteNode(root, 10) print("Inorder traversal of the modified tree") inorder(root) print("\n12 exists in bst? : ", searchNode(root, 12)) # Output: # Inorder traversal of the given tree # 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, # Delete 2 # Inorder traversal of the modified tree # 0, 3, 4, 5, 6, 7, 8, 9, 10, 12, # Delete 3 # Inorder traversal of the modified tree # 0, 4, 5, 6, 7, 8, 9, 10, 12, # Delete 10 # Inorder traversal of the modified tree # 0, 4, 5, 6, 7, 8, 9, 12, # 12 exists in bst? : True
class Node: def __init__(self, key): self.key = key self.left = None self.right = None def inorder(root): if root is not None: inorder(root.left) print(root.key, end=', ') inorder(root.right) def insert(node, key): if node is None: return node(key) if key < node.key: node.left = insert(node.left, key) else: node.right = insert(node.right, key) return node def max_value_node(node): current = node while current.right is not None: current = current.right return current def delete_node(root, key): if root is None: return root if key < root.key: root.left = delete_node(root.left, key) elif key > root.key: root.right = delete_node(root.right, key) else: if root.left is None: temp = root.right root = None return temp elif root.right is None: temp = root.left root = None return temp temp = max_value_node(root.left) root.key = temp.key root.left = delete_node(root.left, temp.key) return root def search_node(root, key): if key == root.key: return True elif root.right == None and root.left == None: return False elif key > root.key and root.right != None: return search_node(root.right, key) elif key < root.key and root.left != None: return search_node(root.left, key) return False root = None root = insert(root, 4) root = insert(root, 2) root = insert(root, 6) root = insert(root, 10) root = insert(root, 8) root = insert(root, 0) root = insert(root, 3) root = insert(root, 5) root = insert(root, 7) root = insert(root, 9) root = insert(root, 12) print('Inorder traversal of the given tree') inorder(root) print('\nDelete 2') root = delete_node(root, 2) print('Inorder traversal of the modified tree') inorder(root) print('\nDelete 3') root = delete_node(root, 3) print('Inorder traversal of the modified tree') inorder(root) print('\nDelete 10') root = delete_node(root, 10) print('Inorder traversal of the modified tree') inorder(root) print('\n12 exists in bst? : ', search_node(root, 12))
def keyword_argument_example(your_age, **kwargs): return your_age, kwargs ### Write your code below this line ### about_me = "Replace this string with the correct function call." ### Write your code above this line ### print(about_me)
def keyword_argument_example(your_age, **kwargs): return (your_age, kwargs) about_me = 'Replace this string with the correct function call.' print(about_me)
#MAP # def fahrenheit(T): # return (9/5) * T + 32 temp = [9,22,40,90,120] # for t in temp: # print(fahrenheit(t)) # print(list(map(fahrenheit, temp))) # print(list(map(lambda t:(9/5)*t+32,temp))) #FILTER pares = [1,2,3,4,8,10,11,15,16,28,24,20] # print(list(filter(lambda x: x%2 == 0, pares))) #ZIP x = [1,2,3,4,87,65,84,87,96,258] y = [4,5,6,256,245,635,85,96,256,485] a = [1,2,3,5,5,2] b = [2,3,25,2] c = [2,4,2,5] # print(list(zip(a,b,c))) # for i in zip(x,y): # print(max(i)) #enumerate lista = ['a','b','c','d'] # for number, item in enumerate(lista): # # print(number, ':', item) teste = ('How long are the words in this phrase') # quebrado = word_lengths.split() # print(len(quebrado.split())) def word_lengths(phrase): return list(map(len, phrase.split())) print(word_lengths(teste))
temp = [9, 22, 40, 90, 120] pares = [1, 2, 3, 4, 8, 10, 11, 15, 16, 28, 24, 20] x = [1, 2, 3, 4, 87, 65, 84, 87, 96, 258] y = [4, 5, 6, 256, 245, 635, 85, 96, 256, 485] a = [1, 2, 3, 5, 5, 2] b = [2, 3, 25, 2] c = [2, 4, 2, 5] lista = ['a', 'b', 'c', 'd'] teste = 'How long are the words in this phrase' def word_lengths(phrase): return list(map(len, phrase.split())) print(word_lengths(teste))
# # PySNMP MIB module RSVP-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/RSVP-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:27:32 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, OctetString, Integer, ) = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion") ( ifIndex, InterfaceIndex, ) = mibBuilder.importSymbols("IF-MIB", "ifIndex", "InterfaceIndex") ( MessageSize, Port, Protocol, BurstSize, QosService, BitRate, SessionNumber, intSrvFlowStatus, SessionType, ) = mibBuilder.importSymbols("INTEGRATED-SERVICES-MIB", "MessageSize", "Port", "Protocol", "BurstSize", "QosService", "BitRate", "SessionNumber", "intSrvFlowStatus", "SessionType") ( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") ( Unsigned32, TimeTicks, ObjectIdentity, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Bits, Counter32, IpAddress, ModuleIdentity, iso, mib_2, Counter64, NotificationType, Integer32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "TimeTicks", "ObjectIdentity", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Bits", "Counter32", "IpAddress", "ModuleIdentity", "iso", "mib-2", "Counter64", "NotificationType", "Integer32") ( TextualConvention, TestAndIncr, TimeInterval, DisplayString, TimeStamp, RowStatus, TruthValue, ) = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TestAndIncr", "TimeInterval", "DisplayString", "TimeStamp", "RowStatus", "TruthValue") rsvp = ModuleIdentity((1, 3, 6, 1, 2, 1, 51)) if mibBuilder.loadTexts: rsvp.setLastUpdated('9511030500Z') if mibBuilder.loadTexts: rsvp.setOrganization('IETF RSVP Working Group') if mibBuilder.loadTexts: rsvp.setContactInfo(' Fred Baker\n Postal: Cisco Systems\n 519 Lado Drive\n Santa Barbara, California 93111\n Tel: +1 805 681 0115\n E-Mail: fred@cisco.com\n\n John Krawczyk\n Postal: ArrowPoint Communications\n 235 Littleton Road\n Westford, Massachusetts 01886\n Tel: +1 508 692 5875\n E-Mail: jjk@tiac.net\n\n Arun Sastry\n Postal: Cisco Systems\n 210 W. Tasman Drive\n San Jose, California 95134\n Tel: +1 408 526 7685\n E-Mail: arun@cisco.com') if mibBuilder.loadTexts: rsvp.setDescription('The MIB module to describe the RSVP Protocol') rsvpObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 51, 1)) rsvpGenObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 51, 2)) rsvpNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 2, 1, 51, 3)) rsvpConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 51, 4)) class RsvpEncapsulation(Integer32, TextualConvention): subtypeSpec = Integer32.subtypeSpec+ConstraintsUnion(SingleValueConstraint(1, 2, 3,)) namedValues = NamedValues(("ip", 1), ("udp", 2), ("both", 3),) class RefreshInterval(Integer32, TextualConvention): displayHint = 'd' subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(0,2147483647) rsvpSessionTable = MibTable((1, 3, 6, 1, 2, 1, 51, 1, 1), ) if mibBuilder.loadTexts: rsvpSessionTable.setDescription('A table of all sessions seen by a given sys-\n tem.') rsvpSessionEntry = MibTableRow((1, 3, 6, 1, 2, 1, 51, 1, 1, 1), ).setIndexNames((0, "RSVP-MIB", "rsvpSessionNumber")) if mibBuilder.loadTexts: rsvpSessionEntry.setDescription('A single session seen by a given system.') rsvpSessionNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 1), SessionNumber()) if mibBuilder.loadTexts: rsvpSessionNumber.setDescription('The number of this session. This is for SNMP\n\n Indexing purposes only and has no relation to\n any protocol value.') rsvpSessionType = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 2), SessionType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSessionType.setDescription('The type of session (IP4, IP6, IP6 with flow\n information, etc).') rsvpSessionDestAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSessionDestAddr.setDescription("The destination address used by all senders in\n this session. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvpSessionDestAddrLength = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,128))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSessionDestAddrLength.setDescription("The CIDR prefix length of the session address,\n which is 32 for IP4 host and multicast ad-\n dresses, and 128 for IP6 addresses. This ob-\n ject may not be changed when the value of the\n RowStatus object is 'active'.") rsvpSessionProtocol = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 5), Protocol()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSessionProtocol.setDescription("The IP Protocol used by this session. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpSessionPort = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 6), Port()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSessionPort.setDescription("The UDP or TCP port number used as a destina-\n tion port for all senders in this session. If\n the IP protocol in use, specified by rsvpSen-\n derProtocol, is 50 (ESP) or 51 (AH), this\n represents a virtual destination port number.\n A value of zero indicates that the IP protocol\n in use does not have ports. This object may\n not be changed when the value of the RowStatus\n object is 'active'.") rsvpSessionSenders = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSessionSenders.setDescription('The number of distinct senders currently known\n to be part of this session.') rsvpSessionReceivers = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSessionReceivers.setDescription('The number of reservations being requested of\n this system for this session.') rsvpSessionRequests = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSessionRequests.setDescription('The number of reservation requests this system\n is sending upstream for this session.') rsvpBadPackets = MibScalar((1, 3, 6, 1, 2, 1, 51, 2, 1), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpBadPackets.setDescription('This object keeps a count of the number of bad\n RSVP packets received.') rsvpSenderNewIndex = MibScalar((1, 3, 6, 1, 2, 1, 51, 2, 2), TestAndIncr()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rsvpSenderNewIndex.setDescription("This object is used to assign values to\n rsvpSenderNumber as described in 'Textual Con-\n ventions for SNMPv2'. The network manager\n reads the object, and then writes the value\n back in the SET that creates a new instance of\n rsvpSenderEntry. If the SET fails with the\n code 'inconsistentValue', then the process must\n be repeated; If the SET succeeds, then the ob-\n ject is incremented, and the new instance is\n created according to the manager's directions.") rsvpSenderTable = MibTable((1, 3, 6, 1, 2, 1, 51, 1, 2), ) if mibBuilder.loadTexts: rsvpSenderTable.setDescription('Information describing the state information\n displayed by senders in PATH messages.') rsvpSenderEntry = MibTableRow((1, 3, 6, 1, 2, 1, 51, 1, 2, 1), ).setIndexNames((0, "RSVP-MIB", "rsvpSessionNumber"), (0, "RSVP-MIB", "rsvpSenderNumber")) if mibBuilder.loadTexts: rsvpSenderEntry.setDescription("Information describing the state information\n displayed by a single sender's PATH message.") rsvpSenderNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 1), SessionNumber()) if mibBuilder.loadTexts: rsvpSenderNumber.setDescription('The number of this sender. This is for SNMP\n Indexing purposes only and has no relation to\n any protocol value.') rsvpSenderType = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 2), SessionType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderType.setDescription('The type of session (IP4, IP6, IP6 with flow\n information, etc).') rsvpSenderDestAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderDestAddr.setDescription("The destination address used by all senders in\n this session. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvpSenderAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAddr.setDescription("The source address used by this sender in this\n session. This object may not be changed when\n the value of the RowStatus object is 'active'.") rsvpSenderDestAddrLength = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,128))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderDestAddrLength.setDescription("The length of the destination address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpSenderAddrLength = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,128))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAddrLength.setDescription("The length of the sender's address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpSenderProtocol = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 7), Protocol()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderProtocol.setDescription("The IP Protocol used by this session. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpSenderDestPort = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 8), Port()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderDestPort.setDescription("The UDP or TCP port number used as a destina-\n tion port for all senders in this session. If\n the IP protocol in use, specified by rsvpSen-\n derProtocol, is 50 (ESP) or 51 (AH), this\n represents a virtual destination port number.\n A value of zero indicates that the IP protocol\n in use does not have ports. This object may\n not be changed when the value of the RowStatus\n object is 'active'.") rsvpSenderPort = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 9), Port()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderPort.setDescription("The UDP or TCP port number used as a source\n port for this sender in this session. If the\n IP protocol in use, specified by rsvpSenderPro-\n tocol is 50 (ESP) or 51 (AH), this represents a\n generalized port identifier (GPI). A value of\n zero indicates that the IP protocol in use does\n not have ports. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvpSenderFlowId = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,16777215))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSenderFlowId.setDescription('The flow ID that this sender is using, if\n this is an IPv6 session.') rsvpSenderHopAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderHopAddr.setDescription('The address used by the previous RSVP hop\n (which may be the original sender).') rsvpSenderHopLih = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 12), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderHopLih.setDescription('The Logical Interface Handle used by the pre-\n vious RSVP hop (which may be the original\n sender).') rsvpSenderInterface = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 13), InterfaceIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderInterface.setDescription('The ifIndex value of the interface on which\n this PATH message was most recently received.') rsvpSenderTSpecRate = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 14), BitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderTSpecRate.setDescription("The Average Bit Rate of the sender's data\n stream. Within a transmission burst, the ar-\n rival rate may be as fast as rsvpSenderTSpec-\n PeakRate (if supported by the service model);\n however, averaged across two or more burst in-\n tervals, the rate should not exceed rsvpSen-\n derTSpecRate.\n\n Note that this is a prediction, often based on\n the general capability of a type of codec or\n particular encoding; the measured average rate\n may be significantly lower.") rsvpSenderTSpecPeakRate = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 15), BitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderTSpecPeakRate.setDescription("The Peak Bit Rate of the sender's data stream.\n Traffic arrival is not expected to exceed this\n rate at any time, apart from the effects of\n jitter in the network. If not specified in the\n TSpec, this returns zero or noSuchValue.") rsvpSenderTSpecBurst = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 16), BurstSize()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderTSpecBurst.setDescription('The size of the largest burst expected from\n the sender at a time.') rsvpSenderTSpecMinTU = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 17), MessageSize()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderTSpecMinTU.setDescription('The minimum message size for this flow. The\n policing algorithm will treat smaller messages\n as though they are this size.') rsvpSenderTSpecMaxTU = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 18), MessageSize()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderTSpecMaxTU.setDescription('The maximum message size for this flow. The\n admission algorithm will reject TSpecs whose\n Maximum Transmission Unit, plus the interface\n headers, exceed the interface MTU.') rsvpSenderInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 19), RefreshInterval()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderInterval.setDescription('The interval between refresh messages as ad-\n\n vertised by the Previous Hop.') rsvpSenderRSVPHop = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 20), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderRSVPHop.setDescription('If TRUE, the node believes that the previous\n IP hop is an RSVP hop. If FALSE, the node be-\n lieves that the previous IP hop may not be an\n RSVP hop.') rsvpSenderLastChange = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 21), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSenderLastChange.setDescription('The time of the last change in this PATH mes-\n sage; This is either the first time it was re-\n ceived or the time of the most recent change in\n parameters.') rsvpSenderPolicy = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 22), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,65536))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderPolicy.setDescription('The contents of the policy object, displayed\n as an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.') rsvpSenderAdspecBreak = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 23), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecBreak.setDescription('The global break bit general characterization\n parameter from the ADSPEC. If TRUE, at least\n one non-IS hop was detected in the path. If\n\n FALSE, no non-IS hops were detected.') rsvpSenderAdspecHopCount = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecHopCount.setDescription('The hop count general characterization parame-\n ter from the ADSPEC. A return of zero or\n noSuchValue indicates one of the following con-\n ditions:\n\n the invalid bit was set\n the parameter was not present') rsvpSenderAdspecPathBw = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 25), BitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecPathBw.setDescription('The path bandwidth estimate general character-\n ization parameter from the ADSPEC. A return of\n zero or noSuchValue indicates one of the fol-\n lowing conditions:\n\n the invalid bit was set\n the parameter was not present') rsvpSenderAdspecMinLatency = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 26), Integer32()).setUnits('microseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecMinLatency.setDescription('The minimum path latency general characteriza-\n tion parameter from the ADSPEC. A return of\n zero or noSuchValue indicates one of the fol-\n lowing conditions:\n\n the invalid bit was set\n the parameter was not present') rsvpSenderAdspecMtu = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 27), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecMtu.setDescription('The composed Maximum Transmission Unit general\n characterization parameter from the ADSPEC. A\n return of zero or noSuchValue indicates one of\n the following conditions:\n\n the invalid bit was set\n the parameter was not present') rsvpSenderAdspecGuaranteedSvc = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 28), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedSvc.setDescription('If TRUE, the ADSPEC contains a Guaranteed Ser-\n vice fragment. If FALSE, the ADSPEC does not\n contain a Guaranteed Service fragment.') rsvpSenderAdspecGuaranteedBreak = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 29), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedBreak.setDescription("If TRUE, the Guaranteed Service fragment has\n its 'break' bit set, indicating that one or\n more nodes along the path do not support the\n guaranteed service. If FALSE, and rsvpSen-\n derAdspecGuaranteedSvc is TRUE, the 'break' bit\n is not set.\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns FALSE or noSuchValue.") rsvpSenderAdspecGuaranteedCtot = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 30), Integer32()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedCtot.setDescription("If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the end-to-end composed value for the\n guaranteed service 'C' parameter. A return of\n zero or noSuchValue indicates one of the fol-\n lowing conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.") rsvpSenderAdspecGuaranteedDtot = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 31), Integer32()).setUnits('microseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedDtot.setDescription("If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the end-to-end composed value for the\n guaranteed service 'D' parameter. A return of\n zero or noSuchValue indicates one of the fol-\n lowing conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.") rsvpSenderAdspecGuaranteedCsum = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 32), Integer32()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedCsum.setDescription("If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the composed value for the guaranteed ser-\n\n vice 'C' parameter since the last reshaping\n point. A return of zero or noSuchValue indi-\n cates one of the following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.") rsvpSenderAdspecGuaranteedDsum = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 33), Integer32()).setUnits('microseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedDsum.setDescription("If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the composed value for the guaranteed ser-\n vice 'D' parameter since the last reshaping\n point. A return of zero or noSuchValue indi-\n cates one of the following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.") rsvpSenderAdspecGuaranteedHopCount = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 34), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedHopCount.setDescription('If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the service-specific override of the hop\n count general characterization parameter from\n the ADSPEC. A return of zero or noSuchValue\n indicates one of the following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n\n returns zero or noSuchValue.') rsvpSenderAdspecGuaranteedPathBw = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 35), BitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedPathBw.setDescription('If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the service-specific override of the path\n bandwidth estimate general characterization\n parameter from the ADSPEC. A return of zero or\n noSuchValue indicates one of the following con-\n ditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.') rsvpSenderAdspecGuaranteedMinLatency = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 36), Integer32()).setUnits('microseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedMinLatency.setDescription('If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the service-specific override of the minimum\n path latency general characterization parameter\n from the ADSPEC. A return of zero or noSuch-\n Value indicates one of the following condi-\n tions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.') rsvpSenderAdspecGuaranteedMtu = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 37), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedMtu.setDescription('If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the service-specific override of the com-\n posed Maximum Transmission Unit general charac-\n terization parameter from the ADSPEC. A return\n of zero or noSuchValue indicates one of the\n following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.') rsvpSenderAdspecCtrlLoadSvc = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 38), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadSvc.setDescription('If TRUE, the ADSPEC contains a Controlled Load\n Service fragment. If FALSE, the ADSPEC does\n not contain a Controlled Load Service frag-\n ment.') rsvpSenderAdspecCtrlLoadBreak = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 39), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadBreak.setDescription("If TRUE, the Controlled Load Service fragment\n has its 'break' bit set, indicating that one or\n more nodes along the path do not support the\n controlled load service. If FALSE, and\n rsvpSenderAdspecCtrlLoadSvc is TRUE, the\n 'break' bit is not set.\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns FALSE or noSuchValue.") rsvpSenderAdspecCtrlLoadHopCount = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 40), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadHopCount.setDescription('If rsvpSenderAdspecCtrlLoadSvc is TRUE, this\n is the service-specific override of the hop\n count general characterization parameter from\n the ADSPEC. A return of zero or noSuchValue\n indicates one of the following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns zero or noSuchValue.') rsvpSenderAdspecCtrlLoadPathBw = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 41), BitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadPathBw.setDescription('If rsvpSenderAdspecCtrlLoadSvc is TRUE, this\n is the service-specific override of the path\n bandwidth estimate general characterization\n parameter from the ADSPEC. A return of zero or\n noSuchValue indicates one of the following con-\n ditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns zero or noSuchValue.') rsvpSenderAdspecCtrlLoadMinLatency = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 42), Integer32()).setUnits('microseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadMinLatency.setDescription('If rsvpSenderAdspecCtrlLoadSvc is TRUE, this\n\n is the service-specific override of the minimum\n path latency general characterization parameter\n from the ADSPEC. A return of zero or noSuch-\n Value indicates one of the following condi-\n tions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns zero or noSuchValue.') rsvpSenderAdspecCtrlLoadMtu = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 43), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadMtu.setDescription('If rsvpSenderAdspecCtrlLoadSvc is TRUE, this\n is the service-specific override of the com-\n posed Maximum Transmission Unit general charac-\n terization parameter from the ADSPEC. A return\n of zero or noSuchValue indicates one of the\n following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns zero or noSuchValue.') rsvpSenderStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 44), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpSenderStatus.setDescription("'active' for all active PATH messages. This\n object may be used to install static PATH in-\n formation or delete PATH information.") rsvpSenderTTL = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 45), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,255))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSenderTTL.setDescription('The TTL value in the RSVP header that was last\n received.') rsvpSenderOutInterfaceTable = MibTable((1, 3, 6, 1, 2, 1, 51, 1, 3), ) if mibBuilder.loadTexts: rsvpSenderOutInterfaceTable.setDescription('List of outgoing interfaces that PATH messages\n use. The ifIndex is the ifIndex value of the\n egress interface.') rsvpSenderOutInterfaceEntry = MibTableRow((1, 3, 6, 1, 2, 1, 51, 1, 3, 1), ).setIndexNames((0, "RSVP-MIB", "rsvpSessionNumber"), (0, "RSVP-MIB", "rsvpSenderNumber"), (0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: rsvpSenderOutInterfaceEntry.setDescription('List of outgoing interfaces that a particular\n PATH message has.') rsvpSenderOutInterfaceStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 3, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpSenderOutInterfaceStatus.setDescription("'active' for all active PATH messages.") rsvpResvNewIndex = MibScalar((1, 3, 6, 1, 2, 1, 51, 2, 3), TestAndIncr()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rsvpResvNewIndex.setDescription("This object is used to assign values to\n rsvpResvNumber as described in 'Textual Conven-\n tions for SNMPv2'. The network manager reads\n the object, and then writes the value back in\n the SET that creates a new instance of\n rsvpResvEntry. If the SET fails with the code\n 'inconsistentValue', then the process must be\n repeated; If the SET succeeds, then the object\n is incremented, and the new instance is created\n according to the manager's directions.") rsvpResvTable = MibTable((1, 3, 6, 1, 2, 1, 51, 1, 4), ) if mibBuilder.loadTexts: rsvpResvTable.setDescription('Information describing the state information\n displayed by receivers in RESV messages.') rsvpResvEntry = MibTableRow((1, 3, 6, 1, 2, 1, 51, 1, 4, 1), ).setIndexNames((0, "RSVP-MIB", "rsvpSessionNumber"), (0, "RSVP-MIB", "rsvpResvNumber")) if mibBuilder.loadTexts: rsvpResvEntry.setDescription("Information describing the state information\n displayed by a single receiver's RESV message\n concerning a single sender.") rsvpResvNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 1), SessionNumber()) if mibBuilder.loadTexts: rsvpResvNumber.setDescription('The number of this reservation request. This\n is for SNMP Indexing purposes only and has no\n relation to any protocol value.') rsvpResvType = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 2), SessionType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvType.setDescription('The type of session (IP4, IP6, IP6 with flow\n information, etc).') rsvpResvDestAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvDestAddr.setDescription("The destination address used by all senders in\n this session. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvpResvSenderAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvSenderAddr.setDescription("The source address of the sender selected by\n this reservation. The value of all zeroes in-\n dicates 'all senders'. This object may not be\n changed when the value of the RowStatus object\n is 'active'.") rsvpResvDestAddrLength = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,128))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvDestAddrLength.setDescription("The length of the destination address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpResvSenderAddrLength = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,128))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvSenderAddrLength.setDescription("The length of the sender's address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpResvProtocol = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 7), Protocol()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvProtocol.setDescription("The IP Protocol used by this session. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpResvDestPort = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 8), Port()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvDestPort.setDescription("The UDP or TCP port number used as a destina-\n tion port for all senders in this session. If\n the IP protocol in use, specified by\n rsvpResvProtocol, is 50 (ESP) or 51 (AH), this\n represents a virtual destination port number.\n A value of zero indicates that the IP protocol\n in use does not have ports. This object may\n not be changed when the value of the RowStatus\n object is 'active'.") rsvpResvPort = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 9), Port()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvPort.setDescription("The UDP or TCP port number used as a source\n port for this sender in this session. If the\n IP protocol in use, specified by rsvpResvProto-\n col is 50 (ESP) or 51 (AH), this represents a\n generalized port identifier (GPI). A value of\n zero indicates that the IP protocol in use does\n not have ports. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvpResvHopAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvHopAddr.setDescription('The address used by the next RSVP hop (which\n may be the ultimate receiver).') rsvpResvHopLih = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 11), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvHopLih.setDescription('The Logical Interface Handle received from the\n previous RSVP hop (which may be the ultimate\n receiver).') rsvpResvInterface = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 12), InterfaceIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvInterface.setDescription('The ifIndex value of the interface on which\n this RESV message was most recently received.') rsvpResvService = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 13), QosService()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvService.setDescription('The QoS Service classification requested by\n the receiver.') rsvpResvTSpecRate = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 14), BitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvTSpecRate.setDescription("The Average Bit Rate of the sender's data\n\n stream. Within a transmission burst, the ar-\n rival rate may be as fast as rsvpResvTSpec-\n PeakRate (if supported by the service model);\n however, averaged across two or more burst in-\n tervals, the rate should not exceed\n rsvpResvTSpecRate.\n\n Note that this is a prediction, often based on\n the general capability of a type of codec or\n particular encoding; the measured average rate\n may be significantly lower.") rsvpResvTSpecPeakRate = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 15), BitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvTSpecPeakRate.setDescription("The Peak Bit Rate of the sender's data stream.\n Traffic arrival is not expected to exceed this\n rate at any time, apart from the effects of\n jitter in the network. If not specified in the\n TSpec, this returns zero or noSuchValue.") rsvpResvTSpecBurst = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 16), BurstSize()).setUnits('bytes').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvTSpecBurst.setDescription("The size of the largest burst expected from\n the sender at a time.\n\n If this is less than the sender's advertised\n burst size, the receiver is asking the network\n to provide flow pacing beyond what would be\n provided under normal circumstances. Such pac-\n ing is at the network's option.") rsvpResvTSpecMinTU = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 17), MessageSize()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvTSpecMinTU.setDescription('The minimum message size for this flow. The\n policing algorithm will treat smaller messages\n as though they are this size.') rsvpResvTSpecMaxTU = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 18), MessageSize()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvTSpecMaxTU.setDescription('The maximum message size for this flow. The\n admission algorithm will reject TSpecs whose\n Maximum Transmission Unit, plus the interface\n headers, exceed the interface MTU.') rsvpResvRSpecRate = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 19), BitRate()).setUnits('bits per second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvRSpecRate.setDescription('If the requested service is Guaranteed, as\n specified by rsvpResvService, this is the\n clearing rate that is being requested. Other-\n wise, it is zero, or the agent may return\n noSuchValue.') rsvpResvRSpecSlack = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 20), Integer32()).setUnits('microseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvRSpecSlack.setDescription('If the requested service is Guaranteed, as\n specified by rsvpResvService, this is the delay\n slack. Otherwise, it is zero, or the agent may\n return noSuchValue.') rsvpResvInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 21), RefreshInterval()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvInterval.setDescription('The interval between refresh messages as ad-\n vertised by the Next Hop.') rsvpResvScope = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 22), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,65536))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvScope.setDescription('The contents of the scope object, displayed as\n an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.\n\n If the length is non-zero, this contains a\n series of IP4 or IP6 addresses.') rsvpResvShared = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 23), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvShared.setDescription('If TRUE, a reservation shared among senders is\n requested. If FALSE, a reservation specific to\n this sender is requested.') rsvpResvExplicit = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 24), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvExplicit.setDescription('If TRUE, individual senders are listed using\n Filter Specifications. If FALSE, all senders\n are implicitly selected. The Scope Object will\n contain a list of senders that need to receive\n this reservation request for the purpose of\n routing the RESV message.') rsvpResvRSVPHop = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 25), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvRSVPHop.setDescription('If TRUE, the node believes that the previous\n IP hop is an RSVP hop. If FALSE, the node be-\n lieves that the previous IP hop may not be an\n RSVP hop.') rsvpResvLastChange = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 26), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvLastChange.setDescription('The time of the last change in this reserva-\n tion request; This is either the first time it\n was received or the time of the most recent\n change in parameters.') rsvpResvPolicy = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 27), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,65536))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvPolicy.setDescription('The contents of the policy object, displayed\n as an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.') rsvpResvStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 28), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpResvStatus.setDescription("'active' for all active RESV messages. This\n object may be used to install static RESV in-\n formation or delete RESV information.") rsvpResvTTL = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,255))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvTTL.setDescription('The TTL value in the RSVP header that was last\n received.') rsvpResvFlowId = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,16777215))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFlowId.setDescription('The flow ID that this receiver is using, if\n this is an IPv6 session.') rsvpResvFwdNewIndex = MibScalar((1, 3, 6, 1, 2, 1, 51, 2, 4), TestAndIncr()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rsvpResvFwdNewIndex.setDescription("This object is used to assign values to\n rsvpResvFwdNumber as described in 'Textual Con-\n ventions for SNMPv2'. The network manager\n reads the object, and then writes the value\n back in the SET that creates a new instance of\n rsvpResvFwdEntry. If the SET fails with the\n code 'inconsistentValue', then the process must\n be repeated; If the SET succeeds, then the ob-\n ject is incremented, and the new instance is\n created according to the manager's directions.") rsvpResvFwdTable = MibTable((1, 3, 6, 1, 2, 1, 51, 1, 5), ) if mibBuilder.loadTexts: rsvpResvFwdTable.setDescription('Information describing the state information\n displayed upstream in RESV messages.') rsvpResvFwdEntry = MibTableRow((1, 3, 6, 1, 2, 1, 51, 1, 5, 1), ).setIndexNames((0, "RSVP-MIB", "rsvpSessionNumber"), (0, "RSVP-MIB", "rsvpResvFwdNumber")) if mibBuilder.loadTexts: rsvpResvFwdEntry.setDescription('Information describing the state information\n displayed upstream in an RESV message concern-\n ing a single sender.') rsvpResvFwdNumber = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 1), SessionNumber()) if mibBuilder.loadTexts: rsvpResvFwdNumber.setDescription('The number of this reservation request. This\n is for SNMP Indexing purposes only and has no\n relation to any protocol value.') rsvpResvFwdType = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 2), SessionType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdType.setDescription('The type of session (IP4, IP6, IP6 with flow\n information, etc).') rsvpResvFwdDestAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdDestAddr.setDescription("The destination address used by all senders in\n this session. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvpResvFwdSenderAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdSenderAddr.setDescription("The source address of the sender selected by\n this reservation. The value of all zeroes in-\n dicates 'all senders'. This object may not be\n changed when the value of the RowStatus object\n is 'active'.") rsvpResvFwdDestAddrLength = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,128))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdDestAddrLength.setDescription("The length of the destination address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpResvFwdSenderAddrLength = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,128))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdSenderAddrLength.setDescription("The length of the sender's address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvpResvFwdProtocol = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 7), Protocol()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdProtocol.setDescription("The IP Protocol used by a session. for secure\n sessions, this indicates IP Security. This ob-\n ject may not be changed when the value of the\n RowStatus object is 'active'.") rsvpResvFwdDestPort = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 8), Port()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdDestPort.setDescription("The UDP or TCP port number used as a destina-\n tion port for all senders in this session. If\n\n the IP protocol in use, specified by\n rsvpResvFwdProtocol, is 50 (ESP) or 51 (AH),\n this represents a virtual destination port\n number. A value of zero indicates that the IP\n protocol in use does not have ports. This ob-\n ject may not be changed when the value of the\n RowStatus object is 'active'.") rsvpResvFwdPort = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 9), Port()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdPort.setDescription("The UDP or TCP port number used as a source\n port for this sender in this session. If the\n IP protocol in use, specified by\n rsvpResvFwdProtocol is 50 (ESP) or 51 (AH),\n this represents a generalized port identifier\n (GPI). A value of zero indicates that the IP\n protocol in use does not have ports. This ob-\n ject may not be changed when the value of the\n RowStatus object is 'active'.") rsvpResvFwdHopAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdHopAddr.setDescription('The address of the (previous) RSVP that will\n receive this message.') rsvpResvFwdHopLih = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdHopLih.setDescription('The Logical Interface Handle sent to the (pre-\n vious) RSVP that will receive this message.') rsvpResvFwdInterface = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 12), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdInterface.setDescription('The ifIndex value of the interface on which\n this RESV message was most recently sent.') rsvpResvFwdService = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 13), QosService()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdService.setDescription('The QoS Service classification requested.') rsvpResvFwdTSpecRate = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 14), BitRate()).setUnits('bits per second').setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdTSpecRate.setDescription("The Average Bit Rate of the sender's data\n stream. Within a transmission burst, the ar-\n rival rate may be as fast as rsvpResvFwdTSpec-\n PeakRate (if supported by the service model);\n however, averaged across two or more burst in-\n tervals, the rate should not exceed\n rsvpResvFwdTSpecRate.\n\n Note that this is a prediction, often based on\n the general capability of a type of codec or\n particular encoding; the measured average rate\n may be significantly lower.") rsvpResvFwdTSpecPeakRate = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 15), BitRate()).setUnits('bits per second').setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdTSpecPeakRate.setDescription("The Peak Bit Rate of the sender's data stream\n Traffic arrival is not expected to exceed this\n rate at any time, apart from the effects of\n\n jitter in the network. If not specified in the\n TSpec, this returns zero or noSuchValue.") rsvpResvFwdTSpecBurst = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 16), BurstSize()).setUnits('bytes').setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdTSpecBurst.setDescription("The size of the largest burst expected from\n the sender at a time.\n\n If this is less than the sender's advertised\n burst size, the receiver is asking the network\n to provide flow pacing beyond what would be\n provided under normal circumstances. Such pac-\n ing is at the network's option.") rsvpResvFwdTSpecMinTU = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 17), MessageSize()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdTSpecMinTU.setDescription('The minimum message size for this flow. The\n policing algorithm will treat smaller messages\n as though they are this size.') rsvpResvFwdTSpecMaxTU = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 18), MessageSize()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdTSpecMaxTU.setDescription('The maximum message size for this flow. The\n admission algorithm will reject TSpecs whose\n Maximum Transmission Unit, plus the interface\n headers, exceed the interface MTU.') rsvpResvFwdRSpecRate = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 19), BitRate()).setUnits('bytes per second').setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdRSpecRate.setDescription('If the requested service is Guaranteed, as\n specified by rsvpResvService, this is the\n clearing rate that is being requested. Other-\n wise, it is zero, or the agent may return\n noSuchValue.') rsvpResvFwdRSpecSlack = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 20), Integer32()).setUnits('microseconds').setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdRSpecSlack.setDescription('If the requested service is Guaranteed, as\n specified by rsvpResvService, this is the delay\n slack. Otherwise, it is zero, or the agent may\n return noSuchValue.') rsvpResvFwdInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 21), RefreshInterval()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdInterval.setDescription('The interval between refresh messages adver-\n tised to the Previous Hop.') rsvpResvFwdScope = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 22), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,65536))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdScope.setDescription('The contents of the scope object, displayed as\n an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.') rsvpResvFwdShared = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 23), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdShared.setDescription('If TRUE, a reservation shared among senders is\n requested. If FALSE, a reservation specific to\n this sender is requested.') rsvpResvFwdExplicit = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 24), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdExplicit.setDescription('If TRUE, individual senders are listed using\n Filter Specifications. If FALSE, all senders\n are implicitly selected. The Scope Object will\n contain a list of senders that need to receive\n this reservation request for the purpose of\n routing the RESV message.') rsvpResvFwdRSVPHop = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 25), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdRSVPHop.setDescription('If TRUE, the node believes that the next IP\n hop is an RSVP hop. If FALSE, the node be-\n lieves that the next IP hop may not be an RSVP\n hop.') rsvpResvFwdLastChange = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 26), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdLastChange.setDescription('The time of the last change in this request;\n This is either the first time it was sent or\n the time of the most recent change in parame-\n ters.') rsvpResvFwdPolicy = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 27), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,65536))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdPolicy.setDescription('The contents of the policy object, displayed\n as an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.') rsvpResvFwdStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 28), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rsvpResvFwdStatus.setDescription("'active' for all active RESV messages. This\n object may be used to delete RESV information.") rsvpResvFwdTTL = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,255))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdTTL.setDescription('The TTL value in the RSVP header that was last\n received.') rsvpResvFwdFlowId = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,16777215))).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpResvFwdFlowId.setDescription('The flow ID that this receiver is using, if\n this is an IPv6 session.') rsvpIfTable = MibTable((1, 3, 6, 1, 2, 1, 51, 1, 6), ) if mibBuilder.loadTexts: rsvpIfTable.setDescription("The RSVP-specific attributes of the system's\n interfaces.") rsvpIfEntry = MibTableRow((1, 3, 6, 1, 2, 1, 51, 1, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: rsvpIfEntry.setDescription('The RSVP-specific attributes of the a given\n interface.') rsvpIfUdpNbrs = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 1), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpIfUdpNbrs.setDescription('The number of neighbors perceived to be using\n only the RSVP UDP Encapsulation.') rsvpIfIpNbrs = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpIfIpNbrs.setDescription('The number of neighbors perceived to be using\n only the RSVP IP Encapsulation.') rsvpIfNbrs = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rsvpIfNbrs.setDescription('The number of neighbors currently perceived;\n this will exceed rsvpIfIpNbrs + rsvpIfUdpNbrs\n by the number of neighbors using both encapsu-\n lations.') rsvpIfRefreshBlockadeMultiple = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,65536)).clone(4)).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpIfRefreshBlockadeMultiple.setDescription("The value of the RSVP value 'Kb', Which is the\n minimum number of refresh intervals that\n blockade state will last once entered.") rsvpIfRefreshMultiple = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,65536)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpIfRefreshMultiple.setDescription("The value of the RSVP value 'K', which is the\n number of refresh intervals which must elapse\n (minimum) before a PATH or RESV message which\n is not being refreshed will be aged out.") rsvpIfTTL = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpIfTTL.setDescription('The value of SEND_TTL used on this interface\n for messages this node originates. If set to\n zero, the node determines the TTL via other\n means.') rsvpIfRefreshInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 7), TimeInterval().clone(3000)).setUnits('milliseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpIfRefreshInterval.setDescription("The value of the RSVP value 'R', which is the\n minimum period between refresh transmissions of\n a given PATH or RESV message on an interface.") rsvpIfRouteDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 8), TimeInterval().clone(200)).setUnits('hundredths of a second').setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpIfRouteDelay.setDescription('The approximate period from the time a route\n is changed to the time a resulting message ap-\n pears on the interface.') rsvpIfEnabled = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 9), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpIfEnabled.setDescription('If TRUE, RSVP is enabled on this Interface.\n If FALSE, RSVP is not enabled on this inter-\n face.') rsvpIfUdpRequired = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 10), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpIfUdpRequired.setDescription('If TRUE, manual configuration forces the use\n of UDP encapsulation on the interface. If\n FALSE, UDP encapsulation is only used if rsvpI-\n fUdpNbrs is not zero.') rsvpIfStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpIfStatus.setDescription("'active' on interfaces that are configured for\n RSVP.") rsvpNbrTable = MibTable((1, 3, 6, 1, 2, 1, 51, 1, 7), ) if mibBuilder.loadTexts: rsvpNbrTable.setDescription('Information describing the Neighbors of an\n RSVP system.') rsvpNbrEntry = MibTableRow((1, 3, 6, 1, 2, 1, 51, 1, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "RSVP-MIB", "rsvpNbrAddress")) if mibBuilder.loadTexts: rsvpNbrEntry.setDescription('Information describing a single RSVP Neigh-\n bor.') rsvpNbrAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 7, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4,16))) if mibBuilder.loadTexts: rsvpNbrAddress.setDescription("The IP4 or IP6 Address used by this neighbor.\n This object may not be changed when the value\n of the RowStatus object is 'active'.") rsvpNbrProtocol = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 7, 1, 2), RsvpEncapsulation()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpNbrProtocol.setDescription('The encapsulation being used by this neigh-\n bor.') rsvpNbrStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 51, 1, 7, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rsvpNbrStatus.setDescription("'active' for all neighbors. This object may\n be used to configure neighbors. In the pres-\n ence of configured neighbors, the implementa-\n tion may (but is not required to) limit the set\n of valid neighbors to those configured.") rsvpNotifications = MibIdentifier((1, 3, 6, 1, 2, 1, 51, 3, 0)) newFlow = NotificationType((1, 3, 6, 1, 2, 1, 51, 3, 0, 1)).setObjects(*(("RSVP-MIB", "intSrvFlowStatus"), ("RSVP-MIB", "rsvpSessionDestAddr"), ("RSVP-MIB", "rsvpResvFwdStatus"), ("RSVP-MIB", "rsvpResvStatus"), ("RSVP-MIB", "rsvpSenderStatus"),)) if mibBuilder.loadTexts: newFlow.setDescription('The newFlow trap indicates that the originat-\n ing system has installed a new flow in its\n classifier, or (when reservation authorization\n is in view) is prepared to install such a flow\n in the classifier and is requesting authoriza-\n tion. The objects included with the Notifica-\n tion may be used to read further information\n using the Integrated Services and RSVP MIBs.\n Authorization or non-authorization may be\n enacted by a write to the variable intSrvFlowS-\n tatus.') lostFlow = NotificationType((1, 3, 6, 1, 2, 1, 51, 3, 0, 2)).setObjects(*(("RSVP-MIB", "intSrvFlowStatus"), ("RSVP-MIB", "rsvpSessionDestAddr"), ("RSVP-MIB", "rsvpResvFwdStatus"), ("RSVP-MIB", "rsvpResvStatus"), ("RSVP-MIB", "rsvpSenderStatus"),)) if mibBuilder.loadTexts: lostFlow.setDescription('The lostFlow trap indicates that the originat-\n ing system has removed a flow from its classif-\n ier.') rsvpGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 51, 4, 1)) rsvpCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 51, 4, 2)) rsvpCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 51, 4, 2, 1)).setObjects(*(("RSVP-MIB", "rsvpSessionGroup"), ("RSVP-MIB", "rsvpSenderGroup"), ("RSVP-MIB", "rsvpResvGroup"), ("RSVP-MIB", "rsvpIfGroup"), ("RSVP-MIB", "rsvpNbrGroup"), ("RSVP-MIB", "rsvpResvFwdGroup"), ("RSVP-MIB", "rsvpNotificationGroup"),)) if mibBuilder.loadTexts: rsvpCompliance.setDescription('The compliance statement. Note that the im-\n plementation of this module requires implemen-\n tation of the Integrated Services MIB as well.') rsvpSessionGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 51, 4, 1, 1)).setObjects(*(("RSVP-MIB", "rsvpSessionType"), ("RSVP-MIB", "rsvpSessionDestAddr"), ("RSVP-MIB", "rsvpSessionDestAddrLength"), ("RSVP-MIB", "rsvpSessionProtocol"), ("RSVP-MIB", "rsvpSessionPort"), ("RSVP-MIB", "rsvpSessionSenders"), ("RSVP-MIB", "rsvpSessionReceivers"), ("RSVP-MIB", "rsvpSessionRequests"),)) if mibBuilder.loadTexts: rsvpSessionGroup.setDescription('These objects are required for RSVP Systems.') rsvpSenderGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 51, 4, 1, 2)).setObjects(*(("RSVP-MIB", "rsvpSenderType"), ("RSVP-MIB", "rsvpSenderDestAddr"), ("RSVP-MIB", "rsvpSenderAddr"), ("RSVP-MIB", "rsvpSenderDestAddrLength"), ("RSVP-MIB", "rsvpSenderAddrLength"), ("RSVP-MIB", "rsvpSenderProtocol"), ("RSVP-MIB", "rsvpSenderDestPort"), ("RSVP-MIB", "rsvpSenderPort"), ("RSVP-MIB", "rsvpSenderHopAddr"), ("RSVP-MIB", "rsvpSenderHopLih"), ("RSVP-MIB", "rsvpSenderInterface"), ("RSVP-MIB", "rsvpSenderTSpecRate"), ("RSVP-MIB", "rsvpSenderTSpecPeakRate"), ("RSVP-MIB", "rsvpSenderTSpecBurst"), ("RSVP-MIB", "rsvpSenderTSpecMinTU"), ("RSVP-MIB", "rsvpSenderTSpecMaxTU"), ("RSVP-MIB", "rsvpSenderInterval"), ("RSVP-MIB", "rsvpSenderLastChange"), ("RSVP-MIB", "rsvpSenderStatus"), ("RSVP-MIB", "rsvpSenderRSVPHop"), ("RSVP-MIB", "rsvpSenderPolicy"), ("RSVP-MIB", "rsvpSenderAdspecBreak"), ("RSVP-MIB", "rsvpSenderAdspecHopCount"), ("RSVP-MIB", "rsvpSenderAdspecPathBw"), ("RSVP-MIB", "rsvpSenderAdspecMinLatency"), ("RSVP-MIB", "rsvpSenderAdspecMtu"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedSvc"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedBreak"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedCtot"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedDtot"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedCsum"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedDsum"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedHopCount"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedPathBw"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedMinLatency"), ("RSVP-MIB", "rsvpSenderAdspecGuaranteedMtu"), ("RSVP-MIB", "rsvpSenderAdspecCtrlLoadSvc"), ("RSVP-MIB", "rsvpSenderAdspecCtrlLoadBreak"), ("RSVP-MIB", "rsvpSenderAdspecCtrlLoadHopCount"), ("RSVP-MIB", "rsvpSenderAdspecCtrlLoadPathBw"), ("RSVP-MIB", "rsvpSenderAdspecCtrlLoadMinLatency"), ("RSVP-MIB", "rsvpSenderAdspecCtrlLoadMtu"), ("RSVP-MIB", "rsvpSenderNewIndex"),)) if mibBuilder.loadTexts: rsvpSenderGroup.setDescription('These objects are required for RSVP Systems.') rsvpResvGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 51, 4, 1, 3)).setObjects(*(("RSVP-MIB", "rsvpResvType"), ("RSVP-MIB", "rsvpResvDestAddr"), ("RSVP-MIB", "rsvpResvSenderAddr"), ("RSVP-MIB", "rsvpResvDestAddrLength"), ("RSVP-MIB", "rsvpResvSenderAddrLength"), ("RSVP-MIB", "rsvpResvProtocol"), ("RSVP-MIB", "rsvpResvDestPort"), ("RSVP-MIB", "rsvpResvPort"), ("RSVP-MIB", "rsvpResvHopAddr"), ("RSVP-MIB", "rsvpResvHopLih"), ("RSVP-MIB", "rsvpResvInterface"), ("RSVP-MIB", "rsvpResvService"), ("RSVP-MIB", "rsvpResvTSpecRate"), ("RSVP-MIB", "rsvpResvTSpecBurst"), ("RSVP-MIB", "rsvpResvTSpecPeakRate"), ("RSVP-MIB", "rsvpResvTSpecMinTU"), ("RSVP-MIB", "rsvpResvTSpecMaxTU"), ("RSVP-MIB", "rsvpResvRSpecRate"), ("RSVP-MIB", "rsvpResvRSpecSlack"), ("RSVP-MIB", "rsvpResvInterval"), ("RSVP-MIB", "rsvpResvScope"), ("RSVP-MIB", "rsvpResvShared"), ("RSVP-MIB", "rsvpResvExplicit"), ("RSVP-MIB", "rsvpResvRSVPHop"), ("RSVP-MIB", "rsvpResvLastChange"), ("RSVP-MIB", "rsvpResvPolicy"), ("RSVP-MIB", "rsvpResvStatus"), ("RSVP-MIB", "rsvpResvNewIndex"),)) if mibBuilder.loadTexts: rsvpResvGroup.setDescription('These objects are required for RSVP Systems.') rsvpResvFwdGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 51, 4, 1, 4)).setObjects(*(("RSVP-MIB", "rsvpResvFwdType"), ("RSVP-MIB", "rsvpResvFwdDestAddr"), ("RSVP-MIB", "rsvpResvFwdSenderAddr"), ("RSVP-MIB", "rsvpResvFwdDestAddrLength"), ("RSVP-MIB", "rsvpResvFwdSenderAddrLength"), ("RSVP-MIB", "rsvpResvFwdProtocol"), ("RSVP-MIB", "rsvpResvFwdDestPort"), ("RSVP-MIB", "rsvpResvFwdPort"), ("RSVP-MIB", "rsvpResvFwdHopAddr"), ("RSVP-MIB", "rsvpResvFwdHopLih"), ("RSVP-MIB", "rsvpResvFwdInterface"), ("RSVP-MIB", "rsvpResvFwdNewIndex"), ("RSVP-MIB", "rsvpResvFwdService"), ("RSVP-MIB", "rsvpResvFwdTSpecPeakRate"), ("RSVP-MIB", "rsvpResvFwdTSpecMinTU"), ("RSVP-MIB", "rsvpResvFwdTSpecMaxTU"), ("RSVP-MIB", "rsvpResvFwdTSpecRate"), ("RSVP-MIB", "rsvpResvFwdTSpecBurst"), ("RSVP-MIB", "rsvpResvFwdRSpecRate"), ("RSVP-MIB", "rsvpResvFwdRSpecSlack"), ("RSVP-MIB", "rsvpResvFwdInterval"), ("RSVP-MIB", "rsvpResvFwdScope"), ("RSVP-MIB", "rsvpResvFwdShared"), ("RSVP-MIB", "rsvpResvFwdExplicit"), ("RSVP-MIB", "rsvpResvFwdRSVPHop"), ("RSVP-MIB", "rsvpResvFwdLastChange"), ("RSVP-MIB", "rsvpResvFwdPolicy"), ("RSVP-MIB", "rsvpResvFwdStatus"),)) if mibBuilder.loadTexts: rsvpResvFwdGroup.setDescription('These objects are optional, used for some RSVP\n Systems.') rsvpIfGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 51, 4, 1, 6)).setObjects(*(("RSVP-MIB", "rsvpIfUdpNbrs"), ("RSVP-MIB", "rsvpIfIpNbrs"), ("RSVP-MIB", "rsvpIfNbrs"), ("RSVP-MIB", "rsvpIfEnabled"), ("RSVP-MIB", "rsvpIfUdpRequired"), ("RSVP-MIB", "rsvpIfRefreshBlockadeMultiple"), ("RSVP-MIB", "rsvpIfRefreshMultiple"), ("RSVP-MIB", "rsvpIfRefreshInterval"), ("RSVP-MIB", "rsvpIfTTL"), ("RSVP-MIB", "rsvpIfRouteDelay"), ("RSVP-MIB", "rsvpIfStatus"),)) if mibBuilder.loadTexts: rsvpIfGroup.setDescription('These objects are required for RSVP Systems.') rsvpNbrGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 51, 4, 1, 7)).setObjects(*(("RSVP-MIB", "rsvpNbrProtocol"), ("RSVP-MIB", "rsvpNbrStatus"),)) if mibBuilder.loadTexts: rsvpNbrGroup.setDescription('These objects are required for RSVP Systems.') rsvpNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 51, 4, 1, 8)).setObjects(*(("RSVP-MIB", "newFlow"), ("RSVP-MIB", "lostFlow"),)) if mibBuilder.loadTexts: rsvpNotificationGroup.setDescription('This notification is required for Systems sup-\n porting the RSVP Policy Module using an SNMP\n interface to the Policy Manager.') mibBuilder.exportSymbols("RSVP-MIB", rsvpCompliance=rsvpCompliance, rsvpSessionRequests=rsvpSessionRequests, rsvpSenderTSpecMaxTU=rsvpSenderTSpecMaxTU, rsvpNbrTable=rsvpNbrTable, rsvpNbrProtocol=rsvpNbrProtocol, rsvpResvSenderAddr=rsvpResvSenderAddr, lostFlow=lostFlow, rsvpResvFwdExplicit=rsvpResvFwdExplicit, rsvpNbrEntry=rsvpNbrEntry, rsvpResvType=rsvpResvType, rsvpResvRSpecRate=rsvpResvRSpecRate, rsvpNbrGroup=rsvpNbrGroup, rsvpSenderTable=rsvpSenderTable, rsvpResvNumber=rsvpResvNumber, rsvpResvFwdTSpecMinTU=rsvpResvFwdTSpecMinTU, rsvpResvFwdNewIndex=rsvpResvFwdNewIndex, rsvpSenderAdspecGuaranteedPathBw=rsvpSenderAdspecGuaranteedPathBw, rsvpConformance=rsvpConformance, rsvpSessionPort=rsvpSessionPort, rsvpResvFwdEntry=rsvpResvFwdEntry, rsvpSenderAdspecGuaranteedCtot=rsvpSenderAdspecGuaranteedCtot, rsvpResvFwdTSpecRate=rsvpResvFwdTSpecRate, rsvpSessionReceivers=rsvpSessionReceivers, rsvpSenderInterval=rsvpSenderInterval, rsvpIfRefreshBlockadeMultiple=rsvpIfRefreshBlockadeMultiple, rsvpResvFwdDestAddrLength=rsvpResvFwdDestAddrLength, rsvpResvPort=rsvpResvPort, rsvpSessionTable=rsvpSessionTable, rsvpResvTSpecMinTU=rsvpResvTSpecMinTU, rsvpResvFwdTTL=rsvpResvFwdTTL, rsvpResvFwdInterval=rsvpResvFwdInterval, rsvpSessionGroup=rsvpSessionGroup, rsvpIfTTL=rsvpIfTTL, rsvpIfStatus=rsvpIfStatus, rsvpNbrStatus=rsvpNbrStatus, rsvpSenderLastChange=rsvpSenderLastChange, rsvpResvExplicit=rsvpResvExplicit, rsvpResvFwdSenderAddrLength=rsvpResvFwdSenderAddrLength, rsvpResvFwdDestAddr=rsvpResvFwdDestAddr, rsvpResvStatus=rsvpResvStatus, rsvpResvFwdTSpecMaxTU=rsvpResvFwdTSpecMaxTU, rsvpIfRouteDelay=rsvpIfRouteDelay, rsvpResvScope=rsvpResvScope, rsvpGenObjects=rsvpGenObjects, rsvpSenderTSpecRate=rsvpSenderTSpecRate, rsvpSenderFlowId=rsvpSenderFlowId, rsvpResvDestPort=rsvpResvDestPort, rsvpResvDestAddrLength=rsvpResvDestAddrLength, rsvpResvFwdDestPort=rsvpResvFwdDestPort, rsvpResvFwdRSVPHop=rsvpResvFwdRSVPHop, rsvpSenderAdspecGuaranteedSvc=rsvpSenderAdspecGuaranteedSvc, rsvpResvFwdSenderAddr=rsvpResvFwdSenderAddr, rsvpSenderAdspecCtrlLoadSvc=rsvpSenderAdspecCtrlLoadSvc, rsvpResvFwdPolicy=rsvpResvFwdPolicy, rsvpIfUdpRequired=rsvpIfUdpRequired, rsvpSenderAddrLength=rsvpSenderAddrLength, rsvpGroups=rsvpGroups, rsvpSenderNewIndex=rsvpSenderNewIndex, rsvpSenderRSVPHop=rsvpSenderRSVPHop, rsvpResvFwdNumber=rsvpResvFwdNumber, rsvpResvFwdFlowId=rsvpResvFwdFlowId, rsvpBadPackets=rsvpBadPackets, rsvpSenderInterface=rsvpSenderInterface, rsvpSenderAdspecMtu=rsvpSenderAdspecMtu, rsvpNotifications=rsvpNotifications, rsvpSenderPolicy=rsvpSenderPolicy, rsvpSenderAdspecCtrlLoadPathBw=rsvpSenderAdspecCtrlLoadPathBw, rsvpCompliances=rsvpCompliances, rsvpSenderAdspecGuaranteedDsum=rsvpSenderAdspecGuaranteedDsum, rsvpResvFwdInterface=rsvpResvFwdInterface, rsvpSenderNumber=rsvpSenderNumber, rsvpSenderAdspecCtrlLoadHopCount=rsvpSenderAdspecCtrlLoadHopCount, rsvpSessionDestAddr=rsvpSessionDestAddr, PYSNMP_MODULE_ID=rsvp, rsvpResvFwdPort=rsvpResvFwdPort, rsvpSenderPort=rsvpSenderPort, rsvpResvFwdTable=rsvpResvFwdTable, rsvpResvFwdLastChange=rsvpResvFwdLastChange, rsvpSenderEntry=rsvpSenderEntry, rsvpSenderType=rsvpSenderType, rsvpSenderAdspecHopCount=rsvpSenderAdspecHopCount, rsvpResvFwdScope=rsvpResvFwdScope, rsvpResvTTL=rsvpResvTTL, rsvpResvFwdService=rsvpResvFwdService, rsvpNotificationGroup=rsvpNotificationGroup, rsvpResvDestAddr=rsvpResvDestAddr, rsvpSenderTSpecPeakRate=rsvpSenderTSpecPeakRate, rsvpSenderAdspecGuaranteedHopCount=rsvpSenderAdspecGuaranteedHopCount, rsvpIfTable=rsvpIfTable, rsvpIfEnabled=rsvpIfEnabled, rsvpResvService=rsvpResvService, rsvpSenderDestAddr=rsvpSenderDestAddr, rsvpSenderOutInterfaceTable=rsvpSenderOutInterfaceTable, rsvpSenderDestAddrLength=rsvpSenderDestAddrLength, rsvpSenderAdspecCtrlLoadBreak=rsvpSenderAdspecCtrlLoadBreak, rsvpSenderGroup=rsvpSenderGroup, rsvpResvTSpecRate=rsvpResvTSpecRate, rsvpResvFwdType=rsvpResvFwdType, rsvpResvEntry=rsvpResvEntry, rsvp=rsvp, rsvpSenderAdspecMinLatency=rsvpSenderAdspecMinLatency, rsvpResvFlowId=rsvpResvFlowId, rsvpResvTSpecPeakRate=rsvpResvTSpecPeakRate, rsvpResvTable=rsvpResvTable, rsvpResvLastChange=rsvpResvLastChange, rsvpResvFwdHopAddr=rsvpResvFwdHopAddr, rsvpSenderAdspecBreak=rsvpSenderAdspecBreak, rsvpSessionDestAddrLength=rsvpSessionDestAddrLength, rsvpResvGroup=rsvpResvGroup, rsvpSenderStatus=rsvpSenderStatus, rsvpIfIpNbrs=rsvpIfIpNbrs, rsvpSessionEntry=rsvpSessionEntry, newFlow=newFlow, rsvpNbrAddress=rsvpNbrAddress, rsvpResvFwdRSpecSlack=rsvpResvFwdRSpecSlack, rsvpIfRefreshMultiple=rsvpIfRefreshMultiple, RefreshInterval=RefreshInterval, rsvpResvNewIndex=rsvpResvNewIndex, rsvpSenderOutInterfaceStatus=rsvpSenderOutInterfaceStatus, rsvpResvSenderAddrLength=rsvpResvSenderAddrLength, rsvpSenderAdspecGuaranteedCsum=rsvpSenderAdspecGuaranteedCsum, rsvpResvTSpecBurst=rsvpResvTSpecBurst, rsvpResvFwdShared=rsvpResvFwdShared, rsvpIfUdpNbrs=rsvpIfUdpNbrs, rsvpResvShared=rsvpResvShared, rsvpSessionType=rsvpSessionType, rsvpSessionProtocol=rsvpSessionProtocol, rsvpObjects=rsvpObjects, rsvpSenderDestPort=rsvpSenderDestPort, rsvpIfGroup=rsvpIfGroup, rsvpSenderTSpecMinTU=rsvpSenderTSpecMinTU, rsvpSenderTSpecBurst=rsvpSenderTSpecBurst, rsvpResvFwdHopLih=rsvpResvFwdHopLih, rsvpIfRefreshInterval=rsvpIfRefreshInterval, RsvpEncapsulation=RsvpEncapsulation, rsvpResvFwdStatus=rsvpResvFwdStatus, rsvpResvFwdProtocol=rsvpResvFwdProtocol, rsvpResvRSpecSlack=rsvpResvRSpecSlack, rsvpSenderAdspecGuaranteedBreak=rsvpSenderAdspecGuaranteedBreak, rsvpResvProtocol=rsvpResvProtocol, rsvpSenderAdspecCtrlLoadMtu=rsvpSenderAdspecCtrlLoadMtu, rsvpSenderTTL=rsvpSenderTTL, rsvpResvHopLih=rsvpResvHopLih, rsvpResvPolicy=rsvpResvPolicy, rsvpSenderHopAddr=rsvpSenderHopAddr, rsvpResvRSVPHop=rsvpResvRSVPHop, rsvpSenderOutInterfaceEntry=rsvpSenderOutInterfaceEntry, rsvpNotificationsPrefix=rsvpNotificationsPrefix, rsvpResvFwdRSpecRate=rsvpResvFwdRSpecRate, rsvpSenderAdspecGuaranteedMtu=rsvpSenderAdspecGuaranteedMtu, rsvpSenderAdspecCtrlLoadMinLatency=rsvpSenderAdspecCtrlLoadMinLatency, rsvpSenderAdspecGuaranteedDtot=rsvpSenderAdspecGuaranteedDtot, rsvpSessionNumber=rsvpSessionNumber, rsvpSessionSenders=rsvpSessionSenders, rsvpSenderHopLih=rsvpSenderHopLih, rsvpSenderAdspecPathBw=rsvpSenderAdspecPathBw, rsvpResvFwdTSpecPeakRate=rsvpResvFwdTSpecPeakRate, rsvpIfEntry=rsvpIfEntry, rsvpResvFwdTSpecBurst=rsvpResvFwdTSpecBurst, rsvpSenderAdspecGuaranteedMinLatency=rsvpSenderAdspecGuaranteedMinLatency, rsvpResvTSpecMaxTU=rsvpResvTSpecMaxTU, rsvpResvFwdGroup=rsvpResvFwdGroup, rsvpResvInterval=rsvpResvInterval, rsvpIfNbrs=rsvpIfNbrs, rsvpResvInterface=rsvpResvInterface, rsvpSenderAddr=rsvpSenderAddr, rsvpSenderProtocol=rsvpSenderProtocol, rsvpResvHopAddr=rsvpResvHopAddr)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, value_size_constraint, single_value_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (if_index, interface_index) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'InterfaceIndex') (message_size, port, protocol, burst_size, qos_service, bit_rate, session_number, int_srv_flow_status, session_type) = mibBuilder.importSymbols('INTEGRATED-SERVICES-MIB', 'MessageSize', 'Port', 'Protocol', 'BurstSize', 'QosService', 'BitRate', 'SessionNumber', 'intSrvFlowStatus', 'SessionType') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (unsigned32, time_ticks, object_identity, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, bits, counter32, ip_address, module_identity, iso, mib_2, counter64, notification_type, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'TimeTicks', 'ObjectIdentity', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Bits', 'Counter32', 'IpAddress', 'ModuleIdentity', 'iso', 'mib-2', 'Counter64', 'NotificationType', 'Integer32') (textual_convention, test_and_incr, time_interval, display_string, time_stamp, row_status, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TestAndIncr', 'TimeInterval', 'DisplayString', 'TimeStamp', 'RowStatus', 'TruthValue') rsvp = module_identity((1, 3, 6, 1, 2, 1, 51)) if mibBuilder.loadTexts: rsvp.setLastUpdated('9511030500Z') if mibBuilder.loadTexts: rsvp.setOrganization('IETF RSVP Working Group') if mibBuilder.loadTexts: rsvp.setContactInfo(' Fred Baker\n Postal: Cisco Systems\n 519 Lado Drive\n Santa Barbara, California 93111\n Tel: +1 805 681 0115\n E-Mail: fred@cisco.com\n\n John Krawczyk\n Postal: ArrowPoint Communications\n 235 Littleton Road\n Westford, Massachusetts 01886\n Tel: +1 508 692 5875\n E-Mail: jjk@tiac.net\n\n Arun Sastry\n Postal: Cisco Systems\n 210 W. Tasman Drive\n San Jose, California 95134\n Tel: +1 408 526 7685\n E-Mail: arun@cisco.com') if mibBuilder.loadTexts: rsvp.setDescription('The MIB module to describe the RSVP Protocol') rsvp_objects = mib_identifier((1, 3, 6, 1, 2, 1, 51, 1)) rsvp_gen_objects = mib_identifier((1, 3, 6, 1, 2, 1, 51, 2)) rsvp_notifications_prefix = mib_identifier((1, 3, 6, 1, 2, 1, 51, 3)) rsvp_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 51, 4)) class Rsvpencapsulation(Integer32, TextualConvention): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('ip', 1), ('udp', 2), ('both', 3)) class Refreshinterval(Integer32, TextualConvention): display_hint = 'd' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 2147483647) rsvp_session_table = mib_table((1, 3, 6, 1, 2, 1, 51, 1, 1)) if mibBuilder.loadTexts: rsvpSessionTable.setDescription('A table of all sessions seen by a given sys-\n tem.') rsvp_session_entry = mib_table_row((1, 3, 6, 1, 2, 1, 51, 1, 1, 1)).setIndexNames((0, 'RSVP-MIB', 'rsvpSessionNumber')) if mibBuilder.loadTexts: rsvpSessionEntry.setDescription('A single session seen by a given system.') rsvp_session_number = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 1), session_number()) if mibBuilder.loadTexts: rsvpSessionNumber.setDescription('The number of this session. This is for SNMP\n\n Indexing purposes only and has no relation to\n any protocol value.') rsvp_session_type = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 2), session_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSessionType.setDescription('The type of session (IP4, IP6, IP6 with flow\n information, etc).') rsvp_session_dest_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSessionDestAddr.setDescription("The destination address used by all senders in\n this session. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvp_session_dest_addr_length = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSessionDestAddrLength.setDescription("The CIDR prefix length of the session address,\n which is 32 for IP4 host and multicast ad-\n dresses, and 128 for IP6 addresses. This ob-\n ject may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_session_protocol = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 5), protocol()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSessionProtocol.setDescription("The IP Protocol used by this session. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_session_port = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 6), port()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSessionPort.setDescription("The UDP or TCP port number used as a destina-\n tion port for all senders in this session. If\n the IP protocol in use, specified by rsvpSen-\n derProtocol, is 50 (ESP) or 51 (AH), this\n represents a virtual destination port number.\n A value of zero indicates that the IP protocol\n in use does not have ports. This object may\n not be changed when the value of the RowStatus\n object is 'active'.") rsvp_session_senders = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSessionSenders.setDescription('The number of distinct senders currently known\n to be part of this session.') rsvp_session_receivers = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSessionReceivers.setDescription('The number of reservations being requested of\n this system for this session.') rsvp_session_requests = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 1, 1, 9), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSessionRequests.setDescription('The number of reservation requests this system\n is sending upstream for this session.') rsvp_bad_packets = mib_scalar((1, 3, 6, 1, 2, 1, 51, 2, 1), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpBadPackets.setDescription('This object keeps a count of the number of bad\n RSVP packets received.') rsvp_sender_new_index = mib_scalar((1, 3, 6, 1, 2, 1, 51, 2, 2), test_and_incr()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rsvpSenderNewIndex.setDescription("This object is used to assign values to\n rsvpSenderNumber as described in 'Textual Con-\n ventions for SNMPv2'. The network manager\n reads the object, and then writes the value\n back in the SET that creates a new instance of\n rsvpSenderEntry. If the SET fails with the\n code 'inconsistentValue', then the process must\n be repeated; If the SET succeeds, then the ob-\n ject is incremented, and the new instance is\n created according to the manager's directions.") rsvp_sender_table = mib_table((1, 3, 6, 1, 2, 1, 51, 1, 2)) if mibBuilder.loadTexts: rsvpSenderTable.setDescription('Information describing the state information\n displayed by senders in PATH messages.') rsvp_sender_entry = mib_table_row((1, 3, 6, 1, 2, 1, 51, 1, 2, 1)).setIndexNames((0, 'RSVP-MIB', 'rsvpSessionNumber'), (0, 'RSVP-MIB', 'rsvpSenderNumber')) if mibBuilder.loadTexts: rsvpSenderEntry.setDescription("Information describing the state information\n displayed by a single sender's PATH message.") rsvp_sender_number = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 1), session_number()) if mibBuilder.loadTexts: rsvpSenderNumber.setDescription('The number of this sender. This is for SNMP\n Indexing purposes only and has no relation to\n any protocol value.') rsvp_sender_type = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 2), session_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderType.setDescription('The type of session (IP4, IP6, IP6 with flow\n information, etc).') rsvp_sender_dest_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderDestAddr.setDescription("The destination address used by all senders in\n this session. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvp_sender_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAddr.setDescription("The source address used by this sender in this\n session. This object may not be changed when\n the value of the RowStatus object is 'active'.") rsvp_sender_dest_addr_length = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderDestAddrLength.setDescription("The length of the destination address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_sender_addr_length = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAddrLength.setDescription("The length of the sender's address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_sender_protocol = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 7), protocol()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderProtocol.setDescription("The IP Protocol used by this session. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_sender_dest_port = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 8), port()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderDestPort.setDescription("The UDP or TCP port number used as a destina-\n tion port for all senders in this session. If\n the IP protocol in use, specified by rsvpSen-\n derProtocol, is 50 (ESP) or 51 (AH), this\n represents a virtual destination port number.\n A value of zero indicates that the IP protocol\n in use does not have ports. This object may\n not be changed when the value of the RowStatus\n object is 'active'.") rsvp_sender_port = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 9), port()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderPort.setDescription("The UDP or TCP port number used as a source\n port for this sender in this session. If the\n IP protocol in use, specified by rsvpSenderPro-\n tocol is 50 (ESP) or 51 (AH), this represents a\n generalized port identifier (GPI). A value of\n zero indicates that the IP protocol in use does\n not have ports. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvp_sender_flow_id = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 16777215))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSenderFlowId.setDescription('The flow ID that this sender is using, if\n this is an IPv6 session.') rsvp_sender_hop_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderHopAddr.setDescription('The address used by the previous RSVP hop\n (which may be the original sender).') rsvp_sender_hop_lih = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 12), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderHopLih.setDescription('The Logical Interface Handle used by the pre-\n vious RSVP hop (which may be the original\n sender).') rsvp_sender_interface = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 13), interface_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderInterface.setDescription('The ifIndex value of the interface on which\n this PATH message was most recently received.') rsvp_sender_t_spec_rate = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 14), bit_rate()).setUnits('bits per second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderTSpecRate.setDescription("The Average Bit Rate of the sender's data\n stream. Within a transmission burst, the ar-\n rival rate may be as fast as rsvpSenderTSpec-\n PeakRate (if supported by the service model);\n however, averaged across two or more burst in-\n tervals, the rate should not exceed rsvpSen-\n derTSpecRate.\n\n Note that this is a prediction, often based on\n the general capability of a type of codec or\n particular encoding; the measured average rate\n may be significantly lower.") rsvp_sender_t_spec_peak_rate = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 15), bit_rate()).setUnits('bits per second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderTSpecPeakRate.setDescription("The Peak Bit Rate of the sender's data stream.\n Traffic arrival is not expected to exceed this\n rate at any time, apart from the effects of\n jitter in the network. If not specified in the\n TSpec, this returns zero or noSuchValue.") rsvp_sender_t_spec_burst = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 16), burst_size()).setUnits('bytes').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderTSpecBurst.setDescription('The size of the largest burst expected from\n the sender at a time.') rsvp_sender_t_spec_min_tu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 17), message_size()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderTSpecMinTU.setDescription('The minimum message size for this flow. The\n policing algorithm will treat smaller messages\n as though they are this size.') rsvp_sender_t_spec_max_tu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 18), message_size()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderTSpecMaxTU.setDescription('The maximum message size for this flow. The\n admission algorithm will reject TSpecs whose\n Maximum Transmission Unit, plus the interface\n headers, exceed the interface MTU.') rsvp_sender_interval = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 19), refresh_interval()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderInterval.setDescription('The interval between refresh messages as ad-\n\n vertised by the Previous Hop.') rsvp_sender_rsvp_hop = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 20), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderRSVPHop.setDescription('If TRUE, the node believes that the previous\n IP hop is an RSVP hop. If FALSE, the node be-\n lieves that the previous IP hop may not be an\n RSVP hop.') rsvp_sender_last_change = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 21), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSenderLastChange.setDescription('The time of the last change in this PATH mes-\n sage; This is either the first time it was re-\n ceived or the time of the most recent change in\n parameters.') rsvp_sender_policy = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 22), octet_string().subtype(subtypeSpec=value_size_constraint(4, 65536))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderPolicy.setDescription('The contents of the policy object, displayed\n as an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.') rsvp_sender_adspec_break = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 23), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecBreak.setDescription('The global break bit general characterization\n parameter from the ADSPEC. If TRUE, at least\n one non-IS hop was detected in the path. If\n\n FALSE, no non-IS hops were detected.') rsvp_sender_adspec_hop_count = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecHopCount.setDescription('The hop count general characterization parame-\n ter from the ADSPEC. A return of zero or\n noSuchValue indicates one of the following con-\n ditions:\n\n the invalid bit was set\n the parameter was not present') rsvp_sender_adspec_path_bw = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 25), bit_rate()).setUnits('bits per second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecPathBw.setDescription('The path bandwidth estimate general character-\n ization parameter from the ADSPEC. A return of\n zero or noSuchValue indicates one of the fol-\n lowing conditions:\n\n the invalid bit was set\n the parameter was not present') rsvp_sender_adspec_min_latency = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 26), integer32()).setUnits('microseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecMinLatency.setDescription('The minimum path latency general characteriza-\n tion parameter from the ADSPEC. A return of\n zero or noSuchValue indicates one of the fol-\n lowing conditions:\n\n the invalid bit was set\n the parameter was not present') rsvp_sender_adspec_mtu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 27), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setUnits('bytes').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecMtu.setDescription('The composed Maximum Transmission Unit general\n characterization parameter from the ADSPEC. A\n return of zero or noSuchValue indicates one of\n the following conditions:\n\n the invalid bit was set\n the parameter was not present') rsvp_sender_adspec_guaranteed_svc = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 28), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedSvc.setDescription('If TRUE, the ADSPEC contains a Guaranteed Ser-\n vice fragment. If FALSE, the ADSPEC does not\n contain a Guaranteed Service fragment.') rsvp_sender_adspec_guaranteed_break = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 29), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedBreak.setDescription("If TRUE, the Guaranteed Service fragment has\n its 'break' bit set, indicating that one or\n more nodes along the path do not support the\n guaranteed service. If FALSE, and rsvpSen-\n derAdspecGuaranteedSvc is TRUE, the 'break' bit\n is not set.\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns FALSE or noSuchValue.") rsvp_sender_adspec_guaranteed_ctot = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 30), integer32()).setUnits('bytes').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedCtot.setDescription("If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the end-to-end composed value for the\n guaranteed service 'C' parameter. A return of\n zero or noSuchValue indicates one of the fol-\n lowing conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.") rsvp_sender_adspec_guaranteed_dtot = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 31), integer32()).setUnits('microseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedDtot.setDescription("If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the end-to-end composed value for the\n guaranteed service 'D' parameter. A return of\n zero or noSuchValue indicates one of the fol-\n lowing conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.") rsvp_sender_adspec_guaranteed_csum = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 32), integer32()).setUnits('bytes').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedCsum.setDescription("If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the composed value for the guaranteed ser-\n\n vice 'C' parameter since the last reshaping\n point. A return of zero or noSuchValue indi-\n cates one of the following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.") rsvp_sender_adspec_guaranteed_dsum = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 33), integer32()).setUnits('microseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedDsum.setDescription("If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the composed value for the guaranteed ser-\n vice 'D' parameter since the last reshaping\n point. A return of zero or noSuchValue indi-\n cates one of the following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.") rsvp_sender_adspec_guaranteed_hop_count = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 34), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedHopCount.setDescription('If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the service-specific override of the hop\n count general characterization parameter from\n the ADSPEC. A return of zero or noSuchValue\n indicates one of the following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n\n returns zero or noSuchValue.') rsvp_sender_adspec_guaranteed_path_bw = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 35), bit_rate()).setUnits('bits per second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedPathBw.setDescription('If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the service-specific override of the path\n bandwidth estimate general characterization\n parameter from the ADSPEC. A return of zero or\n noSuchValue indicates one of the following con-\n ditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.') rsvp_sender_adspec_guaranteed_min_latency = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 36), integer32()).setUnits('microseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedMinLatency.setDescription('If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the service-specific override of the minimum\n path latency general characterization parameter\n from the ADSPEC. A return of zero or noSuch-\n Value indicates one of the following condi-\n tions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.') rsvp_sender_adspec_guaranteed_mtu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 37), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setUnits('bytes').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecGuaranteedMtu.setDescription('If rsvpSenderAdspecGuaranteedSvc is TRUE, this\n is the service-specific override of the com-\n posed Maximum Transmission Unit general charac-\n terization parameter from the ADSPEC. A return\n of zero or noSuchValue indicates one of the\n following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecGuaranteedSvc is FALSE, this\n returns zero or noSuchValue.') rsvp_sender_adspec_ctrl_load_svc = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 38), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadSvc.setDescription('If TRUE, the ADSPEC contains a Controlled Load\n Service fragment. If FALSE, the ADSPEC does\n not contain a Controlled Load Service frag-\n ment.') rsvp_sender_adspec_ctrl_load_break = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 39), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadBreak.setDescription("If TRUE, the Controlled Load Service fragment\n has its 'break' bit set, indicating that one or\n more nodes along the path do not support the\n controlled load service. If FALSE, and\n rsvpSenderAdspecCtrlLoadSvc is TRUE, the\n 'break' bit is not set.\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns FALSE or noSuchValue.") rsvp_sender_adspec_ctrl_load_hop_count = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 40), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadHopCount.setDescription('If rsvpSenderAdspecCtrlLoadSvc is TRUE, this\n is the service-specific override of the hop\n count general characterization parameter from\n the ADSPEC. A return of zero or noSuchValue\n indicates one of the following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns zero or noSuchValue.') rsvp_sender_adspec_ctrl_load_path_bw = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 41), bit_rate()).setUnits('bits per second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadPathBw.setDescription('If rsvpSenderAdspecCtrlLoadSvc is TRUE, this\n is the service-specific override of the path\n bandwidth estimate general characterization\n parameter from the ADSPEC. A return of zero or\n noSuchValue indicates one of the following con-\n ditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns zero or noSuchValue.') rsvp_sender_adspec_ctrl_load_min_latency = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 42), integer32()).setUnits('microseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadMinLatency.setDescription('If rsvpSenderAdspecCtrlLoadSvc is TRUE, this\n\n is the service-specific override of the minimum\n path latency general characterization parameter\n from the ADSPEC. A return of zero or noSuch-\n Value indicates one of the following condi-\n tions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns zero or noSuchValue.') rsvp_sender_adspec_ctrl_load_mtu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 43), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setUnits('bytes').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderAdspecCtrlLoadMtu.setDescription('If rsvpSenderAdspecCtrlLoadSvc is TRUE, this\n is the service-specific override of the com-\n posed Maximum Transmission Unit general charac-\n terization parameter from the ADSPEC. A return\n of zero or noSuchValue indicates one of the\n following conditions:\n\n the invalid bit was set\n the parameter was not present\n\n If rsvpSenderAdspecCtrlLoadSvc is FALSE, this\n returns zero or noSuchValue.') rsvp_sender_status = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 44), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpSenderStatus.setDescription("'active' for all active PATH messages. This\n object may be used to install static PATH in-\n formation or delete PATH information.") rsvp_sender_ttl = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 2, 1, 45), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSenderTTL.setDescription('The TTL value in the RSVP header that was last\n received.') rsvp_sender_out_interface_table = mib_table((1, 3, 6, 1, 2, 1, 51, 1, 3)) if mibBuilder.loadTexts: rsvpSenderOutInterfaceTable.setDescription('List of outgoing interfaces that PATH messages\n use. The ifIndex is the ifIndex value of the\n egress interface.') rsvp_sender_out_interface_entry = mib_table_row((1, 3, 6, 1, 2, 1, 51, 1, 3, 1)).setIndexNames((0, 'RSVP-MIB', 'rsvpSessionNumber'), (0, 'RSVP-MIB', 'rsvpSenderNumber'), (0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: rsvpSenderOutInterfaceEntry.setDescription('List of outgoing interfaces that a particular\n PATH message has.') rsvp_sender_out_interface_status = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 3, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpSenderOutInterfaceStatus.setDescription("'active' for all active PATH messages.") rsvp_resv_new_index = mib_scalar((1, 3, 6, 1, 2, 1, 51, 2, 3), test_and_incr()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rsvpResvNewIndex.setDescription("This object is used to assign values to\n rsvpResvNumber as described in 'Textual Conven-\n tions for SNMPv2'. The network manager reads\n the object, and then writes the value back in\n the SET that creates a new instance of\n rsvpResvEntry. If the SET fails with the code\n 'inconsistentValue', then the process must be\n repeated; If the SET succeeds, then the object\n is incremented, and the new instance is created\n according to the manager's directions.") rsvp_resv_table = mib_table((1, 3, 6, 1, 2, 1, 51, 1, 4)) if mibBuilder.loadTexts: rsvpResvTable.setDescription('Information describing the state information\n displayed by receivers in RESV messages.') rsvp_resv_entry = mib_table_row((1, 3, 6, 1, 2, 1, 51, 1, 4, 1)).setIndexNames((0, 'RSVP-MIB', 'rsvpSessionNumber'), (0, 'RSVP-MIB', 'rsvpResvNumber')) if mibBuilder.loadTexts: rsvpResvEntry.setDescription("Information describing the state information\n displayed by a single receiver's RESV message\n concerning a single sender.") rsvp_resv_number = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 1), session_number()) if mibBuilder.loadTexts: rsvpResvNumber.setDescription('The number of this reservation request. This\n is for SNMP Indexing purposes only and has no\n relation to any protocol value.') rsvp_resv_type = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 2), session_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvType.setDescription('The type of session (IP4, IP6, IP6 with flow\n information, etc).') rsvp_resv_dest_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvDestAddr.setDescription("The destination address used by all senders in\n this session. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvp_resv_sender_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvSenderAddr.setDescription("The source address of the sender selected by\n this reservation. The value of all zeroes in-\n dicates 'all senders'. This object may not be\n changed when the value of the RowStatus object\n is 'active'.") rsvp_resv_dest_addr_length = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvDestAddrLength.setDescription("The length of the destination address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_resv_sender_addr_length = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvSenderAddrLength.setDescription("The length of the sender's address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_resv_protocol = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 7), protocol()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvProtocol.setDescription("The IP Protocol used by this session. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_resv_dest_port = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 8), port()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvDestPort.setDescription("The UDP or TCP port number used as a destina-\n tion port for all senders in this session. If\n the IP protocol in use, specified by\n rsvpResvProtocol, is 50 (ESP) or 51 (AH), this\n represents a virtual destination port number.\n A value of zero indicates that the IP protocol\n in use does not have ports. This object may\n not be changed when the value of the RowStatus\n object is 'active'.") rsvp_resv_port = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 9), port()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvPort.setDescription("The UDP or TCP port number used as a source\n port for this sender in this session. If the\n IP protocol in use, specified by rsvpResvProto-\n col is 50 (ESP) or 51 (AH), this represents a\n generalized port identifier (GPI). A value of\n zero indicates that the IP protocol in use does\n not have ports. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvp_resv_hop_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvHopAddr.setDescription('The address used by the next RSVP hop (which\n may be the ultimate receiver).') rsvp_resv_hop_lih = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 11), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvHopLih.setDescription('The Logical Interface Handle received from the\n previous RSVP hop (which may be the ultimate\n receiver).') rsvp_resv_interface = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 12), interface_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvInterface.setDescription('The ifIndex value of the interface on which\n this RESV message was most recently received.') rsvp_resv_service = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 13), qos_service()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvService.setDescription('The QoS Service classification requested by\n the receiver.') rsvp_resv_t_spec_rate = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 14), bit_rate()).setUnits('bits per second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvTSpecRate.setDescription("The Average Bit Rate of the sender's data\n\n stream. Within a transmission burst, the ar-\n rival rate may be as fast as rsvpResvTSpec-\n PeakRate (if supported by the service model);\n however, averaged across two or more burst in-\n tervals, the rate should not exceed\n rsvpResvTSpecRate.\n\n Note that this is a prediction, often based on\n the general capability of a type of codec or\n particular encoding; the measured average rate\n may be significantly lower.") rsvp_resv_t_spec_peak_rate = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 15), bit_rate()).setUnits('bits per second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvTSpecPeakRate.setDescription("The Peak Bit Rate of the sender's data stream.\n Traffic arrival is not expected to exceed this\n rate at any time, apart from the effects of\n jitter in the network. If not specified in the\n TSpec, this returns zero or noSuchValue.") rsvp_resv_t_spec_burst = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 16), burst_size()).setUnits('bytes').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvTSpecBurst.setDescription("The size of the largest burst expected from\n the sender at a time.\n\n If this is less than the sender's advertised\n burst size, the receiver is asking the network\n to provide flow pacing beyond what would be\n provided under normal circumstances. Such pac-\n ing is at the network's option.") rsvp_resv_t_spec_min_tu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 17), message_size()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvTSpecMinTU.setDescription('The minimum message size for this flow. The\n policing algorithm will treat smaller messages\n as though they are this size.') rsvp_resv_t_spec_max_tu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 18), message_size()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvTSpecMaxTU.setDescription('The maximum message size for this flow. The\n admission algorithm will reject TSpecs whose\n Maximum Transmission Unit, plus the interface\n headers, exceed the interface MTU.') rsvp_resv_r_spec_rate = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 19), bit_rate()).setUnits('bits per second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvRSpecRate.setDescription('If the requested service is Guaranteed, as\n specified by rsvpResvService, this is the\n clearing rate that is being requested. Other-\n wise, it is zero, or the agent may return\n noSuchValue.') rsvp_resv_r_spec_slack = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 20), integer32()).setUnits('microseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvRSpecSlack.setDescription('If the requested service is Guaranteed, as\n specified by rsvpResvService, this is the delay\n slack. Otherwise, it is zero, or the agent may\n return noSuchValue.') rsvp_resv_interval = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 21), refresh_interval()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvInterval.setDescription('The interval between refresh messages as ad-\n vertised by the Next Hop.') rsvp_resv_scope = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 22), octet_string().subtype(subtypeSpec=value_size_constraint(0, 65536))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvScope.setDescription('The contents of the scope object, displayed as\n an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.\n\n If the length is non-zero, this contains a\n series of IP4 or IP6 addresses.') rsvp_resv_shared = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 23), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvShared.setDescription('If TRUE, a reservation shared among senders is\n requested. If FALSE, a reservation specific to\n this sender is requested.') rsvp_resv_explicit = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 24), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvExplicit.setDescription('If TRUE, individual senders are listed using\n Filter Specifications. If FALSE, all senders\n are implicitly selected. The Scope Object will\n contain a list of senders that need to receive\n this reservation request for the purpose of\n routing the RESV message.') rsvp_resv_rsvp_hop = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 25), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvRSVPHop.setDescription('If TRUE, the node believes that the previous\n IP hop is an RSVP hop. If FALSE, the node be-\n lieves that the previous IP hop may not be an\n RSVP hop.') rsvp_resv_last_change = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 26), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvLastChange.setDescription('The time of the last change in this reserva-\n tion request; This is either the first time it\n was received or the time of the most recent\n change in parameters.') rsvp_resv_policy = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 27), octet_string().subtype(subtypeSpec=value_size_constraint(0, 65536))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvPolicy.setDescription('The contents of the policy object, displayed\n as an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.') rsvp_resv_status = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 28), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpResvStatus.setDescription("'active' for all active RESV messages. This\n object may be used to install static RESV in-\n formation or delete RESV information.") rsvp_resv_ttl = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 29), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvTTL.setDescription('The TTL value in the RSVP header that was last\n received.') rsvp_resv_flow_id = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 4, 1, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 16777215))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFlowId.setDescription('The flow ID that this receiver is using, if\n this is an IPv6 session.') rsvp_resv_fwd_new_index = mib_scalar((1, 3, 6, 1, 2, 1, 51, 2, 4), test_and_incr()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rsvpResvFwdNewIndex.setDescription("This object is used to assign values to\n rsvpResvFwdNumber as described in 'Textual Con-\n ventions for SNMPv2'. The network manager\n reads the object, and then writes the value\n back in the SET that creates a new instance of\n rsvpResvFwdEntry. If the SET fails with the\n code 'inconsistentValue', then the process must\n be repeated; If the SET succeeds, then the ob-\n ject is incremented, and the new instance is\n created according to the manager's directions.") rsvp_resv_fwd_table = mib_table((1, 3, 6, 1, 2, 1, 51, 1, 5)) if mibBuilder.loadTexts: rsvpResvFwdTable.setDescription('Information describing the state information\n displayed upstream in RESV messages.') rsvp_resv_fwd_entry = mib_table_row((1, 3, 6, 1, 2, 1, 51, 1, 5, 1)).setIndexNames((0, 'RSVP-MIB', 'rsvpSessionNumber'), (0, 'RSVP-MIB', 'rsvpResvFwdNumber')) if mibBuilder.loadTexts: rsvpResvFwdEntry.setDescription('Information describing the state information\n displayed upstream in an RESV message concern-\n ing a single sender.') rsvp_resv_fwd_number = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 1), session_number()) if mibBuilder.loadTexts: rsvpResvFwdNumber.setDescription('The number of this reservation request. This\n is for SNMP Indexing purposes only and has no\n relation to any protocol value.') rsvp_resv_fwd_type = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 2), session_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdType.setDescription('The type of session (IP4, IP6, IP6 with flow\n information, etc).') rsvp_resv_fwd_dest_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdDestAddr.setDescription("The destination address used by all senders in\n this session. This object may not be changed\n when the value of the RowStatus object is 'ac-\n tive'.") rsvp_resv_fwd_sender_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdSenderAddr.setDescription("The source address of the sender selected by\n this reservation. The value of all zeroes in-\n dicates 'all senders'. This object may not be\n changed when the value of the RowStatus object\n is 'active'.") rsvp_resv_fwd_dest_addr_length = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdDestAddrLength.setDescription("The length of the destination address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_resv_fwd_sender_addr_length = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdSenderAddrLength.setDescription("The length of the sender's address in bits.\n This is the CIDR Prefix Length, which for IP4\n hosts and multicast addresses is 32 bits. This\n object may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_resv_fwd_protocol = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 7), protocol()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdProtocol.setDescription("The IP Protocol used by a session. for secure\n sessions, this indicates IP Security. This ob-\n ject may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_resv_fwd_dest_port = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 8), port()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdDestPort.setDescription("The UDP or TCP port number used as a destina-\n tion port for all senders in this session. If\n\n the IP protocol in use, specified by\n rsvpResvFwdProtocol, is 50 (ESP) or 51 (AH),\n this represents a virtual destination port\n number. A value of zero indicates that the IP\n protocol in use does not have ports. This ob-\n ject may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_resv_fwd_port = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 9), port()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdPort.setDescription("The UDP or TCP port number used as a source\n port for this sender in this session. If the\n IP protocol in use, specified by\n rsvpResvFwdProtocol is 50 (ESP) or 51 (AH),\n this represents a generalized port identifier\n (GPI). A value of zero indicates that the IP\n protocol in use does not have ports. This ob-\n ject may not be changed when the value of the\n RowStatus object is 'active'.") rsvp_resv_fwd_hop_addr = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdHopAddr.setDescription('The address of the (previous) RSVP that will\n receive this message.') rsvp_resv_fwd_hop_lih = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdHopLih.setDescription('The Logical Interface Handle sent to the (pre-\n vious) RSVP that will receive this message.') rsvp_resv_fwd_interface = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 12), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdInterface.setDescription('The ifIndex value of the interface on which\n this RESV message was most recently sent.') rsvp_resv_fwd_service = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 13), qos_service()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdService.setDescription('The QoS Service classification requested.') rsvp_resv_fwd_t_spec_rate = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 14), bit_rate()).setUnits('bits per second').setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdTSpecRate.setDescription("The Average Bit Rate of the sender's data\n stream. Within a transmission burst, the ar-\n rival rate may be as fast as rsvpResvFwdTSpec-\n PeakRate (if supported by the service model);\n however, averaged across two or more burst in-\n tervals, the rate should not exceed\n rsvpResvFwdTSpecRate.\n\n Note that this is a prediction, often based on\n the general capability of a type of codec or\n particular encoding; the measured average rate\n may be significantly lower.") rsvp_resv_fwd_t_spec_peak_rate = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 15), bit_rate()).setUnits('bits per second').setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdTSpecPeakRate.setDescription("The Peak Bit Rate of the sender's data stream\n Traffic arrival is not expected to exceed this\n rate at any time, apart from the effects of\n\n jitter in the network. If not specified in the\n TSpec, this returns zero or noSuchValue.") rsvp_resv_fwd_t_spec_burst = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 16), burst_size()).setUnits('bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdTSpecBurst.setDescription("The size of the largest burst expected from\n the sender at a time.\n\n If this is less than the sender's advertised\n burst size, the receiver is asking the network\n to provide flow pacing beyond what would be\n provided under normal circumstances. Such pac-\n ing is at the network's option.") rsvp_resv_fwd_t_spec_min_tu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 17), message_size()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdTSpecMinTU.setDescription('The minimum message size for this flow. The\n policing algorithm will treat smaller messages\n as though they are this size.') rsvp_resv_fwd_t_spec_max_tu = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 18), message_size()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdTSpecMaxTU.setDescription('The maximum message size for this flow. The\n admission algorithm will reject TSpecs whose\n Maximum Transmission Unit, plus the interface\n headers, exceed the interface MTU.') rsvp_resv_fwd_r_spec_rate = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 19), bit_rate()).setUnits('bytes per second').setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdRSpecRate.setDescription('If the requested service is Guaranteed, as\n specified by rsvpResvService, this is the\n clearing rate that is being requested. Other-\n wise, it is zero, or the agent may return\n noSuchValue.') rsvp_resv_fwd_r_spec_slack = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 20), integer32()).setUnits('microseconds').setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdRSpecSlack.setDescription('If the requested service is Guaranteed, as\n specified by rsvpResvService, this is the delay\n slack. Otherwise, it is zero, or the agent may\n return noSuchValue.') rsvp_resv_fwd_interval = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 21), refresh_interval()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdInterval.setDescription('The interval between refresh messages adver-\n tised to the Previous Hop.') rsvp_resv_fwd_scope = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 22), octet_string().subtype(subtypeSpec=value_size_constraint(0, 65536))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdScope.setDescription('The contents of the scope object, displayed as\n an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.') rsvp_resv_fwd_shared = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 23), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdShared.setDescription('If TRUE, a reservation shared among senders is\n requested. If FALSE, a reservation specific to\n this sender is requested.') rsvp_resv_fwd_explicit = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 24), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdExplicit.setDescription('If TRUE, individual senders are listed using\n Filter Specifications. If FALSE, all senders\n are implicitly selected. The Scope Object will\n contain a list of senders that need to receive\n this reservation request for the purpose of\n routing the RESV message.') rsvp_resv_fwd_rsvp_hop = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 25), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdRSVPHop.setDescription('If TRUE, the node believes that the next IP\n hop is an RSVP hop. If FALSE, the node be-\n lieves that the next IP hop may not be an RSVP\n hop.') rsvp_resv_fwd_last_change = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 26), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdLastChange.setDescription('The time of the last change in this request;\n This is either the first time it was sent or\n the time of the most recent change in parame-\n ters.') rsvp_resv_fwd_policy = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 27), octet_string().subtype(subtypeSpec=value_size_constraint(0, 65536))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdPolicy.setDescription('The contents of the policy object, displayed\n as an uninterpreted string of octets, including\n the object header. In the absence of such an\n object, this should be of zero length.') rsvp_resv_fwd_status = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 28), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rsvpResvFwdStatus.setDescription("'active' for all active RESV messages. This\n object may be used to delete RESV information.") rsvp_resv_fwd_ttl = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 29), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdTTL.setDescription('The TTL value in the RSVP header that was last\n received.') rsvp_resv_fwd_flow_id = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 5, 1, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 16777215))).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpResvFwdFlowId.setDescription('The flow ID that this receiver is using, if\n this is an IPv6 session.') rsvp_if_table = mib_table((1, 3, 6, 1, 2, 1, 51, 1, 6)) if mibBuilder.loadTexts: rsvpIfTable.setDescription("The RSVP-specific attributes of the system's\n interfaces.") rsvp_if_entry = mib_table_row((1, 3, 6, 1, 2, 1, 51, 1, 6, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: rsvpIfEntry.setDescription('The RSVP-specific attributes of the a given\n interface.') rsvp_if_udp_nbrs = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 1), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpIfUdpNbrs.setDescription('The number of neighbors perceived to be using\n only the RSVP UDP Encapsulation.') rsvp_if_ip_nbrs = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpIfIpNbrs.setDescription('The number of neighbors perceived to be using\n only the RSVP IP Encapsulation.') rsvp_if_nbrs = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rsvpIfNbrs.setDescription('The number of neighbors currently perceived;\n this will exceed rsvpIfIpNbrs + rsvpIfUdpNbrs\n by the number of neighbors using both encapsu-\n lations.') rsvp_if_refresh_blockade_multiple = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 65536)).clone(4)).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpIfRefreshBlockadeMultiple.setDescription("The value of the RSVP value 'Kb', Which is the\n minimum number of refresh intervals that\n blockade state will last once entered.") rsvp_if_refresh_multiple = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65536)).clone(3)).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpIfRefreshMultiple.setDescription("The value of the RSVP value 'K', which is the\n number of refresh intervals which must elapse\n (minimum) before a PATH or RESV message which\n is not being refreshed will be aged out.") rsvp_if_ttl = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpIfTTL.setDescription('The value of SEND_TTL used on this interface\n for messages this node originates. If set to\n zero, the node determines the TTL via other\n means.') rsvp_if_refresh_interval = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 7), time_interval().clone(3000)).setUnits('milliseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpIfRefreshInterval.setDescription("The value of the RSVP value 'R', which is the\n minimum period between refresh transmissions of\n a given PATH or RESV message on an interface.") rsvp_if_route_delay = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 8), time_interval().clone(200)).setUnits('hundredths of a second').setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpIfRouteDelay.setDescription('The approximate period from the time a route\n is changed to the time a resulting message ap-\n pears on the interface.') rsvp_if_enabled = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 9), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpIfEnabled.setDescription('If TRUE, RSVP is enabled on this Interface.\n If FALSE, RSVP is not enabled on this inter-\n face.') rsvp_if_udp_required = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 10), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpIfUdpRequired.setDescription('If TRUE, manual configuration forces the use\n of UDP encapsulation on the interface. If\n FALSE, UDP encapsulation is only used if rsvpI-\n fUdpNbrs is not zero.') rsvp_if_status = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 6, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpIfStatus.setDescription("'active' on interfaces that are configured for\n RSVP.") rsvp_nbr_table = mib_table((1, 3, 6, 1, 2, 1, 51, 1, 7)) if mibBuilder.loadTexts: rsvpNbrTable.setDescription('Information describing the Neighbors of an\n RSVP system.') rsvp_nbr_entry = mib_table_row((1, 3, 6, 1, 2, 1, 51, 1, 7, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'RSVP-MIB', 'rsvpNbrAddress')) if mibBuilder.loadTexts: rsvpNbrEntry.setDescription('Information describing a single RSVP Neigh-\n bor.') rsvp_nbr_address = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 7, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(4, 16))) if mibBuilder.loadTexts: rsvpNbrAddress.setDescription("The IP4 or IP6 Address used by this neighbor.\n This object may not be changed when the value\n of the RowStatus object is 'active'.") rsvp_nbr_protocol = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 7, 1, 2), rsvp_encapsulation()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpNbrProtocol.setDescription('The encapsulation being used by this neigh-\n bor.') rsvp_nbr_status = mib_table_column((1, 3, 6, 1, 2, 1, 51, 1, 7, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rsvpNbrStatus.setDescription("'active' for all neighbors. This object may\n be used to configure neighbors. In the pres-\n ence of configured neighbors, the implementa-\n tion may (but is not required to) limit the set\n of valid neighbors to those configured.") rsvp_notifications = mib_identifier((1, 3, 6, 1, 2, 1, 51, 3, 0)) new_flow = notification_type((1, 3, 6, 1, 2, 1, 51, 3, 0, 1)).setObjects(*(('RSVP-MIB', 'intSrvFlowStatus'), ('RSVP-MIB', 'rsvpSessionDestAddr'), ('RSVP-MIB', 'rsvpResvFwdStatus'), ('RSVP-MIB', 'rsvpResvStatus'), ('RSVP-MIB', 'rsvpSenderStatus'))) if mibBuilder.loadTexts: newFlow.setDescription('The newFlow trap indicates that the originat-\n ing system has installed a new flow in its\n classifier, or (when reservation authorization\n is in view) is prepared to install such a flow\n in the classifier and is requesting authoriza-\n tion. The objects included with the Notifica-\n tion may be used to read further information\n using the Integrated Services and RSVP MIBs.\n Authorization or non-authorization may be\n enacted by a write to the variable intSrvFlowS-\n tatus.') lost_flow = notification_type((1, 3, 6, 1, 2, 1, 51, 3, 0, 2)).setObjects(*(('RSVP-MIB', 'intSrvFlowStatus'), ('RSVP-MIB', 'rsvpSessionDestAddr'), ('RSVP-MIB', 'rsvpResvFwdStatus'), ('RSVP-MIB', 'rsvpResvStatus'), ('RSVP-MIB', 'rsvpSenderStatus'))) if mibBuilder.loadTexts: lostFlow.setDescription('The lostFlow trap indicates that the originat-\n ing system has removed a flow from its classif-\n ier.') rsvp_groups = mib_identifier((1, 3, 6, 1, 2, 1, 51, 4, 1)) rsvp_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 51, 4, 2)) rsvp_compliance = module_compliance((1, 3, 6, 1, 2, 1, 51, 4, 2, 1)).setObjects(*(('RSVP-MIB', 'rsvpSessionGroup'), ('RSVP-MIB', 'rsvpSenderGroup'), ('RSVP-MIB', 'rsvpResvGroup'), ('RSVP-MIB', 'rsvpIfGroup'), ('RSVP-MIB', 'rsvpNbrGroup'), ('RSVP-MIB', 'rsvpResvFwdGroup'), ('RSVP-MIB', 'rsvpNotificationGroup'))) if mibBuilder.loadTexts: rsvpCompliance.setDescription('The compliance statement. Note that the im-\n plementation of this module requires implemen-\n tation of the Integrated Services MIB as well.') rsvp_session_group = object_group((1, 3, 6, 1, 2, 1, 51, 4, 1, 1)).setObjects(*(('RSVP-MIB', 'rsvpSessionType'), ('RSVP-MIB', 'rsvpSessionDestAddr'), ('RSVP-MIB', 'rsvpSessionDestAddrLength'), ('RSVP-MIB', 'rsvpSessionProtocol'), ('RSVP-MIB', 'rsvpSessionPort'), ('RSVP-MIB', 'rsvpSessionSenders'), ('RSVP-MIB', 'rsvpSessionReceivers'), ('RSVP-MIB', 'rsvpSessionRequests'))) if mibBuilder.loadTexts: rsvpSessionGroup.setDescription('These objects are required for RSVP Systems.') rsvp_sender_group = object_group((1, 3, 6, 1, 2, 1, 51, 4, 1, 2)).setObjects(*(('RSVP-MIB', 'rsvpSenderType'), ('RSVP-MIB', 'rsvpSenderDestAddr'), ('RSVP-MIB', 'rsvpSenderAddr'), ('RSVP-MIB', 'rsvpSenderDestAddrLength'), ('RSVP-MIB', 'rsvpSenderAddrLength'), ('RSVP-MIB', 'rsvpSenderProtocol'), ('RSVP-MIB', 'rsvpSenderDestPort'), ('RSVP-MIB', 'rsvpSenderPort'), ('RSVP-MIB', 'rsvpSenderHopAddr'), ('RSVP-MIB', 'rsvpSenderHopLih'), ('RSVP-MIB', 'rsvpSenderInterface'), ('RSVP-MIB', 'rsvpSenderTSpecRate'), ('RSVP-MIB', 'rsvpSenderTSpecPeakRate'), ('RSVP-MIB', 'rsvpSenderTSpecBurst'), ('RSVP-MIB', 'rsvpSenderTSpecMinTU'), ('RSVP-MIB', 'rsvpSenderTSpecMaxTU'), ('RSVP-MIB', 'rsvpSenderInterval'), ('RSVP-MIB', 'rsvpSenderLastChange'), ('RSVP-MIB', 'rsvpSenderStatus'), ('RSVP-MIB', 'rsvpSenderRSVPHop'), ('RSVP-MIB', 'rsvpSenderPolicy'), ('RSVP-MIB', 'rsvpSenderAdspecBreak'), ('RSVP-MIB', 'rsvpSenderAdspecHopCount'), ('RSVP-MIB', 'rsvpSenderAdspecPathBw'), ('RSVP-MIB', 'rsvpSenderAdspecMinLatency'), ('RSVP-MIB', 'rsvpSenderAdspecMtu'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedSvc'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedBreak'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedCtot'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedDtot'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedCsum'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedDsum'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedHopCount'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedPathBw'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedMinLatency'), ('RSVP-MIB', 'rsvpSenderAdspecGuaranteedMtu'), ('RSVP-MIB', 'rsvpSenderAdspecCtrlLoadSvc'), ('RSVP-MIB', 'rsvpSenderAdspecCtrlLoadBreak'), ('RSVP-MIB', 'rsvpSenderAdspecCtrlLoadHopCount'), ('RSVP-MIB', 'rsvpSenderAdspecCtrlLoadPathBw'), ('RSVP-MIB', 'rsvpSenderAdspecCtrlLoadMinLatency'), ('RSVP-MIB', 'rsvpSenderAdspecCtrlLoadMtu'), ('RSVP-MIB', 'rsvpSenderNewIndex'))) if mibBuilder.loadTexts: rsvpSenderGroup.setDescription('These objects are required for RSVP Systems.') rsvp_resv_group = object_group((1, 3, 6, 1, 2, 1, 51, 4, 1, 3)).setObjects(*(('RSVP-MIB', 'rsvpResvType'), ('RSVP-MIB', 'rsvpResvDestAddr'), ('RSVP-MIB', 'rsvpResvSenderAddr'), ('RSVP-MIB', 'rsvpResvDestAddrLength'), ('RSVP-MIB', 'rsvpResvSenderAddrLength'), ('RSVP-MIB', 'rsvpResvProtocol'), ('RSVP-MIB', 'rsvpResvDestPort'), ('RSVP-MIB', 'rsvpResvPort'), ('RSVP-MIB', 'rsvpResvHopAddr'), ('RSVP-MIB', 'rsvpResvHopLih'), ('RSVP-MIB', 'rsvpResvInterface'), ('RSVP-MIB', 'rsvpResvService'), ('RSVP-MIB', 'rsvpResvTSpecRate'), ('RSVP-MIB', 'rsvpResvTSpecBurst'), ('RSVP-MIB', 'rsvpResvTSpecPeakRate'), ('RSVP-MIB', 'rsvpResvTSpecMinTU'), ('RSVP-MIB', 'rsvpResvTSpecMaxTU'), ('RSVP-MIB', 'rsvpResvRSpecRate'), ('RSVP-MIB', 'rsvpResvRSpecSlack'), ('RSVP-MIB', 'rsvpResvInterval'), ('RSVP-MIB', 'rsvpResvScope'), ('RSVP-MIB', 'rsvpResvShared'), ('RSVP-MIB', 'rsvpResvExplicit'), ('RSVP-MIB', 'rsvpResvRSVPHop'), ('RSVP-MIB', 'rsvpResvLastChange'), ('RSVP-MIB', 'rsvpResvPolicy'), ('RSVP-MIB', 'rsvpResvStatus'), ('RSVP-MIB', 'rsvpResvNewIndex'))) if mibBuilder.loadTexts: rsvpResvGroup.setDescription('These objects are required for RSVP Systems.') rsvp_resv_fwd_group = object_group((1, 3, 6, 1, 2, 1, 51, 4, 1, 4)).setObjects(*(('RSVP-MIB', 'rsvpResvFwdType'), ('RSVP-MIB', 'rsvpResvFwdDestAddr'), ('RSVP-MIB', 'rsvpResvFwdSenderAddr'), ('RSVP-MIB', 'rsvpResvFwdDestAddrLength'), ('RSVP-MIB', 'rsvpResvFwdSenderAddrLength'), ('RSVP-MIB', 'rsvpResvFwdProtocol'), ('RSVP-MIB', 'rsvpResvFwdDestPort'), ('RSVP-MIB', 'rsvpResvFwdPort'), ('RSVP-MIB', 'rsvpResvFwdHopAddr'), ('RSVP-MIB', 'rsvpResvFwdHopLih'), ('RSVP-MIB', 'rsvpResvFwdInterface'), ('RSVP-MIB', 'rsvpResvFwdNewIndex'), ('RSVP-MIB', 'rsvpResvFwdService'), ('RSVP-MIB', 'rsvpResvFwdTSpecPeakRate'), ('RSVP-MIB', 'rsvpResvFwdTSpecMinTU'), ('RSVP-MIB', 'rsvpResvFwdTSpecMaxTU'), ('RSVP-MIB', 'rsvpResvFwdTSpecRate'), ('RSVP-MIB', 'rsvpResvFwdTSpecBurst'), ('RSVP-MIB', 'rsvpResvFwdRSpecRate'), ('RSVP-MIB', 'rsvpResvFwdRSpecSlack'), ('RSVP-MIB', 'rsvpResvFwdInterval'), ('RSVP-MIB', 'rsvpResvFwdScope'), ('RSVP-MIB', 'rsvpResvFwdShared'), ('RSVP-MIB', 'rsvpResvFwdExplicit'), ('RSVP-MIB', 'rsvpResvFwdRSVPHop'), ('RSVP-MIB', 'rsvpResvFwdLastChange'), ('RSVP-MIB', 'rsvpResvFwdPolicy'), ('RSVP-MIB', 'rsvpResvFwdStatus'))) if mibBuilder.loadTexts: rsvpResvFwdGroup.setDescription('These objects are optional, used for some RSVP\n Systems.') rsvp_if_group = object_group((1, 3, 6, 1, 2, 1, 51, 4, 1, 6)).setObjects(*(('RSVP-MIB', 'rsvpIfUdpNbrs'), ('RSVP-MIB', 'rsvpIfIpNbrs'), ('RSVP-MIB', 'rsvpIfNbrs'), ('RSVP-MIB', 'rsvpIfEnabled'), ('RSVP-MIB', 'rsvpIfUdpRequired'), ('RSVP-MIB', 'rsvpIfRefreshBlockadeMultiple'), ('RSVP-MIB', 'rsvpIfRefreshMultiple'), ('RSVP-MIB', 'rsvpIfRefreshInterval'), ('RSVP-MIB', 'rsvpIfTTL'), ('RSVP-MIB', 'rsvpIfRouteDelay'), ('RSVP-MIB', 'rsvpIfStatus'))) if mibBuilder.loadTexts: rsvpIfGroup.setDescription('These objects are required for RSVP Systems.') rsvp_nbr_group = object_group((1, 3, 6, 1, 2, 1, 51, 4, 1, 7)).setObjects(*(('RSVP-MIB', 'rsvpNbrProtocol'), ('RSVP-MIB', 'rsvpNbrStatus'))) if mibBuilder.loadTexts: rsvpNbrGroup.setDescription('These objects are required for RSVP Systems.') rsvp_notification_group = notification_group((1, 3, 6, 1, 2, 1, 51, 4, 1, 8)).setObjects(*(('RSVP-MIB', 'newFlow'), ('RSVP-MIB', 'lostFlow'))) if mibBuilder.loadTexts: rsvpNotificationGroup.setDescription('This notification is required for Systems sup-\n porting the RSVP Policy Module using an SNMP\n interface to the Policy Manager.') mibBuilder.exportSymbols('RSVP-MIB', rsvpCompliance=rsvpCompliance, rsvpSessionRequests=rsvpSessionRequests, rsvpSenderTSpecMaxTU=rsvpSenderTSpecMaxTU, rsvpNbrTable=rsvpNbrTable, rsvpNbrProtocol=rsvpNbrProtocol, rsvpResvSenderAddr=rsvpResvSenderAddr, lostFlow=lostFlow, rsvpResvFwdExplicit=rsvpResvFwdExplicit, rsvpNbrEntry=rsvpNbrEntry, rsvpResvType=rsvpResvType, rsvpResvRSpecRate=rsvpResvRSpecRate, rsvpNbrGroup=rsvpNbrGroup, rsvpSenderTable=rsvpSenderTable, rsvpResvNumber=rsvpResvNumber, rsvpResvFwdTSpecMinTU=rsvpResvFwdTSpecMinTU, rsvpResvFwdNewIndex=rsvpResvFwdNewIndex, rsvpSenderAdspecGuaranteedPathBw=rsvpSenderAdspecGuaranteedPathBw, rsvpConformance=rsvpConformance, rsvpSessionPort=rsvpSessionPort, rsvpResvFwdEntry=rsvpResvFwdEntry, rsvpSenderAdspecGuaranteedCtot=rsvpSenderAdspecGuaranteedCtot, rsvpResvFwdTSpecRate=rsvpResvFwdTSpecRate, rsvpSessionReceivers=rsvpSessionReceivers, rsvpSenderInterval=rsvpSenderInterval, rsvpIfRefreshBlockadeMultiple=rsvpIfRefreshBlockadeMultiple, rsvpResvFwdDestAddrLength=rsvpResvFwdDestAddrLength, rsvpResvPort=rsvpResvPort, rsvpSessionTable=rsvpSessionTable, rsvpResvTSpecMinTU=rsvpResvTSpecMinTU, rsvpResvFwdTTL=rsvpResvFwdTTL, rsvpResvFwdInterval=rsvpResvFwdInterval, rsvpSessionGroup=rsvpSessionGroup, rsvpIfTTL=rsvpIfTTL, rsvpIfStatus=rsvpIfStatus, rsvpNbrStatus=rsvpNbrStatus, rsvpSenderLastChange=rsvpSenderLastChange, rsvpResvExplicit=rsvpResvExplicit, rsvpResvFwdSenderAddrLength=rsvpResvFwdSenderAddrLength, rsvpResvFwdDestAddr=rsvpResvFwdDestAddr, rsvpResvStatus=rsvpResvStatus, rsvpResvFwdTSpecMaxTU=rsvpResvFwdTSpecMaxTU, rsvpIfRouteDelay=rsvpIfRouteDelay, rsvpResvScope=rsvpResvScope, rsvpGenObjects=rsvpGenObjects, rsvpSenderTSpecRate=rsvpSenderTSpecRate, rsvpSenderFlowId=rsvpSenderFlowId, rsvpResvDestPort=rsvpResvDestPort, rsvpResvDestAddrLength=rsvpResvDestAddrLength, rsvpResvFwdDestPort=rsvpResvFwdDestPort, rsvpResvFwdRSVPHop=rsvpResvFwdRSVPHop, rsvpSenderAdspecGuaranteedSvc=rsvpSenderAdspecGuaranteedSvc, rsvpResvFwdSenderAddr=rsvpResvFwdSenderAddr, rsvpSenderAdspecCtrlLoadSvc=rsvpSenderAdspecCtrlLoadSvc, rsvpResvFwdPolicy=rsvpResvFwdPolicy, rsvpIfUdpRequired=rsvpIfUdpRequired, rsvpSenderAddrLength=rsvpSenderAddrLength, rsvpGroups=rsvpGroups, rsvpSenderNewIndex=rsvpSenderNewIndex, rsvpSenderRSVPHop=rsvpSenderRSVPHop, rsvpResvFwdNumber=rsvpResvFwdNumber, rsvpResvFwdFlowId=rsvpResvFwdFlowId, rsvpBadPackets=rsvpBadPackets, rsvpSenderInterface=rsvpSenderInterface, rsvpSenderAdspecMtu=rsvpSenderAdspecMtu, rsvpNotifications=rsvpNotifications, rsvpSenderPolicy=rsvpSenderPolicy, rsvpSenderAdspecCtrlLoadPathBw=rsvpSenderAdspecCtrlLoadPathBw, rsvpCompliances=rsvpCompliances, rsvpSenderAdspecGuaranteedDsum=rsvpSenderAdspecGuaranteedDsum, rsvpResvFwdInterface=rsvpResvFwdInterface, rsvpSenderNumber=rsvpSenderNumber, rsvpSenderAdspecCtrlLoadHopCount=rsvpSenderAdspecCtrlLoadHopCount, rsvpSessionDestAddr=rsvpSessionDestAddr, PYSNMP_MODULE_ID=rsvp, rsvpResvFwdPort=rsvpResvFwdPort, rsvpSenderPort=rsvpSenderPort, rsvpResvFwdTable=rsvpResvFwdTable, rsvpResvFwdLastChange=rsvpResvFwdLastChange, rsvpSenderEntry=rsvpSenderEntry, rsvpSenderType=rsvpSenderType, rsvpSenderAdspecHopCount=rsvpSenderAdspecHopCount, rsvpResvFwdScope=rsvpResvFwdScope, rsvpResvTTL=rsvpResvTTL, rsvpResvFwdService=rsvpResvFwdService, rsvpNotificationGroup=rsvpNotificationGroup, rsvpResvDestAddr=rsvpResvDestAddr, rsvpSenderTSpecPeakRate=rsvpSenderTSpecPeakRate, rsvpSenderAdspecGuaranteedHopCount=rsvpSenderAdspecGuaranteedHopCount, rsvpIfTable=rsvpIfTable, rsvpIfEnabled=rsvpIfEnabled, rsvpResvService=rsvpResvService, rsvpSenderDestAddr=rsvpSenderDestAddr, rsvpSenderOutInterfaceTable=rsvpSenderOutInterfaceTable, rsvpSenderDestAddrLength=rsvpSenderDestAddrLength, rsvpSenderAdspecCtrlLoadBreak=rsvpSenderAdspecCtrlLoadBreak, rsvpSenderGroup=rsvpSenderGroup, rsvpResvTSpecRate=rsvpResvTSpecRate, rsvpResvFwdType=rsvpResvFwdType, rsvpResvEntry=rsvpResvEntry, rsvp=rsvp, rsvpSenderAdspecMinLatency=rsvpSenderAdspecMinLatency, rsvpResvFlowId=rsvpResvFlowId, rsvpResvTSpecPeakRate=rsvpResvTSpecPeakRate, rsvpResvTable=rsvpResvTable, rsvpResvLastChange=rsvpResvLastChange, rsvpResvFwdHopAddr=rsvpResvFwdHopAddr, rsvpSenderAdspecBreak=rsvpSenderAdspecBreak, rsvpSessionDestAddrLength=rsvpSessionDestAddrLength, rsvpResvGroup=rsvpResvGroup, rsvpSenderStatus=rsvpSenderStatus, rsvpIfIpNbrs=rsvpIfIpNbrs, rsvpSessionEntry=rsvpSessionEntry, newFlow=newFlow, rsvpNbrAddress=rsvpNbrAddress, rsvpResvFwdRSpecSlack=rsvpResvFwdRSpecSlack, rsvpIfRefreshMultiple=rsvpIfRefreshMultiple, RefreshInterval=RefreshInterval, rsvpResvNewIndex=rsvpResvNewIndex, rsvpSenderOutInterfaceStatus=rsvpSenderOutInterfaceStatus, rsvpResvSenderAddrLength=rsvpResvSenderAddrLength, rsvpSenderAdspecGuaranteedCsum=rsvpSenderAdspecGuaranteedCsum, rsvpResvTSpecBurst=rsvpResvTSpecBurst, rsvpResvFwdShared=rsvpResvFwdShared, rsvpIfUdpNbrs=rsvpIfUdpNbrs, rsvpResvShared=rsvpResvShared, rsvpSessionType=rsvpSessionType, rsvpSessionProtocol=rsvpSessionProtocol, rsvpObjects=rsvpObjects, rsvpSenderDestPort=rsvpSenderDestPort, rsvpIfGroup=rsvpIfGroup, rsvpSenderTSpecMinTU=rsvpSenderTSpecMinTU, rsvpSenderTSpecBurst=rsvpSenderTSpecBurst, rsvpResvFwdHopLih=rsvpResvFwdHopLih, rsvpIfRefreshInterval=rsvpIfRefreshInterval, RsvpEncapsulation=RsvpEncapsulation, rsvpResvFwdStatus=rsvpResvFwdStatus, rsvpResvFwdProtocol=rsvpResvFwdProtocol, rsvpResvRSpecSlack=rsvpResvRSpecSlack, rsvpSenderAdspecGuaranteedBreak=rsvpSenderAdspecGuaranteedBreak, rsvpResvProtocol=rsvpResvProtocol, rsvpSenderAdspecCtrlLoadMtu=rsvpSenderAdspecCtrlLoadMtu, rsvpSenderTTL=rsvpSenderTTL, rsvpResvHopLih=rsvpResvHopLih, rsvpResvPolicy=rsvpResvPolicy, rsvpSenderHopAddr=rsvpSenderHopAddr, rsvpResvRSVPHop=rsvpResvRSVPHop, rsvpSenderOutInterfaceEntry=rsvpSenderOutInterfaceEntry, rsvpNotificationsPrefix=rsvpNotificationsPrefix, rsvpResvFwdRSpecRate=rsvpResvFwdRSpecRate, rsvpSenderAdspecGuaranteedMtu=rsvpSenderAdspecGuaranteedMtu, rsvpSenderAdspecCtrlLoadMinLatency=rsvpSenderAdspecCtrlLoadMinLatency, rsvpSenderAdspecGuaranteedDtot=rsvpSenderAdspecGuaranteedDtot, rsvpSessionNumber=rsvpSessionNumber, rsvpSessionSenders=rsvpSessionSenders, rsvpSenderHopLih=rsvpSenderHopLih, rsvpSenderAdspecPathBw=rsvpSenderAdspecPathBw, rsvpResvFwdTSpecPeakRate=rsvpResvFwdTSpecPeakRate, rsvpIfEntry=rsvpIfEntry, rsvpResvFwdTSpecBurst=rsvpResvFwdTSpecBurst, rsvpSenderAdspecGuaranteedMinLatency=rsvpSenderAdspecGuaranteedMinLatency, rsvpResvTSpecMaxTU=rsvpResvTSpecMaxTU, rsvpResvFwdGroup=rsvpResvFwdGroup, rsvpResvInterval=rsvpResvInterval, rsvpIfNbrs=rsvpIfNbrs, rsvpResvInterface=rsvpResvInterface, rsvpSenderAddr=rsvpSenderAddr, rsvpSenderProtocol=rsvpSenderProtocol, rsvpResvHopAddr=rsvpResvHopAddr)
# Implemente uma nova classe que simule uma pilha usando apenas duas filas. class Node: def __init__(self, data, next=None): self.data = data self.next = next class MyQueue: def __init__(self): self.head = None self.tail = self.head def enqueue(self, value): if (self.head): # queue is not empty newNode = Node(value) self.tail.next = newNode self.tail = newNode else: # queue is empty self.head = Node(value) self.tail = self.head def dequeue(self): if (self.head): toRemove = self.head.data self.head = self.head.next return toRemove else: return -1 def is_empty(self): return self.head is None class MyStack: def __init__(self): self.q1 = MyQueue() self.q2 = MyQueue() def push(self, value): self.q2.enqueue(value) while not self.q1.is_empty(): self.q2.enqueue(self.q1.dequeue()) temp = self.q1 self.q1 = self.q2 self.q2 = temp def pop(self): if self.q1.is_empty(): return -1 return self.q1.dequeue() st = MyStack() st.push(1) st.push(2) st.push(3) st.push(4) print(st.pop()) print(st.pop()) print(st.pop())
class Node: def __init__(self, data, next=None): self.data = data self.next = next class Myqueue: def __init__(self): self.head = None self.tail = self.head def enqueue(self, value): if self.head: new_node = node(value) self.tail.next = newNode self.tail = newNode else: self.head = node(value) self.tail = self.head def dequeue(self): if self.head: to_remove = self.head.data self.head = self.head.next return toRemove else: return -1 def is_empty(self): return self.head is None class Mystack: def __init__(self): self.q1 = my_queue() self.q2 = my_queue() def push(self, value): self.q2.enqueue(value) while not self.q1.is_empty(): self.q2.enqueue(self.q1.dequeue()) temp = self.q1 self.q1 = self.q2 self.q2 = temp def pop(self): if self.q1.is_empty(): return -1 return self.q1.dequeue() st = my_stack() st.push(1) st.push(2) st.push(3) st.push(4) print(st.pop()) print(st.pop()) print(st.pop())
''' 199. Binary Tree Right Side View Medium Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example 1: Input: root = [1,2,3,null,5,null,4] Output: [1,3,4] Example 2: Input: root = [1,null,3] Output: [1,3] Example 3: Input: root = [] Output: [] Constraints: The number of nodes in the tree is in the range [0, 100]. -100 <= Node.val <= 100 ''' # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def rightSideView(self, root: TreeNode) -> List[int]: self.view = [] self.recursive(root, 0) return self.view def recursive(self, node: TreeNode, height) -> List[int]: if node: if height == len(self.view): self.view.append(node.val) self.recursive(node.right, height+1) self.recursive(node.left, height+1)
""" 199. Binary Tree Right Side View Medium Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example 1: Input: root = [1,2,3,null,5,null,4] Output: [1,3,4] Example 2: Input: root = [1,null,3] Output: [1,3] Example 3: Input: root = [] Output: [] Constraints: The number of nodes in the tree is in the range [0, 100]. -100 <= Node.val <= 100 """ class Solution: def right_side_view(self, root: TreeNode) -> List[int]: self.view = [] self.recursive(root, 0) return self.view def recursive(self, node: TreeNode, height) -> List[int]: if node: if height == len(self.view): self.view.append(node.val) self.recursive(node.right, height + 1) self.recursive(node.left, height + 1)
class Content(): def __init__(self): self.content_type = "video" self.title = "sample title" self.author = {"url": "", "name": "James"} self.time_estimate = "(15 min)" self.url = "http://mim-rec-engine.heroku.com" self.thumbnail_url = "static/imgs/document.png" self.thumbnail_width = 498 self.thumbnail_height = 354 self.duration = "" self.description = "Bulbasaur Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ivysaur Lorem ipsum dolor sit amet, consectetur adipiscing elit. Venusaur Lorem ipsum dolor sit amet, consectetur adipiscing elit. Charmander Lorem ipsum dolor sit amet, consectetur adipiscing elit. Charmeleon Lorem ipsum dolor sit amet, consectetur adipiscing elit. Charizard Lorem ipsum dolor sit amet, consectetur adipiscing elit. Squirtle Lorem ipsum dolor sit amet, consectetur adipiscing elit. Wartortle Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blastoise Lorem ipsum dolor sit amet, consectetur adipiscing elit. Caterpie Lorem ipsum dolor sit amet, consectetur adipiscing elit. Metapod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Butterfree Lorem ipsum dolor sit amet, consectetur adipiscing elit. Weedle Lorem ipsum dolor sit amet, consectetur adipiscing elit. Kakuna Lorem ipsum dolor sit amet, consectetur adipiscing elit. Beedrill Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pidgey Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pidgeotto Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pidgeot Lorem ipsum dolor sit amet, consectetur adipiscing elit. Rattata Lorem ipsum dolor sit amet, consectetur adipiscing elit. Raticate Lorem ipsum dolor sit amet, consectetur adipiscing elit. Spearow Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fearow Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ekans Lorem ipsum dolor sit amet, consectetur adipiscing elit. Arbok Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pikachu Lorem ipsum dolor sit amet, consectetur adipiscing elit. Raichu Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sandshrew Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sandslash Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidoran Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidorina Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidoqueen Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidoran Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidorino Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidoking Lorem ipsum dolor sit amet, consectetur adipiscing elit. Clefairy Lorem ipsum dolor sit amet, consectetur adipiscing elit. Clefable Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vulpix Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ninetales Lorem ipsum dolor sit amet, consectetur adipiscing elit. Jigglypuff Lorem ipsum dolor sit amet, consectetur adipiscing elit. Wigglytuff Lorem ipsum dolor sit amet, consectetur adipiscing elit. Zubat Lorem ipsum dolor sit amet, consectetur adipiscing elit. Golbat Lorem ipsum dolor sit amet, consectetur adipiscing elit. Oddish Lorem ipsum dolor sit amet, consectetur adipiscing elit. Gloom Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vileplume Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paras Lorem ipsum dolor sit amet, consectetur adipiscing elit." def set(self, content_type, title, author, time_estimate, url, thumbnail_url, thumbnail_width, thumbnail_height, description): self.content_type = content_type self.title = title self.author = author self.time_estimate = time_estimate self.url = url self.thumbnail_url = thumbnail_url self.thumbnail_width = thumbnail_width self.thumbnail_height = thumbnail_height self.description = description def build(self, from_engine): self.id = from_engine["id"] self.content_type = from_engine["content_type"] self.title = from_engine["title"] self.author = from_engine["author"]["name"] if "author_url" in from_engine["author"]: self.author_url = from_engine["author"]["author_url"] self.url = from_engine["url"] self.description = from_engine["description"] if "thumbnail" in from_engine: self.thumbnail_url = from_engine["thumbnail"]["url"] self.thumbnail_height = from_engine["thumbnail"]["height"] self.thumbnail_width = from_engine["thumbnail"]["width"] if "duration" in from_engine: self.duration = from_engine["duration"] def set_id(self, id): self.id = id
class Content: def __init__(self): self.content_type = 'video' self.title = 'sample title' self.author = {'url': '', 'name': 'James'} self.time_estimate = '(15 min)' self.url = 'http://mim-rec-engine.heroku.com' self.thumbnail_url = 'static/imgs/document.png' self.thumbnail_width = 498 self.thumbnail_height = 354 self.duration = '' self.description = 'Bulbasaur Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ivysaur Lorem ipsum dolor sit amet, consectetur adipiscing elit. Venusaur Lorem ipsum dolor sit amet, consectetur adipiscing elit. Charmander Lorem ipsum dolor sit amet, consectetur adipiscing elit. Charmeleon Lorem ipsum dolor sit amet, consectetur adipiscing elit. Charizard Lorem ipsum dolor sit amet, consectetur adipiscing elit. Squirtle Lorem ipsum dolor sit amet, consectetur adipiscing elit. Wartortle Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blastoise Lorem ipsum dolor sit amet, consectetur adipiscing elit. Caterpie Lorem ipsum dolor sit amet, consectetur adipiscing elit. Metapod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Butterfree Lorem ipsum dolor sit amet, consectetur adipiscing elit. Weedle Lorem ipsum dolor sit amet, consectetur adipiscing elit. Kakuna Lorem ipsum dolor sit amet, consectetur adipiscing elit. Beedrill Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pidgey Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pidgeotto Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pidgeot Lorem ipsum dolor sit amet, consectetur adipiscing elit. Rattata Lorem ipsum dolor sit amet, consectetur adipiscing elit. Raticate Lorem ipsum dolor sit amet, consectetur adipiscing elit. Spearow Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fearow Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ekans Lorem ipsum dolor sit amet, consectetur adipiscing elit. Arbok Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pikachu Lorem ipsum dolor sit amet, consectetur adipiscing elit. Raichu Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sandshrew Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sandslash Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidoran Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidorina Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidoqueen Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidoran Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidorino Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nidoking Lorem ipsum dolor sit amet, consectetur adipiscing elit. Clefairy Lorem ipsum dolor sit amet, consectetur adipiscing elit. Clefable Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vulpix Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ninetales Lorem ipsum dolor sit amet, consectetur adipiscing elit. Jigglypuff Lorem ipsum dolor sit amet, consectetur adipiscing elit. Wigglytuff Lorem ipsum dolor sit amet, consectetur adipiscing elit. Zubat Lorem ipsum dolor sit amet, consectetur adipiscing elit. Golbat Lorem ipsum dolor sit amet, consectetur adipiscing elit. Oddish Lorem ipsum dolor sit amet, consectetur adipiscing elit. Gloom Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vileplume Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paras Lorem ipsum dolor sit amet, consectetur adipiscing elit.' def set(self, content_type, title, author, time_estimate, url, thumbnail_url, thumbnail_width, thumbnail_height, description): self.content_type = content_type self.title = title self.author = author self.time_estimate = time_estimate self.url = url self.thumbnail_url = thumbnail_url self.thumbnail_width = thumbnail_width self.thumbnail_height = thumbnail_height self.description = description def build(self, from_engine): self.id = from_engine['id'] self.content_type = from_engine['content_type'] self.title = from_engine['title'] self.author = from_engine['author']['name'] if 'author_url' in from_engine['author']: self.author_url = from_engine['author']['author_url'] self.url = from_engine['url'] self.description = from_engine['description'] if 'thumbnail' in from_engine: self.thumbnail_url = from_engine['thumbnail']['url'] self.thumbnail_height = from_engine['thumbnail']['height'] self.thumbnail_width = from_engine['thumbnail']['width'] if 'duration' in from_engine: self.duration = from_engine['duration'] def set_id(self, id): self.id = id
__author__ = 'hs634' class Solution(): def __init__(self): pass def three_sum_zero(self, arr): arr, solution, i = sorted(arr), [], 0 while i < len(arr) - 2: j, k = i + 1, len(arr) - 1 while j < k: three_sum = arr[i] + arr[j] + arr[k] if three_sum < 0: j += 1 elif three_sum > 0: k -= 1 else: solution.append([arr[i], arr[j], arr[k]]) j, k = j + 1, k - 1 while j < k and arr[j] == arr[j - 1]: j += 1 while j < k and arr[k] == arr[k + 1]: k -= 1 i += 1 while i < len(arr) - 2 and arr[i] == arr[i - 1]: i += 1 return solution if __name__ == "__main__": solution = Solution().three_sum_zero([-1, 0, 1, 2, -1, -4])
__author__ = 'hs634' class Solution: def __init__(self): pass def three_sum_zero(self, arr): (arr, solution, i) = (sorted(arr), [], 0) while i < len(arr) - 2: (j, k) = (i + 1, len(arr) - 1) while j < k: three_sum = arr[i] + arr[j] + arr[k] if three_sum < 0: j += 1 elif three_sum > 0: k -= 1 else: solution.append([arr[i], arr[j], arr[k]]) (j, k) = (j + 1, k - 1) while j < k and arr[j] == arr[j - 1]: j += 1 while j < k and arr[k] == arr[k + 1]: k -= 1 i += 1 while i < len(arr) - 2 and arr[i] == arr[i - 1]: i += 1 return solution if __name__ == '__main__': solution = solution().three_sum_zero([-1, 0, 1, 2, -1, -4])
class Solution: def merge(self, A, m, B, n): sm, sn, i = m - 1, n - 1, m + n - 1 while sm >= 0 and sn >= 0: if A[sm] > B[sn]: A[i] = A[sm] sm -= 1 else: A[i] = B[sn] sn -= 1 i -= 1 while sn >= 0: A[i] = B[sn] i -= 1 sn -= 1
class Solution: def merge(self, A, m, B, n): (sm, sn, i) = (m - 1, n - 1, m + n - 1) while sm >= 0 and sn >= 0: if A[sm] > B[sn]: A[i] = A[sm] sm -= 1 else: A[i] = B[sn] sn -= 1 i -= 1 while sn >= 0: A[i] = B[sn] i -= 1 sn -= 1
class TasksService: def __init__(self, site): self.__site = site self.__is_loaded = False def load(self): self.__is_loaded = True
class Tasksservice: def __init__(self, site): self.__site = site self.__is_loaded = False def load(self): self.__is_loaded = True
class Recipe(object): def __init__(self): self.ingredients = [] # need to store lots of qty & unit & ingred per recipe. will be ordered triple self.directions = "" # how to make this food self.notes = "" # personal annotations re: this recipe self.recipe_name = "" # what's in a name? self.synopsis = "" # prep time, cook time, bake temp, etc. also short note for easy ref if you want self.uses = 0 # track how many times a recipe has been used self.source = "" # where did the recipe come from? self.labels = [] # used in searching for recipes def add_ingredient(self, qty, unit, name): self.ingredients.append((qty, unit, name)) return # needs ... reformatting. Not very nice to look at while running def get_recipe_content(self): again = "y" self.recipe_name = input("Please enter recipe name: ") while again != "n": # get ingredient input, split it, store it split_input = input("\nPlease enter ingredient quantity, unit, and name. For example," "'2 cups flour': ").split(" ") if len(split_input) == 3: self.add_ingredient(split_input[0], split_input[1], split_input[2]) again = input("\nAre there more ingredients? Y/N: ").lower() self.directions = input("\nPlease enter all recipe directions: ") self.notes = input("\nPlease enter any notes for this recipe. If there are none, just press Enter: \n") self.synopsis = input("\nPlease enter any recipe synopsis you would like to have. This may include" " prep time, cook time, baking \ntemperature, or more. If there is none, " "just press Enter: \n") self.source = input( "\nPlease enter the recipe source. If you don't want to add one, just press Enter: \n") more_labels = "y" while more_labels != "n": self.labels.append(input("\nEnter a label to tag this recipe with. " "If you don't want to add one, just press Enter: \n")) more_labels = input("\nIs there another label to add? Y/N: ").lower() return def display_recipe(self): print(self.recipe_name + "\n") print("Ingredients: \n") for i in self.ingredients: print(i[0] + " " + i[1] + " " + i[2] + "\n") print("Directions: \n" + self.directions + "\n") print("Notes: \n" + self.notes + "\n") if self.source: print("Recipe obtained from " + self.source) return def recipe_to_dict(self): recipe_dict = dict([('ingredients', self.ingredients), ('directions', self.directions), ('notes', self.notes), ('recipe_name', self.recipe_name), ('synopsis', self.synopsis), ('uses', self.uses), ('source', self.source), ('labels', self.labels)]) return recipe_dict
class Recipe(object): def __init__(self): self.ingredients = [] self.directions = '' self.notes = '' self.recipe_name = '' self.synopsis = '' self.uses = 0 self.source = '' self.labels = [] def add_ingredient(self, qty, unit, name): self.ingredients.append((qty, unit, name)) return def get_recipe_content(self): again = 'y' self.recipe_name = input('Please enter recipe name: ') while again != 'n': split_input = input("\nPlease enter ingredient quantity, unit, and name. For example,'2 cups flour': ").split(' ') if len(split_input) == 3: self.add_ingredient(split_input[0], split_input[1], split_input[2]) again = input('\nAre there more ingredients? Y/N: ').lower() self.directions = input('\nPlease enter all recipe directions: ') self.notes = input('\nPlease enter any notes for this recipe. If there are none, just press Enter: \n') self.synopsis = input('\nPlease enter any recipe synopsis you would like to have. This may include prep time, cook time, baking \ntemperature, or more. If there is none, just press Enter: \n') self.source = input("\nPlease enter the recipe source. If you don't want to add one, just press Enter: \n") more_labels = 'y' while more_labels != 'n': self.labels.append(input("\nEnter a label to tag this recipe with. If you don't want to add one, just press Enter: \n")) more_labels = input('\nIs there another label to add? Y/N: ').lower() return def display_recipe(self): print(self.recipe_name + '\n') print('Ingredients: \n') for i in self.ingredients: print(i[0] + ' ' + i[1] + ' ' + i[2] + '\n') print('Directions: \n' + self.directions + '\n') print('Notes: \n' + self.notes + '\n') if self.source: print('Recipe obtained from ' + self.source) return def recipe_to_dict(self): recipe_dict = dict([('ingredients', self.ingredients), ('directions', self.directions), ('notes', self.notes), ('recipe_name', self.recipe_name), ('synopsis', self.synopsis), ('uses', self.uses), ('source', self.source), ('labels', self.labels)]) return recipe_dict
class GetTableInteractor(object): def __init__(self, repo): self.repo = repo def set_params(self, user, year, month, before, after): self.user = user self.year = year self.month = month self.before = before self.after = after return self def execute(self): return self.repo.get_table( self.user, self.year, self.month, self.before, self.after )
class Gettableinteractor(object): def __init__(self, repo): self.repo = repo def set_params(self, user, year, month, before, after): self.user = user self.year = year self.month = month self.before = before self.after = after return self def execute(self): return self.repo.get_table(self.user, self.year, self.month, self.before, self.after)
# AUTOGENERATED! DO NOT EDIT! File to edit: 13_dataproc.ipynb (unless otherwise specified). __all__ = ['dataproc_test'] # Cell def dataproc_test(test_msg): "Function dataproc" return test_msg
__all__ = ['dataproc_test'] def dataproc_test(test_msg): """Function dataproc""" return test_msg
todos = [ { 'id': 1, 'title': 'Workout tomorrow', 'body': 'I intend to go through some rigorous exercise targetting my abs and my lower stomach', 'completed': False, 'date': '08/12/2019' }, { 'id': 2, 'title': 'Chefs Quaters', 'body': 'I intend to cook Rice with vegetables and also garnish it with some fried chicken', 'completed': False, 'date': '02/11/2019' } ]
todos = [{'id': 1, 'title': 'Workout tomorrow', 'body': 'I intend to go through some rigorous exercise targetting my abs and my lower stomach', 'completed': False, 'date': '08/12/2019'}, {'id': 2, 'title': 'Chefs Quaters', 'body': 'I intend to cook Rice with vegetables and also garnish it with some fried chicken', 'completed': False, 'date': '02/11/2019'}]
class Solution: def combine(self, n: int, k: int) -> List[List[int]]: ans = [] def dfs(n: int, k: int, s: int, path: List[int]) -> None: if k == 0: ans.append(path.copy()) return for i in range(s, n + 1): path.append(i) dfs(n, k - 1, i + 1, path) path.pop() dfs(n, k, 1, []) return ans
class Solution: def combine(self, n: int, k: int) -> List[List[int]]: ans = [] def dfs(n: int, k: int, s: int, path: List[int]) -> None: if k == 0: ans.append(path.copy()) return for i in range(s, n + 1): path.append(i) dfs(n, k - 1, i + 1, path) path.pop() dfs(n, k, 1, []) return ans
# ----------- # User Instructions: # # Modify the the search function so that it returns # a shortest path as follows: # # [['>', 'v', ' ', ' ', ' ', ' '], # [' ', '>', '>', '>', '>', 'v'], # [' ', ' ', ' ', ' ', ' ', 'v'], # [' ', ' ', ' ', ' ', ' ', 'v'], # [' ', ' ', ' ', ' ', ' ', '*']] # # Where '>', '<', '^', and 'v' refer to right, left, # up, and down motions. Note that the 'v' should be # lowercase. '*' should mark the goal cell. # # You may assume that all test cases for this function # will have a path from init to goal. # ---------- grid = [[0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 1, 0], [0, 0, 1, 0, 1, 0], [0, 0, 1, 0, 1, 0]] init = [0, 0] goal = [len(grid)-1, len(grid[0])-1] cost = 1 delta = [[-1, 0], # go up [0, -1], # go left [1, 0], # go down [0, 1]] # go right delta_name = ['^', '<', 'v', '>'] def search(grid, init, goal, cost): # ---------------------------------------- # modify code below # ---------------------------------------- closed = [[-1 for row in range(len(grid[0]))] for col in range(len(grid))] closed[init[0]][init[1]] = 1 expand = [[' ' for row in range(len(grid[0]))] for col in range(len(grid))] x = init[0] y = init[1] g = 0 closed[x][y] = 0 current_action = delta_name[0] open = [[g, x, y]] found = False # flag that is set when search is complete resign = False # flag set if we can't find expand while not found and not resign: if len(open) == 0: resign = True return 'fail' else: open.sort() open.reverse() next = open.pop() #expand[x][y] = current_action x = next[1] y = next[2] g = next[0] if x == goal[0] and y == goal[1]: found = True expand[x][y] = "*" else: for i in range(len(delta)): x2 = x + delta[i][0] y2 = y + delta[i][1] if x2 >= 0 and x2 < len(grid) and y2 >= 0 and y2 < len(grid[0]): if closed[x2][y2] == -1 and grid[x2][y2] == 0: g2 = g + cost open.append([g2, x2, y2]) closed[x2][y2] = g2 # current_action = delta_name[i] path = [] print("closed") for line in closed: print(line) print() if found: path.append(next) print(path) closest_points = [] actions = [] last_cost = path[0][0] while last_cost != 0: closest_points.clear() actions.clear() for i in range(len(delta)): x2 = x + delta[i][0] y2 = y + delta[i][1] if x2 >= 0 and x2 < len(grid) and y2 >= 0 and y2 < len(grid[0]): closest_cost = closed[x2][y2] if closest_cost >= 0: closest_points.append([closest_cost, x2, y2]) actions.append(delta_name[(i + 2) % len(delta_name)]) prev_cost = closed[x][y] min_ind = 0 for i in range(len(closest_points)): if closest_points[i][0] < prev_cost: prev_cost = closest_points[i][0] min_ind = i last_cost = closest_points[min_ind][0] x = closest_points[min_ind][1] y = closest_points[min_ind][2] current_action = actions[min_ind] expand[x][y] = current_action path.append([last_cost, x, y]) print("path") for line in path: print(line) print() return expand # make sure you return the shortest path result = search(grid, init, goal, cost) print("result") for line in result: print(line)
grid = [[0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 1, 0], [0, 0, 1, 0, 1, 0], [0, 0, 1, 0, 1, 0]] init = [0, 0] goal = [len(grid) - 1, len(grid[0]) - 1] cost = 1 delta = [[-1, 0], [0, -1], [1, 0], [0, 1]] delta_name = ['^', '<', 'v', '>'] def search(grid, init, goal, cost): closed = [[-1 for row in range(len(grid[0]))] for col in range(len(grid))] closed[init[0]][init[1]] = 1 expand = [[' ' for row in range(len(grid[0]))] for col in range(len(grid))] x = init[0] y = init[1] g = 0 closed[x][y] = 0 current_action = delta_name[0] open = [[g, x, y]] found = False resign = False while not found and (not resign): if len(open) == 0: resign = True return 'fail' else: open.sort() open.reverse() next = open.pop() x = next[1] y = next[2] g = next[0] if x == goal[0] and y == goal[1]: found = True expand[x][y] = '*' else: for i in range(len(delta)): x2 = x + delta[i][0] y2 = y + delta[i][1] if x2 >= 0 and x2 < len(grid) and (y2 >= 0) and (y2 < len(grid[0])): if closed[x2][y2] == -1 and grid[x2][y2] == 0: g2 = g + cost open.append([g2, x2, y2]) closed[x2][y2] = g2 path = [] print('closed') for line in closed: print(line) print() if found: path.append(next) print(path) closest_points = [] actions = [] last_cost = path[0][0] while last_cost != 0: closest_points.clear() actions.clear() for i in range(len(delta)): x2 = x + delta[i][0] y2 = y + delta[i][1] if x2 >= 0 and x2 < len(grid) and (y2 >= 0) and (y2 < len(grid[0])): closest_cost = closed[x2][y2] if closest_cost >= 0: closest_points.append([closest_cost, x2, y2]) actions.append(delta_name[(i + 2) % len(delta_name)]) prev_cost = closed[x][y] min_ind = 0 for i in range(len(closest_points)): if closest_points[i][0] < prev_cost: prev_cost = closest_points[i][0] min_ind = i last_cost = closest_points[min_ind][0] x = closest_points[min_ind][1] y = closest_points[min_ind][2] current_action = actions[min_ind] expand[x][y] = current_action path.append([last_cost, x, y]) print('path') for line in path: print(line) print() return expand result = search(grid, init, goal, cost) print('result') for line in result: print(line)
def add_numbers(start,end): c = 0 for number in range(start,end+1): print(number) c = c + number return(c) answer = add_numbers(333,777) #print(answer) #print(add_numbers()) #add_numbers()
def add_numbers(start, end): c = 0 for number in range(start, end + 1): print(number) c = c + number return c answer = add_numbers(333, 777)
# CELERY CELERY_BROKER_URL = 'redis://10.16.78.86:6380' CELERY_RESULT_BACKEND = 'redis://10.16.78.86:6380' # NGINX STATIC HOME DOC_HOME = '/opt/data' # Flask-Log Settings LOG_LEVEL = 'debug' LOG_FILENAME = "/var/archives/error.log" LOG_ENABLE_CONSOLE = False # REDIS Settings REDIS_HOST = '10.16.78.86' REDIS_PORT = 6383
celery_broker_url = 'redis://10.16.78.86:6380' celery_result_backend = 'redis://10.16.78.86:6380' doc_home = '/opt/data' log_level = 'debug' log_filename = '/var/archives/error.log' log_enable_console = False redis_host = '10.16.78.86' redis_port = 6383
X = [[12,7,3], [4,5,6], [7,8,9]] Y = [[5,8,1], [6,7,3], [4,5,9]] result = [[0,0,0], [0,0,0], [0,0,0]] print(len(X),len(Y)) # iterate through rows for i in range(0,3): # iterate through columns for j in range(0,3): result[i][j] = X[i][j] + Y[i][j] for r in result: print(r)
x = [[12, 7, 3], [4, 5, 6], [7, 8, 9]] y = [[5, 8, 1], [6, 7, 3], [4, 5, 9]] result = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] print(len(X), len(Y)) for i in range(0, 3): for j in range(0, 3): result[i][j] = X[i][j] + Y[i][j] for r in result: print(r)
#!/bin/python3 annee_naissance = input('t ne ou ') annee = 2025 - int(annee_naissance) print(annee) print(f'voila : {str(annee)} pewepw')
annee_naissance = input('t ne ou ') annee = 2025 - int(annee_naissance) print(annee) print(f'voila : {str(annee)} pewepw')
# Python program to demonstrate in-built poly- # morphic functions # len() being used for a string print(len("geeks")) # len() being used for a list print(len([10, 20, 30]))
print(len('geeks')) print(len([10, 20, 30]))
class Solution: def isOneBitCharacter(self, bits): if len(bits) == 1: return True idx = 0 while True: if idx == len(bits) - 3 or idx == len(bits) - 2: break if bits[idx] == 1: idx += 2 else: idx += 1 if idx == len(bits) - 3: if bits[idx] == 1: return True if bits[idx + 1] == 0: return True return False if idx == len(bits) - 2: if bits[idx] == 1: return False return True class Solution2: def isOneBitCharacter(self, bits): idx = 0 ans = False while idx < len(bits): if bits[idx] == 1: idx += 2 ans = False else: idx += 1 ans = True return ans
class Solution: def is_one_bit_character(self, bits): if len(bits) == 1: return True idx = 0 while True: if idx == len(bits) - 3 or idx == len(bits) - 2: break if bits[idx] == 1: idx += 2 else: idx += 1 if idx == len(bits) - 3: if bits[idx] == 1: return True if bits[idx + 1] == 0: return True return False if idx == len(bits) - 2: if bits[idx] == 1: return False return True class Solution2: def is_one_bit_character(self, bits): idx = 0 ans = False while idx < len(bits): if bits[idx] == 1: idx += 2 ans = False else: idx += 1 ans = True return ans
# S E # array = [8, 5, 2, 8, 5, 6, 3] # P L R # if s >= e : r # assigning p, l, r -variables # while r >= e # if l >= p & r <= p # swap # l <= p - l+ # r >= p - r- # leftsubarrayissmaller = r - 1 - s < e - (r + 1) # (p , s, r - 1) # (p, r + 1, e) # Worst : time - O(n^2),Space- O(log(n)) # in input - swap all positions # Best: time - O(nlog(n)),Space- O(log(n)) # in input - swap postions for left and right subarray # Avg: time - O(nlog(n)),Space- O(log(n)) def quickSort(array): quickSortHelper(array, 0, len(array) - 1) return array def quickSortHelper(array, startIdx, endIdx): if startIdx >= endIdx: return pivotIdx = startIdx # assuming far left of the array leftIdx = startIdx + 1 rightIdx = endIdx while rightIdx >= leftIdx: if array[leftIdx] > array[pivotIdx] and array[rightIdx] < array[pivotIdx]: swap(leftIdx, rightIdx, array) if array[leftIdx] <= array[pivotIdx]: leftIdx += 1 if array[rightIdx] >= array[pivotIdx]: rightIdx -= 1 swap(pivotIdx, rightIdx, array) # R < L # leftSubarray = (rightIdx - 1) -> pivot is located here # rightSubarray = endIdx - (rightIdx + 1) leftSubarrayIsSmaller = rightIdx - 1 - startIdx < endIdx - (rightIdx + 1) if leftSubarrayIsSmaller: quickSortHelper(array, startIdx, rightIdx - 1) # leftSubarray quickSortHelper(array, rightIdx + 1, endIdx) # rightSubarray else: quickSortHelper(array, rightIdx + 1, endIdx) # rightSubarray quickSortHelper(array, startIdx, rightIdx - 1) # leftSubarray def swap(i, j, array): array[i], array[j] = array[j], array[i]
def quick_sort(array): quick_sort_helper(array, 0, len(array) - 1) return array def quick_sort_helper(array, startIdx, endIdx): if startIdx >= endIdx: return pivot_idx = startIdx left_idx = startIdx + 1 right_idx = endIdx while rightIdx >= leftIdx: if array[leftIdx] > array[pivotIdx] and array[rightIdx] < array[pivotIdx]: swap(leftIdx, rightIdx, array) if array[leftIdx] <= array[pivotIdx]: left_idx += 1 if array[rightIdx] >= array[pivotIdx]: right_idx -= 1 swap(pivotIdx, rightIdx, array) left_subarray_is_smaller = rightIdx - 1 - startIdx < endIdx - (rightIdx + 1) if leftSubarrayIsSmaller: quick_sort_helper(array, startIdx, rightIdx - 1) quick_sort_helper(array, rightIdx + 1, endIdx) else: quick_sort_helper(array, rightIdx + 1, endIdx) quick_sort_helper(array, startIdx, rightIdx - 1) def swap(i, j, array): (array[i], array[j]) = (array[j], array[i])
def palindrome(n): a0=n s=0 while a0>0: d=a0%10 s=s*10+d a0=a0//10 if s==n: return 1 else: return 0 n=int(input("Enter a number ")) if palindrome(n)==1: print("palindrome ...") else: print("Not palindrome..")
def palindrome(n): a0 = n s = 0 while a0 > 0: d = a0 % 10 s = s * 10 + d a0 = a0 // 10 if s == n: return 1 else: return 0 n = int(input('Enter a number ')) if palindrome(n) == 1: print('palindrome ...') else: print('Not palindrome..')
class Bicycle: def __init__(self, name, wheel_numbers, brake_type, gear_number): self.name = name self.wheel_numbers = wheel_numbers self.brake_type = brake_type self.gear_number = gear_number bicycle = Bicycle('single speed', '2', 'rim brake', 'free wheel') print(bicycle.name) print(bicycle.brake_type) class Motorcycle(Bicycle): accelerate = "throttle" motor = "gas" class Outdoor_Elliptical(Bicycle): position = "standing" pedals = "elliptical"
class Bicycle: def __init__(self, name, wheel_numbers, brake_type, gear_number): self.name = name self.wheel_numbers = wheel_numbers self.brake_type = brake_type self.gear_number = gear_number bicycle = bicycle('single speed', '2', 'rim brake', 'free wheel') print(bicycle.name) print(bicycle.brake_type) class Motorcycle(Bicycle): accelerate = 'throttle' motor = 'gas' class Outdoor_Elliptical(Bicycle): position = 'standing' pedals = 'elliptical'
CELERY_IMPORTS=("app", ) CELERY_BROKER_URL="amqp://saket:fedora13@localhost//" CELERY_RESULT_BACKEND="amqp://saket:fedora13@localhost//" SQLALCHEMY_DATABASE_URI="mysql://saket:fedora13@localhost/moca" CELERYD_MAX_TASKS_PER_CHILD=10
celery_imports = ('app',) celery_broker_url = 'amqp://saket:fedora13@localhost//' celery_result_backend = 'amqp://saket:fedora13@localhost//' sqlalchemy_database_uri = 'mysql://saket:fedora13@localhost/moca' celeryd_max_tasks_per_child = 10
class Restaurant: def __init__(self): self.restaurant = [] def update_location(self): pass def add(self, restaurant): self.restaurant.append(restaurant)
class Restaurant: def __init__(self): self.restaurant = [] def update_location(self): pass def add(self, restaurant): self.restaurant.append(restaurant)