blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
c06a9369d360069947fe1625aa7aab2e998bbc6f
0aa3b2d2146e6754f80a8fcfbde799104c4372d9
/scripts/dataset_processing/tts/audio_processing/preprocess_audio.py
128d311e04c0115c83b1e49a54af26bcc4775433
[ "Apache-2.0" ]
permissive
shalevy1/NeMo
22d231d15e56aac09704f8d9fb5059da84314641
5e07ed39f317fc03de2bb90c5ed218304bf88602
refs/heads/master
2023-06-26T18:09:16.776952
2023-01-12T22:42:28
2023-01-12T22:42:28
209,153,028
0
0
Apache-2.0
2023-06-09T22:53:07
2019-09-17T20:43:57
Python
UTF-8
Python
false
false
6,608
py
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ This script is used to preprocess audio before TTS model training. It can be configured to do several processing steps such as silence trimming, volume normalization, and duration filtering. These can be done separately through multiple executions of the script, or all at once to avoid saving too many copies of the same audio. Most of these can also be done by the TTS data loader at training time, but doing them ahead of time lets us implement more complex processing, validate the corectness of the output, and save on compute time. $ HYDRA_FULL_ERROR=1 python <nemo_root_path>/scripts/dataset_processing/tts/audio_processing/preprocess_audio.py \ --config-path=<nemo_root_path>/scripts/dataset_processing/tts/audio_processing/config \ --config-name=preprocessing.yaml \ data_base_dir="/home/data" \ config.num_workers=1 """ import os from dataclasses import dataclass from pathlib import Path from typing import Tuple import librosa import soundfile as sf from hydra.utils import instantiate from joblib import Parallel, delayed from tqdm import tqdm from nemo.collections.tts.data.audio_trimming import AudioTrimmer from nemo.collections.tts.data.data_utils import normalize_volume, read_manifest, write_manifest from nemo.collections.tts.torch.helpers import get_base_dir from nemo.core.config import hydra_runner from nemo.utils import logging @dataclass class AudioPreprocessingConfig: # Input training manifest. input_manifest: Path # New training manifest after processing audio. output_manifest: Path # Directory to save processed audio to. output_dir: Path # Number of threads to use. -1 will use all available CPUs. num_workers: int = -1 # If provided, maximum number of entries in the manifest to process. max_entries: int = 0 # If provided, rate to resample the audio to. output_sample_rate: int = 0 # If provided, peak volume to normalize audio to. volume_level: float = 0.0 # If provided, filter out utterances shorter than min_duration. min_duration: float = 0.0 # If provided, filter out utterances longer than min_duration. max_duration: float = float("inf") # If provided, output filter_file will contain list of utterances filtered out. filter_file: Path = None def _process_entry( entry: dict, base_dir: Path, output_dir: Path, audio_trimmer: AudioTrimmer, output_sample_rate: int, volume_level: float, ) -> Tuple[dict, float, float]: audio_filepath = Path(entry["audio_filepath"]) rel_audio_path = audio_filepath.relative_to(base_dir) input_path = os.path.join(base_dir, rel_audio_path) output_path = os.path.join(output_dir, rel_audio_path) audio, sample_rate = librosa.load(input_path, sr=None) if audio_trimmer is not None: audio_id = str(audio_filepath) audio, start_i, end_i = audio_trimmer.trim_audio(audio=audio, sample_rate=sample_rate, audio_id=audio_id) if output_sample_rate is not None: audio = librosa.resample(y=audio, orig_sr=sample_rate, target_sr=output_sample_rate) sample_rate = output_sample_rate if volume_level: audio = normalize_volume(audio, volume_level=volume_level) sf.write(file=output_path, data=audio, samplerate=sample_rate) original_duration = librosa.get_duration(filename=str(audio_filepath)) output_duration = librosa.get_duration(filename=str(output_path)) entry["audio_filepath"] = output_path entry["duration"] = output_duration return entry, original_duration, output_duration @hydra_runner(config_path='config', config_name='preprocessing') def main(cfg): config = instantiate(cfg.config) logging.info(f"Running audio preprocessing with config: {config}") input_manifest_path = Path(config.input_manifest) output_manifest_path = Path(config.output_manifest) output_dir = Path(config.output_dir) num_workers = config.num_workers max_entries = config.max_entries output_sample_rate = config.output_sample_rate volume_level = config.volume_level min_duration = config.min_duration max_duration = config.max_duration filter_file = Path(config.filter_file) if cfg.trim: audio_trimmer = instantiate(cfg.trim) else: audio_trimmer = None output_dir.mkdir(exist_ok=True, parents=True) entries = read_manifest(input_manifest_path) if max_entries: entries = entries[:max_entries] audio_paths = [entry["audio_filepath"] for entry in entries] base_dir = get_base_dir(audio_paths) # 'threading' backend is required when parallelizing torch models. job_outputs = Parallel(n_jobs=num_workers, backend='threading')( delayed(_process_entry)( entry=entry, base_dir=base_dir, output_dir=output_dir, audio_trimmer=audio_trimmer, output_sample_rate=output_sample_rate, volume_level=volume_level, ) for entry in tqdm(entries) ) output_entries = [] filtered_entries = [] original_durations = 0.0 output_durations = 0.0 for output_entry, original_duration, output_duration in job_outputs: if not min_duration <= output_duration <= max_duration: if output_duration != original_duration: output_entry["original_duration"] = original_duration filtered_entries.append(output_entry) continue original_durations += original_duration output_durations += output_duration output_entries.append(output_entry) write_manifest(manifest_path=output_manifest_path, entries=output_entries) if filter_file: write_manifest(manifest_path=filter_file, entries=filtered_entries) logging.info(f"Duration of original audio: {original_durations / 3600} hours") logging.info(f"Duration of processed audio: {output_durations / 3600} hours") if __name__ == "__main__": main()
[ "noreply@github.com" ]
shalevy1.noreply@github.com
07ef11d4fa19032f13b947b8fcb93a347ebf61ec
57a1b4048643a4a68f4e07116d7a9f4222a5ec34
/ga.py
dc25e9099ee0e25e8a70f3c7e8c3c27069d3f375
[]
no_license
LauraDiosan-CS/lab04-gatsp-serbancalin
29fd193353ff7d6c38b5d4fd279929e4f2d4b92a
188b2a99bf02d172f02e05515ab7e55f653c25ba
refs/heads/master
2021-04-02T03:45:16.373896
2020-03-31T13:15:20
2020-03-31T13:15:20
248,240,155
0
0
null
null
null
null
UTF-8
Python
false
false
5,236
py
import random def mainGA(input): nrIteratii = input["nrGeneratii"] # se creeaza o populatie populatie = Populatie() populatie.populeaza(input["n"], input["dimensiunePopulatie"], input["startNode"]) while nrIteratii > 0: parinte1 = selectieReproducere(populatie, input["matrix"]) parinte2 = selectieReproducere(populatie, input["matrix"]) copil1, copil2 = incrucisare(parinte1, parinte2) copil1.mutatie() copil2.mutatie() while not copil1.eValid(input["startNode"]): copil1.mutatie() while not copil2.eValid(input["startNode"]): copil2.mutatie() if copil1.fitness(input["matrix"]) > copil2.fitness(input["matrix"]): copil1 = copil2 populatie.selectieSupravietuire(copil1, input["matrix"]) nrIteratii -= 1 # se returneaza cromozomul cu fitnessul minim si valoarea acestuia return fitnessMinim(populatie, input["matrix"]) class Cromozom: """ lista de noduri -> permutare de elemente de n """ def __init__(self, n): self.__n = n self.__permutare = generarePermutareIdentica(n) def __eq__(self, other): for i in range(self.__n): if self.__permutare[i] != other.__permutare[i]: return False return True def getPermutare(self): return self.__permutare def setPermutare(self, permutare): self.__permutare = permutare def getN(self): return self.__n def mutatie(self): i = random.randrange(self.__n) j = random.randrange(self.__n) self.__permutare[i], self.__permutare[j] = self.__permutare[j], self.__permutare[i] def eValid(self, startNode): return self.__permutare[0] == startNode def fitness(self, matrix): f = 0 node = self.__permutare[0] for i in range(self.__n - 1): f += matrix[node - 1][self.__permutare[i + 1] - 1] node = self.__permutare[i + 1] # se adauga la final si drumul de la ultimul nod la startNode # un cromozom e valid doar daca permutarea sa incepe cu startNode f += matrix[node - 1][self.__permutare[0] - 1] return f class Populatie: """ lista de cromozomi """ def __init__(self): self.__cromozomi = [] def addCromozom(self, cromozom): self.__cromozomi.append(cromozom) def getCromozomi(self): return self.__cromozomi def populeaza(self, n, dimesiunePopulatie, startNode): dim = 0 while dim < dimesiunePopulatie: cromozom = Cromozom(n) while not cromozom.eValid(startNode): cromozom.mutatie() dim += 1 self.__cromozomi.append(cromozom) def selectieSupravietuire(self, copil, matrix): fitnessMaxim = 0 indexFitnessMaxim = -1 index = -1 for cromozom in self.__cromozomi: index += 1 fitness = cromozom.fitness(matrix) if fitness > fitnessMaxim: fitnessMaxim = fitness indexFitnessMaxim = index if copil.fitness(matrix) < fitnessMaxim and indexFitnessMaxim > -1: self.__cromozomi[indexFitnessMaxim] = copil def generarePermutareIdentica(n): permutare = [] for i in range(n): permutare.append(i + 1) return permutare def incrucisare(parinte1, parinte2): p1 = parinte1.getPermutare() p2 = parinte2.getPermutare() c1 = Cromozom(parinte1.getN()) permutare = p1[:2] for i in range(2, parinte2.getN()): if p2[i] not in permutare: permutare.append(p2[i]) for x in p2: if x not in permutare: permutare.append(x) c1.setPermutare(permutare) c2 = Cromozom(parinte2.getN()) permutare = p2[:2] for i in range(2, parinte1.getN()): if p1[i] not in permutare: permutare.append(p1[i]) for x in p1: if x not in permutare: permutare.append(x) c2.setPermutare(permutare) return c1, c2 def selectieReproducere(populatie, matrix): probabilitati = [0] sumaFitness = 0 i = 1 for cromozom in populatie.getCromozomi(): fitness = 1 / cromozom.fitness(matrix) sumaFitness += fitness probabilitati.append(fitness) i += 1 for j in range(1, i): prob = probabilitati[j] / sumaFitness probabilitati[j] = prob s = 0 for j in range(i): s += probabilitati[j] probabilitati[j] = s nr = random.random() for j in range(1, i): if probabilitati[j - 1] <= nr < probabilitati[j]: return populatie.getCromozomi()[j - 1] return None def fitnessMinim(populatie, matrix): copil = populatie.getCromozomi()[0] fitnessMin = copil.fitness(matrix) for c in populatie.getCromozomi(): fitness = c.fitness(matrix) if fitness < fitnessMin: fitnessMin = fitness copil = c return copil.getPermutare(), fitnessMin
[ "noreply@github.com" ]
LauraDiosan-CS.noreply@github.com
40e9dcc34f1ff2c0d1c76edff485bcd9bc142446
a25e2aa102ffe9c2d9b553252a1882fe5a9d7ec9
/SprityBird/spritybird/python3.5/lib/python3.5/site-packages/sympy/printing/mathml.py
191bf91dc6a0643b43e3d0eb25dc79ab7b5453f4
[ "MIT" ]
permissive
MobileAnalytics/iPython-Framework
f96ebc776e763e6b4e60fb6ec26bb71e02cf6409
da0e598308c067cd5c5290a6364b3ffaf2d2418f
refs/heads/master
2020-03-22T06:49:29.022949
2018-07-04T04:22:17
2018-07-04T04:22:17
139,660,631
4
1
null
null
null
null
UTF-8
Python
false
false
16,248
py
""" A MathML printer. """ from __future__ import print_function, division from sympy import sympify, S, Mul from sympy.core.function import _coeff_isneg from sympy.core.alphabets import greeks from sympy.core.compatibility import u, range from .printer import Printer from .pretty.pretty_symbology import greek_unicode from .conventions import split_super_sub, requires_partial class MathMLPrinter(Printer): """Prints an expression to the MathML markup language Whenever possible tries to use Content markup and not Presentation markup. References: http://www.w3.org/TR/MathML2/ """ printmethod = "_mathml" _default_settings = { "order": None, "encoding": "utf-8" } def __init__(self, settings=None): Printer.__init__(self, settings) from xml.dom.minidom import Document self.dom = Document() def doprint(self, expr): """ Prints the expression as MathML. """ mathML = Printer._print(self, expr) unistr = mathML.toxml() xmlbstr = unistr.encode('ascii', 'xmlcharrefreplace') res = xmlbstr.decode() return res def mathml_tag(self, e): """Returns the MathML tag for an expression.""" translate = { 'Add': 'plus', 'Mul': 'times', 'Derivative': 'diff', 'Number': 'cn', 'int': 'cn', 'Pow': 'power', 'Symbol': 'ci', 'Integral': 'int', 'Sum': 'sum', 'sin': 'sin', 'cos': 'cos', 'tan': 'tan', 'cot': 'cot', 'asin': 'arcsin', 'asinh': 'arcsinh', 'acos': 'arccos', 'acosh': 'arccosh', 'atan': 'arctan', 'atanh': 'arctanh', 'acot': 'arccot', 'atan2': 'arctan', 'log': 'ln', 'Equality': 'eq', 'Unequality': 'neq', 'GreaterThan': 'geq', 'LessThan': 'leq', 'StrictGreaterThan': 'gt', 'StrictLessThan': 'lt', } for cls in e.__class__.__mro__: n = cls.__name__ if n in translate: return translate[n] # Not found in the MRO set n = e.__class__.__name__ return n.lower() def _print_Mul(self, expr): if _coeff_isneg(expr): x = self.dom.createElement('apply') x.appendChild(self.dom.createElement('minus')) x.appendChild(self._print_Mul(-expr)) return x from sympy.simplify import fraction numer, denom = fraction(expr) if denom is not S.One: x = self.dom.createElement('apply') x.appendChild(self.dom.createElement('divide')) x.appendChild(self._print(numer)) x.appendChild(self._print(denom)) return x coeff, terms = expr.as_coeff_mul() if coeff is S.One and len(terms) == 1: # XXX since the negative coefficient has been handled, I don't # thing a coeff of 1 can remain return self._print(terms[0]) if self.order != 'old': terms = Mul._from_args(terms).as_ordered_factors() x = self.dom.createElement('apply') x.appendChild(self.dom.createElement('times')) if(coeff != 1): x.appendChild(self._print(coeff)) for term in terms: x.appendChild(self._print(term)) return x def _print_Add(self, expr, order=None): args = self._as_ordered_terms(expr, order=order) lastProcessed = self._print(args[0]) plusNodes = [] for arg in args[1:]: if _coeff_isneg(arg): #use minus x = self.dom.createElement('apply') x.appendChild(self.dom.createElement('minus')) x.appendChild(lastProcessed) x.appendChild(self._print(-arg)) #invert expression since this is now minused lastProcessed = x if(arg == args[-1]): plusNodes.append(lastProcessed) else: plusNodes.append(lastProcessed) lastProcessed = self._print(arg) if(arg == args[-1]): plusNodes.append(self._print(arg)) if len(plusNodes) == 1: return lastProcessed x = self.dom.createElement('apply') x.appendChild(self.dom.createElement('plus')) while len(plusNodes) > 0: x.appendChild(plusNodes.pop(0)) return x def _print_MatrixBase(self, m): x = self.dom.createElement('matrix') for i in range(m.lines): x_r = self.dom.createElement('matrixrow') for j in range(m.cols): x_r.appendChild(self._print(m[i, j])) x.appendChild(x_r) return x def _print_Rational(self, e): if e.q == 1: #don't divide x = self.dom.createElement('cn') x.appendChild(self.dom.createTextNode(str(e.p))) return x x = self.dom.createElement('apply') x.appendChild(self.dom.createElement('divide')) #numerator xnum = self.dom.createElement('cn') xnum.appendChild(self.dom.createTextNode(str(e.p))) #denomenator xdenom = self.dom.createElement('cn') xdenom.appendChild(self.dom.createTextNode(str(e.q))) x.appendChild(xnum) x.appendChild(xdenom) return x def _print_Limit(self, e): x = self.dom.createElement('apply') x.appendChild(self.dom.createElement(self.mathml_tag(e))) x_1 = self.dom.createElement('bvar') x_2 = self.dom.createElement('lowlimit') x_1.appendChild(self._print(e.args[1])) x_2.appendChild(self._print(e.args[2])) x.appendChild(x_1) x.appendChild(x_2) x.appendChild(self._print(e.args[0])) return x def _print_ImaginaryUnit(self, e): return self.dom.createElement('imaginaryi') def _print_EulerGamma(self, e): return self.dom.createElement('eulergamma') def _print_GoldenRatio(self, e): """We use unicode #x3c6 for Greek letter phi as defined here http://www.w3.org/2003/entities/2007doc/isogrk1.html""" x = self.dom.createElement('cn') x.appendChild(self.dom.createTextNode(u"\N{GREEK SMALL LETTER PHI}")) return x def _print_Exp1(self, e): return self.dom.createElement('exponentiale') def _print_Pi(self, e): return self.dom.createElement('pi') def _print_Infinity(self, e): return self.dom.createElement('infinity') def _print_Negative_Infinity(self, e): x = self.dom.createElement('apply') x.appendChild(self.dom.createElement('minus')) x.appendChild(self.dom.createElement('infinity')) return x def _print_Integral(self, e): def lime_recur(limits): x = self.dom.createElement('apply') x.appendChild(self.dom.createElement(self.mathml_tag(e))) bvar_elem = self.dom.createElement('bvar') bvar_elem.appendChild(self._print(limits[0][0])) x.appendChild(bvar_elem) if len(limits[0]) == 3: low_elem = self.dom.createElement('lowlimit') low_elem.appendChild(self._print(limits[0][1])) x.appendChild(low_elem) up_elem = self.dom.createElement('uplimit') up_elem.appendChild(self._print(limits[0][2])) x.appendChild(up_elem) if len(limits[0]) == 2: up_elem = self.dom.createElement('uplimit') up_elem.appendChild(self._print(limits[0][1])) x.appendChild(up_elem) if len(limits) == 1: x.appendChild(self._print(e.function)) else: x.appendChild(lime_recur(limits[1:])) return x limits = list(e.limits) limits.reverse() return lime_recur(limits) def _print_Sum(self, e): # Printer can be shared because Sum and Integral have the # same internal representation. return self._print_Integral(e) def _print_Symbol(self, sym): ci = self.dom.createElement(self.mathml_tag(sym)) def join(items): if len(items) > 1: mrow = self.dom.createElement('mml:mrow') for i, item in enumerate(items): if i > 0: mo = self.dom.createElement('mml:mo') mo.appendChild(self.dom.createTextNode(" ")) mrow.appendChild(mo) mi = self.dom.createElement('mml:mi') mi.appendChild(self.dom.createTextNode(item)) mrow.appendChild(mi) return mrow else: mi = self.dom.createElement('mml:mi') mi.appendChild(self.dom.createTextNode(items[0])) return mi # translate name, supers and subs to unicode characters greek_letters = set(greeks) # make a copy def translate(s): if s in greek_unicode: return greek_unicode.get(s) else: return s name, supers, subs = split_super_sub(sym.name) name = translate(name) supers = [translate(sup) for sup in supers] subs = [translate(sub) for sub in subs] mname = self.dom.createElement('mml:mi') mname.appendChild(self.dom.createTextNode(name)) if len(supers) == 0: if len(subs) == 0: ci.appendChild(self.dom.createTextNode(name)) else: msub = self.dom.createElement('mml:msub') msub.appendChild(mname) msub.appendChild(join(subs)) ci.appendChild(msub) else: if len(subs) == 0: msup = self.dom.createElement('mml:msup') msup.appendChild(mname) msup.appendChild(join(supers)) ci.appendChild(msup) else: msubsup = self.dom.createElement('mml:msubsup') msubsup.appendChild(mname) msubsup.appendChild(join(subs)) msubsup.appendChild(join(supers)) ci.appendChild(msubsup) return ci def _print_Pow(self, e): #Here we use root instead of power if the exponent is the reciprocal of an integer if e.exp.is_Rational and e.exp.p == 1: x = self.dom.createElement('apply') x.appendChild(self.dom.createElement('root')) if e.exp.q != 2: xmldeg = self.dom.createElement('degree') xmlci = self.dom.createElement('ci') xmlci.appendChild(self.dom.createTextNode(str(e.exp.q))) xmldeg.appendChild(xmlci) x.appendChild(xmldeg) x.appendChild(self._print(e.base)) return x x = self.dom.createElement('apply') x_1 = self.dom.createElement(self.mathml_tag(e)) x.appendChild(x_1) x.appendChild(self._print(e.base)) x.appendChild(self._print(e.exp)) return x def _print_Number(self, e): x = self.dom.createElement(self.mathml_tag(e)) x.appendChild(self.dom.createTextNode(str(e))) return x def _print_Derivative(self, e): x = self.dom.createElement('apply') diff_symbol = self.mathml_tag(e) if requires_partial(e): diff_symbol = 'partialdiff' x.appendChild(self.dom.createElement(diff_symbol)) x_1 = self.dom.createElement('bvar') for sym in e.variables: x_1.appendChild(self._print(sym)) x.appendChild(x_1) x.appendChild(self._print(e.expr)) return x def _print_Function(self, e): x = self.dom.createElement("apply") x.appendChild(self.dom.createElement(self.mathml_tag(e))) for arg in e.args: x.appendChild(self._print(arg)) return x def _print_Basic(self, e): x = self.dom.createElement(self.mathml_tag(e)) for arg in e: x.appendChild(self._print(arg)) return x def _print_AssocOp(self, e): x = self.dom.createElement('apply') x_1 = self.dom.createElement(self.mathml_tag(e)) x.appendChild(x_1) for arg in e.args: x.appendChild(self._print(arg)) return x def _print_Relational(self, e): x = self.dom.createElement('apply') x.appendChild(self.dom.createElement(self.mathml_tag(e))) x.appendChild(self._print(e.lhs)) x.appendChild(self._print(e.rhs)) return x def _print_list(self, seq): """MathML reference for the <list> element: http://www.w3.org/TR/MathML2/chapter4.html#contm.list""" dom_element = self.dom.createElement('list') for item in seq: dom_element.appendChild(self._print(item)) return dom_element def _print_int(self, p): dom_element = self.dom.createElement(self.mathml_tag(p)) dom_element.appendChild(self.dom.createTextNode(str(p))) return dom_element def apply_patch(self): # Applying the patch of xml.dom.minidom bug # Date: 2011-11-18 # Description: http://ronrothman.com/public/leftbraned/xml-dom-minidom-\ # toprettyxml-and-silly-whitespace/#best-solution # Issue: http://bugs.python.org/issue4147 # Patch: http://hg.python.org/cpython/rev/7262f8f276ff/ from xml.dom.minidom import Element, Text, Node, _write_data def writexml(self, writer, indent="", addindent="", newl=""): # indent = current indentation # addindent = indentation to add to higher levels # newl = newline string writer.write(indent + "<" + self.tagName) attrs = self._get_attributes() a_names = list(attrs.keys()) a_names.sort() for a_name in a_names: writer.write(" %s=\"" % a_name) _write_data(writer, attrs[a_name].value) writer.write("\"") if self.childNodes: writer.write(">") if (len(self.childNodes) == 1 and self.childNodes[0].nodeType == Node.TEXT_NODE): self.childNodes[0].writexml(writer, '', '', '') else: writer.write(newl) for node in self.childNodes: node.writexml( writer, indent + addindent, addindent, newl) writer.write(indent) writer.write("</%s>%s" % (self.tagName, newl)) else: writer.write("/>%s" % (newl)) self._Element_writexml_old = Element.writexml Element.writexml = writexml def writexml(self, writer, indent="", addindent="", newl=""): _write_data(writer, "%s%s%s" % (indent, self.data, newl)) self._Text_writexml_old = Text.writexml Text.writexml = writexml def restore_patch(self): from xml.dom.minidom import Element, Text Element.writexml = self._Element_writexml_old Text.writexml = self._Text_writexml_old def mathml(expr, **settings): """Returns the MathML representation of expr""" return MathMLPrinter(settings).doprint(expr) def print_mathml(expr, **settings): """ Prints a pretty representation of the MathML code for expr Examples ======== >>> ## >>> from sympy.printing.mathml import print_mathml >>> from sympy.abc import x >>> print_mathml(x+1) #doctest: +NORMALIZE_WHITESPACE <apply> <plus/> <ci>x</ci> <cn>1</cn> </apply> """ s = MathMLPrinter(settings) xml = s._print(sympify(expr)) s.apply_patch() pretty_xml = xml.toprettyxml() s.restore_patch() print(pretty_xml)
[ "909889261@qq.com" ]
909889261@qq.com
12edb5f89ba6f2c8dd47d128a4f8ef0560c8ef34
a02ccb5dff094fad8bcd691dda234d50ff768299
/tools/Polygraphy/polygraphy/tools/surgeon/subtool/__init__.py
cc6034ccc8df9c408f916506516b9a1284fb6fba
[ "Apache-2.0", "BSD-3-Clause", "MIT", "ISC", "BSD-2-Clause" ]
permissive
NVIDIA/TensorRT
5520d5a6a5926a2b30dbdd2c5b2e4dfe6d1b429b
a167852705d74bcc619d8fad0af4b9e4d84472fc
refs/heads/release/8.6
2023-07-29T05:39:45.688091
2023-06-09T22:29:09
2023-06-09T23:04:18
184,657,328
8,026
2,096
Apache-2.0
2023-09-13T17:30:16
2019-05-02T22:02:08
C++
UTF-8
Python
false
false
183
py
from polygraphy.tools.surgeon.subtool.extract import Extract from polygraphy.tools.surgeon.subtool.insert import Insert from polygraphy.tools.surgeon.subtool.sanitize import Sanitize
[ "rajeevsrao@users.noreply.github.com" ]
rajeevsrao@users.noreply.github.com
7e4a35ad33a0da28823a458e6da9c48e4536cb0f
2da6b95fe4237cc00014f80c45d268ab62fc90cd
/DFRep/V_normweight/DFPNet.py
aa5602f8847531e9cab77d9278a61b59fd0b7a0d
[]
no_license
lvzongyao/Open-Set-Recognition-1
7e26cd1d97f67b6c075f4e64296ce7a82d479168
26a8a1cca199f4e23df98abca6893e3eef3307da
refs/heads/master
2023-08-19T09:15:16.119377
2021-09-13T04:21:18
2021-09-13T04:21:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,939
py
""" Version2: includes centroids into model, and shares embedding layers. """ import math import torch import torch.nn as nn import torch.nn.functional as F import backbones.cifar as models from Distance import Similarity, Distance class DFPNet(nn.Module): def __init__(self, backbone='ResNet18', num_classes=1000, embed_dim=512): super(DFPNet, self).__init__() self.num_classes = num_classes self.backbone_name = backbone self.backbone = models.__dict__[backbone](num_classes=num_classes, backbone_fc=False) self.feat_dim = self.get_backbone_last_layer_out_channel() # get the channel number of backbone output self.embed_dim = embed_dim self.embeddingLayer = nn.Sequential( nn.PReLU(), nn.Linear(self.feat_dim, self.feat_dim // 16, bias=False), nn.PReLU(), nn.Linear(self.feat_dim // 16, embed_dim, bias=False) ) self.centroids = nn.Parameter(torch.randn(num_classes, embed_dim)) nn.init.xavier_uniform_(self.centroids) def get_backbone_last_layer_out_channel(self): if self.backbone_name.startswith("LeNet"): return 128 * 3 * 3 last_layer = list(self.backbone.children())[-1] while (not isinstance(last_layer, nn.Conv2d)) and \ (not isinstance(last_layer, nn.Linear)) and \ (not isinstance(last_layer, nn.BatchNorm2d)): temp_layer = list(last_layer.children())[-1] if isinstance(temp_layer, nn.Sequential) and len(list(temp_layer.children())) == 0: temp_layer = list(last_layer.children())[-2] last_layer = temp_layer if isinstance(last_layer, nn.BatchNorm2d): return last_layer.num_features else: return last_layer.out_channels def forward(self, x): x = self.backbone(x) gap = (F.adaptive_avg_pool2d(x, 1)).view(x.size(0), -1) embed_fea = self.embeddingLayer(gap) embed_fea_norm = F.normalize(embed_fea, dim=1, p=2) centroids = self.centroids centroids_norm = F.normalize(centroids, dim=1, p=2) SIMI = Similarity() dotproduct_fea2cen = getattr(SIMI, "dotproduct")(embed_fea, centroids) cosine_fea2cen = getattr(SIMI, "dotproduct")(embed_fea_norm, centroids_norm) normweight_fea2cen = getattr(SIMI, "dotproduct")(embed_fea, centroids_norm) return { "gap": gap, # [n,self.feat_dim] "embed_fea": embed_fea, # [n,embed_dim] "dotproduct_fea2cen": dotproduct_fea2cen, # [n,num_classes] "cosine_fea2cen": cosine_fea2cen, # [n,num_classes] "normweight_fea2cen": normweight_fea2cen } def demo(): x = torch.rand([3, 3, 32, 32]) y = torch.rand([6, 3, 32, 32]) net = DFPNet('ResNet18', num_classes=10, embed_dim=64) output = net(x) print(output) # demo()
[ "xuma@my.unt.edu" ]
xuma@my.unt.edu
1260c5bfe4eb0011b6dd92b047da4841adfa4331
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/541081_Thread_Safe_Any_Object/recipe-541081.py
7342c9a7b3d0e8a02f39b737502226164403f75d
[ "MIT", "Python-2.0" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
557
py
class ThreadSafeObject: """ A class that makes any object thread safe. """ def __init__(self, obj): """ Initialize the class with the object to make thread safe. """ self.lock = threading.RLock() self.object = obj def __getattr__(self, attr): self.lock.acquire() def _proxy(*args, **kargs): self.lock.acquire() answer = getattr(self.object, attr)(*args, **kargs) self.lock.release() return answer return _proxy
[ "betty@qburst.com" ]
betty@qburst.com
520e49c53958f4f5cfc0c6f3582a05760870c8d6
e23a4f57ce5474d468258e5e63b9e23fb6011188
/065_serialization_and_deserialization/002_json/_exercises/_templates/Working With JSON Data in Python/002_Deserializing JSON.py
a9dc2d0a331d0f6f6e26d6388f706549a71f8fcd
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
2,865
py
# # -*- coding: utf-8 -*- # # # Deserializing JSON # # Great, looks like you’ve captured yourself some wild JSON! Now it’s time to whip it into shape. In the json library, # # you’ll find load() and loads() for turning JSON encoded data into Python objects. # # Just like serialization, there is a simple conversion table for deserialization, though you can probably guess what it # # looks like already. # # # # JSON Python # # object dict # # array list # # string str # # number (int) int # # number (real) float # # true True # # false False # # null None # # # Technically, this conversion isn’t a perfect inverse to the serialization table. That basically means that if you # # encode an object now and then decode it again later, you may not get exactly the same object back. I imagine it’s # # a bit like teleportation: break my molecules down over here and put them back together over there. Am I still # # the same person? # # In reality, it’s probably more like getting one friend to translate something into Japanese and another friend to # # translate it back into English. Regardless, the simplest example would be encoding a tuple and getting back a list # # after decoding, like so: # # # ____ ____ # blackjack_hand = (8, "Q") # encoded_hand = ____.d.. ? # decoded_hand = ____.l.. ? # # print(b.. __ d.. # # False # print(ty.. b.. # # <class 'tuple'> # print(ty.. d.. # # <class 'list'> # print(b.. __ tu.. d.. # # True # # # A Simple Deserialization Example # # This time, imagine you’ve got some data stored on disk that you’d like to manipulate in memory. You’ll still use # # the context manager, but this time you’ll open up the existing data_file.json in read mode. # # # w___ o.. data_file.json _ __ read_file # data _ ____.l.. ? # # Things are pretty straightforward here, but keep in mind that the result of this method could return any of # # the allowed data types from the conversion table. This is only important if you’re loading in data you haven’t # # seen before. In most cases, the root object will be a dict or a list. # # If you’ve pulled JSON data in from another program or have otherwise obtained a string of JSON formatted data # # in Python, you can easily deserialize that with loads(), which naturally loads from a string: # # json_string = """ # { # "researcher": { # "name": "Ford Prefect", # "species": "Betelgeusian", # "relatives": [ # { # "name": "Zaphod Beeblebrox", # "species": "Betelgeusian" # } # ] # } # } # """ # data _ ____.l.. ? # # Voilà! You’ve tamed the wild JSON, and now it’s under your control. But what you do with that power is up to you. # # You could feed it, nurture it, and even teach it tricks. It’s not that I don’t trust you…but keep it on a leash, okay?
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
27af581a2079c7dda5b2c4d90d320ba7794f88d6
47dbfa8fe684142f88eed391bab1c8049984acda
/tests/TestUtils.py
00c638d09e4fe6032802dd3333be759e324df36a
[]
no_license
fortyMiles/StanfordAlgorithmCourse
e90dea54ae12b12fbb875e1dd14a33c27af45d46
b54b0c0b8a044842bfec26f9223e5345d1176964
refs/heads/master
2021-09-03T21:34:40.598877
2018-01-12T06:14:39
2018-01-12T06:14:39
109,659,323
1
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
from utils.utils import replace_element_quickly from utils.profiler import get_running_time import random import copy running_time = 10000 @get_running_time(running_time=running_time) def original_replace_way(L, old_e, new_e): new_L = [] for i in L: if i == old_e: new_L.append(new_e) else: new_L.append(i) return new_L @get_running_time(running_time=running_time) def replace_by_list_comprehension(L, old_e, new_e): return [new_e if e == old_e else e for e in L] @get_running_time(running_time=running_time) def replace_by_map(L, old_e, new_e): return list(map(lambda x: new_e if x == old_e else x, L)) replace_element_quickly = get_running_time(running_time=running_time)(replace_element_quickly) LIST = [random.randrange(10) for _ in range(100)] LIST = original_replace_way(LIST, 2, 3) LIST = replace_by_list_comprehension(LIST, 2, 3) LIST = replace_by_map(LIST, 2, 3) assert 2 not in LIST LIST = [random.randrange(10) for _ in range(100)] assert 2 in LIST list1 = replace_element_quickly(LIST[:], 2, 3) list2 = original_replace_way(LIST, 2, 3) assert 2 not in list1 assert len(list1) == 100, len(list1) assert sorted(list1) == sorted(list2) L = [1, 2, 2, 31, 42, 12, 13, 2, 1, 2, 32, 1] print(replace_element_quickly(L[:], 2, 0)) print(L)
[ "mqgao@outlook.com" ]
mqgao@outlook.com
facbcdd42af7b3435d45b4dc1ed1b06d0273db0c
551537776448c375a073d28e55db784ee4e15679
/print_star_param_error.py
d75fdd14926f0526e9ed76475e0a321d4799e9e5
[]
no_license
shows130/python_lecture
5431ba5df2f9a0fe4162d60e05e30d1ff33c7f04
0b48ffdb5c2e7f6ada9e8290c096cb1e7cc13642
refs/heads/main
2023-04-27T00:57:52.563572
2021-05-27T08:37:33
2021-05-27T08:37:33
370,264,473
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
def print_star(n=1): # 인자를 필요로 함 for _ in range(n): print('************************') print_star() # 인자가 없으므로 에러 발생
[ "you@example.com" ]
you@example.com
ef49eb8c1c6ed480e749d0f79d1d7595b2c5a73b
27b4d1b7723845812111a0c6c659ef87c8da2755
/Fluent_Python/21_类元编程/record_factory.py
865a049828201568b3428a78e2a905618598dfef
[]
no_license
NAMEs/Python_Note
59a6eff7b4287aaef04bd69fbd4af3faf56cccb4
f560e00af37c4f22546abc4c2756e7037adcc40c
refs/heads/master
2022-04-11T09:32:17.512962
2020-03-17T09:30:58
2020-03-17T09:30:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
def record_factory(cls_name, field_names): try: field_names = field_names.replace(',', " ").split() except AttributeError: pass field_names = tuple(field_names) def __init__(self, *args, **kwargs): attrs = dict(zip(self.__slots__, args)) attrs.update(kwargs) for name, value in attrs.items(): setattr(self, name, value) def __iter__(self): for name in self.__slots__: yield getattr(self, name) def __repr__(self): values = ', '.join('{}={!r}'.format(*i) for i in zip(self.__slots__, self)) return '{}({})'.format(self.__class__.__name__, values) cls_attrs = dict( __slots__ = field_names, __init__ = __init__, __iter__ = __iter__, __repr__ = __repr__ ) return type(cls_name, (object, ), cls_attrs)
[ "1558255789@qq.com" ]
1558255789@qq.com
c9b993bd57669777535c69f78395ce1a9830a834
9b4de05054f37a65dce49857fb6a809a370b23ca
/person/migrations/0006_person_p_pic.py
83d8c588ec4bf9ffcdb1f63503bcbb531df5df3a
[]
no_license
susahe/gis
f6b03b8f23abf7ca22c0069a4cdf603bfe879808
6b8d433cd5f672994ac138c1b656136425d0c345
refs/heads/master
2021-05-12T01:50:12.862559
2018-01-27T02:25:31
2018-01-27T02:25:31
117,569,888
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
# Generated by Django 2.0 on 2017-12-24 02:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('person', '0005_auto_20171223_1730'), ] operations = [ migrations.AddField( model_name='person', name='p_pic', field=models.ImageField(blank=True, upload_to='profile_image'), ), ]
[ "sumudu.susahe@gmail.com" ]
sumudu.susahe@gmail.com
b06929bd407a91e7ab68e1dc6adc7fd2c187e252
c5744c2fda48ae6a79c155c641fe98021a0cb7f3
/PP4E/GUI/ShellGui/shellgui.py
4ed6046c52f0842dac1c08fd92c495f59e463026
[]
no_license
skinkie/Scripts
e0fd3d3f767612ade111f28bc7af3e1b25fc2947
80a1ba71ddf9a0c5ff33866832cb5c42aca0c0b1
refs/heads/master
2021-05-31T16:57:21.100919
2016-05-23T09:58:59
2016-05-23T09:58:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,378
py
#!/usr/local/bin/python """ e.g. 10-5 ########################################################################## 工具启动器, 使用guimaker模板, guimixin标准quit对话框; 本程序只是一个类库, 要显示 图形界面, 请运行mytools脚本 ########################################################################## """ from tkinter import * from PP4E.GUI.Tools.guimixin import GuiMixin from PP4E.GUI.Tools.guimaker import * class ShellGui(GuiMixin, GuiMakerWindowMenu): def start(self): self.setMenuBar() self.setToolBar() self.master.title('Shell Tools Listbox') self.master.iconname('Shell Tools') def handleList(self, event): label = self.listbox.get(ACTIVE) self.runCommand(label) def makeWidgets(self): sbar = Scrollbar(self) list = Listbox(self, bg='white') sbar.config(command=list.yview) list.config(yscrollcommand=sbar.set) sbar.pack(side=RIGHT, fill=Y) list.pack(side=LEFT, expand=YES, fill=BOTH) for (label, action) in self.fetchCommands(): list.insert(END, label) list.bind('<Double-1>', self.handleList) self.listbox = list def forToolBar(self, label): return True def setToolBar(self): self.toolBar = [] for (label, action) in self.fetchCommands(): if self.forToolBar(label): self.toolBar.append(('Quit', self.quit, dict(side=RIGHT))) def setMenuBar(self): toolEntries = [] self.menuBar = [('File', 0, [('Quit', 0, self.quit), ('Tools', 0, toolEntries)])] for (label, action) in self.fetchCommands(): toolEntries.append(label, -1, action) ########################################################################## # 针对特定模板类型的子类而设计, 后者又针对特定应用工具集的子类而设计 ########################################################################## class ListMenuGui(ShellGui): def fetchCommands(self): return self.myMenu def runCommand(self, cmd): for (label, action) in self.myMenu: if label == cmd: action() class DictMenuGui(ShellGui): def fetchCommands(self): return self.myMenu.items() def runCommand(self): self.myMenu[cmd]()
[ "death_finger@sina.com" ]
death_finger@sina.com
b99b31b7c8e48e32e1a03bf35a6111c18816fefe
3541ac16d26462977d0caf31a4c46e86a0f1371c
/virtual/bin/pip
536845ad5c0528c99dcf5626b0fcebe83df5edc7
[ "MIT" ]
permissive
billowbashir/Galleria
686b1c6c6abdbd7d5e64add36f81001d3c441055
1b2488c3e64cfaae2b80cdbae29fbdee4cab4ab8
refs/heads/master
2020-03-30T04:21:21.747881
2018-10-04T09:05:47
2018-10-04T09:05:47
150,738,776
0
0
null
null
null
null
UTF-8
Python
false
false
246
#!/home/bashir/django_gallery/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "billowbashir@gmail.com" ]
billowbashir@gmail.com
d5c5803e28de5641618f37a8118584f59e3f1c58
217c096e56f0ec9d8909bd5b3780c76f2eb75425
/gMiner/operations/desc_stat/graphs.py
45dde9ce5999357ccc1e0663c2e1316b57ae17af
[]
no_license
hjanime/gMiner
71cc846215309b7629d0920ba26301b9eb2c8406
6e4027fc56f0babe512220e5d2c64a1c91a0fd4a
refs/heads/master
2021-01-18T20:28:45.384273
2011-11-10T13:35:54
2011-11-10T13:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,656
py
""" ============================================= Submodule: gMiner.operations.desc_stat.graphs ============================================= Methos that create the 8 different plots according to the type of statistic to represent. """ # Plotting module # import matplotlib matplotlib.use('Agg', warn=False) import matplotlib.pyplot as pyplot # experimental feature: pyplot.switch_backend('Agg') # Built-in modules # import time # Internal modules # from gMiner.constants import gm_project_name, gm_default_color_parent, gm_default_color_selection, gm_default_plot_color from gMiner import common from gMiner.operations.desc_stat import gmCharacteristic ################################################################################ class gmGraph(object): def __init__(self, request, subtracks, tracks, output_dir): self.request = request self.subtracks = subtracks self.tracks = tracks self.output_dir = output_dir def generate(self): # Size variables # self.graph_width = 12.0 ideal_height = float(len(self.subtracks))/2.0 self.graph_height = min([ max([3.0, ideal_height]) , 10.0 ]) self.hjump = 0.8 self.fontsize0 = 7.0 self.fontsize1 = 9.0 self.fontsize2 = 14.0 # Chromosome check # self.chrs = list(set([subtrack.chr for subtrack in self.subtracks if subtrack.chr])) self.chrs.sort(key=common.natural_sort) if self.request['per_chromosome'] and len(self.chrs)==0: raise Exception("After processing no chromosomes are left to graph") # Type of graph # self.request['gm_graph_type'] = map(lambda x: isinstance(x,list) and 'boxplot' or 'barplot', [self.subtracks[0].stat])[0] # Empty variables # self.elements = [] self.ylabels = [] self.graph_legend = [] self.upper_left_text = False self.xlabel = '' #---------------------------# self.gen_bool_cases() self.gen_legend() self.gen_graph_title() self.gen_upper_left_text() self.gen_plot_elements() self.gen_ylabels() self.gen_xlabel() #---------------------------# # Interactive mode # # if 'gm_interactive' in self.request: pyplot.ion() # else: pyplot.ioff() # Create figure # figprops = dict(figsize=(self.graph_width, self.graph_height)) fig = pyplot.figure(**figprops) self.canvas = fig.canvas self.request['fig'] = fig # Adjust figure size # ylabels_extra_space = max([len(l[1].split('\n')[0]) for l in self.ylabels]) * (0.12 / self.graph_width) leftspace = max(0.03, min(ylabels_extra_space , 0.5)) topspace = 1.0 - ((len(self.graph_title.split('\n'))-1.0)*0.6 + 1.0) * (0.4/self.graph_height) rightspace = 1.0 - 0.4/self.graph_width bottomspace = 0.5/self.graph_height adjustprops = dict(left=leftspace, right=rightspace, bottom=bottomspace, top=topspace) fig.subplots_adjust(**adjustprops) axes = fig.add_subplot(111) # Draw all we can now # if self.graph_legend: self.graph_legend.reverse() for label in self.graph_legend: axes.plot([-1.0, -1.0], color=label[0], label=label[1]) axes.legend(prop={'size': self.fontsize2}, fancybox=True, labelspacing=0.3) axes.set_title(self.graph_title) for e in self.elements: e.plot(axes) axes.set_yticks(zip(*self.ylabels)[0]) axes.set_yticklabels(zip(*self.ylabels)[1]) axes.set_xlabel(self.xlabel) self.canvas.set_window_title('(' + gm_project_name + ') ' + self.graph_title) # Finalize plot # self.graph_max_value = e.get_max_value(self.elements) for e in self.elements: e.finalize(axes, maxval=self.graph_max_value) # Adjust axis size # legend_extra_height = 0.8 * sum([len(l[1].split('\n')) for l in self.graph_legend]) upperleft_extra_height = map(lambda x: x and 1.5 or 0.0, [self.upper_left_text])[0] extra_height = max(legend_extra_height, upperleft_extra_height) highest_value = self.graph_height + extra_height/(self.graph_height*0.25) rightmost_value = float(self.graph_max_value)*1.1 bottom_value = -0.2*self.major_ystep axes.axis([0.0, rightmost_value, bottom_value, highest_value]) # Corner texts # if self.upper_left_text: axes.annotate(self.upper_left_text,xy=(8,-38), xycoords='axes pixels', fontsize=self.fontsize1) topleftcorner = 1.0 - 0.2/self.graph_height leftcorner = 0.1/self.graph_width toprightcorner = 1.0 - 0.17/self.graph_height rightcorner = 1.0 - 0.1/self.graph_width fig.text(rightcorner, toprightcorner, time.asctime(), horizontalalignment='right', fontsize=self.fontsize0) fig.text(leftcorner, topleftcorner, gm_project_name + ' generated graph', horizontalalignment='left', fontsize=self.fontsize0) # Return a PNG # if self.request.get('output_name'): self.path = self.output_dir + '/' + self.request['output_name'] + '.png' else: self.path = self.output_dir + '/gminer_' + self.request['characteristic'] + '.png' with open(self.path, 'w') as f: fig.savefig(f, format='png', transparent=True) if not 'gm_interactive' in self.request: pyplot.close(fig) return [self.path] def gen_bool_cases(self): self.b_many = len(self.tracks) > 1 self.b_chr = self.request['per_chromosome'] self.b_comp = self.request['compare_parents'] self.b_sel = bool(self.request['selected_regions']) self.b_bar = self.request['gm_graph_type'] == 'barplot' def gen_legend(self): if self.b_comp and not self.b_bar and (not self.b_chr or not self.b_many): self.graph_legend.append([gm_default_color_parent , "Whole track"]) self.graph_legend.append([gm_default_color_selection , "Selection"]) if self.b_many and self.b_chr: for track in self.tracks: self.graph_legend.append([common.number_to_color(track.number) , track.name]) for l in self.graph_legend: l[1] = common.wrap_string(l[1], 25) self.graph_legend = [[l[0], common.wrap_string(l[1], 52)] for l in self.graph_legend] def gen_graph_title(self): self.graph_title = getattr(gmCharacteristic, self.request['characteristic']).title if not self.b_many: self.graph_title += ' of\n' if self.b_sel: self.graph_title += 'selection on ' self.graph_title += '"' + self.tracks[0].name + '"' else: if self.b_sel and not self.b_comp: self.graph_title += '\n of selection on multiple tracks' def gen_upper_left_text(self): if self.b_comp: self.upper_left_text = "Selection is compared\nagainst whole track" if self.b_comp and not self.b_bar and self.b_chr and self.b_many: self.upper_left_text = "Selection (below) is compared\nagainst whole track (above)" if self.b_comp and not self.b_bar and (not self.b_chr or not self.b_many): self.upper_left_text = False def gen_plot_elements(self): if self.b_chr:# chr: -----YES----- self.major_ystep = self.graph_height / float(len(self.chrs)) self.minor_ystep = self.major_ystep*self.hjump / float(len(self.tracks)) for i, chr in enumerate(self.chrs): for j, track in enumerate(self.tracks): tmp_subtracks = [s for s in self.subtracks if s.track == track and s.chr == chr] tmp_position = i*self.major_ystep+j*self.minor_ystep tmp_height = self.minor_ystep if self.b_many: tmp_color = common.number_to_color(track.number) else: tmp_color = gm_default_plot_color self.elements += [gmPlotElement.Factory(self.request, tmp_subtracks, tmp_position, self.minor_ystep, tmp_color)] else:# chr: -----NO----- self.major_ystep = self.graph_height / float(len(self.tracks)) for i, track in enumerate(self.tracks): if True: tmp_subtracks = [s for s in self.subtracks if s.track == track] tmp_position = i*self.major_ystep tmp_height = self.hjump self.elements += [gmPlotElement.Factory(self.request, tmp_subtracks, tmp_position, tmp_height)] def gen_ylabels(self): if self.b_chr: for i, chr in enumerate(self.chrs): self.ylabels.append([i*self.major_ystep + self.minor_ystep*len(self.tracks)*0.5, chr]) elif self.b_many: for i, track in enumerate(self.tracks): self.ylabels.append([i*self.major_ystep + self.hjump*0.5, track.name]) else: self.ylabels = [[0.0, '']] self.ylabels = [[l[0], common.wrap_string(l[1], 30)] for l in self.ylabels] def gen_xlabel(self): unit_name = getattr(gmCharacteristic, self.request['characteristic']).units self.xlabel = unit_name ########################################################################### class gmPlotElement(object): @classmethod def Factory(cls, *args): switch_var = args[0]['gm_graph_type'] switch_dict = { 'barplot': gmBarElement, 'boxplot': gmBoxElement, } try: return switch_dict[switch_var](*args) except KeyError: return cls(*args) def __init__(self, request, subtracks, position, height, color=gm_default_plot_color): self.request = request self.subtracks = subtracks self.position = position self.height = height self.color = color def finalize(self, axes, **kwargs): pass #-----------------------------------------------------------------------------# class gmBarElement(gmPlotElement): def plot(self, axes): if len(self.subtracks) == 0: self.rect = None self.name = '' return 0 if len(self.subtracks) == 2: child_stat = [s for s in self.subtracks if not s.parent][0].stat parent_stat = [s for s in self.subtracks if s.parent][0].stat if parent_stat == 0: ratio = 0 else: ratio = 100.0 * child_stat / parent_stat big_rect = axes.barh(self.position, 100.0, align='edge', height=self.height, color='gray') self.name = str(int(ratio)) + '%' self.rect = axes.barh(self.position, ratio, align='edge', height=self.height, color=self.color)[0] else: self.name = common.split_thousands(self.subtracks[0].stat) self.rect = axes.barh(self.position, self.subtracks[0].stat, align='edge', height=self.height, color=self.color)[0] @classmethod def get_max_value(cls, elements): if len(elements[0].subtracks) == 2: return 102.0 else: return max([e.rect.get_width() for e in elements if e.rect]) def finalize(self, axes, **kwargs): graph_max_value = kwargs['maxval'] if not self.rect: return 0 cutoff = float(graph_max_value)/20.0 width = self.rect.get_width() good_fontsize = 8 + self.request['fig'].get_figheight() * 0.25 yloc = self.rect.get_y() + self.rect.get_height() / 2.0 if width < cutoff: xloc = width + graph_max_value/200.0 colour = 'black' align = 'left' else: xloc = width - graph_max_value/200.0 colour = 'white' align = 'right' axes.text(xloc, yloc, self.name, horizontalalignment=align, verticalalignment='center', color=colour, weight='bold', fontsize=good_fontsize) if len(self.subtracks) == 2: axes.text(101.0, yloc, "100%", horizontalalignment='left', verticalalignment='center', color='k', weight='bold', fontsize=good_fontsize) #-----------------------------------------------------------------------------# class gmBoxElement(gmPlotElement): def plot(self, axes): self.DIQ = 0 if len(self.subtracks) == 0: self.components = None return 0 if len(self.subtracks) == 2: stat_selection = [s.stat for s in self.subtracks if not s.parent][0] if stat_selection: comp_selection = axes.boxplot(stat_selection, vert=0, positions=[self.position+self.height/2.0+0.1]) box_coord_sel = comp_selection['boxes'][0].get_xdata() diq_sel = max(box_coord_sel) - min(box_coord_sel) if not self.request['per_chromosome'] or not 'track2' in self.request: self.color = gm_default_color_selection for comp in comp_selection.items(): [pyplot.setp(line, color=self.color) for line in comp[1]] else: diq_sel = 0 stat_parent = [s.stat for s in self.subtracks if s.parent][0] if stat_parent: comp_parent = axes.boxplot(stat_parent, vert=0, positions=[self.position+self.height/2.0-0.1]) box_coord_parent = comp_parent['boxes'][0].get_xdata() diq_parent = max(box_coord_parent) - min(box_coord_parent) if not self.request['per_chromosome'] or not 'track2' in self.request: self.color = gm_default_color_parent for comp in comp_parent.items(): [pyplot.setp(line, color=self.color) for line in comp[1]] else: diq_parent = 0 self.DIQ = max([diq_parent, diq_sel]) else: stat = self.subtracks[0].stat if stat: components = axes.boxplot(stat, vert=0, positions=[self.position+self.height/2.0]) main_box_coord = components['boxes'][0].get_xdata() self.DIQ = max(main_box_coord) - min(main_box_coord) for comp in components.items(): [pyplot.setp(line, color=self.color) for line in comp[1]] def get_max_value(self, elements): maxvalue = 3.0 * max([e.DIQ for e in elements]) if maxvalue == 0: all_values = [max(subtrack.stat) for e in elements for subtrack in e.subtracks if subtrack.stat] if all_values: return max(all_values) return maxvalue #-----------------------------------# # This code was written by the BBCF # # http://bbcf.epfl.ch/ # # webmaster.bbcf@epfl.ch # #-----------------------------------#
[ "lucas.sinclair@me.com" ]
lucas.sinclair@me.com
53d67ff92bd610c4d6a221c9495e62e5de801d5a
55eda01bdcbda99f72cfdf0b29afb5ea36756873
/arxiv/kdgan/trials/nobatch/metric.py
26dbe61e3471dd57fefde1c7ec66fffc0b6eedfc
[]
no_license
yyht/KDGAN
7489a0ca1a2f044b6bcb7cd8bb0d6f2dae1da5e7
8f1367d242d7d174bf5bb2740aa18e3846d7b521
refs/heads/master
2020-05-16T08:36:18.872239
2019-01-12T04:17:31
2019-01-12T04:17:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,632
py
import numpy as np def compute_score(logits, labels, cutoff, normalize): predictions = np.argsort(-logits, axis=1)[:,:cutoff] batch_size, _ = labels.shape scores = [] for batch in range(batch_size): label_bt = labels[batch,:] label_bt = np.nonzero(label_bt)[0] prediction_bt = predictions[batch,:] num_label = len(label_bt) present = 0 for label in label_bt: if label in prediction_bt: present += 1 score = present if score > 0: score *= (1.0 / normalize(cutoff, num_label)) # print('score={0:.4f}'.format(score)) scores.append(score) score = np.mean(scores) return score def compute_hit(logits, labels, cutoff): def normalize(cutoff, num_label): return min(cutoff, num_label) hit = compute_score(logits, labels, cutoff, normalize) # print('hit={0:.4f}'.format(hit)) return hit def compute_rec(logits, labels, cutoff): def normalize(cutoff, num_label): return num_label rec = compute_score(logits, labels, cutoff, normalize) # print('rec={0:.4f}'.format(rec)) return rec def main(): logits = np.log([ [0.1, 0.2, 0.3, 0.4], [0.1, 0.2, 0.3, 0.4], [0.1, 0.2, 0.3, 0.4], [0.1, 0.2, 0.3, 0.4], ]) labels = np.asarray([ [0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 1, 1], [1, 1, 1, 0], ], dtype=np.int32) cutoff = 2 hit = compute_hit(logits, labels, cutoff) rec = compute_rec(logits, labels, cutoff) print('hit={0:.4f} rec={1:.4f}'.format(hit, rec)) if __name__ == '__main__': main()
[ "xiaojiew1@student.unimelb.edu.au" ]
xiaojiew1@student.unimelb.edu.au
e8a09f86b623cf02de12091486b33e265ff24e0d
d71530db7c7b2635473c3351b5098139a413bc32
/model/decode_np.py
953645ade827c333dcc594773bad0fa9d685fc56
[]
no_license
joshuazm/Keras-YOLOv4
e35c7db3a23ea5b16e989d8546b2ebf180720cb9
eebf631ef01a559d27bfa1f401052895550ba559
refs/heads/master
2022-08-08T07:51:06.402201
2020-05-20T23:55:07
2020-05-20T23:55:07
265,715,364
1
0
null
2020-05-21T00:25:23
2020-05-21T00:25:22
null
UTF-8
Python
false
false
9,650
py
# -*- coding: utf-8 -*- import random import colorsys import cv2 import time import os import keras import numpy as np import keras.layers as layers from model.yolov4 import YOLOv4 class Decode(object): def __init__(self, obj_threshold, nms_threshold, input_shape, model_path, file_path): self._t1 = obj_threshold self._t2 = nms_threshold self.input_shape = input_shape self.all_classes = self.get_classes(file_path) self.num_classes = len(self.all_classes) self.num_anchors = 3 inputs = layers.Input(shape=(None, None, 3)) self._yolo = YOLOv4(inputs, self.num_classes, self.num_anchors) self._yolo.load_weights(model_path, by_name=True) # 处理一张图片 def detect_image(self, image): pimage = self.process_image(np.copy(image)) start = time.time() boxes, scores, classes = self.predict(pimage, image.shape) print('time: {0:.6f}s'.format(time.time() - start)) if boxes is not None: self.draw(image, boxes, scores, classes) return image # 处理视频 def detect_video(self, video): video_path = os.path.join("videos", "test", video) camera = cv2.VideoCapture(video_path) cv2.namedWindow("detection", cv2.WINDOW_AUTOSIZE) # Prepare for saving the detected video sz = (int(camera.get(cv2.CAP_PROP_FRAME_WIDTH)), int(camera.get(cv2.CAP_PROP_FRAME_HEIGHT))) fourcc = cv2.VideoWriter_fourcc(*'mpeg') vout = cv2.VideoWriter() vout.open(os.path.join("videos", "res", video), fourcc, 20, sz, True) while True: res, frame = camera.read() if not res: break image = self.detect_image(frame) cv2.imshow("detection", image) # Save the video frame by frame vout.write(image) if cv2.waitKey(110) & 0xff == 27: break vout.release() camera.release() def get_classes(self, file): with open(file) as f: class_names = f.readlines() class_names = [c.strip() for c in class_names] return class_names def draw(self, image, boxes, scores, classes): image_h, image_w, _ = image.shape # 定义颜色 hsv_tuples = [(1.0 * x / self.num_classes, 1., 1.) for x in range(self.num_classes)] colors = list(map(lambda x: colorsys.hsv_to_rgb(*x), hsv_tuples)) colors = list(map(lambda x: (int(x[0] * 255), int(x[1] * 255), int(x[2] * 255)), colors)) random.seed(0) random.shuffle(colors) random.seed(None) for box, score, cl in zip(boxes, scores, classes): x0, y0, x1, y1 = box left = max(0, np.floor(x0 + 0.5).astype(int)) top = max(0, np.floor(y0 + 0.5).astype(int)) right = min(image.shape[1], np.floor(x1 + 0.5).astype(int)) bottom = min(image.shape[0], np.floor(y1 + 0.5).astype(int)) bbox_color = colors[cl] # bbox_thick = 1 if min(image_h, image_w) < 400 else 2 bbox_thick = 1 cv2.rectangle(image, (left, top), (right, bottom), bbox_color, bbox_thick) bbox_mess = '%s: %.2f' % (self.all_classes[cl], score) t_size = cv2.getTextSize(bbox_mess, 0, 0.5, thickness=1)[0] cv2.rectangle(image, (left, top), (left + t_size[0], top - t_size[1] - 3), bbox_color, -1) cv2.putText(image, bbox_mess, (left, top - 2), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 0), 1, lineType=cv2.LINE_AA) def training_transform(self, height, width, output_height, output_width): height_scale, width_scale = output_height / height, output_width / width scale = min(height_scale, width_scale) resize_height, resize_width = round(height * scale), round(width * scale) pad_top = (output_height - resize_height) // 2 pad_left = (output_width - resize_width) // 2 A = np.float32([[scale, 0.0], [0.0, scale]]) B = np.float32([[pad_left], [pad_top]]) M = np.hstack([A, B]) return M, output_height, output_width def process_image(self, img): img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) h, w = img.shape[:2] M, h_out, w_out = self.training_transform(h, w, self.input_shape[0], self.input_shape[1]) # 填充黑边缩放 letterbox = cv2.warpAffine(img, M, (w_out, h_out)) pimage = np.float32(letterbox) / 255. pimage = np.expand_dims(pimage, axis=0) return pimage def predict(self, image, shape): start = time.time() outs = self._yolo.predict(image) print('\ndarknet time: {0:.6f}s'.format(time.time() - start)) # numpy后处理 start = time.time() a1 = np.reshape(outs[0], (1, self.input_shape[0]//32, self.input_shape[1]//32, 3, 5+self.num_classes)) a2 = np.reshape(outs[1], (1, self.input_shape[0]//16, self.input_shape[1]//16, 3, 5+self.num_classes)) a3 = np.reshape(outs[2], (1, self.input_shape[0]//8, self.input_shape[1]//8, 3, 5+self.num_classes)) boxes, scores, classes = self._yolo_out([a1, a2, a3], shape) print('post process time: {0:.6f}s'.format(time.time() - start)) return boxes, scores, classes def _sigmoid(self, x): return 1 / (1 + np.exp(-x)) def _process_feats(self, out, anchors, mask): grid_h, grid_w, num_boxes = map(int, out.shape[1: 4]) anchors = [anchors[i] for i in mask] anchors_tensor = np.array(anchors).reshape(1, 1, len(anchors), 2) # Reshape to batch, height, width, num_anchors, box_params. out = out[0] box_xy = self._sigmoid(out[..., :2]) box_wh = np.exp(out[..., 2:4]) box_wh = box_wh * anchors_tensor box_confidence = self._sigmoid(out[..., 4]) box_confidence = np.expand_dims(box_confidence, axis=-1) box_class_probs = self._sigmoid(out[..., 5:]) col = np.tile(np.arange(0, grid_w), grid_w).reshape(-1, grid_w) row = np.tile(np.arange(0, grid_h).reshape(-1, 1), grid_h) col = col.reshape(grid_h, grid_w, 1, 1).repeat(3, axis=-2) row = row.reshape(grid_h, grid_w, 1, 1).repeat(3, axis=-2) grid = np.concatenate((col, row), axis=-1) box_xy += grid box_xy /= (grid_w, grid_h) box_wh /= self.input_shape box_xy -= (box_wh / 2.) boxes = np.concatenate((box_xy, box_wh), axis=-1) return boxes, box_confidence, box_class_probs def _filter_boxes(self, boxes, box_confidences, box_class_probs): box_scores = box_confidences * box_class_probs box_classes = np.argmax(box_scores, axis=-1) box_class_scores = np.max(box_scores, axis=-1) pos = np.where(box_class_scores >= self._t1) boxes = boxes[pos] classes = box_classes[pos] scores = box_class_scores[pos] return boxes, classes, scores def _nms_boxes(self, boxes, scores): x = boxes[:, 0] y = boxes[:, 1] w = boxes[:, 2] h = boxes[:, 3] areas = w * h order = scores.argsort()[::-1] keep = [] while order.size > 0: i = order[0] keep.append(i) xx1 = np.maximum(x[i], x[order[1:]]) yy1 = np.maximum(y[i], y[order[1:]]) xx2 = np.minimum(x[i] + w[i], x[order[1:]] + w[order[1:]]) yy2 = np.minimum(y[i] + h[i], y[order[1:]] + h[order[1:]]) w1 = np.maximum(0.0, xx2 - xx1 + 1) h1 = np.maximum(0.0, yy2 - yy1 + 1) inter = w1 * h1 ovr = inter / (areas[i] + areas[order[1:]] - inter) inds = np.where(ovr <= self._t2)[0] order = order[inds + 1] keep = np.array(keep) return keep def _yolo_out(self, outs, shape): masks = [[6, 7, 8], [3, 4, 5], [0, 1, 2]] anchors = [[12, 16], [19, 36], [40, 28], [36, 75], [76, 55], [72, 146], [142, 110], [192, 243], [459, 401]] boxes, classes, scores = [], [], [] for out, mask in zip(outs, masks): b, c, s = self._process_feats(out, anchors, mask) b, c, s = self._filter_boxes(b, c, s) boxes.append(b) classes.append(c) scores.append(s) boxes = np.concatenate(boxes) classes = np.concatenate(classes) scores = np.concatenate(scores) # Scale boxes back to original image shape. h, w = self.input_shape iw, ih = shape[1], shape[0] scale = min(w / iw, h / ih) nw = int(iw * scale) nh = int(ih * scale) dx = (w - nw) / (2*scale) dy = (h - nh) / (2*scale) sc = max(iw, ih) image_dims = [sc, sc, sc, sc] dd = [dx, dy, 0, 0] boxes = boxes * image_dims - dd nboxes, nclasses, nscores = [], [], [] for c in set(classes): inds = np.where(classes == c) b = boxes[inds] c = classes[inds] s = scores[inds] keep = self._nms_boxes(b, s) nboxes.append(b[keep]) nclasses.append(c[keep]) nscores.append(s[keep]) if not nclasses and not nscores: return None, None, None boxes = np.concatenate(nboxes) classes = np.concatenate(nclasses) scores = np.concatenate(nscores) # 换坐标 boxes[:, [2, 3]] = boxes[:, [0, 1]] + boxes[:, [2, 3]] return boxes, scores, classes
[ "53960695+miemie2013@users.noreply.github.com" ]
53960695+miemie2013@users.noreply.github.com
83dd947d41a89af655f1f3fb6aa74965019bf8c2
9cc76b1b1dd0064ab6613cbca6ce93bc179db355
/ros_ws/build/learning_ros/Part_2/lidar_alarm/catkin_generated/pkg.develspace.context.pc.py
e0b46158886e263efb8a7494036a7a51db3b4004
[]
no_license
ABCaps35/learning_ros_ready_ws
1131c32b2ecadffa8dd186c9ebcfdba7284f30ad
1aa9c512d5006584e8bc84101a715e16a222a47d
refs/heads/main
2023-04-03T20:32:58.671255
2021-04-13T23:41:13
2021-04-13T23:41:13
357,715,306
1
0
null
null
null
null
UTF-8
Python
false
false
405
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;std_msgs".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "lidar_alarm" PROJECT_SPACE_DIR = "/home/abcaps35/ros_ws_nogit/devel" PROJECT_VERSION = "0.0.0"
[ "acapelli345@gmail.com" ]
acapelli345@gmail.com
55d3863597c6b206e5cdb3d151e7c33a8e4cc987
41dc19883789f45b6086399a1ae23995f53b4b2c
/bayesian-stats-modelling-tutorial/notebooks/utils.py
2b57dbc6659cd9441d8abca762dae681d5171176
[ "MIT" ]
permissive
sunny2309/scipy_conf_notebooks
f86179ddcd67168b709c755cc01862ed7c9ab2bd
30a85d5137db95e01461ad21519bc1bdf294044b
refs/heads/master
2022-10-28T17:27:42.717171
2021-01-25T02:24:05
2021-01-25T02:24:05
221,385,814
2
0
MIT
2022-10-20T02:55:20
2019-11-13T06:12:07
Jupyter Notebook
UTF-8
Python
false
false
492
py
import numpy as np def ECDF(data): """Compute ECDF for a one-dimensional array of measurements.""" # Number of data points n = len(data) # x-data for the ECDF x = np.sort(data) # y-data for the ECDF y = np.arange(1, n+1) / n return x, y def despine(ax): ax.spines['right'].set_visible(False) ax.spines['top'].set_visible(False) def despine_traceplot(traceplot): for row in traceplot: for ax in row: despine(ax)
[ "sunny.2309@yahoo.in" ]
sunny.2309@yahoo.in
e96a9e2d544fe3df65de440760a2510d46864deb
a8042cb7f6a4daec26b8cea6b7da2cb7cb880a84
/997_FindtheTownJudge.py
3d35d0d8a85d7fad9c59f1adab8826c33b289454
[]
no_license
renukadeshmukh/Leetcode_Solutions
0108edf6c5849946623a75c2dfd57cbf9bb338e4
1211eac167f33084f536007468ea10c1a0ceab08
refs/heads/master
2022-11-10T20:48:42.108834
2022-10-18T07:24:36
2022-10-18T07:24:36
80,702,452
3
0
null
null
null
null
UTF-8
Python
false
false
1,824
py
''' 997. Find the Town Judge In a town, there are N people labelled from 1 to N. There is a rumor that one of these people is secretly the town judge. If the town judge exists, then: The town judge trusts nobody. Everybody (except for the town judge) trusts the town judge. There is exactly one person that satisfies properties 1 and 2. You are given trust, an array of pairs trust[i] = [a, b] representing that the person labelled a trusts the person labelled b. If the town judge exists and can be identified, return the label of the town judge. Otherwise, return -1. Example 1: Input: N = 2, trust = [[1,2]] Output: 2 Example 2: Input: N = 3, trust = [[1,3],[2,3]] Output: 3 Example 3: Input: N = 3, trust = [[1,3],[2,3],[3,1]] Output: -1 Example 4: Input: N = 3, trust = [[1,2],[2,3]] Output: -1 Example 5: Input: N = 4, trust = [[1,3],[1,4],[2,3],[2,4],[4,3]] Output: 3 Note: 1 <= N <= 1000 trust.length <= 10000 trust[i] are all different trust[i][0] != trust[i][1] 1 <= trust[i][0], trust[i][1] <= N ''' ''' ALGORITHM: 1. Maintain 2 lists degree and flag 2. for each pair <trustee, trusted>, mark flag[trustee] = -1 as he cannot be the judge inc count of degree[trusted] 3. If for some i, flag[i] != -1 and degree[i] == N-1, return i as judge 4. else return -1 RUNTIME COMPLEXITY: O(N) SPACE COMPLEXITY: O(N) ''' from collections import defaultdict class Solution(object): def findJudge(self, N, trust): """ :type N: int :type trust: List[List[int]] :rtype: int """ degree = [0] * (1+N) flag = [0] * (1+N) for a,b in trust: flag[a] = -1 degree[b] += 1 for i in range(1, N+1): if degree[i] == N-1 and flag[i] != -1: return i return -1
[ "renud1988@gmail.com" ]
renud1988@gmail.com
b7fd323fcc803b1f893482e9a3dfdda684488089
35a2a3f5fa6573c32e411d399a60e6f67ae51556
/example/fcn-xs/solver.py
cf7298b83c8c69283950847701c0c82c30e9b383
[ "Apache-2.0", "BSD-2-Clause-Views", "Zlib", "BSD-2-Clause", "BSD-3-Clause", "Intel", "LicenseRef-scancode-proprietary-license", "CC-BY-NC-4.0" ]
permissive
TuSimple/mxnet
21c1b8fedd1a626cb57189f33ee5c4b2b382fd79
4cb69b85b4db8e1492e378c6d1a0a0a07bd737fb
refs/heads/master
2021-01-09T07:59:24.301512
2019-07-27T00:56:52
2019-07-27T00:56:52
53,660,918
33
47
Apache-2.0
2019-07-27T01:09:17
2016-03-11T10:56:36
Python
UTF-8
Python
false
false
7,190
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # pylint: skip-file import numpy as np import mxnet as mx import time import logging from collections import namedtuple from mxnet import optimizer as opt from mxnet.optimizer import get_updater from mxnet import metric # Parameter to pass to batch_end_callback BatchEndParam = namedtuple('BatchEndParams', ['epoch', 'nbatch', 'eval_metric']) class Solver(object): def __init__(self, symbol, ctx=None, begin_epoch=0, num_epoch=None, arg_params=None, aux_params=None, optimizer='sgd', **kwargs): self.symbol = symbol if ctx is None: ctx = mx.cpu() self.ctx = ctx self.begin_epoch = begin_epoch self.num_epoch = num_epoch self.arg_params = arg_params self.aux_params = aux_params self.optimizer = optimizer self.kwargs = kwargs.copy() def fit(self, train_data, eval_data=None, eval_metric='acc', grad_req='write', epoch_end_callback=None, batch_end_callback=None, kvstore='local', logger=None): if logger is None: logger = logging logging.info('Start training with %s', str(self.ctx)) arg_shapes, out_shapes, aux_shapes = self.symbol.infer_shape(data=train_data.provide_data[0][1]) arg_names = self.symbol.list_arguments() if grad_req != 'null': self.grad_params = {} for name, shape in zip(arg_names, arg_shapes): if not (name.endswith('data') or name.endswith('label')): self.grad_params[name] = mx.nd.zeros(shape, self.ctx) else: self.grad_params = None aux_names = self.symbol.list_auxiliary_states() self.aux_params = {k : nd.zeros(s) for k, s in zip(aux_names, aux_shapes)} data_name = train_data.data_name label_name = train_data.label_name input_names = [data_name, label_name] self.optimizer = opt.create(self.optimizer, rescale_grad=(1.0/train_data.get_batch_size()), **(self.kwargs)) self.updater = get_updater(self.optimizer) eval_metric = metric.create(eval_metric) # begin training for epoch in range(self.begin_epoch, self.num_epoch): nbatch = 0 train_data.reset() eval_metric.reset() for data in train_data: nbatch += 1 label_shape = data[label_name].shape self.arg_params[data_name] = mx.nd.array(data[data_name], self.ctx) self.arg_params[label_name] = mx.nd.array(data[label_name].reshape(label_shape[0], \ label_shape[1]*label_shape[2]), self.ctx) output_names = self.symbol.list_outputs() self.exector = self.symbol.bind(self.ctx, self.arg_params, args_grad=self.grad_params, grad_req=grad_req, aux_states=self.aux_params) assert len(self.symbol.list_arguments()) == len(self.exector.grad_arrays) update_dict = {name: nd for name, nd in zip(self.symbol.list_arguments(), \ self.exector.grad_arrays) if nd is not None} output_dict = {} output_buff = {} for key, arr in zip(self.symbol.list_outputs(), self.exector.outputs): output_dict[key] = arr output_buff[key] = mx.nd.empty(arr.shape, ctx=mx.cpu()) self.exector.forward(is_train=True) for key in output_dict: output_dict[key].copyto(output_buff[key]) self.exector.backward() for key, arr in update_dict.items(): if key != "bigscore_weight": self.updater(key, arr, self.arg_params[key]) pred_shape = self.exector.outputs[0].shape label = mx.nd.array(data[label_name].reshape(label_shape[0], label_shape[1]*label_shape[2])) pred = mx.nd.array(output_buff["softmax_output"].asnumpy().reshape(pred_shape[0], \ pred_shape[1], pred_shape[2]*pred_shape[3])) eval_metric.update([label], [pred]) self.exector.outputs[0].wait_to_read() batch_end_params = BatchEndParam(epoch=epoch, nbatch=nbatch, eval_metric=eval_metric) batch_end_callback(batch_end_params) if epoch_end_callback is not None: epoch_end_callback(epoch, self.symbol, self.arg_params, self.aux_params) name, value = eval_metric.get() logger.info(" --->Epoch[%d] Train-%s=%f", epoch, name, value) # evaluation if eval_data: logger.info(" in eval process...") nbatch = 0 eval_data.reset() eval_metric.reset() for data in eval_data: nbatch += 1 label_shape = data[label_name].shape self.arg_params[data_name] = mx.nd.array(data[data_name], self.ctx) self.arg_params[label_name] = mx.nd.array(data[label_name].reshape(label_shape[0], \ label_shape[1]*label_shape[2]), self.ctx) exector = self.symbol.bind(self.ctx, self.arg_params, args_grad=self.grad_params, grad_req=grad_req, aux_states=self.aux_params) cpu_output_array = mx.nd.zeros(exector.outputs[0].shape) exector.forward(is_train=False) exector.outputs[0].copyto(cpu_output_array) pred_shape = cpu_output_array.shape label = mx.nd.array(data[label_name].reshape(label_shape[0], \ label_shape[1]*label_shape[2])) pred = mx.nd.array(cpu_output_array.asnumpy().reshape(pred_shape[0], \ pred_shape[1], pred_shape[2]*pred_shape[3])) eval_metric.update([label], [pred]) exector.outputs[0].wait_to_read() name, value = eval_metric.get() logger.info('batch[%d] Validation-%s=%f', nbatch, name, value)
[ "piiswrong@users.noreply.github.com" ]
piiswrong@users.noreply.github.com
416a5be967979ccd729bd346dbadfa91fc98de62
bebba3fb1dfc13a2220f06997c4bc8da42ef8e87
/smashlib/ipy3x/nbconvert/exporters/pdf.py
873282d02c0808d0c87c8868da6db44206a5ad4e
[ "MIT" ]
permissive
mattvonrocketstein/smash
b48b93c3419637f615c7ac3386b04ae756e1fadc
98acdc27ab72ca80d9a7f63a54c0d52f126a8009
refs/heads/master
2021-01-18T23:23:59.340206
2016-07-14T01:28:17
2016-07-14T01:28:17
2,813,958
2
1
null
null
null
null
UTF-8
Python
false
false
5,514
py
"""Export to PDF via latex""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import subprocess import os import sys from IPython.utils.traitlets import Integer, List, Bool, Instance from IPython.utils.tempdir import TemporaryWorkingDirectory from .latex import LatexExporter class PDFExporter(LatexExporter): """Writer designed to write to PDF files""" latex_count = Integer(3, config=True, help="How many times latex will be called." ) latex_command = List([u"pdflatex", u"{filename}"], config=True, help="Shell command used to compile latex." ) bib_command = List([u"bibtex", u"{filename}"], config=True, help="Shell command used to run bibtex." ) verbose = Bool(False, config=True, help="Whether to display the output of latex commands." ) temp_file_exts = List(['.aux', '.bbl', '.blg', '.idx', '.log', '.out'], config=True, help="File extensions of temp files to remove after running." ) writer = Instance("IPython.nbconvert.writers.FilesWriter", args=()) def run_command(self, command_list, filename, count, log_function): """Run command_list count times. Parameters ---------- command_list : list A list of args to provide to Popen. Each element of this list will be interpolated with the filename to convert. filename : unicode The name of the file to convert. count : int How many times to run the command. Returns ------- success : bool A boolean indicating if the command was successful (True) or failed (False). """ command = [c.format(filename=filename) for c in command_list] # In windows and python 2.x there is a bug in subprocess.Popen and # unicode commands are not supported if sys.platform == 'win32' and sys.version_info < (3, 0): # We must use cp1252 encoding for calling subprocess.Popen # Note that sys.stdin.encoding and encoding.DEFAULT_ENCODING # could be different (cp437 in case of dos console) command = [c.encode('cp1252') for c in command] times = 'time' if count == 1 else 'times' self.log.info( "Running %s %i %s: %s", command_list[0], count, times, command) with open(os.devnull, 'rb') as null: stdout = subprocess.PIPE if not self.verbose else None for index in range(count): p = subprocess.Popen(command, stdout=stdout, stdin=null) out, err = p.communicate() if p.returncode: if self.verbose: # verbose means I didn't capture stdout with PIPE, # so it's already been displayed and `out` is None. out = u'' else: out = out.decode('utf-8', 'replace') log_function(command, out) return False # failure return True # success def run_latex(self, filename): """Run pdflatex self.latex_count times.""" def log_error(command, out): self.log.critical(u"%s failed: %s\n%s", command[0], command, out) return self.run_command(self.latex_command, filename, self.latex_count, log_error) def run_bib(self, filename): """Run bibtex self.latex_count times.""" filename = os.path.splitext(filename)[0] def log_error(command, out): self.log.warn('%s had problems, most likely because there were no citations', command[0]) self.log.debug(u"%s output: %s\n%s", command[0], command, out) return self.run_command(self.bib_command, filename, 1, log_error) def clean_temp_files(self, filename): """Remove temporary files created by pdflatex/bibtex.""" self.log.info("Removing temporary LaTeX files") filename = os.path.splitext(filename)[0] for ext in self.temp_file_exts: try: os.remove(filename + ext) except OSError: pass def from_notebook_node(self, nb, resources=None, **kw): latex, resources = super(PDFExporter, self).from_notebook_node( nb, resources=resources, **kw ) with TemporaryWorkingDirectory() as td: notebook_name = "notebook" tex_file = self.writer.write( latex, resources, notebook_name=notebook_name) self.log.info("Building PDF") rc = self.run_latex(tex_file) if not rc: rc = self.run_bib(tex_file) if not rc: rc = self.run_latex(tex_file) pdf_file = notebook_name + '.pdf' if not os.path.isfile(pdf_file): raise RuntimeError("PDF creating failed") self.log.info('PDF successfully created') with open(pdf_file, 'rb') as f: pdf_data = f.read() # convert output extension to pdf # the writer above required it to be tex resources['output_extension'] = '.pdf' return pdf_data, resources
[ "matthewvonrocketstein@gmail-dot-com" ]
matthewvonrocketstein@gmail-dot-com
baad1ea61ddcc627ef3a4d33fe866a8b0fce5db7
a11aa2be20ccc0c814153e7f17813f412c8a3d45
/tests/testapp/settings.py
d96ff9bf0456cd192716dbc6f613ad51f00dd48c
[ "BSD-3-Clause" ]
permissive
Jiaming1999/django-beam
32e80ab3472fc5aa25b79dabdb21080e89804bdc
cba5874bfef414e65051c2534cf03c772a4da98c
refs/heads/master
2023-08-16T04:59:20.479734
2021-10-25T13:18:30
2021-10-25T13:18:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}} INSTALLED_APPS = [ "beam", "beam.themes.bootstrap4", "testapp", "crispy_forms", "django.contrib.contenttypes", # "django.contrib.admin", "django.contrib.sessions", "django.contrib.auth", # contrib.reversion "reversion", "beam.contrib.reversion", # contrib.autocomplete_light "dal", "beam.contrib.autocomplete_light", "dal_select2", "django_filters", ] SECRET_KEY = "secret_key_for_testing" ROOT_URLCONF = "testapp.urls" MIDDLEWARE = [ "django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", ] TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [], "APP_DIRS": True, "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ] }, } ] STATIC_URL = "/static/"
[ "raphael.kimmig@ampad.de" ]
raphael.kimmig@ampad.de
ea6fd4211b60f7aa09852c2f5c2444edc83a6746
7dc979ea076e825b9237da7564c30ea1008ddbe6
/manage.py
5693d5e00241ccb0bd86d7ea8aa62a06859e674b
[]
no_license
rudiq4/rozetka
3bf8a730c16703d2780496cdd81847f225de7f75
9c2064adb3dfa99234609637e2564cc1221960b0
refs/heads/master
2022-12-14T13:33:04.024608
2020-04-23T19:49:49
2020-04-23T19:49:49
240,709,760
0
0
null
2022-12-08T03:39:10
2020-02-15T12:45:38
HTML
UTF-8
Python
false
false
627
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rozetka.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv) if __name__ == '__main__': main()
[ "rudikvovan@gmail.com" ]
rudikvovan@gmail.com
cc17a773ede83ac3e9cf349ec624f77af64bc738
b53141494618cd6c1bc96960f9a6026257f9fbb3
/packaging/setup/plugins/ovirt-engine-setup/apache/selinux.py
6cd9eb057f0264cc12be97b40dcb50745ffdbcb0
[ "Apache-2.0" ]
permissive
SunOfShine/ovirt-engine
b97454017c86e7729265dc70bbf58f1d0319c560
7684597e2d38ff854e629e5cbcbb9f21888cb498
refs/heads/master
2020-12-30T19:23:27.311186
2013-05-13T20:36:58
2013-06-09T09:42:14
10,784,897
1
0
null
null
null
null
UTF-8
Python
false
false
2,213
py
# # ovirt-engine-setup -- ovirt engine setup # Copyright (C) 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # """Selinux plugin.""" import gettext _ = lambda m: gettext.dgettext(message=m, domain='ovirt-engine-setup') from otopi import util from otopi import plugin from ovirt_engine_setup import constants as osetupcons @util.export class Plugin(plugin.PluginBase): """Selinux plugin.""" def __init__(self, context): super(Plugin, self).__init__(context=context) self._enabled = True @plugin.event( stage=plugin.Stages.STAGE_SETUP, ) def _setup(self): self.command.detect('semanage') self._enabled = not self.environment[ osetupcons.CoreEnv.DEVELOPER_MODE ] @plugin.event( stage=plugin.Stages.STAGE_VALIDATION, condition=lambda self: self._enabled, ) def _validation(self): if self.command.get('semanage', optional=True) is None: self._enabled = False @plugin.event( stage=plugin.Stages.STAGE_MISC, condition=lambda self: self._enabled, ) def _misc(self): command = ( self.command.get('semanage'), 'boolean', '--modify', '--on', 'httpd_can_network_connect', ) rc, stdout, stderr = self.execute( command, raiseOnError=False, ) if rc != 0: self.logger.warning( _( 'Failed to modify httpd selinux context, please make ' 'sure httpd_can_network_connect is set.' ) ) # vim: expandtab tabstop=4 shiftwidth=4
[ "gerrit2@gerrit.ovirt.org" ]
gerrit2@gerrit.ovirt.org
fd2e282016d51faca7f03108af89b284f4cec396
72764f01185c872daa7519f919511f6a49ecf94e
/Basic_App/models.py
767c729f46a33c3a0bfbb4f0dbfc8704c8a39866
[]
no_license
Alan-thapa98/Online-Shopping-master
9df018293d42e08060f72f0c3d566fb2de5ce30a
6de6552edc67495e9902154f83a73b2a7c759f7b
refs/heads/master
2023-06-25T06:10:39.141935
2021-07-30T16:06:20
2021-07-30T16:06:20
391,121,088
1
0
null
null
null
null
UTF-8
Python
false
false
2,104
py
from django.db import models # Create your models here. class home(models.Model): author=models.ForeignKey('auth.User',on_delete=models.CASCADE) title=models.CharField(max_length=200) price=models.FloatField() image=models.ImageField(upload_to='media/home') details=models.TextField() posted_on=models.DateTimeField(null=True,blank=True) def get_absolute_url(self): return reverse('Basic_App:product', kwargs={'pk': self.pk}) def image_url(self): if self.image and hasattr(self.image,'url'): return self.image.url def __str__(self): return self.title class Categori(models.Model): Category=models.CharField(max_length=200) def __str__(self): return self.Category class Shop(models.Model): Category=models.CharField(max_length=200) title=models.ForeignKey('home',on_delete=models.CASCADE) price=models.FloatField() image=models.ImageField(upload_to='media/shop') details=models.TextField() posted_on=models.DateTimeField(null=True,blank=True) def get_absolute_url(self): return reverse('Basic_App:shopproduct', kwargs={'pk': self.pk}) def image_url(self): if self.image and hasattr(self.image,'url'): return self.image.url def __str__(self): return self.Category #class Product(models.Model): class Checkout(models.Model): fname=models.CharField(max_length=100) lname=models.CharField(max_length=100) c_name=models.CharField(max_length=100) email=models.EmailField() d=[("1","Bangladesh"), ("2","India"), ("3","Mayanmar"), ("4","Soudi Arabia"), ("5","Pakistan"), ("6","Canada"), ("7","Malaysia"), ("8","China"), ("9","US"), ("10","UK"), ('11','Other'), ] states=models.CharField(max_length=200,choices=d) address=models.CharField(max_length=200) town=models.CharField(max_length=200) zipcode=models.PositiveIntegerField() phone_number=models.IntegerField() comment=models.TextField() def __str__(self): return self.email
[ "alanthapa98.gmail.com" ]
alanthapa98.gmail.com
5909d464cdf9b56d9f67865e413a18d52700f581
56ca0c81e6f8f984737f57c43ad8d44a84f0e6cf
/src/raport_slotow/tests/test_views/test_raport_slotow_autor.py
b3c12f85003d3d7324d8ec69c4f9edd627a7b676
[ "MIT" ]
permissive
iplweb/bpp
c40f64c78c0da9f21c1bd5cf35d56274a491f840
a3d36a8d76733a479e6b580ba6ea57034574e14a
refs/heads/dev
2023-08-09T22:10:49.509079
2023-07-25T04:55:54
2023-07-25T04:55:54
87,017,024
2
0
NOASSERTION
2023-03-04T04:02:36
2017-04-02T21:22:20
Python
UTF-8
Python
false
false
439
py
from django.urls import reverse def test_RaportSlotow_get_pdf(admin_app, autor_jan_kowalski): url = reverse("raport_slotow:index") form_page = admin_app.get(url) form_page.forms[0]["obiekt"].force_value(autor_jan_kowalski.pk) raport_page = form_page.forms[0].submit().maybe_follow() pdf_page = raport_page.click("pobierz PDF") assert pdf_page.status_code == 200 assert pdf_page.content[:8] == b"%PDF-1.7"
[ "michal.dtz@gmail.com" ]
michal.dtz@gmail.com
366ba960d296aa971689f7a44844442e3718aa6e
5f58ceeffe080fabda0ad7ef30e2f04acc233271
/demo/plugins/file_ops/template.py
24bbac6eaa6a0961698fbf8c68a54cb32ca40595
[]
no_license
EDRN/jpl.pipedreams
a9c9f2b25260ffe5a18b1ae12f6a5f08894f1533
ecbdb280d25d123e9a7a0dcb505ceec40eaf047e
refs/heads/main
2023-08-25T08:48:14.265406
2021-10-26T18:45:13
2021-10-26T18:45:13
380,337,383
0
0
null
2021-07-02T19:06:51
2021-06-25T19:35:26
Python
UTF-8
Python
false
false
876
py
# encoding: utf-8 from jpl.pipedreams.plugins_ops import Plugin class Template(Plugin): def __init__(self): super().__init__() self.description = 'for basic file ops' def get_bytes(self, *args, **kwargs): raise NotImplementedError def read_str(self, *args, **kwargs): raise NotImplementedError def get_file_size(self, *args, **kwargs): raise NotImplementedError def isfile(self, *args, **kwargs): raise NotImplementedError def isdir(self, *args, **kwargs): raise NotImplementedError def exists(self, *args, **kwargs): raise NotImplementedError def dir_walk(self, *args, **kwargs): raise NotImplementedError def download(self, *args, **kwargs): raise NotImplementedError def search_file(self, *args, **kwargs): raise NotImplementedError
[ "kelly@seankelly.biz" ]
kelly@seankelly.biz
e8d31cd5c24ee547db03c38c29d1f4d6cc81f24e
b8062e01860960131b37e27298b6b755b4191f5f
/cplusplus/contrib/HandWrite/presenterserver/hand_write/src/config_parser.py
d047e6c703f5801d764c9cb6b4588929bc61f180
[ "Apache-2.0" ]
permissive
RomanGaraev/samples
4071fcbe6bf95cf274576665eb72588568d8bcf2
757aac75a0f3921c6d1b4d98599bd7d4ffda936b
refs/heads/master
2023-07-16T02:17:36.640036
2021-08-30T15:14:05
2021-08-30T15:14:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,434
py
# ======================================================================= # # Copyright (C) 2018, Hisilicon Technologies Co., Ltd. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1 Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # 2 Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # 3 Neither the names of the copyright holders nor the names of the # contributors may be used to endorse or promote products derived from this # software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # ======================================================================= # import os import configparser import common.parameter_validation as validate class ConfigParser(): """ parse configuration from the config.conf""" __instance = None def __init__(self): """init""" def __new__(cls): """ensure class object is a single instance""" if cls.__instance is None: cls.__instance = object.__new__(cls) cls.config_parser() return cls.__instance def config_verify(self): '''Verify configuration Parameters ''' if not validate.validate_ip(ConfigParser.web_server_ip) or \ not validate.validate_ip(ConfigParser.presenter_server_ip) or \ not validate.validate_port(ConfigParser.web_server_port) or \ not validate.validate_port(ConfigParser.presenter_server_port): return False return True @classmethod def config_parser(cls): """parser config from config.conf""" config_parser = configparser.ConfigParser() cls.root_path = ConfigParser.get_rootpath() config_file = os.path.join(cls.root_path, "config/config.conf") config_parser.read(config_file) cls.web_server_ip = config_parser.get('baseconf', 'web_server_ip') cls.presenter_server_ip = \ config_parser.get('baseconf', 'presenter_server_ip') cls.web_server_port = config_parser.get('baseconf', 'web_server_port') cls.presenter_server_port = \ config_parser.get('baseconf', 'presenter_server_port') @staticmethod def get_rootpath(): """get presenter server's root directory.""" path = __file__ idx = path.rfind("src") return path[0:idx]
[ "derek.qian.wang@huawei.com" ]
derek.qian.wang@huawei.com
2af78ce0a40eda8b75a944402af2b657dc3a437d
8c45e306209f4560309374828042819e6e5ddfc5
/Visual-IDE/Model/models.py
dc8c4b9ff539aa4560a8ea76ad88bb2c4f1463cc
[]
no_license
franklingu/Visual-IDE
2ee2640c2c98ecf076d7b925d1095ff565433673
9f2acc4283044aa3ea77a3fd01e5edad79e4ea10
refs/heads/master
2020-05-18T11:52:53.978165
2014-11-10T03:51:40
2014-11-10T03:51:40
24,674,470
0
1
null
2014-10-26T07:09:07
2014-10-01T10:33:16
JavaScript
UTF-8
Python
false
false
2,289
py
from google.appengine.ext import db class SavedProject(db.Model): user_email = db.EmailProperty() project_title = db.StringProperty() project_content = db.TextProperty() created_at = db.DateTimeProperty(auto_now_add=True) class DbManager(object): def __init__(self): super(DbManager, self).__init__() @classmethod def get_saved_project_titles_for_user(cls, user_email): if user_email is None: return None query_results = db.GqlQuery("SELECT * FROM SavedProject WHERE user_email = :1", user_email) titles_list = [] for item in query_results: titles_list.append(item.project_title) return titles_list @classmethod def get_saved_project_for_user(cls, user_email, project_title): if user_email is None or project_title is None: return None query_results = db.GqlQuery("SELECT * FROM SavedProject WHERE user_email = :1 AND project_title = :2", user_email, project_title).get() return query_results @classmethod def save_project(cls, user_email, project_title, project_content): if user_email is None or project_title is None or project_content is None: return False query_result = db.GqlQuery("SELECT * FROM SavedProject WHERE user_email = :1 AND project_title = :2", user_email, project_title).get() if query_result: query_result.project_content = project_content query_result.put() else: project = SavedProject() project.user_email = user_email project.project_title = project_title project.project_content = project_content project.put() return True @classmethod def delete_project(cls, user_email, project_title): if user_email is None or project_title is None: return False query_results = db.GqlQuery("SELECT * FROM SavedProject WHERE user_email = :1 AND project_title = :2", user_email, project_title) if query_results: for item in query_results: item.delete() else: pass return True
[ "franklingujunchao@gmail.com" ]
franklingujunchao@gmail.com
da20ae6db24880030b45ad77229b59f4fa7c4a86
e1a7d00dbe27403427078c627ccebe1562a6049d
/mercury/model/clients/client/shortcut.py
1a7b319d0fa32f71dae07a4b75a8087cd3ed2d88
[ "Apache-2.0" ]
permissive
greenlsi/mercury_mso_framework
f24fc167230057bb07b7de5dc9fbb10490293fee
cb425605de3341d27ce43fb326b300cb8ac781f6
refs/heads/master
2023-04-28T02:18:16.362823
2023-04-18T12:03:23
2023-04-18T12:03:23
212,610,400
2
1
Apache-2.0
2023-03-02T14:36:56
2019-10-03T15:12:32
Python
UTF-8
Python
false
false
2,301
py
from mercury.msg.packet import AppPacket, NetworkPacket, PhysicalPacket, PacketInterface from mercury.msg.packet.app_packet.acc_packet import AccessPacket from mercury.msg.packet.app_packet.srv_packet import SrvPacket from typing import Generic, Type from ...common import ExtendedAtomic from xdevs.models import Port class Shortcut(ExtendedAtomic, Generic[PacketInterface]): def __init__(self, p_type: Type[PacketInterface], client_id: str): if p_type not in [AppPacket, NetworkPacket]: raise ValueError(f'Invalid value for p_type ({p_type})') super().__init__(f'client_{client_id}_shortcut') self.p_type: Type[PacketInterface] = p_type self.input_data: Port[PacketInterface] = Port(p_type, 'input_data') self.input_phys_pss: Port[PhysicalPacket] = Port(PhysicalPacket, 'input_phys_pss') self.output_data_acc: Port[PacketInterface] = Port(p_type, 'output_data_acc') self.output_data_srv: Port[PacketInterface] = Port(p_type, 'output_data_srv') self.output_app_pss: Port[AppPacket] = Port(AppPacket, 'output_app_pss') self.add_in_port(self.input_data) self.add_in_port(self.input_phys_pss) self.add_out_port(self.output_data_acc) self.add_out_port(self.output_data_srv) self.add_out_port(self.output_app_pss) def deltint_extension(self): self.passivate() def deltext_extension(self, e): for msg in self.input_data.values: app = msg if isinstance(msg, AppPacket) else msg.data if isinstance(msg.data, AppPacket) else msg.data.data if isinstance(app, AccessPacket): self.add_msg_to_queue(self.output_data_acc, msg) elif isinstance(app, SrvPacket): self.add_msg_to_queue(self.output_data_srv, msg) for phys_msg in self.input_phys_pss.values: phys_msg.receive(self._clock) phys_msg.data.receive(self._clock) app_msg = phys_msg.data.data app_msg.snr = phys_msg.snr self.add_msg_to_queue(self.output_app_pss, app_msg) self.passivate() if self.msg_queue_empty() else self.activate() def lambdaf_extension(self): pass def initialize(self): self.passivate() def exit(self): pass
[ "rcardenas.rod@gmail.com" ]
rcardenas.rod@gmail.com
c3b35eec240bedc549d923ed1619303e89db9956
bd75c7ec55b78ef189f57596520744f82ec73073
/Restore IP Addresses.py
982bfe59424d2b68d11b0afcfdc62100bfe8524f
[]
no_license
GaoLF/LeetCode-PY
17058ac0743403292559f9b83a20bf79d89e33f6
ccd294cfe0c228a21518d077d1aa01e510930ea3
refs/heads/master
2021-01-23T02:24:05.940132
2015-07-22T13:44:01
2015-07-22T13:44:01
38,248,471
0
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
#coding=utf-8 class Solution: # @param {string} s # @return {string[]} def restoreIpAddresses(self, s): res = [] self.solve(s,0,0,res,"") return res # 几点注意事项:当位数太多或者太少,都不能组成 # 当第一个数是0的时候,只能当0 def solve(self,s,i,begin,res,string): size = len(s) if (size - begin) < 1*(4 - i): return if (size - begin) > 3*(4 - i): return if i == 3: num = int(s[begin:size]) if num > 255: return else: if s[begin:begin+1] == '0' and begin + 1 < size: return res.append(string + s[begin:size]) else: if s[begin:begin+1] == '0': #string = string + '0.' self.solve(s,i+1,begin+1,res,string + '0.') #string = string[0:begin] else: for j in range(3): if begin + j + 1 < size: num = int(s[begin:begin+j+1]) # print num if num < 256: #string = string + (str(num)+'.') self.solve(s,i+1,begin+j+1,res,string + (str(num)+'.')) #string = string[0:begin] A = Solution() print A.restoreIpAddresses("25525511135") print A.restoreIpAddresses("010010")
[ "gaolongfei@pku.edu.cn" ]
gaolongfei@pku.edu.cn
7adc594346e952c66be110d2560704c21d224bf0
acd41dc7e684eb2e58b6bef2b3e86950b8064945
/res/packages/scripts/scripts/common/Lib/plat-irix5/panel.py
c46a1d28e7c386cfb3ca4cdfbf0af379ca3e165d
[]
no_license
webiumsk/WoT-0.9.18.0
e07acd08b33bfe7c73c910f5cb2a054a58a9beea
89979c1ad547f1a1bbb2189f5ee3b10685e9a216
refs/heads/master
2021-01-20T09:37:10.323406
2017-05-04T13:51:43
2017-05-04T13:51:43
90,268,530
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
5,364
py
# 2017.05.04 15:33:49 Střední Evropa (letní čas) # Embedded file name: scripts/common/Lib/plat-irix5/panel.py from warnings import warnpy3k warnpy3k('the panel module has been removed in Python 3.0', stacklevel=2) del warnpy3k import pnl debug = 0 def is_list(x): return type(x) == type([]) def reverse(list): res = [] for item in list: res.insert(0, item) return res def getattrlist(list, name): for item in list: if item and is_list(item) and item[0] == name: return item[1:] return [] def getproplist(list, name): for item in list: if item and is_list(item) and item[0] == 'prop': if len(item) > 1 and item[1] == name: return item[2:] return [] def is_endgroup(list): x = getproplist(list, 'end-of-group') return x and x[0] == '#t' def show_actuator(prefix, a): for item in a: if not is_list(item): print prefix, item elif item and item[0] == 'al': print prefix, 'Subactuator list:' for a in item[1:]: show_actuator(prefix + ' ', a) elif len(item) == 2: print prefix, item[0], '=>', item[1] elif len(item) == 3 and item[0] == 'prop': print prefix, 'Prop', item[1], '=>', print item[2] else: print prefix, '?', item def show_panel(prefix, p): for item in p: if not is_list(item): print prefix, item elif item and item[0] == 'al': print prefix, 'Actuator list:' for a in item[1:]: show_actuator(prefix + ' ', a) elif len(item) == 2: print prefix, item[0], '=>', item[1] elif len(item) == 3 and item[0] == 'prop': print prefix, 'Prop', item[1], '=>', print item[2] else: print prefix, '?', item panel_error = 'panel error' def dummy_callback(arg): pass def assign_members(target, attrlist, exclist, prefix): for item in attrlist: if is_list(item) and len(item) == 2 and item[0] not in exclist: name, value = item[0], item[1] ok = 1 if value[0] in '-0123456789': value = eval(value) elif value[0] == '"': value = value[1:-1] elif value == 'move-then-resize': ok = 0 else: print 'unknown value', value, 'for', name ok = 0 if ok: lhs = 'target.' + prefix + name stmt = lhs + '=' + repr(value) if debug: print 'exec', stmt try: exec stmt + '\n' except KeyboardInterrupt: raise KeyboardInterrupt except: print 'assign failed:', stmt def build_actuator(descr): namelist = getattrlist(descr, 'name') if namelist: actuatorname = namelist[0][1:-1] else: actuatorname = '' type = descr[0] if type[:4] == 'pnl_': type = type[4:] act = pnl.mkact(type) act.downfunc = act.activefunc = act.upfunc = dummy_callback assign_members(act, descr[1:], ['al', 'data', 'name'], '') datalist = getattrlist(descr, 'data') prefix = '' if type[-4:] == 'puck': prefix = 'puck_' elif type == 'mouse': prefix = 'mouse_' assign_members(act, datalist, [], prefix) return (act, actuatorname) def build_subactuators(panel, super_act, al): for a in al: act, name = build_actuator(a) act.addsubact(super_act) if name: stmt = 'panel.' + name + ' = act' if debug: print 'exec', stmt exec stmt + '\n' if is_endgroup(a): panel.endgroup() sub_al = getattrlist(a, 'al') if sub_al: build_subactuators(panel, act, sub_al) super_act.fixact() def build_panel(descr): if not descr or descr[0] != 'panel': raise panel_error, 'panel description must start with "panel"' if debug: show_panel('', descr) panel = pnl.mkpanel() assign_members(panel, descr[1:], ['al'], '') al = getattrlist(descr, 'al') al = reverse(al) for a in al: act, name = build_actuator(a) act.addact(panel) if name: stmt = 'panel.' + name + ' = act' exec stmt + '\n' if is_endgroup(a): panel.endgroup() sub_al = getattrlist(a, 'al') if sub_al: build_subactuators(panel, act, sub_al) return panel def my_dopanel(): a, down, active, up = pnl.dopanel()[:4] if down: down.downfunc(down) if active: active.activefunc(active) if up: up.upfunc(up) return a def defpanellist(file): import panelparser descrlist = panelparser.parse_file(open(file, 'r')) panellist = [] for descr in descrlist: panellist.append(build_panel(descr)) return panellist from pnl import * dopanel = my_dopanel # okay decompyling C:\Users\PC\wotmods\files\originals\res\packages\scripts\scripts\common\Lib\plat-irix5\panel.pyc # decompiled 1 files: 1 okay, 0 failed, 0 verify failed # 2017.05.04 15:33:49 Střední Evropa (letní čas)
[ "info@webium.sk" ]
info@webium.sk
5bf80d863d186f3a1ae4e7423084819ebb3e22d2
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/277/85229/submittedfiles/testes.py
d4013f6e86810a783d2c7133b2a748973ae519a1
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
from minha_bib import * nota1 = ler_inteiro() nota2 = ler_inteiro_msg('minha msg de input aqui: ') print (media(nota1,nota2)) """ while(True): while(True): n = int(input("Digite um numero inteiro positivo: ")) if (n >= 0) : break f = 1 for i in range(2,n+1,1) : f *= i print("%d! = %d" % (n,f)) opt = input("Deseja continuar? [S ou N] ") if (opt == 'N') : print("\n\nATE BREVE!") break """ """ # DEFINI A FUNCAO def fatorial(n) : f = 1 for i in range(2,n+1,1) : f *= i return f # VOU USAR while(True): while(True): n = int(input("Digite um numero inteiro positivo: ")) if (n >= 0) : break fat = fatorial(n) print("%d! = %d" % (n,f)) opt = input("Deseja continuar? [S ou N] ") if (opt == 'N') : print("\n\nATE BREVE!") break """
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
b27fbb843467b18be113187788bfa1fff7bf50fa
786de89be635eb21295070a6a3452f3a7fe6712c
/InterfaceCtlr/tags/V01-00-25/web/icws/config/middleware.py
1c5036406ef9ec4f50474a412cfbaa7cf56be1dc
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,060
py
"""Pylons middleware initialization""" from beaker.middleware import CacheMiddleware, SessionMiddleware from paste.cascade import Cascade from paste.registry import RegistryManager from paste.urlparser import StaticURLParser from paste.deploy.converters import asbool from pylons import config from pylons.middleware import ErrorHandler, StatusCodeRedirect from pylons.wsgiapp import PylonsApp from routes.middleware import RoutesMiddleware from icws.config.environment import load_environment class _MyApp(PylonsApp): """ Subclass of PylonsApp which returns text/plain message when resource is not found instead of html document. """ def dispatch(self, controller, environ, start_response): if not controller: body = "Resource '%s' does not exist" % environ.get('REQUEST_URI') headers = [('Content-Type', 'text/plain; charset=utf8'), ('Content-Length', str(len(body)))] start_response("404 Not Found", headers) return [body] else: return PylonsApp.dispatch(self, controller, environ, start_response) def make_app(global_conf, full_stack=True, static_files=True, **app_conf): """Create a Pylons WSGI application and return it ``global_conf`` The inherited configuration for this application. Normally from the [DEFAULT] section of the Paste ini file. ``full_stack`` Whether this application provides a full WSGI stack (by default, meaning it handles its own exceptions and errors). Disable full_stack when this application is "managed" by another WSGI middleware. ``static_files`` Whether this application serves its own static files; disable when another web server is responsible for serving them. ``app_conf`` The application's local configuration. Normally specified in the [app:<name>] section of the Paste ini file (where <name> defaults to main). """ # Configure the Pylons environment load_environment(global_conf, app_conf) # The Pylons WSGI app app = _MyApp() # Routing/Session/Cache Middleware app = RoutesMiddleware(app, config['routes.map']) app = SessionMiddleware(app, config) app = CacheMiddleware(app, config) # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) if asbool(full_stack): # Handle Python exceptions app = ErrorHandler(app, global_conf, **config['pylons.errorware']) # Display error documents for 401, 403, 404 status codes (and # 500 when debug is disabled) if asbool(config['debug']): app = StatusCodeRedirect(app) else: app = StatusCodeRedirect(app, [400, 401, 403, 404, 500]) # Establish the Registry for this application app = RegistryManager(app) if asbool(static_files): # Serve static files static_app = StaticURLParser(config['pylons.paths']['static_files']) app = Cascade([static_app, app]) return app
[ "salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7" ]
salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7
3282930d830eed41d2bc689235584f254e71ee95
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/smartfault/ruleinst.py
d20ec0c3006f9d3a6d4fdad3c8dd8f61fa79d5e6
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
6,289
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.mit.meta import StatsClassMeta from cobra.mit.meta import CounterMeta from cobra.mit.meta import PropMeta from cobra.mit.meta import Category from cobra.mit.meta import SourceRelationMeta from cobra.mit.meta import NamedSourceRelationMeta from cobra.mit.meta import TargetRelationMeta from cobra.mit.meta import DeploymentPathMeta, DeploymentCategory from cobra.model.category import MoCategory, PropCategory, CounterCategory from cobra.mit.mo import Mo # ################################################## class RuleInst(Mo): """ Mo doc not defined in techpub!!! """ meta = ClassMeta("cobra.model.smartfault.RuleInst") meta.moClassName = "smartfaultRuleInst" meta.rnFormat = "ruleinst-[%(key)s]" meta.category = MoCategory.REGULAR meta.label = "Rule Instance" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = False meta.childClasses.add("cobra.model.smartfault.RuleSubject") meta.childNamesAndRnPrefix.append(("cobra.model.smartfault.RuleSubject", "rulesubject-")) meta.parentClasses.add("cobra.model.smartfault.RuleDef") meta.rnPrefixes = [ ('ruleinst-', True), ] prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "createdTs", "createdTs", 50200, PropCategory.REGULAR) prop.label = "Creation Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("createdTs", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "key", "key", 50196, PropCategory.REGULAR) prop.label = "Name" prop.isConfig = True prop.isAdmin = True prop.isCreateOnly = True prop.isNaming = True prop.range = [(1, 512)] meta.props.add("key", prop) prop = PropMeta("str", "lastTransitionTs", "lastTransitionTs", 50199, PropCategory.REGULAR) prop.label = "Last Transition Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("lastTransitionTs", prop) prop = PropMeta("str", "lc", "lc", 50201, PropCategory.REGULAR) prop.label = "Lifecycle" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "unknown" prop._addConstant("raised", "raised", 2) prop._addConstant("raised-clearing", "raised,-clearing", 8) prop._addConstant("retaining", "retaining", 16) prop._addConstant("soaking", "soaking", 1) prop._addConstant("soaking-clearing", "soaking,-clearing", 4) prop._addConstant("unknown", "unknown", 0) meta.props.add("lc", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "message", "message", 50197, PropCategory.REGULAR) prop.label = "Name" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("message", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "name", "name", 50195, PropCategory.REGULAR) prop.label = "Name" prop.isImplicit = True prop.isAdmin = True prop.range = [(0, 512)] meta.props.add("name", prop) prop = PropMeta("str", "occur", "occur", 50202, PropCategory.REGULAR) prop.label = "Occurance" prop.isImplicit = True prop.isAdmin = True meta.props.add("occur", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "severity", "severity", 50198, PropCategory.REGULAR) prop.label = "Severity" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 1 prop.defaultValueStr = "info" prop._addConstant("cleared", "cleared", 0) prop._addConstant("critical", "critical", 5) prop._addConstant("info", "info", 1) prop._addConstant("major", "major", 4) prop._addConstant("minor", "minor", 3) prop._addConstant("warning", "warning", 2) meta.props.add("severity", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) meta.namingProps.append(getattr(meta.props, "key")) getattr(meta.props, "key").needDelimiter = True def __init__(self, parentMoOrDn, key, markDirty=True, **creationProps): namingVals = [key] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) # End of package file # ##################################################
[ "bkhoward@live.com" ]
bkhoward@live.com
cc84edf7c53698b41332e6856bf4369aa93221e1
d04d3eec289376e7682403af2f32044b3991d27b
/10 - Exams/ExamPrepF-7.py
50cd7a3f8f1c1ea3e3e759d4d225b6f5c7855296
[]
no_license
m-evtimov96/softUni-python-fundamentals
190002dbc6196211340126814e8ed4fce3b8a07f
817a44a3d78130d37e58facfc7bcfdc8af5f4051
refs/heads/master
2020-12-10T12:45:27.847764
2020-06-23T13:09:43
2020-06-23T13:09:43
233,598,519
0
0
null
null
null
null
UTF-8
Python
false
false
1,297
py
username = input() while True: input_line = input() if input_line == "Sign up": break input_line = input_line.split() command = input_line[0] if command == "Case": case_type = input_line[1] if case_type == "lower": username = username.lower() elif case_type == "upper": username = username.upper() print(username) elif command == "Reverse": start = int(input_line[1]) end = int(input_line[2]) if 0 <= start <= len(username) and 0 <= end <= len(username) and end > start: print("".join(reversed(username[start:end+1]))) elif command == "Cut": string_to_check = input_line[1] if string_to_check in username: username = username.replace(string_to_check, "") print(username) else: print(f"The word {username} doesn't contain {string_to_check}.") elif command == "Replace": char_to_replace = input_line[1] username = username.replace(char_to_replace, "*") print(username) elif command == "Check": char_to_check = input_line[1] if char_to_check in username: print("Valid") else: print(f"Your username must contain {char_to_check}.")
[ "m.evtimov196@gmail.com" ]
m.evtimov196@gmail.com
9972224be353e26764302da53393a31f7934be5e
09934eefaada5f1b8048215f0cda4083a60d9091
/lib/chy506r/api/__init__.py
3b37fd3b4360536c2fc1b0a68f5cbaae8cb8685b
[ "MIT" ]
permissive
ztmir/chy506r
2b531b0858fb8b6dc43b873a19d998e29598eac5
10121baa70765b1a53b0d576dc11660bb3dd725a
refs/heads/master
2021-04-06T06:41:32.448764
2018-03-14T22:03:02
2018-03-14T22:03:02
125,049,662
0
1
null
null
null
null
UTF-8
Python
false
false
153
py
# -*- coding: utf8 -*- from .. import util util.import_all_from(__package__, [ '.chy506r_', '.plotter_', ]) # vim: set ft=python et ts=4 sw=4:
[ "ptomulik@meil.pw.edu.pl" ]
ptomulik@meil.pw.edu.pl
75ca3880c6086aa02177d3ed1095647dfcb4d588
4c44cd6df77589a43f3ad0527f11cb1842d09a3b
/scout/commands/download/__init__.py
0a3aa793b4ad154f031c752f26f847deaf1b5eef
[ "BSD-3-Clause" ]
permissive
Clinical-Genomics/scout
b2118a06a534917734ed8575a3bd252691fbf3e4
1e6a633ba0a83495047ee7b66db1ebf690ee465f
refs/heads/main
2023-09-04T06:50:31.518288
2023-09-01T13:33:40
2023-09-01T13:33:40
25,027,539
143
64
BSD-3-Clause
2023-09-14T05:49:33
2014-10-10T08:44:01
HTML
UTF-8
Python
false
false
39
py
from .download_command import download
[ "mans.magnusson@scilifelab.se" ]
mans.magnusson@scilifelab.se
5a16a541e0ff8f2ea18cba1a2dc332b762134f5e
2ecca33f7b934c69ab5383a24dd820b01bdc3617
/tests/people_test.py
50681da4ac429468e8b1b544ab0567a9b6677255
[]
no_license
mentalclear/tau-api-testing-python
b2ff6e1e541e351385ea813faba8f0528749bca9
5648a70e4089c455b7d7322fd3d4a8324d7d1dcb
refs/heads/master
2023-07-15T00:21:44.093476
2021-08-31T12:08:50
2021-08-31T12:08:50
397,907,679
0
0
null
null
null
null
UTF-8
Python
false
false
3,976
py
import requests from assertpy.assertpy import assert_that from json import dumps, loads from config import BASE_URI from utils.print_helpers import pretty_print from uuid import uuid4 import pytest import random from utils.file_reader import read_file from jsonpath_ng import parse def test_read_all_has_kent(): response_text, response = get_all_users() pretty_print(response_text) assert_that(response.status_code).is_equal_to(200) first_names = [people['fname'] for people in response_text] # assert_that(first_names).contains('Kent') # Same option with assertpy extracting the first name from the response assert_that(response_text).extracting('fname').contains('Kent') def test_new_person_can_be_added(): unique_last_name = create_new_unique_user() people = requests.get(BASE_URI).json() is_new_user_created = filter(lambda person: person['lname'] == unique_last_name, people) assert_that(is_new_user_created).is_true() def test_person_can_be_deleted(): new_user_last_name = create_new_unique_user() all_users, _ = get_all_users() new_user = search_user_by_last_name(all_users, new_user_last_name)[0] print(new_user) person_to_be_deleted = new_user['person_id'] url = f'{BASE_URI}/{person_to_be_deleted}' response= requests.delete(url) assert_that(response.status_code).is_equal_to(200) def create_new_unique_user(): unique_last_name = f'User {str(uuid4())}' payload = dumps({ 'fname': 'New', 'lname': unique_last_name }) headers = { 'Content-Type': 'application/json', 'Accept': 'application/json' } response = requests.post(url=BASE_URI, data=payload, headers=headers) assert_that(response.status_code).is_equal_to(204) return unique_last_name def get_all_users(): response = requests.get(BASE_URI) response_text = response.json() return response_text, response def search_user_by_last_name(response_text, last_name): return [person for person in response_text if person['lname'] == last_name] @pytest.fixture def create_data(): payload = read_file('create_person.json') random_no = random.randint(0, 1000) last_name = f'Olabini{random_no}' payload['lname'] = last_name yield payload def test_person_can_be_added_with_a_json_template(create_data): create_person_with_unique_last_name(create_data) response = requests.get(BASE_URI) peoples = loads(response.text) # Get all last names for any object in the root array # Here $ = root, [*] represents any element in the array # Read full syntax: https://pypi.org/project/jsonpath-ng/ jsonpath_expr = parse("$.[*].lname") result = [match.value for match in jsonpath_expr.find(peoples)] expected_last_name = create_data['lname'] assert_that(result).contains(expected_last_name) def create_person_with_unique_last_name(body=None): if body is None: # Ensure a user with a unique last name is created everytime the test runs # Note: json.dumps() is used to convert python dict to json string unique_last_name = f'User {str(uuid4())}' payload = dumps({ 'fname': 'New', 'lname': unique_last_name }) else: unique_last_name = body['lname'] payload = dumps(body) # Setting default headers to show that the client accepts json # And will send json in the headers headers = { 'Content-Type': 'application/json', 'Accept': 'application/json' } # We use requests.post method with keyword params to make the request more readable response = requests.post(url=BASE_URI, data=payload, headers=headers) assert_that(response.status_code, description='Person not created').is_equal_to(requests.codes.no_content) return unique_last_name def search_created_user_in(peoples, last_name): return [person for person in peoples if person['lname'] == last_name]
[ "mentalclear@gmail.com" ]
mentalclear@gmail.com
d6c7d16d2e4f6624fb2f38f6d4de4b2af9ff0a13
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/138/usersdata/164/53382/submittedfiles/volumeTV.py
3b3527168f49c2e6a7820c671bc7ad0039a79cef
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
v=int(input('Digite o volume inicial: ')) t=int(input('Digite quantas vezes houve a troca de volume: ')) volume=0 for i in range (1, t+1, 1): a=int(input('Digite a modificação do volume: ')) while (0<volume<100): volume=v=a print(volume)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
ddfb388db7ce08f39b58b80d878e30f9f5ea59aa
a22ca8cd5e434a28677e8f21c2afc6f32359a675
/rentomatic-master/rentomatic/rest/storageroom.py
34d8627fd4dff69ead4f716952960338c877d344
[ "MIT" ]
permissive
wangdan25/rentomatic
34cc78b73a894bae8e6a990cdf7d9a839d57980d
2931a4f5ff8727b4e20c89004609aacd181f161c
refs/heads/master
2022-06-21T05:35:37.306044
2020-05-13T04:05:26
2020-05-13T04:05:26
263,348,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,783
py
import json from flask import Blueprint, request, Response from rentomatic.use_cases import request_objects as req from rentomatic.shared import response_object as res from rentomatic.repository import memrepo as mr from rentomatic.use_cases import storageroom_use_cases as uc from rentomatic.serializers import storageroom_serializer as ser blueprint = Blueprint('storageroom', __name__) STATUS_CODES = { res.ResponseSuccess.SUCCESS: 200, res.ResponseFailure.RESOURCE_ERROR: 404, res.ResponseFailure.PARAMETERS_ERROR: 400, res.ResponseFailure.SYSTEM_ERROR: 500 } storageroom1 = { 'code': 'f853578c-fc0f-4e65-81b8-566c5dffa35a', 'size': 215, 'price': 39, 'longitude': -0.09998975, 'latitude': 51.75436293, } storageroom2 = { 'code': 'fe2c3195-aeff-487a-a08f-e0bdc0ec6e9a', 'size': 405, 'price': 66.5, 'longitude': 0.18228006, 'latitude': 51.74640997, } storageroom3 = { 'code': '913694c6-435a-4366-ba0d-da5334a611b2', 'size': 56, 'price': 60, 'longitude': 0.27891577, 'latitude': 51.45994069, } @blueprint.route('/storagerooms', methods=['GET']) def storageroom(): qrystr_params = { 'filters': {}, } for arg, values in request.args.items(): if arg.startswith('filter_'): qrystr_params['filters'][arg.replace('filter_', '')] = values request_object = req.StorageRoomListRequestObject.from_dict(qrystr_params) repo = mr.MemRepo([storageroom1, storageroom2, storageroom3]) use_case = uc.StorageRoomListUseCase(repo) response = use_case.execute(request_object) return Response(json.dumps(response.value, cls=ser.StorageRoomEncoder), mimetype='application/json', status=STATUS_CODES[response.type])
[ "you@example.com" ]
you@example.com
fb742151862b0bda3389cc7b8b8bd9e6948ccb69
8630c0a928f1e112b7cb67f2cab8ce212a231063
/unhelpful/robinhood.py
1cd653f36e7debfa6620df557d62510dfc6a0a56
[ "MIT" ]
permissive
lockefox/unhelpful-stockbot
4958201bc925ff6e00dfe0c170574aa27fb07329
d0d8a282788843c6a5b4065681a1542be432e8bb
refs/heads/master
2023-05-28T08:00:45.646039
2019-09-22T19:37:58
2019-09-22T19:37:58
197,688,810
0
0
MIT
2023-05-22T22:28:14
2019-07-19T02:36:41
Python
UTF-8
Python
false
false
4,253
py
"""utilities for collecting stock quotes from Robinhood""" import os import pkgutil import logging import requests from . import exceptions from .utilities import get_config class RobinhoodConnection: """contextmanater for handling authenticated feeds from Robinhood Args: username (str): Robinhood Username password (str): Robinhood Password client_id (str): Robinhood client_id for oAuth """ def __init__(self, username, password, client_id=''): self._client_id = client_id if not self._client_id: self._client_id = 'c82SH0WZOsabOXGP2sxqcj34FxkvfnWRZBKlBjFS' self._username = username self._password = password self.auth_token = '' self.refresh_token = '' def get(self, endpoint, params=dict(), headers=dict()): """fetch data from endpoint Args: endpoint (str): what endpoint to fetch data from params (dict): params for requests headers (dict): headers for requests Returns: dict: requests.json() output Raises: requests.RequestException: connection/http errors RobinhoodNoLogin: lacking login credentials """ if not any([self.auth_token, self.refresh_token]): raise exceptions.RobinhoodNoLogin headers = {**headers, 'Authorization': f'Bearer {self.auth_token}'} req = requests.get( f'{get_config("ROBINHOOD", "root")}/{endpoint}', params=params, headers=headers ) req.raise_for_status() return req.json() def __enter__(self): req = requests.post( f'{get_config("ROBINHOOD", "root")}/{get_config("ROBINHOOD", "oauth_endpoint")}', params=dict( grant_type='password', client_id=self._client_id, username=self._username, password=self._password, ), ) req.raise_for_status() self.auth_token = req.json()['access_token'] self.refresh_token = req.json()['refresh_token'] return self def __exit__(self, *exc): req = requests.post( f'{get_config("ROBINHOOD", "root")}/{get_config("ROBINHOOD", "logout_endpoint")}', data=dict(client_id=self._client_id, token=self.refresh_token), ) req.raise_for_status() def get_price(ticker, client, endpoint=get_config("ROBINHOOD", "quotes_endpoint")): """generate a stock quote from Robinhood Args: ticker (str): stock ticker client (:obj:`RobinhoodConnection`): connection context endpoint (str): path to Returns: float: todo Raises: requests.RequestException: Unable to connect to robinhood """ quote = client.get(endpoint, params={'symbols': ticker}) if quote['results'][0]['last_extended_hours_trade_price']: return float(quote['results'][0]['last_extended_hours_trade_price']) return float(quote['results'][0]['last_trade_price']) def get_name(ticker, client, endpoint=get_config("ROBINHOOD", "instruments_endpoint")): """Fetch `simple name` of company given ticker Args: ticker (str): stock ticker client (:obj:`RobinhoodConnection`): connection context endpoint (str): endpoint for `instruments` and company trading metadata Notes: Only smart enough to search 1 page Returns: str: simple name of company given ticker Raises: requests.RequestException: unable to conncet to robinhood TickerNotFound: KeyError: unable to find requested stock ticker """ ticker = ticker.upper() instruments = client.get(endpoint, params={'query': ticker}) company_info = {} pageno = 1 while not company_info: for record in instruments['results']: if record['symbol'] == ticker: company_info = record break if company_info: # TODO: this sucks break if not instruments['next']: raise exceptions.TickerNotFound instruments = client.get(instruments['next'], params={'query': ticker}) return company_info['simple_name']
[ "locke.renard@gmail.com" ]
locke.renard@gmail.com
d46197609d8e954b8cb87398f8a03cc13f5b8022
675a6ed1aa824ac801783471e634e538d11acc8d
/examples/example_flask/example_formatter.py
6edf6309f9d3a0cca24cee0b6a42698f229fee93
[ "MIT" ]
permissive
Eastwu5788/pre-request
7ea50b3930252b5a0f99bf9588d0fdd8f4ae4562
42da2bf5edc6690983188e1ee013c810ef8985db
refs/heads/master
2023-05-24T22:53:04.353491
2022-01-26T02:03:57
2022-01-26T02:03:57
100,257,925
102
9
MIT
2023-05-23T03:10:20
2017-08-14T10:56:59
Python
UTF-8
Python
false
false
966
py
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2020 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-04-09 14:43' # 3p from flask import Flask from pre_request import pre, Rule def custom_formatter(code, msg): """ 自定义结果格式化函数 :param code: 响应码 :param msg: 响应消息 """ return { "code": code, "msg": "hello", "sss": "tt", } app = Flask(__name__) app.config["TESTING"] = True filter_params = { "email": Rule(email=True) } @app.route("/email", methods=['get', 'post']) @pre.catch(filter_params) def email_resp_handler(): """ 测试邮件验证 """ from flask import g params = g.params return str(params) if __name__ == "__main__": pre.add_formatter(custom_formatter) resp = app.test_client().get("/email", data={ "email": "wudong@eastwu.cn" }) print(resp.get_data(as_text=True))
[ "wudong@eastwu.cn" ]
wudong@eastwu.cn
352e2af0fc2126431efc05449e46c709820dc0f9
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/jecvfH5eyGLrSwzNh_17.py
530d24676f42b48dd2c4961e0b3a2513ec1f1914
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
import re animals = ["muggercrocodile","one-hornedrhino","python","moth","monitorlizard","bengaltiger"] def fauna_number(txt): numbers = re.findall(r'\d+',txt) words = list(filter(lambda x: x in txt,animals)) words.sort(key = lambda x: txt.index(x)) return [(a,b) for a,b in zip(words,numbers)]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
9c2ea26cbc755a4f53cb515c72985b5c247d054c
8787b2fbb5017b61dcf6075a5261071b403847bf
/SWExpert/5607. [Professional] 조합.py
fcdb69ef676bc6db7fed89d771db093ff9716b60
[]
no_license
khw5123/Algorithm
a6fe0009e33289813959553c2366d77c93d7b4b9
323a829f17a10276ab6f1aec719c496a3e76b974
refs/heads/master
2023-01-02T00:12:21.848924
2020-10-23T06:37:41
2020-10-23T06:37:41
282,162,235
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
mod = 1234567891 def solve(n, x): global mod if x == 0: return 1 num = solve(n, x//2) ret = (num * num) % mod if x % 2 == 0: return ret else: return (ret * n) % mod for t in range(int(input())): n, r = map(int, input().split()) factorial = [1]*(n+1) for i in range(1, n+1): factorial[i] = (factorial[i-1] * i) % mod denominator = solve((factorial[r] * factorial[n-r]) % mod, mod-2) answer = (factorial[n] * denominator) % mod print('#' + str(t+1), str(answer))
[ "5123khw@hknu.ac.kr" ]
5123khw@hknu.ac.kr
e59076dee354b00a64db896638e8653321649719
e50954bb35fbc377a1c9a6842fa4ceb6b6234b39
/zips/plugin.close.kodi/default.py
cf8025c16c341cd3914cfd0680ef5f9e8c1a1fc2
[]
no_license
staycanuca/BUILDONLY
f213e242ed869475668933ac7b6ee2d4e8508bbc
f87684bf0111a1079b0e1184e1bfca3f2c5348ed
refs/heads/master
2021-05-09T04:54:22.747154
2018-01-28T08:55:07
2018-01-28T08:55:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,001
py
import xbmc, xbmcaddon, xbmcgui, xbmcplugin,os,sys,xbmcvfs import shutil import urllib2,urllib import re addon_id = 'plugin.close.kodi' ADDON = xbmcaddon.Addon(id=addon_id) FANART = xbmc.translatePath(os.path.join('special://home/addons/' + addon_id , 'fanart.jpg')) ICON = xbmc.translatePath(os.path.join('special://home/addons/' + addon_id, 'icon.png')) ART = xbmc.translatePath(os.path.join('special://home/addons/' + addon_id + '/resources/art/')) VERSION = "3.0.0" PATH = "forceclose" BASE = "fclose" DIALOG = xbmcgui.Dialog() COLOR1 = 'red' COLOR2 = 'white' log = xbmc.translatePath('special://logpath/') ################################### ####KILL XBMC Flawless Force Close# ################################### # def flawless(): #choice = DIALOG.yesno('Close System', '[COLOR %s]You are about to close The Media Center' % COLOR2, 'Would you like to continue?[/COLOR]', nolabel='[B][COLOR red] No Cancel[/COLOR][/B]',yeslabel='[B][COLOR green]Yes Close[/COLOR][/B]') #if choice == 1: # os._exit(1) #else: # xbmc.executebuiltin("Action(Close)") xbmc.executebuiltin("Action(Close)") os._exit(1) ############################# ############################# ########Old Method########### ############################# def oldmeth(): dialog = xbmcgui.Dialog() choice = 1 choice = DIALOG.yesno('Close System', '[COLOR %s]You are about to close The Entertainment Center' % COLOR2, 'Would you like to continue?[/COLOR]', nolabel='[B][COLOR red] No Cancel[/COLOR][/B]',yeslabel='[B][COLOR green]Yes Close[/COLOR][/B]') if choice == 0: xbmc.executebuiltin("Action(Close)") return elif choice == 1: pass log_path = xbmc.translatePath('special://logpath') if xbmc.getCondVisibility('system.platform.android'): try: os.system('kill $(ps | busybox grep org.xbmc.kodi | busybox awk "{ print $2 }")') except: pass try: os.system('kill $(ps | busybox grep com.sempermax.spmc16 | busybox awk "{ print $2 }")') except: pass try: os.system('kill $(ps | busybox grep com.sempermax.spmc | busybox awk "{ print $2 }")') except: pass try: os.system('kill $(ps | busybox grep org.xbmc.kodi | busybox awk "{ print $2 }")') except: pass # if xbmc.getCondVisibility('system.platform.linux'): try: os.system('killall Kodi') except: pass try: os.system('killall SMC') except: pass try: os.system('killall XBMC') except: pass try: os.system('killall -9 xbmc.bin') except: pass try: os.system('killall -9 SMC.bin') except: pass try: os.system('killall -9 kodi.bin') except: pass # if xbmc.getCondVisibility('system.platform.osx'): try: os.system('killall -9 Kodi') except: pass try: os.system('killall -9 SMC') except: pass try: os.system('killall -9 XBMC') except: pass # if xbmc.getCondVisibility('system.platform.ios'): print 'ios' # if xbmc.getCondVisibility('system.platform.atv2'): try: os.system('killall AppleTV') except: pass # print "############ try raspbmc force close #################" #OSMC / Raspbmc try: os.system('sudo initctl stop kodi') except: pass try: os.system('sudo initctl stop xbmc') except: pass try: os.system('sudo initctl stop tvmc') except: pass try: os.system('sudo initctl stop smc') except: pass # else: print "############ try raspbmc force close #################" #OSMC / Raspbmc try: os.system('sudo initctl stop kodi') except: pass try: os.system('sudo initctl stop xbmc') except: pass try: os.system('sudo initctl stop tvmc') except: pass try: os.system('sudo initctl stop smc') except: pass # #dialog.ok("WARNING", "Force Close was unsuccessful.","Closing Kodi normally...",'') #xbmc.executebuiltin('Quit') xbmc.executebuiltin('ActivateWindow(ShutdownMenu)') def omfci(): if xbmc.getCondVisibility('system.platform.android'): try: os.system('kill $(ps | busybox grep org.xbmc.kodi | busybox awk "{ print $2 }")') except: pass try: os.system('kill $(ps | busybox grep com.sempermax.spmc16 | busybox awk "{ print $2 }")') except: pass try: os.system('kill $(ps | busybox grep com.sempermax.spmc | busybox awk "{ print $2 }")') except: pass try: os.system('kill $(ps | busybox grep org.xbmc.kodi | busybox awk "{ print $2 }")') except: pass # if xbmc.getCondVisibility('system.platform.linux'): try: os.system('killall Kodi') except: pass try: os.system('killall SMC') except: pass try: os.system('killall XBMC') except: pass try: os.system('killall -9 xbmc.bin') except: pass try: os.system('killall -9 SMC.bin') except: pass try: os.system('killall -9 kodi.bin') except: pass # if xbmc.getCondVisibility('system.platform.osx'): try: os.system('killall -9 Kodi') except: pass try: os.system('killall -9 SMC') except: pass try: os.system('killall -9 XBMC') except: pass # if xbmc.getCondVisibility('system.platform.ios'): print 'ios' # if xbmc.getCondVisibility('system.platform.atv2'): try: os.system('killall AppleTV') except: pass # print "############ try raspbmc force close #################" #OSMC / Raspbmc try: os.system('sudo initctl stop kodi') except: pass try: os.system('sudo initctl stop xbmc') except: pass try: os.system('sudo initctl stop tvmc') except: pass try: os.system('sudo initctl stop smc') except: pass # else: print "############ try raspbmc force close #################" #OSMC / Raspbmc try: os.system('sudo initctl stop kodi') except: pass try: os.system('sudo initctl stop xbmc') except: pass try: os.system('sudo initctl stop tvmc') except: pass try: os.system('sudo initctl stop smc') except: pass # #dialog.ok("WARNING", "Force Close was unsuccessful.","Closing Kodi normally...",'') #xbmc.executebuiltin('Quit') xbmc.executebuiltin('ActivateWindow(ShutdownMenu)') # def INDEX(): addDir('Close System (Recommended)',BASE,10,ART+'force.png',FANART,'') addDir('Insta Kill (Warning Kills The MediaCenter Instantly)',BASE,4,ART+'force.png',FANART,'') addDir('Old Method',BASE,736641,ART+'force.png',FANART,'') addDir('Insta Kill Using The Old Method, Warning Kills The MediaCenter Instantly',BASE,736642,ART+'force.png',FANART,'') def get_params(): param=[] paramstring=sys.argv[2] if len(paramstring)>=2: params=sys.argv[2] cleanedparams=params.replace('?','') if (params[len(params)-1]=='/'): params=params[0:len(params)-2] pairsofparams=cleanedparams.split('&') param={} for i in range(len(pairsofparams)): splitparams={} splitparams=pairsofparams[i].split('=') if (len(splitparams))==2: param[splitparams[0]]=splitparams[1] return param def addDir(name,url,mode,iconimage,fanart,description): u=sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)+"&name="+urllib.quote_plus(name)+"&iconimage="+urllib.quote_plus(iconimage)+"&fanart="+urllib.quote_plus(fanart)+"&description="+urllib.quote_plus(description) ok=True liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage) liz.setInfo( type="Video", infoLabels={ "Title": name, "Plot": description } ) liz.setProperty( "Fanart_Image", fanart ) if mode==90 : ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=False) else: ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=True) return ok params=get_params() url=None name=None mode=None iconimage=None fanart=None description=None ####################################### ^ # Manual Mode Old Method (For Pussies)# | ####################################### | ########################################## try: url=urllib.unquote_plus(params["url"]) except: pass try: name=urllib.unquote_plus(params["name"]) except: pass try: iconimage=urllib.unquote_plus(params["iconimage"]) except: pass try: mode=int(params["mode"]) except: pass try: fanart=urllib.unquote_plus(params["fanart"]) except: pass try: description=urllib.unquote_plus(params["description"]) except: pass print str(PATH)+': '+str(VERSION) print "Mode: "+str(mode) print "URL: "+str(url) print "Name: "+str(name) print "IconImage: "+str(iconimage) def setView(content, viewType): # set content type so library shows more views and info if content: xbmcplugin.setContent(int(sys.argv[1]), content) if ADDON.getSetting('auto-view')=='true': xbmc.executebuiltin("Container.SetViewMode(%s)" % ADDON.getSetting(viewType) ) if mode==None or url==None or len(url)<1: INDEX() elif mode==10: flawless() elif mode==4: os._exit(1) elif mode==736641: oldmeth() elif mode==736642: omfci() xbmcplugin.endOfDirectory(int(sys.argv[1]))
[ "biglad@mgawow.co.uk" ]
biglad@mgawow.co.uk
566b75c70f81b310ab1705e6cd84012d7fcc8f98
ad0910142f3e0a5cb0c17ec3ef96c68ee9e63798
/qt/lineedit/le_2.py
32acaa46b0693d343d1ac12eebf13789bbb8c9aa
[]
no_license
notmikeb/workspace
94cce9d4c39e78b0471ff75f8af03576d93410e5
be350091237dc7c318e4d9f1c9ac6a2f10356b82
refs/heads/master
2021-01-19T04:16:06.049253
2019-09-24T14:50:00
2019-09-24T14:50:00
43,929,782
1
0
null
null
null
null
UTF-8
Python
false
false
3,599
py
import sys from PyQt4.QtCore import * from PyQt4.QtGui import * # http://www.saltycrane.com/blog/2008/01/python-pyqt-tab-completion-example/ LIST_DATA = ['a', 'aardvark', 'aardvarks', 'aardwolf', 'aardwolves', 'abacus', 'babel', 'bach', 'cache', 'daggle', 'facet', 'kabob', 'kansas'] #################################################################### def main(): app = QApplication(sys.argv) w = MyWindow() w.show() sys.exit(app.exec_()) #################################################################### class MyWindow(QWidget): def __init__(self, *args): QWidget.__init__(self, *args) # create objects self.la = QLabel("Start typing to match items in list:") self.le = MyLineEdit() self.lm = MyListModel(LIST_DATA, self) self.lv = QListView() self.lv.setModel(self.lm) # layout layout = QVBoxLayout() layout.addWidget(self.la) layout.addWidget(self.le) layout.addWidget(self.lv) self.setLayout(layout) # connections self.connect(self.le, SIGNAL("textChanged(QString)"), self.text_changed) self.connect(self.le, SIGNAL("tabPressed"), self.tab_pressed) def text_changed(self): """ updates the list of possible completions each time a key is pressed """ pattern = str(self.le.text()) self.new_list = [item for item in LIST_DATA if item.find(pattern) == 0] self.lm.setAllData(self.new_list) def tab_pressed(self): """ completes the word to the longest matching string when the tab key is pressed """ # only one item in the completion list if len(self.new_list) == 1: newtext = self.new_list[0] + " " self.le.setText(newtext) # more than one remaining matches elif len(self.new_list) > 1: match = self.new_list.pop(0) for word in self.new_list: match = string_intersect(word, match) self.le.setText(match) #################################################################### class MyLineEdit(QLineEdit): def __init__(self, *args): QLineEdit.__init__(self, *args) def event(self, event): if (event.type() == QEvent.KeyPress) and (event.key() == Qt.Key_Tab): self.emit(SIGNAL("tabPressed")) return True return QLineEdit.event(self, event) #################################################################### class MyListModel(QAbstractListModel): def __init__(self, datain, parent=None, *args): """ datain: a list where each item is a row """ QAbstractTableModel.__init__(self, parent, *args) self.listdata = datain def rowCount(self, parent=QModelIndex()): return len(self.listdata) def data(self, index, role): if index.isValid() and role == Qt.DisplayRole: return QVariant(self.listdata[index.row()]) else: return QVariant() def setAllData(self, newdata): """ replace all data with new data """ self.listdata = newdata self.reset() #################################################################### def string_intersect(str1, str2): newlist = [] for i, j in zip(str1, str2): if i == j: newlist.append(i) else: break return ''.join(newlist) #################################################################### if __name__ == "__main__": main()
[ "notmikeb@gmail.com" ]
notmikeb@gmail.com
219986d7e18dee3ec7e5c8aa82e15af9ecc87ab4
9bb01fa882e713aa59345051fec07f4e3d3478b0
/examples/memory.py
fe52ab2be578f504f2cd96d164193a9464fee3c4
[]
no_license
syarra/cysparse
f1169c496b54d61761fdecbde716328fd0fb131b
7654f7267ab139d0564d3aa3b21c75b364bcfe72
refs/heads/master
2020-05-25T16:15:38.160443
2017-03-14T21:17:39
2017-03-14T21:17:39
84,944,993
0
0
null
2017-03-14T12:11:48
2017-03-14T12:11:48
null
UTF-8
Python
false
false
592
py
from cysparse.sparse.ll_mat import * A = ArrowheadLLSparseMatrix(nrow=50, ncol=800, itype=INT32_T, dtype=COMPLEX128_T) print A print "In bytes:" print A.memory_real_in_bytes() print A.memory_virtual_in_bytes() print A.memory_element_in_bytes() print "In bits:" print A.memory_real_in_bits() print A.memory_virtual_in_bits() print A.memory_element_in_bits() A.compress() print A.memory_real_in_bytes() print A.memory_real_in_bits() print A print "=" * 80 print A.memory_element_in_bits() print A.memory_element_in_bytes() print A.memory_index_in_bits() print A.memory_index_in_bytes()
[ "nikolaj.van.omme@gmail.com" ]
nikolaj.van.omme@gmail.com
a5beb4f64c56e337ed39593290ee686d6f416492
8f1c3c76bf8514818b733ba29fe575d8a5243add
/eduerp_health/models/health.py
9f3a9a81be4161a4552cb29af6366a8395a72087
[ "Apache-2.0" ]
permissive
westlyou/eduerp
27f1c7dcd0d2badf50cb6c69f5e761d7f0c6a898
968d79b5adc729bc81192604f1fc223517d38ccf
refs/heads/master
2021-06-04T05:11:13.858246
2016-09-12T07:21:17
2016-09-12T07:21:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
# -*- coding: utf-8 -*- ############################################################################### # ############################################################################### from openerp import models, fields, api from openerp.exceptions import ValidationError class OpHealth(models.Model): _name = 'op.health' _rec_name = 'student_id' _description = """Health Detail for Students and Faculties""" type = fields.Selection( [('student', 'Student'), ('faculty', 'Faculty')], 'Type', default='student', required=True) student_id = fields.Many2one('op.student', 'Student') faculty_id = fields.Many2one('op.faculty', 'Faculty') height = fields.Float('Height(C.M.)', required=True) weight = fields.Float('Weight', required=True) blood_group = fields.Selection( [('A+', 'A+ve'), ('B+', 'B+ve'), ('O+', 'O+ve'), ('AB+', 'AB+ve'), ('A-', 'A-ve'), ('B-', 'B-ve'), ('O-', 'O-ve'), ('AB-', 'AB-ve')], 'Blood Group', required=True) physical_challenges = fields.Boolean('Physical Challenge?', default=False) physical_challenges_note = fields.Text('Physical Challenge') major_diseases = fields.Boolean('Major Diseases?', default=False) major_diseases_note = fields.Text('Major Diseases') eyeglasses = fields.Boolean('Eye Glasses?') eyeglasses_no = fields.Char('Eye Glasses', size=64) regular_checkup = fields.Boolean( 'Any Regular Checkup Required?', default=False) health_line = fields.One2many( 'op.health.line', 'health_id', 'Checkup Lines') @api.constrains('height', 'weight') def check_height_weight(self): if self.height <= 0.0 or self.weight <= 0.0: raise ValidationError("Enter proper height and weight!") # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
[ "huysamdua@yahoo.com" ]
huysamdua@yahoo.com
5571c96e15fc719da364f819f949990fcbf2194c
71f00ed87cd980bb2f92c08b085c5abe40a317fb
/Data/GoogleCloud/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/datacatalog/v1/datacatalog_v1_messages.py
7a88569cee4a31f1cafe1e8ec5bf3c2d9ec5ad3d
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
factoryofthesun/Rao-NLP
2bd8269a8eed1cb352c14c8fde88e3111ccca088
87f9723f5ee51bd21310d58c3425a2a7271ec3c5
refs/heads/master
2023-04-18T08:54:08.370155
2020-06-09T23:24:07
2020-06-09T23:24:07
248,070,291
0
1
null
2021-04-30T21:13:04
2020-03-17T20:49:03
Python
UTF-8
Python
false
false
73,479
py
"""Generated message classes for datacatalog version v1. A fully managed and highly scalable data discovery and metadata management service. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding package = 'datacatalog' class Binding(_messages.Message): r"""Associates `members` with a `role`. Fields: condition: The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. members: Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other- app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other- app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. role: Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. """ condition = _messages.MessageField('Expr', 1) members = _messages.StringField(2, repeated=True) role = _messages.StringField(3) class DatacatalogEntriesLookupRequest(_messages.Message): r"""A DatacatalogEntriesLookupRequest object. Fields: linkedResource: The full name of the Google Cloud Platform resource the Data Catalog entry represents. See: https://cloud.google.com/apis/design/resource_names#full_resource_name. Full names are case-sensitive. Examples: * //bigquery.googleapis.com/ projects/projectId/datasets/datasetId/tables/tableId * //pubsub.googleapis.com/projects/projectId/topics/topicId sqlResource: The SQL name of the entry. SQL names are case-sensitive. Examples: * `cloud_pubsub.project_id.topic_id` * ``pubsub.project_id.`topic.id.with.dots` `` * `bigquery.table.project_id.dataset_id.table_id` * `bigquery.dataset.project_id.dataset_id` * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id` `*_id`s shoud satisfy the standard SQL rules for identifiers. https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. """ linkedResource = _messages.StringField(1) sqlResource = _messages.StringField(2) class DatacatalogProjectsLocationsEntryGroupsCreateRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsCreateRequest object. Fields: entryGroupId: Required. The id of the entry group to create. The id must begin with a letter or underscore, contain only English letters, numbers and underscores, and be at most 64 characters. googleCloudDatacatalogV1EntryGroup: A GoogleCloudDatacatalogV1EntryGroup resource to be passed as the request body. parent: Required. The name of the project this entry group is in. Example: * projects/{project_id}/locations/{location} Note that this EntryGroup and its child resources may not actually be stored in the location in this name. """ entryGroupId = _messages.StringField(1) googleCloudDatacatalogV1EntryGroup = _messages.MessageField('GoogleCloudDatacatalogV1EntryGroup', 2) parent = _messages.StringField(3, required=True) class DatacatalogProjectsLocationsEntryGroupsDeleteRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsDeleteRequest object. Fields: force: Optional. If true, deletes all entries in the entry group. name: Required. The name of the entry group. For example, `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} `. """ force = _messages.BooleanField(1) name = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsEntryGroupsEntriesCreateRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesCreateRequest object. Fields: entryId: Required. The id of the entry to create. googleCloudDatacatalogV1Entry: A GoogleCloudDatacatalogV1Entry resource to be passed as the request body. parent: Required. The name of the entry group this entry is in. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this Entry and its child resources may not actually be stored in the location in this name. """ entryId = _messages.StringField(1) googleCloudDatacatalogV1Entry = _messages.MessageField('GoogleCloudDatacatalogV1Entry', 2) parent = _messages.StringField(3, required=True) class DatacatalogProjectsLocationsEntryGroupsEntriesDeleteRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesDeleteRequest object. Fields: name: Required. The name of the entry. Example: * projects/{project_id}/l ocations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} """ name = _messages.StringField(1, required=True) class DatacatalogProjectsLocationsEntryGroupsEntriesGetIamPolicyRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesGetIamPolicyRequest object. Fields: getIamPolicyRequest: A GetIamPolicyRequest resource to be passed as the request body. resource: REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. """ getIamPolicyRequest = _messages.MessageField('GetIamPolicyRequest', 1) resource = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsEntryGroupsEntriesGetRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesGetRequest object. Fields: name: Required. The name of the entry. Example: * projects/{project_id}/l ocations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} """ name = _messages.StringField(1, required=True) class DatacatalogProjectsLocationsEntryGroupsEntriesListRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesListRequest object. Fields: pageSize: The maximum number of items to return. Default is 10. Max limit is 1000. Throws an invalid argument for `page_size > 1000`. pageToken: Token that specifies which page is requested. If empty, the first page is returned. parent: Required. The name of the entry group that contains the entries, which can be provided in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} readMask: The fields to return for each Entry. If not set or empty, all fields are returned. For example, setting read_mask to contain only one path "name" will cause ListEntries to return a list of Entries with only "name" field. """ pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) pageToken = _messages.StringField(2) parent = _messages.StringField(3, required=True) readMask = _messages.StringField(4) class DatacatalogProjectsLocationsEntryGroupsEntriesPatchRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesPatchRequest object. Fields: googleCloudDatacatalogV1Entry: A GoogleCloudDatacatalogV1Entry resource to be passed as the request body. name: The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id }/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name. updateMask: The fields to update on the entry. If absent or empty, all modifiable fields are updated. The following fields are modifiable: * For entries with type `DATA_STREAM`: * `schema` * For entries with type `FILESET` * `schema` * `display_name` * `description` * `gcs_fileset_spec` * `gcs_fileset_spec.file_patterns` * For entries with `user_specified_type` * `schema` * `display_name` * `description` * user_specified_type * user_specified_system * linked_resource * source_system_timestamps """ googleCloudDatacatalogV1Entry = _messages.MessageField('GoogleCloudDatacatalogV1Entry', 1) name = _messages.StringField(2, required=True) updateMask = _messages.StringField(3) class DatacatalogProjectsLocationsEntryGroupsEntriesTagsCreateRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesTagsCreateRequest object. Fields: googleCloudDatacatalogV1Tag: A GoogleCloudDatacatalogV1Tag resource to be passed as the request body. parent: Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example: * projects/{project_id}/locations/{loc ation}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Tag and its child resources may not actually be stored in the location in this name. """ googleCloudDatacatalogV1Tag = _messages.MessageField('GoogleCloudDatacatalogV1Tag', 1) parent = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsEntryGroupsEntriesTagsDeleteRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesTagsDeleteRequest object. Fields: name: Required. The name of the tag to delete. Example: * projects/{proje ct_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_ id}/tags/{tag_id} """ name = _messages.StringField(1, required=True) class DatacatalogProjectsLocationsEntryGroupsEntriesTagsListRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesTagsListRequest object. Fields: pageSize: The maximum number of tags to return. Default is 10. Max limit is 1000. pageToken: Token that specifies which page is requested. If empty, the first page is returned. parent: Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry or an EntryGroup. Examples: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id }/entries/{entry_id} """ pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) pageToken = _messages.StringField(2) parent = _messages.StringField(3, required=True) class DatacatalogProjectsLocationsEntryGroupsEntriesTagsPatchRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesTagsPatchRequest object. Fields: googleCloudDatacatalogV1Tag: A GoogleCloudDatacatalogV1Tag resource to be passed as the request body. name: The resource name of the tag in URL format. Example: * projects/{pr oject_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{ent ry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name. updateMask: The fields to update on the Tag. If absent or empty, all modifiable fields are updated. Currently the only modifiable field is the field `fields`. """ googleCloudDatacatalogV1Tag = _messages.MessageField('GoogleCloudDatacatalogV1Tag', 1) name = _messages.StringField(2, required=True) updateMask = _messages.StringField(3) class DatacatalogProjectsLocationsEntryGroupsEntriesTestIamPermissionsRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsEntriesTestIamPermissionsRequest object. Fields: resource: REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. testIamPermissionsRequest: A TestIamPermissionsRequest resource to be passed as the request body. """ resource = _messages.StringField(1, required=True) testIamPermissionsRequest = _messages.MessageField('TestIamPermissionsRequest', 2) class DatacatalogProjectsLocationsEntryGroupsGetIamPolicyRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsGetIamPolicyRequest object. Fields: getIamPolicyRequest: A GetIamPolicyRequest resource to be passed as the request body. resource: REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. """ getIamPolicyRequest = _messages.MessageField('GetIamPolicyRequest', 1) resource = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsEntryGroupsGetRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsGetRequest object. Fields: name: Required. The name of the entry group. For example, `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} `. readMask: The fields to return. If not set or empty, all fields are returned. """ name = _messages.StringField(1, required=True) readMask = _messages.StringField(2) class DatacatalogProjectsLocationsEntryGroupsListRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsListRequest object. Fields: pageSize: Optional. The maximum number of items to return. Default is 10. Max limit is 1000. Throws an invalid argument for `page_size > 1000`. pageToken: Optional. Token that specifies which page is requested. If empty, the first page is returned. parent: Required. The name of the location that contains the entry groups, which can be provided in URL format. Example: * projects/{project_id}/locations/{location} """ pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) pageToken = _messages.StringField(2) parent = _messages.StringField(3, required=True) class DatacatalogProjectsLocationsEntryGroupsPatchRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsPatchRequest object. Fields: googleCloudDatacatalogV1EntryGroup: A GoogleCloudDatacatalogV1EntryGroup resource to be passed as the request body. name: The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name. updateMask: The fields to update on the entry group. If absent or empty, all modifiable fields are updated. """ googleCloudDatacatalogV1EntryGroup = _messages.MessageField('GoogleCloudDatacatalogV1EntryGroup', 1) name = _messages.StringField(2, required=True) updateMask = _messages.StringField(3) class DatacatalogProjectsLocationsEntryGroupsSetIamPolicyRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsSetIamPolicyRequest object. Fields: resource: REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. setIamPolicyRequest: A SetIamPolicyRequest resource to be passed as the request body. """ resource = _messages.StringField(1, required=True) setIamPolicyRequest = _messages.MessageField('SetIamPolicyRequest', 2) class DatacatalogProjectsLocationsEntryGroupsTagsCreateRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsTagsCreateRequest object. Fields: googleCloudDatacatalogV1Tag: A GoogleCloudDatacatalogV1Tag resource to be passed as the request body. parent: Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example: * projects/{project_id}/locations/{loc ation}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Tag and its child resources may not actually be stored in the location in this name. """ googleCloudDatacatalogV1Tag = _messages.MessageField('GoogleCloudDatacatalogV1Tag', 1) parent = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsEntryGroupsTagsDeleteRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsTagsDeleteRequest object. Fields: name: Required. The name of the tag to delete. Example: * projects/{proje ct_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_ id}/tags/{tag_id} """ name = _messages.StringField(1, required=True) class DatacatalogProjectsLocationsEntryGroupsTagsListRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsTagsListRequest object. Fields: pageSize: The maximum number of tags to return. Default is 10. Max limit is 1000. pageToken: Token that specifies which page is requested. If empty, the first page is returned. parent: Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry or an EntryGroup. Examples: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id }/entries/{entry_id} """ pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) pageToken = _messages.StringField(2) parent = _messages.StringField(3, required=True) class DatacatalogProjectsLocationsEntryGroupsTagsPatchRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsTagsPatchRequest object. Fields: googleCloudDatacatalogV1Tag: A GoogleCloudDatacatalogV1Tag resource to be passed as the request body. name: The resource name of the tag in URL format. Example: * projects/{pr oject_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{ent ry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name. updateMask: The fields to update on the Tag. If absent or empty, all modifiable fields are updated. Currently the only modifiable field is the field `fields`. """ googleCloudDatacatalogV1Tag = _messages.MessageField('GoogleCloudDatacatalogV1Tag', 1) name = _messages.StringField(2, required=True) updateMask = _messages.StringField(3) class DatacatalogProjectsLocationsEntryGroupsTestIamPermissionsRequest(_messages.Message): r"""A DatacatalogProjectsLocationsEntryGroupsTestIamPermissionsRequest object. Fields: resource: REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. testIamPermissionsRequest: A TestIamPermissionsRequest resource to be passed as the request body. """ resource = _messages.StringField(1, required=True) testIamPermissionsRequest = _messages.MessageField('TestIamPermissionsRequest', 2) class DatacatalogProjectsLocationsTagTemplatesCreateRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesCreateRequest object. Fields: googleCloudDatacatalogV1TagTemplate: A GoogleCloudDatacatalogV1TagTemplate resource to be passed as the request body. parent: Required. The name of the project and the template location [region](/compute/docs/regions-zones/#available). NOTE: Currently, only the `us-central1 region` is supported. Example: * projects/{project_id}/locations/us-central1 tagTemplateId: Required. The id of the tag template to create. """ googleCloudDatacatalogV1TagTemplate = _messages.MessageField('GoogleCloudDatacatalogV1TagTemplate', 1) parent = _messages.StringField(2, required=True) tagTemplateId = _messages.StringField(3) class DatacatalogProjectsLocationsTagTemplatesDeleteRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesDeleteRequest object. Fields: force: Required. Currently, this field must always be set to `true`. This confirms the deletion of any possible tags using this template. `force = false` will be supported in the future. name: Required. The name of the tag template to delete. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id } """ force = _messages.BooleanField(1) name = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsTagTemplatesFieldsCreateRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesFieldsCreateRequest object. Fields: googleCloudDatacatalogV1TagTemplateField: A GoogleCloudDatacatalogV1TagTemplateField resource to be passed as the request body. parent: Required. The name of the project and the template location [region](/compute/docs/regions-zones/#available). NOTE: Currently, only the `us-central1 region` is supported. Example: * projects/{project_id}/locations/us- central1/tagTemplates/{tag_template_id} tagTemplateFieldId: Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template. """ googleCloudDatacatalogV1TagTemplateField = _messages.MessageField('GoogleCloudDatacatalogV1TagTemplateField', 1) parent = _messages.StringField(2, required=True) tagTemplateFieldId = _messages.StringField(3) class DatacatalogProjectsLocationsTagTemplatesFieldsDeleteRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesFieldsDeleteRequest object. Fields: force: Required. Currently, this field must always be set to `true`. This confirms the deletion of this field from any tags using this field. `force = false` will be supported in the future. name: Required. The name of the tag template field to delete. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id }/fields/{tag_template_field_id} """ force = _messages.BooleanField(1) name = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsTagTemplatesFieldsPatchRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesFieldsPatchRequest object. Fields: googleCloudDatacatalogV1TagTemplateField: A GoogleCloudDatacatalogV1TagTemplateField resource to be passed as the request body. name: Required. The name of the tag template field. Example: * projects/{ project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{ tag_template_field_id} updateMask: Optional. The field mask specifies the parts of the template to be updated. Allowed fields: * `display_name` * `type.enum_type` * `is_required` If `update_mask` is not set or empty, all of the allowed fields above will be updated. When updating an enum type, the provided values will be merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted nor renamed. Updating a template field from optional to required is NOT allowed. """ googleCloudDatacatalogV1TagTemplateField = _messages.MessageField('GoogleCloudDatacatalogV1TagTemplateField', 1) name = _messages.StringField(2, required=True) updateMask = _messages.StringField(3) class DatacatalogProjectsLocationsTagTemplatesFieldsRenameRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesFieldsRenameRequest object. Fields: googleCloudDatacatalogV1RenameTagTemplateFieldRequest: A GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest resource to be passed as the request body. name: Required. The name of the tag template. Example: * projects/{projec t_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_te mplate_field_id} """ googleCloudDatacatalogV1RenameTagTemplateFieldRequest = _messages.MessageField('GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest', 1) name = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsTagTemplatesGetIamPolicyRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesGetIamPolicyRequest object. Fields: getIamPolicyRequest: A GetIamPolicyRequest resource to be passed as the request body. resource: REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. """ getIamPolicyRequest = _messages.MessageField('GetIamPolicyRequest', 1) resource = _messages.StringField(2, required=True) class DatacatalogProjectsLocationsTagTemplatesGetRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesGetRequest object. Fields: name: Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id } """ name = _messages.StringField(1, required=True) class DatacatalogProjectsLocationsTagTemplatesPatchRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesPatchRequest object. Fields: googleCloudDatacatalogV1TagTemplate: A GoogleCloudDatacatalogV1TagTemplate resource to be passed as the request body. name: The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id } Note that this TagTemplate and its child resources may not actually be stored in the location in this name. updateMask: The field mask specifies the parts of the template to overwrite. Allowed fields: * `display_name` If absent or empty, all of the allowed fields above will be updated. """ googleCloudDatacatalogV1TagTemplate = _messages.MessageField('GoogleCloudDatacatalogV1TagTemplate', 1) name = _messages.StringField(2, required=True) updateMask = _messages.StringField(3) class DatacatalogProjectsLocationsTagTemplatesSetIamPolicyRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesSetIamPolicyRequest object. Fields: resource: REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. setIamPolicyRequest: A SetIamPolicyRequest resource to be passed as the request body. """ resource = _messages.StringField(1, required=True) setIamPolicyRequest = _messages.MessageField('SetIamPolicyRequest', 2) class DatacatalogProjectsLocationsTagTemplatesTestIamPermissionsRequest(_messages.Message): r"""A DatacatalogProjectsLocationsTagTemplatesTestIamPermissionsRequest object. Fields: resource: REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. testIamPermissionsRequest: A TestIamPermissionsRequest resource to be passed as the request body. """ resource = _messages.StringField(1, required=True) testIamPermissionsRequest = _messages.MessageField('TestIamPermissionsRequest', 2) class Empty(_messages.Message): r"""A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. """ class Expr(_messages.Message): r"""Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. Fields: description: Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. expression: Textual representation of an expression in Common Expression Language syntax. location: Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. title: Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. """ description = _messages.StringField(1) expression = _messages.StringField(2) location = _messages.StringField(3) title = _messages.StringField(4) class GetIamPolicyRequest(_messages.Message): r"""Request message for `GetIamPolicy` method. Fields: options: OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. This field is only used by Cloud IAM. """ options = _messages.MessageField('GetPolicyOptions', 1) class GetPolicyOptions(_messages.Message): r"""Encapsulates settings provided to GetIamPolicy. Fields: requestedPolicyVersion: Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. """ requestedPolicyVersion = _messages.IntegerField(1, variant=_messages.Variant.INT32) class GoogleCloudDatacatalogV1BigQueryDateShardedSpec(_messages.Message): r"""Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: https://cloud.google.com/bigquery/docs /partitioned-tables#partitioning_versus_sharding Fields: dataset: Output only. The Data Catalog resource name of the dataset entry the current table belongs to, for example, `projects/{project_id}/locati ons/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. shardCount: Output only. Total number of shards. tablePrefix: Output only. The table name prefix of the shards. The name of any given shard is `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the `table_prefix` is `MyTable`. """ dataset = _messages.StringField(1) shardCount = _messages.IntegerField(2) tablePrefix = _messages.StringField(3) class GoogleCloudDatacatalogV1BigQueryTableSpec(_messages.Message): r"""Describes a BigQuery table. Enums: TableSourceTypeValueValuesEnum: Output only. The table source type. Fields: tableSourceType: Output only. The table source type. tableSpec: Spec of a BigQuery table. This field should only be populated if `table_source_type` is `BIGQUERY_TABLE`. viewSpec: Table view specification. This field should only be populated if `table_source_type` is `BIGQUERY_VIEW`. """ class TableSourceTypeValueValuesEnum(_messages.Enum): r"""Output only. The table source type. Values: TABLE_SOURCE_TYPE_UNSPECIFIED: Default unknown type. BIGQUERY_VIEW: Table view. BIGQUERY_TABLE: BigQuery native table. """ TABLE_SOURCE_TYPE_UNSPECIFIED = 0 BIGQUERY_VIEW = 1 BIGQUERY_TABLE = 2 tableSourceType = _messages.EnumField('TableSourceTypeValueValuesEnum', 1) tableSpec = _messages.MessageField('GoogleCloudDatacatalogV1TableSpec', 2) viewSpec = _messages.MessageField('GoogleCloudDatacatalogV1ViewSpec', 3) class GoogleCloudDatacatalogV1ColumnSchema(_messages.Message): r"""Representation of a column within a schema. Columns could be nested inside other columns. Fields: column: Required. Name of the column. description: Optional. Description of the column. Default value is an empty string. mode: Optional. A column's mode indicates whether the values in this column are required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are supported. Default mode is `NULLABLE`. subcolumns: Optional. Schema of sub-columns. A column can have zero or more sub-columns. type: Required. Type of the column. """ column = _messages.StringField(1) description = _messages.StringField(2) mode = _messages.StringField(3) subcolumns = _messages.MessageField('GoogleCloudDatacatalogV1ColumnSchema', 4, repeated=True) type = _messages.StringField(5) class GoogleCloudDatacatalogV1Entry(_messages.Message): r"""Entry Metadata. A Data Catalog Entry resource represents another resource in Google Cloud Platform (such as a BigQuery dataset or a Cloud Pub/Sub topic) or outside of Google Cloud Platform. Clients can use the `linked_resource` field in the Entry resource to refer to the original resource ID of the source system. An Entry resource contains resource details, such as its schema. An Entry can also be used to attach flexible metadata, such as a Tag. Enums: IntegratedSystemValueValuesEnum: Output only. This field indicates the entry's source system that Data Catalog integrates with, such as BigQuery or Cloud Pub/Sub. TypeValueValuesEnum: The type of the entry. Only used for Entries with types in the EntryType enum. Fields: bigqueryDateShardedSpec: Specification for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: https://cloud.google.com/bigquery/docs/partitioned- tables#partitioning_versus_sharding. bigqueryTableSpec: Specification that applies to a BigQuery table. This is only valid on entries of type `TABLE`. description: Entry description, which can consist of several sentences or paragraphs that describe entry contents. Default value is an empty string. displayName: Display information such as title and description. A short name to identify the entry, for example, "Analytics Data - Jan 2011". Default value is an empty string. gcsFilesetSpec: Specification that applies to a Cloud Storage fileset. This is only valid on entries of type FILESET. integratedSystem: Output only. This field indicates the entry's source system that Data Catalog integrates with, such as BigQuery or Cloud Pub/Sub. linkedResource: The resource this metadata entry refers to. For Google Cloud Platform resources, `linked_resource` is the [full name of the res ource](https://cloud.google.com/apis/design/resource_names#full_resource _name). For example, the `linked_resource` for a table resource from BigQuery is: * //bigquery.googleapis.com/projects/projectId/datasets/da tasetId/tables/tableId Output only when Entry is of type in the EntryType enum. For entries with user_specified_type, this field is optional and defaults to an empty string. name: The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id }/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name. schema: Schema of the entry. An entry might not have any schema attached to it. sourceSystemTimestamps: Timestamps about the underlying resource, not about this Data Catalog entry. Output only when Entry is of type in the EntryType enum. For entries with user_specified_type, this field is optional and defaults to an empty timestamp. type: The type of the entry. Only used for Entries with types in the EntryType enum. userSpecifiedSystem: This field indicates the entry's source system that Data Catalog does not integrate with. `user_specified_system` strings must begin with a letter or underscore and can only contain letters, numbers, and underscores; are case insensitive; must be at least 1 character and at most 64 characters long. userSpecifiedType: Entry type if it does not fit any of the input-allowed values listed in `EntryType` enum above. When creating an entry, users should check the enum values first, if nothing matches the entry to be created, then provide a custom value, for example "my_special_type". `user_specified_type` strings must begin with a letter or underscore and can only contain letters, numbers, and underscores; are case insensitive; must be at least 1 character and at most 64 characters long. Currently, only FILESET enum value is allowed. All other entries created through Data Catalog must use `user_specified_type`. """ class IntegratedSystemValueValuesEnum(_messages.Enum): r"""Output only. This field indicates the entry's source system that Data Catalog integrates with, such as BigQuery or Cloud Pub/Sub. Values: INTEGRATED_SYSTEM_UNSPECIFIED: Default unknown system. BIGQUERY: BigQuery. CLOUD_PUBSUB: Cloud Pub/Sub. """ INTEGRATED_SYSTEM_UNSPECIFIED = 0 BIGQUERY = 1 CLOUD_PUBSUB = 2 class TypeValueValuesEnum(_messages.Enum): r"""The type of the entry. Only used for Entries with types in the EntryType enum. Values: ENTRY_TYPE_UNSPECIFIED: Default unknown type. TABLE: Output only. The type of entry that has a GoogleSQL schema, including logical views. MODEL: Output only. The type of models, examples include https://cloud.google.com/bigquery-ml/docs/bigqueryml-intro DATA_STREAM: Output only. An entry type which is used for streaming entries. Example: Cloud Pub/Sub topic. FILESET: An entry type which is a set of files or objects. Example: Cloud Storage fileset. """ ENTRY_TYPE_UNSPECIFIED = 0 TABLE = 1 MODEL = 2 DATA_STREAM = 3 FILESET = 4 bigqueryDateShardedSpec = _messages.MessageField('GoogleCloudDatacatalogV1BigQueryDateShardedSpec', 1) bigqueryTableSpec = _messages.MessageField('GoogleCloudDatacatalogV1BigQueryTableSpec', 2) description = _messages.StringField(3) displayName = _messages.StringField(4) gcsFilesetSpec = _messages.MessageField('GoogleCloudDatacatalogV1GcsFilesetSpec', 5) integratedSystem = _messages.EnumField('IntegratedSystemValueValuesEnum', 6) linkedResource = _messages.StringField(7) name = _messages.StringField(8) schema = _messages.MessageField('GoogleCloudDatacatalogV1Schema', 9) sourceSystemTimestamps = _messages.MessageField('GoogleCloudDatacatalogV1SystemTimestamps', 10) type = _messages.EnumField('TypeValueValuesEnum', 11) userSpecifiedSystem = _messages.StringField(12) userSpecifiedType = _messages.StringField(13) class GoogleCloudDatacatalogV1EntryGroup(_messages.Message): r"""EntryGroup Metadata. An EntryGroup resource represents a logical grouping of zero or more Data Catalog Entry resources. Fields: dataCatalogTimestamps: Output only. Timestamps about this EntryGroup. Default value is empty timestamps. description: Entry group description, which can consist of several sentences or paragraphs that describe entry group contents. Default value is an empty string. displayName: A short name to identify the entry group, for example, "analytics data - jan 2011". Default value is an empty string. name: The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name. """ dataCatalogTimestamps = _messages.MessageField('GoogleCloudDatacatalogV1SystemTimestamps', 1) description = _messages.StringField(2) displayName = _messages.StringField(3) name = _messages.StringField(4) class GoogleCloudDatacatalogV1FieldType(_messages.Message): r"""A GoogleCloudDatacatalogV1FieldType object. Enums: PrimitiveTypeValueValuesEnum: Represents primitive types - string, bool etc. Fields: enumType: Represents an enum type. primitiveType: Represents primitive types - string, bool etc. """ class PrimitiveTypeValueValuesEnum(_messages.Enum): r"""Represents primitive types - string, bool etc. Values: PRIMITIVE_TYPE_UNSPECIFIED: This is the default invalid value for a type. DOUBLE: A double precision number. STRING: An UTF-8 string. BOOL: A boolean value. TIMESTAMP: A timestamp. """ PRIMITIVE_TYPE_UNSPECIFIED = 0 DOUBLE = 1 STRING = 2 BOOL = 3 TIMESTAMP = 4 enumType = _messages.MessageField('GoogleCloudDatacatalogV1FieldTypeEnumType', 1) primitiveType = _messages.EnumField('PrimitiveTypeValueValuesEnum', 2) class GoogleCloudDatacatalogV1FieldTypeEnumType(_messages.Message): r"""A GoogleCloudDatacatalogV1FieldTypeEnumType object. Fields: allowedValues: Required on create; optional on update. The set of allowed values for this enum. This set must not be empty, the display names of the values in this set must not be empty and the display names of the values must be case-insensitively unique within this set. Currently, enum values can only be added to the list of allowed values. Deletion and renaming of enum values are not supported. Can have up to 500 allowed values. """ allowedValues = _messages.MessageField('GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue', 1, repeated=True) class GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue(_messages.Message): r"""A GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue object. Fields: displayName: Required. The display name of the enum value. Must not be an empty string. """ displayName = _messages.StringField(1) class GoogleCloudDatacatalogV1GcsFileSpec(_messages.Message): r"""Specifications of a single file in Cloud Storage. Fields: filePath: Required. The full file path. Example: `gs://bucket_name/a/b.txt`. gcsTimestamps: Output only. Timestamps about the Cloud Storage file. sizeBytes: Output only. The size of the file, in bytes. """ filePath = _messages.StringField(1) gcsTimestamps = _messages.MessageField('GoogleCloudDatacatalogV1SystemTimestamps', 2) sizeBytes = _messages.IntegerField(3) class GoogleCloudDatacatalogV1GcsFilesetSpec(_messages.Message): r"""Describes a Cloud Storage fileset entry. Fields: filePatterns: Required. Patterns to identify a set of files in Google Cloud Storage. See [Cloud Storage documentation](/storage/docs/gsutil/addlhelp/WildcardNames) for more information. Note that bucket wildcards are currently not supported. Examples of valid file_patterns: * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir` directory. * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` spanning all subdirectories. * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match `a/*/b` pattern, such as `a/c/b`, `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` You can combine wildcards to provide more powerful matches, for example: * `gs://bucket_name/[a-m]??.j*g` sampleGcsFileSpecs: Output only. Sample files contained in this fileset, not all files contained in this fileset are represented here. """ filePatterns = _messages.StringField(1, repeated=True) sampleGcsFileSpecs = _messages.MessageField('GoogleCloudDatacatalogV1GcsFileSpec', 2, repeated=True) class GoogleCloudDatacatalogV1ListEntriesResponse(_messages.Message): r"""Response message for ListEntries. Fields: entries: Entry details. nextPageToken: Token to retrieve the next page of results. It is set to empty if no items remain in results. """ entries = _messages.MessageField('GoogleCloudDatacatalogV1Entry', 1, repeated=True) nextPageToken = _messages.StringField(2) class GoogleCloudDatacatalogV1ListEntryGroupsResponse(_messages.Message): r"""Response message for ListEntryGroups. Fields: entryGroups: EntryGroup details. nextPageToken: Token to retrieve the next page of results. It is set to empty if no items remain in results. """ entryGroups = _messages.MessageField('GoogleCloudDatacatalogV1EntryGroup', 1, repeated=True) nextPageToken = _messages.StringField(2) class GoogleCloudDatacatalogV1ListTagsResponse(_messages.Message): r"""Response message for ListTags. Fields: nextPageToken: Token to retrieve the next page of results. It is set to empty if no items remain in results. tags: Tag details. """ nextPageToken = _messages.StringField(1) tags = _messages.MessageField('GoogleCloudDatacatalogV1Tag', 2, repeated=True) class GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest(_messages.Message): r"""Request message for RenameTagTemplateField. Fields: newTagTemplateFieldId: Required. The new ID of this tag template field. For example, `my_new_field`. """ newTagTemplateFieldId = _messages.StringField(1) class GoogleCloudDatacatalogV1Schema(_messages.Message): r"""Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema). Fields: columns: Required. Schema of columns. A maximum of 10,000 columns and sub- columns can be specified. """ columns = _messages.MessageField('GoogleCloudDatacatalogV1ColumnSchema', 1, repeated=True) class GoogleCloudDatacatalogV1SearchCatalogRequest(_messages.Message): r"""Request message for SearchCatalog. Fields: orderBy: Specifies the ordering of results, currently supported case- sensitive choices are: * `relevance`, only supports descending * `last_modified_timestamp [asc|desc]`, defaults to descending if not specified If not specified, defaults to `relevance` descending. pageSize: Number of results in the search page. If <=0 then defaults to 10. Max limit for page_size is 1000. Throws an invalid argument for page_size > 1000. pageToken: Optional. Pagination token returned in an earlier SearchCatalogResponse.next_page_token, which indicates that this is a continuation of a prior SearchCatalogRequest call, and that the system should return the next page of data. If empty, the first page is returned. query: Required. The query string in search query syntax. The query must be non-empty. Query strings can be simple as "x" or more qualified as: * name:x * column:x * description:y Note: Query tokens need to have a minimum of 3 characters for substring matching to work correctly. See [Data Catalog Search Syntax](/data-catalog/docs/how-to/search-reference) for more information. scope: Required. The scope of this search request. A `scope` that has empty `include_org_ids`, `include_project_ids` AND false `include_gcp_public_datasets` is considered invalid. Data Catalog will return an error in such a case. """ orderBy = _messages.StringField(1) pageSize = _messages.IntegerField(2, variant=_messages.Variant.INT32) pageToken = _messages.StringField(3) query = _messages.StringField(4) scope = _messages.MessageField('GoogleCloudDatacatalogV1SearchCatalogRequestScope', 5) class GoogleCloudDatacatalogV1SearchCatalogRequestScope(_messages.Message): r"""The criteria that select the subspace used for query matching. Fields: includeGcpPublicDatasets: If `true`, include Google Cloud Platform (GCP) public datasets in the search results. Info on GCP public datasets is available at https://cloud.google.com/public-datasets/. By default, GCP public datasets are excluded. includeOrgIds: The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com /resource-manager/docs/creating-managing-organization. includeProjectIds: The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects. """ includeGcpPublicDatasets = _messages.BooleanField(1) includeOrgIds = _messages.StringField(2, repeated=True) includeProjectIds = _messages.StringField(3, repeated=True) class GoogleCloudDatacatalogV1SearchCatalogResponse(_messages.Message): r"""Response message for SearchCatalog. Fields: nextPageToken: The token that can be used to retrieve the next page of results. results: Search results. """ nextPageToken = _messages.StringField(1) results = _messages.MessageField('GoogleCloudDatacatalogV1SearchCatalogResult', 2, repeated=True) class GoogleCloudDatacatalogV1SearchCatalogResult(_messages.Message): r"""A result that appears in the response of a search request. Each result captures details of one entry that matches the search. Enums: IntegratedSystemValueValuesEnum: Output only. This field indicates the entry's source system that Data Catalog integrates with, such as BigQuery or Cloud Pub/Sub. SearchResultTypeValueValuesEnum: Type of the search result. This field can be used to determine which Get method to call to fetch the full resource. Fields: integratedSystem: Output only. This field indicates the entry's source system that Data Catalog integrates with, such as BigQuery or Cloud Pub/Sub. linkedResource: The full name of the cloud resource the entry belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name. Example: * `//bigquery.googleapis.com/projects/projectId/datasets/data setId/tables/tableId` relativeResourceName: The relative resource name of the resource in URL format. Examples: * `projects/{project_id}/locations/{location_id}/ent ryGroups/{entry_group_id}/entries/{entry_id}` * `projects/{project_id}/tagTemplates/{tag_template_id}` searchResultSubtype: Sub-type of the search result. This is a dot- delimited description of the resource's full type, and is the same as the value callers would provide in the "type" search facet. Examples: `entry.table`, `entry.dataStream`, `tagTemplate`. searchResultType: Type of the search result. This field can be used to determine which Get method to call to fetch the full resource. userSpecifiedSystem: This field indicates the entry's source system that Data Catalog does not integrate with. """ class IntegratedSystemValueValuesEnum(_messages.Enum): r"""Output only. This field indicates the entry's source system that Data Catalog integrates with, such as BigQuery or Cloud Pub/Sub. Values: INTEGRATED_SYSTEM_UNSPECIFIED: Default unknown system. BIGQUERY: BigQuery. CLOUD_PUBSUB: Cloud Pub/Sub. """ INTEGRATED_SYSTEM_UNSPECIFIED = 0 BIGQUERY = 1 CLOUD_PUBSUB = 2 class SearchResultTypeValueValuesEnum(_messages.Enum): r"""Type of the search result. This field can be used to determine which Get method to call to fetch the full resource. Values: SEARCH_RESULT_TYPE_UNSPECIFIED: Default unknown type. ENTRY: An Entry. TAG_TEMPLATE: A TagTemplate. ENTRY_GROUP: An EntryGroup. """ SEARCH_RESULT_TYPE_UNSPECIFIED = 0 ENTRY = 1 TAG_TEMPLATE = 2 ENTRY_GROUP = 3 integratedSystem = _messages.EnumField('IntegratedSystemValueValuesEnum', 1) linkedResource = _messages.StringField(2) relativeResourceName = _messages.StringField(3) searchResultSubtype = _messages.StringField(4) searchResultType = _messages.EnumField('SearchResultTypeValueValuesEnum', 5) userSpecifiedSystem = _messages.StringField(6) class GoogleCloudDatacatalogV1SystemTimestamps(_messages.Message): r"""Timestamps about this resource according to a particular system. Fields: createTime: The creation time of the resource within the given system. expireTime: Output only. The expiration time of the resource within the given system. Currently only apllicable to BigQuery resources. updateTime: The last-modified time of the resource within the given system. """ createTime = _messages.StringField(1) expireTime = _messages.StringField(2) updateTime = _messages.StringField(3) class GoogleCloudDatacatalogV1TableSpec(_messages.Message): r"""Normal BigQuery table spec. Fields: groupedEntry: Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of the date sharded grouped entry, for example, `projects/{project_ id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id} `. Otherwise, `grouped_entry` is empty. """ groupedEntry = _messages.StringField(1) class GoogleCloudDatacatalogV1Tag(_messages.Message): r"""Tags are used to attach custom metadata to Data Catalog resources. Tags conform to the specifications within their tag template. See [Data Catalog IAM](/data-catalog/docs/concepts/iam) for information on the permissions needed to create or view tags. Messages: FieldsValue: Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields. Fields: column: Resources like Entry can have schemas associated with them. This scope allows users to attach tags to an individual column based on that schema. For attaching a tag to a nested column, use `.` to separate the column names. Example: * `outer_column.inner_column` fields: Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields. name: The resource name of the tag in URL format. Example: * projects/{pr oject_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{ent ry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name. template: Required. The resource name of the tag template that this tag uses. Example: * projects/{project_id}/locations/{location}/tagTemplate s/{tag_template_id} This field cannot be modified after creation. templateDisplayName: Output only. The display name of the tag template. """ @encoding.MapUnrecognizedFields('additionalProperties') class FieldsValue(_messages.Message): r"""Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields. Messages: AdditionalProperty: An additional property for a FieldsValue object. Fields: additionalProperties: Additional properties of type FieldsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a FieldsValue object. Fields: key: Name of the additional property. value: A GoogleCloudDatacatalogV1TagField attribute. """ key = _messages.StringField(1) value = _messages.MessageField('GoogleCloudDatacatalogV1TagField', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) column = _messages.StringField(1) fields = _messages.MessageField('FieldsValue', 2) name = _messages.StringField(3) template = _messages.StringField(4) templateDisplayName = _messages.StringField(5) class GoogleCloudDatacatalogV1TagField(_messages.Message): r"""Contains the value and supporting information for a field within a Tag. Fields: boolValue: Holds the value for a tag field with boolean type. displayName: Output only. The display name of this field. doubleValue: Holds the value for a tag field with double type. enumValue: Holds the value for a tag field with enum type. This value must be one of the allowed values in the definition of this enum. order: Output only. The order of this field with respect to other fields in this tag. It can be set in Tag. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential. stringValue: Holds the value for a tag field with string type. timestampValue: Holds the value for a tag field with timestamp type. """ boolValue = _messages.BooleanField(1) displayName = _messages.StringField(2) doubleValue = _messages.FloatField(3) enumValue = _messages.MessageField('GoogleCloudDatacatalogV1TagFieldEnumValue', 4) order = _messages.IntegerField(5, variant=_messages.Variant.INT32) stringValue = _messages.StringField(6) timestampValue = _messages.StringField(7) class GoogleCloudDatacatalogV1TagFieldEnumValue(_messages.Message): r"""Holds an enum value. Fields: displayName: The display name of the enum value. """ displayName = _messages.StringField(1) class GoogleCloudDatacatalogV1TagTemplate(_messages.Message): r"""A tag template defines a tag, which can have one or more typed fields. The template is used to create and attach the tag to GCP resources. [Tag template roles](/iam/docs/understanding-roles#data-catalog-roles) provide permissions to create, edit, and use the template. See, for example, the [TagTemplate User](/data-catalog/docs/how-to/template-user) role, which includes permission to use the tag template to tag resources. Messages: FieldsValue: Required. Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore. Fields: displayName: The display name for this template. Defaults to an empty string. fields: Required. Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore. name: The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id } Note that this TagTemplate and its child resources may not actually be stored in the location in this name. """ @encoding.MapUnrecognizedFields('additionalProperties') class FieldsValue(_messages.Message): r"""Required. Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore. Messages: AdditionalProperty: An additional property for a FieldsValue object. Fields: additionalProperties: Additional properties of type FieldsValue """ class AdditionalProperty(_messages.Message): r"""An additional property for a FieldsValue object. Fields: key: Name of the additional property. value: A GoogleCloudDatacatalogV1TagTemplateField attribute. """ key = _messages.StringField(1) value = _messages.MessageField('GoogleCloudDatacatalogV1TagTemplateField', 2) additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True) displayName = _messages.StringField(1) fields = _messages.MessageField('FieldsValue', 2) name = _messages.StringField(3) class GoogleCloudDatacatalogV1TagTemplateField(_messages.Message): r"""The template for an individual field within a tag template. Fields: displayName: The display name for this field. Defaults to an empty string. isRequired: Whether this is a required field. Defaults to false. name: Output only. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTempla tes/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name. order: The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential. type: Required. The type of value this tag field can contain. """ displayName = _messages.StringField(1) isRequired = _messages.BooleanField(2) name = _messages.StringField(3) order = _messages.IntegerField(4, variant=_messages.Variant.INT32) type = _messages.MessageField('GoogleCloudDatacatalogV1FieldType', 5) class GoogleCloudDatacatalogV1ViewSpec(_messages.Message): r"""Table view specification. Fields: viewQuery: Output only. The query that defines the table view. """ viewQuery = _messages.StringField(1) class Policy(_messages.Message): r"""An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. Optionally, a `binding` can specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project- id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount :my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). Fields: bindings: Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member. etag: `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read- modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. version: Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. """ bindings = _messages.MessageField('Binding', 1, repeated=True) etag = _messages.BytesField(2) version = _messages.IntegerField(3, variant=_messages.Variant.INT32) class SetIamPolicyRequest(_messages.Message): r"""Request message for `SetIamPolicy` method. Fields: policy: REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. """ policy = _messages.MessageField('Policy', 1) class StandardQueryParameters(_messages.Message): r"""Query parameters accepted by all methods. Enums: FXgafvValueValuesEnum: V1 error format. AltValueValuesEnum: Data format for response. Fields: f__xgafv: V1 error format. access_token: OAuth access token. alt: Data format for response. callback: JSONP fields: Selector specifying which fields to include in a partial response. key: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. oauth_token: OAuth 2.0 token for the current user. prettyPrint: Returns response with indentations and line breaks. quotaUser: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. trace: A tracing token of the form "token:<tokenid>" to include in api requests. uploadType: Legacy upload protocol for media (e.g. "media", "multipart"). upload_protocol: Upload protocol for media (e.g. "raw", "multipart"). """ class AltValueValuesEnum(_messages.Enum): r"""Data format for response. Values: json: Responses with Content-Type of application/json media: Media download with context-dependent Content-Type proto: Responses with Content-Type of application/x-protobuf """ json = 0 media = 1 proto = 2 class FXgafvValueValuesEnum(_messages.Enum): r"""V1 error format. Values: _1: v1 error format _2: v2 error format """ _1 = 0 _2 = 1 f__xgafv = _messages.EnumField('FXgafvValueValuesEnum', 1) access_token = _messages.StringField(2) alt = _messages.EnumField('AltValueValuesEnum', 3, default=u'json') callback = _messages.StringField(4) fields = _messages.StringField(5) key = _messages.StringField(6) oauth_token = _messages.StringField(7) prettyPrint = _messages.BooleanField(8, default=True) quotaUser = _messages.StringField(9) trace = _messages.StringField(10) uploadType = _messages.StringField(11) upload_protocol = _messages.StringField(12) class TestIamPermissionsRequest(_messages.Message): r"""Request message for `TestIamPermissions` method. Fields: permissions: The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). """ permissions = _messages.StringField(1, repeated=True) class TestIamPermissionsResponse(_messages.Message): r"""Response message for `TestIamPermissions` method. Fields: permissions: A subset of `TestPermissionsRequest.permissions` that the caller is allowed. """ permissions = _messages.StringField(1, repeated=True) encoding.AddCustomJsonFieldMapping( StandardQueryParameters, 'f__xgafv', '$.xgafv') encoding.AddCustomJsonEnumMapping( StandardQueryParameters.FXgafvValueValuesEnum, '_1', '1') encoding.AddCustomJsonEnumMapping( StandardQueryParameters.FXgafvValueValuesEnum, '_2', '2')
[ "guanzhi97@gmail.com" ]
guanzhi97@gmail.com
193729fe025f3c1a9a71925ec6b0f7dae9c8690c
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_bananas.py
5da6d16ede25e387d2fefa2b110d677e35f5187a
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
#calss header class _BANANAS(): def __init__(self,): self.name = "BANANAS" self.definitions = [u'very silly: ', u'to become extremely angry or excited: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jsondata[obj2] = {} self.jsondata[obj2]['properties'] = self.name.lower() return self.jsondata
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
94be52a0d8e1a98746498a2dbed1d977ed3cb079
adea9fc9697f5201f4cb215571025b0493e96b25
/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs_/admin_group/state/__init__.py
1869bcea9f51acf6ed89daa7254822985966a1df
[ "Apache-2.0" ]
permissive
andyjsharp/napalm-yang
d8a8b51896ef7c6490f011fe265db46f63f54248
ef80ebbfb50e188f09486380c88b058db673c896
refs/heads/develop
2021-09-09T02:09:36.151629
2018-03-08T22:44:04
2018-03-08T22:44:04
114,273,455
0
0
null
2018-03-08T22:44:05
2017-12-14T16:33:35
Python
UTF-8
Python
false
false
362,270
py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.yangtypes import YANGDynClass from pyangbind.lib.yangtypes import ReferenceType from pyangbind.lib.base import PybindBase from decimal import Decimal from bitarray import bitarray import six # PY3 support of some PY2 keywords (needs improved) if six.PY3: import builtins as __builtin__ long = int unicode = str elif six.PY2: import __builtin__ class state(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-network-instance - based on the path /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/isis-neighbor-attribute/neighbors/neighbor/subTLVs/subTLVs/admin-group/state. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: State parameters of sub-TLV 3. """ __slots__ = ('_pybind_generated_by', '_path_helper', '_yang_name', '_extmethods', '__subtlv_type','__admin_group',) _yang_name = 'state' _pybind_generated_by = 'container' def __init__(self, *args, **kwargs): self._path_helper = False self._extmethods = False self.__subtlv_type = YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}},), is_leaf=True, yang_name="subtlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='identityref', is_config=False) self.__admin_group = YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)), is_leaf=False, yang_name="admin-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint32', is_config=False) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path()+[self._yang_name] else: return [u'network-instances', u'network-instance', u'protocols', u'protocol', u'isis', u'levels', u'level', u'link-state-database', u'lsp', u'tlvs', u'tlv', u'isis-neighbor-attribute', u'neighbors', u'neighbor', u'subTLVs', u'subTLVs', u'admin-group', u'state'] def _get_subtlv_type(self): """ Getter method for subtlv_type, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/admin_group/state/subtlv_type (identityref) YANG Description: The type of subTLV being described. The type of subTLV is expressed as a canonical name. """ return self.__subtlv_type def _set_subtlv_type(self, v, load=False): """ Setter method for subtlv_type, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/admin_group/state/subtlv_type (identityref) If this variable is read-only (config: false) in the source YANG file, then _set_subtlv_type is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_subtlv_type() directly. YANG Description: The type of subTLV being described. The type of subTLV is expressed as a canonical name. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}},), is_leaf=True, yang_name="subtlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='identityref', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """subtlv_type must be of a type compatible with identityref""", 'defined-type': "openconfig-network-instance:identityref", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}},), is_leaf=True, yang_name="subtlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='identityref', is_config=False)""", }) self.__subtlv_type = t if hasattr(self, '_set'): self._set() def _unset_subtlv_type(self): self.__subtlv_type = YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}},), is_leaf=True, yang_name="subtlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='identityref', is_config=False) def _get_admin_group(self): """ Getter method for admin_group, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/admin_group/state/admin_group (uint32) YANG Description: The administrative group sub-TLV contains a 4-octet bit mask assigned by the network administrator. Each set bit corresponds to one administrative group assigned to the interface. By convention, the least significant bit is referred to as group 0, and the most significant bit is referred to as group 31. """ return self.__admin_group def _set_admin_group(self, v, load=False): """ Setter method for admin_group, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/admin_group/state/admin_group (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_admin_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_admin_group() directly. YANG Description: The administrative group sub-TLV contains a 4-octet bit mask assigned by the network administrator. Each set bit corresponds to one administrative group assigned to the interface. By convention, the least significant bit is referred to as group 0, and the most significant bit is referred to as group 31. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)), is_leaf=False, yang_name="admin-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint32', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """admin_group must be of a type compatible with uint32""", 'defined-type': "uint32", 'generated-type': """YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)), is_leaf=False, yang_name="admin-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint32', is_config=False)""", }) self.__admin_group = t if hasattr(self, '_set'): self._set() def _unset_admin_group(self): self.__admin_group = YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)), is_leaf=False, yang_name="admin-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint32', is_config=False) subtlv_type = __builtin__.property(_get_subtlv_type) admin_group = __builtin__.property(_get_admin_group) _pyangbind_elements = {'subtlv_type': subtlv_type, 'admin_group': admin_group, } class state(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-network-instance-l2 - based on the path /network-instances/network-instance/protocols/protocol/isis/levels/level/link-state-database/lsp/tlvs/tlv/isis-neighbor-attribute/neighbors/neighbor/subTLVs/subTLVs/admin-group/state. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: State parameters of sub-TLV 3. """ __slots__ = ('_pybind_generated_by', '_path_helper', '_yang_name', '_extmethods', '__subtlv_type','__admin_group',) _yang_name = 'state' _pybind_generated_by = 'container' def __init__(self, *args, **kwargs): self._path_helper = False self._extmethods = False self.__subtlv_type = YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}},), is_leaf=True, yang_name="subtlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='identityref', is_config=False) self.__admin_group = YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)), is_leaf=False, yang_name="admin-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint32', is_config=False) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path()+[self._yang_name] else: return [u'network-instances', u'network-instance', u'protocols', u'protocol', u'isis', u'levels', u'level', u'link-state-database', u'lsp', u'tlvs', u'tlv', u'isis-neighbor-attribute', u'neighbors', u'neighbor', u'subTLVs', u'subTLVs', u'admin-group', u'state'] def _get_subtlv_type(self): """ Getter method for subtlv_type, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/admin_group/state/subtlv_type (identityref) YANG Description: The type of subTLV being described. The type of subTLV is expressed as a canonical name. """ return self.__subtlv_type def _set_subtlv_type(self, v, load=False): """ Setter method for subtlv_type, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/admin_group/state/subtlv_type (identityref) If this variable is read-only (config: false) in the source YANG file, then _set_subtlv_type is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_subtlv_type() directly. YANG Description: The type of subTLV being described. The type of subTLV is expressed as a canonical name. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}},), is_leaf=True, yang_name="subtlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='identityref', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """subtlv_type must be of a type compatible with identityref""", 'defined-type': "openconfig-network-instance:identityref", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}},), is_leaf=True, yang_name="subtlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='identityref', is_config=False)""", }) self.__subtlv_type = t if hasattr(self, '_set'): self._set() def _unset_subtlv_type(self): self.__subtlv_type = YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV223_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV237_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV242_SR_CAPABILITY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_PREFIX_FLAGS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV222_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV23_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_IPV4_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_ADMIN_GROUP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_LINK_DELAY_VARIATION': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_IPV6_INTERFACE_ADDRESS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV235_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_ADJ_LAN_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV135_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV236_TAG': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_LINK_LOSS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_AVAILABLE_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV141_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_LINK_PROTECTION_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV135_IPV6_ROUTER_ID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV236_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV222_UNRESERVED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'TLV22_UTILIZED_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'ISIS_TLV242_SUBTLVS_TYPE': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV236_TAG64': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}, u'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@namespace': u'http://openconfig.net/yang/isis-lsdb-types', '@module': u'openconfig-isis-lsdb-types'}},), is_leaf=True, yang_name="subtlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='identityref', is_config=False) def _get_admin_group(self): """ Getter method for admin_group, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/admin_group/state/admin_group (uint32) YANG Description: The administrative group sub-TLV contains a 4-octet bit mask assigned by the network administrator. Each set bit corresponds to one administrative group assigned to the interface. By convention, the least significant bit is referred to as group 0, and the most significant bit is referred to as group 31. """ return self.__admin_group def _set_admin_group(self, v, load=False): """ Setter method for admin_group, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/admin_group/state/admin_group (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_admin_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_admin_group() directly. YANG Description: The administrative group sub-TLV contains a 4-octet bit mask assigned by the network administrator. Each set bit corresponds to one administrative group assigned to the interface. By convention, the least significant bit is referred to as group 0, and the most significant bit is referred to as group 31. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)), is_leaf=False, yang_name="admin-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint32', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """admin_group must be of a type compatible with uint32""", 'defined-type': "uint32", 'generated-type': """YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)), is_leaf=False, yang_name="admin-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint32', is_config=False)""", }) self.__admin_group = t if hasattr(self, '_set'): self._set() def _unset_admin_group(self): self.__admin_group = YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)), is_leaf=False, yang_name="admin-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint32', is_config=False) subtlv_type = __builtin__.property(_get_subtlv_type) admin_group = __builtin__.property(_get_admin_group) _pyangbind_elements = {'subtlv_type': subtlv_type, 'admin_group': admin_group, }
[ "dbarrosop@dravetech.com" ]
dbarrosop@dravetech.com
4c7d34cab8e0809dd3e4b61828e891a790c80f34
90f7253957e25105950c2a0305033c14302237bb
/encapsulation/exercise/pizza_calories/project/topping.py
652473d33ba12823fdc496424478646c1607281e
[]
no_license
DeanDupalov/Softuni-Python-OOP
a4f010a7a218d4cdd466e2158dcea2e861304627
72fb3f00991419ef55f6c53101edba7fbb84746b
refs/heads/master
2023-04-01T01:59:50.441918
2021-04-12T18:47:56
2021-04-12T18:47:56
340,356,051
1
1
null
null
null
null
UTF-8
Python
false
false
492
py
class Topping: topping_type: str weight: float def __init__(self, topping_type, weight): self.topping_type = topping_type self.weight = weight @property def topping_type(self): return self.__topping_type @topping_type.setter def topping_type(self, value): self.__topping_type = value @property def weight(self): return self.__weight @weight.setter def weight(self, value): self.__weight = value
[ "75751527+DeanDupalov@users.noreply.github.com" ]
75751527+DeanDupalov@users.noreply.github.com
bbf11456a422f642b88c670ac1315b8d736a4d2d
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/gos_20200614060327.py
43b8bc11b0159debb65da784dff5c6138f57f685
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
4,895
py
# # Імпорт фажливих бібліотек # from BeautifulSoup import BeautifulSoup # import urllib2 # import re # # Створення функції пошуку силок # def getLinks(url): # # отримання та присвоєння контенту сторінки в змінну # html_page = urllib2.urlopen(url) # # Перетворення контенту в обєкт бібліотеки BeautifulSoup # soup = BeautifulSoup(html_page) # # створення пустого масиву для лінків # links = [] # # ЗА ДОПОМОГОЮ ЧИКЛУ ПРОХЛДИМСЯ ПО ВСІХ ЕЛЕМЕНТАХ ДЕ Є СИЛКА # for link in soup.findAll('a', attrs={'href': re.compile("^http://")}): # # Додаємо всі силки в список # links.append(link.get('href')) # # повертаємо список # return links # ----------------------------------------------------------------------------------------------------------- # # # Імпорт фажливих бібліотек # import subprocess # # Створення циклу та використання функції range для генерації послідовних чисел # for ping in range(1,10): # # генерування IP адреси базуючись на номері ітерації # address = "127.0.0." + str(ping) # # виклик функції call яка робить запит на IP адрес та запис відповіді в змінну # res = subprocess.call(['ping', '-c', '3', address]) # # За допомогою умовних операторів перевіряємо відповідь та виводимо результат # if res == 0: # print "ping to", address, "OK" # elif res == 2: # print "no response from", address # else: # print "ping to", address, "failed!" # ----------------------------------------------------------------------------------------------------------- # # Імпорт фажливих бібліотек # import requests # # Ітеруємося по масиву з адресами зображень # for i, pic_url in enumerate(["http://x.com/nanachi.jpg", "http://x.com/nezuko.jpg"]): # # Відкриваємо файл базуючись на номері ітерації # with open('pic{0}.jpg'.format(i), 'wb') as handle: # # Отримуємо картинку # response = requests.get(pic_url, stream=True) # # Використовуючи умовний оператор перевіряємо чи успішно виконався запит # if not response.ok: # print(response) # # Ітеруємося по байтах картинки та записуємо батчаси в 1024 до файлу # for block in response.iter_content(1024): # # Якщо байти закінчилися, завершуємо алгоритм # if not block: # break # # Записуємо байти в файл # handle.write(block) # ----------------------------------------------------------------------------------------------------------- # Створюємо клас для рахунку class Bank_Account: # В конструкторі ініціалізуємо рахунок як 0 def __init__(self): self.balance=0 print("Hello!!! Welcome to the Deposit & Withdrawal Machine") # В методі депозит, використовуючи функцію input() просимо ввести суму поповенння та додаємо цю суму до рахунку def deposit(self): amount=float(input("Enter amount to be Deposited: ")) self.balance += amount print("\n Amount Deposited:",amount) # В методі депозит, використовуючи функцію input() просимо ввести суму отримання та віднімаємо цю суму від рахунку def withdraw(self): amount = float(input("Enter amount to be Withdrawn: ")) # За допомогою умовного оператора перевіряємо чи достатнього грошей на рахунку if self.balance>=amount: self.balance-=amount print("\n You Withdrew:", amount) else: print("\n Insufficient balance ") # Виводимо бааланс на екран def display(self): print("\n Net Available Balance=",self.balance) # Driver code # creating an object of class s = Bank_Account() # Calling functions with that class object s.deposit() s.withdraw() s.display()
[ "yevheniira@intelink-ua.com" ]
yevheniira@intelink-ua.com
18ba6200a6df7e620bdb37d52e470e7c9cb06db9
3cf66bb76a6d8bef1c1945c1bdef0b16254e3470
/windows/lng_window.py
465c49a000104327cab11d89164f44f5319f7d1b
[]
no_license
DmitryChitalov/OpenFOAM_decompose_GUI
f055b6d24c90dab07140713960003107d72aea1c
fd614b2c77df327588809fccbc7a233ce59c1688
refs/heads/master
2020-04-17T17:08:38.821276
2019-01-21T07:57:50
2019-01-21T07:57:50
166,770,899
0
0
null
null
null
null
UTF-8
Python
false
false
4,683
py
# -*- coding: utf-8 -*- # -------------------------------Импорт модулей----------------------------------# from PyQt5 import QtCore from PyQt5 import QtSql from PyQt5 import QtGui import shutil import sys import re import os import os.path from PyQt5.QtWidgets import QWidget, QFileDialog, QLineEdit, QLabel, \ QHBoxLayout, QLineEdit, QPushButton, QGridLayout, \ QFrame, QVBoxLayout, QFormLayout, QRadioButton, QDockWidget from windows.bMD_window import bmd_window_class # ---------------------------Главная форма проекта-------------------------------# class lng_form_class(QWidget): def __init__(self, parent=None): QWidget.__init__(self, parent) self.setWindowFlags(QtCore.Qt.Dialog | QtCore.Qt.WindowSystemMenuHint) self.setWindowModality(QtCore.Qt.WindowModal) global par par = parent global int_lng int_lng = par.interface_lng_val # ------------------------------------Первый блок формы--------------------------------------# self.lng_label = QLabel() self.lng_lbl_hbox = QHBoxLayout() self.lng_lbl_hbox.addWidget(self.lng_label) self.ru_radio = QRadioButton("Ru") self.en_radio = QRadioButton("En") self.lng_grid = QGridLayout() self.lng_grid.addWidget(self.ru_radio, 0, 0) self.lng_grid.addWidget(self.en_radio, 1, 0) self.lng_frame = QFrame() self.lng_frame.setFrameShape(QFrame.Panel) self.lng_frame.setFrameShadow(QFrame.Sunken) self.lng_frame.setLayout(self.lng_grid) self.lng_hbox = QVBoxLayout() self.lng_hbox.addWidget(self.lng_frame) # ---------------------Кнопки сохранения и отмены и их блок-------------------------# self.save_button = QPushButton() self.save_button.setFixedSize(80, 25) self.save_button.clicked.connect(self.on_save_clicked) self.cancel_button = QPushButton() self.cancel_button.setFixedSize(80, 25) self.cancel_button.clicked.connect(self.on_cancel_clicked) self.buttons_hbox = QHBoxLayout() self.buttons_hbox.addWidget(self.save_button) self.buttons_hbox.addWidget(self.cancel_button) # -------------------------Фрейм формы---------------------------# self.form_grid = QGridLayout() self.form_grid.addLayout(self.lng_lbl_hbox, 0, 0, alignment=QtCore.Qt.AlignCenter) self.form_grid.addLayout(self.lng_hbox, 1, 0, alignment=QtCore.Qt.AlignCenter) self.form_grid.addLayout(self.buttons_hbox, 2, 0, alignment=QtCore.Qt.AlignCenter) self.form_frame = QFrame() self.form_frame.setStyleSheet(open("./styles/properties_form_style.qss","r").read()) self.form_frame.setLayout(self.form_grid) self.form_vbox = QVBoxLayout() self.form_vbox.addWidget(self.form_frame) # --------------------Размещение на форме всех компонентов---------# self.form = QFormLayout() self.form.addRow(self.form_vbox) self.setLayout(self.form) # --------------------Определяем параметры интерфейса окна---------# if int_lng == 'Russian': self.lng_label.setText("Выберите язык интерфейса программы") self.save_button.setText("Сохранить") self.cancel_button.setText("Отмена") self.ru_radio.setChecked(True) elif int_lng == 'English': self.lng_label.setText("Select the interface language for the program") self.save_button.setText("Save") self.cancel_button.setText("Cancel") self.en_radio.setChecked(True) # ------------------------Функции связанные с формой-----------------------------# # ....................Функция, запускаемая при нажатии кнопки "сохранить"....................# def on_save_clicked(self): if self.ru_radio.isChecked() == True: interface_lng = 'Russian' elif self.en_radio.isChecked() == True: interface_lng = 'English' while par.tdw_grid.count(): item = par.tdw_grid.takeAt(0) widget = item.widget() widget.deleteLater() fsw_default = QLabel() par.fsw.setWidget(fsw_default) par.fsw.setTitleBarWidget(fsw_default) ffw_default = QLabel() par.ffw.setWidget(ffw_default) par.ffw.setTitleBarWidget(ffw_default) serv_mes_default = QLabel() par.serv_mes.setWidget(serv_mes_default) par.serv_mes.setTitleBarWidget(serv_mes_default) cdw_default = QLabel() par.cdw.setWidget(cdw_default) par.cdw.setTitleBarWidget(cdw_default) par.on_lng_get(interface_lng) self.close() # .....................Функция, запускаемая при нажатии кнопки "отмена"......................# def on_cancel_clicked(self): self.close()
[ "cdi9@yandex.ru" ]
cdi9@yandex.ru
ed215734cf4c04b73afad4971cafa935f9826513
3a533d1503f9a1c767ecd3a29885add49fff4f18
/saleor/graphql/checkout/tests/deprecated/test_checkout_shipping_method_update.py
fefe034680a4ce74d3b921d68f0758228e883437
[ "BSD-3-Clause" ]
permissive
jonserna/saleor
0c1e4297e10e0a0ce530b5296f6b4488f524c145
b7d1b320e096d99567d3fa7bc4780862809d19ac
refs/heads/master
2023-06-25T17:25:17.459739
2023-06-19T14:05:41
2023-06-19T14:05:41
186,167,599
0
0
BSD-3-Clause
2019-12-29T15:46:40
2019-05-11T18:21:31
TypeScript
UTF-8
Python
false
false
7,594
py
from unittest.mock import patch import graphene from .....checkout.error_codes import CheckoutErrorCode from .....checkout.fetch import ( fetch_checkout_info, fetch_checkout_lines, get_delivery_method_info, ) from .....plugins.manager import get_plugins_manager from .....shipping.utils import convert_to_shipping_method_data from ....tests.utils import get_graphql_content MUTATION_UPDATE_SHIPPING_METHOD = """ mutation checkoutShippingMethodUpdate( $checkoutId: ID, $token: UUID, $shippingMethodId: ID!){ checkoutShippingMethodUpdate( checkoutId: $checkoutId, token: $token, shippingMethodId: $shippingMethodId ) { errors { field message code } checkout { id token } } } """ @patch( "saleor.graphql.checkout.mutations.checkout_shipping_method_update." "clean_delivery_method" ) def test_checkout_shipping_method_update_by_id( mock_clean_shipping, staff_api_client, shipping_method, checkout_with_item_and_shipping_method, ): checkout = checkout_with_item_and_shipping_method old_shipping_method = checkout.shipping_method query = MUTATION_UPDATE_SHIPPING_METHOD mock_clean_shipping.return_value = True checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk) method_id = graphene.Node.to_global_id("ShippingMethod", shipping_method.id) response = staff_api_client.post_graphql( query, {"checkoutId": checkout_id, "shippingMethodId": method_id} ) data = get_graphql_content(response)["data"]["checkoutShippingMethodUpdate"] checkout.refresh_from_db() manager = get_plugins_manager() lines, _ = fetch_checkout_lines(checkout) checkout_info = fetch_checkout_info(checkout, lines, manager) checkout_info.delivery_method_info = get_delivery_method_info( convert_to_shipping_method_data( old_shipping_method, old_shipping_method.channel_listings.first() ), None, ) mock_clean_shipping.assert_called_once_with( checkout_info=checkout_info, lines=lines, method=convert_to_shipping_method_data( shipping_method, shipping_method.channel_listings.first() ), ) errors = data["errors"] assert not errors assert data["checkout"]["id"] == checkout_id assert checkout.shipping_method == shipping_method @patch( "saleor.graphql.checkout.mutations.checkout_shipping_method_update." "clean_delivery_method" ) def test_checkout_shipping_method_update_by_token( mock_clean_shipping, staff_api_client, shipping_method, checkout_with_item_and_shipping_method, ): checkout = checkout_with_item_and_shipping_method old_shipping_method = checkout.shipping_method query = MUTATION_UPDATE_SHIPPING_METHOD mock_clean_shipping.return_value = True checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk) method_id = graphene.Node.to_global_id("ShippingMethod", shipping_method.id) response = staff_api_client.post_graphql( query, {"token": checkout.token, "shippingMethodId": method_id} ) data = get_graphql_content(response)["data"]["checkoutShippingMethodUpdate"] checkout.refresh_from_db() manager = get_plugins_manager() lines, _ = fetch_checkout_lines(checkout) checkout_info = fetch_checkout_info(checkout, lines, manager) checkout_info.delivery_method_info = get_delivery_method_info( convert_to_shipping_method_data( old_shipping_method, old_shipping_method.channel_listings.first() ), None, ) mock_clean_shipping.assert_called_once_with( checkout_info=checkout_info, lines=lines, method=convert_to_shipping_method_data( shipping_method, shipping_method.channel_listings.first() ), ) errors = data["errors"] assert not errors assert data["checkout"]["id"] == checkout_id assert checkout.shipping_method == shipping_method @patch( "saleor.graphql.checkout.mutations.checkout_shipping_method_update." "clean_delivery_method" ) def test_checkout_shipping_method_update_neither_token_and_id_given( mock_clean_shipping, staff_api_client, checkout_with_item, shipping_method ): query = MUTATION_UPDATE_SHIPPING_METHOD mock_clean_shipping.return_value = True method_id = graphene.Node.to_global_id("ShippingMethod", shipping_method.id) response = staff_api_client.post_graphql(query, {"shippingMethodId": method_id}) data = get_graphql_content(response)["data"]["checkoutShippingMethodUpdate"] assert len(data["errors"]) == 1 assert not data["checkout"] assert data["errors"][0]["code"] == CheckoutErrorCode.GRAPHQL_ERROR.name @patch( "saleor.graphql.checkout.mutations.checkout_shipping_method_update." "clean_delivery_method" ) def test_checkout_shipping_method_update_both_token_and_id_given( mock_clean_shipping, staff_api_client, checkout_with_item, shipping_method ): checkout = checkout_with_item query = MUTATION_UPDATE_SHIPPING_METHOD mock_clean_shipping.return_value = True checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk) method_id = graphene.Node.to_global_id("ShippingMethod", shipping_method.id) response = staff_api_client.post_graphql( query, { "checkoutId": checkout_id, "token": checkout_with_item.token, "shippingMethodId": method_id, }, ) data = get_graphql_content(response)["data"]["checkoutShippingMethodUpdate"] assert len(data["errors"]) == 1 assert not data["checkout"] assert data["errors"][0]["code"] == CheckoutErrorCode.GRAPHQL_ERROR.name @patch( "saleor.graphql.checkout.mutations.checkout_shipping_method_update." "clean_delivery_method" ) def test_checkout_shipping_method_update_by_id_no_checkout_metadata( mock_clean_shipping, staff_api_client, shipping_method, checkout_with_item_and_shipping_method, ): # given checkout = checkout_with_item_and_shipping_method old_shipping_method = checkout.shipping_method query = MUTATION_UPDATE_SHIPPING_METHOD mock_clean_shipping.return_value = True checkout.metadata_storage.delete() checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk) method_id = graphene.Node.to_global_id("ShippingMethod", shipping_method.id) # when response = staff_api_client.post_graphql( query, {"checkoutId": checkout_id, "shippingMethodId": method_id} ) # then data = get_graphql_content(response)["data"]["checkoutShippingMethodUpdate"] checkout.refresh_from_db() manager = get_plugins_manager() lines, _ = fetch_checkout_lines(checkout) checkout_info = fetch_checkout_info(checkout, lines, manager) checkout_info.delivery_method_info = get_delivery_method_info( convert_to_shipping_method_data( old_shipping_method, old_shipping_method.channel_listings.first() ), None, ) mock_clean_shipping.assert_called_once_with( checkout_info=checkout_info, lines=lines, method=convert_to_shipping_method_data( shipping_method, shipping_method.channel_listings.first() ), ) errors = data["errors"] assert not errors assert data["checkout"]["id"] == checkout_id assert checkout.shipping_method == shipping_method
[ "noreply@github.com" ]
jonserna.noreply@github.com
baaf820ec0fcbd83caa164ba770029f08a8807d2
cdc91518212d84f3f9a8cd3516a9a7d6a1ef8268
/python/datetime_challenge.py
bc3a461215b59792b81ebf39cce8d3f3e6e83ede
[]
no_license
paulfranco/code
1a1a316fdbe697107396b98f4dfe8250b74b3d25
10a5b60c44934d5d2788d9898f46886b99bd32eb
refs/heads/master
2021-09-20T14:00:35.213810
2018-08-10T06:38:40
2018-08-10T06:38:40
112,060,914
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
# naive is a datetime with no timezone. # Create a new timezone for US/Pacific, which is 8 hours behind UTC (UTC-08:00). # Then make a new variable named hill_valley that is naive with its tzinfo attribute replaced with the US/Pacific timezone you made. import datetime naive = datetime.datetime(2015, 10, 21, 4, 29) usPacific = datetime.timezone(datetime.timedelta(hours=-8)) hill_valley = datetime.datetime(2014,4,21,9, tzinfo=usPacific)
[ "paulfranco@me.com" ]
paulfranco@me.com
69cd43cc3e8ef89b3ae1d6c3dd0b744a9b55028a
f5171b8711f471106207ba35ac0a73ce4e744ff9
/modules/automation/core/lib/rw_checks.py
eb323acf285a9d0674107309b61bc5c306d690ee
[ "Apache-2.0" ]
permissive
RIFTIO/RIFT.ware
94d3a34836a04546ea02ec0576dae78d566dabb3
d65a23ac2563a43f11e64a862e9bda4362a82e30
refs/heads/master
2020-05-21T14:07:31.092287
2016-12-08T15:38:03
2016-12-08T15:38:03
52,545,688
9
8
null
null
null
null
UTF-8
Python
false
false
23,705
py
# # Copyright 2016 RIFT.IO Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ''' Description: Constants, functions, classes for common environment checks. Can be invoked from testing or operational code. Version: 0.1 Creation Date: May 23, 2014 Author: Andrew Golovanov License: RIFTio, Inc. How to add new checks: --------------------- - create a new subclass of the _chkBase class - create a description of the check (as a doc string under the class' header) - override chkEnv() and optionally fixEnv() methods (see the descriptions in the _chkBase class for details) - if methods of your subclass use optional arguments (passed in to the __call__ method and saved in the self.args data member), make sure you document those additional arguments for users in the description of your subclass Communicating with local vs. remote hosts: ----------------------------------------- Same checks may need to be applicable on local and (in other cases) on remote hosts. To facilitate such versatility, the _chkBase class provides special method "talk" which hides communication details with a host and can send shell commands and receive responses to/from either the local host or the remote host depending on the "ses" argument provided by instantiating the subclass. You should use the talk method in your re-defined subclass methods getEnv and fixEnv if you need to have your checks working with both local and remote hosts. Debugging new checks: -------------------- If command line contains -DEBUG option, then the flag DBGMODE is set to True, and this activates extra logging for every command and response in the talk method. In addition, you may use the DBGMODE flag to provide increased output from the subclasses. ''' #--- EXTERNAL MODULES import sys, re, subprocess as sbpr #--- CONSTANTS DBGMODE = '-DEBUG' in sys.argv DBGPREF = '[***DEBUG***] {}' #--- BASE CHECK CLASS class _chkBase(object): ''' A base check template. This class is supposed to be subclassed, and the corresponding methods need to be overridden to implement the specifics of a particulat check. Basic workflow supported by this class: 2. chkEnv(): check environment against some expected conditions 3. fixEnv(): try to change environment if the previous step failed and make sure that the check has eventually succeeded If chkEnv() is not overridden in the subclass: - the check is considered not implemented If fixEnv() is not overridden in the subclass: - this is a read-only (passive) check that verifies but does not change the environment If both methods are overridden in the subclass: - this is a forcing (active) check that tries to change the environment Usage: ----- To use any checks based on this class, call instance of the subclass, for example: myCheck(ses=sesObj)() Within the first pair of parentheses you may provide non-default arguments passed in to the constructor. Within the second pair of parentheses you may provide optional arguments that will be saved as a tuple in the self.args data member and can be used in the methods of subclass. Return: ------ This call will return True if the check succeeded or False otherwise. It may raise exceptions if the check is not implemented, or some input arguments to the constructor are wrong, or if an exception was intentionally raised in the methods of subclass. Fix Flag: -------- Sometimes the calling script needs to know whether actual changes ("fix") were made in fixEnv method of this check. The data member self.fix is True when actual changes were made and False if there were no changes. To get this information use slightly different pattern: o = myCheck() # initialize the check o() # execute the check if o.fix is True: ... do something here ... ''' def chkEnv(self): ''' === This method is supposed to be overridden from a subclass. === Performs checks on the data retrieved from environment. If not overridden, will immediately raise an exception. If overridden, must have the following signature: Arguments: none Return: True if the check succeeded or False otherwise, ''' raise Exception('{} not implemented'.format(self.pref)) def fixEnv(self): ''' === This method is supposed to be overridden from a subclass. === This method tries to change the environment in order to make the check pass. If not overridden, this method returns False because it is called only when the previous step (chkEnv) has indicated a failure and the default implementation of this method does not know how to fix the issue in the general case. If overridden, must have the following signature: Arguments: none Return: True if fix needs to be confirmed with an additional check or False otherwise Note: don't forget to set self.fix to True if actual changes to the environment were made ''' return False def __init__(self, log=True, ses=None, sesPrmpt=None): ''' Arguments: log - defines logging of major steps from this class only (i.e. subclass can use its own explicit logging): None - no logging from this class True - use the standard print function for logging <object> - an external logging function that takes a single string argument (a message string) ses - defines the communications with the host where the environment is retrieved from: None - communicate with the local host via subprocess <object> - an opened session object to the remote host; currently following types of remote sessions are supported: - pexpect.spawn sesPrmpt - optional prompt that indicates the end of output after executing every command on the remote host; if not specified, the standard bash shell prompt will be used instead ''' # Save constructor arguments for use in sub-checks # that may be called from within this class self._args = (log, ses, sesPrmpt) # Logging self.pref = 'Check "{}":'.format(self.__class__.__name__) if DBGMODE: self.dprf = DBGPREF.format(self.pref) if log not in (True, None) and not callable(log): raise Exception('{} invalid value of the "log" argument: {} (type: {})'.format( self.pref, str(log), type(log))) self.__logfunc = log # Session if ses and not (hasattr(ses, 'expect_list') and hasattr(ses, 'sendline')): raise Exception('{} unsupported session type "{}"'.format(type(ses))) self.__ses = ses # Session prompt if ses: self.__sesPrmpt = [re.compile(sesPrmpt) if sesPrmpt else re.compile('(?m)^[^$\n]*[$](?!\S) ?')] else: self.__sesPrmpt = None # Fix flag self.fix = False def __call__(self, *args): ''' Implements basic workflow. Arguments: args - this tuple of optional positional arguments is saved "as is" in the data member self.args and can be used in the methods of subclass; one use case for these optional arguments may be passing expected values to the chkEnv method; note that it is completely up to the subclass methods how these arguments are used ''' self.args = args res = self.chkEnv() # Perform the check(s) if res is True: self.log('{} succeeded'.format(self.pref)) else: self.log('{} failed'.format(self.pref)) if self.fixEnv() is True: # Try to fix res = self.chkEnv() # Perform the second check self.log('{} fix {}'.format(self.pref, 'succeeded' if res is True else 'failed')) return res def log(self, msg): ''' This method performs logging from this class and also can be used in subclasses. ''' if self.__logfunc: if callable(self.__logfunc): self.__logfunc('{}\n'.format(msg)) else: print(msg) def talk(self, cmd, sesPrmpt=None, tmOut=None, strip=True): ''' This method sends a command to and receives (and returns) a response from either the local or a remote host depending on the session object provided by instantiating the class. This method may be used in subclass methods to communicate with either the local or a remote host (in the universal way). Arguments: cmd - command to execute on the host sesPrmpt - optional prompt that indicates the end of output after executing the command on the remote host (ignored when the command is executed on the local host); if None, then the prompt defined in the constructor will be used tmOut - optional max timeout (secs) when waiting for the prompt after executing the command on the remote host (ignored when the command is executed on the local host); if None, a default session timeout will be used strip - if True, strip whitespaces on both sides of the output string Return: output received after executing the command Exceptions: this method may also return exception if the command timed out on the remote host or returned non-zero exit status on the local host ''' ses = self.__ses if DBGMODE: self.log('{} Using {} host\n{} Request: "{}"'.format(self.dprf, 'remote' if ses else 'local', self.dprf, cmd)) if ses: # For remote host currently assuming pexpect session only ses.sendline(cmd) ses.expect_list( self.__sesPrmpt if sesPrmpt is None else [re.compile(sesPrmpt)], -1 if tmOut is None else float(tmOut)) res = ses.before.partition('\n')[2] else: # Local host res = sbpr.check_output(cmd, shell=True) if DBGMODE: self.log('{} Response: "{}"'.format(self.dprf, res)) return res.strip() if strip else res def _chkArgs(self, argn=None, softCheck=True): ''' Auxiliary method to raise exception when check requires additional arguments and there were none provided. Arguments: argn - optional number of required arguments; if None, no check by this parameter softCheck - if True, argn is considered a minimally required number of arguments; if False, argn is considered as the exact number of required arguments ''' if argn is None: if not self.args: raise Exception('{} missing argument(s)'.format(self.pref)) else: txt = None if softCheck and len(self.args) < int(argn): txt = '>= ' if not softCheck and len(self.args) != int(argn): txt = '' if txt is not None: raise Exception('{} invalid number of arguments: expected {}{}, got {}'.format(self.pref, txt, argn, len(self.args))) #-------------------------------------------------------------------------------- #--- IMPLEMENTED CHECKS (SUBCLASSES OF _chkBase) #-------------------------------------------------------------------------------- #--- OS Checks class chkOsSudo(_chkBase): ''' Simplest possible check that confirms that current user does have sudo permissions. This is a passive check as it does not have the "fix" part. Additional arguments: none Usage example: chkOsSudo()() ''' def chkEnv(self): try: r = 'Sorry' not in self.talk('sudo -v 2>&1') except: r = False return r class chkOsRelease(_chkBase): ''' Verify that the output from "uname -r" () contains one or more specific substrings. Note this check illustrates how to use extra arguments. Additional arguments: one or multiple strings to lookup in the output of "uname -r"; if multiple strings are provided, check succeeds if any of them was found in the output of "uname -r" Usage example: chkKernelRelease()('fc20', 'el6') ''' def chkEnv(self): self._chkArgs(1) # Arguments are required by this check skrn = map(str, self.args) su = self.talk('uname -r') for s in skrn: res = s in su if res: break return res class chkOsCpuVendor(_chkBase): ''' Verify that the CPU info contains a particular vendor ID. Additional arguments: an expected vendor ID string Usage example: chkCpuVendor()('GenuineIntel') ''' def chkEnv(self): self._chkArgs(1, False) # Arguments are required by this check cv = self.talk('cat /proc/cpuinfo | grep vendor_id | uniq') return str(self.args[0]) in cv.partition(':')[2] class chkOsPkgs(_chkBase): ''' Verify that required packages are installed. If not, will try to install them via yum. Note that the fix requires sudo permissions and will raise an exception otherwise. Additional arguments: one or more package names Usage example: chkOsPkgs()('qemu', 'qemu-kvm-tools', 'libvirt-daemon-qemu') ''' def chkEnv(self): self._chkArgs(1) # Arguments are required by this check self.missPkgs = self.talk('rpm -q {} | grep "not installed" | gawk "{}"'.format( ' '.join(self.args), '{print \$2}')).split() self.missPkgs = ' '.join(self.missPkgs) if DBGMODE: self.log('{} Missing packages: {}'.format(self.dprf, self.missPkgs)) return not self.missPkgs def fixEnv(self): if chkOsSudo(*self._args)() is False: raise Exception('No sudo permission for the user to fix this check') try: r = self.talk('sudo yum -y install {}'.format(self.missPkgs), sesPrmpt='Complete!') self.fix = True if DBGMODE: self.log('{} {}'.format(self.dprf, r)) except Exception as e: if DBGMODE: self.log('{} {}'.format(self.dprf, str(e))) r = None return r is not None class chkOsFaclUsr(_chkBase): ''' Set file access control for a specified user, permission and path. This "check" fails if the user has no permissions for this operation. Note this is not a real check because it immediately tries to provide the fix even within the chkEnv method. Additional arguments (3): username, permission ('r', 'w', 'x'), pathname Usage example: chkOsFaclUsr()('qemu', 'x', '/root') ''' def chkEnv(self): self._chkArgs(3, False) # Arguments are required by this check try: r = self.talk('setfacl -m u:{}:{} {}'.format(*self.args)) if DBGMODE: self.log('{} {}'.format(self.dprf, r)) except Exception as e: if DBGMODE: self.log('{} {}'.format(self.dprf, str(e))) r = None return r is not None class chkOsNuma(_chkBase): ''' Verify that NUMA is supported by the OS/BIOS: compares a number of sockets vs. a number of numa nodes and makes sure that this number is non-zero. Additional arguments(1): optional: any non-zero value which evaluates to True if the number of numa nodes should be discovered via lscpu instead of lstopo (which is the default way) Usage example: chkOsNuma()() ''' def chkEnv(self): sn = self.talk('lscpu | grep Socket | gawk "{}"'.format('{print \$2}')) nodeCmd = 'lscpu | grep "NUMA node(s)" | gawk "{}"'.format('{print \$3}') \ if len(self.args) > 0 and self.args[0] else 'lstopo 2> /dev/null | grep -i numanode | wc -l' nn = self.talk(nodeCmd) r = sn == nn if r: if int(sn) <= 0: r = False self.log('{} number of CPU sockets ({}) is not positive'.format(self.pref, sn)) else: self.log('\n{} '.format(self.pref).join(( 'NUMA node count ({}), does not match the socket count ({})'.format(nn, sn), 'Update the BIOS setting "NUMA Optimized" to "Enabled"', 'Details: http://boson.eng.riftio.com/wiki/doku.php?id=server_settings', ))) return r class chkOsIommu(_chkBase): ''' Verify that kernel is started with IOMMU support. Additional arguments: none Usage example: chkOsIommu()() ''' def chkEnv(self): r = self.talk('cat /proc/cmdline') if DBGMODE: self.log('{} {}'.format(self.dprf, r)) return 'intel_iommu=on' in r and 'iommu=pt' in r class chkOsBridgeIntf(_chkBase): ''' Verify that the public interface is part of the bridge Additional arguments(2): bridge name, interface name Usage example: chkOsBridgeIntf()('br100', 'ens2f1') ''' def chkEnv(self): self._chkArgs(2, False) # Arguments are required by this check try: r = bool(self.talk('/usr/sbin/brctl show {} | grep {}'.format(*self.args))) except: r = False return r class chkOsHugePages(_chkBase): ''' Verifies that the current number of huge pages displayed in /proc/meminfo. If an optional required number of huge pages is specified, compares with that number and tries to set the number of configured huge pages to that number but ONLY when the number of configured huge pages is lower than the required one. If a required number of huge pages is not specified, than compares current number of huge pages with one configured in vm.nr_hugepages. If the required number is not specified, this check does not try to reconfigure the kernel. Additional arguments: optional: required number of huge pages (integer) Usage example: chkOsHugePages()(4608) ''' def chkEnv(self): na = int(self.talk('grep HugePages_Total /proc/meminfo | gawk "{}"'.format('{print \$2}'))) nc = int(self.talk('sysctl -n vm.nr_hugepages') if len(self.args) <= 0 else str(self.args[0])) self.log('{} {} huge pages: {}, actual huge pages: {}'.format( self.pref, 'configured' if len(self.args) <= 0 else 'required', nc, na)) return nc <= na def fixEnv(self): if len(self.args) <= 0: return False if chkOsSudo(*self._args)() is False: raise Exception('{} no permissions to configure huge page number'.format(self.pref)) try: self.talk('sudo sysctl -w vm.nr_hugepages={}'.format(self.args[0])) self.fix = True r = True except Exception as e: r = False self.log('{} {}'.format(self.pref, str(e))) return r class chkOsIpForw(_chkBase): ''' Tries to allow IP forwarding in the kernel (requires sudo permissions). Additional arguments: none Usage example: chkOsIpForw()() ''' def chkEnv(self): r = self.talk('sysctl -n net.ipv4.ip_forward') if DBGMODE: self.log('{} net.ipv4.ip_forward = {}'.format(self.dprf, r)) return r == '1' def fixEnv(self): try: self.talk('sysctl -w net.ipv4.ip_forward=1') self.fix = True if DBGMODE: self.log('{} {}'.format(self.dprf, r)) r = True except: self.log('{} no permissions to set IP forwarding'.format(self.pref)) r = False return r class chkOsIpRpf(_chkBase): ''' Verifies and sets (if necessary) the all and the default reverse path filtering in the kernel. Additional arguments: all_value (0 or 1), default_value (0 or 1) Usage example: chkOsIpRpf()(1, 1) ''' def chkEnv(self): self._chkArgs(2, False) # Exactly two arguments are required by this check allRpf = self.talk('sysctl -n net.ipv4.conf.all.rp_filter') defRpf = self.talk('sysctl -n net.ipv4.conf.default.rp_filter') return allRpf == str(self.args[0]) and defRpf == str(self.args[1]) def fixEnv(self): if chkOsSudo(*self._args)() is False: raise Exception('{} no permissions to set RPF in the kernel'.format(self.pref)) try: self.talk('sudo sysctl -w net.ipv4.conf.all.rp_filter={}'.format(self.args[0])) self.fix = True r = True except: r = False try: self.talk('sudo sysctl -w net.ipv4.conf.default.rp_filter={}'.format(self.args[1])) self.fix = True r = r and True except: r = False return r class chkOsServ(_chkBase): ''' Verifies if specified service(s) is(are) active. Additional arguments: a name of the service Usage example: chkOsNetwServ()('network', 'nfs-idmap') ''' def chkEnv(self): self._chkArgs(1) # At least one argument is required by this check naSrv = list() for srv in self.args: try: r = 'active' in self.talk('systemctl is-active {}.service'.format(srv)) except: r = False if not r: naSrv.append(srv) if naSrv: self.log('{} non-active services: {}'.format(self.pref, ', '.join(naSrv))) return len(naSrv) <= 0 #--- VM Checks class chkVmHost(_chkBase): ''' This check succeeds if the host is a VM and fails if it is bare metal. Requires sudo permissions. This is a passive check as it does not have the "fix" part. Additional arguments: none Usage example: chkVmHost()() ''' def chkEnv(self): if chkOsSudo(*self._args)() is False: raise Exception('Sudo permissions required for this check') try: r = self.talk('sudo dmidecode -s system-product-name').lower() r = 'openstack' in r or 'kvm' in r or 'virtual' in r or 'bochs' in r or 'vmware' in r except: r = False return r
[ "Leslie.Giles@riftio.com" ]
Leslie.Giles@riftio.com
06548eeec187cb35b04530c6468cfc46ff894a36
2b2db19b4f60c9367313c6325f62d52713a6e304
/src/main.py
ebf3a826e17d11621ff2581a64905ba4a08eab3b
[]
no_license
movefast/ComparingTileCoders
853f640d2fdca9ced9afe07a972cd8d8a2acc01b
3d3e4c02dea3d5c8092229d3e83ee4bb77594fdd
refs/heads/master
2023-01-28T18:18:45.165099
2020-12-11T18:19:33
2020-12-11T18:19:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,651
py
import numpy as np import time import sys import os sys.path.append(os.getcwd()) from RlGlue import RlGlue from src.experiment import ExperimentModel from src.problems.registry import getProblem from PyExpUtils.utils.Collector import Collector from src.utils.rlglue import OneStepWrapper if len(sys.argv) < 3: print('run again with:') print('python3 src/main.py <runs> <path/to/description.json> <idx>') exit(1) exp = ExperimentModel.load(sys.argv[1]) idx = int(sys.argv[2]) max_steps = exp.max_steps run = exp.getRun(idx) collector = Collector() # set random seeds accordingly np.random.seed(run) Problem = getProblem(exp.problem) problem = Problem(exp, idx) agent = problem.getAgent() env = problem.getEnvironment() wrapper = OneStepWrapper(agent, problem.getGamma(), problem.rep) glue = RlGlue(wrapper, env) # Run the experiment glue.start() start_time = time.time() episode = 0 for step in range(exp.max_steps): _, _, _, t = glue.step() if t: episode += 1 glue.start() # collect an array of rewards that is the length of the number of steps in episode # effectively we count the whole episode as having received the same final reward collector.concat('step_return', [glue.total_reward] * glue.num_steps) # compute the average time-per-step in ms avg_time = 1000 * (time.time() - start_time) / step print(episode, step, glue.total_reward, f'{avg_time:.4}ms') glue.total_reward = 0 glue.num_steps = 0 collector.fillRest('step_return', exp.max_steps) collector.collect('time', time.time() - start_time) collector.collect('feature_utilization', np.count_nonzero(agent.w) / np.product(agent.w.shape)) # import matplotlib.pyplot as plt # from src.utils.plotting import plot # fig, ax1 = plt.subplots(1) # collector.reset() # return_data = collector.getStats('step_return') # plot(ax1, return_data) # ax1.set_title('Return') # plt.show() # exit() from PyExpUtils.results.backends.csv import saveResults from PyExpUtils.utils.arrays import downsample for key in collector.run_data: data = collector.run_data[key] # heavily downsample the data to reduce storage costs # we don't need all of the data-points for plotting anyways # method='window' returns a window average # method='subsample' returns evenly spaced samples from array # num=1000 makes sure final array is of length 1000 # percent=0.1 makes sure final array is 10% of the original length (only one of `num` or `percent` can be specified) data = downsample(data, num=500, method='window') saveResults(exp, idx, key, data, precision=2)
[ "andnpatterson@gmail.com" ]
andnpatterson@gmail.com
0d6e53f857240c591ca7b8c99819c53941741926
f015ba9945ef2035d219cedc0992063f0b5ea10c
/src/project/settings.py
9e64a4e20192856b5ee5db823e8937ff24d95e57
[]
no_license
JacobSima/trydjango
9e4bbdceb26c73ef9ced3e77ab7b21c891f1b5e9
2694a0239b69fc4ec81a2e1aee7df1e1e6892a46
refs/heads/master
2021-09-29T22:46:07.172924
2020-04-18T15:59:37
2020-04-18T15:59:37
252,255,176
0
0
null
null
null
null
UTF-8
Python
false
false
3,322
py
""" Django settings for project project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '$9a(!!h1g*rlisgvm7d-g$*ruzvs=+7gm184b0%k9+kbrqd*jp' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', # Third party # Own 'products.apps.ProductsConfig', 'pages.apps.PagesConfig', 'articles.apps.ArticlesConfig', 'blogs.apps.BlogsConfig', 'courses.apps.CoursesConfig' ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'project.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR,'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'project.wsgi.application' # Database # https://docs.djangoproject.com/en/3.0/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db2.sqlite3'), } } # Password validation # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/3.0/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.0/howto/static-files/ STATIC_URL = '/static/'
[ "simajacob2011@gmail.com" ]
simajacob2011@gmail.com
4e73792b01bc0fbf380a261a81ca7945cd2daf94
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/websms/testcase/firstcases/testcase6_024.py
83901a5a80dd6d8457a042e27d8685e19f4e9600
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
7,667
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulator', 'platformVersion' : '4.4', 'appPackage' : 'de.ub0r.android.websms', 'appActivity' : 'de.ub0r.android.websms.WebSMS', 'resetKeyboard' : True, 'androidCoverage' : 'de.ub0r.android.websms/de.ub0r.android.websms.JacocoInstrumentation', 'noReset' : True } def command(cmd, timeout=5): p = subprocess.Popen(cmd, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, shell=True) time.sleep(timeout) p.terminate() return def getElememt(driver, str) : for i in range(0, 5, 1): try: element = driver.find_element_by_android_uiautomator(str) except NoSuchElementException: time.sleep(1) else: return element os.popen("adb shell input tap 50 50") element = driver.find_element_by_android_uiautomator(str) return element def getElememtBack(driver, str1, str2) : for i in range(0, 2, 1): try: element = driver.find_element_by_android_uiautomator(str1) except NoSuchElementException: time.sleep(1) else: return element for i in range(0, 5, 1): try: element = driver.find_element_by_android_uiautomator(str2) except NoSuchElementException: time.sleep(1) else: return element os.popen("adb shell input tap 50 50") element = driver.find_element_by_android_uiautomator(str2) return element def swipe(driver, startxper, startyper, endxper, endyper) : size = driver.get_window_size() width = size["width"] height = size["height"] try: driver.swipe(start_x=int(width * startxper), start_y=int(height * startyper), end_x=int(width * endxper), end_y=int(height * endyper), duration=1000) except WebDriverException: time.sleep(1) driver.swipe(start_x=int(width * startxper), start_y=int(height * startyper), end_x=int(width * endxper), end_y=int(height * endyper), duration=1000) return def scrollToFindElement(driver, str) : for i in range(0, 5, 1): try: element = driver.find_element_by_android_uiautomator(str) elements = driver.find_elements_by_android_uiautomator(str) if (len(elements) > 1) : for temp in elements : if temp.get_attribute("enabled") == "true" : element = temp break except NoSuchElementException: swipe(driver, 0.5, 0.55, 0.5, 0.2) else : return element for i in range(0, 4, 1): try: element = driver.find_element_by_android_uiautomator(str) elements = driver.find_elements_by_android_uiautomator(str) if (len(elements) > 1): for temp in elements: if temp.get_attribute("enabled") == "true": element = temp break except NoSuchElementException: swipe(driver, 0.5, 0.2, 0.5, 0.55) else : return element return def scrollToClickElement(driver, str) : element = scrollToFindElement(driver, str) if element is None : return else : element.click() def clickInList(driver, str) : element = None if (str is None) : candidates = driver.find_elements_by_class_name("android.widget.CheckedTextView") if len(candidates) >= 1 and checkWindow(driver): element = candidates[len(candidates)-1] else : element = scrollToFindElement(driver, str) if element is not None : element.click() else : if checkWindow(driver) : driver.press_keycode(4) def clickOnCheckable(driver, str, value = "true") : parents = driver.find_elements_by_class_name("android.widget.LinearLayout") for parent in parents: try : parent.find_element_by_android_uiautomator(str) lists = parent.find_elements_by_class_name("android.widget.LinearLayout") if len(lists) == 1 : innere = parent.find_element_by_android_uiautomator("new UiSelector().checkable(true)") nowvalue = innere.get_attribute("checked") if (nowvalue != value) : innere.click() break except NoSuchElementException: continue def typeText(driver, value) : element = getElememt(driver, "new UiSelector().className(\"android.widget.EditText\")") element.clear() element.send_keys(value) enterelement = getElememt(driver, "new UiSelector().text(\"OK\")") if (enterelement is None) : if checkWindow(driver): driver.press_keycode(4) else : enterelement.click() def checkWindow(driver) : dsize = driver.get_window_size() nsize = driver.find_element_by_class_name("android.widget.FrameLayout").size if dsize['height'] > nsize['height']: return True else : return False def testingSeekBar(driver, str, value): try : if(not checkWindow(driver)) : element = seekForNearestSeekBar(driver, str) else : element = driver.find_element_by_class_name("android.widget.SeekBar") if (None != element): settingSeekBar(driver, element, value) driver.find_element_by_android_uiautomator("new UiSelector().text(\"OK\")").click() except NoSuchElementException: time.sleep(1) def seekForNearestSeekBar(driver, str): parents = driver.find_elements_by_class_name("android.widget.LinearLayout") for parent in parents: try : parent.find_element_by_android_uiautomator(str) lists = parent.find_elements_by_class_name("android.widget.LinearLayout") if len(lists) == 1 : innere = parent.find_element_by_class_name("android.widget.SeekBar") return innere break except NoSuchElementException: continue def settingSeekBar(driver, element, value) : x = element.rect.get("x") y = element.rect.get("y") width = element.rect.get("width") height = element.rect.get("height") TouchAction(driver).press(None, x + 10, y + height/2).move_to(None, x + width * value,y + height/2).release().perform() y = value def clickInMultiList(driver, str) : element = None if (str is None) : candidates = driver.find_elements_by_class_name("android.widget.CheckedTextView") if len(candidates) >= 1 and checkWindow(driver): element = candidates[len(candidates)-1] else : element = scrollToFindElement(driver, str) if element is not None : nowvalue = element.get_attribute("checked") if (nowvalue != "true") : element.click() if checkWindow(driver) : driver.find_element_by_android_uiautomator("new UiSelector().text(\"OK\")").click() # testcase6_024 try : starttime = time.time() driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) element = getElememt(driver, "new UiSelector().resourceId(\"de.ub0r.android.websms:id/text\").className(\"android.widget.EditText\")") element.clear() element.send_keys("Text"); element = getElememt(driver, "new UiSelector().resourceId(\"de.ub0r.android.websms:id/text\").className(\"android.widget.EditText\")") element.clear() element.send_keys("12st)D"); element = getElememt(driver, "new UiSelector().resourceId(\"de.ub0r.android.websms:id/text\").className(\"android.widget.EditText\")") element.clear() element.send_keys("12st)D"); element = getElememt(driver, "new UiSelector().resourceId(\"de.ub0r.android.websms:id/select\").className(\"android.widget.ImageButton\")") TouchAction(driver).tap(element).perform() except Exception, e: print 'FAIL' print 'str(e):\t\t', str(e) print 'repr(e):\t', repr(e) print traceback.format_exc() else: print 'OK' finally: cpackage = driver.current_package endtime = time.time() print 'consumed time:', str(endtime - starttime), 's' command("adb shell am broadcast -a com.example.pkg.END_EMMA --es name \"6_024\"") jacocotime = time.time() print 'jacoco time:', str(jacocotime - endtime), 's' driver.quit() if (cpackage != 'de.ub0r.android.websms'): cpackage = "adb shell am force-stop " + cpackage os.popen(cpackage)
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
d9ffdcce99be675c792386d9fefa465d8a9f8f4e
92be2d8c4a64d5f8c43341be7f1e36b81fce56ab
/src/azure-cli/azure/cli/command_modules/consumption/aaz/latest/consumption/marketplace/_list.py
b90554fe0628ffacf84e537fbdea3d95dcd222ab
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
allanpedroni/azure-cli
b31d3347f377208b502231266d4839196e574c4b
4e21baa4ff126ada2bc232dff74d6027fd1323be
refs/heads/dev
2023-08-31T18:27:03.240944
2023-08-31T08:49:58
2023-08-31T08:49:58
204,767,533
0
0
MIT
2023-09-14T13:32:41
2019-08-27T18:41:15
Python
UTF-8
Python
false
false
18,559
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # # Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- # pylint: skip-file # flake8: noqa from azure.cli.core.aaz import * @register_command( "consumption marketplace list", is_preview=True, ) class List(AAZCommand): """List the marketplace for an Azure subscription within a billing period. """ _aaz_info = { "version": "2018-01-31", "resources": [ ["mgmt-plane", "/subscriptions/{}/providers/microsoft.billing/billingperiods/{}/providers/microsoft.consumption/marketplaces", "2018-01-31"], ["mgmt-plane", "/subscriptions/{}/providers/microsoft.consumption/marketplaces", "2018-01-31"], ] } AZ_SUPPORT_PAGINATION = True def _handler(self, command_args): super()._handler(command_args) return self.build_paging(self._execute_operations, self._output) _args_schema = None @classmethod def _build_arguments_schema(cls, *args, **kwargs): if cls._args_schema is not None: return cls._args_schema cls._args_schema = super()._build_arguments_schema(*args, **kwargs) # define Arg Group "" _args_schema = cls._args_schema _args_schema.billing_period_name = AAZStrArg( options=["-p", "--billing-period-name"], help="Name of the billing period to get the marketplace.", ) _args_schema.filter = AAZStrArg( options=["--filter"], help="May be used to filter marketplaces by properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.", ) _args_schema.skiptoken = AAZStrArg( options=["--skiptoken"], help="Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", ) _args_schema.top = AAZIntArg( options=["-t", "--top"], help="Maximum number of items to return. Value range: 1-1000.", fmt=AAZIntArgFormat( maximum=1000, minimum=1, ), ) return cls._args_schema def _execute_operations(self): self.pre_operations() condition_0 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.billing_period_name) is not True condition_1 = has_value(self.ctx.args.billing_period_name) and has_value(self.ctx.subscription_id) if condition_0: self.MarketplacesList(ctx=self.ctx)() if condition_1: self.MarketplacesListByBillingPeriod(ctx=self.ctx)() self.post_operations() @register_callback def pre_operations(self): pass @register_callback def post_operations(self): pass def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) next_link = self.deserialize_output(self.ctx.vars.instance.next_link) return result, next_link class MarketplacesList(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/marketplaces", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "$filter", self.ctx.args.filter, ), **self.serialize_query_param( "$skiptoken", self.ctx.args.skiptoken, ), **self.serialize_query_param( "$top", self.ctx.args.top, ), **self.serialize_query_param( "api-version", "2018-01-31", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", flags={"read_only": True}, ) _schema_on_200.value = AAZListType( flags={"read_only": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.tags = AAZDictType( flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) properties.additional_properties = AAZStrType( serialized_name="additionalProperties", flags={"read_only": True}, ) properties.billing_period_id = AAZStrType( serialized_name="billingPeriodId", flags={"read_only": True}, ) properties.consumed_quantity = AAZFloatType( serialized_name="consumedQuantity", flags={"read_only": True}, ) properties.consumed_service = AAZStrType( serialized_name="consumedService", flags={"read_only": True}, ) properties.cost_center = AAZStrType( serialized_name="costCenter", flags={"read_only": True}, ) properties.currency = AAZStrType( flags={"read_only": True}, ) properties.department_name = AAZStrType( serialized_name="departmentName", flags={"read_only": True}, ) properties.instance_id = AAZStrType( serialized_name="instanceId", flags={"read_only": True}, ) properties.instance_name = AAZStrType( serialized_name="instanceName", flags={"read_only": True}, ) properties.is_estimated = AAZBoolType( serialized_name="isEstimated", flags={"read_only": True}, ) properties.meter_id = AAZStrType( serialized_name="meterId", flags={"read_only": True}, ) properties.offer_name = AAZStrType( serialized_name="offerName", flags={"read_only": True}, ) properties.order_number = AAZStrType( serialized_name="orderNumber", flags={"read_only": True}, ) properties.plan_name = AAZStrType( serialized_name="planName", flags={"read_only": True}, ) properties.pretax_cost = AAZFloatType( serialized_name="pretaxCost", flags={"read_only": True}, ) properties.publisher_name = AAZStrType( serialized_name="publisherName", flags={"read_only": True}, ) properties.resource_group = AAZStrType( serialized_name="resourceGroup", flags={"read_only": True}, ) properties.resource_rate = AAZFloatType( serialized_name="resourceRate", flags={"read_only": True}, ) properties.subscription_guid = AAZStrType( serialized_name="subscriptionGuid", flags={"read_only": True}, ) properties.subscription_name = AAZStrType( serialized_name="subscriptionName", flags={"read_only": True}, ) properties.unit_of_measure = AAZStrType( serialized_name="unitOfMeasure", flags={"read_only": True}, ) properties.usage_end = AAZStrType( serialized_name="usageEnd", flags={"read_only": True}, ) properties.usage_start = AAZStrType( serialized_name="usageStart", flags={"read_only": True}, ) tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() return cls._schema_on_200 class MarketplacesListByBillingPeriod(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): request = self.make_request() session = self.client.send_request(request=request, stream=False, **kwargs) if session.http_response.status_code in [200]: return self.on_200(session) return self.on_error(session.http_response) @property def url(self): return self.client.format_url( "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces", **self.url_parameters ) @property def method(self): return "GET" @property def error_format(self): return "ODataV4Format" @property def url_parameters(self): parameters = { **self.serialize_url_param( "billingPeriodName", self.ctx.args.billing_period_name, required=True, ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, ), } return parameters @property def query_parameters(self): parameters = { **self.serialize_query_param( "$filter", self.ctx.args.filter, ), **self.serialize_query_param( "$skiptoken", self.ctx.args.skiptoken, ), **self.serialize_query_param( "$top", self.ctx.args.top, ), **self.serialize_query_param( "api-version", "2018-01-31", required=True, ), } return parameters @property def header_parameters(self): parameters = { **self.serialize_header_param( "Accept", "application/json", ), } return parameters def on_200(self, session): data = self.deserialize_http_content(session) self.ctx.set_var( "instance", data, schema_builder=self._build_schema_on_200 ) _schema_on_200 = None @classmethod def _build_schema_on_200(cls): if cls._schema_on_200 is not None: return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", flags={"read_only": True}, ) _schema_on_200.value = AAZListType( flags={"read_only": True}, ) value = cls._schema_on_200.value value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.id = AAZStrType( flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) _element.tags = AAZDictType( flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties properties.account_name = AAZStrType( serialized_name="accountName", flags={"read_only": True}, ) properties.additional_properties = AAZStrType( serialized_name="additionalProperties", flags={"read_only": True}, ) properties.billing_period_id = AAZStrType( serialized_name="billingPeriodId", flags={"read_only": True}, ) properties.consumed_quantity = AAZFloatType( serialized_name="consumedQuantity", flags={"read_only": True}, ) properties.consumed_service = AAZStrType( serialized_name="consumedService", flags={"read_only": True}, ) properties.cost_center = AAZStrType( serialized_name="costCenter", flags={"read_only": True}, ) properties.currency = AAZStrType( flags={"read_only": True}, ) properties.department_name = AAZStrType( serialized_name="departmentName", flags={"read_only": True}, ) properties.instance_id = AAZStrType( serialized_name="instanceId", flags={"read_only": True}, ) properties.instance_name = AAZStrType( serialized_name="instanceName", flags={"read_only": True}, ) properties.is_estimated = AAZBoolType( serialized_name="isEstimated", flags={"read_only": True}, ) properties.meter_id = AAZStrType( serialized_name="meterId", flags={"read_only": True}, ) properties.offer_name = AAZStrType( serialized_name="offerName", flags={"read_only": True}, ) properties.order_number = AAZStrType( serialized_name="orderNumber", flags={"read_only": True}, ) properties.plan_name = AAZStrType( serialized_name="planName", flags={"read_only": True}, ) properties.pretax_cost = AAZFloatType( serialized_name="pretaxCost", flags={"read_only": True}, ) properties.publisher_name = AAZStrType( serialized_name="publisherName", flags={"read_only": True}, ) properties.resource_group = AAZStrType( serialized_name="resourceGroup", flags={"read_only": True}, ) properties.resource_rate = AAZFloatType( serialized_name="resourceRate", flags={"read_only": True}, ) properties.subscription_guid = AAZStrType( serialized_name="subscriptionGuid", flags={"read_only": True}, ) properties.subscription_name = AAZStrType( serialized_name="subscriptionName", flags={"read_only": True}, ) properties.unit_of_measure = AAZStrType( serialized_name="unitOfMeasure", flags={"read_only": True}, ) properties.usage_end = AAZStrType( serialized_name="usageEnd", flags={"read_only": True}, ) properties.usage_start = AAZStrType( serialized_name="usageStart", flags={"read_only": True}, ) tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() return cls._schema_on_200 class _ListHelper: """Helper class for List""" __all__ = ["List"]
[ "noreply@github.com" ]
allanpedroni.noreply@github.com
08d32a7b5019accaab9e4c7d32d935b4625a4329
d7ec67a5ba315103fa6a6bae6dc045f1fecf7add
/Cython/Python_Extension_Module/c_class_particle/setup.py
72843c9f5422b6099a164342646a39a16d603b64
[]
no_license
munezou/PycharmProject
cc62f5e4278ced387233a50647e8197e009cc7b4
26126c02cfa0dc4c0db726f2f2cabb162511a5b5
refs/heads/master
2023-03-07T23:44:29.106624
2023-01-23T16:16:08
2023-01-23T16:16:08
218,804,126
2
1
null
2023-02-28T23:58:22
2019-10-31T15:57:22
Jupyter Notebook
UTF-8
Python
false
false
119
py
from setuptools import setup from Cython.Build import cythonize setup(ext_modules=cythonize("c_class_particle.pyx"), )
[ "kazumikm0119@pi5.fiberbit.net" ]
kazumikm0119@pi5.fiberbit.net
be812a85bf9bd10893cafd3bae114e721cd334ea
62ac17070b927ee4249baa3b3cf65b39b9e8fafa
/Karrigell-2.3.5/modules/mod_py.py
cd23034cf66e064be12b95ff353171f3d77f46b8
[ "BSD-3-Clause" ]
permissive
qinguan/infolist
67eb0da25f4abc2f7214388d33448e8bb8ceb8c1
b8738ea374819266ed0b90458a5e7270e94fb030
refs/heads/master
2021-01-10T19:58:06.316866
2012-05-01T08:05:42
2012-05-01T08:05:42
4,190,526
2
0
null
null
null
null
UTF-8
Python
false
false
282
py
from k_script import BaseScript class Script(BaseScript): """Python script""" def __init__(self, fileName): pc=open(fileName).read().rstrip() pc = pc.replace('\r\n','\n') # normalize line separator BaseScript.__init__(self, fileName, pc, None)
[ "qinguan0619@gmail.com" ]
qinguan0619@gmail.com
db06ec79437b5fec5dd8a6154fc72aafe2ba691a
b15d2787a1eeb56dfa700480364337216d2b1eb9
/samples/cli/accelbyte_py_sdk_cli/session/_admin_update_game_session_member.py
0cfbe740caa10f08efc0ff3f32d4ca2edae4c635
[ "MIT" ]
permissive
AccelByte/accelbyte-python-sdk
dedf3b8a592beef5fcf86b4245678ee3277f953d
539c617c7e6938892fa49f95585b2a45c97a59e0
refs/heads/main
2023-08-24T14:38:04.370340
2023-08-22T01:08:03
2023-08-22T01:08:03
410,735,805
2
1
MIT
2022-08-02T03:54:11
2021-09-27T04:00:10
Python
UTF-8
Python
false
false
2,622
py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # AGS Session Service (2.22.2) # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pylint: disable=too-many-instance-attributes # pylint: disable=too-many-lines # pylint: disable=too-many-locals # pylint: disable=too-many-public-methods # pylint: disable=too-many-return-statements # pylint: disable=too-many-statements # pylint: disable=unused-import import json import yaml from typing import Optional import click from .._utils import login_as as login_as_internal from .._utils import to_dict from accelbyte_py_sdk.api.session import ( admin_update_game_session_member as admin_update_game_session_member_internal, ) from accelbyte_py_sdk.api.session.models import ( ApimodelsUpdateGameSessionMemberStatusResponse, ) from accelbyte_py_sdk.api.session.models import ResponseError @click.command() @click.argument("member_id", type=str) @click.argument("session_id", type=str) @click.argument("status_type", type=str) @click.option("--namespace", type=str) @click.option("--login_as", type=click.Choice(["client", "user"], case_sensitive=False)) @click.option("--login_with_auth", type=str) @click.option("--doc", type=bool) def admin_update_game_session_member( member_id: str, session_id: str, status_type: str, namespace: Optional[str] = None, login_as: Optional[str] = None, login_with_auth: Optional[str] = None, doc: Optional[bool] = None, ): if doc: click.echo(admin_update_game_session_member_internal.__doc__) return x_additional_headers = None if login_with_auth: x_additional_headers = {"Authorization": login_with_auth} else: login_as_internal(login_as) result, error = admin_update_game_session_member_internal( member_id=member_id, session_id=session_id, status_type=status_type, namespace=namespace, x_additional_headers=x_additional_headers, ) if error: raise Exception(f"adminUpdateGameSessionMember failed: {str(error)}") click.echo(yaml.safe_dump(to_dict(result), sort_keys=False)) admin_update_game_session_member.operation_id = "adminUpdateGameSessionMember" admin_update_game_session_member.is_deprecated = False
[ "elmernocon@gmail.com" ]
elmernocon@gmail.com
00a2f8092e27e95dfa914d874b0b8943e4cac22d
1431cf722b926207f2777bd238d5cd030e4c0744
/exshell/ex_python.py
c167b0c632ce27cb7008c387027973d40f7c072a
[]
no_license
bedreamer/plane-ui
d96f8b6b09b955e278cf63289897733de0de69bb
19f5879c50bc5ecc12a2340f7f9d0e7864735001
refs/heads/master
2020-07-28T02:42:09.751249
2019-09-19T13:29:11
2019-09-19T13:29:11
209,282,512
1
1
null
null
null
null
UTF-8
Python
false
false
461
py
# -*- coding: utf-8 -*- import profile import sys import os __doc__ = """平台默认python操作接口""" __usage__ = __doc__ + """ Usage: python [command] {parameters}""" def main(ctx, cmd, *args): if ' ' in sys.executable: execute_path = ''.join(['"', sys.executable, '"']) else: execute_path = sys.executable command = [execute_path] command.extend(args) command_line = ' '.join(command) os.system(command_line)
[ "bedreamer@163.com" ]
bedreamer@163.com
41d5d45967b3ba4d4268c4d4dc5581986b31e78f
2f989d067213e7a1e19904d482a8f9c15590804c
/lib/python3.4/site-packages/allauth/socialaccount/providers/edmodo/provider.py
751de91ffa5a8f304c3c5e15eea9edcd69abb947
[ "MIT" ]
permissive
levabd/smart4-portal
beb1cf8847134fdf169ab01c38eed7e874c66473
2c18ba593ce7e9a1e17c3559e6343a14a13ab88c
refs/heads/master
2023-02-18T05:49:40.612697
2022-08-02T09:35:34
2022-08-02T09:35:34
116,001,098
0
1
MIT
2023-02-15T21:34:01
2018-01-02T10:00:07
Roff
UTF-8
Python
false
false
1,086
py
from allauth.socialaccount import providers from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class EdmodoAccount(ProviderAccount): def get_profile_url(self): return self.account.extra_data.get('profile_url') def get_avatar_url(self): return self.account.extra_data.get('avatar_url') class EdmodoProvider(OAuth2Provider): id = 'edmodo' name = 'Edmodo' account_class = EdmodoAccount def get_default_scope(self): return ['basic'] def extract_uid(self, data): return str(data['id']) def extract_common_fields(self, data): return dict(first_name=data.get('first_name'), last_name=data.get('last_name'), email=data.get('email', '')) def extract_extra_data(self, data): return dict(user_type=data.get('type'), profile_url=data.get('url'), avatar_url=data.get('avatars').get('large')) providers.registry.register(EdmodoProvider)
[ "levabd@gmail.com" ]
levabd@gmail.com
96bc3ffe27abcd7c712182e049bc0293c2dac27f
b535aa6260350f2f19f93b02b4fda5ab6f8eb3fe
/tests/conftest.py
bb965e89848bdd0248461ed076ae78e1f3abec0d
[ "MIT" ]
permissive
nexB/Lawu
e5d3b9ac5c855f204953ff98501960e633a1ff61
d9e4f79ea2d805f6d64c160c766c033a031403e1
refs/heads/master
2023-07-23T15:40:34.103991
2019-06-06T00:14:13
2019-06-06T00:14:13
258,251,793
0
0
MIT
2020-04-23T15:40:05
2020-04-23T15:40:04
null
UTF-8
Python
false
false
215
py
from pathlib import Path import pytest from jawa.classloader import ClassLoader @pytest.fixture(scope='session') def loader() -> ClassLoader: return ClassLoader(Path(__file__).parent / 'data', max_cache=-1)
[ "tk@tkte.ch" ]
tk@tkte.ch
4eaba41a750842ffcf74d1a7aeaafc267d40c819
e38d634d508578523ac41b3babd0c1e618dec64b
/getHeightOfTree.py
6bd1738056108dbdb3e4c6aeae7a9846135316ee
[]
no_license
hebertomoreno/PythonScr
d611e1e683ffc1566d51ae4d13362b94820c9af7
b77d22519ada971a95ff7f84f205db11fd492bca
refs/heads/master
2023-03-23T11:50:40.391715
2017-05-24T17:01:31
2017-05-24T17:01:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
class Node: def __init__(self,data): self.right=self.left=None self.data = data class Solution: def insert(self,root,data): if root==None: return Node(data) else: if data<=root.data: cur=self.insert(root.left,data) root.left=cur else: cur=self.insert(root.right,data) root.right=cur return root def getHeight(self,root): if root == None: return -1 else: return 1 + max(self.getHeight(root.left), self.getHeight(root.right)) T=int(input()) myTree=Solution() root=None for i in range(T): data=int(input()) root=myTree.insert(root,data) height=myTree.getHeight(root) print ("Height: ",height)
[ "nikolasmurdock@gmail.com" ]
nikolasmurdock@gmail.com
baf1dc8e685c21aa8132587056ae77fc1d7a8a47
de2f3b72c36b1ea65e63b9f4f4fe0403e3d69418
/venv/Scripts/pip3-script.py
4d8114ac9b14cdcc0c766521819d2d82928462f8
[]
no_license
AnubisOrHades/MxShop
6da8b4a55873dc4fdcbe9fd909022fc12b6d49f8
f5cf55ba341a08e3861f7c3bee0a7923a6bf248d
refs/heads/master
2020-04-24T14:37:40.333429
2019-02-22T08:40:25
2019-02-22T08:40:25
172,027,912
1
0
null
null
null
null
UTF-8
Python
false
false
402
py
#!D:\Anubis\job\python\MxShop\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')() )
[ "1732306770@qq.com" ]
1732306770@qq.com
8ce348f31e1f6bf8afdd77cb87db214d89dc6267
6497bc5638453877744c900f7accef0203f36e89
/landmark_point/main.py
2eae1dc481c8cee6da5cd4e3cbda9e4bb793fd6b
[]
no_license
budaLi/leetcode-python-
82e9affb3317f63a82d89d7e82650de3c804a5ac
4221172b46d286ab6bf4c74f4d015ee9ef3bda8d
refs/heads/master
2022-01-30T00:55:26.209864
2022-01-05T01:01:47
2022-01-05T01:01:47
148,323,318
46
23
null
null
null
null
UTF-8
Python
false
false
209
py
# @Time : 2020/4/26 16:14 # @Author : Libuda # @FileName: main.py # @Software: PyCharm # 打开6个子集 取出图片及其98真实关键点 # 打开检测数据 5点 # 计算nme auc fr等 写入 问价
[ "1364826576@qq.com" ]
1364826576@qq.com
193a470139e9e8268bcb2f631f03957ec8370be5
c26c190986c1f30e6cc6f9a78fc56f6652536860
/cryptofeed/kraken/kraken.py
cb47092badbf27b1d80f19f92c5bb320d1ed9b9e
[ "Python-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
gavincyi/cryptofeed
92d89589e80f746d7206c90684c68446f0c07e59
6bac86237c57b697fb91b8193c71c2e7a615d4d2
refs/heads/master
2020-04-14T14:26:01.595616
2019-01-10T22:41:25
2019-01-10T22:41:25
163,896,590
0
0
NOASSERTION
2019-01-02T22:34:29
2019-01-02T22:34:28
null
UTF-8
Python
false
false
4,127
py
import asyncio from decimal import Decimal import time from sortedcontainers import SortedDict as sd from cryptofeed.feed import RestFeed from cryptofeed.defines import TRADES, BID, ASK, TICKER, L2_BOOK, KRAKEN from cryptofeed.standards import pair_exchange_to_std import aiohttp class Kraken(RestFeed): id = KRAKEN def __init__(self, pairs=None, channels=None, callbacks=None, **kwargs): super().__init__('https://api.kraken.com/0/public/', pairs, channels, callbacks, **kwargs) def __reset(self): self.last_trade_update = None async def _trades(self, session, pair): if self.last_trade_update is None: async with session.get("{}Trades?pair={}".format(self.address, pair)) as response: data = await response.json() self.last_trade_update = data['result']['last'] else: async with session.get("{}Trades?pair={}&since={}".format(self.address, pair, self.last_trade_update)) as response: data = await response.json() self.last_trade_update = data['result']['last'] if data['result'][pair] == []: return else: for trade in data['result'][pair]: # <price>, <volume>, <time>, <buy/sell>, <market/limit>, <miscellaneous> price, amount, timestamp, side, _, _ = trade await self.callbacks[TRADES](feed=self.id, pair=pair_exchange_to_std(pair), side=BID if side == 'b' else ASK, amount=Decimal(amount), price=Decimal(price), order_id=None, timestamp=timestamp) async def _ticker(self, session, pair): async with session.get("{}Ticker?pair={}&count=100".format(self.address, pair)) as response: data = await response.json() bid = Decimal(data['result'][pair]['b'][0]) ask = Decimal(data['result'][pair]['a'][0]) await self.callbacks[TICKER](feed=self.id, pair=pair_exchange_to_std(pair), bid=bid, ask=ask) async def _book(self, session, pair): async with session.get("{}Depth?pair={}".format(self.address, pair)) as response: data = await response.json() ts = time.time() data = data['result'][pair] book = {BID: sd(), ASK: sd()} for bids in data['bids']: price, amount, _ = bids price = Decimal(price) amount = Decimal(amount) book[BID][price] = amount for bids in data['asks']: price, amount, _ = bids price = Decimal(price) amount = Decimal(amount) book[ASK][price] = amount await self.callbacks[L2_BOOK](feed=self.id, pair=pair_exchange_to_std(pair), book=book, timestamp=ts) async def subscribe(self): self.__reset() return async def message_handler(self): async with aiohttp.ClientSession() as session: for chan in self.channels: for pair in self.pairs: if chan == TRADES: await self._trades(session, pair) elif chan == TICKER: await self._ticker(session, pair) elif chan == L2_BOOK: await self._book(session, pair) # KRAKEN's documentation suggests no more than 1 request a second # to avoid being rate limited await asyncio.sleep(1)
[ "bmoscon@gmail.com" ]
bmoscon@gmail.com
bec5d7a526d10be62caac399f9e3e9e95eb2fd8d
13ecaed116dd1367a09b6393d69a415af099b401
/backend/rock_crawler_20354/urls.py
a7d1509c41377bae2ed4d4eeded7703023fff231
[]
no_license
crowdbotics-apps/rock-crawler-20354
5cd650518c8e47c71c5941fd6c283eeed185bad8
77ae896728649368aa80aa20ca28224889e8fd99
refs/heads/master
2022-12-18T17:13:05.564163
2020-09-17T01:55:04
2020-09-17T01:55:04
296,190,734
0
0
null
null
null
null
UTF-8
Python
false
false
2,078
py
"""rock_crawler_20354 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path, include from allauth.account.views import confirm_email from rest_framework import permissions from drf_yasg.views import get_schema_view from drf_yasg import openapi urlpatterns = [ path("", include("home.urls")), path("accounts/", include("allauth.urls")), path("api/v1/", include("home.api.v1.urls")), path("admin/", admin.site.urls), path("users/", include("users.urls", namespace="users")), path("rest-auth/", include("rest_auth.urls")), # Override email confirm to use allauth's HTML view instead of rest_auth's API view path("rest-auth/registration/account-confirm-email/<str:key>/", confirm_email), path("rest-auth/registration/", include("rest_auth.registration.urls")), path("api/v1/", include("event.api.v1.urls")), path("event/", include("event.urls")), path("home/", include("home.urls")), ] admin.site.site_header = "rock crawler" admin.site.site_title = "rock crawler Admin Portal" admin.site.index_title = "rock crawler Admin" # swagger api_info = openapi.Info( title="rock crawler API", default_version="v1", description="API documentation for rock crawler App", ) schema_view = get_schema_view( api_info, public=True, permission_classes=(permissions.IsAuthenticated,), ) urlpatterns += [ path("api-docs/", schema_view.with_ui("swagger", cache_timeout=0), name="api_docs") ]
[ "team@crowdbotics.com" ]
team@crowdbotics.com
efa94b6e1a9475a4198230da2e46d73389f60a3f
7f4b1d5e9963d63dd45b31c6cad8ced70d823217
/interview-prep/techie_delight/array/find_pair_sum.py
e1ab55be1dbf32abcb9f8348762855ef08cbea1a
[]
no_license
mdhatmaker/Misc-python
b8be239619788ed343eb55b24734782e227594dc
92751ea44f4c1d0d4ba60f5a1bb9c0708123077b
refs/heads/master
2023-08-24T05:23:44.938059
2023-08-09T08:30:12
2023-08-09T08:30:12
194,360,769
3
4
null
2022-12-27T15:19:06
2019-06-29T03:39:13
Python
UTF-8
Python
false
false
692
py
import sys # https://www.techiedelight.com/find-pair-with-given-sum-array/ # Find pair with given sum in the array. def find_pair_sum(arr, k): print(k, end=' ') arr.sort() low = 0 high = len(arr)-1 while (low < high): if arr[low] + arr[high] == k: return (arr[low], arr[high]) if arr[low] + arr[high] < k: low += 1 else: high -= 1 return (-1, -1) ############################################################################### if __name__ == "__main__": arr = [8, 7, 2, 5, 3, 1] print(arr) print(find_pair_sum(arr, 10)) print(find_pair_sum(arr, 9)) print(find_pair_sum(arr, 14))
[ "hatmanmd@yahoo.com" ]
hatmanmd@yahoo.com
c795292c2114df7d363630fd1724fc653ddd9e47
cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69
/dashboard/dashboard/pinpoint/models/change/commit_cache.py
71909eda2e2d51149392a316f5a3d6975015f867
[ "BSD-3-Clause" ]
permissive
CTJyeh/catapult
bd710fb413b9058a7eae6073fe97a502546bbefe
c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb
refs/heads/master
2020-08-19T21:57:40.981513
2019-10-17T09:51:09
2019-10-17T18:30:16
215,957,813
1
0
BSD-3-Clause
2019-10-18T06:41:19
2019-10-18T06:41:17
null
UTF-8
Python
false
false
2,286
py
# Copyright 2018 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. from __future__ import print_function from __future__ import division from __future__ import absolute_import from google.appengine.ext import ndb _MEMCACHE_TIMEOUT = 60 * 60 * 24 * 30 def Get(id_string): """Retrieve cached commit or patch details from the Datastore. Args: id_string: A string that uniquely identifies a Commit or Patch. Returns: A dict with the fields {'url', 'author', created', 'subject', 'message'}. """ entity = ndb.Key(Commit, id_string).get(use_datastore=False) if not entity: raise KeyError('Commit or Patch not found in the Datastore:\n' + id_string) return { 'url': entity.url, 'author': entity.author, 'created': entity.created, 'subject': entity.subject, 'message': entity.message, } def Put( id_string, url, author, created, subject, message, memcache_timeout=_MEMCACHE_TIMEOUT): """Add commit or patch details to the Datastore cache. Args: id_string: A string that uniquely identifies a Commit or Patch. url: The URL of the Commit or Patch. author: The author of the Commit or Patch. created: A datetime. When the Commit was committed or the Patch was created. subject: The title/subject line of the Commit or Patch. message: The Commit message. """ if not memcache_timeout: memcache_timeout = _MEMCACHE_TIMEOUT Commit( url=url, author=author, created=created, subject=subject, message=message, id=id_string).put(use_datastore=False, memcache_timeout=memcache_timeout) class Commit(ndb.Model): # Never write/read from Datastore. _use_datastore = False # Rely on this model being cached only in memory or memcache. _use_memcache = True _use_cache = True # Cache the data in Memcache for up-to 30 days _memcache_timeout = _MEMCACHE_TIMEOUT url = ndb.StringProperty(indexed=False, required=True) author = ndb.StringProperty(indexed=False, required=True) created = ndb.DateTimeProperty(indexed=False, required=True) subject = ndb.StringProperty(indexed=False, required=True) message = ndb.TextProperty(required=True)
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
53966e3f7870ceb362b412c8f33214acba0eee74
3bda645720e87bba6c8f960bbc8750dcea974cb0
/data/phys/fill_6192/xangle_150/DoubleEG/input_files.py
569cc557af310a17a3d989b5dbd84856890742d2
[]
no_license
jan-kaspar/analysis_ctpps_alignment_2017_preTS2
0347b8f4f62cf6b82217935088ffb2250de28566
0920f99080a295c4e942aa53a2fe6697cdff0791
refs/heads/master
2021-05-10T16:56:47.887963
2018-01-31T09:28:18
2018-01-31T09:28:18
118,592,149
0
2
null
null
null
null
UTF-8
Python
false
false
207
py
import FWCore.ParameterSet.Config as cms input_files = cms.vstring( "root://eostotem.cern.ch//eos/totem/data/ctpps/reconstruction/2017/preTS2_alignment_data/version1/fill6192_xangle150_DoubleEG.root" )
[ "jan.kaspar@cern.ch" ]
jan.kaspar@cern.ch
ad9f7d677d6aef12a21ccf2023c36309198ff516
fbf82e9a3d6e7b4dbaa2771eed0d96efabc87b3b
/platform/imageAuth/imageAuth/db/ormData.py
745c1a5b58daaa1d7bf869db4db8dee208149366
[]
no_license
woshidashayuchi/boxlinker-all
71603066fee41988108d8e6c803264bd5f1552bc
318f85e6ff5542cd70b7a127c0b1d77a01fdf5e3
refs/heads/master
2021-05-09T03:29:30.652065
2018-01-28T09:17:18
2018-01-28T09:17:18
119,243,814
1
0
null
null
null
null
UTF-8
Python
false
false
5,460
py
#!/usr/bin/env python # encoding: utf-8 """ @version: 0.1 @author: liuzhangpei @contact: liuzhangpei@126.com @site: http://www.livenowhy.com @time: 17/2/28 14:07 @ orm 数据结构 """ import sqlalchemy as sa from sqlalchemy.dialects import mysql from sqlalchemy.ext.declarative import declarative_base # 创建对象的基类: Base = declarative_base() # 资源的acl控制 class ResourcesAcl(Base): """ 资源的acl控制 """ __tablename__ = 'resources_acl' resource_uuid = sa.Column(sa.String(64), primary_key=True, nullable=False) resource_type = sa.Column(sa.String(64), primary_key=True, nullable=False) admin_uuid = sa.Column(sa.String(64), primary_key=True, nullable=False) team_uuid = sa.Column(sa.String(64), primary_key=True, nullable=False) project_uuid = sa.Column(sa.String(64), primary_key=True, nullable=False) user_uuid = sa.Column(sa.String(64), primary_key=True, nullable=False) create_time = sa.Column(mysql.TIMESTAMP, nullable=True) update_time = sa.Column(mysql.TIMESTAMP, nullable=True) class ImageRepository(Base): """ 镜像仓库 Repository, 无论构建镜像还是用户终端之间上传镜像都要注册在该表中 """ __tablename__ = 'image_repository' image_uuid = sa.Column(sa.String(64), primary_key=True, nullable=False) # 镜像uuid team_uuid = sa.Column(sa.String(64), nullable=False, index=True) # 组织uuid repository = sa.Column(sa.String(126), nullable=False, primary_key=True, index=True) # 镜像名 boxlinker/xxx deleted = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) # 是否被删除 creation_time = sa.Column(mysql.TIMESTAMP, nullable=True) # 创建时间 update_time = sa.Column(mysql.TIMESTAMP, nullable=True) # 更新时间 is_public = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) # 是否公开 short_description = sa.Column(sa.String(256)) # 简单描述 detail = sa.Column(sa.Text) # 详细描述 download_num = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) # 下载次数 enshrine_num = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) # 收藏次数 review_num = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) # 评论次数 version = sa.Column(sa.String(64)) # 版本,[字典格式存储] latest_version = sa.Column(sa.String(30)) # 最新版本 pushed = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) # 是否已经被推送,0->还没; 1->已经 is_code = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) # 是否是代码构建的镜像仓库 logo = sa.Column(sa.String(126), server_default='') # 头像 src_type = sa.Column(sa.String(30)) # 代码类型 class RepositoryEvents(Base): """ 仓库事件通知,记录镜像的push/delete操作 """ __tablename__ = 'repository_events' id = sa.Column(sa.Integer, primary_key=True, autoincrement=True, nullable=False) repository = sa.Column(sa.String(128)) # 镜像名 url = sa.Column(sa.String(256)) lengths = sa.Column(sa.String(24)) tag = sa.Column(sa.String(60)) actor = sa.Column(sa.String(128)) actions = sa.Column(sa.String(24), server_default="push") digest = sa.Column(sa.String(256)) sizes = sa.Column(sa.String(256)) repo_id = sa.Column(sa.String(256)) source_instanceID = sa.Column(sa.String(256)) source_addr = sa.Column(sa.String(256)) deleted = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) creation_time = sa.Column(mysql.TIMESTAMP) update_time = sa.Column(mysql.TIMESTAMP) # 第三方认证, 用户认证表 class CodeOauth(Base): __tablename__ = 'code_oauth' code_oauth_uuid = sa.Column(sa.String(64), primary_key=True, nullable=False) team_uuid = sa.Column(sa.String(64), nullable=False) # 和组织相关, 不要绑定用户 src_type = sa.Column(sa.String(20), nullable=False) # 代码来源 git_name = sa.Column(sa.String(64)) git_emain = sa.Column(sa.String(64)) git_uid = sa.Column(sa.String(20)) access_token = sa.Column(sa.String(60)) # code_oauth code_repo # 20160928 代码源 class CodeRepo(Base): __tablename__ = 'code_repo' code_repo_uuid = sa.Column(sa.Integer, primary_key=True, autoincrement=True, nullable=False) team_uuid = sa.Column(sa.String(64), nullable=False) repo_uid = sa.Column(sa.String(64)) # github 用户id repo_id = sa.Column(sa.String(64)) # 项目id repo_name = sa.Column(sa.String(64)) # 项目名 repo_branch = sa.Column(sa.String(64)) # 项目名,分支 repo_hook_token = sa.Column(sa.String(64)) # web hooks token hook_id = sa.Column(sa.String(256)) # web hook id,删除和修改时用 html_url = sa.Column(sa.String(256)) # 项目 url ssh_url = sa.Column(sa.String(256)) # 项目 git clone 地址 git_url = sa.Column(sa.String(256)) description = sa.Column(sa.String(256)) is_hook = sa.Column(sa.String(1), nullable=False, server_default='0') # 是否已经被授权hook src_type = sa.Column(sa.String(20), nullable=False, server_default='github') # 代码来源 deleted = sa.Column(sa.Integer, nullable=False, server_default=sa.text("'0'")) creation_time = sa.Column(mysql.TIMESTAMP, nullable=True) update_time = sa.Column(mysql.TIMESTAMP, nullable=True)
[ "359876749@qq.com" ]
359876749@qq.com
b1d9b794bd63e59dcbabad3196e3405ffebc42a8
f4054fcf13c72f450bed662e01ca6fcc9c2b8111
/pages/urls.py
e8de8e82edc8b3938f442bcc36d4ed9163d189f2
[]
no_license
skiboorg/global
a54210bccaa5a82db395241d3470b5450b87a51f
eebcbcfadd4b94f5588db3392ce171948f1d5cf8
refs/heads/master
2022-12-12T00:27:02.449806
2020-09-04T05:32:56
2020-09-04T05:32:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
from django.urls import path,include from . import views urlpatterns = [ path('', views.index, name='index'), path('contests', views.contests, name='contests'), path('instructions', views.instructions, name='instructions'), path('startups/<id>', views.startups, name='startups'), path('admin_page/jury/invite', views.invite, name='invite'), path('admin_page/<category_id>', views.admin, name='admin_page'), path('rate', views.rate, name='rate'), path('rate_stage2', views.rate_stage2, name='rate_stage2'), path('start_stage2', views.start_stage2, name='start_stage2'), path('send_notify', views.send_notify, name='send_notify'), path('results', views.GeneratePdf.as_view()), ]
[ "11@11.11" ]
11@11.11
05a53b3fbafd6f11573880fc9e401610fa26e83e
da052c0bbf811dc4c29a83d1b1bffffd41becaab
/core/sale_commission_target_gt/models/__init__.py
eabf66d58ebf231df0605976cacf33dba2e53d5f
[]
no_license
Muhammad-SF/Test
ef76a45ad28ac8054a4844f5b3826040a222fb6e
46e15330b5d642053da61754247f3fbf9d02717e
refs/heads/main
2023-03-13T10:03:50.146152
2021-03-07T20:28:36
2021-03-07T20:28:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
# -*- coding: utf-8 -*- ############################################################################## # # Globalteckz Pvt Ltd # Copyright (C) 2013-Today(www.globalteckz.com). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # #378401 ############################################################################## import sale_commission import sale_team # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
[ "jbalu2801@gmail.com" ]
jbalu2801@gmail.com
a9fd81720b3a00dc1f25d9a163cbad2593f7e27d
8d3e3887b02ad2d5e75edb5e56e11c33d0f440bd
/config.py
05a6f247f55996795ae9ba9a9c8f3eba8529600b
[]
no_license
makalaaneesh/momentipy
e423a5e1b4e59a18a4ed5c1d7c07934dcda4a695
b62f52b536890a0bc7c924a10fbd73cb04f10535
refs/heads/master
2021-01-10T07:50:18.756563
2016-03-24T18:31:50
2016-03-24T18:31:50
53,156,335
0
0
null
null
null
null
UTF-8
Python
false
false
1,412
py
JPG_EXTENSIONS = ('.jpg', '.jpeg', '.jpe', '.JPG') RAW_EXTENSIONS = ('.3fr','.3pr','.arw','.ce1','.ce2','.cib','.cmt','.cr2','.craw','.crw', '.dc2','.dcr','.dng','.erf','.exf','.fff','.fpx','.gray','.grey','.gry', '.iiq','.kc2','.kdc','.mdc','.mef','.mfw','.mos','.mrw','.ndd','.nef','.nop', '.nrw','.nwb','.orf','.pcd','.pef','.ptx','.ra2','.raf','.raw','rw2','.rwl', '.rwz','.sd0','.sd1','.sr2','.srf','.srw','.st4','.st5','.st6','.st7','.st8', '.stx','.x3f','.ycbcra') PHOTO_EXTENSIONS = JPG_EXTENSIONS + RAW_EXTENSIONS MOVIE_EXTENSIONS = ('.3g2','.3gp','.asf','.asx','.avi','.flv','.m4v','.mov','.mp4','.mpg', '.rm','.srt','.swf','.vob','.wmv','.aepx','.ale','.avp','.avs','.bdm', '.bik','.bin','.bsf','.camproj','.cpi','.dash','.divx','.dmsm','.dream', '.dvdmedia','.dvr-ms','.dzm','.dzp','.edl','.f4v','.fbr','.fcproject', '.hdmov','.imovieproj','.ism','.ismv','.m2p','.mkv','.mod','.moi', '.mpeg','.mts','.mxf','.ogv','.otrkey','.pds','.prproj','.psh','.r3d', '.rcproject','.rmvb','.scm','.smil','.snagproj','.sqz','.stx','.swi','.tix', '.trp','.ts','.veg','.vf','.vro','.webm','.wlmp','.wtv','.xvid','.yuv') VALID_EXTENSIONS = PHOTO_EXTENSIONS + MOVIE_EXTENSIONS
[ "makalaaneesh@yahoo.com" ]
makalaaneesh@yahoo.com
45a934609592023102cc9deabe6dd15559740b0e
8f0b0ec0a0a2db00e2134b62a1515f0777d69060
/scripts/study_case/ID_61/multi_layer_perceptron_grist.py
95b6cf3951fe9293450c55fd79acb2813e3208f1
[ "Apache-2.0" ]
permissive
Liang813/GRIST
2add5b4620c3d4207e7661eba20a79cfcb0022b5
544e843c5430abdd58138cdf1c79dcf240168a5f
refs/heads/main
2023-06-09T19:07:03.995094
2021-06-30T05:12:19
2021-06-30T05:12:19
429,016,034
0
0
Apache-2.0
2021-11-17T11:19:48
2021-11-17T11:19:47
null
UTF-8
Python
false
false
3,207
py
from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf import numpy as np import sys sys.path.append("/data") # 导入数据并创建一个session mnist = input_data.read_data_sets('./MNIST_data', one_hot=True) sess = tf.InteractiveSession() # 定义节点,权重和偏置 in_uints = 784 # 输入节点数 h1_uints = 300 # 隐含层节点数 W1 = tf.Variable(tf.truncated_normal([in_uints, h1_uints], stddev=0.1)) # 初始化截断正态分布,标准差为0.1 b1 = tf.Variable(tf.zeros([h1_uints])) W2 = tf.Variable(tf.zeros([h1_uints, 10])) # mnist数据集共10类,所以W2的形状为(h1_uints,10) b2 = tf.Variable(tf.zeros([10])) # 输入数据和dropout的比率 x = tf.placeholder(tf.float32, [None, in_uints]) keep_prob = tf.placeholder(tf.float32) # 定义模型结构, 输入层-隐层-输出层 hidden1 = tf.nn.relu(tf.matmul(x, W1) + b1) # relu激活函数 hidden1_drop = tf.nn.dropout(hidden1, keep_prob) # dropout随机使部分节点置零,克服过拟合 y = tf.nn.softmax(tf.matmul(hidden1_drop, W2) + b2) # softmax多分类 y_ = tf.placeholder(tf.float32, [None, 10]) # 定义损失函数和优化器 obj_var = y cross_entropy = -tf.reduce_sum(y_ * tf.log(y)) # 学习率为0.1,cost变为正常 optimizer = tf.train.AdagradOptimizer(0.01).minimize(cross_entropy) # 初始化所有的参数 init = tf.initialize_all_variables() sess.run(init) # 通过循环训练数据 n_samples = int(mnist.train.num_examples) # 总样本数 batch_size = 100 # batch_size数目 epochs = 5 # epochs数目 display_step = 1 # 迭代多少次显示loss """insert code""" from scripts.utils.tf_utils import GradientSearcher gradient_search = GradientSearcher(name="tensorflow_project_grist") obj_function = tf.reduce_min(tf.abs(obj_var)) obj_grads = tf.gradients(obj_function, x)[0] batch_xs, batch_ys = mnist.train.next_batch(batch_size) max_val, min_val = np.max(batch_xs), np.min(batch_xs) gradient_search.build(batch_size=batch_size, min_val=min_val, max_val=max_val) """insert code""" while True: avg_cost = 0 total_batch = int(n_samples / batch_size) for i in range(total_batch): """inserted code""" monitor_vars = {'loss': cross_entropy, 'obj_function': obj_function, 'obj_grad': obj_grads} feed_dict = {x: batch_xs, y_: batch_ys, keep_prob: 1} batch_xs, scores_rank = gradient_search.update_batch_data(session=sess, monitor_var=monitor_vars, feed_dict=feed_dict, input_data=batch_xs, ) """inserted code""" loss, opt = sess.run((cross_entropy, optimizer), feed_dict=feed_dict) """inserted code""" new_batch_xs, new_batch_ys = mnist.train.next_batch(batch_size) new_data_dict = {'x': new_batch_xs, 'y': new_batch_ys} old_data_dict = {'x': batch_xs, 'y': batch_ys} batch_xs, batch_ys = gradient_search.switch_new_data(new_data_dict=new_data_dict, old_data_dict=old_data_dict, scores_rank=scores_rank) gradient_search.check_time() """inserted code"""
[ "793679547@qq.com" ]
793679547@qq.com
24042473cd5cd6af11e11bca2ae2954f7f570a7f
be50b4dd0b5b8c3813b8c3158332b1154fe8fe62
/Hashing/Python/SubarrayWithEqualOccurences.py
6822fc464cb733519f70a6b48c8348a5929eaf57
[]
no_license
Zimmermann25/InterviewBit
a8d89e090068d9644e28085625963c8ce75d3dff
6d2138e740bd5ba8eab992d9bf090977e077bfc5
refs/heads/main
2023-03-24T18:12:48.244950
2021-03-24T14:36:48
2021-03-24T14:36:48
350,835,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,015
py
class Solution: # @param A : list of integers # @param B : integer # @param C : integer # @return an integer # subarrays with 0 sum def solve(self, A, B, C): if len(A) < 2: return 0 # B != C for i in range(len(A)): if A[i] == B: A[i] = 1 elif A[i] == C:A[i] = -1 else:A[i] = 0 output = 0 prevEqual = 0 # w O(N^2) łatwo, ale dla O(N) troche trudniej # na podstawie https://www.youtube.com/watch?v=bqN9yB0vF08 Dict = {0:1} # base case tempSum = 0 #print(A) for i in range(len(A)): tempSum +=A[i] # 0 w miejsce K if tempSum - 0 in Dict: output += Dict[tempSum - 0] if tempSum in Dict: Dict[tempSum] +=1 else: Dict[tempSum] = 1 #print("i: ", i, "out: ", output, "dict: ", Dict) return output
[ "noreply@github.com" ]
Zimmermann25.noreply@github.com
b5b5dc9e280eb1a1c3ab4e6061ac5711e8840786
dc4adacb58762ab4004f0618726def4b412e2a78
/waterData.py
818b2ac03a665266b6c5319017ed210db0765f3c
[]
no_license
GavinHan/Serial-read-and-write
fabe965b3f044cc3c3c9628672f583b01a985835
53ff03e1474561d6ab1f1960b7d6fbcb93192392
refs/heads/master
2020-06-05T11:15:41.664089
2014-07-17T08:56:56
2014-07-17T08:56:56
21,935,022
1
0
null
null
null
null
UTF-8
Python
false
false
19,610
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2014-4-16 Author: Gavin_Han Email: muyaohan@gmail.com ''' import threading import struct import serial import time import datetime import MySQLdb def init(): config = {}; spot = {}; params = {}; surface_ssll = {}; surface_ljll = {} #source_id = 2 surface_port = {6:8, 3:9, 5:10, 9:11}; surface = {}; cross_sectional = {8:30,9:24,10:51,11:3} #source_id = 1 company_port = {4:3, 7:4, 8:5, 1:6}; company = {} #source_id = 3 underground_port = {2:2, 11:7}; underground = {} conn = MySQLdb.connect (host = "127.0.0.1",user = "root",passwd = "1234",db = "water2_production",charset='utf8') cursor = conn.cursor () cursor.execute( "SELECT id,name,sensor_device_id,device_param_id,upper_limit,lower_limit FROM sensor_params") for row in cursor.fetchall(): sensor_param_id = int(row[0]) param_type_name = row[1] sensor_device_id = int(row[2]) device_param_id = int(row[3]) upper_limit = row[4] lower_limit = row[5] #gprs_id cursor.execute( "SELECT gprs_device_id from sensor_devices where id = {0}".format(sensor_device_id)) gprs_device_id = int(cursor.fetchall()[0][0]) #spot_id cursor.execute( "select spot_id from gprs_devices where id = {0}".format(gprs_device_id)) spot_id = int(cursor.fetchall()[0][0]) #source_id cursor.execute( "select source_id from spots where id = {0}".format(spot_id)) source_id = int(cursor.fetchall()[0][0]) #device_params cursor.execute( "SELECT upper_limit,lower_limit,param_type_id FROM device_params WHERE id = '%d'"%(device_param_id)) for row in cursor.fetchall(): upper = row[0]; lower = row[1]; param_type_id = int(row[2]) cursor.execute( "select unit_name from param_types where id = {0}".format(param_type_id)) unit_name = cursor.fetchall()[0][0] if sensor_param_id not in params.keys(): params[sensor_param_id] = {} params[sensor_param_id]['source_id'] = source_id params[sensor_param_id]['spot_id'] = spot_id params[sensor_param_id]['gprs_device_id'] = gprs_device_id params[sensor_param_id]['sensor_device_id'] = sensor_device_id params[sensor_param_id]['param_type_id'] = param_type_id params[sensor_param_id]['unit_name'] = unit_name params[sensor_param_id]['upper_limit'] = upper_limit params[sensor_param_id]['lower_limit'] = lower_limit params[sensor_param_id]['upper'] = upper params[sensor_param_id]['lower'] = lower else: print 'error' if spot_id not in spot.keys(): spot[spot_id] = [sensor_param_id] elif spot_id in spot.keys(): spot[spot_id].append(sensor_param_id) sensor_param_id = int(sensor_param_id) if source_id == 2: if param_type_id not in surface.keys(): surface[param_type_id] = [sensor_param_id] else: surface[param_type_id].append(sensor_param_id) elif source_id == 1: if param_type_id not in company.keys(): company[param_type_id] = [sensor_param_id] else: company[param_type_id].append(sensor_param_id) elif source_id == 3: if param_type_id not in underground.keys(): underground[param_type_id] = [sensor_param_id] else: underground[param_type_id].append(sensor_param_id) for i in range(len(surface_port)): config[surface[5][i]] = [surface_port[params[surface[5][i]]['spot_id']],'\x03\x03\x00\x04\x00\x02\x84\x28'] config[surface[3][i]] = [surface_port[params[surface[3][i]]['spot_id']],'\x02\x03\x00\x07\x00\x01\x35\xF8'] surface_ssll[surface_port[params[surface[1][i]]['spot_id']]] = surface[1][i] surface_ljll[surface_port[params[surface[2][i]]['spot_id']]] = surface[2][i] for i in range(len(company_port)): config[company[1][i]] = [company_port[params[company[1][i]]['spot_id']],'\x02\x03\x00\x00\x00\x02\xC4\x38'] config[company[5][i]] = [company_port[params[company[5][i]]['spot_id']],'\x02\x03\x00\x04\x00\x02\x85\xF9'] config[company[2][i]] = [company_port[params[company[2][i]]['spot_id']],'\x02\x03\x00\x08\x00\x02\x45\xFA'] for i in range(len(underground_port)): config[underground[3][i]] = [underground_port[params[underground[3][i]]['spot_id']],'\x02\x03\x00\x06\x00\x01\x64\x38'] config[underground[4][i]] = [underground_port[params[underground[4][i]]['spot_id']],'\x02\x03\x00\x07\x00\x01\x35\xF8'] cursor.close() conn.close() return surface_port, surface_ssll, surface_ljll,cross_sectional, company_port, underground_port, config, spot, params def insertData(params, sensor_param_id, value, date, conn, sensor_param_one): cursor = conn.cursor () lower_limit = params[sensor_param_id]['lower_limit'] upper_limit = params[sensor_param_id]['upper_limit'] lower = params[sensor_param_id]['lower'] upper = params[sensor_param_id]['upper'] source_id = params[sensor_param_id]['source_id'] spot_id = params[sensor_param_id]['spot_id'] gprs_device_id = params[sensor_param_id]['gprs_device_id'] sensor_device_id = params[sensor_param_id]['sensor_device_id'] param_type_id = params[sensor_param_id]['param_type_id'] value_ = value print "%s %s %s\n"%(spot_id, sensor_param_id, value_) if value_< lower_limit and value_ >lower: is_except = unicode('过低','utf8') elif value_ > upper_limit and value_< upper: is_except = unicode('过高','utf8') elif value_ >upper or value_< lower: is_except = unicode('错误','utf8') else: is_except = unicode('正常','utf8') if (value_< lower_limit and value_ >(lower_limit-(lower-lower_limit)*1/4)) or (value_ > upper_limit and value_< (upper_limit+(upper-upper_limit)*1/4)): level = 1 elif (value_ < (lower_limit-(lower-lower_limit)*1/4) and value_ >(lower_limit-(lower-lower_limit)*1/2)) or (value_ > upper_limit+(upper-upper_limit)*1/4) and value_< (upper_limit+(upper-upper_limit)*1/2): level = 2 elif (value_ < (lower_limit-(lower-lower_limit)*1/2) and value_ >(lower_limit-(lower-lower_limit)*3/4)) or (value_ > upper_limit+(upper-upper_limit)*1/2) and value_< (upper_limit+(upper-upper_limit)*3/4): level = 3 elif (value_ < (lower_limit-(lower-lower_limit)*3/4) and value_ >lower) or (value_ > upper_limit+(upper-upper_limit)*3/4) and value_< upper: level = 4 elif value_ < lower or value_ >upper: level = 5 cursor.execute("INSERT INTO history_data VALUES(0,'%s','%f','%d','%s',now(),now(),'%d','%d','%d','%d','%d')"%(date,value_,sensor_param_id,is_except,param_type_id, spot_id,source_id, gprs_device_id, sensor_device_id)) if is_except == unicode('过低','utf8') or is_except == unicode('过高','utf8'): cursor.execute( "SELECT id FROM history_data WHERE gather_time = '%s'"%(date)) for row in cursor.fetchall(): history_data_id = row[0] cursor.execute("INSERT INTO warns VALUES(0,'%d','%s','%d')"%(history_data_id,date,level)) conn.commit () if sensor_param_id in sensor_param_one and is_except != unicode('错误','utf8'): cursor.execute("DELETE FROM realtime_data WHERE sensor_param_id = '%d'"%(sensor_param_id)) cursor.execute("INSERT INTO realtime_data VALUES(0,'%s','%f','%d','%s','%d',now(),now(),'%d','%d','%d','%d')"%(date,value_,sensor_param_id,is_except,param_type_id, spot_id, gprs_device_id, sensor_device_id, source_id)) conn.commit () sensor_param_one.remove(sensor_param_id) elif is_except != unicode('错误','utf8'): cursor.execute("INSERT INTO realtime_data VALUES(0,'%s','%f','%d','%s','%d',now(),now(),'%d','%d','%d','%d')"%(date,value_,sensor_param_id,is_except,param_type_id, spot_id, gprs_device_id, sensor_device_id, source_id)) conn.commit () def main(): surface_port, surface_ssll, surface_ljll,cross_sectional, company_port, underground_port, config, spot, params = init() num = [0 for i in range(100)] class GetData(threading.Thread): def __init__(self, spot_id): threading.Thread.__init__(self) self.spot_id = spot_id self.sensor_param = spot[self.spot_id] self.time_format="%Y-%m-%d %H:%M:%S" def run(self): while True: date = time.strftime(self.time_format) end_time = date water_level = {}; water_flow = {} for p in surface_port.values(): water_level[p] = -1 water_flow[p] = -1 sensor_param_one = [] for i in range(50): sensor_param_one.append(i) for sensor_param_id in self.sensor_param: if sensor_param_id in config.keys(): source_id = params[sensor_param_id]['source_id'] spot_id = params[sensor_param_id]['spot_id'] gprs_device_id = params[sensor_param_id]['gprs_device_id'] sensor_device_id = params[sensor_param_id]['sensor_device_id'] param_type_id = params[sensor_param_id]['param_type_id'] unit_name = params[sensor_param_id]['unit_name'] upper_limit = params[sensor_param_id]['upper_limit'] lower_limit = params[sensor_param_id]['lower_limit'] upper = params[sensor_param_id]['upper'] lower = params[sensor_param_id]['lower'] try: port = config[sensor_param_id][0] ser = serial.Serial() ser.port = port ser.baudrate = 9600 ser.bytesize = serial.EIGHTBITS ser.parity = serial.PARITY_NONE ser.stopbits = serial.STOPBITS_ONE ser.timeout = 5 ser.open() order = config.get(sensor_param_id)[1] ser.write(order) data = ser.readline() n = len(data) ser.close() conn = MySQLdb.connect (host = "127.0.0.1",user = "root",passwd = "1234",db = "water2_production",charset='utf8') cursor = conn.cursor () cursor.execute( "SELECT is_func_well from sensor_devices where id = {0}".format(sensor_device_id)) is_func_well = cursor.fetchall()[0][0] if n != 0: num[sensor_param_id] = 0 if not is_func_well: cursor.execute( "select DISTINCT(sensor_param_id) from faults where solved = FALSE") temp_ids = cursor.fetchall() fault_sensor_ids = [] for row in range(len(temp_ids)): fault_sensor_ids.append(int(temp_ids[row][0])) if sensor_param_id in fault_sensor_ids: fault_sensor_ids.remove(sensor_param_id) cursor.execute("UPDATE faults SET solved = True, end_time = '%s' WHERE sensor_param_id = '%d'"%(date, sensor_param_id)) conn.commit () cursor.execute( "select id from sensor_params where sensor_device_id = {0}".format(sensor_device_id)) temp_ids = cursor.fetchall() sensor_param_ids = [] for row in range(len(temp_ids)): sensor_param_ids.append(int(temp_ids[row][0])) flag = True for i in sensor_param_ids: if i in fault_sensor_ids: flag = False break if flag == True: cursor.execute("UPDATE sensor_devices SET is_func_well = True WHERE id = '%d'"%(sensor_device_id)) conn.commit () if (port in underground_port.values()) and (data[:3].encode('hex') == '020302'): temp = data[3:5].encode('hex') value = (upper-lower)/1600 * (int(temp,16)-400)+lower value_ = float("%.2f"%value) elif (port in surface_port.values()) and (data[:3].encode('hex') == '020302'): temp = data[3:5].encode('hex') value = (upper-lower)/1600 * (int(temp,16)-400)+lower if value < 0: value_ = abs(float("%.2f"%value)) else: value_ = float("%.2f"%value) water_level[port] = value_ elif (port in surface_port.values()) and (data[:3].encode('hex') == '030304'): temp = data[3:7].encode('hex') temp1 = data[3:5] temp2 = data[5:7] s = temp2 + temp1 s = s.encode('hex') value = struct.unpack('!f',s.decode('hex'))[0] if value < 0: value_ = abs(float("%.2f"%value)) else: value_ = float("%.2f"%value) water_flow[port] = value_ elif port in company_port.values() and data[:3].encode('hex') == '020304': temp = data[3:7].encode('hex') temp1 = data[3:5] temp2 = data[5:7] s = temp2 + temp1 s = s.encode('hex') if param_type_id == 5: value = struct.unpack('!f',s.decode('hex'))[0] value_ = float("%.2f"%value) if param_type_id == 1: value = struct.unpack('!f',s.decode('hex'))[0]/3600.0 value_ = float("%.2f"%value) elif param_type_id == 2: value_ = int(s,16) insertData(params, sensor_param_id, value_, date, conn, sensor_param_one) if port in surface_port.values() and (water_flow[port] >=0 and water_level[port] >= 0): surface = {} sensor_param_1 = surface_ssll[port] sensor_param_2 = surface_ljll[port] value = water_flow[port]*water_level[port]*cross_sectional[port] value_ssll = float("%.2f"%value) surface[sensor_param_1] = value_ssll try: cursor.execute( "SELECT substring_index(max(concat(gather_time, '-', value)),'-',3) as pre_time,substring_index(max(concat(gather_time, '-', value)),'-',-1) as value FROM history_data WHERE sensor_param_id = '%d' and `status` <> '错误'"%(sensor_param_2)) for row in cursor.fetchall(): pre_time = row[0] value_ljll = row[1] conn.commit () except Exception, e: print e if pre_time != None and value_ljll != None: pre_time = pre_time value_ljll = value_ljll else: print "ljll is empty!" pre_time = date value_ljll = value_ssll pre_time = pre_time.encode('utf-8') if type(end_time) == datetime.datetime: pass else: end_time = datetime.datetime.strptime(end_time,self.time_format) pre_time = datetime.datetime.strptime(pre_time,self.time_format) time_quantum = (end_time - pre_time).seconds value_ljll = float(value_ljll) value_ljll += value * time_quantum value_ljll = float("%.2f"%value_ljll) surface[sensor_param_2] = value_ljll for sensor_param_id in surface.keys(): value_ = surface[sensor_param_id] insertData(params, sensor_param_id, value_, date, conn, sensor_param_one) elif n == 0 and is_func_well: num[sensor_param_id] += 1 if num[sensor_param_id] >= 10: num[sensor_param_id] = 0 cursor.execute("UPDATE sensor_devices SET is_func_well = FALSE WHERE id = '%d'"%(sensor_device_id)) cursor.execute("INSERT INTO faults VALUES(0,'%d','连续十次没有返回值','%s',null,null,null,null,0)"%(sensor_param_id,date)) conn.commit () else: continue cursor.close() conn.close() except Exception,ex: import traceback print traceback.print_exc() time.sleep(90) threads = [] for spot_id in spot.keys(): threads.append(GetData(spot_id)) for t in threads: t.start() for t in threads: t.join() if __name__ == '__main__': main()
[ "user.name" ]
user.name
685bdecd8e029b131145675a3b0238c77eba91e3
2fa12cde6a091a1559617e8f825b00f2a5c7f8ba
/src/190page.py
d2ae5ba7ae41ce90d64d657c541acac146722424
[]
no_license
yeasellllllllll/bioinfo-lecture-2021-07
b9b333183047ddac4436180cd7c679e3cc0e399a
ce695c4535f9d83e5c9b4a1a8a3fb5857d2a984f
refs/heads/main
2023-06-15T20:31:35.101747
2021-07-18T14:31:27
2021-07-18T14:31:27
382,995,460
0
0
null
2021-07-05T06:06:35
2021-07-05T02:45:29
Python
UTF-8
Python
false
false
232
py
f = "data.txt" d = {} with open(f, "r") as fr: for line in fr: l = line.strip().split(" ") gene, val = l[0], l[1] d[gene] = val print(d.items()) print(sorted(d.items(), key=lambda x: x[1], reverse=True))
[ "yeasel6112@gmail.com" ]
yeasel6112@gmail.com
eacf5d764368da233225c9dfb5aada58ac98cbc1
fab14fae2b494068aa793901d76464afb965df7e
/benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/14-sender_receiver_2.py
f72e8d3f29aa1af65b058c4504d5648e6c8fb53e
[ "MIT" ]
permissive
teodorov/F3
673f6f9ccc25acdfdecbfc180f439253474ba250
c863215c318d7d5f258eb9be38c6962cf6863b52
refs/heads/master
2023-08-04T17:37:38.771863
2021-09-16T07:38:28
2021-09-16T07:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,293
py
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_make_or, msat_make_iff from mathsat import msat_make_leq, msat_make_equal, msat_make_true from mathsat import msat_make_number, msat_make_plus, msat_make_times from pysmt.environment import Environment as PysmtEnv import pysmt.typing as types from ltl.ltl import TermMap, LTLEncoder from utils import name_next, symb_to_next from hint import Hint, Location delta_name = "delta" def decl_consts(menv: msat_env, name: str, c_type) -> tuple: assert not name.startswith("_"), name s = msat_declare_function(menv, name, c_type) s = msat_make_constant(menv, s) x_s = msat_declare_function(menv, name_next(name), c_type) x_s = msat_make_constant(menv, x_s) return s, x_s def make_enum(menv, v_name: str, enum_size: int): bool_type = msat_get_bool_type(menv) num_bits = ceil(log(enum_size, 2)) b_vars = [] for idx in range(num_bits): c_name = "{}{}".format(v_name, idx) b_vars.append(tuple(decl_consts(menv, c_name, bool_type))) vals = [] x_vals = [] for enum_val in range(enum_size): bit_val = format(enum_val, '0{}b'.format(num_bits)) assert len(bit_val) == num_bits assert all(c in {'0', '1'} for c in bit_val) assign = [b_vars[idx] if c == '1' else (msat_make_not(menv, b_vars[idx][0]), msat_make_not(menv, b_vars[idx][1])) for idx, c in enumerate(reversed(bit_val))] pred = assign[0][0] x_pred = assign[0][1] for it in assign[1:]: pred = msat_make_and(menv, pred, it[0]) x_pred = msat_make_and(menv, x_pred, it[1]) vals.append(pred) x_vals.append(x_pred) assert len(vals) == enum_size assert len(x_vals) == enum_size return b_vars, vals, x_vals def msat_make_minus(menv: msat_env, arg0: msat_term, arg1: msat_term): m_one = msat_make_number(menv, "-1") arg1 = msat_make_times(menv, arg1, m_one) return msat_make_plus(menv, arg0, arg1) def msat_make_lt(menv: msat_env, arg0: msat_term, arg1: msat_term): geq = msat_make_geq(menv, arg0, arg1) return msat_make_not(menv, geq) def msat_make_geq(menv: msat_env, arg0: msat_term, arg1: msat_term): return msat_make_leq(menv, arg1, arg0) def msat_make_gt(menv: msat_env, arg0: msat_term, arg1: msat_term): leq = msat_make_leq(menv, arg0, arg1) return msat_make_not(menv, leq) def msat_make_impl(menv: msat_env, arg0: msat_term, arg1: msat_term): n_arg0 = msat_make_not(menv, arg0) return msat_make_or(menv, n_arg0, arg1) def diverging_symbs(menv: msat_env) -> frozenset: real_type = msat_get_rational_type(menv) delta = msat_declare_function(menv, delta_name, real_type) delta = msat_make_constant(menv, delta) return frozenset([delta]) def check_ltl(menv: msat_env, enc: LTLEncoder) -> (Iterable, msat_term, msat_term, msat_term): assert menv assert isinstance(menv, msat_env) assert enc assert isinstance(enc, LTLEncoder) int_type = msat_get_integer_type(menv) real_type = msat_get_rational_type(menv) r2s, x_r2s = decl_consts(menv, "r2s", int_type) s2r, x_s2r = decl_consts(menv, "s2r", int_type) delta, x_delta = decl_consts(menv, delta_name, real_type) sender = Sender("s", menv, enc, r2s, x_r2s, s2r, x_s2r, delta) receiver = Receiver("r", menv, enc, s2r, x_s2r, r2s, x_r2s, delta) curr2next = {r2s: x_r2s, s2r: x_s2r, delta: x_delta} for comp in [sender, receiver]: for s, x_s in comp.symb2next.items(): curr2next[s] = x_s zero = msat_make_number(menv, "0") init = msat_make_and(menv, receiver.init, sender.init) trans = msat_make_and(menv, receiver.trans, sender.trans) # invar delta >= 0 init = msat_make_and(menv, init, msat_make_geq(menv, delta, zero)) trans = msat_make_and(menv, trans, msat_make_geq(menv, x_delta, zero)) # delta > 0 -> (r2s' = r2s & s2r' = s2r) lhs = msat_make_gt(menv, delta, zero) rhs = msat_make_and(menv, msat_make_equal(menv, x_r2s, r2s), msat_make_equal(menv, x_s2r, s2r)) trans = msat_make_and(menv, trans, msat_make_impl(menv, lhs, rhs)) # (G F !s.stutter) -> G (s.wait_ack -> F s.send) lhs = enc.make_G(enc.make_F(msat_make_not(menv, sender.stutter))) rhs = enc.make_G(msat_make_impl(menv, sender.wait_ack, enc.make_F(sender.send))) ltl = msat_make_impl(menv, lhs, rhs) return TermMap(curr2next), init, trans, ltl class Module: def __init__(self, name: str, menv: msat_env, enc: LTLEncoder, *args, **kwargs): self.name = name self.menv = menv self.enc = enc self.symb2next = {} true = msat_make_true(menv) self.init = true self.trans = true def _symb(self, v_name, v_type): v_name = "{}_{}".format(self.name, v_name) return decl_consts(self.menv, v_name, v_type) def _enum(self, v_name: str, enum_size: int): c_name = "{}_{}".format(self.name, v_name) return make_enum(self.menv, c_name, enum_size) class Sender(Module): def __init__(self, name: str, menv: msat_env, enc: LTLEncoder, in_c, x_in_c, out_c, x_out_c, delta): super().__init__(name, menv, enc) bool_type = msat_get_bool_type(menv) int_type = msat_get_integer_type(menv) real_type = msat_get_rational_type(menv) loc, x_loc = self._symb("l", bool_type) evt, x_evt = self._symb("evt", bool_type) msg_id, x_msg_id = self._symb("msg_id", int_type) timeout, x_timeout = self._symb("timeout", real_type) c, x_c = self._symb("c", real_type) self.move = evt self.stutter = msat_make_not(menv, evt) self.x_move = x_evt self.x_stutter = msat_make_not(menv, x_evt) self.send = loc self.wait_ack = msat_make_not(menv, loc) self.x_send = x_loc self.x_wait_ack = msat_make_not(menv, x_loc) self.symb2next = {loc: x_loc, evt: x_evt, msg_id: x_msg_id, timeout: x_timeout, c: x_c} zero = msat_make_number(menv, "0") one = msat_make_number(menv, "1") base_timeout = one # send & c = 0 & msg_id = 0 self.init = msat_make_and(menv, msat_make_and(menv, self.send, msat_make_equal(menv, c, zero)), msat_make_equal(menv, msg_id, zero)) # invar: wait_ack -> c <= timeout self.init = msat_make_and( menv, self.init, msat_make_impl(menv, self.wait_ack, msat_make_leq(menv, c, timeout))) self.trans = msat_make_impl(menv, self.x_wait_ack, msat_make_leq(menv, x_c, x_timeout)) # delta > 0 | stutter -> l' = l & msg_id' = msg_id & timeout' = timeout & # c' = c + delta & out_c' = out_c lhs = msat_make_or(menv, msat_make_gt(menv, delta, zero), self.stutter) rhs = msat_make_and( menv, msat_make_and(menv, msat_make_iff(menv, x_loc, loc), msat_make_equal(menv, x_msg_id, msg_id)), msat_make_and(menv, msat_make_equal(menv, x_timeout, timeout), msat_make_equal(menv, x_c, msat_make_plus(menv, c, delta)))) rhs = msat_make_and(menv, rhs, msat_make_equal(menv, x_out_c, out_c)) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) disc_t = msat_make_and(menv, self.move, msat_make_equal(menv, delta, zero)) # (send & send') -> # (msg_id' = msg_id & timeout' = base_timeout & c' = 0 & out_c' = out_c) lhs = msat_make_and(menv, disc_t, msat_make_and(menv, self.send, self.x_send)) rhs = msat_make_and( menv, msat_make_and(menv, msat_make_equal(menv, x_msg_id, msg_id), msat_make_equal(menv, x_timeout, base_timeout)), msat_make_and(menv, msat_make_equal(menv, x_c, zero), msat_make_equal(menv, x_out_c, out_c))) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) # (send & wait_ack') -> # (msg_id' = msg_id + 1 & timeout' = base_timeout & c' = 0 & out_c' = out_c) lhs = msat_make_and(menv, disc_t, msat_make_and(menv, self.send, self.x_wait_ack)) rhs = msat_make_and( menv, msat_make_and(menv, msat_make_equal(menv, x_msg_id, msat_make_plus(menv, msg_id, one)), msat_make_equal(menv, x_timeout, base_timeout)), msat_make_and(menv, msat_make_equal(menv, x_c, zero), msat_make_equal(menv, x_out_c, out_c))) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) # (wait_ack) -> (c' = 0 & out_c' = out_c & # (wait_ack' <-> (in_c != msg_id & c > timeout)) lhs = msat_make_and(menv, disc_t, self.wait_ack) rhs_iff = msat_make_and(menv, msat_make_not(menv, msat_make_equal(menv, in_c, msg_id)), msat_make_geq(menv, c, timeout)) rhs_iff = msat_make_iff(menv, self.x_wait_ack, rhs_iff) rhs = msat_make_and(menv, msat_make_and(menv, msat_make_equal(menv, x_c, zero), msat_make_equal(menv, x_out_c, out_c)), rhs_iff) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) # (wait_ack & wait_ack') -> (timeout' > timeout) lhs = msat_make_and(menv, disc_t, msat_make_and(menv, self.wait_ack, self.x_wait_ack)) rhs = msat_make_gt(menv, x_timeout, timeout) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) # (wait_ack) -> (send' <-> (in_c = msg_id & c < timeout)) lhs = msat_make_and(menv, disc_t, self.wait_ack) rhs = msat_make_iff(menv, self.x_send, msat_make_and(menv, msat_make_equal(menv, in_c, msg_id), msat_make_lt(menv, c, timeout))) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) # (wait_ack & send') -> (timeout' = base_timeout) lhs = msat_make_and(menv, disc_t, msat_make_and(menv, self.wait_ack, self.x_send)) rhs = msat_make_equal(menv, x_timeout, base_timeout) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) class Receiver(Module): def __init__(self, name: str, menv: msat_env, enc: LTLEncoder, in_c, x_in_c, out_c, x_out_c, delta): super().__init__(name, menv, enc) bool_type = msat_get_bool_type(menv) loc, x_loc = self._symb("l", bool_type) self.wait = loc self.work = msat_make_not(menv, loc) self.x_wait = x_loc self.x_work = msat_make_not(menv, x_loc) self.symb2next = {loc: x_loc} zero = msat_make_number(menv, "0") # wait self.init = self.wait # delta > 0 -> loc' = loc & out_c' = out_c lhs = msat_make_gt(menv, delta, zero) rhs = msat_make_and(menv, msat_make_iff(menv, x_loc, loc), msat_make_equal(menv, x_out_c, out_c)) self.trans = msat_make_impl(menv, lhs, rhs) disc_t = msat_make_equal(menv, delta, zero) # wait -> (wait' <-> in_c = out_c) lhs = msat_make_and(menv, disc_t, self.wait) rhs = msat_make_iff(menv, self.x_wait, msat_make_equal(menv, in_c, out_c)) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) # (wait & wait') -> (out_c' = out_c) lhs = msat_make_and(menv, disc_t, msat_make_and(menv, self.wait, self.x_wait)) rhs = msat_make_equal(menv, x_out_c, out_c) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) # (wait & work') -> out_c' = in_c lhs = msat_make_and(menv, disc_t, msat_make_and(menv, self.wait, self.x_work)) rhs = msat_make_equal(menv, x_out_c, in_c) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) # work -> out_c' = out_c lhs = msat_make_and(menv, disc_t, self.work) rhs = msat_make_equal(menv, x_out_c, out_c) self.trans = msat_make_and(menv, self.trans, msat_make_impl(menv, lhs, rhs)) def hints(env: PysmtEnv) -> FrozenSet[Hint]: assert isinstance(env, PysmtEnv) mgr = env.formula_manager delta = mgr.Symbol(delta_name, types.REAL) r2s = mgr.Symbol("r2s", types.INT) s2r = mgr.Symbol("r2s", types.INT) s_l = mgr.Symbol("s_l", types.BOOL) s_evt = mgr.Symbol("s_evt", types.BOOL) s_msg_id = mgr.Symbol("s_msg_id", types.INT) s_timeout = mgr.Symbol("s_timeout", types.REAL) s_c = mgr.Symbol("s_c", types.REAL) r_l = mgr.Symbol("r_l", types.BOOL) symbs = frozenset([delta, r2s, s2r, s_l, s_evt, s_msg_id, s_timeout, s_c, r_l]) x_delta = symb_to_next(mgr, delta) x_r2s = symb_to_next(mgr, r2s) x_s2r = symb_to_next(mgr, s2r) x_s_l = symb_to_next(mgr, s_l) x_s_evt = symb_to_next(mgr, s_evt) x_s_msg_id = symb_to_next(mgr, s_msg_id) x_s_timeout = symb_to_next(mgr, s_timeout) x_s_c = symb_to_next(mgr, s_c) x_r_l = symb_to_next(mgr, r_l) res = [] r0 = mgr.Real(0) r1 = mgr.Real(1) i0 = mgr.Int(0) i1 = mgr.Int(1) loc0 = Location(env, mgr.Equals(r2s, i0)) loc0.set_progress(0, mgr.Equals(x_r2s, i0)) hint = Hint("h_r2s0", env, frozenset([r2s]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, s_l) loc0.set_progress(0, x_s_l) hint = Hint("h_s_l0", env, frozenset([s_l]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, s_evt) loc0.set_progress(0, x_s_evt) hint = Hint("h_s_evt0", env, frozenset([s_evt]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, mgr.Equals(s_msg_id, i0)) loc0.set_progress(0, mgr.Equals(x_s_msg_id, i0)) hint = Hint("h_s_msg_id0", env, frozenset([s_msg_id]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, mgr.Equals(s_timeout, r0)) loc0.set_progress(0, mgr.Equals(x_s_timeout, r0)) hint = Hint("h_s_timeout0", env, frozenset([s_timeout]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, mgr.Equals(s_c, r0)) loc0.set_progress(0, mgr.Equals(x_s_c, r0)) hint = Hint("h_s_c0", env, frozenset([s_c]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, r_l) loc0.set_progress(0, x_r_l) hint = Hint("h_r_l0", env, frozenset([r_l]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, mgr.GE(delta, r0)) loc0.set_progress(0, mgr.Equals(x_delta, r1)) hint = Hint("h_delta1", env, frozenset([delta]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, mgr.GE(s2r, i0)) loc0.set_progress(0, mgr.Equals(x_s2r, i1)) hint = Hint("h_s2r1", env, frozenset([s2r]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, mgr.GE(r2s, i0)) loc0.set_progress(0, mgr.Equals(x_r2s, i1)) hint = Hint("h_r2s1", env, frozenset([r2s]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, s_l) loc0.set_progress(1, mgr.Not(x_s_l)) loc1 = Location(env, mgr.Not(s_l)) loc1.set_progress(0, x_s_l) hint = Hint("h_s_l1", env, frozenset([s_l]), symbs) hint.set_locs([loc0, loc1]) res.append(hint) loc0 = Location(env, mgr.GE(s_c, r0)) loc0.set_progress(0, mgr.Equals(x_s_c, mgr.Plus(s_c, r1))) hint = Hint("h_s_c1", env, frozenset([s_c]), symbs) hint.set_locs([loc0]) res.append(hint) loc0 = Location(env, r_l) loc0.set_progress(1, mgr.Not(x_r_l)) loc1 = Location(env, mgr.Not(r_l)) loc1.set_progress(0, x_r_l) hint = Hint("h_r_l1", env, frozenset([r_l]), symbs) hint.set_locs([loc0, loc1]) res.append(hint) loc0 = Location(env, mgr.GE(s2r, i0)) loc0.set_progress(0, mgr.Equals(x_s2r, mgr.Plus(s2r, i1))) hint = Hint("h_s2r2", env, frozenset([s2r]), symbs) hint.set_locs([loc0]) res.append(hint) return frozenset(res)
[ "en.magnago@gmail.com" ]
en.magnago@gmail.com
5b658965a62b686a1ddb2d499ca537ed24219f98
56ade096db1fe376ee43d38c96b43651ee07f217
/647. Palindromic Substrings/Python/Solution.py
45128cf5cd3cad9ddcdddbb855a52902fe6045c7
[]
no_license
xiaole0310/leetcode
c08649c3f9a9b04579635ee7e768fe3378c04900
7a501cf84cfa46b677d9c9fced18deacb61de0e8
refs/heads/master
2020-03-17T05:46:41.102580
2018-04-20T13:05:32
2018-04-20T13:05:32
133,328,416
1
0
null
null
null
null
UTF-8
Python
false
false
451
py
class Solution: def countSubstrings(self, s): """ :type s: str :rtype: int """ self.result = 0 def count(s, left, right): while left >= 0 and right < len(s) and s[left] == s[right]: self.result += 1 left -= 1 right += 1 for i in range(len(s)): count(s, i, i) count(s, i, i + 1) return self.result
[ "zhantong1994@163.com" ]
zhantong1994@163.com
800d4590249dde33a636159d00ba3a38bc667b46
44a7101ae18c84ffa0e3c674763ba7b500937773
/root/Desktop/Scripts/Python Forensic Scripts/Violent Python/idsFoil.py
0ad7588cd59c0f4c4836e0b32135b8289ba10bdd
[]
no_license
Draft2007/Scripts
cbaa66ce0038f3370c42d93da9308cbd69fb701a
0dcc720a1edc882cfce7498ca9504cd9b12b8a44
refs/heads/master
2016-09-05T20:05:46.601503
2015-06-23T00:05:02
2015-06-23T00:05:02
37,945,893
7
2
null
null
null
null
UTF-8
Python
false
false
2,641
py
import optparse from scapy.all import * from random import randint def ddosTest(src, dst, iface, count): # Crafts a decoy TFN Probe pkt=IP(src=src,dst=dst)/ICMP(type=8,id=678)/Raw(load='1234') send(pkt, iface=iface, count=count) # Crafts a decoy tfn2k icmp possible communication pkt = IP(src=src,dst=dst)/ICMP(type=0)/Raw(load='AAAAAAAAAA') send(pkt, iface=iface, count=count) # Crafts a decoy Trin00 Daemon to Master PONG message pkt = IP(src=src,dst=dst)/UDP(dport=31335)/Raw(load='PONG') send(pkt, iface=iface, count=count) # Crafts a decoy TFN client command BE pkt = IP(src=src,dst=dst)/ICMP(type=0,id=456) send(pkt, iface=iface, count=count) def exploitTest(src, dst, iface, count): # Crafts a decoy EXPLOIT ntalkd x86 Linux overflow pkt = IP(src=src, dst=dst) / UDP(dport=518) \ /Raw(load="\x01\x03\x00\x00\x00\x00\x00\x01\x00\x02\x02\xE8") send(pkt, iface=iface, count=count) # Crafts a decoy EXPLOIT x86 Linux mountd overflow pkt = IP(src=src, dst=dst) / UDP(dport=635) \ /Raw(load="^\xB0\x02\x89\x06\xFE\xC8\x89F\x04\xB0\x06\x89F") send(pkt, iface=iface, count=count) def scanTest(src, dst, iface, count): # Crafts a decoy SCAN cybercop udp bomb pkt = IP(src=src, dst=dst) / UDP(dport=7) \ /Raw(load='cybercop') send(pkt) # Crafts a decoy SCAN Amanda client request pkt = IP(src=src, dst=dst) / UDP(dport=10080) \ /Raw(load='Amanda') send(pkt, iface=iface, count=count) def main(): parser = optparse.OptionParser('usage %prog '+\ '-i <iface> -s <src> -t <target> -c <count>' ) parser.add_option('-i', dest='iface', type='string',\ help='specify network interface') parser.add_option('-s', dest='src', type='string',\ help='specify source address') parser.add_option('-t', dest='tgt', type='string',\ help='specify target address') parser.add_option('-c', dest='count', type='int',\ help='specify packet count') (options, args) = parser.parse_args() if options.iface == None: iface = 'eth0' else: iface = options.iface if options.src == None: src = '.'.join([str(randint(1,254)) for x in range(4)]) else: src = options.src if options.tgt == None: print parser.usage exit(0) else: dst = options.tgt if options.count == None: count = 1 else: count = options.count ddosTest(src, dst, iface, count) exploitTest(src, dst, iface, count) scanTest(src, dst, iface, count) if __name__ == '__main__': main()
[ "root@localhost.localdomain" ]
root@localhost.localdomain
d1e68bd9c6aaa166ed0e00dfa42dee16851652b2
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/cirq_new/cirq_program/startCirq_noisy941.py
da12e8a16d52deb8656030cb8f1149daefd14cc9
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,569
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=23 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode def make_circuit(n: int, input_qubit): c = cirq.Circuit() # circuit begin c.append(cirq.H.on(input_qubit[0])) # number=1 c.append(cirq.H.on(input_qubit[1])) # number=2 c.append(cirq.H.on(input_qubit[1])) # number=7 c.append(cirq.H.on(input_qubit[2])) # number=3 c.append(cirq.H.on(input_qubit[3])) # number=4 c.append(cirq.CNOT.on(input_qubit[3],input_qubit[0])) # number=5 c.append(cirq.H.on(input_qubit[0])) # number=16 c.append(cirq.CZ.on(input_qubit[3],input_qubit[0])) # number=17 c.append(cirq.H.on(input_qubit[0])) # number=18 c.append(cirq.SWAP.on(input_qubit[1],input_qubit[0])) # number=8 c.append(cirq.SWAP.on(input_qubit[1],input_qubit[0])) # number=9 c.append(cirq.SWAP.on(input_qubit[1],input_qubit[0])) # number=10 c.append(cirq.SWAP.on(input_qubit[1],input_qubit[0])) # number=11 c.append(cirq.SWAP.on(input_qubit[1],input_qubit[0])) # number=12 c.append(cirq.SWAP.on(input_qubit[1],input_qubit[0])) # number=13 c.append(cirq.SWAP.on(input_qubit[3],input_qubit[0])) # number=14 c.append(cirq.SWAP.on(input_qubit[3],input_qubit[0])) # number=15 c.append(cirq.SWAP.on(input_qubit[3],input_qubit[0])) # number=19 c.append(cirq.SWAP.on(input_qubit[3],input_qubit[0])) # number=20 c.append(cirq.Y.on(input_qubit[2])) # number=21 c.append(cirq.Y.on(input_qubit[2])) # number=22 # circuit end c.append(cirq.measure(*input_qubit, key='result')) return c def bitstring(bits): return ''.join(str(int(b)) for b in bits) if __name__ == '__main__': qubit_count = 4 input_qubits = [cirq.GridQubit(i, 0) for i in range(qubit_count)] circuit = make_circuit(qubit_count,input_qubits) circuit = cg.optimized_for_sycamore(circuit, optimizer_type='sqrt_iswap') circuit_sample_count =2820 circuit = circuit.with_noise(cirq.depolarize(p=0.01)) simulator = cirq.Simulator() result = simulator.run(circuit, repetitions=circuit_sample_count) frequencies = result.histogram(key='result', fold_func=bitstring) writefile = open("../data/startCirq_noisy941.csv","w+") print(format(frequencies),file=writefile) print("results end", file=writefile) print(circuit.__len__(), file=writefile) print(circuit,file=writefile) writefile.close()
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
fa444d7edff7bcce427df85f79853825bf777c7c
0ae2bb21d7ca71a691e33cb044a0964d380adda2
/uber/uber_algo/LC636ExeclusiveTimeOfFunctions_UB.py
e5e2bbce96747c00ed9c42ec84e9e14940c8ff2b
[]
no_license
xwang322/Coding-Interview
5d27ec92d6fcbb7b929dd98bb07c968c1e1b2a04
ee5beb79038675ce73c6d147ba9249d9a5ca346a
refs/heads/master
2020-03-10T08:18:34.980557
2018-06-24T03:37:12
2018-06-24T03:37:12
129,282,263
2
6
null
2018-04-19T19:31:24
2018-04-12T16:41:28
Python
UTF-8
Python
false
false
1,289
py
/* * Implement a function return the exclusive running time of a function, given the function name and a list of logs. * List<string> stands for a list of logs. The logs have the following structure: * functionName StartOrEnd Time * A start 10 * B start 11 * B end 12 * A end 20 * exclusive running time means the total running time of a function minus the total running time of its nested functions. * for example, the exclusive running time of A = T(A) - T(B) T stands for the total running time of a fuction * Func A{ * Func B(); * } **/ class Solution(object): def exclusiveTime(self, n, logs): if not n or not logs: return [] stack = [] answer = [0]*n temp = 0 for log in logs: log = log.split(':') functionName, ty, timestamp = int(log[0]), log[1], int(log[2]) if not stack: stack.append(functionName) temp = timestamp elif ty == 'start': answer[stack[-1]] += timestamp-temp stack.append(functionName) temp = timestamp elif ty == 'end': answer[stack.pop()] += timestamp-temp+1 temp = timestamp+1 return answer
[ "noreply@github.com" ]
xwang322.noreply@github.com
f1fcf8c31077a0ecbd3a6c84b39d5c8fa8378439
9fdee128812956e1e1919a58c7f64561543abf56
/Lorry_with_coffee.py
6e56c5a6108abf4d6a47d1e65880856b90ea793a
[]
no_license
OleksandrMyshko/python
38139b72a75d52ca0a6a5787c5e6357432ec6799
1caed3c05d513c0dd62d6ff77910e9596c50969f
refs/heads/master
2021-07-03T03:31:11.198438
2017-09-25T17:43:59
2017-09-25T17:43:59
104,762,652
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
class Coffee: def __init__(self, type, price): self.type = type self.price = price class Box: def __init__(self, volume, coffee): self.volume = volume self.coffee = coffee class Lorry: def __init__(self): self.boxes = [] def add_box(self, box): self.boxes.append(box) def total(self): sum = 0 for box in self.boxes: sum += box.volume * box.coffee.price return sum def main(): coffee1 = Coffee('arabica', 20) coffee2 = Coffee('rabusta', 10) box1 = Box(40, coffee1) box2 = Box(50, coffee2) box3 = Box(10, coffee2) box4 = Box(30, coffee1) lorry = Lorry() lorry.add_box(box1) lorry.add_box(box2) lorry.add_box(box3) lorry.add_box(box4) print(lorry.total()) main()
[ "sashamushko@gmail.com" ]
sashamushko@gmail.com
fe1595a84a84e39fed7f7ef5bb3f26584c14aa2f
1f93178e536219f89dfb4ec748ebacb548276626
/tests/test_utils.py
29a0ef25439a56f1985353c95a5db459f08e845b
[ "MIT" ]
permissive
WillWang99/pyModbusTCP
9c97ef24c46f3473ad47f44c7ba5ed6d1b2021b0
8d09cac1752707770c2039d16173a2427dbc1c61
refs/heads/master
2021-03-16T08:33:56.440811
2017-11-13T08:18:53
2017-11-13T08:18:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,050
py
# -*- coding: utf-8 -*- import unittest import math from pyModbusTCP import utils class TestUtils(unittest.TestCase): def test_get_bits_from_int(self): # default bits list size is 16 self.assertEqual(len(utils.get_bits_from_int(0)), 16) # for 8 size (positional arg) self.assertEqual(len(utils.get_bits_from_int(0, 8)), 8) # for 32 size (named arg) self.assertEqual(len(utils.get_bits_from_int(0, val_size=32)), 32) # test binary decode self.assertEqual(utils.get_bits_from_int(6, 4), [False, True, True, False]) def test_decode_ieee(self): # test IEEE NaN self.assertTrue(math.isnan(utils.decode_ieee(0x7fffffff))) # test +/- infinity self.assertTrue(math.isinf(utils.decode_ieee(0xff800000))) self.assertTrue(math.isinf(utils.decode_ieee(0x7f800000))) # test some values self.assertAlmostEqual(utils.decode_ieee(0x3e99999a), 0.3) self.assertAlmostEqual(utils.decode_ieee(0xbe99999a), -0.3) def test_encode_ieee(self): # test IEEE NaN self.assertEqual(utils.encode_ieee(float('nan')), 2143289344) # test +/- infinity # self.assertTrue(math.isinf(utils.decode_ieee(0xff800000))) # self.assertTrue(math.isinf(utils.decode_ieee(0x7f800000))) # test some values self.assertAlmostEqual(utils.encode_ieee(0.3), 0x3e99999a) self.assertAlmostEqual(utils.encode_ieee(-0.3), 0xbe99999a) def test_word_list_to_long(self): # empty list, return empty list self.assertEqual(utils.word_list_to_long([]), []) # if len of list is odd ignore last value self.assertEqual(utils.word_list_to_long([0x1, 0x2, 0x3]), [0x10002]) # test convert with big and little endian word_list = utils.word_list_to_long([0xdead, 0xbeef]) self.assertEqual(word_list, [0xdeadbeef]) word_list = utils.word_list_to_long([0xdead, 0xbeef, 0xdead, 0xbeef]) self.assertEqual(word_list, [0xdeadbeef, 0xdeadbeef]) word_list = utils.word_list_to_long([0xdead, 0xbeef], big_endian=False) self.assertEqual(word_list, [0xbeefdead]) word_list = utils.word_list_to_long([0xdead, 0xbeef, 0xdead, 0xbeef], big_endian=False) self.assertEqual(word_list, [0xbeefdead, 0xbeefdead]) def test_get_2comp(self): # 2's complement of 16bits 0x0001 value is 1 self.assertEqual(utils.get_2comp(0x0001, 16), 1) # 2's complement of 16bits 0x8000 value is -32768 self.assertEqual(utils.get_2comp(0x8000, 16), -0x8000) # 2's complement of 16bits 0xFFFF value is -1 self.assertEqual(utils.get_2comp(0xFFFF, 16), -0x0001) def test_get_list_2comp(self): # with 1 item self.assertEqual(utils.get_list_2comp([0x8000], 16), [-32768]) # with 3 items self.assertEqual(utils.get_list_2comp([0x8000, 0xFFFF, 0x0042], 16), [-0x8000, -0x0001, 0x42]) if __name__ == '__main__': unittest.main()
[ "loic.celine@free.fr" ]
loic.celine@free.fr
329c0af3339a265620d8e1bac177ef51198df554
cb9dca7c997337f59468ef2369a15fa920202e8f
/09_regular_expressions/exercise/03_find_occurrences_of_word_in_sentence.py
dc986ed137b967c1009c20694093865e9cf49bd7
[]
no_license
M0673N/Programming-Fundamentals-with-Python
6e263800bad7069d6f2bf8a10bee87a39568c162
a1e9493a6f458ddc8d14ae9c0893c961fe351e73
refs/heads/main
2023-05-26T18:27:03.098598
2021-06-06T19:00:57
2021-06-06T19:00:57
361,785,714
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
import re sentence = input().lower() word = input().lower() pattern = r"\b" + word + r"\b" result = re.findall(pattern, sentence) print(len(result))
[ "m0673n@abv.bg" ]
m0673n@abv.bg
a87406c60058422469cd9cfaeaea19ef0d9de260
7251f1742615752e402dadcb4d59c9e543ecf824
/Train/PolyTrain.py
1051171859da265d655871804b499c6de323caef
[]
no_license
xinxiaoli/ambf_walker
c6f2bca047de0d38a61358f3d290e2d73eb494a1
2b909f1c340f95a6c2a0b7356c8e218c1c55356a
refs/heads/master
2022-12-27T02:50:22.036730
2020-08-12T23:18:48
2020-08-12T23:18:48
294,125,031
0
0
null
2020-09-09T13:42:17
2020-09-09T13:42:17
null
UTF-8
Python
false
false
1,736
py
from GaitAnaylsisToolkit.LearningTools.Runner import TPGMMRunner from GaitAnaylsisToolkit.LearningTools.Trainer import TPGMMTrainer from random import seed from random import gauss import numpy as np import matplotlib.pyplot as plt import numpy.polynomial.polynomial as poly def coef(b, dt): A = np.array([[1.0, 0, 0, 0], [0, 1.0, 0, 0], [1.0, dt, dt**2, dt**3], [0, 1.0, 2*dt, 3*dt**2]]) return np.linalg.pinv(A).dot(b) # seed random number generator seed(1) b = np.array([ [-0.3], [0.], [ -0.7 ], [0.0] ]) x = coef(b, 10) fit = poly.Polynomial(x.flatten()) t = np.linspace(0,10,100) y_prime = fit(t) hip = [] for i in range(10): y = y_prime + gauss(-0.05, 0.05) hip.append(y) b = np.array([ [0.2], [0.0], [0.5], [0.0] ]) x = coef(b, 10) fit = poly.Polynomial(x.flatten()) t = np.linspace(0,10,100) y_prime = fit(t) knee = [] for i in range(10): y = y_prime + gauss(-0.05, 0.05) knee.append(y) b = np.array([ [0.257], [0.0], [ 0.0 ], [0.0] ]) x = coef(b, 10) fit = poly.Polynomial(x.flatten()) t = np.linspace(0,10,100) y_prime = fit(t) ankle = [] for i in range(10): y = y_prime + gauss(-0.05, 0.05) ankle.append(y) trainer = TPGMMTrainer.TPGMMTrainer(demo=[hip, knee, ankle,hip, knee, ankle], file_name="gotozero", n_rf=5, dt=0.01, reg=[1e-4], poly_degree=[3,3,3,3,3,3]) trainer.train() runner = TPGMMRunner.TPGMMRunner("gotozero") path = runner.run() fig, axs = plt.subplots(3) print(path) for p in hip: axs[0].plot(p) axs[0].plot(path[:, 0], linewidth=4) for p in knee: axs[1].plot(p) axs[1].plot(path[:, 1], linewidth=4) for p in ankle: axs[2].plot(p) axs[2].plot(path[:, 2], linewidth=4) plt.show()
[ "nagoldfarb@wpi.edu" ]
nagoldfarb@wpi.edu
af15d7024d0a48e2e7498f7989c22aacdc552f6a
62343cc4b4c44baef354f4552b449a9f53ca799e
/Model/__init__.py
e755d87124450cd8f784260a03671013533b6ad7
[]
no_license
xwjBupt/simpleval
7c71d178657ae12ac1a5ac6f1275940023573884
87234e630d7801479575015b8c5bdd3588a3ceed
refs/heads/master
2023-02-03T13:42:07.013196
2020-12-25T09:08:01
2020-12-25T09:08:01
324,154,886
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
from .single_stage_detector import SingleStageDetector from .backbone import ResNet, ResNetV1d from .engine import InferEngine, ValEngine, BaseEngine from .builder import build_engine, build_detector, build_backbone, build_head, build_neck from .heads import AnchorHead, IoUAwareRetinaHead from .necks import FPN from .meshgrids import BBoxAnchorMeshGrid, BBoxBaseAnchor from .converters import IoUBBoxAnchorConverter from .bbox_coders import delta_xywh_bbox_coder, bbox_overlaps from .parallel import DataContainer from .ops import batched_nms __all__ = ['InferEngine', 'ValEngine', 'SingleStageDetector', 'ResNet', 'ResNetV1d', 'build_engine', 'build_detector', 'build_backbone', 'build_head', 'build_neck', 'FPN', 'AnchorHead', 'IoUAwareRetinaHead', 'BBoxAnchorMeshGrid', 'BBoxBaseAnchor', 'IoUBBoxAnchorConverter', 'delta_xywh_bbox_coder', 'DataContainer', 'bbox_overlaps', 'batched_nms' ]
[ "xwj_bupt@163.com" ]
xwj_bupt@163.com
9f7fe76b52b043b110ca6487b82d1289903fb188
14284b92ad7c117d19a35440b855080a8769d86d
/django_ssr/manage.py
62602033c569471034e2b35a8e246b2b37d76a6e
[ "MIT" ]
permissive
gbozee/django-ssr-setup
c89f5e03db2365eb24b745b54eb77534ccd296e9
6051e4d4526719f1988f3651c75e94979ce89876
refs/heads/master
2023-08-04T07:55:19.540137
2018-11-04T15:16:59
2018-11-04T15:16:59
114,080,284
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_ssr.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv)
[ "gbozee@gmail.com" ]
gbozee@gmail.com
bd34d37546f838ec5960e3bc75ada531113248aa
7d096568677660790479d87c22b47aae838ef96b
/stubs-legacy/System/Windows/Media/Animation_parts/AnimationException.py
928a9c5a3de8a33b97a425e31bf64e5273703759
[ "MIT" ]
permissive
NISystemsEngineering/rfmx-pythonnet
30adbdd5660b0d755957f35b68a4c2f60065800c
cd4f90a88a37ed043df880972cb55dfe18883bb7
refs/heads/master
2023-02-04T00:39:41.107043
2023-02-01T21:58:50
2023-02-01T21:58:50
191,603,578
7
5
MIT
2023-02-01T21:58:52
2019-06-12T16:02:32
Python
UTF-8
Python
false
false
1,398
py
class AnimationException(SystemException,ISerializable,_Exception): """ The exception that is thrown when an error occurs while animating a property. """ def add_SerializeObjectState(self,*args): """ add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def remove_SerializeObjectState(self,*args): """ remove_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __reduce_ex__(self,*args): pass def __str__(self,*args): pass Clock=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the clock that generates the animated values. Get: Clock(self: AnimationException) -> AnimationClock """ Property=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the animated dependency property. Get: Property(self: AnimationException) -> DependencyProperty """ Target=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the animated object. Get: Target(self: AnimationException) -> IAnimatable """
[ "sean.moore@ni.com" ]
sean.moore@ni.com
739509fe9d0b3d52864e729246e1fcdb09324e2d
b9000b4f492c6f51fc1277589095c92b25f41328
/lingvo/datasets_test.py
4a0abac8ce7f8d569225f446affe1131a6fb3e80
[ "Apache-2.0" ]
permissive
donstang/lingvo
a30175a4c756ce006a9c7dfbe472477a928d5f3f
9b2b4714c50be695420eb99fd87b4f1c4d0855ca
refs/heads/master
2022-07-26T14:33:36.357634
2022-07-01T03:16:49
2022-07-01T03:17:51
183,879,138
0
0
null
null
null
null
UTF-8
Python
false
false
4,221
py
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Tests for datasets.""" from lingvo import datasets from lingvo.core import base_model_params from lingvo.core import test_utils class DatasetsTest(test_utils.TestCase): def testGetDatasetsFindsAllPublicMethods(self): class DummyDatasetHolder(base_model_params._BaseModelParams): def Train(self): pass def UnexpectedDatasetName(self): pass found_datasets = datasets.GetDatasets(DummyDatasetHolder) self.assertAllEqual(['Train', 'UnexpectedDatasetName'], found_datasets) def testGetDatasetsRaisesErrorOnInvalidDatasets(self): class DummyDatasetHolder(base_model_params._BaseModelParams): def Train(self): pass def BadDataset(self, any_argument): pass with self.assertRaises(datasets.DatasetFunctionError): datasets.GetDatasets(DummyDatasetHolder, warn_on_error=False) def testGetDatasetsWarnsOnError(self): class DummyDatasetHolder(base_model_params._BaseModelParams): def Train(self): pass def BadDataset(self, any_argument): pass with self.assertLogs() as assert_log: found_datasets = datasets.GetDatasets( DummyDatasetHolder, warn_on_error=True) self.assertAllEqual(['Train'], found_datasets) self.assertIn('WARNING:absl:Found a public function BadDataset', assert_log.output[0]) def testGetDatasetsFindsAllPublicMethodsOnInstanceVar(self): class DummyDatasetHolder(base_model_params._BaseModelParams): def Train(self): pass def UnexpectedDatasetName(self): pass found_datasets = datasets.GetDatasets(DummyDatasetHolder()) self.assertAllEqual(['Train', 'UnexpectedDatasetName'], found_datasets) def testGetDatasetsRaisesErrorOnInvalidDatasetsOnInstanceVar(self): class DummyDatasetHolder(base_model_params._BaseModelParams): def Train(self): pass def BadDataset(self, any_argument): pass with self.assertRaises(datasets.DatasetFunctionError): datasets.GetDatasets(DummyDatasetHolder(), warn_on_error=False) def testGetDatasetsWarnsOnErrorOnInstanceVar(self): class DummyDatasetHolder(base_model_params._BaseModelParams): def Train(self): pass def BadDataset(self, any_argument): pass with self.assertLogs() as assert_log: found_datasets = datasets.GetDatasets( DummyDatasetHolder(), warn_on_error=True) self.assertAllEqual(['Train'], found_datasets) self.assertIn('WARNING:absl:Found a public function BadDataset', assert_log.output[0]) def testGetDatasetsWithGetAllDatasetParams(self): class DummyDatasetHolder(base_model_params._BaseModelParams): def GetAllDatasetParams(self): return {'Train': None, 'Dev': None} self.assertAllEqual(['Dev', 'Train'], datasets.GetDatasets(DummyDatasetHolder)) self.assertAllEqual(['Dev', 'Train'], datasets.GetDatasets(DummyDatasetHolder())) def testGetDatasetsOnClassWithPositionalArgumentInit(self): class DummyDatasetHolder(base_model_params._BaseModelParams): def __init__(self, model_spec): pass def Train(self): pass def Dev(self): pass def Search(self): pass self.assertAllEqual(['Dev', 'Train'], datasets.GetDatasets( DummyDatasetHolder, warn_on_error=True)) if __name__ == '__main__': test_utils.main()
[ "copybara-worker@google.com" ]
copybara-worker@google.com
39780953a892df003f3cf73fb888f6ec3b514526
8a10d97fd8be9c8df20bf64acb62cff4931bcf46
/models.py
7600153374f9760a8e77475c4e01629e8291fe60
[]
no_license
chensandiego/render_places
5816eb9b143020db02c4316516ff000560269415
165ab8023ac1e38cb0e86f8d6b1f047622c46d87
refs/heads/master
2021-01-15T08:31:39.705395
2016-07-26T01:47:16
2016-07-26T01:47:16
64,180,658
0
1
null
2016-09-08T04:38:53
2016-07-26T01:45:59
HTML
UTF-8
Python
false
false
2,049
py
from flask.ext.sqlalchemy import SQLAlchemy from werkzeug import generate_password_hash,check_password_hash import geocoder import json from urllib.request import urlopen from urllib.parse import urljoin db=SQLAlchemy() class User(db.Model): __tablename__ ='users' uid = db.Column(db.Integer,primary_key=True) firstname=db.Column(db.String(100)) lastname=db.Column(db.String(100)) email = db.Column(db.String(120),unique=True) pwdhash = db.Column(db.String(54)) def __init__(self,firstname,lastname,email,password): self.firstname=firstname.title() self.lastname=lastname.title() self.email=email.lower() self.set_password(password) def set_password(self,password): self.pwdhash=generate_password_hash(password) def check_password(self,password): return check_password_hash(self.pwdhash,password) # p = Place() # places = p.query("1600 Amphitheater Parkway Mountain View CA") class Place(object): def meters_to_walking_time(self, meters): # 80 meters is one minute walking time return int(meters / 80) def wiki_path(self, slug): return urljoin("http://en.wikipedia.org/wiki/", slug.replace(' ', '_')) def address_to_latlng(self, address): g = geocoder.google(address) return (g.lat, g.lng) def query(self, address): lat, lng = self.address_to_latlng(address) query_url = 'https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=5000&gscoord={0}%7C{1}&gslimit=20&format=json'.format(lat, lng) g = urlopen(query_url) results = g.read().decode('utf8') g.close() data = json.loads(results) places = [] for place in data['query']['geosearch']: name = place['title'] meters = place['dist'] lat = place['lat'] lng = place['lon'] wiki_url = self.wiki_path(name) walking_time = self.meters_to_walking_time(meters) d = { 'name': name, 'url': wiki_url, 'time': walking_time, 'lat': lat, 'lng': lng } places.append(d) return places
[ "chensandiego@gmail.com" ]
chensandiego@gmail.com
76c68c346bef86390398c2c7112107fa4e75e02b
a3b306df800059a5b74975793251a28b8a5f49c7
/Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkGridForwardWarpImageFilterPython.py
71e84d2ea05d5277c2c313b52bbf3a7749bdaa07
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
36,615
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.40 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _itkGridForwardWarpImageFilterPython.SWIG_PyInstanceMethod_New(func) else: from new import instancemethod as new_instancemethod if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_itkGridForwardWarpImageFilterPython', [dirname(__file__)]) except ImportError: import _itkGridForwardWarpImageFilterPython return _itkGridForwardWarpImageFilterPython if fp is not None: try: _mod = imp.load_module('_itkGridForwardWarpImageFilterPython', fp, pathname, description) finally: fp.close() return _mod _itkGridForwardWarpImageFilterPython = swig_import_helper() del swig_import_helper else: import _itkGridForwardWarpImageFilterPython del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static) or hasattr(self,name): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 def _swig_setattr_nondynamic_method(set): def set_attr(self,name,value): if (name == "thisown"): return self.this.own(value) if hasattr(self,name) or (name == "this"): set(self,name,value) else: raise AttributeError("You cannot add attributes to %s" % self) return set_attr import ITKCommonBasePython import itkEventObjectsPython import pyBasePython import itkImageToImageFilterBPython import ITKRegionsPython import itkSizePython import itkIndexPython import itkOffsetPython import itkImagePython import itkFixedArrayPython import itkCovariantVectorPython import vnl_vectorPython import vcl_complexPython import vnl_matrixPython import itkVectorPython import vnl_vector_refPython import itkPointPython import itkMatrixPython import vnl_matrix_fixedPython import itkRGBAPixelPython import itkSymmetricSecondRankTensorPython import itkRGBPixelPython import itkImageSourcePython import itkVectorImagePython import itkVariableLengthVectorPython def itkGridForwardWarpImageFilterIVF33IUS3_New(): return itkGridForwardWarpImageFilterIVF33IUS3.New() def itkGridForwardWarpImageFilterIVF22IUS2_New(): return itkGridForwardWarpImageFilterIVF22IUS2.New() def itkGridForwardWarpImageFilterIVF33IUL3_New(): return itkGridForwardWarpImageFilterIVF33IUL3.New() def itkGridForwardWarpImageFilterIVF22IUL2_New(): return itkGridForwardWarpImageFilterIVF22IUL2.New() def itkGridForwardWarpImageFilterIVF33IUC3_New(): return itkGridForwardWarpImageFilterIVF33IUC3.New() def itkGridForwardWarpImageFilterIVF22IUC2_New(): return itkGridForwardWarpImageFilterIVF22IUC2.New() class itkGridForwardWarpImageFilterIVF22IUC2(itkImageToImageFilterBPython.itkImageToImageFilterIVF22IUC2): """Proxy of C++ itkGridForwardWarpImageFilterIVF22IUC2 class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr ImageDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_ImageDimension DeformationFieldDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_DeformationFieldDimension SameDimensionCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_SameDimensionCheck DeformationFieldHasNumericTraitsCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_DeformationFieldHasNumericTraitsCheck def __New_orig__(): """__New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2___New_orig__() __New_orig__ = staticmethod(__New_orig__) def SetBackgroundValue(self, *args): """SetBackgroundValue(self, unsigned char _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_SetBackgroundValue(self, *args) def GetBackgroundValue(self): """GetBackgroundValue(self) -> unsigned char""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_GetBackgroundValue(self) def SetForegroundValue(self, *args): """SetForegroundValue(self, unsigned char _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_SetForegroundValue(self, *args) def GetForegroundValue(self): """GetForegroundValue(self) -> unsigned char""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_GetForegroundValue(self) __swig_destroy__ = _itkGridForwardWarpImageFilterPython.delete_itkGridForwardWarpImageFilterIVF22IUC2 def cast(*args): """cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF22IUC2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_cast(*args) cast = staticmethod(cast) def GetPointer(self): """GetPointer(self) -> itkGridForwardWarpImageFilterIVF22IUC2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_GetPointer(self) def New(*args, **kargs): """New() -> itkGridForwardWarpImageFilterIVF22IUC2 Create a new object of the class itkGridForwardWarpImageFilterIVF22IUC2 and set the input and the parameters if some named or non-named arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects - the first non named parameter in the first input, etc. The named parameters are used by calling the method with the same name prefixed by 'Set'. Ex: itkGridForwardWarpImageFilterIVF22IUC2.New( reader, Threshold=10 ) is (most of the time) equivalent to: obj = itkGridForwardWarpImageFilterIVF22IUC2.New() obj.SetInput( 0, reader.GetOutput() ) obj.SetThreshold( 10 ) """ obj = itkGridForwardWarpImageFilterIVF22IUC2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj New = staticmethod(New) itkGridForwardWarpImageFilterIVF22IUC2.SetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_SetBackgroundValue,None,itkGridForwardWarpImageFilterIVF22IUC2) itkGridForwardWarpImageFilterIVF22IUC2.GetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_GetBackgroundValue,None,itkGridForwardWarpImageFilterIVF22IUC2) itkGridForwardWarpImageFilterIVF22IUC2.SetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_SetForegroundValue,None,itkGridForwardWarpImageFilterIVF22IUC2) itkGridForwardWarpImageFilterIVF22IUC2.GetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_GetForegroundValue,None,itkGridForwardWarpImageFilterIVF22IUC2) itkGridForwardWarpImageFilterIVF22IUC2.GetPointer = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_GetPointer,None,itkGridForwardWarpImageFilterIVF22IUC2) itkGridForwardWarpImageFilterIVF22IUC2_swigregister = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_swigregister itkGridForwardWarpImageFilterIVF22IUC2_swigregister(itkGridForwardWarpImageFilterIVF22IUC2) def itkGridForwardWarpImageFilterIVF22IUC2___New_orig__(): """itkGridForwardWarpImageFilterIVF22IUC2___New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2___New_orig__() def itkGridForwardWarpImageFilterIVF22IUC2_cast(*args): """itkGridForwardWarpImageFilterIVF22IUC2_cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF22IUC2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUC2_cast(*args) class itkGridForwardWarpImageFilterIVF22IUL2(itkImageToImageFilterBPython.itkImageToImageFilterIVF22IUL2): """Proxy of C++ itkGridForwardWarpImageFilterIVF22IUL2 class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr ImageDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_ImageDimension DeformationFieldDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_DeformationFieldDimension SameDimensionCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_SameDimensionCheck DeformationFieldHasNumericTraitsCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_DeformationFieldHasNumericTraitsCheck def __New_orig__(): """__New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2___New_orig__() __New_orig__ = staticmethod(__New_orig__) def SetBackgroundValue(self, *args): """SetBackgroundValue(self, unsigned long _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_SetBackgroundValue(self, *args) def GetBackgroundValue(self): """GetBackgroundValue(self) -> unsigned long""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_GetBackgroundValue(self) def SetForegroundValue(self, *args): """SetForegroundValue(self, unsigned long _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_SetForegroundValue(self, *args) def GetForegroundValue(self): """GetForegroundValue(self) -> unsigned long""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_GetForegroundValue(self) __swig_destroy__ = _itkGridForwardWarpImageFilterPython.delete_itkGridForwardWarpImageFilterIVF22IUL2 def cast(*args): """cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF22IUL2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_cast(*args) cast = staticmethod(cast) def GetPointer(self): """GetPointer(self) -> itkGridForwardWarpImageFilterIVF22IUL2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_GetPointer(self) def New(*args, **kargs): """New() -> itkGridForwardWarpImageFilterIVF22IUL2 Create a new object of the class itkGridForwardWarpImageFilterIVF22IUL2 and set the input and the parameters if some named or non-named arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects - the first non named parameter in the first input, etc. The named parameters are used by calling the method with the same name prefixed by 'Set'. Ex: itkGridForwardWarpImageFilterIVF22IUL2.New( reader, Threshold=10 ) is (most of the time) equivalent to: obj = itkGridForwardWarpImageFilterIVF22IUL2.New() obj.SetInput( 0, reader.GetOutput() ) obj.SetThreshold( 10 ) """ obj = itkGridForwardWarpImageFilterIVF22IUL2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj New = staticmethod(New) itkGridForwardWarpImageFilterIVF22IUL2.SetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_SetBackgroundValue,None,itkGridForwardWarpImageFilterIVF22IUL2) itkGridForwardWarpImageFilterIVF22IUL2.GetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_GetBackgroundValue,None,itkGridForwardWarpImageFilterIVF22IUL2) itkGridForwardWarpImageFilterIVF22IUL2.SetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_SetForegroundValue,None,itkGridForwardWarpImageFilterIVF22IUL2) itkGridForwardWarpImageFilterIVF22IUL2.GetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_GetForegroundValue,None,itkGridForwardWarpImageFilterIVF22IUL2) itkGridForwardWarpImageFilterIVF22IUL2.GetPointer = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_GetPointer,None,itkGridForwardWarpImageFilterIVF22IUL2) itkGridForwardWarpImageFilterIVF22IUL2_swigregister = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_swigregister itkGridForwardWarpImageFilterIVF22IUL2_swigregister(itkGridForwardWarpImageFilterIVF22IUL2) def itkGridForwardWarpImageFilterIVF22IUL2___New_orig__(): """itkGridForwardWarpImageFilterIVF22IUL2___New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2___New_orig__() def itkGridForwardWarpImageFilterIVF22IUL2_cast(*args): """itkGridForwardWarpImageFilterIVF22IUL2_cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF22IUL2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUL2_cast(*args) class itkGridForwardWarpImageFilterIVF22IUS2(itkImageToImageFilterBPython.itkImageToImageFilterIVF22IUS2): """Proxy of C++ itkGridForwardWarpImageFilterIVF22IUS2 class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr ImageDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_ImageDimension DeformationFieldDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_DeformationFieldDimension SameDimensionCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_SameDimensionCheck DeformationFieldHasNumericTraitsCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_DeformationFieldHasNumericTraitsCheck def __New_orig__(): """__New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2___New_orig__() __New_orig__ = staticmethod(__New_orig__) def SetBackgroundValue(self, *args): """SetBackgroundValue(self, unsigned short _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_SetBackgroundValue(self, *args) def GetBackgroundValue(self): """GetBackgroundValue(self) -> unsigned short""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_GetBackgroundValue(self) def SetForegroundValue(self, *args): """SetForegroundValue(self, unsigned short _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_SetForegroundValue(self, *args) def GetForegroundValue(self): """GetForegroundValue(self) -> unsigned short""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_GetForegroundValue(self) __swig_destroy__ = _itkGridForwardWarpImageFilterPython.delete_itkGridForwardWarpImageFilterIVF22IUS2 def cast(*args): """cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF22IUS2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_cast(*args) cast = staticmethod(cast) def GetPointer(self): """GetPointer(self) -> itkGridForwardWarpImageFilterIVF22IUS2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_GetPointer(self) def New(*args, **kargs): """New() -> itkGridForwardWarpImageFilterIVF22IUS2 Create a new object of the class itkGridForwardWarpImageFilterIVF22IUS2 and set the input and the parameters if some named or non-named arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects - the first non named parameter in the first input, etc. The named parameters are used by calling the method with the same name prefixed by 'Set'. Ex: itkGridForwardWarpImageFilterIVF22IUS2.New( reader, Threshold=10 ) is (most of the time) equivalent to: obj = itkGridForwardWarpImageFilterIVF22IUS2.New() obj.SetInput( 0, reader.GetOutput() ) obj.SetThreshold( 10 ) """ obj = itkGridForwardWarpImageFilterIVF22IUS2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj New = staticmethod(New) itkGridForwardWarpImageFilterIVF22IUS2.SetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_SetBackgroundValue,None,itkGridForwardWarpImageFilterIVF22IUS2) itkGridForwardWarpImageFilterIVF22IUS2.GetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_GetBackgroundValue,None,itkGridForwardWarpImageFilterIVF22IUS2) itkGridForwardWarpImageFilterIVF22IUS2.SetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_SetForegroundValue,None,itkGridForwardWarpImageFilterIVF22IUS2) itkGridForwardWarpImageFilterIVF22IUS2.GetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_GetForegroundValue,None,itkGridForwardWarpImageFilterIVF22IUS2) itkGridForwardWarpImageFilterIVF22IUS2.GetPointer = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_GetPointer,None,itkGridForwardWarpImageFilterIVF22IUS2) itkGridForwardWarpImageFilterIVF22IUS2_swigregister = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_swigregister itkGridForwardWarpImageFilterIVF22IUS2_swigregister(itkGridForwardWarpImageFilterIVF22IUS2) def itkGridForwardWarpImageFilterIVF22IUS2___New_orig__(): """itkGridForwardWarpImageFilterIVF22IUS2___New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2___New_orig__() def itkGridForwardWarpImageFilterIVF22IUS2_cast(*args): """itkGridForwardWarpImageFilterIVF22IUS2_cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF22IUS2""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF22IUS2_cast(*args) class itkGridForwardWarpImageFilterIVF33IUC3(itkImageToImageFilterBPython.itkImageToImageFilterIVF33IUC3): """Proxy of C++ itkGridForwardWarpImageFilterIVF33IUC3 class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr ImageDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_ImageDimension DeformationFieldDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_DeformationFieldDimension SameDimensionCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_SameDimensionCheck DeformationFieldHasNumericTraitsCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_DeformationFieldHasNumericTraitsCheck def __New_orig__(): """__New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3___New_orig__() __New_orig__ = staticmethod(__New_orig__) def SetBackgroundValue(self, *args): """SetBackgroundValue(self, unsigned char _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_SetBackgroundValue(self, *args) def GetBackgroundValue(self): """GetBackgroundValue(self) -> unsigned char""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_GetBackgroundValue(self) def SetForegroundValue(self, *args): """SetForegroundValue(self, unsigned char _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_SetForegroundValue(self, *args) def GetForegroundValue(self): """GetForegroundValue(self) -> unsigned char""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_GetForegroundValue(self) __swig_destroy__ = _itkGridForwardWarpImageFilterPython.delete_itkGridForwardWarpImageFilterIVF33IUC3 def cast(*args): """cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF33IUC3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_cast(*args) cast = staticmethod(cast) def GetPointer(self): """GetPointer(self) -> itkGridForwardWarpImageFilterIVF33IUC3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_GetPointer(self) def New(*args, **kargs): """New() -> itkGridForwardWarpImageFilterIVF33IUC3 Create a new object of the class itkGridForwardWarpImageFilterIVF33IUC3 and set the input and the parameters if some named or non-named arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects - the first non named parameter in the first input, etc. The named parameters are used by calling the method with the same name prefixed by 'Set'. Ex: itkGridForwardWarpImageFilterIVF33IUC3.New( reader, Threshold=10 ) is (most of the time) equivalent to: obj = itkGridForwardWarpImageFilterIVF33IUC3.New() obj.SetInput( 0, reader.GetOutput() ) obj.SetThreshold( 10 ) """ obj = itkGridForwardWarpImageFilterIVF33IUC3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj New = staticmethod(New) itkGridForwardWarpImageFilterIVF33IUC3.SetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_SetBackgroundValue,None,itkGridForwardWarpImageFilterIVF33IUC3) itkGridForwardWarpImageFilterIVF33IUC3.GetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_GetBackgroundValue,None,itkGridForwardWarpImageFilterIVF33IUC3) itkGridForwardWarpImageFilterIVF33IUC3.SetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_SetForegroundValue,None,itkGridForwardWarpImageFilterIVF33IUC3) itkGridForwardWarpImageFilterIVF33IUC3.GetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_GetForegroundValue,None,itkGridForwardWarpImageFilterIVF33IUC3) itkGridForwardWarpImageFilterIVF33IUC3.GetPointer = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_GetPointer,None,itkGridForwardWarpImageFilterIVF33IUC3) itkGridForwardWarpImageFilterIVF33IUC3_swigregister = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_swigregister itkGridForwardWarpImageFilterIVF33IUC3_swigregister(itkGridForwardWarpImageFilterIVF33IUC3) def itkGridForwardWarpImageFilterIVF33IUC3___New_orig__(): """itkGridForwardWarpImageFilterIVF33IUC3___New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3___New_orig__() def itkGridForwardWarpImageFilterIVF33IUC3_cast(*args): """itkGridForwardWarpImageFilterIVF33IUC3_cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF33IUC3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUC3_cast(*args) class itkGridForwardWarpImageFilterIVF33IUL3(itkImageToImageFilterBPython.itkImageToImageFilterIVF33IUL3): """Proxy of C++ itkGridForwardWarpImageFilterIVF33IUL3 class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr ImageDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_ImageDimension DeformationFieldDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_DeformationFieldDimension SameDimensionCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_SameDimensionCheck DeformationFieldHasNumericTraitsCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_DeformationFieldHasNumericTraitsCheck def __New_orig__(): """__New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3___New_orig__() __New_orig__ = staticmethod(__New_orig__) def SetBackgroundValue(self, *args): """SetBackgroundValue(self, unsigned long _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_SetBackgroundValue(self, *args) def GetBackgroundValue(self): """GetBackgroundValue(self) -> unsigned long""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_GetBackgroundValue(self) def SetForegroundValue(self, *args): """SetForegroundValue(self, unsigned long _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_SetForegroundValue(self, *args) def GetForegroundValue(self): """GetForegroundValue(self) -> unsigned long""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_GetForegroundValue(self) __swig_destroy__ = _itkGridForwardWarpImageFilterPython.delete_itkGridForwardWarpImageFilterIVF33IUL3 def cast(*args): """cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF33IUL3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_cast(*args) cast = staticmethod(cast) def GetPointer(self): """GetPointer(self) -> itkGridForwardWarpImageFilterIVF33IUL3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_GetPointer(self) def New(*args, **kargs): """New() -> itkGridForwardWarpImageFilterIVF33IUL3 Create a new object of the class itkGridForwardWarpImageFilterIVF33IUL3 and set the input and the parameters if some named or non-named arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects - the first non named parameter in the first input, etc. The named parameters are used by calling the method with the same name prefixed by 'Set'. Ex: itkGridForwardWarpImageFilterIVF33IUL3.New( reader, Threshold=10 ) is (most of the time) equivalent to: obj = itkGridForwardWarpImageFilterIVF33IUL3.New() obj.SetInput( 0, reader.GetOutput() ) obj.SetThreshold( 10 ) """ obj = itkGridForwardWarpImageFilterIVF33IUL3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj New = staticmethod(New) itkGridForwardWarpImageFilterIVF33IUL3.SetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_SetBackgroundValue,None,itkGridForwardWarpImageFilterIVF33IUL3) itkGridForwardWarpImageFilterIVF33IUL3.GetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_GetBackgroundValue,None,itkGridForwardWarpImageFilterIVF33IUL3) itkGridForwardWarpImageFilterIVF33IUL3.SetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_SetForegroundValue,None,itkGridForwardWarpImageFilterIVF33IUL3) itkGridForwardWarpImageFilterIVF33IUL3.GetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_GetForegroundValue,None,itkGridForwardWarpImageFilterIVF33IUL3) itkGridForwardWarpImageFilterIVF33IUL3.GetPointer = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_GetPointer,None,itkGridForwardWarpImageFilterIVF33IUL3) itkGridForwardWarpImageFilterIVF33IUL3_swigregister = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_swigregister itkGridForwardWarpImageFilterIVF33IUL3_swigregister(itkGridForwardWarpImageFilterIVF33IUL3) def itkGridForwardWarpImageFilterIVF33IUL3___New_orig__(): """itkGridForwardWarpImageFilterIVF33IUL3___New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3___New_orig__() def itkGridForwardWarpImageFilterIVF33IUL3_cast(*args): """itkGridForwardWarpImageFilterIVF33IUL3_cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF33IUL3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUL3_cast(*args) class itkGridForwardWarpImageFilterIVF33IUS3(itkImageToImageFilterBPython.itkImageToImageFilterIVF33IUS3): """Proxy of C++ itkGridForwardWarpImageFilterIVF33IUS3 class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr ImageDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_ImageDimension DeformationFieldDimension = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_DeformationFieldDimension SameDimensionCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_SameDimensionCheck DeformationFieldHasNumericTraitsCheck = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_DeformationFieldHasNumericTraitsCheck def __New_orig__(): """__New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3___New_orig__() __New_orig__ = staticmethod(__New_orig__) def SetBackgroundValue(self, *args): """SetBackgroundValue(self, unsigned short _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_SetBackgroundValue(self, *args) def GetBackgroundValue(self): """GetBackgroundValue(self) -> unsigned short""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_GetBackgroundValue(self) def SetForegroundValue(self, *args): """SetForegroundValue(self, unsigned short _arg)""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_SetForegroundValue(self, *args) def GetForegroundValue(self): """GetForegroundValue(self) -> unsigned short""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_GetForegroundValue(self) __swig_destroy__ = _itkGridForwardWarpImageFilterPython.delete_itkGridForwardWarpImageFilterIVF33IUS3 def cast(*args): """cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF33IUS3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_cast(*args) cast = staticmethod(cast) def GetPointer(self): """GetPointer(self) -> itkGridForwardWarpImageFilterIVF33IUS3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_GetPointer(self) def New(*args, **kargs): """New() -> itkGridForwardWarpImageFilterIVF33IUS3 Create a new object of the class itkGridForwardWarpImageFilterIVF33IUS3 and set the input and the parameters if some named or non-named arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects - the first non named parameter in the first input, etc. The named parameters are used by calling the method with the same name prefixed by 'Set'. Ex: itkGridForwardWarpImageFilterIVF33IUS3.New( reader, Threshold=10 ) is (most of the time) equivalent to: obj = itkGridForwardWarpImageFilterIVF33IUS3.New() obj.SetInput( 0, reader.GetOutput() ) obj.SetThreshold( 10 ) """ obj = itkGridForwardWarpImageFilterIVF33IUS3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj New = staticmethod(New) itkGridForwardWarpImageFilterIVF33IUS3.SetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_SetBackgroundValue,None,itkGridForwardWarpImageFilterIVF33IUS3) itkGridForwardWarpImageFilterIVF33IUS3.GetBackgroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_GetBackgroundValue,None,itkGridForwardWarpImageFilterIVF33IUS3) itkGridForwardWarpImageFilterIVF33IUS3.SetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_SetForegroundValue,None,itkGridForwardWarpImageFilterIVF33IUS3) itkGridForwardWarpImageFilterIVF33IUS3.GetForegroundValue = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_GetForegroundValue,None,itkGridForwardWarpImageFilterIVF33IUS3) itkGridForwardWarpImageFilterIVF33IUS3.GetPointer = new_instancemethod(_itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_GetPointer,None,itkGridForwardWarpImageFilterIVF33IUS3) itkGridForwardWarpImageFilterIVF33IUS3_swigregister = _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_swigregister itkGridForwardWarpImageFilterIVF33IUS3_swigregister(itkGridForwardWarpImageFilterIVF33IUS3) def itkGridForwardWarpImageFilterIVF33IUS3___New_orig__(): """itkGridForwardWarpImageFilterIVF33IUS3___New_orig__()""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3___New_orig__() def itkGridForwardWarpImageFilterIVF33IUS3_cast(*args): """itkGridForwardWarpImageFilterIVF33IUS3_cast(itkLightObject obj) -> itkGridForwardWarpImageFilterIVF33IUS3""" return _itkGridForwardWarpImageFilterPython.itkGridForwardWarpImageFilterIVF33IUS3_cast(*args)
[ "fede.anne95@hotmail.it" ]
fede.anne95@hotmail.it
0c2553972497c5c92dc8250a3febff16a529ad00
effce116340b7d937bd285e43b49e1ef83d56156
/data_files/377 Combination Sum IV.py
54ebc48fd1647b66ada9e61912eea5443cdad119
[]
no_license
DL2021Spring/CourseProject
a7c7ef57d69bc1b21e3303e737abb27bee3bd585
108cdd906e705e9d4d05640af32d34bfc8b124da
refs/heads/master
2023-04-11T18:52:30.562103
2021-05-18T09:59:59
2021-05-18T09:59:59
365,733,976
0
1
null
null
null
null
UTF-8
Python
false
false
485
py
__author__ = 'Daniel' class Solution(object): def combinationSum4(self, nums, target): F = [0 for _ in xrange(target + 1)] nums = filter(lambda x: x <= target, nums) for k in nums: F[k] = 1 for i in xrange(target + 1): for k in nums: if i - k >= 0: F[i] += F[i-k] return F[target] if __name__ == "__main__": assert Solution().combinationSum4([1, 2, 3], 4) == 7
[ "1042448815@qq.com" ]
1042448815@qq.com