repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
cainmatt/django
refs/heads/master
tests/prefetch_related/__init__.py
12133432
syseleven/pyapi-gitlab
refs/heads/develop
tests/__init__.py
12133432
JamesMGreene/phantomjs
refs/heads/master
src/breakpad/src/third_party/protobuf/protobuf/python/google/protobuf/internal/__init__.py
12133432
knmkr/dbsnp-pg-min
refs/heads/master
script/python/lib/__init__.py
12133432
echanna/EdxNotAFork
refs/heads/master
lms/djangoapps/courseware/tests/modulestore_config.py
29
""" Define test configuration for modulestores. """ from xmodule.modulestore.tests.django_utils import xml_store_config, \ mongo_store_config, draft_mongo_store_config,\ mixed_store_config from django.conf import settings TEST_DATA_DIR = settings.COMMON_TEST_DATA_ROOT TEST_DATA_XML_MODULESTORE = xml_store_config(TEST_DATA_DIR) TEST_DATA_MONGO_MODULESTORE = mongo_store_config(TEST_DATA_DIR) TEST_DATA_DRAFT_MONGO_MODULESTORE = draft_mongo_store_config(TEST_DATA_DIR) # Map all XML course fixtures so they are accessible through # the MixedModuleStore MAPPINGS = { 'edX/simple/2012_Fall': 'xml', 'edX/toy/2012_Fall': 'xml', 'edX/toy/TT_2012_Fall': 'xml', 'edX/test_end/2012_Fall': 'xml', 'edX/test_about_blob_end_date/2012_Fall': 'xml', 'edX/graded/2012_Fall': 'xml', 'edX/open_ended/2012_Fall': 'xml', 'edX/due_date/2013_fall': 'xml', 'edX/open_ended_nopath/2012_Fall': 'xml', 'edX/detached_pages/2014': 'xml', } TEST_DATA_MIXED_MODULESTORE = mixed_store_config(TEST_DATA_DIR, MAPPINGS)
tlksio/tlksio
refs/heads/develop
env/lib/python3.4/site-packages/twitter/__init__.py
4
#!/usr/bin/env python # # vim: sw=2 ts=2 sts=2 # # Copyright 2007 The Python-Twitter Developers # # 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. """A library that provides a Python interface to the Twitter API""" from __future__ import absolute_import __author__ = 'The Python-Twitter Developers' __email__ = 'python-twitter@googlegroups.com' __copyright__ = 'Copyright (c) 2007-2016 The Python-Twitter Developers' __license__ = 'Apache License 2.0' __version__ = '3.2.1' __url__ = 'https://github.com/bear/python-twitter' __download_url__ = 'https://pypi.python.org/pypi/python-twitter' __description__ = 'A Python wrapper around the Twitter API' import json # noqa try: from hashlib import md5 # noqa except ImportError: from md5 import md5 # noqa from ._file_cache import _FileCache # noqa from .error import TwitterError # noqa from .parse_tweet import ParseTweet # noqa from .models import ( # noqa Category, # noqa DirectMessage, # noqa Hashtag, # noqa List, # noqa Media, # noqa Trend, # noqa Url, # noqa User, # noqa UserStatus, # noqa Status # noqa ) from .api import Api # noqa
tictakk/servo
refs/heads/ticbranch
tests/wpt/web-platform-tests/mixed-content/generic/tools/common_paths.py
77
import os, sys, json, re script_directory = os.path.dirname(os.path.abspath(__file__)) generic_directory = os.path.abspath(os.path.join(script_directory, '..')) template_directory = os.path.abspath(os.path.join(script_directory, '..', 'template')) spec_directory = os.path.abspath(os.path.join(script_directory, '..', '..')) test_root_directory = os.path.abspath(os.path.join(script_directory, '..', '..', '..')) spec_filename = os.path.join(spec_directory, "spec.src.json") generated_spec_json_filename = os.path.join(spec_directory, "spec_json.js") selection_pattern = '%(opt_in_method)s/' + \ '%(origin)s/' + \ '%(subresource)s/' + \ '%(context_nesting)s/' + \ '%(redirection)s/' test_file_path_pattern = '%(spec_name)s/' + selection_pattern + \ '%(name)s.%(source_scheme)s.html' def get_template(basename): with open(os.path.join(template_directory, basename), "r") as f: return f.read() def write_file(filename, contents): with open(filename, "w") as f: f.write(contents) def read_nth_line(fp, line_number): fp.seek(0) for i, line in enumerate(fp): if (i + 1) == line_number: return line def load_spec_json(path_to_spec = None): if path_to_spec is None: path_to_spec = spec_filename re_error_location = re.compile('line ([0-9]+) column ([0-9]+)') with open(path_to_spec, "r") as f: try: return json.load(f) except ValueError, ex: print ex.message match = re_error_location.search(ex.message) if match: line_number, column = int(match.group(1)), int(match.group(2)) print read_nth_line(f, line_number).rstrip() print " " * (column - 1) + "^" sys.exit(1)
Mj258/weiboapi
refs/heads/master
srapyDemo/envs/Lib/encodings/mac_iceland.py
593
""" Python Character Mapping Codec mac_iceland generated from 'MAPPINGS/VENDORS/APPLE/ICELAND.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='strict'): return codecs.charmap_decode(input,errors,decoding_table) class IncrementalEncoder(codecs.IncrementalEncoder): def encode(self, input, final=False): return codecs.charmap_encode(input,self.errors,encoding_table)[0] class IncrementalDecoder(codecs.IncrementalDecoder): def decode(self, input, final=False): return codecs.charmap_decode(input,self.errors,decoding_table)[0] class StreamWriter(Codec,codecs.StreamWriter): pass class StreamReader(Codec,codecs.StreamReader): pass ### encodings module API def getregentry(): return codecs.CodecInfo( name='mac-iceland', encode=Codec().encode, decode=Codec().decode, incrementalencoder=IncrementalEncoder, incrementaldecoder=IncrementalDecoder, streamreader=StreamReader, streamwriter=StreamWriter, ) ### Decoding Table decoding_table = ( u'\x00' # 0x00 -> CONTROL CHARACTER u'\x01' # 0x01 -> CONTROL CHARACTER u'\x02' # 0x02 -> CONTROL CHARACTER u'\x03' # 0x03 -> CONTROL CHARACTER u'\x04' # 0x04 -> CONTROL CHARACTER u'\x05' # 0x05 -> CONTROL CHARACTER u'\x06' # 0x06 -> CONTROL CHARACTER u'\x07' # 0x07 -> CONTROL CHARACTER u'\x08' # 0x08 -> CONTROL CHARACTER u'\t' # 0x09 -> CONTROL CHARACTER u'\n' # 0x0A -> CONTROL CHARACTER u'\x0b' # 0x0B -> CONTROL CHARACTER u'\x0c' # 0x0C -> CONTROL CHARACTER u'\r' # 0x0D -> CONTROL CHARACTER u'\x0e' # 0x0E -> CONTROL CHARACTER u'\x0f' # 0x0F -> CONTROL CHARACTER u'\x10' # 0x10 -> CONTROL CHARACTER u'\x11' # 0x11 -> CONTROL CHARACTER u'\x12' # 0x12 -> CONTROL CHARACTER u'\x13' # 0x13 -> CONTROL CHARACTER u'\x14' # 0x14 -> CONTROL CHARACTER u'\x15' # 0x15 -> CONTROL CHARACTER u'\x16' # 0x16 -> CONTROL CHARACTER u'\x17' # 0x17 -> CONTROL CHARACTER u'\x18' # 0x18 -> CONTROL CHARACTER u'\x19' # 0x19 -> CONTROL CHARACTER u'\x1a' # 0x1A -> CONTROL CHARACTER u'\x1b' # 0x1B -> CONTROL CHARACTER u'\x1c' # 0x1C -> CONTROL CHARACTER u'\x1d' # 0x1D -> CONTROL CHARACTER u'\x1e' # 0x1E -> CONTROL CHARACTER u'\x1f' # 0x1F -> CONTROL CHARACTER u' ' # 0x20 -> SPACE u'!' # 0x21 -> EXCLAMATION MARK u'"' # 0x22 -> QUOTATION MARK u'#' # 0x23 -> NUMBER SIGN u'$' # 0x24 -> DOLLAR SIGN u'%' # 0x25 -> PERCENT SIGN u'&' # 0x26 -> AMPERSAND u"'" # 0x27 -> APOSTROPHE u'(' # 0x28 -> LEFT PARENTHESIS u')' # 0x29 -> RIGHT PARENTHESIS u'*' # 0x2A -> ASTERISK u'+' # 0x2B -> PLUS SIGN u',' # 0x2C -> COMMA u'-' # 0x2D -> HYPHEN-MINUS u'.' # 0x2E -> FULL STOP u'/' # 0x2F -> SOLIDUS u'0' # 0x30 -> DIGIT ZERO u'1' # 0x31 -> DIGIT ONE u'2' # 0x32 -> DIGIT TWO u'3' # 0x33 -> DIGIT THREE u'4' # 0x34 -> DIGIT FOUR u'5' # 0x35 -> DIGIT FIVE u'6' # 0x36 -> DIGIT SIX u'7' # 0x37 -> DIGIT SEVEN u'8' # 0x38 -> DIGIT EIGHT u'9' # 0x39 -> DIGIT NINE u':' # 0x3A -> COLON u';' # 0x3B -> SEMICOLON u'<' # 0x3C -> LESS-THAN SIGN u'=' # 0x3D -> EQUALS SIGN u'>' # 0x3E -> GREATER-THAN SIGN u'?' # 0x3F -> QUESTION MARK u'@' # 0x40 -> COMMERCIAL AT u'A' # 0x41 -> LATIN CAPITAL LETTER A u'B' # 0x42 -> LATIN CAPITAL LETTER B u'C' # 0x43 -> LATIN CAPITAL LETTER C u'D' # 0x44 -> LATIN CAPITAL LETTER D u'E' # 0x45 -> LATIN CAPITAL LETTER E u'F' # 0x46 -> LATIN CAPITAL LETTER F u'G' # 0x47 -> LATIN CAPITAL LETTER G u'H' # 0x48 -> LATIN CAPITAL LETTER H u'I' # 0x49 -> LATIN CAPITAL LETTER I u'J' # 0x4A -> LATIN CAPITAL LETTER J u'K' # 0x4B -> LATIN CAPITAL LETTER K u'L' # 0x4C -> LATIN CAPITAL LETTER L u'M' # 0x4D -> LATIN CAPITAL LETTER M u'N' # 0x4E -> LATIN CAPITAL LETTER N u'O' # 0x4F -> LATIN CAPITAL LETTER O u'P' # 0x50 -> LATIN CAPITAL LETTER P u'Q' # 0x51 -> LATIN CAPITAL LETTER Q u'R' # 0x52 -> LATIN CAPITAL LETTER R u'S' # 0x53 -> LATIN CAPITAL LETTER S u'T' # 0x54 -> LATIN CAPITAL LETTER T u'U' # 0x55 -> LATIN CAPITAL LETTER U u'V' # 0x56 -> LATIN CAPITAL LETTER V u'W' # 0x57 -> LATIN CAPITAL LETTER W u'X' # 0x58 -> LATIN CAPITAL LETTER X u'Y' # 0x59 -> LATIN CAPITAL LETTER Y u'Z' # 0x5A -> LATIN CAPITAL LETTER Z u'[' # 0x5B -> LEFT SQUARE BRACKET u'\\' # 0x5C -> REVERSE SOLIDUS u']' # 0x5D -> RIGHT SQUARE BRACKET u'^' # 0x5E -> CIRCUMFLEX ACCENT u'_' # 0x5F -> LOW LINE u'`' # 0x60 -> GRAVE ACCENT u'a' # 0x61 -> LATIN SMALL LETTER A u'b' # 0x62 -> LATIN SMALL LETTER B u'c' # 0x63 -> LATIN SMALL LETTER C u'd' # 0x64 -> LATIN SMALL LETTER D u'e' # 0x65 -> LATIN SMALL LETTER E u'f' # 0x66 -> LATIN SMALL LETTER F u'g' # 0x67 -> LATIN SMALL LETTER G u'h' # 0x68 -> LATIN SMALL LETTER H u'i' # 0x69 -> LATIN SMALL LETTER I u'j' # 0x6A -> LATIN SMALL LETTER J u'k' # 0x6B -> LATIN SMALL LETTER K u'l' # 0x6C -> LATIN SMALL LETTER L u'm' # 0x6D -> LATIN SMALL LETTER M u'n' # 0x6E -> LATIN SMALL LETTER N u'o' # 0x6F -> LATIN SMALL LETTER O u'p' # 0x70 -> LATIN SMALL LETTER P u'q' # 0x71 -> LATIN SMALL LETTER Q u'r' # 0x72 -> LATIN SMALL LETTER R u's' # 0x73 -> LATIN SMALL LETTER S u't' # 0x74 -> LATIN SMALL LETTER T u'u' # 0x75 -> LATIN SMALL LETTER U u'v' # 0x76 -> LATIN SMALL LETTER V u'w' # 0x77 -> LATIN SMALL LETTER W u'x' # 0x78 -> LATIN SMALL LETTER X u'y' # 0x79 -> LATIN SMALL LETTER Y u'z' # 0x7A -> LATIN SMALL LETTER Z u'{' # 0x7B -> LEFT CURLY BRACKET u'|' # 0x7C -> VERTICAL LINE u'}' # 0x7D -> RIGHT CURLY BRACKET u'~' # 0x7E -> TILDE u'\x7f' # 0x7F -> CONTROL CHARACTER u'\xc4' # 0x80 -> LATIN CAPITAL LETTER A WITH DIAERESIS u'\xc5' # 0x81 -> LATIN CAPITAL LETTER A WITH RING ABOVE u'\xc7' # 0x82 -> LATIN CAPITAL LETTER C WITH CEDILLA u'\xc9' # 0x83 -> LATIN CAPITAL LETTER E WITH ACUTE u'\xd1' # 0x84 -> LATIN CAPITAL LETTER N WITH TILDE u'\xd6' # 0x85 -> LATIN CAPITAL LETTER O WITH DIAERESIS u'\xdc' # 0x86 -> LATIN CAPITAL LETTER U WITH DIAERESIS u'\xe1' # 0x87 -> LATIN SMALL LETTER A WITH ACUTE u'\xe0' # 0x88 -> LATIN SMALL LETTER A WITH GRAVE u'\xe2' # 0x89 -> LATIN SMALL LETTER A WITH CIRCUMFLEX u'\xe4' # 0x8A -> LATIN SMALL LETTER A WITH DIAERESIS u'\xe3' # 0x8B -> LATIN SMALL LETTER A WITH TILDE u'\xe5' # 0x8C -> LATIN SMALL LETTER A WITH RING ABOVE u'\xe7' # 0x8D -> LATIN SMALL LETTER C WITH CEDILLA u'\xe9' # 0x8E -> LATIN SMALL LETTER E WITH ACUTE u'\xe8' # 0x8F -> LATIN SMALL LETTER E WITH GRAVE u'\xea' # 0x90 -> LATIN SMALL LETTER E WITH CIRCUMFLEX u'\xeb' # 0x91 -> LATIN SMALL LETTER E WITH DIAERESIS u'\xed' # 0x92 -> LATIN SMALL LETTER I WITH ACUTE u'\xec' # 0x93 -> LATIN SMALL LETTER I WITH GRAVE u'\xee' # 0x94 -> LATIN SMALL LETTER I WITH CIRCUMFLEX u'\xef' # 0x95 -> LATIN SMALL LETTER I WITH DIAERESIS u'\xf1' # 0x96 -> LATIN SMALL LETTER N WITH TILDE u'\xf3' # 0x97 -> LATIN SMALL LETTER O WITH ACUTE u'\xf2' # 0x98 -> LATIN SMALL LETTER O WITH GRAVE u'\xf4' # 0x99 -> LATIN SMALL LETTER O WITH CIRCUMFLEX u'\xf6' # 0x9A -> LATIN SMALL LETTER O WITH DIAERESIS u'\xf5' # 0x9B -> LATIN SMALL LETTER O WITH TILDE u'\xfa' # 0x9C -> LATIN SMALL LETTER U WITH ACUTE u'\xf9' # 0x9D -> LATIN SMALL LETTER U WITH GRAVE u'\xfb' # 0x9E -> LATIN SMALL LETTER U WITH CIRCUMFLEX u'\xfc' # 0x9F -> LATIN SMALL LETTER U WITH DIAERESIS u'\xdd' # 0xA0 -> LATIN CAPITAL LETTER Y WITH ACUTE u'\xb0' # 0xA1 -> DEGREE SIGN u'\xa2' # 0xA2 -> CENT SIGN u'\xa3' # 0xA3 -> POUND SIGN u'\xa7' # 0xA4 -> SECTION SIGN u'\u2022' # 0xA5 -> BULLET u'\xb6' # 0xA6 -> PILCROW SIGN u'\xdf' # 0xA7 -> LATIN SMALL LETTER SHARP S u'\xae' # 0xA8 -> REGISTERED SIGN u'\xa9' # 0xA9 -> COPYRIGHT SIGN u'\u2122' # 0xAA -> TRADE MARK SIGN u'\xb4' # 0xAB -> ACUTE ACCENT u'\xa8' # 0xAC -> DIAERESIS u'\u2260' # 0xAD -> NOT EQUAL TO u'\xc6' # 0xAE -> LATIN CAPITAL LETTER AE u'\xd8' # 0xAF -> LATIN CAPITAL LETTER O WITH STROKE u'\u221e' # 0xB0 -> INFINITY u'\xb1' # 0xB1 -> PLUS-MINUS SIGN u'\u2264' # 0xB2 -> LESS-THAN OR EQUAL TO u'\u2265' # 0xB3 -> GREATER-THAN OR EQUAL TO u'\xa5' # 0xB4 -> YEN SIGN u'\xb5' # 0xB5 -> MICRO SIGN u'\u2202' # 0xB6 -> PARTIAL DIFFERENTIAL u'\u2211' # 0xB7 -> N-ARY SUMMATION u'\u220f' # 0xB8 -> N-ARY PRODUCT u'\u03c0' # 0xB9 -> GREEK SMALL LETTER PI u'\u222b' # 0xBA -> INTEGRAL u'\xaa' # 0xBB -> FEMININE ORDINAL INDICATOR u'\xba' # 0xBC -> MASCULINE ORDINAL INDICATOR u'\u03a9' # 0xBD -> GREEK CAPITAL LETTER OMEGA u'\xe6' # 0xBE -> LATIN SMALL LETTER AE u'\xf8' # 0xBF -> LATIN SMALL LETTER O WITH STROKE u'\xbf' # 0xC0 -> INVERTED QUESTION MARK u'\xa1' # 0xC1 -> INVERTED EXCLAMATION MARK u'\xac' # 0xC2 -> NOT SIGN u'\u221a' # 0xC3 -> SQUARE ROOT u'\u0192' # 0xC4 -> LATIN SMALL LETTER F WITH HOOK u'\u2248' # 0xC5 -> ALMOST EQUAL TO u'\u2206' # 0xC6 -> INCREMENT u'\xab' # 0xC7 -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK u'\xbb' # 0xC8 -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK u'\u2026' # 0xC9 -> HORIZONTAL ELLIPSIS u'\xa0' # 0xCA -> NO-BREAK SPACE u'\xc0' # 0xCB -> LATIN CAPITAL LETTER A WITH GRAVE u'\xc3' # 0xCC -> LATIN CAPITAL LETTER A WITH TILDE u'\xd5' # 0xCD -> LATIN CAPITAL LETTER O WITH TILDE u'\u0152' # 0xCE -> LATIN CAPITAL LIGATURE OE u'\u0153' # 0xCF -> LATIN SMALL LIGATURE OE u'\u2013' # 0xD0 -> EN DASH u'\u2014' # 0xD1 -> EM DASH u'\u201c' # 0xD2 -> LEFT DOUBLE QUOTATION MARK u'\u201d' # 0xD3 -> RIGHT DOUBLE QUOTATION MARK u'\u2018' # 0xD4 -> LEFT SINGLE QUOTATION MARK u'\u2019' # 0xD5 -> RIGHT SINGLE QUOTATION MARK u'\xf7' # 0xD6 -> DIVISION SIGN u'\u25ca' # 0xD7 -> LOZENGE u'\xff' # 0xD8 -> LATIN SMALL LETTER Y WITH DIAERESIS u'\u0178' # 0xD9 -> LATIN CAPITAL LETTER Y WITH DIAERESIS u'\u2044' # 0xDA -> FRACTION SLASH u'\u20ac' # 0xDB -> EURO SIGN u'\xd0' # 0xDC -> LATIN CAPITAL LETTER ETH u'\xf0' # 0xDD -> LATIN SMALL LETTER ETH u'\xde' # 0xDE -> LATIN CAPITAL LETTER THORN u'\xfe' # 0xDF -> LATIN SMALL LETTER THORN u'\xfd' # 0xE0 -> LATIN SMALL LETTER Y WITH ACUTE u'\xb7' # 0xE1 -> MIDDLE DOT u'\u201a' # 0xE2 -> SINGLE LOW-9 QUOTATION MARK u'\u201e' # 0xE3 -> DOUBLE LOW-9 QUOTATION MARK u'\u2030' # 0xE4 -> PER MILLE SIGN u'\xc2' # 0xE5 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX u'\xca' # 0xE6 -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX u'\xc1' # 0xE7 -> LATIN CAPITAL LETTER A WITH ACUTE u'\xcb' # 0xE8 -> LATIN CAPITAL LETTER E WITH DIAERESIS u'\xc8' # 0xE9 -> LATIN CAPITAL LETTER E WITH GRAVE u'\xcd' # 0xEA -> LATIN CAPITAL LETTER I WITH ACUTE u'\xce' # 0xEB -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX u'\xcf' # 0xEC -> LATIN CAPITAL LETTER I WITH DIAERESIS u'\xcc' # 0xED -> LATIN CAPITAL LETTER I WITH GRAVE u'\xd3' # 0xEE -> LATIN CAPITAL LETTER O WITH ACUTE u'\xd4' # 0xEF -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX u'\uf8ff' # 0xF0 -> Apple logo u'\xd2' # 0xF1 -> LATIN CAPITAL LETTER O WITH GRAVE u'\xda' # 0xF2 -> LATIN CAPITAL LETTER U WITH ACUTE u'\xdb' # 0xF3 -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX u'\xd9' # 0xF4 -> LATIN CAPITAL LETTER U WITH GRAVE u'\u0131' # 0xF5 -> LATIN SMALL LETTER DOTLESS I u'\u02c6' # 0xF6 -> MODIFIER LETTER CIRCUMFLEX ACCENT u'\u02dc' # 0xF7 -> SMALL TILDE u'\xaf' # 0xF8 -> MACRON u'\u02d8' # 0xF9 -> BREVE u'\u02d9' # 0xFA -> DOT ABOVE u'\u02da' # 0xFB -> RING ABOVE u'\xb8' # 0xFC -> CEDILLA u'\u02dd' # 0xFD -> DOUBLE ACUTE ACCENT u'\u02db' # 0xFE -> OGONEK u'\u02c7' # 0xFF -> CARON ) ### Encoding table encoding_table=codecs.charmap_build(decoding_table)
toshywoshy/ansible
refs/heads/devel
lib/ansible/modules/network/cloudengine/ce_mtu.py
13
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. # ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: ce_mtu version_added: "2.4" short_description: Manages MTU settings on HUAWEI CloudEngine switches. description: - Manages MTU settings on HUAWEI CloudEngine switches. author: QijunPan (@QijunPan) notes: - Either C(sysmtu) param is required or C(interface) AND C(mtu) params are req'd. - C(state=absent) unconfigures a given MTU if that value is currently present. - Recommended connection is C(network_cli). - This module also works with C(local) connections for legacy playbooks. options: interface: description: - Full name of interface, i.e. 40GE1/0/22. mtu: description: - MTU for a specific interface. The value is an integer ranging from 46 to 9600, in bytes. jumbo_max: description: - Maximum frame size. The default value is 9216. The value is an integer and expressed in bytes. The value range is 1536 to 12224 for the CE12800 and 1536 to 12288 for ToR switches. jumbo_min: description: - Non-jumbo frame size threshold. The default value is 1518. The value is an integer that ranges from 1518 to jumbo_max, in bytes. state: description: - Specify desired state of the resource. default: present choices: ['present','absent'] ''' EXAMPLES = ''' - name: Mtu test hosts: cloudengine connection: local gather_facts: no vars: cli: host: "{{ inventory_hostname }}" port: "{{ ansible_ssh_port }}" username: "{{ username }}" password: "{{ password }}" transport: cli tasks: - name: "Config jumboframe on 40GE1/0/22" ce_mtu: interface: 40GE1/0/22 jumbo_max: 9000 jumbo_min: 8000 provider: "{{ cli }}" - name: "Config mtu on 40GE1/0/22 (routed interface)" ce_mtu: interface: 40GE1/0/22 mtu: 1600 provider: "{{ cli }}" - name: "Config mtu on 40GE1/0/23 (switched interface)" ce_mtu: interface: 40GE1/0/22 mtu: 9216 provider: "{{ cli }}" - name: "Config mtu and jumboframe on 40GE1/0/22 (routed interface)" ce_mtu: interface: 40GE1/0/22 mtu: 1601 jumbo_max: 9001 jumbo_min: 8001 provider: "{{ cli }}" - name: "Unconfigure mtu and jumboframe on a given interface" ce_mtu: state: absent interface: 40GE1/0/22 provider: "{{ cli }}" ''' RETURN = ''' proposed: description: k/v pairs of parameters passed into module returned: always type: dict sample: {"mtu": "1700", "jumbo_max": "9000", jumbo_min: "8000"} existing: description: k/v pairs of existing mtu/sysmtu on the interface/system returned: always type: dict sample: {"mtu": "1600", "jumbo_max": "9216", "jumbo_min": "1518"} end_state: description: k/v pairs of mtu/sysmtu values after module execution returned: always type: dict sample: {"mtu": "1700", "jumbo_max": "9000", jumbo_min: "8000"} updates: description: command sent to the device returned: always type: list sample: ["interface 40GE1/0/23", "mtu 1700", "jumboframe enable 9000 8000"] changed: description: check to see if a change was made on the device returned: always type: bool sample: true ''' import re import copy from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.network.cloudengine.ce import ce_argument_spec, load_config from ansible.module_utils.connection import exec_command def is_interface_support_setjumboframe(interface): """is interface support set jumboframe""" if interface is None: return False support_flag = False if interface.upper().startswith('GE'): support_flag = True elif interface.upper().startswith('10GE'): support_flag = True elif interface.upper().startswith('25GE'): support_flag = True elif interface.upper().startswith('4X10GE'): support_flag = True elif interface.upper().startswith('40GE'): support_flag = True elif interface.upper().startswith('100GE'): support_flag = True else: support_flag = False return support_flag def get_interface_type(interface): """Gets the type of interface, such as 10GE, ETH-TRUNK, VLANIF...""" if interface is None: return None iftype = None if interface.upper().startswith('GE'): iftype = 'ge' elif interface.upper().startswith('10GE'): iftype = '10ge' elif interface.upper().startswith('25GE'): iftype = '25ge' elif interface.upper().startswith('4X10GE'): iftype = '4x10ge' elif interface.upper().startswith('40GE'): iftype = '40ge' elif interface.upper().startswith('100GE'): iftype = '100ge' elif interface.upper().startswith('VLANIF'): iftype = 'vlanif' elif interface.upper().startswith('LOOPBACK'): iftype = 'loopback' elif interface.upper().startswith('METH'): iftype = 'meth' elif interface.upper().startswith('ETH-TRUNK'): iftype = 'eth-trunk' elif interface.upper().startswith('VBDIF'): iftype = 'vbdif' elif interface.upper().startswith('NVE'): iftype = 'nve' elif interface.upper().startswith('TUNNEL'): iftype = 'tunnel' elif interface.upper().startswith('ETHERNET'): iftype = 'ethernet' elif interface.upper().startswith('FCOE-PORT'): iftype = 'fcoe-port' elif interface.upper().startswith('FABRIC-PORT'): iftype = 'fabric-port' elif interface.upper().startswith('STACK-PORT'): iftype = 'stack-Port' elif interface.upper().startswith('NULL'): iftype = 'null' else: return None return iftype.lower() class Mtu(object): """set mtu""" def __init__(self, argument_spec): self.spec = argument_spec self.module = None self.init_module() # interface info self.interface = self.module.params['interface'] self.mtu = self.module.params['mtu'] self.state = self.module.params['state'] self.jbf_max = self.module.params['jumbo_max'] or None self.jbf_min = self.module.params['jumbo_min'] or None self.jbf_config = list() self.jbf_cli = "" self.commands = list() # state self.changed = False self.updates_cmd = list() self.results = dict() self.proposed = dict() self.existing = dict() self.end_state = dict() self.intf_info = dict() # one interface info self.intf_type = None # loopback tunnel ... def init_module(self): """ init_module""" self.module = AnsibleModule( argument_spec=self.spec, supports_check_mode=True) def get_config(self, flags=None): """Retrieves the current config from the device or cache """ flags = [] if flags is None else flags cmd = 'display current-configuration ' cmd += ' '.join(flags) cmd = cmd.strip() rc, out, err = exec_command(self.module, cmd) if rc != 0: self.module.fail_json(msg=err) cfg = str(out).strip() return cfg def get_interface_dict(self, ifname): """ get one interface attributes dict.""" intf_info = dict() flags = list() exp = r"| ignore-case section include ^#\s+interface %s\s+" % ifname.replace(" ", "") flags.append(exp) output = self.get_config(flags) output_list = output.split('\n') if output_list is None: return intf_info mtu = None for config in output_list: config = config.strip() if config.startswith('mtu'): mtu = re.findall(r'.*mtu\s*([0-9]*)', output)[0] intf_info = dict(ifName=ifname, ifMtu=mtu) return intf_info def prase_jumboframe_para(self, config_str): """prase_jumboframe_para""" interface_cli = "interface %s" % (self.interface.replace(" ", "").lower()) if config_str.find(interface_cli) == -1: self.module.fail_json(msg='Error: Interface does not exist.') try: npos1 = config_str.index('jumboframe enable') except ValueError: # return default vale return [9216, 1518] try: npos2 = config_str.index('\n', npos1) config_str_tmp = config_str[npos1:npos2] except ValueError: config_str_tmp = config_str[npos1:] return re.findall(r'([0-9]+)', config_str_tmp) def cli_load_config(self): """load config by cli""" if not self.module.check_mode: if len(self.commands) > 1: load_config(self.module, self.commands) self.changed = True def cli_add_command(self, command, undo=False): """add command to self.update_cmd and self.commands""" if undo and command.lower() not in ["quit", "return"]: cmd = "undo " + command else: cmd = command self.commands.append(cmd) # set to device def get_jumboframe_config(self): """ get_jumboframe_config""" flags = list() exp = r"| ignore-case section include ^#\s+interface %s\s+" % self.interface.replace(" ", "") flags.append(exp) output = self.get_config(flags) output = output.replace('*', '').lower() return self.prase_jumboframe_para(output) def set_jumboframe(self): """ set_jumboframe""" if self.state == "present": if not self.jbf_max and not self.jbf_min: return jbf_value = self.get_jumboframe_config() self.jbf_config = copy.deepcopy(jbf_value) if len(jbf_value) == 1: jbf_value.append("1518") self.jbf_config.append("1518") if not self.jbf_max: return if (len(jbf_value) > 2) or (len(jbf_value) == 0): self.module.fail_json( msg='Error: Get jubmoframe config value num error.') if self.jbf_min is None: if jbf_value[0] == self.jbf_max: return else: if (jbf_value[0] == self.jbf_max) \ and (jbf_value[1] == self.jbf_min): return if jbf_value[0] != self.jbf_max: jbf_value[0] = self.jbf_max if (jbf_value[1] != self.jbf_min) and (self.jbf_min is not None): jbf_value[1] = self.jbf_min else: jbf_value.pop(1) else: jbf_value = self.get_jumboframe_config() self.jbf_config = copy.deepcopy(jbf_value) if (jbf_value == [9216, 1518]): return jbf_value = [9216, 1518] if len(jbf_value) == 2: self.jbf_cli = "jumboframe enable %s %s" % ( jbf_value[0], jbf_value[1]) else: self.jbf_cli = "jumboframe enable %s" % (jbf_value[0]) self.cli_add_command(self.jbf_cli) if self.state == "present": if self.jbf_min: self.updates_cmd.append( "jumboframe enable %s %s" % (self.jbf_max, self.jbf_min)) else: self.updates_cmd.append("jumboframe enable %s" % (self.jbf_max)) else: self.updates_cmd.append("undo jumboframe enable") return def merge_interface(self, ifname, mtu): """ Merge interface mtu.""" xmlstr = '' change = False command = "interface %s" % ifname self.cli_add_command(command) if self.state == "present": if mtu and self.intf_info["ifMtu"] != mtu: command = "mtu %s" % mtu self.cli_add_command(command) self.updates_cmd.append("mtu %s" % mtu) change = True else: if self.intf_info["ifMtu"] != '1500' and self.intf_info["ifMtu"]: command = "mtu 1500" self.cli_add_command(command) self.updates_cmd.append("undo mtu") change = True return def check_params(self): """Check all input params""" # interface type check if self.interface: self.intf_type = get_interface_type(self.interface) if not self.intf_type: self.module.fail_json( msg='Error: Interface name of %s ' 'is error.' % self.interface) if not self.intf_type: self.module.fail_json( msg='Error: Interface %s is error.') # mtu check mtu if self.mtu: if not self.mtu.isdigit(): self.module.fail_json(msg='Error: Mtu is invalid.') # check mtu range if int(self.mtu) < 46 or int(self.mtu) > 9600: self.module.fail_json( msg='Error: Mtu is not in the range from 46 to 9600.') # get interface info self.intf_info = self.get_interface_dict(self.interface) if not self.intf_info: self.module.fail_json(msg='Error: interface does not exist.') # check interface can set jumbo frame if self.state == 'present': if self.jbf_max: if not is_interface_support_setjumboframe(self.interface): self.module.fail_json( msg='Error: Interface %s does not support jumboframe set.' % self.interface) if not self.jbf_max.isdigit(): self.module.fail_json( msg='Error: Max jumboframe is not digit.') if (int(self.jbf_max) > 12288) or (int(self.jbf_max) < 1536): self.module.fail_json( msg='Error: Max jumboframe is between 1536 to 12288.') if self.jbf_min: if not self.jbf_min.isdigit(): self.module.fail_json( msg='Error: Min jumboframe is not digit.') if not self.jbf_max: self.module.fail_json( msg='Error: please specify max jumboframe value.') if (int(self.jbf_min) > int(self.jbf_max)) or (int(self.jbf_min) < 1518): self.module.fail_json( msg='Error: Min jumboframe is between ' '1518 to jumboframe max value.') if self.jbf_min is not None: if self.jbf_max is None: self.module.fail_json( msg='Error: please input MAX jumboframe ' 'value.') def get_proposed(self): """ get_proposed""" self.proposed['state'] = self.state if self.interface: self.proposed["interface"] = self.interface if self.state == 'present': if self.mtu: self.proposed["mtu"] = self.mtu if self.jbf_max: if self.jbf_min: self.proposed["jumboframe"] = "jumboframe enable %s %s" % ( self.jbf_max, self.jbf_min) else: self.proposed[ "jumboframe"] = "jumboframe enable %s %s" % (self.jbf_max, 1518) def get_existing(self): """ get_existing""" if self.intf_info: self.existing["interface"] = self.intf_info["ifName"] self.existing["mtu"] = self.intf_info["ifMtu"] if self.intf_info: if not self.existing["interface"]: self.existing["interface"] = self.interface if len(self.jbf_config) != 2: return self.existing["jumboframe"] = "jumboframe enable %s %s" % ( self.jbf_config[0], self.jbf_config[1]) def get_end_state(self): """ get_end_state""" if self.intf_info: end_info = self.get_interface_dict(self.interface) if end_info: self.end_state["interface"] = end_info["ifName"] self.end_state["mtu"] = end_info["ifMtu"] if self.intf_info: if not self.end_state["interface"]: self.end_state["interface"] = self.interface if self.state == 'absent': self.end_state["jumboframe"] = "jumboframe enable %s %s" % ( 9216, 1518) elif not self.jbf_max and not self.jbf_min: if len(self.jbf_config) != 2: return self.end_state["jumboframe"] = "jumboframe enable %s %s" % ( self.jbf_config[0], self.jbf_config[1]) elif self.jbf_min: self.end_state["jumboframe"] = "jumboframe enable %s %s" % ( self.jbf_max, self.jbf_min) else: self.end_state[ "jumboframe"] = "jumboframe enable %s %s" % (self.jbf_max, 1518) if self.end_state == self.existing: self.changed = False def work(self): """worker""" self.check_params() self.get_proposed() self.merge_interface(self.interface, self.mtu) self.set_jumboframe() self.cli_load_config() self.get_existing() self.get_end_state() self.results['changed'] = self.changed self.results['proposed'] = self.proposed self.results['existing'] = self.existing self.results['end_state'] = self.end_state if self.changed: self.results['updates'] = self.updates_cmd else: self.results['updates'] = list() self.module.exit_json(**self.results) def main(): """ main""" argument_spec = dict( interface=dict(required=True, type='str'), mtu=dict(type='str'), state=dict(choices=['absent', 'present'], default='present', required=False), jumbo_max=dict(type='str'), jumbo_min=dict(type='str'), ) argument_spec.update(ce_argument_spec) interface = Mtu(argument_spec) interface.work() if __name__ == '__main__': main()
inspyration/odoo
refs/heads/master
addons/barcodes/__init__.py
1
import barcodes
qmarlats/pyquizz
refs/heads/master
env/lib/python3.5/site-packages/wheel/egg2wheel.py
471
#!/usr/bin/env python import os.path import re import sys import tempfile import zipfile import wheel.bdist_wheel import shutil import distutils.dist from distutils.archive_util import make_archive from argparse import ArgumentParser from glob import iglob egg_info_re = re.compile(r'''(?P<name>.+?)-(?P<ver>.+?) (-(?P<pyver>.+?))?(-(?P<arch>.+?))?.egg''', re.VERBOSE) def egg2wheel(egg_path, dest_dir): egg_info = egg_info_re.match(os.path.basename(egg_path)).groupdict() dir = tempfile.mkdtemp(suffix="_e2w") if os.path.isfile(egg_path): # assume we have a bdist_egg otherwise egg = zipfile.ZipFile(egg_path) egg.extractall(dir) else: # support buildout-style installed eggs directories for pth in os.listdir(egg_path): src = os.path.join(egg_path, pth) if os.path.isfile(src): shutil.copy2(src, dir) else: shutil.copytree(src, os.path.join(dir, pth)) dist_info = "%s-%s" % (egg_info['name'], egg_info['ver']) abi = 'none' pyver = egg_info['pyver'].replace('.', '') arch = (egg_info['arch'] or 'any').replace('.', '_').replace('-', '_') if arch != 'any': # assume all binary eggs are for CPython pyver = 'cp' + pyver[2:] wheel_name = '-'.join(( dist_info, pyver, abi, arch )) bw = wheel.bdist_wheel.bdist_wheel(distutils.dist.Distribution()) bw.root_is_purelib = egg_info['arch'] is None dist_info_dir = os.path.join(dir, '%s.dist-info' % dist_info) bw.egg2dist(os.path.join(dir, 'EGG-INFO'), dist_info_dir) bw.write_wheelfile(dist_info_dir, generator='egg2wheel') bw.write_record(dir, dist_info_dir) filename = make_archive(os.path.join(dest_dir, wheel_name), 'zip', root_dir=dir) os.rename(filename, filename[:-3] + 'whl') shutil.rmtree(dir) def main(): parser = ArgumentParser() parser.add_argument('eggs', nargs='*', help="Eggs to convert") parser.add_argument('--dest-dir', '-d', default=os.path.curdir, help="Directory to store wheels (default %(default)s)") parser.add_argument('--verbose', '-v', action='store_true') args = parser.parse_args() for pat in args.eggs: for egg in iglob(pat): if args.verbose: sys.stdout.write("{0}... ".format(egg)) egg2wheel(egg, args.dest_dir) if args.verbose: sys.stdout.write("OK\n") if __name__ == "__main__": main()
uriybashkirov/CHALLENGE-ACCEPTED
refs/heads/master
Labor2/Вариант 69.py
1
import math # -*- coding: utf-8 -*- print ('Введите x = ') x = int(input()) print ('Введите a = ' ) a = int(input()) print ('Введите: N = 1 для нахождения переменной G. N = 2 для нахождения переменной F. N = 3 для нахождения переменной Y.') n = int(input()) if n == 1: Y = ((9 *(7 *a * a + 39 * a * x + 20 * x * x)) / (9 * a * a + 59 * a * x + 30 * x * x)) if (0 <= Y) or (Y >= 0): print(round(Y, 3)) else: print ('Y не может быть результатом деления на 0.') elif n == 2: F = math.tanh(9 * a * a - 14 * a * x + 5 * x * x) if F: print(round(F, 3)) elif n == 3: G = math.log(14 * a * a - 75 * a * x + 54 * x * x + 1) / math.log(10) if G >= 0: print(round(G, 3)) else: print('Логарифм не может быть найден при таких значениях переменных.') else: print('Ошибка, попросите вывод результата одной из переменных G,F или Y.')
adlius/osf.io
refs/heads/develop
osf_tests/test_maintenance.py
25
import unittest from datetime import timedelta import pytest from django.utils import timezone from website import maintenance from osf.models import MaintenanceState pytestmark = pytest.mark.django_db class TestMaintenance(unittest.TestCase): def tearDown(self): MaintenanceState.objects.all().delete() def test_set_maintenance_twice(self): assert not MaintenanceState.objects.exists() maintenance.set_maintenance(message='') assert MaintenanceState.objects.all().count() == 1 maintenance.set_maintenance(message='') assert MaintenanceState.objects.all().count() == 1 def test_set_maintenance_with_start_date(self): start = timezone.now() maintenance.set_maintenance(message='', start=start.isoformat()) current_state = MaintenanceState.objects.all().first() assert current_state.start == start assert current_state.end == start + timedelta(1) def test_set_maintenance_with_end_date(self): end = timezone.now() maintenance.set_maintenance(message='', end=end.isoformat()) current_state = MaintenanceState.objects.all().first() assert current_state.start == end - timedelta(1) assert current_state.end == end def test_set_maintenance_in_future(self): start = (timezone.now() + timedelta(1)) maintenance.set_maintenance(message='', start=start.isoformat()) current_state = MaintenanceState.objects.all().first() assert current_state.start == start assert current_state.end == start + timedelta(1) def test_set_maintenance_level(self): maintenance.set_maintenance(message='') assert MaintenanceState.objects.all().first().level == 1 maintenance.unset_maintenance() maintenance.set_maintenance(message='', level=3) assert MaintenanceState.objects.all().first().level == 3 maintenance.unset_maintenance() def test_unset_maintenance(self): maintenance.set_maintenance(message='') assert MaintenanceState.objects.exists() maintenance.unset_maintenance() assert not MaintenanceState.objects.exists()
demographics/demographics
refs/heads/master
_/libs/timelinejs/website/app.py
34
''' Main entrypoint file. To run: $ python serve.py ''' from flask import Flask from flask import request from flask import render_template from flask import json from flask import send_from_directory import importlib import traceback import sys import os #if __name__ == "__main__": # Add current directory to sys.path site_dir = os.path.dirname(os.path.abspath(__file__)) if site_dir not in sys.path: sys.path.append(site_dir) # Set default FLASK_SETTINGS_MODULE for debug mode if not os.environ.get('FLASK_SETTINGS_MODULE', ''): os.environ['FLASK_SETTINGS_MODULE'] = 'core.settings.loc' # Import settings module for the inject_static_url context processor. settings_module = os.environ.get('FLASK_SETTINGS_MODULE') try: importlib.import_module(settings_module) except ImportError, e: raise ImportError( "Could not import settings '%s' (Is it on sys.path?): %s" \ % (settings_module, e)) settings = sys.modules[settings_module] app = Flask(__name__) build_dir = os.path.join(settings.PROJECT_ROOT, 'build') source_dir = os.path.join(settings.PROJECT_ROOT, 'source') @app.context_processor def inject_static_url(): """ Inject the variables 'static_url' and 'STATIC_URL' into the templates to avoid hard-coded paths to static files. Grab it from the environment variable STATIC_URL, or use the default. Never has a trailing slash. """ static_url = settings.STATIC_URL or app.static_url_path if static_url.endswith('/'): static_url = static_url.rstrip('/') return dict(static_url=static_url, STATIC_URL=static_url) @app.route('/build/<path:path>') def catch_build(path): """ Serve /build/... urls from the build directory """ return send_from_directory(build_dir, path) @app.route('/source/<path:path>') def catch_source(path): """ Serve /source/... urls from the source directory """ return send_from_directory(source_dir, path) @app.route('/') @app.route('/<path:path>') def catch_all(path='index.html'): """Catch-all function which serves every URL.""" if not os.path.splitext(path)[1]: path = os.path.join(path, 'index.html') return render_template(path) if __name__ == "__main__": app.run(host='0.0.0.0', port=5000, debug=True)
lingyunyumo/PyLinden
refs/heads/master
pygments/lexers/functional.py
42
# -*- coding: utf-8 -*- """ pygments.lexers.functional ~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for functional languages. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, bygroups, include, do_insertions from pygments.token import Text, Comment, Operator, Keyword, Name, \ String, Number, Punctuation, Literal, Generic, Error __all__ = ['RacketLexer', 'SchemeLexer', 'CommonLispLexer', 'HaskellLexer', 'LiterateHaskellLexer', 'SMLLexer', 'OcamlLexer', 'ErlangLexer', 'ErlangShellLexer', 'OpaLexer', 'CoqLexer', 'NewLispLexer', 'ElixirLexer', 'ElixirConsoleLexer', 'KokaLexer'] class RacketLexer(RegexLexer): """ Lexer for `Racket <http://racket-lang.org/>`_ source code (formerly known as PLT Scheme). *New in Pygments 1.6.* """ name = 'Racket' aliases = ['racket', 'rkt'] filenames = ['*.rkt', '*.rktl'] mimetypes = ['text/x-racket', 'application/x-racket'] # From namespace-mapped-symbols keywords = [ '#%app', '#%datum', '#%expression', '#%module-begin', '#%plain-app', '#%plain-lambda', '#%plain-module-begin', '#%provide', '#%require', '#%stratified-body', '#%top', '#%top-interaction', '#%variable-reference', '...', 'and', 'begin', 'begin-for-syntax', 'begin0', 'case', 'case-lambda', 'cond', 'datum->syntax-object', 'define', 'define-for-syntax', 'define-struct', 'define-syntax', 'define-syntax-rule', 'define-syntaxes', 'define-values', 'define-values-for-syntax', 'delay', 'do', 'expand-path', 'fluid-let', 'hash-table-copy', 'hash-table-count', 'hash-table-for-each', 'hash-table-get', 'hash-table-iterate-first', 'hash-table-iterate-key', 'hash-table-iterate-next', 'hash-table-iterate-value', 'hash-table-map', 'hash-table-put!', 'hash-table-remove!', 'hash-table?', 'if', 'lambda', 'let', 'let*', 'let*-values', 'let-struct', 'let-syntax', 'let-syntaxes', 'let-values', 'let/cc', 'let/ec', 'letrec', 'letrec-syntax', 'letrec-syntaxes', 'letrec-syntaxes+values', 'letrec-values', 'list-immutable', 'make-hash-table', 'make-immutable-hash-table', 'make-namespace', 'module', 'module-identifier=?', 'module-label-identifier=?', 'module-template-identifier=?', 'module-transformer-identifier=?', 'namespace-transformer-require', 'or', 'parameterize', 'parameterize*', 'parameterize-break', 'provide', 'provide-for-label', 'provide-for-syntax', 'quasiquote', 'quasisyntax', 'quasisyntax/loc', 'quote', 'quote-syntax', 'quote-syntax/prune', 'require', 'require-for-label', 'require-for-syntax', 'require-for-template', 'set!', 'set!-values', 'syntax', 'syntax-case', 'syntax-case*', 'syntax-id-rules', 'syntax-object->datum', 'syntax-rules', 'syntax/loc', 'time', 'transcript-off', 'transcript-on', 'unless', 'unquote', 'unquote-splicing', 'unsyntax', 'unsyntax-splicing', 'when', 'with-continuation-mark', 'with-handlers', 'with-handlers*', 'with-syntax', 'λ' ] # From namespace-mapped-symbols builtins = [ '*', '+', '-', '/', '<', '<=', '=', '>', '>=', 'abort-current-continuation', 'abs', 'absolute-path?', 'acos', 'add1', 'alarm-evt', 'always-evt', 'andmap', 'angle', 'append', 'apply', 'arithmetic-shift', 'arity-at-least', 'arity-at-least-value', 'arity-at-least?', 'asin', 'assoc', 'assq', 'assv', 'atan', 'banner', 'bitwise-and', 'bitwise-bit-field', 'bitwise-bit-set?', 'bitwise-ior', 'bitwise-not', 'bitwise-xor', 'boolean?', 'bound-identifier=?', 'box', 'box-immutable', 'box?', 'break-enabled', 'break-thread', 'build-path', 'build-path/convention-type', 'byte-pregexp', 'byte-pregexp?', 'byte-ready?', 'byte-regexp', 'byte-regexp?', 'byte?', 'bytes', 'bytes->immutable-bytes', 'bytes->list', 'bytes->path', 'bytes->path-element', 'bytes->string/latin-1', 'bytes->string/locale', 'bytes->string/utf-8', 'bytes-append', 'bytes-close-converter', 'bytes-convert', 'bytes-convert-end', 'bytes-converter?', 'bytes-copy', 'bytes-copy!', 'bytes-fill!', 'bytes-length', 'bytes-open-converter', 'bytes-ref', 'bytes-set!', 'bytes-utf-8-index', 'bytes-utf-8-length', 'bytes-utf-8-ref', 'bytes<?', 'bytes=?', 'bytes>?', 'bytes?', 'caaaar', 'caaadr', 'caaar', 'caadar', 'caaddr', 'caadr', 'caar', 'cadaar', 'cadadr', 'cadar', 'caddar', 'cadddr', 'caddr', 'cadr', 'call-in-nested-thread', 'call-with-break-parameterization', 'call-with-composable-continuation', 'call-with-continuation-barrier', 'call-with-continuation-prompt', 'call-with-current-continuation', 'call-with-escape-continuation', 'call-with-exception-handler', 'call-with-immediate-continuation-mark', 'call-with-input-file', 'call-with-output-file', 'call-with-parameterization', 'call-with-semaphore', 'call-with-semaphore/enable-break', 'call-with-values', 'call/cc', 'call/ec', 'car', 'cdaaar', 'cdaadr', 'cdaar', 'cdadar', 'cdaddr', 'cdadr', 'cdar', 'cddaar', 'cddadr', 'cddar', 'cdddar', 'cddddr', 'cdddr', 'cddr', 'cdr', 'ceiling', 'channel-get', 'channel-put', 'channel-put-evt', 'channel-try-get', 'channel?', 'chaperone-box', 'chaperone-evt', 'chaperone-hash', 'chaperone-of?', 'chaperone-procedure', 'chaperone-struct', 'chaperone-struct-type', 'chaperone-vector', 'chaperone?', 'char->integer', 'char-alphabetic?', 'char-blank?', 'char-ci<=?', 'char-ci<?', 'char-ci=?', 'char-ci>=?', 'char-ci>?', 'char-downcase', 'char-foldcase', 'char-general-category', 'char-graphic?', 'char-iso-control?', 'char-lower-case?', 'char-numeric?', 'char-punctuation?', 'char-ready?', 'char-symbolic?', 'char-title-case?', 'char-titlecase', 'char-upcase', 'char-upper-case?', 'char-utf-8-length', 'char-whitespace?', 'char<=?', 'char<?', 'char=?', 'char>=?', 'char>?', 'char?', 'check-duplicate-identifier', 'checked-procedure-check-and-extract', 'choice-evt', 'cleanse-path', 'close-input-port', 'close-output-port', 'collect-garbage', 'collection-file-path', 'collection-path', 'compile', 'compile-allow-set!-undefined', 'compile-context-preservation-enabled', 'compile-enforce-module-constants', 'compile-syntax', 'compiled-expression?', 'compiled-module-expression?', 'complete-path?', 'complex?', 'cons', 'continuation-mark-set->context', 'continuation-mark-set->list', 'continuation-mark-set->list*', 'continuation-mark-set-first', 'continuation-mark-set?', 'continuation-marks', 'continuation-prompt-available?', 'continuation-prompt-tag?', 'continuation?', 'copy-file', 'cos', 'current-break-parameterization', 'current-code-inspector', 'current-command-line-arguments', 'current-compile', 'current-continuation-marks', 'current-custodian', 'current-directory', 'current-drive', 'current-error-port', 'current-eval', 'current-evt-pseudo-random-generator', 'current-gc-milliseconds', 'current-get-interaction-input-port', 'current-inexact-milliseconds', 'current-input-port', 'current-inspector', 'current-library-collection-paths', 'current-load', 'current-load-extension', 'current-load-relative-directory', 'current-load/use-compiled', 'current-locale', 'current-memory-use', 'current-milliseconds', 'current-module-declare-name', 'current-module-declare-source', 'current-module-name-resolver', 'current-namespace', 'current-output-port', 'current-parameterization', 'current-preserved-thread-cell-values', 'current-print', 'current-process-milliseconds', 'current-prompt-read', 'current-pseudo-random-generator', 'current-read-interaction', 'current-reader-guard', 'current-readtable', 'current-seconds', 'current-security-guard', 'current-subprocess-custodian-mode', 'current-thread', 'current-thread-group', 'current-thread-initial-stack-size', 'current-write-relative-directory', 'custodian-box-value', 'custodian-box?', 'custodian-limit-memory', 'custodian-managed-list', 'custodian-memory-accounting-available?', 'custodian-require-memory', 'custodian-shutdown-all', 'custodian?', 'custom-print-quotable-accessor', 'custom-print-quotable?', 'custom-write-accessor', 'custom-write?', 'date', 'date*', 'date*-nanosecond', 'date*-time-zone-name', 'date*?', 'date-day', 'date-dst?', 'date-hour', 'date-minute', 'date-month', 'date-second', 'date-time-zone-offset', 'date-week-day', 'date-year', 'date-year-day', 'date?', 'datum-intern-literal', 'default-continuation-prompt-tag', 'delete-directory', 'delete-file', 'denominator', 'directory-exists?', 'directory-list', 'display', 'displayln', 'dump-memory-stats', 'dynamic-require', 'dynamic-require-for-syntax', 'dynamic-wind', 'eof', 'eof-object?', 'ephemeron-value', 'ephemeron?', 'eprintf', 'eq-hash-code', 'eq?', 'equal-hash-code', 'equal-secondary-hash-code', 'equal?', 'equal?/recur', 'eqv-hash-code', 'eqv?', 'error', 'error-display-handler', 'error-escape-handler', 'error-print-context-length', 'error-print-source-location', 'error-print-width', 'error-value->string-handler', 'eval', 'eval-jit-enabled', 'eval-syntax', 'even?', 'evt?', 'exact->inexact', 'exact-integer?', 'exact-nonnegative-integer?', 'exact-positive-integer?', 'exact?', 'executable-yield-handler', 'exit', 'exit-handler', 'exn', 'exn-continuation-marks', 'exn-message', 'exn:break', 'exn:break-continuation', 'exn:break?', 'exn:fail', 'exn:fail:contract', 'exn:fail:contract:arity', 'exn:fail:contract:arity?', 'exn:fail:contract:continuation', 'exn:fail:contract:continuation?', 'exn:fail:contract:divide-by-zero', 'exn:fail:contract:divide-by-zero?', 'exn:fail:contract:non-fixnum-result', 'exn:fail:contract:non-fixnum-result?', 'exn:fail:contract:variable', 'exn:fail:contract:variable-id', 'exn:fail:contract:variable?', 'exn:fail:contract?', 'exn:fail:filesystem', 'exn:fail:filesystem:exists', 'exn:fail:filesystem:exists?', 'exn:fail:filesystem:version', 'exn:fail:filesystem:version?', 'exn:fail:filesystem?', 'exn:fail:network', 'exn:fail:network?', 'exn:fail:out-of-memory', 'exn:fail:out-of-memory?', 'exn:fail:read', 'exn:fail:read-srclocs', 'exn:fail:read:eof', 'exn:fail:read:eof?', 'exn:fail:read:non-char', 'exn:fail:read:non-char?', 'exn:fail:read?', 'exn:fail:syntax', 'exn:fail:syntax-exprs', 'exn:fail:syntax:unbound', 'exn:fail:syntax:unbound?', 'exn:fail:syntax?', 'exn:fail:unsupported', 'exn:fail:unsupported?', 'exn:fail:user', 'exn:fail:user?', 'exn:fail?', 'exn:srclocs-accessor', 'exn:srclocs?', 'exn?', 'exp', 'expand', 'expand-once', 'expand-syntax', 'expand-syntax-once', 'expand-syntax-to-top-form', 'expand-to-top-form', 'expand-user-path', 'expt', 'file-exists?', 'file-or-directory-identity', 'file-or-directory-modify-seconds', 'file-or-directory-permissions', 'file-position', 'file-size', 'file-stream-buffer-mode', 'file-stream-port?', 'filesystem-root-list', 'find-executable-path', 'find-library-collection-paths', 'find-system-path', 'fixnum?', 'floating-point-bytes->real', 'flonum?', 'floor', 'flush-output', 'for-each', 'force', 'format', 'fprintf', 'free-identifier=?', 'gcd', 'generate-temporaries', 'gensym', 'get-output-bytes', 'get-output-string', 'getenv', 'global-port-print-handler', 'guard-evt', 'handle-evt', 'handle-evt?', 'hash', 'hash-equal?', 'hash-eqv?', 'hash-has-key?', 'hash-placeholder?', 'hash-ref!', 'hasheq', 'hasheqv', 'identifier-binding', 'identifier-label-binding', 'identifier-prune-lexical-context', 'identifier-prune-to-source-module', 'identifier-remove-from-definition-context', 'identifier-template-binding', 'identifier-transformer-binding', 'identifier?', 'imag-part', 'immutable?', 'impersonate-box', 'impersonate-hash', 'impersonate-procedure', 'impersonate-struct', 'impersonate-vector', 'impersonator-of?', 'impersonator-prop:application-mark', 'impersonator-property-accessor-procedure?', 'impersonator-property?', 'impersonator?', 'inexact->exact', 'inexact-real?', 'inexact?', 'input-port?', 'inspector?', 'integer->char', 'integer->integer-bytes', 'integer-bytes->integer', 'integer-length', 'integer-sqrt', 'integer-sqrt/remainder', 'integer?', 'internal-definition-context-seal', 'internal-definition-context?', 'keyword->string', 'keyword<?', 'keyword?', 'kill-thread', 'lcm', 'length', 'liberal-define-context?', 'link-exists?', 'list', 'list*', 'list->bytes', 'list->string', 'list->vector', 'list-ref', 'list-tail', 'list?', 'load', 'load-extension', 'load-on-demand-enabled', 'load-relative', 'load-relative-extension', 'load/cd', 'load/use-compiled', 'local-expand', 'local-expand/capture-lifts', 'local-transformer-expand', 'local-transformer-expand/capture-lifts', 'locale-string-encoding', 'log', 'magnitude', 'make-arity-at-least', 'make-bytes', 'make-channel', 'make-continuation-prompt-tag', 'make-custodian', 'make-custodian-box', 'make-date', 'make-date*', 'make-derived-parameter', 'make-directory', 'make-ephemeron', 'make-exn', 'make-exn:break', 'make-exn:fail', 'make-exn:fail:contract', 'make-exn:fail:contract:arity', 'make-exn:fail:contract:continuation', 'make-exn:fail:contract:divide-by-zero', 'make-exn:fail:contract:non-fixnum-result', 'make-exn:fail:contract:variable', 'make-exn:fail:filesystem', 'make-exn:fail:filesystem:exists', 'make-exn:fail:filesystem:version', 'make-exn:fail:network', 'make-exn:fail:out-of-memory', 'make-exn:fail:read', 'make-exn:fail:read:eof', 'make-exn:fail:read:non-char', 'make-exn:fail:syntax', 'make-exn:fail:syntax:unbound', 'make-exn:fail:unsupported', 'make-exn:fail:user', 'make-file-or-directory-link', 'make-hash-placeholder', 'make-hasheq-placeholder', 'make-hasheqv', 'make-hasheqv-placeholder', 'make-immutable-hasheqv', 'make-impersonator-property', 'make-input-port', 'make-inspector', 'make-known-char-range-list', 'make-output-port', 'make-parameter', 'make-pipe', 'make-placeholder', 'make-polar', 'make-prefab-struct', 'make-pseudo-random-generator', 'make-reader-graph', 'make-readtable', 'make-rectangular', 'make-rename-transformer', 'make-resolved-module-path', 'make-security-guard', 'make-semaphore', 'make-set!-transformer', 'make-shared-bytes', 'make-sibling-inspector', 'make-special-comment', 'make-srcloc', 'make-string', 'make-struct-field-accessor', 'make-struct-field-mutator', 'make-struct-type', 'make-struct-type-property', 'make-syntax-delta-introducer', 'make-syntax-introducer', 'make-thread-cell', 'make-thread-group', 'make-vector', 'make-weak-box', 'make-weak-hasheqv', 'make-will-executor', 'map', 'max', 'mcar', 'mcdr', 'mcons', 'member', 'memq', 'memv', 'min', 'module->exports', 'module->imports', 'module->language-info', 'module->namespace', 'module-compiled-exports', 'module-compiled-imports', 'module-compiled-language-info', 'module-compiled-name', 'module-path-index-join', 'module-path-index-resolve', 'module-path-index-split', 'module-path-index?', 'module-path?', 'module-predefined?', 'module-provide-protected?', 'modulo', 'mpair?', 'nack-guard-evt', 'namespace-attach-module', 'namespace-attach-module-declaration', 'namespace-base-phase', 'namespace-mapped-symbols', 'namespace-module-identifier', 'namespace-module-registry', 'namespace-require', 'namespace-require/constant', 'namespace-require/copy', 'namespace-require/expansion-time', 'namespace-set-variable-value!', 'namespace-symbol->identifier', 'namespace-syntax-introduce', 'namespace-undefine-variable!', 'namespace-unprotect-module', 'namespace-variable-value', 'namespace?', 'negative?', 'never-evt', 'newline', 'normal-case-path', 'not', 'null', 'null?', 'number->string', 'number?', 'numerator', 'object-name', 'odd?', 'open-input-bytes', 'open-input-file', 'open-input-output-file', 'open-input-string', 'open-output-bytes', 'open-output-file', 'open-output-string', 'ormap', 'output-port?', 'pair?', 'parameter-procedure=?', 'parameter?', 'parameterization?', 'path->bytes', 'path->complete-path', 'path->directory-path', 'path->string', 'path-add-suffix', 'path-convention-type', 'path-element->bytes', 'path-element->string', 'path-for-some-system?', 'path-list-string->path-list', 'path-replace-suffix', 'path-string?', 'path?', 'peek-byte', 'peek-byte-or-special', 'peek-bytes', 'peek-bytes!', 'peek-bytes-avail!', 'peek-bytes-avail!*', 'peek-bytes-avail!/enable-break', 'peek-char', 'peek-char-or-special', 'peek-string', 'peek-string!', 'pipe-content-length', 'placeholder-get', 'placeholder-set!', 'placeholder?', 'poll-guard-evt', 'port-closed-evt', 'port-closed?', 'port-commit-peeked', 'port-count-lines!', 'port-count-lines-enabled', 'port-display-handler', 'port-file-identity', 'port-file-unlock', 'port-next-location', 'port-print-handler', 'port-progress-evt', 'port-provides-progress-evts?', 'port-read-handler', 'port-try-file-lock?', 'port-write-handler', 'port-writes-atomic?', 'port-writes-special?', 'port?', 'positive?', 'prefab-key->struct-type', 'prefab-struct-key', 'pregexp', 'pregexp?', 'primitive-closure?', 'primitive-result-arity', 'primitive?', 'print', 'print-as-expression', 'print-boolean-long-form', 'print-box', 'print-graph', 'print-hash-table', 'print-mpair-curly-braces', 'print-pair-curly-braces', 'print-reader-abbreviations', 'print-struct', 'print-syntax-width', 'print-unreadable', 'print-vector-length', 'printf', 'procedure->method', 'procedure-arity', 'procedure-arity-includes?', 'procedure-arity?', 'procedure-closure-contents-eq?', 'procedure-extract-target', 'procedure-reduce-arity', 'procedure-rename', 'procedure-struct-type?', 'procedure?', 'promise?', 'prop:arity-string', 'prop:checked-procedure', 'prop:custom-print-quotable', 'prop:custom-write', 'prop:equal+hash', 'prop:evt', 'prop:exn:srclocs', 'prop:impersonator-of', 'prop:input-port', 'prop:liberal-define-context', 'prop:output-port', 'prop:procedure', 'prop:rename-transformer', 'prop:set!-transformer', 'pseudo-random-generator->vector', 'pseudo-random-generator-vector?', 'pseudo-random-generator?', 'putenv', 'quotient', 'quotient/remainder', 'raise', 'raise-arity-error', 'raise-mismatch-error', 'raise-syntax-error', 'raise-type-error', 'raise-user-error', 'random', 'random-seed', 'rational?', 'rationalize', 'read', 'read-accept-bar-quote', 'read-accept-box', 'read-accept-compiled', 'read-accept-dot', 'read-accept-graph', 'read-accept-infix-dot', 'read-accept-lang', 'read-accept-quasiquote', 'read-accept-reader', 'read-byte', 'read-byte-or-special', 'read-bytes', 'read-bytes!', 'read-bytes-avail!', 'read-bytes-avail!*', 'read-bytes-avail!/enable-break', 'read-bytes-line', 'read-case-sensitive', 'read-char', 'read-char-or-special', 'read-curly-brace-as-paren', 'read-decimal-as-inexact', 'read-eval-print-loop', 'read-language', 'read-line', 'read-on-demand-source', 'read-square-bracket-as-paren', 'read-string', 'read-string!', 'read-syntax', 'read-syntax/recursive', 'read/recursive', 'readtable-mapping', 'readtable?', 'real->double-flonum', 'real->floating-point-bytes', 'real->single-flonum', 'real-part', 'real?', 'regexp', 'regexp-match', 'regexp-match-peek', 'regexp-match-peek-immediate', 'regexp-match-peek-positions', 'regexp-match-peek-positions-immediate', 'regexp-match-peek-positions-immediate/end', 'regexp-match-peek-positions/end', 'regexp-match-positions', 'regexp-match-positions/end', 'regexp-match/end', 'regexp-match?', 'regexp-max-lookbehind', 'regexp-replace', 'regexp-replace*', 'regexp?', 'relative-path?', 'remainder', 'rename-file-or-directory', 'rename-transformer-target', 'rename-transformer?', 'resolve-path', 'resolved-module-path-name', 'resolved-module-path?', 'reverse', 'round', 'seconds->date', 'security-guard?', 'semaphore-peek-evt', 'semaphore-post', 'semaphore-try-wait?', 'semaphore-wait', 'semaphore-wait/enable-break', 'semaphore?', 'set!-transformer-procedure', 'set!-transformer?', 'set-box!', 'set-mcar!', 'set-mcdr!', 'set-port-next-location!', 'shared-bytes', 'shell-execute', 'simplify-path', 'sin', 'single-flonum?', 'sleep', 'special-comment-value', 'special-comment?', 'split-path', 'sqrt', 'srcloc', 'srcloc-column', 'srcloc-line', 'srcloc-position', 'srcloc-source', 'srcloc-span', 'srcloc?', 'string', 'string->bytes/latin-1', 'string->bytes/locale', 'string->bytes/utf-8', 'string->immutable-string', 'string->keyword', 'string->list', 'string->number', 'string->path', 'string->path-element', 'string->symbol', 'string->uninterned-symbol', 'string->unreadable-symbol', 'string-append', 'string-ci<=?', 'string-ci<?', 'string-ci=?', 'string-ci>=?', 'string-ci>?', 'string-copy', 'string-copy!', 'string-downcase', 'string-fill!', 'string-foldcase', 'string-length', 'string-locale-ci<?', 'string-locale-ci=?', 'string-locale-ci>?', 'string-locale-downcase', 'string-locale-upcase', 'string-locale<?', 'string-locale=?', 'string-locale>?', 'string-normalize-nfc', 'string-normalize-nfd', 'string-normalize-nfkc', 'string-normalize-nfkd', 'string-ref', 'string-set!', 'string-titlecase', 'string-upcase', 'string-utf-8-length', 'string<=?', 'string<?', 'string=?', 'string>=?', 'string>?', 'string?', 'struct->vector', 'struct-accessor-procedure?', 'struct-constructor-procedure?', 'struct-info', 'struct-mutator-procedure?', 'struct-predicate-procedure?', 'struct-type-info', 'struct-type-make-constructor', 'struct-type-make-predicate', 'struct-type-property-accessor-procedure?', 'struct-type-property?', 'struct-type?', 'struct:arity-at-least', 'struct:date', 'struct:date*', 'struct:exn', 'struct:exn:break', 'struct:exn:fail', 'struct:exn:fail:contract', 'struct:exn:fail:contract:arity', 'struct:exn:fail:contract:continuation', 'struct:exn:fail:contract:divide-by-zero', 'struct:exn:fail:contract:non-fixnum-result', 'struct:exn:fail:contract:variable', 'struct:exn:fail:filesystem', 'struct:exn:fail:filesystem:exists', 'struct:exn:fail:filesystem:version', 'struct:exn:fail:network', 'struct:exn:fail:out-of-memory', 'struct:exn:fail:read', 'struct:exn:fail:read:eof', 'struct:exn:fail:read:non-char', 'struct:exn:fail:syntax', 'struct:exn:fail:syntax:unbound', 'struct:exn:fail:unsupported', 'struct:exn:fail:user', 'struct:srcloc', 'struct?', 'sub1', 'subbytes', 'subprocess', 'subprocess-group-enabled', 'subprocess-kill', 'subprocess-pid', 'subprocess-status', 'subprocess-wait', 'subprocess?', 'substring', 'symbol->string', 'symbol-interned?', 'symbol-unreadable?', 'symbol?', 'sync', 'sync/enable-break', 'sync/timeout', 'sync/timeout/enable-break', 'syntax->list', 'syntax-arm', 'syntax-column', 'syntax-disarm', 'syntax-e', 'syntax-line', 'syntax-local-bind-syntaxes', 'syntax-local-certifier', 'syntax-local-context', 'syntax-local-expand-expression', 'syntax-local-get-shadower', 'syntax-local-introduce', 'syntax-local-lift-context', 'syntax-local-lift-expression', 'syntax-local-lift-module-end-declaration', 'syntax-local-lift-provide', 'syntax-local-lift-require', 'syntax-local-lift-values-expression', 'syntax-local-make-definition-context', 'syntax-local-make-delta-introducer', 'syntax-local-module-defined-identifiers', 'syntax-local-module-exports', 'syntax-local-module-required-identifiers', 'syntax-local-name', 'syntax-local-phase-level', 'syntax-local-transforming-module-provides?', 'syntax-local-value', 'syntax-local-value/immediate', 'syntax-original?', 'syntax-position', 'syntax-property', 'syntax-property-symbol-keys', 'syntax-protect', 'syntax-rearm', 'syntax-recertify', 'syntax-shift-phase-level', 'syntax-source', 'syntax-source-module', 'syntax-span', 'syntax-taint', 'syntax-tainted?', 'syntax-track-origin', 'syntax-transforming-module-expression?', 'syntax-transforming?', 'syntax?', 'system-big-endian?', 'system-idle-evt', 'system-language+country', 'system-library-subpath', 'system-path-convention-type', 'system-type', 'tan', 'tcp-abandon-port', 'tcp-accept', 'tcp-accept-evt', 'tcp-accept-ready?', 'tcp-accept/enable-break', 'tcp-addresses', 'tcp-close', 'tcp-connect', 'tcp-connect/enable-break', 'tcp-listen', 'tcp-listener?', 'tcp-port?', 'terminal-port?', 'thread', 'thread-cell-ref', 'thread-cell-set!', 'thread-cell?', 'thread-dead-evt', 'thread-dead?', 'thread-group?', 'thread-resume', 'thread-resume-evt', 'thread-rewind-receive', 'thread-running?', 'thread-suspend', 'thread-suspend-evt', 'thread-wait', 'thread/suspend-to-kill', 'thread?', 'time-apply', 'truncate', 'udp-addresses', 'udp-bind!', 'udp-bound?', 'udp-close', 'udp-connect!', 'udp-connected?', 'udp-open-socket', 'udp-receive!', 'udp-receive!*', 'udp-receive!-evt', 'udp-receive!/enable-break', 'udp-receive-ready-evt', 'udp-send', 'udp-send*', 'udp-send-evt', 'udp-send-ready-evt', 'udp-send-to', 'udp-send-to*', 'udp-send-to-evt', 'udp-send-to/enable-break', 'udp-send/enable-break', 'udp?', 'unbox', 'uncaught-exception-handler', 'use-collection-link-paths', 'use-compiled-file-paths', 'use-user-specific-search-paths', 'values', 'variable-reference->empty-namespace', 'variable-reference->module-base-phase', 'variable-reference->module-declaration-inspector', 'variable-reference->module-source', 'variable-reference->namespace', 'variable-reference->phase', 'variable-reference->resolved-module-path', 'variable-reference-constant?', 'variable-reference?', 'vector', 'vector->immutable-vector', 'vector->list', 'vector->pseudo-random-generator', 'vector->pseudo-random-generator!', 'vector->values', 'vector-fill!', 'vector-immutable', 'vector-length', 'vector-ref', 'vector-set!', 'vector-set-performance-stats!', 'vector?', 'version', 'void', 'void?', 'weak-box-value', 'weak-box?', 'will-execute', 'will-executor?', 'will-register', 'will-try-execute', 'with-input-from-file', 'with-output-to-file', 'wrap-evt', 'write', 'write-byte', 'write-bytes', 'write-bytes-avail', 'write-bytes-avail*', 'write-bytes-avail-evt', 'write-bytes-avail/enable-break', 'write-char', 'write-special', 'write-special-avail*', 'write-special-evt', 'write-string', 'zero?' ] # From SchemeLexer valid_name = r'[a-zA-Z0-9!$%&*+,/:<=>?@^_~|-]+' tokens = { 'root' : [ (r';.*$', Comment.Single), (r'#\|[^|]+\|#', Comment.Multiline), # whitespaces - usually not relevant (r'\s+', Text), ## numbers: Keep in mind Racket reader hash prefixes, ## which can denote the base or the type. These don't map ## neatly onto pygments token types; some judgment calls ## here. Note that none of these regexps attempt to ## exclude identifiers that start with a number, such as a ## variable named "100-Continue". # #b (r'#b[-+]?[01]+\.[01]+', Number.Float), (r'#b[01]+e[-+]?[01]+', Number.Float), (r'#b[-+]?[01]/[01]+', Number), (r'#b[-+]?[01]+', Number.Integer), (r'#b\S*', Error), # #d OR no hash prefix (r'(#d)?[-+]?\d+\.\d+', Number.Float), (r'(#d)?\d+e[-+]?\d+', Number.Float), (r'(#d)?[-+]?\d+/\d+', Number), (r'(#d)?[-+]?\d+', Number.Integer), (r'#d\S*', Error), # #e (r'#e[-+]?\d+\.\d+', Number.Float), (r'#e\d+e[-+]?\d+', Number.Float), (r'#e[-+]?\d+/\d+', Number), (r'#e[-+]?\d+', Number), (r'#e\S*', Error), # #i is always inexact-real, i.e. float (r'#i[-+]?\d+\.\d+', Number.Float), (r'#i\d+e[-+]?\d+', Number.Float), (r'#i[-+]?\d+/\d+', Number.Float), (r'#i[-+]?\d+', Number.Float), (r'#i\S*', Error), # #o (r'#o[-+]?[0-7]+\.[0-7]+', Number.Oct), (r'#o[0-7]+e[-+]?[0-7]+', Number.Oct), (r'#o[-+]?[0-7]+/[0-7]+', Number.Oct), (r'#o[-+]?[0-7]+', Number.Oct), (r'#o\S*', Error), # #x (r'#x[-+]?[0-9a-fA-F]+\.[0-9a-fA-F]+', Number.Hex), # the exponent variation (e.g. #x1e1) is N/A (r'#x[-+]?[0-9a-fA-F]+/[0-9a-fA-F]+', Number.Hex), (r'#x[-+]?[0-9a-fA-F]+', Number.Hex), (r'#x\S*', Error), # strings, symbols and characters (r'"(\\\\|\\"|[^"])*"', String), (r"'" + valid_name, String.Symbol), (r"#\\([()/'\"._!§$%& ?=+-]{1}|[a-zA-Z0-9]+)", String.Char), (r'#rx".+"', String.Regex), (r'#px".+"', String.Regex), # constants (r'(#t|#f)', Name.Constant), # keyword argument names (e.g. #:keyword) (r'#:\S+', Keyword.Declaration), # #lang (r'#lang \S+', Keyword.Namespace), # special operators (r"('|#|`|,@|,|\.)", Operator), # highlight the keywords ('(%s)' % '|'.join([ re.escape(entry) + ' ' for entry in keywords]), Keyword ), # first variable in a quoted string like # '(this is syntactic sugar) (r"(?<='\()" + valid_name, Name.Variable), (r"(?<=#\()" + valid_name, Name.Variable), # highlight the builtins ("(?<=\()(%s)" % '|'.join([ re.escape(entry) + ' ' for entry in builtins]), Name.Builtin ), # the remaining functions; handle both ( and [ (r'(?<=(\(|\[|\{))' + valid_name, Name.Function), # find the remaining variables (valid_name, Name.Variable), # the famous parentheses! (r'(\(|\)|\[|\]|\{|\})', Punctuation), ], } class SchemeLexer(RegexLexer): """ A Scheme lexer, parsing a stream and outputting the tokens needed to highlight scheme code. This lexer could be most probably easily subclassed to parse other LISP-Dialects like Common Lisp, Emacs Lisp or AutoLisp. This parser is checked with pastes from the LISP pastebin at http://paste.lisp.org/ to cover as much syntax as possible. It supports the full Scheme syntax as defined in R5RS. *New in Pygments 0.6.* """ name = 'Scheme' aliases = ['scheme', 'scm'] filenames = ['*.scm', '*.ss'] mimetypes = ['text/x-scheme', 'application/x-scheme'] # list of known keywords and builtins taken form vim 6.4 scheme.vim # syntax file. keywords = [ 'lambda', 'define', 'if', 'else', 'cond', 'and', 'or', 'case', 'let', 'let*', 'letrec', 'begin', 'do', 'delay', 'set!', '=>', 'quote', 'quasiquote', 'unquote', 'unquote-splicing', 'define-syntax', 'let-syntax', 'letrec-syntax', 'syntax-rules' ] builtins = [ '*', '+', '-', '/', '<', '<=', '=', '>', '>=', 'abs', 'acos', 'angle', 'append', 'apply', 'asin', 'assoc', 'assq', 'assv', 'atan', 'boolean?', 'caaaar', 'caaadr', 'caaar', 'caadar', 'caaddr', 'caadr', 'caar', 'cadaar', 'cadadr', 'cadar', 'caddar', 'cadddr', 'caddr', 'cadr', 'call-with-current-continuation', 'call-with-input-file', 'call-with-output-file', 'call-with-values', 'call/cc', 'car', 'cdaaar', 'cdaadr', 'cdaar', 'cdadar', 'cdaddr', 'cdadr', 'cdar', 'cddaar', 'cddadr', 'cddar', 'cdddar', 'cddddr', 'cdddr', 'cddr', 'cdr', 'ceiling', 'char->integer', 'char-alphabetic?', 'char-ci<=?', 'char-ci<?', 'char-ci=?', 'char-ci>=?', 'char-ci>?', 'char-downcase', 'char-lower-case?', 'char-numeric?', 'char-ready?', 'char-upcase', 'char-upper-case?', 'char-whitespace?', 'char<=?', 'char<?', 'char=?', 'char>=?', 'char>?', 'char?', 'close-input-port', 'close-output-port', 'complex?', 'cons', 'cos', 'current-input-port', 'current-output-port', 'denominator', 'display', 'dynamic-wind', 'eof-object?', 'eq?', 'equal?', 'eqv?', 'eval', 'even?', 'exact->inexact', 'exact?', 'exp', 'expt', 'floor', 'for-each', 'force', 'gcd', 'imag-part', 'inexact->exact', 'inexact?', 'input-port?', 'integer->char', 'integer?', 'interaction-environment', 'lcm', 'length', 'list', 'list->string', 'list->vector', 'list-ref', 'list-tail', 'list?', 'load', 'log', 'magnitude', 'make-polar', 'make-rectangular', 'make-string', 'make-vector', 'map', 'max', 'member', 'memq', 'memv', 'min', 'modulo', 'negative?', 'newline', 'not', 'null-environment', 'null?', 'number->string', 'number?', 'numerator', 'odd?', 'open-input-file', 'open-output-file', 'output-port?', 'pair?', 'peek-char', 'port?', 'positive?', 'procedure?', 'quotient', 'rational?', 'rationalize', 'read', 'read-char', 'real-part', 'real?', 'remainder', 'reverse', 'round', 'scheme-report-environment', 'set-car!', 'set-cdr!', 'sin', 'sqrt', 'string', 'string->list', 'string->number', 'string->symbol', 'string-append', 'string-ci<=?', 'string-ci<?', 'string-ci=?', 'string-ci>=?', 'string-ci>?', 'string-copy', 'string-fill!', 'string-length', 'string-ref', 'string-set!', 'string<=?', 'string<?', 'string=?', 'string>=?', 'string>?', 'string?', 'substring', 'symbol->string', 'symbol?', 'tan', 'transcript-off', 'transcript-on', 'truncate', 'values', 'vector', 'vector->list', 'vector-fill!', 'vector-length', 'vector-ref', 'vector-set!', 'vector?', 'with-input-from-file', 'with-output-to-file', 'write', 'write-char', 'zero?' ] # valid names for identifiers # well, names can only not consist fully of numbers # but this should be good enough for now valid_name = r'[a-zA-Z0-9!$%&*+,/:<=>?@^_~|-]+' tokens = { 'root' : [ # the comments - always starting with semicolon # and going to the end of the line (r';.*$', Comment.Single), # whitespaces - usually not relevant (r'\s+', Text), # numbers (r'-?\d+\.\d+', Number.Float), (r'-?\d+', Number.Integer), # support for uncommon kinds of numbers - # have to figure out what the characters mean #(r'(#e|#i|#b|#o|#d|#x)[\d.]+', Number), # strings, symbols and characters (r'"(\\\\|\\"|[^"])*"', String), (r"'" + valid_name, String.Symbol), (r"#\\([()/'\"._!§$%& ?=+-]{1}|[a-zA-Z0-9]+)", String.Char), # constants (r'(#t|#f)', Name.Constant), # special operators (r"('|#|`|,@|,|\.)", Operator), # highlight the keywords ('(%s)' % '|'.join([ re.escape(entry) + ' ' for entry in keywords]), Keyword ), # first variable in a quoted string like # '(this is syntactic sugar) (r"(?<='\()" + valid_name, Name.Variable), (r"(?<=#\()" + valid_name, Name.Variable), # highlight the builtins ("(?<=\()(%s)" % '|'.join([ re.escape(entry) + ' ' for entry in builtins]), Name.Builtin ), # the remaining functions (r'(?<=\()' + valid_name, Name.Function), # find the remaining variables (valid_name, Name.Variable), # the famous parentheses! (r'(\(|\))', Punctuation), (r'(\[|\])', Punctuation), ], } class CommonLispLexer(RegexLexer): """ A Common Lisp lexer. *New in Pygments 0.9.* """ name = 'Common Lisp' aliases = ['common-lisp', 'cl'] filenames = ['*.cl', '*.lisp', '*.el'] # use for Elisp too mimetypes = ['text/x-common-lisp'] flags = re.IGNORECASE | re.MULTILINE ### couple of useful regexes # characters that are not macro-characters and can be used to begin a symbol nonmacro = r'\\.|[a-zA-Z0-9!$%&*+-/<=>?@\[\]^_{}~]' constituent = nonmacro + '|[#.:]' terminated = r'(?=[ "()\'\n,;`])' # whitespace or terminating macro characters ### symbol token, reverse-engineered from hyperspec # Take a deep breath... symbol = r'(\|[^|]+\||(?:%s)(?:%s)*)' % (nonmacro, constituent) def __init__(self, **options): from pygments.lexers._clbuiltins import BUILTIN_FUNCTIONS, \ SPECIAL_FORMS, MACROS, LAMBDA_LIST_KEYWORDS, DECLARATIONS, \ BUILTIN_TYPES, BUILTIN_CLASSES self.builtin_function = BUILTIN_FUNCTIONS self.special_forms = SPECIAL_FORMS self.macros = MACROS self.lambda_list_keywords = LAMBDA_LIST_KEYWORDS self.declarations = DECLARATIONS self.builtin_types = BUILTIN_TYPES self.builtin_classes = BUILTIN_CLASSES RegexLexer.__init__(self, **options) def get_tokens_unprocessed(self, text): stack = ['root'] for index, token, value in RegexLexer.get_tokens_unprocessed(self, text, stack): if token is Name.Variable: if value in self.builtin_function: yield index, Name.Builtin, value continue if value in self.special_forms: yield index, Keyword, value continue if value in self.macros: yield index, Name.Builtin, value continue if value in self.lambda_list_keywords: yield index, Keyword, value continue if value in self.declarations: yield index, Keyword, value continue if value in self.builtin_types: yield index, Keyword.Type, value continue if value in self.builtin_classes: yield index, Name.Class, value continue yield index, token, value tokens = { 'root' : [ ('', Text, 'body'), ], 'multiline-comment' : [ (r'#\|', Comment.Multiline, '#push'), # (cf. Hyperspec 2.4.8.19) (r'\|#', Comment.Multiline, '#pop'), (r'[^|#]+', Comment.Multiline), (r'[|#]', Comment.Multiline), ], 'commented-form' : [ (r'\(', Comment.Preproc, '#push'), (r'\)', Comment.Preproc, '#pop'), (r'[^()]+', Comment.Preproc), ], 'body' : [ # whitespace (r'\s+', Text), # single-line comment (r';.*$', Comment.Single), # multi-line comment (r'#\|', Comment.Multiline, 'multiline-comment'), # encoding comment (?) (r'#\d*Y.*$', Comment.Special), # strings and characters (r'"(\\.|\\\n|[^"\\])*"', String), # quoting (r":" + symbol, String.Symbol), (r"'" + symbol, String.Symbol), (r"'", Operator), (r"`", Operator), # decimal numbers (r'[-+]?\d+\.?' + terminated, Number.Integer), (r'[-+]?\d+/\d+' + terminated, Number), (r'[-+]?(\d*\.\d+([defls][-+]?\d+)?|\d+(\.\d*)?[defls][-+]?\d+)' \ + terminated, Number.Float), # sharpsign strings and characters (r"#\\." + terminated, String.Char), (r"#\\" + symbol, String.Char), # vector (r'#\(', Operator, 'body'), # bitstring (r'#\d*\*[01]*', Literal.Other), # uninterned symbol (r'#:' + symbol, String.Symbol), # read-time and load-time evaluation (r'#[.,]', Operator), # function shorthand (r'#\'', Name.Function), # binary rational (r'#[bB][+-]?[01]+(/[01]+)?', Number), # octal rational (r'#[oO][+-]?[0-7]+(/[0-7]+)?', Number.Oct), # hex rational (r'#[xX][+-]?[0-9a-fA-F]+(/[0-9a-fA-F]+)?', Number.Hex), # radix rational (r'#\d+[rR][+-]?[0-9a-zA-Z]+(/[0-9a-zA-Z]+)?', Number), # complex (r'(#[cC])(\()', bygroups(Number, Punctuation), 'body'), # array (r'(#\d+[aA])(\()', bygroups(Literal.Other, Punctuation), 'body'), # structure (r'(#[sS])(\()', bygroups(Literal.Other, Punctuation), 'body'), # path (r'#[pP]?"(\\.|[^"])*"', Literal.Other), # reference (r'#\d+=', Operator), (r'#\d+#', Operator), # read-time comment (r'#+nil' + terminated + '\s*\(', Comment.Preproc, 'commented-form'), # read-time conditional (r'#[+-]', Operator), # special operators that should have been parsed already (r'(,@|,|\.)', Operator), # special constants (r'(t|nil)' + terminated, Name.Constant), # functions and variables (r'\*' + symbol + '\*', Name.Variable.Global), (symbol, Name.Variable), # parentheses (r'\(', Punctuation, 'body'), (r'\)', Punctuation, '#pop'), ], } class HaskellLexer(RegexLexer): """ A Haskell lexer based on the lexemes defined in the Haskell 98 Report. *New in Pygments 0.8.* """ name = 'Haskell' aliases = ['haskell', 'hs'] filenames = ['*.hs'] mimetypes = ['text/x-haskell'] reserved = ['case','class','data','default','deriving','do','else', 'if','in','infix[lr]?','instance', 'let','newtype','of','then','type','where','_'] ascii = ['NUL','SOH','[SE]TX','EOT','ENQ','ACK', 'BEL','BS','HT','LF','VT','FF','CR','S[OI]','DLE', 'DC[1-4]','NAK','SYN','ETB','CAN', 'EM','SUB','ESC','[FGRU]S','SP','DEL'] tokens = { 'root': [ # Whitespace: (r'\s+', Text), #(r'--\s*|.*$', Comment.Doc), (r'--(?![!#$%&*+./<=>?@\^|_~:\\]).*?$', Comment.Single), (r'{-', Comment.Multiline, 'comment'), # Lexemes: # Identifiers (r'\bimport\b', Keyword.Reserved, 'import'), (r'\bmodule\b', Keyword.Reserved, 'module'), (r'\berror\b', Name.Exception), (r'\b(%s)(?!\')\b' % '|'.join(reserved), Keyword.Reserved), (r'^[_a-z][\w\']*', Name.Function), (r"'?[_a-z][\w']*", Name), (r"('')?[A-Z][\w\']*", Keyword.Type), # Operators (r'\\(?![:!#$%&*+.\\/<=>?@^|~-]+)', Name.Function), # lambda operator (r'(<-|::|->|=>|=)(?![:!#$%&*+.\\/<=>?@^|~-]+)', Operator.Word), # specials (r':[:!#$%&*+.\\/<=>?@^|~-]*', Keyword.Type), # Constructor operators (r'[:!#$%&*+.\\/<=>?@^|~-]+', Operator), # Other operators # Numbers (r'\d+[eE][+-]?\d+', Number.Float), (r'\d+\.\d+([eE][+-]?\d+)?', Number.Float), (r'0[oO][0-7]+', Number.Oct), (r'0[xX][\da-fA-F]+', Number.Hex), (r'\d+', Number.Integer), # Character/String Literals (r"'", String.Char, 'character'), (r'"', String, 'string'), # Special (r'\[\]', Keyword.Type), (r'\(\)', Name.Builtin), (r'[][(),;`{}]', Punctuation), ], 'import': [ # Import statements (r'\s+', Text), (r'"', String, 'string'), # after "funclist" state (r'\)', Punctuation, '#pop'), (r'qualified\b', Keyword), # import X as Y (r'([A-Z][a-zA-Z0-9_.]*)(\s+)(as)(\s+)([A-Z][a-zA-Z0-9_.]*)', bygroups(Name.Namespace, Text, Keyword, Text, Name), '#pop'), # import X hiding (functions) (r'([A-Z][a-zA-Z0-9_.]*)(\s+)(hiding)(\s+)(\()', bygroups(Name.Namespace, Text, Keyword, Text, Punctuation), 'funclist'), # import X (functions) (r'([A-Z][a-zA-Z0-9_.]*)(\s+)(\()', bygroups(Name.Namespace, Text, Punctuation), 'funclist'), # import X (r'[a-zA-Z0-9_.]+', Name.Namespace, '#pop'), ], 'module': [ (r'\s+', Text), (r'([A-Z][a-zA-Z0-9_.]*)(\s+)(\()', bygroups(Name.Namespace, Text, Punctuation), 'funclist'), (r'[A-Z][a-zA-Z0-9_.]*', Name.Namespace, '#pop'), ], 'funclist': [ (r'\s+', Text), (r'[A-Z][a-zA-Z0-9_]*', Keyword.Type), (r'(_[\w\']+|[a-z][\w\']*)', Name.Function), (r'--.*$', Comment.Single), (r'{-', Comment.Multiline, 'comment'), (r',', Punctuation), (r'[:!#$%&*+.\\/<=>?@^|~-]+', Operator), # (HACK, but it makes sense to push two instances, believe me) (r'\(', Punctuation, ('funclist', 'funclist')), (r'\)', Punctuation, '#pop:2'), ], 'comment': [ # Multiline Comments (r'[^-{}]+', Comment.Multiline), (r'{-', Comment.Multiline, '#push'), (r'-}', Comment.Multiline, '#pop'), (r'[-{}]', Comment.Multiline), ], 'character': [ # Allows multi-chars, incorrectly. (r"[^\\']", String.Char), (r"\\", String.Escape, 'escape'), ("'", String.Char, '#pop'), ], 'string': [ (r'[^\\"]+', String), (r"\\", String.Escape, 'escape'), ('"', String, '#pop'), ], 'escape': [ (r'[abfnrtv"\'&\\]', String.Escape, '#pop'), (r'\^[][A-Z@\^_]', String.Escape, '#pop'), ('|'.join(ascii), String.Escape, '#pop'), (r'o[0-7]+', String.Escape, '#pop'), (r'x[\da-fA-F]+', String.Escape, '#pop'), (r'\d+', String.Escape, '#pop'), (r'\s+\\', String.Escape, '#pop'), ], } line_re = re.compile('.*?\n') bird_re = re.compile(r'(>[ \t]*)(.*\n)') class LiterateHaskellLexer(Lexer): """ For Literate Haskell (Bird-style or LaTeX) source. Additional options accepted: `litstyle` If given, must be ``"bird"`` or ``"latex"``. If not given, the style is autodetected: if the first non-whitespace character in the source is a backslash or percent character, LaTeX is assumed, else Bird. *New in Pygments 0.9.* """ name = 'Literate Haskell' aliases = ['lhs', 'literate-haskell'] filenames = ['*.lhs'] mimetypes = ['text/x-literate-haskell'] def get_tokens_unprocessed(self, text): hslexer = HaskellLexer(**self.options) style = self.options.get('litstyle') if style is None: style = (text.lstrip()[0:1] in '%\\') and 'latex' or 'bird' code = '' insertions = [] if style == 'bird': # bird-style for match in line_re.finditer(text): line = match.group() m = bird_re.match(line) if m: insertions.append((len(code), [(0, Comment.Special, m.group(1))])) code += m.group(2) else: insertions.append((len(code), [(0, Text, line)])) else: # latex-style from pygments.lexers.text import TexLexer lxlexer = TexLexer(**self.options) codelines = 0 latex = '' for match in line_re.finditer(text): line = match.group() if codelines: if line.lstrip().startswith('\\end{code}'): codelines = 0 latex += line else: code += line elif line.lstrip().startswith('\\begin{code}'): codelines = 1 latex += line insertions.append((len(code), list(lxlexer.get_tokens_unprocessed(latex)))) latex = '' else: latex += line insertions.append((len(code), list(lxlexer.get_tokens_unprocessed(latex)))) for item in do_insertions(insertions, hslexer.get_tokens_unprocessed(code)): yield item class SMLLexer(RegexLexer): """ For the Standard ML language. *New in Pygments 1.5.* """ name = 'Standard ML' aliases = ['sml'] filenames = ['*.sml', '*.sig', '*.fun',] mimetypes = ['text/x-standardml', 'application/x-standardml'] alphanumid_reserved = [ # Core 'abstype', 'and', 'andalso', 'as', 'case', 'datatype', 'do', 'else', 'end', 'exception', 'fn', 'fun', 'handle', 'if', 'in', 'infix', 'infixr', 'let', 'local', 'nonfix', 'of', 'op', 'open', 'orelse', 'raise', 'rec', 'then', 'type', 'val', 'with', 'withtype', 'while', # Modules 'eqtype', 'functor', 'include', 'sharing', 'sig', 'signature', 'struct', 'structure', 'where', ] symbolicid_reserved = [ # Core ':', '\|', '=', '=>', '->', '#', # Modules ':>', ] nonid_reserved = [ '(', ')', '[', ']', '{', '}', ',', ';', '...', '_' ] alphanumid_re = r"[a-zA-Z][a-zA-Z0-9_']*" symbolicid_re = r"[!%&$#+\-/:<=>?@\\~`^|*]+" # A character constant is a sequence of the form #s, where s is a string # constant denoting a string of size one character. This setup just parses # the entire string as either a String.Double or a String.Char (depending # on the argument), even if the String.Char is an erronous # multiple-character string. def stringy (whatkind): return [ (r'[^"\\]', whatkind), (r'\\[\\\"abtnvfr]', String.Escape), # Control-character notation is used for codes < 32, # where \^@ == \000 (r'\\\^[\x40-\x5e]', String.Escape), # Docs say 'decimal digits' (r'\\[0-9]{3}', String.Escape), (r'\\u[0-9a-fA-F]{4}', String.Escape), (r'\\\s+\\', String.Interpol), (r'"', whatkind, '#pop'), ] # Callbacks for distinguishing tokens and reserved words def long_id_callback(self, match): if match.group(1) in self.alphanumid_reserved: token = Error else: token = Name.Namespace yield match.start(1), token, match.group(1) yield match.start(2), Punctuation, match.group(2) def end_id_callback(self, match): if match.group(1) in self.alphanumid_reserved: token = Error elif match.group(1) in self.symbolicid_reserved: token = Error else: token = Name yield match.start(1), token, match.group(1) def id_callback(self, match): str = match.group(1) if str in self.alphanumid_reserved: token = Keyword.Reserved elif str in self.symbolicid_reserved: token = Punctuation else: token = Name yield match.start(1), token, str tokens = { # Whitespace and comments are (almost) everywhere 'whitespace': [ (r'\s+', Text), (r'\(\*', Comment.Multiline, 'comment'), ], 'delimiters': [ # This lexer treats these delimiters specially: # Delimiters define scopes, and the scope is how the meaning of # the `|' is resolved - is it a case/handle expression, or function # definition by cases? (This is not how the Definition works, but # it's how MLton behaves, see http://mlton.org/SMLNJDeviations) (r'\(|\[|{', Punctuation, 'main'), (r'\)|\]|}', Punctuation, '#pop'), (r'\b(let|if|local)\b(?!\')', Keyword.Reserved, ('main', 'main')), (r'\b(struct|sig|while)\b(?!\')', Keyword.Reserved, 'main'), (r'\b(do|else|end|in|then)\b(?!\')', Keyword.Reserved, '#pop'), ], 'core': [ # Punctuation that doesn't overlap symbolic identifiers (r'(%s)' % '|'.join([re.escape(z) for z in nonid_reserved]), Punctuation), # Special constants: strings, floats, numbers in decimal and hex (r'#"', String.Char, 'char'), (r'"', String.Double, 'string'), (r'~?0x[0-9a-fA-F]+', Number.Hex), (r'0wx[0-9a-fA-F]+', Number.Hex), (r'0w\d+', Number.Integer), (r'~?\d+\.\d+[eE]~?\d+', Number.Float), (r'~?\d+\.\d+', Number.Float), (r'~?\d+[eE]~?\d+', Number.Float), (r'~?\d+', Number.Integer), # Labels (r'#\s*[1-9][0-9]*', Name.Label), (r'#\s*(%s)' % alphanumid_re, Name.Label), (r'#\s+(%s)' % symbolicid_re, Name.Label), # Some reserved words trigger a special, local lexer state change (r'\b(datatype|abstype)\b(?!\')', Keyword.Reserved, 'dname'), (r'(?=\b(exception)\b(?!\'))', Text, ('ename')), (r'\b(functor|include|open|signature|structure)\b(?!\')', Keyword.Reserved, 'sname'), (r'\b(type|eqtype)\b(?!\')', Keyword.Reserved, 'tname'), # Regular identifiers, long and otherwise (r'\'[0-9a-zA-Z_\']*', Name.Decorator), (r'(%s)(\.)' % alphanumid_re, long_id_callback, "dotted"), (r'(%s)' % alphanumid_re, id_callback), (r'(%s)' % symbolicid_re, id_callback), ], 'dotted': [ (r'(%s)(\.)' % alphanumid_re, long_id_callback), (r'(%s)' % alphanumid_re, end_id_callback, "#pop"), (r'(%s)' % symbolicid_re, end_id_callback, "#pop"), (r'\s+', Error), (r'\S+', Error), ], # Main parser (prevents errors in files that have scoping errors) 'root': [ (r'', Text, 'main') ], # In this scope, I expect '|' to not be followed by a function name, # and I expect 'and' to be followed by a binding site 'main': [ include('whitespace'), # Special behavior of val/and/fun (r'\b(val|and)\b(?!\')', Keyword.Reserved, 'vname'), (r'\b(fun)\b(?!\')', Keyword.Reserved, ('#pop', 'main-fun', 'fname')), include('delimiters'), include('core'), (r'\S+', Error), ], # In this scope, I expect '|' and 'and' to be followed by a function 'main-fun': [ include('whitespace'), (r'\s', Text), (r'\(\*', Comment.Multiline, 'comment'), # Special behavior of val/and/fun (r'\b(fun|and)\b(?!\')', Keyword.Reserved, 'fname'), (r'\b(val)\b(?!\')', Keyword.Reserved, ('#pop', 'main', 'vname')), # Special behavior of '|' and '|'-manipulating keywords (r'\|', Punctuation, 'fname'), (r'\b(case|handle)\b(?!\')', Keyword.Reserved, ('#pop', 'main')), include('delimiters'), include('core'), (r'\S+', Error), ], # Character and string parsers 'char': stringy(String.Char), 'string': stringy(String.Double), 'breakout': [ (r'(?=\b(%s)\b(?!\'))' % '|'.join(alphanumid_reserved), Text, '#pop'), ], # Dealing with what comes after module system keywords 'sname': [ include('whitespace'), include('breakout'), (r'(%s)' % alphanumid_re, Name.Namespace), (r'', Text, '#pop'), ], # Dealing with what comes after the 'fun' (or 'and' or '|') keyword 'fname': [ include('whitespace'), (r'\'[0-9a-zA-Z_\']*', Name.Decorator), (r'\(', Punctuation, 'tyvarseq'), (r'(%s)' % alphanumid_re, Name.Function, '#pop'), (r'(%s)' % symbolicid_re, Name.Function, '#pop'), # Ignore interesting function declarations like "fun (x + y) = ..." (r'', Text, '#pop'), ], # Dealing with what comes after the 'val' (or 'and') keyword 'vname': [ include('whitespace'), (r'\'[0-9a-zA-Z_\']*', Name.Decorator), (r'\(', Punctuation, 'tyvarseq'), (r'(%s)(\s*)(=(?!%s))' % (alphanumid_re, symbolicid_re), bygroups(Name.Variable, Text, Punctuation), '#pop'), (r'(%s)(\s*)(=(?!%s))' % (symbolicid_re, symbolicid_re), bygroups(Name.Variable, Text, Punctuation), '#pop'), (r'(%s)' % alphanumid_re, Name.Variable, '#pop'), (r'(%s)' % symbolicid_re, Name.Variable, '#pop'), # Ignore interesting patterns like 'val (x, y)' (r'', Text, '#pop'), ], # Dealing with what comes after the 'type' (or 'and') keyword 'tname': [ include('whitespace'), include('breakout'), (r'\'[0-9a-zA-Z_\']*', Name.Decorator), (r'\(', Punctuation, 'tyvarseq'), (r'=(?!%s)' % symbolicid_re, Punctuation, ('#pop', 'typbind')), (r'(%s)' % alphanumid_re, Keyword.Type), (r'(%s)' % symbolicid_re, Keyword.Type), (r'\S+', Error, '#pop'), ], # A type binding includes most identifiers 'typbind': [ include('whitespace'), (r'\b(and)\b(?!\')', Keyword.Reserved, ('#pop', 'tname')), include('breakout'), include('core'), (r'\S+', Error, '#pop'), ], # Dealing with what comes after the 'datatype' (or 'and') keyword 'dname': [ include('whitespace'), include('breakout'), (r'\'[0-9a-zA-Z_\']*', Name.Decorator), (r'\(', Punctuation, 'tyvarseq'), (r'(=)(\s*)(datatype)', bygroups(Punctuation, Text, Keyword.Reserved), '#pop'), (r'=(?!%s)' % symbolicid_re, Punctuation, ('#pop', 'datbind', 'datcon')), (r'(%s)' % alphanumid_re, Keyword.Type), (r'(%s)' % symbolicid_re, Keyword.Type), (r'\S+', Error, '#pop'), ], # common case - A | B | C of int 'datbind': [ include('whitespace'), (r'\b(and)\b(?!\')', Keyword.Reserved, ('#pop', 'dname')), (r'\b(withtype)\b(?!\')', Keyword.Reserved, ('#pop', 'tname')), (r'\b(of)\b(?!\')', Keyword.Reserved), (r'(\|)(\s*)(%s)' % alphanumid_re, bygroups(Punctuation, Text, Name.Class)), (r'(\|)(\s+)(%s)' % symbolicid_re, bygroups(Punctuation, Text, Name.Class)), include('breakout'), include('core'), (r'\S+', Error), ], # Dealing with what comes after an exception 'ename': [ include('whitespace'), (r'(exception|and)\b(\s+)(%s)' % alphanumid_re, bygroups(Keyword.Reserved, Text, Name.Class)), (r'(exception|and)\b(\s*)(%s)' % symbolicid_re, bygroups(Keyword.Reserved, Text, Name.Class)), (r'\b(of)\b(?!\')', Keyword.Reserved), include('breakout'), include('core'), (r'\S+', Error), ], 'datcon': [ include('whitespace'), (r'(%s)' % alphanumid_re, Name.Class, '#pop'), (r'(%s)' % symbolicid_re, Name.Class, '#pop'), (r'\S+', Error, '#pop'), ], # Series of type variables 'tyvarseq': [ (r'\s', Text), (r'\(\*', Comment.Multiline, 'comment'), (r'\'[0-9a-zA-Z_\']*', Name.Decorator), (alphanumid_re, Name), (r',', Punctuation), (r'\)', Punctuation, '#pop'), (symbolicid_re, Name), ], 'comment': [ (r'[^(*)]', Comment.Multiline), (r'\(\*', Comment.Multiline, '#push'), (r'\*\)', Comment.Multiline, '#pop'), (r'[(*)]', Comment.Multiline), ], } class OcamlLexer(RegexLexer): """ For the OCaml language. *New in Pygments 0.7.* """ name = 'OCaml' aliases = ['ocaml'] filenames = ['*.ml', '*.mli', '*.mll', '*.mly'] mimetypes = ['text/x-ocaml'] keywords = [ 'as', 'assert', 'begin', 'class', 'constraint', 'do', 'done', 'downto', 'else', 'end', 'exception', 'external', 'false', 'for', 'fun', 'function', 'functor', 'if', 'in', 'include', 'inherit', 'initializer', 'lazy', 'let', 'match', 'method', 'module', 'mutable', 'new', 'object', 'of', 'open', 'private', 'raise', 'rec', 'sig', 'struct', 'then', 'to', 'true', 'try', 'type', 'value', 'val', 'virtual', 'when', 'while', 'with', ] keyopts = [ '!=','#','&','&&','\(','\)','\*','\+',',','-', '-\.','->','\.','\.\.',':','::',':=',':>',';',';;','<', '<-','=','>','>]','>}','\?','\?\?','\[','\[<','\[>','\[\|', ']','_','`','{','{<','\|','\|]','}','~' ] operators = r'[!$%&*+\./:<=>?@^|~-]' word_operators = ['and', 'asr', 'land', 'lor', 'lsl', 'lxor', 'mod', 'or'] prefix_syms = r'[!?~]' infix_syms = r'[=<>@^|&+\*/$%-]' primitives = ['unit', 'int', 'float', 'bool', 'string', 'char', 'list', 'array'] tokens = { 'escape-sequence': [ (r'\\[\\\"\'ntbr]', String.Escape), (r'\\[0-9]{3}', String.Escape), (r'\\x[0-9a-fA-F]{2}', String.Escape), ], 'root': [ (r'\s+', Text), (r'false|true|\(\)|\[\]', Name.Builtin.Pseudo), (r'\b([A-Z][A-Za-z0-9_\']*)(?=\s*\.)', Name.Namespace, 'dotted'), (r'\b([A-Z][A-Za-z0-9_\']*)', Name.Class), (r'\(\*(?![)])', Comment, 'comment'), (r'\b(%s)\b' % '|'.join(keywords), Keyword), (r'(%s)' % '|'.join(keyopts[::-1]), Operator), (r'(%s|%s)?%s' % (infix_syms, prefix_syms, operators), Operator), (r'\b(%s)\b' % '|'.join(word_operators), Operator.Word), (r'\b(%s)\b' % '|'.join(primitives), Keyword.Type), (r"[^\W\d][\w']*", Name), (r'-?\d[\d_]*(.[\d_]*)?([eE][+\-]?\d[\d_]*)', Number.Float), (r'0[xX][\da-fA-F][\da-fA-F_]*', Number.Hex), (r'0[oO][0-7][0-7_]*', Number.Oct), (r'0[bB][01][01_]*', Number.Binary), (r'\d[\d_]*', Number.Integer), (r"'(?:(\\[\\\"'ntbr ])|(\\[0-9]{3})|(\\x[0-9a-fA-F]{2}))'", String.Char), (r"'.'", String.Char), (r"'", Keyword), # a stray quote is another syntax element (r'"', String.Double, 'string'), (r'[~?][a-z][\w\']*:', Name.Variable), ], 'comment': [ (r'[^(*)]+', Comment), (r'\(\*', Comment, '#push'), (r'\*\)', Comment, '#pop'), (r'[(*)]', Comment), ], 'string': [ (r'[^\\"]+', String.Double), include('escape-sequence'), (r'\\\n', String.Double), (r'"', String.Double, '#pop'), ], 'dotted': [ (r'\s+', Text), (r'\.', Punctuation), (r'[A-Z][A-Za-z0-9_\']*(?=\s*\.)', Name.Namespace), (r'[A-Z][A-Za-z0-9_\']*', Name.Class, '#pop'), (r'[a-z_][A-Za-z0-9_\']*', Name, '#pop'), ], } class ErlangLexer(RegexLexer): """ For the Erlang functional programming language. Blame Jeremy Thurgood (http://jerith.za.net/). *New in Pygments 0.9.* """ name = 'Erlang' aliases = ['erlang'] filenames = ['*.erl', '*.hrl', '*.es', '*.escript'] mimetypes = ['text/x-erlang'] keywords = [ 'after', 'begin', 'case', 'catch', 'cond', 'end', 'fun', 'if', 'let', 'of', 'query', 'receive', 'try', 'when', ] builtins = [ # See erlang(3) man page 'abs', 'append_element', 'apply', 'atom_to_list', 'binary_to_list', 'bitstring_to_list', 'binary_to_term', 'bit_size', 'bump_reductions', 'byte_size', 'cancel_timer', 'check_process_code', 'delete_module', 'demonitor', 'disconnect_node', 'display', 'element', 'erase', 'exit', 'float', 'float_to_list', 'fun_info', 'fun_to_list', 'function_exported', 'garbage_collect', 'get', 'get_keys', 'group_leader', 'hash', 'hd', 'integer_to_list', 'iolist_to_binary', 'iolist_size', 'is_atom', 'is_binary', 'is_bitstring', 'is_boolean', 'is_builtin', 'is_float', 'is_function', 'is_integer', 'is_list', 'is_number', 'is_pid', 'is_port', 'is_process_alive', 'is_record', 'is_reference', 'is_tuple', 'length', 'link', 'list_to_atom', 'list_to_binary', 'list_to_bitstring', 'list_to_existing_atom', 'list_to_float', 'list_to_integer', 'list_to_pid', 'list_to_tuple', 'load_module', 'localtime_to_universaltime', 'make_tuple', 'md5', 'md5_final', 'md5_update', 'memory', 'module_loaded', 'monitor', 'monitor_node', 'node', 'nodes', 'open_port', 'phash', 'phash2', 'pid_to_list', 'port_close', 'port_command', 'port_connect', 'port_control', 'port_call', 'port_info', 'port_to_list', 'process_display', 'process_flag', 'process_info', 'purge_module', 'put', 'read_timer', 'ref_to_list', 'register', 'resume_process', 'round', 'send', 'send_after', 'send_nosuspend', 'set_cookie', 'setelement', 'size', 'spawn', 'spawn_link', 'spawn_monitor', 'spawn_opt', 'split_binary', 'start_timer', 'statistics', 'suspend_process', 'system_flag', 'system_info', 'system_monitor', 'system_profile', 'term_to_binary', 'tl', 'trace', 'trace_delivered', 'trace_info', 'trace_pattern', 'trunc', 'tuple_size', 'tuple_to_list', 'universaltime_to_localtime', 'unlink', 'unregister', 'whereis' ] operators = r'(\+\+?|--?|\*|/|<|>|/=|=:=|=/=|=<|>=|==?|<-|!|\?)' word_operators = [ 'and', 'andalso', 'band', 'bnot', 'bor', 'bsl', 'bsr', 'bxor', 'div', 'not', 'or', 'orelse', 'rem', 'xor' ] atom_re = r"(?:[a-z][a-zA-Z0-9_]*|'[^\n']*[^\\]')" variable_re = r'(?:[A-Z_][a-zA-Z0-9_]*)' escape_re = r'(?:\\(?:[bdefnrstv\'"\\/]|[0-7][0-7]?[0-7]?|\^[a-zA-Z]))' macro_re = r'(?:'+variable_re+r'|'+atom_re+r')' base_re = r'(?:[2-9]|[12][0-9]|3[0-6])' tokens = { 'root': [ (r'\s+', Text), (r'%.*\n', Comment), ('(' + '|'.join(keywords) + r')\b', Keyword), ('(' + '|'.join(builtins) + r')\b', Name.Builtin), ('(' + '|'.join(word_operators) + r')\b', Operator.Word), (r'^-', Punctuation, 'directive'), (operators, Operator), (r'"', String, 'string'), (r'<<', Name.Label), (r'>>', Name.Label), ('(' + atom_re + ')(:)', bygroups(Name.Namespace, Punctuation)), ('(?:^|(?<=:))(' + atom_re + r')(\s*)(\()', bygroups(Name.Function, Text, Punctuation)), (r'[+-]?'+base_re+r'#[0-9a-zA-Z]+', Number.Integer), (r'[+-]?\d+', Number.Integer), (r'[+-]?\d+.\d+', Number.Float), (r'[]\[:_@\".{}()|;,]', Punctuation), (variable_re, Name.Variable), (atom_re, Name), (r'\?'+macro_re, Name.Constant), (r'\$(?:'+escape_re+r'|\\[ %]|[^\\])', String.Char), (r'#'+atom_re+r'(:?\.'+atom_re+r')?', Name.Label), ], 'string': [ (escape_re, String.Escape), (r'"', String, '#pop'), (r'~[0-9.*]*[~#+bBcdefginpPswWxX]', String.Interpol), (r'[^"\\~]+', String), (r'~', String), ], 'directive': [ (r'(define)(\s*)(\()('+macro_re+r')', bygroups(Name.Entity, Text, Punctuation, Name.Constant), '#pop'), (r'(record)(\s*)(\()('+macro_re+r')', bygroups(Name.Entity, Text, Punctuation, Name.Label), '#pop'), (atom_re, Name.Entity, '#pop'), ], } class ErlangShellLexer(Lexer): """ Shell sessions in erl (for Erlang code). *New in Pygments 1.1.* """ name = 'Erlang erl session' aliases = ['erl'] filenames = ['*.erl-sh'] mimetypes = ['text/x-erl-shellsession'] _prompt_re = re.compile(r'\d+>(?=\s|\Z)') def get_tokens_unprocessed(self, text): erlexer = ErlangLexer(**self.options) curcode = '' insertions = [] for match in line_re.finditer(text): line = match.group() m = self._prompt_re.match(line) if m is not None: end = m.end() insertions.append((len(curcode), [(0, Generic.Prompt, line[:end])])) curcode += line[end:] else: if curcode: for item in do_insertions(insertions, erlexer.get_tokens_unprocessed(curcode)): yield item curcode = '' insertions = [] if line.startswith('*'): yield match.start(), Generic.Traceback, line else: yield match.start(), Generic.Output, line if curcode: for item in do_insertions(insertions, erlexer.get_tokens_unprocessed(curcode)): yield item class OpaLexer(RegexLexer): """ Lexer for the Opa language (http://opalang.org). *New in Pygments 1.5.* """ name = 'Opa' aliases = ['opa'] filenames = ['*.opa'] mimetypes = ['text/x-opa'] # most of these aren't strictly keywords # but if you color only real keywords, you might just # as well not color anything keywords = [ 'and', 'as', 'begin', 'css', 'database', 'db', 'do', 'else', 'end', 'external', 'forall', 'if', 'import', 'match', 'package', 'parser', 'rec', 'server', 'then', 'type', 'val', 'with', 'xml_parser', ] # matches both stuff and `stuff` ident_re = r'(([a-zA-Z_]\w*)|(`[^`]*`))' op_re = r'[.=\-<>,@~%/+?*&^!]' punc_re = r'[()\[\],;|]' # '{' and '}' are treated elsewhere # because they are also used for inserts tokens = { # copied from the caml lexer, should be adapted 'escape-sequence': [ (r'\\[\\\"\'ntr}]', String.Escape), (r'\\[0-9]{3}', String.Escape), (r'\\x[0-9a-fA-F]{2}', String.Escape), ], # factorizing these rules, because they are inserted many times 'comments': [ (r'/\*', Comment, 'nested-comment'), (r'//.*?$', Comment), ], 'comments-and-spaces': [ include('comments'), (r'\s+', Text), ], 'root': [ include('comments-and-spaces'), # keywords (r'\b(%s)\b' % '|'.join(keywords), Keyword), # directives # we could parse the actual set of directives instead of anything # starting with @, but this is troublesome # because it needs to be adjusted all the time # and assuming we parse only sources that compile, it is useless (r'@'+ident_re+r'\b', Name.Builtin.Pseudo), # number literals (r'-?.[\d]+([eE][+\-]?\d+)', Number.Float), (r'-?\d+.\d*([eE][+\-]?\d+)', Number.Float), (r'-?\d+[eE][+\-]?\d+', Number.Float), (r'0[xX][\da-fA-F]+', Number.Hex), (r'0[oO][0-7]+', Number.Oct), (r'0[bB][01]+', Number.Binary), (r'\d+', Number.Integer), # color literals (r'#[\da-fA-F]{3,6}', Number.Integer), # string literals (r'"', String.Double, 'string'), # char literal, should be checked because this is the regexp from # the caml lexer (r"'(?:(\\[\\\"'ntbr ])|(\\[0-9]{3})|(\\x[0-9a-fA-F]{2})|.)'", String.Char), # this is meant to deal with embedded exprs in strings # every time we find a '}' we pop a state so that if we were # inside a string, we are back in the string state # as a consequence, we must also push a state every time we find a # '{' or else we will have errors when parsing {} for instance (r'{', Operator, '#push'), (r'}', Operator, '#pop'), # html literals # this is a much more strict that the actual parser, # since a<b would not be parsed as html # but then again, the parser is way too lax, and we can't hope # to have something as tolerant (r'<(?=[a-zA-Z>])', String.Single, 'html-open-tag'), # db path # matching the '[_]' in '/a[_]' because it is a part # of the syntax of the db path definition # unfortunately, i don't know how to match the ']' in # /a[1], so this is somewhat inconsistent (r'[@?!]?(/\w+)+(\[_\])?', Name.Variable), # putting the same color on <- as on db path, since # it can be used only to mean Db.write (r'<-(?!'+op_re+r')', Name.Variable), # 'modules' # although modules are not distinguished by their names as in caml # the standard library seems to follow the convention that modules # only area capitalized (r'\b([A-Z]\w*)(?=\.)', Name.Namespace), # operators # = has a special role because this is the only # way to syntactic distinguish binding constructions # unfortunately, this colors the equal in {x=2} too (r'=(?!'+op_re+r')', Keyword), (r'(%s)+' % op_re, Operator), (r'(%s)+' % punc_re, Operator), # coercions (r':', Operator, 'type'), # type variables # we need this rule because we don't parse specially type # definitions so in "type t('a) = ...", "'a" is parsed by 'root' ("'"+ident_re, Keyword.Type), # id literal, #something, or #{expr} (r'#'+ident_re, String.Single), (r'#(?={)', String.Single), # identifiers # this avoids to color '2' in 'a2' as an integer (ident_re, Text), # default, not sure if that is needed or not # (r'.', Text), ], # it is quite painful to have to parse types to know where they end # this is the general rule for a type # a type is either: # * -> ty # * type-with-slash # * type-with-slash -> ty # * type-with-slash (, type-with-slash)+ -> ty # # the code is pretty funky in here, but this code would roughly # translate in caml to: # let rec type stream = # match stream with # | [< "->"; stream >] -> type stream # | [< ""; stream >] -> # type_with_slash stream # type_lhs_1 stream; # and type_1 stream = ... 'type': [ include('comments-and-spaces'), (r'->', Keyword.Type), (r'', Keyword.Type, ('#pop', 'type-lhs-1', 'type-with-slash')), ], # parses all the atomic or closed constructions in the syntax of type # expressions: record types, tuple types, type constructors, basic type # and type variables 'type-1': [ include('comments-and-spaces'), (r'\(', Keyword.Type, ('#pop', 'type-tuple')), (r'~?{', Keyword.Type, ('#pop', 'type-record')), (ident_re+r'\(', Keyword.Type, ('#pop', 'type-tuple')), (ident_re, Keyword.Type, '#pop'), ("'"+ident_re, Keyword.Type), # this case is not in the syntax but sometimes # we think we are parsing types when in fact we are parsing # some css, so we just pop the states until we get back into # the root state (r'', Keyword.Type, '#pop'), ], # type-with-slash is either: # * type-1 # * type-1 (/ type-1)+ 'type-with-slash': [ include('comments-and-spaces'), (r'', Keyword.Type, ('#pop', 'slash-type-1', 'type-1')), ], 'slash-type-1': [ include('comments-and-spaces'), ('/', Keyword.Type, ('#pop', 'type-1')), # same remark as above (r'', Keyword.Type, '#pop'), ], # we go in this state after having parsed a type-with-slash # while trying to parse a type # and at this point we must determine if we are parsing an arrow # type (in which case we must continue parsing) or not (in which # case we stop) 'type-lhs-1': [ include('comments-and-spaces'), (r'->', Keyword.Type, ('#pop', 'type')), (r'(?=,)', Keyword.Type, ('#pop', 'type-arrow')), (r'', Keyword.Type, '#pop'), ], 'type-arrow': [ include('comments-and-spaces'), # the look ahead here allows to parse f(x : int, y : float -> truc) # correctly (r',(?=[^:]*?->)', Keyword.Type, 'type-with-slash'), (r'->', Keyword.Type, ('#pop', 'type')), # same remark as above (r'', Keyword.Type, '#pop'), ], # no need to do precise parsing for tuples and records # because they are closed constructions, so we can simply # find the closing delimiter # note that this function would be not work if the source # contained identifiers like `{)` (although it could be patched # to support it) 'type-tuple': [ include('comments-and-spaces'), (r'[^\(\)/*]+', Keyword.Type), (r'[/*]', Keyword.Type), (r'\(', Keyword.Type, '#push'), (r'\)', Keyword.Type, '#pop'), ], 'type-record': [ include('comments-and-spaces'), (r'[^{}/*]+', Keyword.Type), (r'[/*]', Keyword.Type), (r'{', Keyword.Type, '#push'), (r'}', Keyword.Type, '#pop'), ], # 'type-tuple': [ # include('comments-and-spaces'), # (r'\)', Keyword.Type, '#pop'), # (r'', Keyword.Type, ('#pop', 'type-tuple-1', 'type-1')), # ], # 'type-tuple-1': [ # include('comments-and-spaces'), # (r',?\s*\)', Keyword.Type, '#pop'), # ,) is a valid end of tuple, in (1,) # (r',', Keyword.Type, 'type-1'), # ], # 'type-record':[ # include('comments-and-spaces'), # (r'}', Keyword.Type, '#pop'), # (r'~?(?:\w+|`[^`]*`)', Keyword.Type, 'type-record-field-expr'), # ], # 'type-record-field-expr': [ # # ], 'nested-comment': [ (r'[^/*]+', Comment), (r'/\*', Comment, '#push'), (r'\*/', Comment, '#pop'), (r'[/*]', Comment), ], # the copy pasting between string and single-string # is kinda sad. Is there a way to avoid that?? 'string': [ (r'[^\\"{]+', String.Double), (r'"', String.Double, '#pop'), (r'{', Operator, 'root'), include('escape-sequence'), ], 'single-string': [ (r'[^\\\'{]+', String.Double), (r'\'', String.Double, '#pop'), (r'{', Operator, 'root'), include('escape-sequence'), ], # all the html stuff # can't really reuse some existing html parser # because we must be able to parse embedded expressions # we are in this state after someone parsed the '<' that # started the html literal 'html-open-tag': [ (r'[\w\-:]+', String.Single, ('#pop', 'html-attr')), (r'>', String.Single, ('#pop', 'html-content')), ], # we are in this state after someone parsed the '</' that # started the end of the closing tag 'html-end-tag': [ # this is a star, because </> is allowed (r'[\w\-:]*>', String.Single, '#pop'), ], # we are in this state after having parsed '<ident(:ident)?' # we thus parse a possibly empty list of attributes 'html-attr': [ (r'\s+', Text), (r'[\w\-:]+=', String.Single, 'html-attr-value'), (r'/>', String.Single, '#pop'), (r'>', String.Single, ('#pop', 'html-content')), ], 'html-attr-value': [ (r"'", String.Single, ('#pop', 'single-string')), (r'"', String.Single, ('#pop', 'string')), (r'#'+ident_re, String.Single, '#pop'), (r'#(?={)', String.Single, ('#pop', 'root')), (r'[^"\'{`=<>]+', String.Single, '#pop'), (r'{', Operator, ('#pop', 'root')), # this is a tail call! ], # we should probably deal with '\' escapes here 'html-content': [ (r'<!--', Comment, 'html-comment'), (r'</', String.Single, ('#pop', 'html-end-tag')), (r'<', String.Single, 'html-open-tag'), (r'{', Operator, 'root'), (r'[^<{]+', String.Single), ], 'html-comment': [ (r'-->', Comment, '#pop'), (r'[^\-]+|-', Comment), ], } class CoqLexer(RegexLexer): """ For the `Coq <http://coq.inria.fr/>`_ theorem prover. *New in Pygments 1.5.* """ name = 'Coq' aliases = ['coq'] filenames = ['*.v'] mimetypes = ['text/x-coq'] keywords1 = [ # Vernacular commands 'Section', 'Module', 'End', 'Require', 'Import', 'Export', 'Variable', 'Variables', 'Parameter', 'Parameters', 'Axiom', 'Hypothesis', 'Hypotheses', 'Notation', 'Local', 'Tactic', 'Reserved', 'Scope', 'Open', 'Close', 'Bind', 'Delimit', 'Definition', 'Let', 'Ltac', 'Fixpoint', 'CoFixpoint', 'Morphism', 'Relation', 'Implicit', 'Arguments', 'Set', 'Unset', 'Contextual', 'Strict', 'Prenex', 'Implicits', 'Inductive', 'CoInductive', 'Record', 'Structure', 'Canonical', 'Coercion', 'Theorem', 'Lemma', 'Corollary', 'Proposition', 'Fact', 'Remark', 'Example', 'Proof', 'Goal', 'Save', 'Qed', 'Defined', 'Hint', 'Resolve', 'Rewrite', 'View', 'Search', 'Show', 'Print', 'Printing', 'All', 'Graph', 'Projections', 'inside', 'outside', ] keywords2 = [ # Gallina 'forall', 'exists', 'exists2', 'fun', 'fix', 'cofix', 'struct', 'match', 'end', 'in', 'return', 'let', 'if', 'is', 'then', 'else', 'for', 'of', 'nosimpl', 'with', 'as', ] keywords3 = [ # Sorts 'Type', 'Prop', ] keywords4 = [ # Tactics 'pose', 'set', 'move', 'case', 'elim', 'apply', 'clear', 'hnf', 'intro', 'intros', 'generalize', 'rename', 'pattern', 'after', 'destruct', 'induction', 'using', 'refine', 'inversion', 'injection', 'rewrite', 'congr', 'unlock', 'compute', 'ring', 'field', 'replace', 'fold', 'unfold', 'change', 'cutrewrite', 'simpl', 'have', 'suff', 'wlog', 'suffices', 'without', 'loss', 'nat_norm', 'assert', 'cut', 'trivial', 'revert', 'bool_congr', 'nat_congr', 'symmetry', 'transitivity', 'auto', 'split', 'left', 'right', 'autorewrite', ] keywords5 = [ # Terminators 'by', 'done', 'exact', 'reflexivity', 'tauto', 'romega', 'omega', 'assumption', 'solve', 'contradiction', 'discriminate', ] keywords6 = [ # Control 'do', 'last', 'first', 'try', 'idtac', 'repeat', ] # 'as', 'assert', 'begin', 'class', 'constraint', 'do', 'done', # 'downto', 'else', 'end', 'exception', 'external', 'false', # 'for', 'fun', 'function', 'functor', 'if', 'in', 'include', # 'inherit', 'initializer', 'lazy', 'let', 'match', 'method', # 'module', 'mutable', 'new', 'object', 'of', 'open', 'private', # 'raise', 'rec', 'sig', 'struct', 'then', 'to', 'true', 'try', # 'type', 'val', 'virtual', 'when', 'while', 'with' keyopts = [ '!=', '#', '&', '&&', r'\(', r'\)', r'\*', r'\+', ',', '-', r'-\.', '->', r'\.', r'\.\.', ':', '::', ':=', ':>', ';', ';;', '<', '<-', '=', '>', '>]', '>}', r'\?', r'\?\?', r'\[', r'\[<', r'\[>', r'\[\|', ']', '_', '`', '{', '{<', r'\|', r'\|]', '}', '~', '=>', r'/\\', r'\\/', u'Π', u'λ', ] operators = r'[!$%&*+\./:<=>?@^|~-]' word_operators = ['and', 'asr', 'land', 'lor', 'lsl', 'lxor', 'mod', 'or'] prefix_syms = r'[!?~]' infix_syms = r'[=<>@^|&+\*/$%-]' primitives = ['unit', 'int', 'float', 'bool', 'string', 'char', 'list', 'array'] tokens = { 'root': [ (r'\s+', Text), (r'false|true|\(\)|\[\]', Name.Builtin.Pseudo), (r'\(\*', Comment, 'comment'), (r'\b(%s)\b' % '|'.join(keywords1), Keyword.Namespace), (r'\b(%s)\b' % '|'.join(keywords2), Keyword), (r'\b(%s)\b' % '|'.join(keywords3), Keyword.Type), (r'\b(%s)\b' % '|'.join(keywords4), Keyword), (r'\b(%s)\b' % '|'.join(keywords5), Keyword.Pseudo), (r'\b(%s)\b' % '|'.join(keywords6), Keyword.Reserved), (r'\b([A-Z][A-Za-z0-9_\']*)(?=\s*\.)', Name.Namespace, 'dotted'), (r'\b([A-Z][A-Za-z0-9_\']*)', Name.Class), (r'(%s)' % '|'.join(keyopts[::-1]), Operator), (r'(%s|%s)?%s' % (infix_syms, prefix_syms, operators), Operator), (r'\b(%s)\b' % '|'.join(word_operators), Operator.Word), (r'\b(%s)\b' % '|'.join(primitives), Keyword.Type), (r"[^\W\d][\w']*", Name), (r'\d[\d_]*', Number.Integer), (r'0[xX][\da-fA-F][\da-fA-F_]*', Number.Hex), (r'0[oO][0-7][0-7_]*', Number.Oct), (r'0[bB][01][01_]*', Number.Binary), (r'-?\d[\d_]*(.[\d_]*)?([eE][+\-]?\d[\d_]*)', Number.Float), (r"'(?:(\\[\\\"'ntbr ])|(\\[0-9]{3})|(\\x[0-9a-fA-F]{2}))'", String.Char), (r"'.'", String.Char), (r"'", Keyword), # a stray quote is another syntax element (r'"', String.Double, 'string'), (r'[~?][a-z][\w\']*:', Name.Variable), ], 'comment': [ (r'[^(*)]+', Comment), (r'\(\*', Comment, '#push'), (r'\*\)', Comment, '#pop'), (r'[(*)]', Comment), ], 'string': [ (r'[^"]+', String.Double), (r'""', String.Double), (r'"', String.Double, '#pop'), ], 'dotted': [ (r'\s+', Text), (r'\.', Punctuation), (r'[A-Z][A-Za-z0-9_\']*(?=\s*\.)', Name.Namespace), (r'[A-Z][A-Za-z0-9_\']*', Name.Class, '#pop'), (r'[a-z][a-z0-9_\']*', Name, '#pop'), (r'', Text, '#pop') ], } def analyse_text(text): if text.startswith('(*'): return True class NewLispLexer(RegexLexer): """ For `newLISP. <www.newlisp.org>`_ source code (version 10.3.0). *New in Pygments 1.5.* """ name = 'NewLisp' aliases = ['newlisp'] filenames = ['*.lsp', '*.nl'] mimetypes = ['text/x-newlisp', 'application/x-newlisp'] flags = re.IGNORECASE | re.MULTILINE | re.UNICODE # list of built-in functions for newLISP version 10.3 builtins = [ '^', '--', '-', ':', '!', '!=', '?', '@', '*', '/', '&', '%', '+', '++', '<', '<<', '<=', '=', '>', '>=', '>>', '|', '~', '$', '$0', '$1', '$10', '$11', '$12', '$13', '$14', '$15', '$2', '$3', '$4', '$5', '$6', '$7', '$8', '$9', '$args', '$idx', '$it', '$main-args', 'abort', 'abs', 'acos', 'acosh', 'add', 'address', 'amb', 'and', 'and', 'append-file', 'append', 'apply', 'args', 'array-list', 'array?', 'array', 'asin', 'asinh', 'assoc', 'atan', 'atan2', 'atanh', 'atom?', 'base64-dec', 'base64-enc', 'bayes-query', 'bayes-train', 'begin', 'begin', 'begin', 'beta', 'betai', 'bind', 'binomial', 'bits', 'callback', 'case', 'case', 'case', 'catch', 'ceil', 'change-dir', 'char', 'chop', 'Class', 'clean', 'close', 'command-event', 'cond', 'cond', 'cond', 'cons', 'constant', 'context?', 'context', 'copy-file', 'copy', 'cos', 'cosh', 'count', 'cpymem', 'crc32', 'crit-chi2', 'crit-z', 'current-line', 'curry', 'date-list', 'date-parse', 'date-value', 'date', 'debug', 'dec', 'def-new', 'default', 'define-macro', 'define-macro', 'define', 'delete-file', 'delete-url', 'delete', 'destroy', 'det', 'device', 'difference', 'directory?', 'directory', 'div', 'do-until', 'do-while', 'doargs', 'dolist', 'dostring', 'dotimes', 'dotree', 'dump', 'dup', 'empty?', 'encrypt', 'ends-with', 'env', 'erf', 'error-event', 'eval-string', 'eval', 'exec', 'exists', 'exit', 'exp', 'expand', 'explode', 'extend', 'factor', 'fft', 'file-info', 'file?', 'filter', 'find-all', 'find', 'first', 'flat', 'float?', 'float', 'floor', 'flt', 'fn', 'for-all', 'for', 'fork', 'format', 'fv', 'gammai', 'gammaln', 'gcd', 'get-char', 'get-float', 'get-int', 'get-long', 'get-string', 'get-url', 'global?', 'global', 'if-not', 'if', 'ifft', 'import', 'inc', 'index', 'inf?', 'int', 'integer?', 'integer', 'intersect', 'invert', 'irr', 'join', 'lambda-macro', 'lambda?', 'lambda', 'last-error', 'last', 'legal?', 'length', 'let', 'let', 'let', 'letex', 'letn', 'letn', 'letn', 'list?', 'list', 'load', 'local', 'log', 'lookup', 'lower-case', 'macro?', 'main-args', 'MAIN', 'make-dir', 'map', 'mat', 'match', 'max', 'member', 'min', 'mod', 'module', 'mul', 'multiply', 'NaN?', 'net-accept', 'net-close', 'net-connect', 'net-error', 'net-eval', 'net-interface', 'net-ipv', 'net-listen', 'net-local', 'net-lookup', 'net-packet', 'net-peek', 'net-peer', 'net-ping', 'net-receive-from', 'net-receive-udp', 'net-receive', 'net-select', 'net-send-to', 'net-send-udp', 'net-send', 'net-service', 'net-sessions', 'new', 'nil?', 'nil', 'normal', 'not', 'now', 'nper', 'npv', 'nth', 'null?', 'number?', 'open', 'or', 'ostype', 'pack', 'parse-date', 'parse', 'peek', 'pipe', 'pmt', 'pop-assoc', 'pop', 'post-url', 'pow', 'prefix', 'pretty-print', 'primitive?', 'print', 'println', 'prob-chi2', 'prob-z', 'process', 'prompt-event', 'protected?', 'push', 'put-url', 'pv', 'quote?', 'quote', 'rand', 'random', 'randomize', 'read', 'read-char', 'read-expr', 'read-file', 'read-key', 'read-line', 'read-utf8', 'read', 'reader-event', 'real-path', 'receive', 'ref-all', 'ref', 'regex-comp', 'regex', 'remove-dir', 'rename-file', 'replace', 'reset', 'rest', 'reverse', 'rotate', 'round', 'save', 'search', 'seed', 'seek', 'select', 'self', 'semaphore', 'send', 'sequence', 'series', 'set-locale', 'set-ref-all', 'set-ref', 'set', 'setf', 'setq', 'sgn', 'share', 'signal', 'silent', 'sin', 'sinh', 'sleep', 'slice', 'sort', 'source', 'spawn', 'sqrt', 'starts-with', 'string?', 'string', 'sub', 'swap', 'sym', 'symbol?', 'symbols', 'sync', 'sys-error', 'sys-info', 'tan', 'tanh', 'term', 'throw-error', 'throw', 'time-of-day', 'time', 'timer', 'title-case', 'trace-highlight', 'trace', 'transpose', 'Tree', 'trim', 'true?', 'true', 'unicode', 'unify', 'unique', 'unless', 'unpack', 'until', 'upper-case', 'utf8', 'utf8len', 'uuid', 'wait-pid', 'when', 'while', 'write', 'write-char', 'write-file', 'write-line', 'write', 'xfer-event', 'xml-error', 'xml-parse', 'xml-type-tags', 'zero?', ] # valid names valid_name = r'([a-zA-Z0-9!$%&*+.,/<=>?@^_~|-])+|(\[.*?\])+' tokens = { 'root': [ # shebang (r'#!(.*?)$', Comment.Preproc), # comments starting with semicolon (r';.*$', Comment.Single), # comments starting with # (r'#.*$', Comment.Single), # whitespace (r'\s+', Text), # strings, symbols and characters (r'"(\\\\|\\"|[^"])*"', String), # braces (r"{", String, "bracestring"), # [text] ... [/text] delimited strings (r'\[text\]*', String, "tagstring"), # 'special' operators... (r"('|:)", Operator), # highlight the builtins ('(%s)' % '|'.join(re.escape(entry) + '\\b' for entry in builtins), Keyword), # the remaining functions (r'(?<=\()' + valid_name, Name.Variable), # the remaining variables (valid_name, String.Symbol), # parentheses (r'(\(|\))', Punctuation), ], # braced strings... 'bracestring': [ ("{", String, "#push"), ("}", String, "#pop"), ("[^{}]+", String), ], # tagged [text]...[/text] delimited strings... 'tagstring': [ (r'(?s)(.*?)(\[/text\])', String, '#pop'), ], } class ElixirLexer(RegexLexer): """ For the `Elixir language <http://elixir-lang.org>`_. *New in Pygments 1.5.* """ name = 'Elixir' aliases = ['elixir', 'ex', 'exs'] filenames = ['*.ex', '*.exs'] mimetypes = ['text/x-elixir'] def gen_elixir_sigil_rules(): states = {} states['strings'] = [ (r'(%[A-Ba-z])?"""(?:.|\n)*?"""', String.Doc), (r"'''(?:.|\n)*?'''", String.Doc), (r'"', String.Double, 'dqs'), (r"'.*'", String.Single), (r'(?<!\w)\?(\\(x\d{1,2}|\h{1,2}(?!\h)\b|0[0-7]{0,2}(?![0-7])\b|' r'[^x0MC])|(\\[MC]-)+\w|[^\s\\])', String.Other) ] for lbrace, rbrace, name, in ('\\{', '\\}', 'cb'), \ ('\\[', '\\]', 'sb'), \ ('\\(', '\\)', 'pa'), \ ('\\<', '\\>', 'lt'): states['strings'] += [ (r'%[a-z]' + lbrace, String.Double, name + 'intp'), (r'%[A-Z]' + lbrace, String.Double, name + 'no-intp') ] states[name +'intp'] = [ (r'' + rbrace + '[a-z]*', String.Double, "#pop"), include('enddoublestr') ] states[name +'no-intp'] = [ (r'.*' + rbrace + '[a-z]*', String.Double , "#pop") ] return states tokens = { 'root': [ (r'\s+', Text), (r'#.*$', Comment.Single), (r'\b(case|cond|end|bc|lc|if|unless|try|loop|receive|fn|defmodule|' r'defp?|defprotocol|defimpl|defrecord|defmacrop?|defdelegate|' r'defexception|exit|raise|throw|unless|after|rescue|catch|else)\b(?![?!])|' r'(?<!\.)\b(do|\-\>)\b\s*', Keyword), (r'\b(import|require|use|recur|quote|unquote|super|refer)\b(?![?!])', Keyword.Namespace), (r'(?<!\.)\b(and|not|or|when|xor|in)\b', Operator.Word), (r'%=|\*=|\*\*=|\+=|\-=|\^=|\|\|=|' r'<=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|(?=[ \t])\?|' r'(?<=[ \t])!+|&&|\|\||\^|\*|\+|\-|/|' r'\||\+\+|\-\-|\*\*|\/\/|\<\-|\<\>|<<|>>|=|\.', Operator), (r'(?<!:)(:)([a-zA-Z_]\w*([?!]|=(?![>=]))?|\<\>|===?|>=?|<=?|' r'<=>|&&?|%\(\)|%\[\]|%\{\}|\+\+?|\-\-?|\|\|?|\!|//|[%&`/\|]|' r'\*\*?|=?~|<\-)|([a-zA-Z_]\w*([?!])?)(:)(?!:)', String.Symbol), (r':"', String.Symbol, 'interpoling_symbol'), (r'\b(nil|true|false)\b(?![?!])|\b[A-Z]\w*\b', Name.Constant), (r'\b(__(FILE|LINE|MODULE|MAIN|FUNCTION)__)\b(?![?!])', Name.Builtin.Pseudo), (r'[a-zA-Z_!][\w_]*[!\?]?', Name), (r'[(){};,/\|:\\\[\]]', Punctuation), (r'@[a-zA-Z_]\w*|&\d', Name.Variable), (r'\b(0[xX][0-9A-Fa-f]+|\d(_?\d)*(\.(?![^\d\s])' r'(_?\d)*)?([eE][-+]?\d(_?\d)*)?|0[bB][01]+)\b', Number), (r'%r\/.*\/', String.Regex), include('strings'), ], 'dqs': [ (r'"', String.Double, "#pop"), include('enddoublestr') ], 'interpoling': [ (r'#{', String.Interpol, 'interpoling_string'), ], 'interpoling_string' : [ (r'}', String.Interpol, "#pop"), include('root') ], 'interpoling_symbol': [ (r'"', String.Symbol, "#pop"), include('interpoling'), (r'[^#"]+', String.Symbol), ], 'enddoublestr' : [ include('interpoling'), (r'[^#"]+', String.Double), ] } tokens.update(gen_elixir_sigil_rules()) class ElixirConsoleLexer(Lexer): """ For Elixir interactive console (iex) output like: .. sourcecode:: iex iex> [head | tail] = [1,2,3] [1,2,3] iex> head 1 iex> tail [2,3] iex> [head | tail] [1,2,3] iex> length [head | tail] 3 *New in Pygments 1.5.* """ name = 'Elixir iex session' aliases = ['iex'] mimetypes = ['text/x-elixir-shellsession'] _prompt_re = re.compile('(iex|\.{3})> ') def get_tokens_unprocessed(self, text): exlexer = ElixirLexer(**self.options) curcode = '' insertions = [] for match in line_re.finditer(text): line = match.group() if line.startswith(u'** '): insertions.append((len(curcode), [(0, Generic.Error, line[:-1])])) curcode += line[-1:] else: m = self._prompt_re.match(line) if m is not None: end = m.end() insertions.append((len(curcode), [(0, Generic.Prompt, line[:end])])) curcode += line[end:] else: if curcode: for item in do_insertions(insertions, exlexer.get_tokens_unprocessed(curcode)): yield item curcode = '' insertions = [] yield match.start(), Generic.Output, line if curcode: for item in do_insertions(insertions, exlexer.get_tokens_unprocessed(curcode)): yield item class KokaLexer(RegexLexer): """ Lexer for the `Koka <http://research.microsoft.com/en-us/projects/koka/>`_ language. *New in Pygments 1.6.* """ name = 'Koka' aliases = ['koka'] filenames = ['*.kk', '*.kki'] mimetypes = ['text/x-koka'] keywords = [ 'infix', 'infixr', 'infixl', 'prefix', 'postfix', 'type', 'cotype', 'rectype', 'alias', 'struct', 'con', 'fun', 'function', 'val', 'var', 'external', 'if', 'then', 'else', 'elif', 'return', 'match', 'private', 'public', 'private', 'module', 'import', 'as', 'include', 'inline', 'rec', 'try', 'yield', 'enum', 'interface', 'instance', ] # keywords that are followed by a type typeStartKeywords = [ 'type', 'cotype', 'rectype', 'alias', 'struct', 'enum', ] # keywords valid in a type typekeywords = [ 'forall', 'exists', 'some', 'with', ] # builtin names and special names builtin = [ 'for', 'while', 'repeat', 'foreach', 'foreach-indexed', 'error', 'catch', 'finally', 'cs', 'js', 'file', 'ref', 'assigned', ] # symbols that can be in an operator symbols = '[\$%&\*\+@!/\\\^~=\.:\-\?\|<>]+' # symbol boundary: an operator keyword should not be followed by any of these sboundary = '(?!'+symbols+')' # name boundary: a keyword should not be followed by any of these boundary = '(?![a-zA-Z0-9_\\-])' # main lexer tokens = { 'root': [ include('whitespace'), # go into type mode (r'::?' + sboundary, Keyword.Type, 'type'), (r'alias' + boundary, Keyword, 'alias-type'), (r'struct' + boundary, Keyword, 'struct-type'), (r'(%s)' % '|'.join(typeStartKeywords) + boundary, Keyword, 'type'), # special sequences of tokens (we use ?: for non-capturing group as # required by 'bygroups') (r'(module)(\s*)((?:interface)?)(\s*)' r'((?:[a-z](?:[a-zA-Z0-9_]|\-[a-zA-Z])*\.)*' r'[a-z](?:[a-zA-Z0-9_]|\-[a-zA-Z])*)', bygroups(Keyword, Text, Keyword, Text, Name.Namespace)), (r'(import)(\s+)((?:[a-z](?:[a-zA-Z0-9_]|\-[a-zA-Z])*\.)*[a-z]' r'(?:[a-zA-Z0-9_]|\-[a-zA-Z])*)(\s*)((?:as)?)' r'((?:[A-Z](?:[a-zA-Z0-9_]|\-[a-zA-Z])*)?)', bygroups(Keyword, Text, Name.Namespace, Text, Keyword, Name.Namespace)), # keywords (r'(%s)' % '|'.join(typekeywords) + boundary, Keyword.Type), (r'(%s)' % '|'.join(keywords) + boundary, Keyword), (r'(%s)' % '|'.join(builtin) + boundary, Keyword.Pseudo), (r'::|:=|\->|[=\.:]' + sboundary, Keyword), (r'\-' + sboundary, Generic.Strong), # names (r'[A-Z]([a-zA-Z0-9_]|\-[a-zA-Z])*(?=\.)', Name.Namespace), (r'[A-Z]([a-zA-Z0-9_]|\-[a-zA-Z])*(?!\.)', Name.Class), (r'[a-z]([a-zA-Z0-9_]|\-[a-zA-Z])*', Name), (r'_([a-zA-Z0-9_]|\-[a-zA-Z])*', Name.Variable), # literal string (r'@"', String.Double, 'litstring'), # operators (symbols, Operator), (r'`', Operator), (r'[\{\}\(\)\[\];,]', Punctuation), # literals. No check for literal characters with len > 1 (r'[0-9]+\.[0-9]+([eE][\-\+]?[0-9]+)?', Number.Float), (r'0[xX][0-9a-fA-F]+', Number.Hex), (r'[0-9]+', Number.Integer), (r"'", String.Char, 'char'), (r'"', String.Double, 'string'), ], # type started by alias 'alias-type': [ (r'=',Keyword), include('type') ], # type started by struct 'struct-type': [ (r'(?=\((?!,*\)))',Punctuation, '#pop'), include('type') ], # type started by colon 'type': [ (r'[\(\[<]', Keyword.Type, 'type-nested'), include('type-content') ], # type nested in brackets: can contain parameters, comma etc. 'type-nested': [ (r'[\)\]>]', Keyword.Type, '#pop'), (r'[\(\[<]', Keyword.Type, 'type-nested'), (r',', Keyword.Type), (r'([a-z](?:[a-zA-Z0-9_]|\-[a-zA-Z])*)(\s*)(:)(?!:)', bygroups(Name.Variable,Text,Keyword.Type)), # parameter name include('type-content') ], # shared contents of a type 'type-content': [ include('whitespace'), # keywords (r'(%s)' % '|'.join(typekeywords) + boundary, Keyword.Type), (r'(?=((%s)' % '|'.join(keywords) + boundary + '))', Keyword, '#pop'), # need to match because names overlap... # kinds (r'[EPH]' + boundary, Keyword.Type), (r'[*!]', Keyword.Type), # type names (r'[A-Z]([a-zA-Z0-9_]|\-[a-zA-Z])*(?=\.)', Name.Namespace), (r'[A-Z]([a-zA-Z0-9_]|\-[a-zA-Z])*(?!\.)', Name.Class), (r'[a-z][0-9]*(?![a-zA-Z_\-])', Keyword.Type), # Generic.Emph (r'_([a-zA-Z0-9_]|\-[a-zA-Z])*', Keyword.Type), # Generic.Emph (r'[a-z]([a-zA-Z0-9_]|\-[a-zA-Z])*', Keyword.Type), # type keyword operators (r'::|\->|[\.:|]', Keyword.Type), #catchall (r'', Text, '#pop') ], # comments and literals 'whitespace': [ (r'\s+', Text), (r'/\*', Comment.Multiline, 'comment'), (r'//.*$', Comment.Single) ], 'comment': [ (r'[^/\*]+', Comment.Multiline), (r'/\*', Comment.Multiline, '#push'), (r'\*/', Comment.Multiline, '#pop'), (r'[\*/]', Comment.Multiline), ], 'litstring': [ (r'[^"]+', String.Double), (r'""', String.Escape), (r'"', String.Double, '#pop'), ], 'string': [ (r'[^\\"\n]+', String.Double), include('escape-sequence'), (r'["\n]', String.Double, '#pop'), ], 'char': [ (r'[^\\\'\n]+', String.Char), include('escape-sequence'), (r'[\'\n]', String.Char, '#pop'), ], 'escape-sequence': [ (r'\\[abfnrtv0\\\"\'\?]', String.Escape), (r'\\x[0-9a-fA-F]{2}', String.Escape), (r'\\u[0-9a-fA-F]{4}', String.Escape), # Yes, \U literals are 6 hex digits. (r'\\U[0-9a-fA-F]{6}', String.Escape) ] }
eroh92/asset-manager
refs/heads/master
asset_manager/__init__.py
52
__version__ = '0.0.1'
thanatoskira/AndroGuard
refs/heads/master
demos/benchmark.py
38
#!/usr/bin/env python import sys, os import cProfile # http://code.activestate.com/recipes/286222-memory-usage/ _proc_status = '/proc/%d/status' % os.getpid() _scale = {'kB': 1024.0, 'mB': 1024.0*1024.0, 'KB': 1024.0, 'MB': 1024.0*1024.0} def _VmB(VmKey): global _proc_status, _scale # get pseudo file /proc/<pid>/status try: t = open(_proc_status) v = t.read() t.close() except: return 0.0 # non-Linux? # get VmKey line e.g. 'VmRSS: 9999 kB\n ...' i = v.index(VmKey) v = v[i:].split(None, 3) # whitespace if len(v) < 3: return 0.0 # invalid format? # convert Vm value to bytes return float(v[1]) * _scale[v[2]] def memory(since=0.0): '''Return memory usage in bytes. ''' return _VmB('VmSize:') - since def resident(since=0.0): '''Return resident memory usage in bytes. ''' return _VmB('VmRSS:') - since def stacksize(since=0.0): '''Return stack size in bytes. ''' return _VmB('VmStk:') - since PATH_INSTALL = "./" sys.path.append(PATH_INSTALL + "./") import androguard, analysis # a directory with apks files" TEST = "./apks/" l = [] for i in os.walk( TEST ) : for j in i[2] : l.append( i[0] + j ) print len(l), l _a = androguard.Androguard( l ) print "MEMORY : ", memory() / _scale["MB"], "RESIDENT ", resident() / _scale["MB"], "STACKSIZE ", stacksize() / _scale["MB"]
arbrandes/edx-platform
refs/heads/master
common/lib/xmodule/xmodule/tests/xml/__init__.py
4
""" Xml parsing tests for XModules """ import pprint from unittest.mock import Mock from django.test import TestCase from lxml import etree from opaque_keys.edx.keys import CourseKey from xblock.runtime import DictKeyValueStore, KvsFieldData from xmodule.mako_module import MakoDescriptorSystem from xmodule.modulestore.xml import CourseLocationManager from xmodule.x_module import XMLParsingSystem, policy_key class InMemorySystem(XMLParsingSystem, MakoDescriptorSystem): # pylint: disable=abstract-method """ The simplest possible XMLParsingSystem """ def __init__(self, xml_import_data): self.course_id = CourseKey.from_string(xml_import_data.course_id) self.default_class = xml_import_data.default_class self._descriptors = {} def get_policy(usage_id): """Return the policy data for the specified usage""" return xml_import_data.policy.get(policy_key(usage_id), {}) super().__init__( get_policy=get_policy, process_xml=self.process_xml, load_item=self.load_item, error_tracker=Mock(), resources_fs=xml_import_data.filesystem, mixins=xml_import_data.xblock_mixins, select=xml_import_data.xblock_select, render_template=lambda template, context: pprint.pformat((template, context)), field_data=KvsFieldData(DictKeyValueStore()), ) def process_xml(self, xml): # pylint: disable=method-hidden """Parse `xml` as an XBlock, and add it to `self._descriptors`""" self.get_asides = Mock(return_value=[]) descriptor = self.xblock_from_node( etree.fromstring(xml), None, CourseLocationManager(self.course_id), ) self._descriptors[str(descriptor.location)] = descriptor return descriptor def load_item(self, location, for_parent=None): # pylint: disable=method-hidden, unused-argument """Return the descriptor loaded for `location`""" return self._descriptors[str(location)] class XModuleXmlImportTest(TestCase): """Base class for tests that use basic XML parsing""" @classmethod def process_xml(cls, xml_import_data): """Use the `xml_import_data` to import an :class:`XBlock` from XML.""" system = InMemorySystem(xml_import_data) return system.process_xml(xml_import_data.xml_string)
kurokochin/blog-ricky
refs/heads/master
posts/models.py
3
from __future__ import unicode_literals from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.core.urlresolvers import reverse from django.db import models from django.db.models.signals import pre_save from django.utils import timezone from django.utils.safestring import mark_safe from django.utils.text import slugify from markdown_deux import markdown from comments.models import Comment from .utils import get_read_time # Create your models here. # MVC MODEL VIEW CONTROLLER #Post.objects.all() #Post.objects.create(user=user, title="Some time") class PostManager(models.Manager): def active(self, *args, **kwargs): # Post.objects.all() = super(PostManager, self).all() return super(PostManager, self).filter(draft=False).filter(publish__lte=timezone.now()) def upload_location(instance, filename): #filebase, extension = filename.split(".") #return "%s/%s.%s" %(instance.id, instance.id, extension) PostModel = instance.__class__ new_id = PostModel.objects.order_by("id").last().id + 1 """ instance.__class__ gets the model Post. We must use this method because the model is defined below. Then create a queryset ordered by the "id"s of each object, Then we get the last object in the queryset with `.last()` Which will give us the most recently created Model instance We add 1 to it, so we get what should be the same id as the the post we are creating. """ return "%s/%s" %(new_id, filename) class Post(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, default=1) title = models.CharField(max_length=120) slug = models.SlugField(unique=True) image = models.ImageField(upload_to=upload_location, null=True, blank=True, width_field="width_field", height_field="height_field") height_field = models.IntegerField(default=0) width_field = models.IntegerField(default=0) content = models.TextField() draft = models.BooleanField(default=False) publish = models.DateField(auto_now=False, auto_now_add=False) read_time = models.IntegerField(default=0) # models.TimeField(null=True, blank=True) #assume minutes updated = models.DateTimeField(auto_now=True, auto_now_add=False) timestamp = models.DateTimeField(auto_now=False, auto_now_add=True) objects = PostManager() def __unicode__(self): return self.title def __str__(self): return self.title def get_absolute_url(self): return reverse("posts:detail", kwargs={"slug": self.slug}) def get_api_url(self): return reverse("posts-api:detail", kwargs={"slug": self.slug}) class Meta: ordering = ["-timestamp", "-updated"] def get_markdown(self): content = self.content markdown_text = markdown(content) return mark_safe(markdown_text) @property def comments(self): instance = self qs = Comment.objects.filter_by_instance(instance) return qs @property def get_content_type(self): instance = self content_type = ContentType.objects.get_for_model(instance.__class__) return content_type def create_slug(instance, new_slug=None): slug = slugify(instance.title) if new_slug is not None: slug = new_slug qs = Post.objects.filter(slug=slug).order_by("-id") exists = qs.exists() if exists: new_slug = "%s-%s" %(slug, qs.first().id) return create_slug(instance, new_slug=new_slug) return slug def pre_save_post_receiver(sender, instance, *args, **kwargs): if not instance.slug: instance.slug = create_slug(instance) if instance.content: html_string = instance.get_markdown() read_time_var = get_read_time(html_string) instance.read_time = read_time_var pre_save.connect(pre_save_post_receiver, sender=Post)
papouso/odoo
refs/heads/8.0
openerp/addons/test_limits/__openerp__.py
435
# -*- coding: utf-8 -*- { 'name': 'test-limits', 'version': '0.1', 'category': 'Tests', 'description': """A module with dummy methods.""", 'author': 'OpenERP SA', 'maintainer': 'OpenERP SA', 'website': 'http://www.openerp.com', 'depends': ['base'], 'data': ['ir.model.access.csv'], 'installable': True, 'auto_install': False, } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
jeremiedecock/snippets
refs/heads/master
python/pyqt/pyqt4/layout_grid.py
1
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. # See: http://web.archive.org/web/20120501112552/http://zetcode.com/tutorials/pyqt4/layoutmanagement import sys from PyQt4 import QtGui, QtCore class Window(QtGui.QWidget): def __init__(self): super(Window, self).__init__() # Create push buttons btn1 = QtGui.QPushButton('Btn1') btn2 = QtGui.QPushButton('Btn2') btn3 = QtGui.QPushButton('Btn3') btn4 = QtGui.QPushButton('Btn4') btn5 = QtGui.QPushButton('Btn5') btn6 = QtGui.QPushButton('Btn6') # Create the layout grid = QtGui.QGridLayout() grid.addWidget(btn1, 0, 0) grid.addWidget(btn2, 0, 1) grid.addWidget(btn3, 0, 2) grid.addWidget(btn4, 1, 0) grid.addWidget(btn5, 1, 1) grid.addWidget(btn6, 1, 2) # Set the layout self.setLayout(grid) self.resize(250, 150) self.setWindowTitle('Hello') self.show() def main(): """Main function""" app = QtGui.QApplication(sys.argv) # The default constructor has no parent. # A widget with no parent is a window. window = Window() # The mainloop of the application. The event handling starts from this point. # The exec_() method has an underscore. It is because the exec is a Python keyword. And thus, exec_() was used instead. exit_code = app.exec_() # The sys.exit() method ensures a clean exit. # The environment will be informed, how the application ended. sys.exit(exit_code) if __name__ == '__main__': main()
yafp/apparat
refs/heads/master
apparat_launcher/plugin_passwordgen.py
2
#!/usr/bin/python """plugin: passwordgen (optional)""" ## general import os import random import string import wx ## apparat import ini import tools # ----------------------------------------------------------------------------------------------- # CONSTANTS # ----------------------------------------------------------------------------------------------- TRIGGER = ('!pw', '!password',) # ----------------------------------------------------------------------------------------------- # FUNCTIONS # ----------------------------------------------------------------------------------------------- def parse(current_search_string, main_window): """Valides the input and prepares the UI for executing the password command""" tools.debug_output(__name__, 'parse', 'starting', 1) ## Reset status notification back to OK main_window.status_notification_reset() icon_size = ini.read_single_ini_value('General', 'icon_size') # get preference value if current_search_string == ('!pw') or current_search_string == ('!password'): tools.debug_output(__name__, 'parse', 'Case: Password Generator', 1) prepare_plugin_passwordgen(main_window, icon_size) else: tools.debug_output(__name__, 'parse', 'Error: Unexpected passwordgen plugin command', 3) main_window.status_notification_display_error('Unexpected passwordgen plugin command') tools.debug_output(__name__, 'parse', 'finished', 1) def prepare_plugin_passwordgen(main_window, icon_size): """Prepares UI for plugin PasswordGen""" tools.debug_output(__name__, 'prepare_plugin_passwordgen', 'starting', 1) main_window.plugin__update_general_ui_information('Password Generator') ## update plugin info ## command button & txt main_window.ui__bt_command_img = wx.Image('gfx/plugins/passwordgen/'+icon_size+'/password.png', wx.BITMAP_TYPE_PNG) main_window.ui__bt_command.SetBitmap(main_window.ui__bt_command_img.ConvertToBitmap()) main_window.ui__bt_command.SetToolTipString('Password Generator') ## parameter button main_window.ui__bt_parameter.SetToolTipString('Generate') main_window.ui__bt_parameter_img = wx.Image('gfx/core/'+icon_size+'/execute.png', wx.BITMAP_TYPE_PNG) main_window.ui__bt_parameter.SetBitmap(main_window.ui__bt_parameter_img.ConvertToBitmap()) tools.debug_output(__name__, 'prepare_plugin_passwordgen', 'Finished preparing password UI', 1) def execute_password_generation(main_window): """Handles the actual password generation process""" tools.debug_output(__name__, 'execute_password_generation', 'started', 1) dlg = wx.TextEntryDialog(None, 'Please insert desired password length', 'Password Generator', '8') ret = dlg.ShowModal() if ret == wx.ID_OK: tools.debug_output(__name__, 'execute_password_generation', 'Password length set to: '+dlg.GetValue(), 1) try: password_length = int(dlg.GetValue()) if password_length < 8: password_length = 8 wx.MessageBox('Forced minimal password length 8', 'Password Generator', wx.OK | wx.ICON_WARNING) dial = wx.MessageDialog(None, 'Should the password be memorable?', 'Password Generator', wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION) pw_type = dial.ShowModal() single_generated_password = '' generated_passwords = '' if pw_type == wx.ID_YES: tools.debug_output(__name__, 'execute_password_generation', 'User selected memorable password type', 1) for x in range(0, 5): # generate 5 memorizable passwords tools.debug_output(__name__, 'execute_password_generation', 'Generating memorable password '+str(x), 1) single_generated_password = make_pseudo_word(syllables=password_length, add_number=False) single_generated_password = single_generated_password[0:password_length] # substring to correct length generated_passwords = generated_passwords+single_generated_password+'\n' ## add xkcd style pw_type xkcd = generate_xkcd_password() generated_passwords = generated_passwords+'\n\nXKCD (936) like:\n'+xkcd else: tools.debug_output(__name__, 'execute_password_generation', 'User selected default password type', 1) for x in range(0, 5): # generate 5 default passwords tools.debug_output(__name__, 'execute_password_generation', 'Generating general password '+str(x), 1) chars = string.ascii_letters + string.digits + '!@#$%^&*()' random.seed = (os.urandom(1024)) single_generated_password = ''.join(random.choice(chars) for i in range(password_length)) generated_passwords = generated_passwords+single_generated_password+'\n' ## output the passwords wx.MessageBox('Choose from the following:\n\n'+generated_passwords, 'Password Generator', wx.OK | wx.ICON_INFORMATION) ## update usage-statistics tools.debug_output(__name__, 'execute_password_generation', 'Updating statistics (plugin_executed)', 1) current_plugin_executed_count = ini.read_single_ini_value('Statistics', 'plugin_executed') # get current value from ini ini.write_single_ini_value('Statistics', 'plugin_executed', int(current_plugin_executed_count)+1) # update ini +1 except ValueError: tools.debug_output(__name__, 'execute', 'Password length entered by user was not a number', 3) wx.MessageBox('Length was not a number', 'Password Generator', wx.OK | wx.ICON_WARNING) else: tools.debug_output(__name__, 'execute', 'Password length definition canceld by user', 2) ## reset the UI main_window.reset_ui() ## if enabled in ini - hide the UI after executing the command cur_ini_value_for_hide_ui_after_command_execution = ini.read_single_ini_value('General', 'hide_ui_after_command_execution') # get current value from ini if cur_ini_value_for_hide_ui_after_command_execution == 'True': main_window.tbicon.execute_tray_icon_left_click() # via comments in: http://stackoverflow.com/questions/7479442/high-quality-simple-random-password-generator def make_pseudo_word(syllables=5, add_number=False): """Generate memorizable passwords""" rnd = random.SystemRandom() s = string.ascii_lowercase vowels = 'aeiou' consonants = ''.join([x for x in s if x not in vowels]) pwd = '' for x in 'x'*syllables: pwd = pwd+''.join(rnd.choice(consonants)+rnd.choice(vowels)) if add_number is True: pwd += str(rnd.choice(range(10))) return pwd def get_random_word(): """Picks a random file from the wordlist file (plugin_passwordgen_dict)""" wordlist = open('plugin_passwordgen_dict', 'r') line = next(wordlist) for num, wordlist in enumerate(wordlist): if random.randrange(num + 2): continue line = wordlist return line def generate_xkcd_password(): """Generated an xkcd like password - see: https://xkcd.com/936/""" single = '' full = '' for _ in range(0, 5): single = get_random_word() single = single.rstrip() full = full+' '+single tools.debug_output(__name__, 'generate_xkcd_password', 'Finished generating an xkcd-like password', 1) return full
tiagormk/gem5-hmp
refs/heads/master
src/mem/slicc/ast/ExprStatementAST.py
33
# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood # Copyright (c) 2009 The Hewlett-Packard Development Company # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer; # 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; # neither the name of the copyright holders nor the names of its # 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 # OWNER 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. from slicc.ast.StatementAST import StatementAST from slicc.symbols import Type class ExprStatementAST(StatementAST): def __init__(self, slicc, expr): super(ExprStatementAST, self).__init__(slicc) self.expr = expr def __repr__(self): return "[ExprStatementAST: %s]" % (self.expr) def generate(self, code, return_type): actual_type,rcode = self.expr.inline(True) code("$rcode;") # The return type must be void if actual_type != self.symtab.find("void", Type): self.expr.error("Non-void return must not be ignored, " + \ "return type is '%s'", actual_type.ident) def findResources(self, resources): self.expr.findResources(resources)
mariosky/evo-drawings
refs/heads/master
venv/lib/python2.7/site-packages/pystache/__init__.py
38
""" TODO: add a docstring. """ # We keep all initialization code in a separate module. from pystache.init import parse, render, Renderer, TemplateSpec __all__ = ['parse', 'render', 'Renderer', 'TemplateSpec'] __version__ = '0.5.4' # Also change in setup.py.
bealdav/OpenUpgrade
refs/heads/8.0
addons/crm/wizard/crm_phonecall_to_meeting.py
381
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp.osv import osv from openerp.tools.translate import _ class crm_phonecall2meeting(osv.osv_memory): """ Phonecall to Meeting """ _name = 'crm.phonecall2meeting' _description = 'Phonecall To Meeting' def action_cancel(self, cr, uid, ids, context=None): """ Closes Phonecall to Meeting form @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of Phonecall to Meeting IDs @param context: A standard dictionary for contextual values """ return {'type':'ir.actions.act_window_close'} def action_make_meeting(self, cr, uid, ids, context=None): """ This opens Meeting's calendar view to schedule meeting on current Phonecall @return : Dictionary value for created Meeting view """ res = {} phonecall_id = context and context.get('active_id', False) or False if phonecall_id: phonecall = self.pool.get('crm.phonecall').browse(cr, uid, phonecall_id, context) res = self.pool.get('ir.actions.act_window').for_xml_id(cr, uid, 'calendar', 'action_calendar_event', context) res['context'] = { 'default_phonecall_id': phonecall.id, 'default_partner_id': phonecall.partner_id and phonecall.partner_id.id or False, 'default_user_id': uid, 'default_email_from': phonecall.email_from, 'default_state': 'open', 'default_name': phonecall.name, } return res # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
hiidef/django-quickbooks
refs/heads/master
quickbooks/templatetags/quickbooks_tags.py
4
from django import template from django.conf import settings from django.utils.safestring import mark_safe register = template.Library() @register.simple_tag def quickbooks_javascript(): menu_proxy_url = settings.QUICKBOOKS['MENU_URL'] grant_url = settings.QUICKBOOKS['OAUTH_GRANT_URL'] result = """ <script type="text/javascript" src="https://appcenter.intuit.com/Content/IA/intuit.ipp.anywhere.js"></script> <script>intuit.ipp.anywhere.setup({ menuProxy: '%s', grantUrl: '%s' });</script> """ % (menu_proxy_url, grant_url) return mark_safe(result) @register.simple_tag def quickbooks_connect_button(): return mark_safe("<ipp:connectToIntuit></ipp:connectToIntuit>")
kleniu/PUBLICPYLIBS
refs/heads/master
LIBS/libsanitize.py
1
#!/usr/bin/env python # coding:utf-8 u"""The first lib.""" def depunctate(text_data): u"""Function gets rid of punctation chars.""" ufrom_ = u'!"$%(),-/:;<=>?[]^_`{-}~\'\\\n' uto___ = u' ' translate_map = dict( zip(map(ord, ufrom_), map(ord, uto___)) ) result = unicode(text_data).translate(translate_map) result = ' '.join(result.split()) return result if __name__ == "__main__": def testme(): u"""Just for tests.""" print "### This is a test of " + __file__ testtxt = u""" this is just a simple test to depunktation function. (Use) it with anything you want! Test! , Test2, Test3! """ print "# depunctate >>", depunctate(testtxt).encode('UTF-8'), "<<" testme()
bwohlberg/sporco
refs/heads/master
sporco/dictlrn/cbpdndl.py
1
# -*- coding: utf-8 -*- # Copyright (C) 2015-2020 by Brendt Wohlberg <brendt@ieee.org> # All rights reserved. BSD 3-clause License. # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' file distributed # with the package. """Dictionary learning based on CBPDN sparse coding""" from __future__ import print_function, absolute_import import copy import numpy as np import sporco.cnvrep as cr import sporco.admm.cbpdn as admm_cbpdn import sporco.admm.ccmod as admm_ccmod import sporco.pgm.cbpdn as pgm_cbpdn import sporco.pgm.ccmod as pgm_ccmod from sporco.dictlrn import dictlrn import sporco.dictlrn.common as dc from sporco.common import _fix_dynamic_class_lookup from sporco.linalg import inner from sporco.fft import (rfftn, irfftn, rfl2norm2) __author__ = """Brendt Wohlberg <brendt@ieee.org>""" def cbpdn_class_label_lookup(label): """Get a CBPDN class from a label string.""" clsmod = {'admm': admm_cbpdn.ConvBPDN, 'pgm': pgm_cbpdn.ConvBPDN} if label in clsmod: return clsmod[label] else: raise ValueError('Unknown ConvBPDN solver method %s' % label) def ConvBPDNOptionsDefaults(method='admm'): """Get defaults dict for the ConvBPDN class specified by the ``method`` parameter. """ dflt = copy.deepcopy(cbpdn_class_label_lookup(method).Options.defaults) if method == 'admm': dflt.update({'MaxMainIter': 1, 'AutoRho': {'Period': 10, 'AutoScaling': False, 'RsdlRatio': 10.0, 'Scaling': 2.0, 'RsdlTarget': 1.0}}) else: dflt.update({'MaxMainIter': 1}) return dflt def ConvBPDNOptions(opt=None, method='admm'): """A wrapper function that dynamically defines a class derived from the Options class associated with one of the implementations of the Convolutional BPDN problem, and returns an object instantiated with the provided parameters. The wrapper is designed to allow the appropriate object to be created by calling this function using the same syntax as would be used if it were a class. The specific implementation is selected by use of an additional keyword argument 'method'. Valid values are as specified in the documentation for :func:`ConvBPDN`. """ # Assign base class depending on method selection argument base = cbpdn_class_label_lookup(method).Options # Nested class with dynamically determined inheritance class ConvBPDNOptions(base): def __init__(self, opt): super(ConvBPDNOptions, self).__init__(opt) # Allow pickling of objects of type ConvBPDNOptions _fix_dynamic_class_lookup(ConvBPDNOptions, method) # Return object of the nested class type return ConvBPDNOptions(opt) def ConvBPDN(*args, **kwargs): """A wrapper function that dynamically defines a class derived from one of the implementations of the Convolutional Constrained MOD problems, and returns an object instantiated with the provided parameters. The wrapper is designed to allow the appropriate object to be created by calling this function using the same syntax as would be used if it were a class. The specific implementation is selected by use of an additional keyword argument 'method'. Valid values are: - ``'admm'`` : Use the implementation defined in :class:`.admm.cbpdn.ConvBPDN`. - ``'pgm'`` : Use the implementation defined in :class:`.pgm.cbpdn.ConvBPDN`. The default value is ``'admm'``. """ # Extract method selection argument or set default method = kwargs.pop('method', 'admm') # Assign base class depending on method selection argument base = cbpdn_class_label_lookup(method) # Nested class with dynamically determined inheritance class ConvBPDN(base): def __init__(self, *args, **kwargs): super(ConvBPDN, self).__init__(*args, **kwargs) # Allow pickling of objects of type ConvBPDN _fix_dynamic_class_lookup(ConvBPDN, method) # Return object of the nested class type return ConvBPDN(*args, **kwargs) def ccmod_class_label_lookup(label): """Get a CCMOD class from a label string.""" clsmod = {'ism': admm_ccmod.ConvCnstrMOD_IterSM, 'cg': admm_ccmod.ConvCnstrMOD_CG, 'cns': admm_ccmod.ConvCnstrMOD_Consensus, 'pgm': pgm_ccmod.ConvCnstrMOD} if label in clsmod: return clsmod[label] else: raise ValueError('Unknown ConvCnstrMOD solver method %s' % label) def ConvCnstrMODOptionsDefaults(method='pgm'): """Get defaults dict for the ConvCnstrMOD class specified by the ``method`` parameter. """ dflt = copy.deepcopy(ccmod_class_label_lookup(method).Options.defaults) if method == 'pgm': dflt.update({'MaxMainIter': 1}) else: dflt.update({'MaxMainIter': 1, 'AutoRho': {'Period': 10, 'AutoScaling': False, 'RsdlRatio': 10.0, 'Scaling': 2.0, 'RsdlTarget': 1.0}}) return dflt def ConvCnstrMODOptions(opt=None, method='pgm'): """A wrapper function that dynamically defines a class derived from the Options class associated with one of the implementations of the Convolutional Constrained MOD problem, and returns an object instantiated with the provided parameters. The wrapper is designed to allow the appropriate object to be created by calling this function using the same syntax as would be used if it were a class. The specific implementation is selected by use of an additional keyword argument 'method'. Valid values are as specified in the documentation for :func:`ConvCnstrMOD`. """ # Assign base class depending on method selection argument base = ccmod_class_label_lookup(method).Options # Nested class with dynamically determined inheritance class ConvCnstrMODOptions(base): def __init__(self, opt): super(ConvCnstrMODOptions, self).__init__(opt) # Allow pickling of objects of type ConvCnstrMODOptions _fix_dynamic_class_lookup(ConvCnstrMODOptions, method) # Return object of the nested class type return ConvCnstrMODOptions(opt) def ConvCnstrMOD(*args, **kwargs): """A wrapper function that dynamically defines a class derived from one of the implementations of the Convolutional Constrained MOD problems, and returns an object instantiated with the provided parameters. The wrapper is designed to allow the appropriate object to be created by calling this function using the same syntax as would be used if it were a class. The specific implementation is selected by use of an additional keyword argument 'method'. Valid values are: - ``'ism'`` : Use the implementation defined in :class:`.ConvCnstrMOD_IterSM`. This method works well for a small number of training images, but is very slow for larger training sets. - ``'cg'`` : Use the implementation defined in :class:`.ConvCnstrMOD_CG`. This method is slower than ``'ism'`` for small training sets, but has better run time scaling as the training set grows. - ``'cns'`` : Use the implementation defined in :class:`.ConvCnstrMOD_Consensus`. This method is a good choice for large training sets. - ``'pgm'`` : Use the implementation defined in :class:`.pgm.ccmod.ConvCnstrMOD`. This method is the best choice for large training sets. The default value is ``'pgm'``. """ # Extract method selection argument or set default method = kwargs.pop('method', 'pgm') # Assign base class depending on method selection argument base = ccmod_class_label_lookup(method) # Nested class with dynamically determined inheritance class ConvCnstrMOD(base): def __init__(self, *args, **kwargs): super(ConvCnstrMOD, self).__init__(*args, **kwargs) # Allow pickling of objects of type ConvCnstrMOD _fix_dynamic_class_lookup(ConvCnstrMOD, method) # Return object of the nested class type return ConvCnstrMOD(*args, **kwargs) class ConvBPDNDictLearn(dictlrn.DictLearn): r""" Dictionary learning by alternating between sparse coding and dictionary update stages. | .. inheritance-diagram:: ConvBPDNDictLearn :parts: 2 | The sparse coding is performed using :class:`.admm.cbpdn.ConvBPDN` (see :cite:`wohlberg-2014-efficient`) or :class:`.pgm.cbpdn.ConvBPDN` (see :cite:`chalasani-2013-fast` and :cite:`wohlberg-2016-efficient`), and the dictionary update is computed using :class:`.pgm.ccmod.ConvCnstrMOD` (see :cite:`garcia-2018-convolutional1`) or one of the solver classes in :mod:`.admm.ccmod` (see :cite:`wohlberg-2016-efficient` and :cite:`sorel-2016-fast`). The coupling between sparse coding and dictionary update stages is as in :cite:`garcia-2017-subproblem`. Solve the optimisation problem .. math:: \mathrm{argmin}_{\mathbf{d}, \mathbf{x}} \; (1/2) \sum_k \left \| \sum_m \mathbf{d}_m * \mathbf{x}_{k,m} - \mathbf{s}_k \right \|_2^2 + \lambda \sum_k \sum_m \| \mathbf{x}_{k,m} \|_1 \quad \text{such that} \quad \mathbf{d}_m \in C \;\; \forall m \;, where :math:`C` is the feasible set consisting of filters with unit norm and constrained support, via interleaved alternation between the ADMM steps of the :class:`.admm.cbpdn.ConvBPDN` and :func:`.ConvCnstrMOD` problems. Multi-channel variants :cite:`wohlberg-2016-convolutional` are also supported. After termination of the :meth:`solve` method, attribute :attr:`itstat` is a list of tuples representing statistics of each iteration. The fields of the named tuple ``IterationStats`` are: ``Iter`` : Iteration number ``ObjFun`` : Objective function value ``DFid`` : Value of data fidelity term :math:`(1/2) \sum_k \| \sum_m \mathbf{d}_m * \mathbf{x}_{k,m} - \mathbf{s}_k \|_2^2` ``RegL1`` : Value of regularisation term :math:`\sum_k \sum_m \| \mathbf{x}_{k,m} \|_1` ``Cnstr`` : Constraint violation measure *If the ADMM solver is selected for sparse coding:* ``XPrRsdl`` : Norm of X primal residual ``XDlRsdl`` : Norm of X dual residual ``XRho`` : X penalty parameter *If the PGM solver is selected for sparse coding:* ``X_F_Btrack`` : Value of objective function for CSC problem ``X_Q_Btrack`` : Value of quadratic approximation for CSC problem ``X_ItBt`` : Number of iterations in backtracking for CSC problem ``X_L`` : Inverse of gradient step parameter for CSC problem *If an ADMM solver is selected for the dictionary update:* ``DPrRsdl`` : Norm of D primal residual ``DDlRsdl`` : Norm of D dual residual ``DRho`` : D penalty parameter *If the PGM solver is selected for the dictionary update:* ``D_F_Btrack`` : Value of objective function for CDU problem ``D_Q_Btrack`` : Value of wuadratic approximation for CDU problem ``D_ItBt`` : Number of iterations in backtracking for CDU problem ``D_L`` : Inverse of gradient step parameter for CDU problem ``Time`` : Cumulative run time """ class Options(dictlrn.DictLearn.Options): """CBPDN dictionary learning algorithm options. Options include all of those defined in :class:`.dictlrn.DictLearn.Options`, together with additional options: ``AccurateDFid`` : Flag determining whether data fidelity term is estimated from the value computed in the X update (``False``) or is computed after every outer iteration over an X update and a D update (``True``), which is slower but more accurate. ``DictSize`` : Dictionary size vector. ``CBPDN`` : An options class appropriate for the selected sparse coding solver class ``CCMOD`` : An options class appropriate for the selected dictionary update solver class """ defaults = copy.deepcopy(dictlrn.DictLearn.Options.defaults) defaults.update({'DictSize': None, 'AccurateDFid': False}) def __init__(self, opt=None, xmethod=None, dmethod=None): """ Valid values for parameters ``xmethod`` and ``dmethod`` are documented in functions :func:`.ConvBPDN` and :func:`.ConvCnstrMOD` respectively. """ if xmethod is None: xmethod = 'admm' if dmethod is None: dmethod = 'pgm' self.xmethod = xmethod self.dmethod = dmethod self.defaults.update( {'CBPDN': ConvBPDNOptionsDefaults(xmethod), 'CCMOD': ConvCnstrMODOptionsDefaults(dmethod)}) # Initialisation of CBPDN and CCMOD keys here is required to # ensure that the corresponding options have types appropriate # for classes in the cbpdn and ccmod modules, and are not just # standard entries in the parent option tree dictlrn.DictLearn.Options.__init__(self, { 'CBPDN': ConvBPDNOptions(self.defaults['CBPDN'], method=xmethod), 'CCMOD': ConvCnstrMODOptions(self.defaults['CCMOD'], method=dmethod)}) if opt is None: opt = {} self.update(opt) def __init__(self, D0, S, lmbda=None, opt=None, xmethod=None, dmethod=None, dimK=1, dimN=2): """ | **Call graph** .. image:: ../_static/jonga/cbpdndl_init.svg :width: 20% :target: ../_static/jonga/cbpdndl_init.svg | Parameters ---------- D0 : array_like Initial dictionary array S : array_like Signal array lmbda : float Regularisation parameter opt : :class:`ConvBPDNDictLearn.Options` object Algorithm options xmethod : string, optional (default 'admm') String selecting sparse coding solver. Valid values are documented in function :func:`.ConvBPDN`. dmethod : string, optional (default 'pgm') String selecting dictionary update solver. Valid values are documented in function :func:`.ConvCnstrMOD`. dimK : int, optional (default 1) Number of signal dimensions. If there is only a single input signal (e.g. if `S` is a 2D array representing a single image) `dimK` must be set to 0. dimN : int, optional (default 2) Number of spatial/temporal dimensions """ if opt is None: opt = ConvBPDNDictLearn.Options(xmethod=xmethod, dmethod=dmethod) if xmethod is None: xmethod = opt.xmethod if dmethod is None: dmethod = opt.dmethod if opt.xmethod != xmethod or opt.dmethod != dmethod: raise ValueError('Parameters xmethod and dmethod must have the ' 'same values used to initialise the Options ' 'object') self.opt = opt self.xmethod = xmethod self.dmethod = dmethod # Get dictionary size if self.opt['DictSize'] is None: dsz = D0.shape else: dsz = self.opt['DictSize'] # Construct object representing problem dimensions cri = cr.CDU_ConvRepIndexing(dsz, S, dimK, dimN) # Normalise dictionary D0 = cr.Pcn(D0, dsz, cri.Nv, dimN, cri.dimCd, crp=True, zm=opt['CCMOD', 'ZeroMean']) # Modify D update options to include initial value for Y optname = 'X0' if dmethod == 'pgm' else 'Y0' opt['CCMOD'].update({optname: cr.zpad( cr.stdformD(D0, cri.Cd, cri.M, dimN), cri.Nv)}) # Create X update object xstep = ConvBPDN(D0, S, lmbda, opt['CBPDN'], method=xmethod, dimK=dimK, dimN=dimN) # Create D update object dstep = ConvCnstrMOD(None, S, dsz, opt['CCMOD'], method=dmethod, dimK=dimK, dimN=dimN) # Configure iteration statistics reporting isc = dictlrn.IterStatsConfig( isfld=dc.isfld(xmethod, dmethod, opt), isxmap=dc.isxmap(xmethod, opt), isdmap=dc.isdmap(dmethod), evlmap=dc.evlmap(opt['AccurateDFid']), hdrtxt=dc.hdrtxt(xmethod, dmethod, opt), hdrmap=dc.hdrmap(xmethod, dmethod, opt), fmtmap={'It_X': '%4d', 'It_D': '%4d'}) # Call parent constructor super(ConvBPDNDictLearn, self).__init__(xstep, dstep, opt, isc) def getdict(self, crop=True): """Get final dictionary. If ``crop`` is ``True``, apply :func:`.cnvrep.bcrop` to returned array. """ return self.dstep.getdict(crop=crop) def reconstruct(self, D=None, X=None): """Reconstruct representation.""" if D is None: D = self.getdict(crop=False) if X is None: X = self.getcoef() Df = rfftn(D, self.xstep.cri.Nv, self.xstep.cri.axisN) Xf = rfftn(X, self.xstep.cri.Nv, self.xstep.cri.axisN) DXf = inner(Df, Xf, axis=self.xstep.cri.axisM) return irfftn(DXf, self.xstep.cri.Nv, self.xstep.cri.axisN) def evaluate(self): """Evaluate functional value of previous iteration.""" if self.opt['AccurateDFid']: if self.dmethod == 'pgm': D = self.dstep.getdict(crop=False) else: D = self.dstep.var_y() if self.xmethod == 'pgm': X = self.xstep.getcoef() else: X = self.xstep.var_y() Df = rfftn(D, self.xstep.cri.Nv, self.xstep.cri.axisN) Xf = rfftn(X, self.xstep.cri.Nv, self.xstep.cri.axisN) Sf = self.xstep.Sf Ef = inner(Df, Xf, axis=self.xstep.cri.axisM) - Sf dfd = rfl2norm2(Ef, self.xstep.S.shape, axis=self.xstep.cri.axisN) / 2.0 rl1 = np.sum(np.abs(X)) return dict(DFid=dfd, RegL1=rl1, ObjFun=dfd + self.xstep.lmbda * rl1) else: return None
tximikel/kuma
refs/heads/master
vendor/packages/translate/storage/xml_name.py
25
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2008 Zuza Software Foundation # # This file is part of translate. # # translate is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # translate 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <http://www.gnu.org/licenses/>. # class XmlNamespace(object): def __init__(self, namespace): self._namespace = namespace def name(self, tag): return "{%s}%s" % (self._namespace, tag) class XmlNamer(object): """Initialize me with a DOM node or a DOM document node (the toplevel node you get when parsing an XML file). Then use me to generate fully qualified XML names. >>> xml = '<office:document-styles xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"></office>' >>> from lxml import etree >>> namer = XmlNamer(etree.fromstring(xml)) >>> namer.name('office', 'blah') {urn:oasis:names:tc:opendocument:xmlns:office:1.0}blah >>> namer.name('office:blah') {urn:oasis:names:tc:opendocument:xmlns:office:1.0}blah I can also give you XmlNamespace objects if you give me the abbreviated namespace name. These are useful if you need to reference a namespace continuously. >>> office_ns = name.namespace('office') >>> office_ns.name('foo') {urn:oasis:names:tc:opendocument:xmlns:office:1.0}foo """ def __init__(self, dom_node): # Allow the user to pass a dom node of the # XML document nodle if hasattr(dom_node, 'nsmap'): self.nsmap = dom_node.nsmap else: self.nsmap = dom_node.getroot().nsmap def name(self, namespace_shortcut, tag=None): # If the user doesn't pass an argument into 'tag' # then namespace_shortcut contains a tag of the form # 'short-namespace:tag' if tag is None: try: namespace_shortcut, tag = namespace_shortcut.split(':') except ValueError: # If there is no namespace in namespace_shortcut. tag = namespace_shortcut.lstrip("{}") return tag return "{%s}%s" % (self.nsmap[namespace_shortcut], tag) def namespace(self, namespace_shortcut): return XmlNamespace(self.nsmap[namespace_shortcut])
s-macke/jor1k-sysroot
refs/heads/master
fs/usr/lib/python2.7/email/mime/message.py
573
# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Class representing message/* MIME documents.""" __all__ = ['MIMEMessage'] from email import message from email.mime.nonmultipart import MIMENonMultipart class MIMEMessage(MIMENonMultipart): """Class representing message/* MIME documents.""" def __init__(self, _msg, _subtype='rfc822'): """Create a message/* type MIME document. _msg is a message object and must be an instance of Message, or a derived class of Message, otherwise a TypeError is raised. Optional _subtype defines the subtype of the contained message. The default is "rfc822" (this is defined by the MIME standard, even though the term "rfc822" is technically outdated by RFC 2822). """ MIMENonMultipart.__init__(self, 'message', _subtype) if not isinstance(_msg, message.Message): raise TypeError('Argument is not an instance of Message') # It's convenient to use this base class method. We need to do it # this way or we'll get an exception message.Message.attach(self, _msg) # And be sure our default type is set correctly self.set_default_type('message/rfc822')
mikeryan/PyBT
refs/heads/master
PyBT/roles.py
1
import logging from stack import BTStack from att import ATT_Protocol from gatt import GATT_Server from sm import SM, SM_Protocol from select import select log = logging.getLogger('PyBT.roles') class LE_Central: def __init__(self, adapter=0): self.stack = BTStack(adapter=adapter) self.att = ATT_Protocol(self.stack) class LE_Peripheral: def __init__(self, db, adapter=0, encryption=False, random=None): self.stack = BTStack(adapter=adapter) self.att = ATT_Protocol(self.stack, GATT_Server(db), encryption) self.sm = SM() self.smp = SM_Protocol(self.stack, self.sm) if random is not None: self.stack.set_random_address(random) self.sm.ra = ''.join(map(lambda x: chr(int(x, 16)), random.split(':'))) self.sm.ra_type = 1 else: self.sm.ra = self.stack.addr self.sm.ra_type = 0 def run(self): while True: # select here to play nice with gevent r, _, _ = select([self.stack], [], []) if len(r) == 0: continue p = self.stack.s.recv() if p.type == 2: # ACL data if p.cid == 4: # GATT self.att.marshall_request(p) elif p.cid == 6: # SM self.smp.marshall_command(p) # LE meta event elif p.code == 0x3e: # LTK request if p.event == 5: handle = p.handle if self.sm.ltk is None: log.info("Sending LTK Negative reply") self.stack.send_ltk_nak(handle) else: log.info("Sending LTK") self.stack.send_ltk_reply(self.sm.ltk[::-1], handle) # encryption change, send LTK and EDIV elif p.code == 8: # TODO check that we actually are changing to encrypted self.att.encrypted = True
Darkmoth/python-django-4
refs/heads/master
Thing/env/Lib/site-packages/django/template/base.py
37
""" This is the Django template system. How it works: The Lexer.tokenize() function converts a template string (i.e., a string containing markup with custom template tags) to tokens, which can be either plain text (TOKEN_TEXT), variables (TOKEN_VAR) or block statements (TOKEN_BLOCK). The Parser() class takes a list of tokens in its constructor, and its parse() method returns a compiled template -- which is, under the hood, a list of Node objects. Each Node is responsible for creating some sort of output -- e.g. simple text (TextNode), variable values in a given context (VariableNode), results of basic logic (IfNode), results of looping (ForNode), or anything else. The core Node types are TextNode, VariableNode, IfNode and ForNode, but plugin modules can define their own custom node types. Each Node has a render() method, which takes a Context and returns a string of the rendered node. For example, the render() method of a Variable Node returns the variable's value as a string. The render() method of a ForNode returns the rendered output of whatever was inside the loop, recursively. The Template class is a convenient wrapper that takes care of template compilation and rendering. Usage: The only thing you should ever use directly in this file is the Template class. Create a compiled template object with a template_string, then call render() with a context. In the compilation stage, the TemplateSyntaxError exception will be raised if the template doesn't have proper syntax. Sample code: >>> from django import template >>> s = u'<html>{% if test %}<h1>{{ varvalue }}</h1>{% endif %}</html>' >>> t = template.Template(s) (t is now a compiled template, and its render() method can be called multiple times with multiple contexts) >>> c = template.Context({'test':True, 'varvalue': 'Hello'}) >>> t.render(c) u'<html><h1>Hello</h1></html>' >>> c = template.Context({'test':False, 'varvalue': 'Hello'}) >>> t.render(c) u'<html></html>' """ from __future__ import unicode_literals import re import warnings from functools import partial from importlib import import_module from inspect import getargspec, getcallargs from django.apps import apps from django.template.context import ( # NOQA: imported for backwards compatibility BaseContext, Context, ContextPopException, RequestContext, ) from django.utils import lru_cache, six from django.utils.deprecation import RemovedInDjango20Warning from django.utils.encoding import ( force_str, force_text, python_2_unicode_compatible, ) from django.utils.formats import localize from django.utils.html import conditional_escape from django.utils.itercompat import is_iterable from django.utils.module_loading import module_has_submodule from django.utils.safestring import ( EscapeData, SafeData, mark_for_escaping, mark_safe, ) from django.utils.text import ( get_text_list, smart_split, unescape_string_literal, ) from django.utils.timezone import template_localtime from django.utils.translation import pgettext_lazy, ugettext_lazy TOKEN_TEXT = 0 TOKEN_VAR = 1 TOKEN_BLOCK = 2 TOKEN_COMMENT = 3 TOKEN_MAPPING = { TOKEN_TEXT: 'Text', TOKEN_VAR: 'Var', TOKEN_BLOCK: 'Block', TOKEN_COMMENT: 'Comment', } # template syntax constants FILTER_SEPARATOR = '|' FILTER_ARGUMENT_SEPARATOR = ':' VARIABLE_ATTRIBUTE_SEPARATOR = '.' BLOCK_TAG_START = '{%' BLOCK_TAG_END = '%}' VARIABLE_TAG_START = '{{' VARIABLE_TAG_END = '}}' COMMENT_TAG_START = '{#' COMMENT_TAG_END = '#}' TRANSLATOR_COMMENT_MARK = 'Translators' SINGLE_BRACE_START = '{' SINGLE_BRACE_END = '}' ALLOWED_VARIABLE_CHARS = ('abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.') # what to report as the origin for templates that come from non-loader sources # (e.g. strings) UNKNOWN_SOURCE = '<unknown source>' # match a variable or block tag and capture the entire tag, including start/end # delimiters tag_re = (re.compile('(%s.*?%s|%s.*?%s|%s.*?%s)' % (re.escape(BLOCK_TAG_START), re.escape(BLOCK_TAG_END), re.escape(VARIABLE_TAG_START), re.escape(VARIABLE_TAG_END), re.escape(COMMENT_TAG_START), re.escape(COMMENT_TAG_END)))) # global dictionary of libraries that have been loaded using get_library libraries = {} # global list of libraries to load by default for a new parser builtins = [] class TemplateSyntaxError(Exception): pass class TemplateDoesNotExist(Exception): pass class TemplateEncodingError(Exception): pass @python_2_unicode_compatible class VariableDoesNotExist(Exception): def __init__(self, msg, params=()): self.msg = msg self.params = params def __str__(self): return self.msg % tuple(force_text(p, errors='replace') for p in self.params) class InvalidTemplateLibrary(Exception): pass class Origin(object): def __init__(self, name): self.name = name def reload(self): raise NotImplementedError('subclasses of Origin must provide a reload() method') def __str__(self): return self.name class StringOrigin(Origin): def __init__(self, source): super(StringOrigin, self).__init__(UNKNOWN_SOURCE) self.source = source def reload(self): return self.source class Template(object): def __init__(self, template_string, origin=None, name=None, engine=None): try: template_string = force_text(template_string) except UnicodeDecodeError: raise TemplateEncodingError("Templates can only be constructed " "from unicode or UTF-8 strings.") # If Template is instantiated directly rather than from an Engine and # exactly one Django template engine is configured, use that engine. # This is required to preserve backwards-compatibility for direct use # e.g. Template('...').render(Context({...})) if engine is None: from .engine import Engine engine = Engine.get_default() if engine.debug and origin is None: origin = StringOrigin(template_string) self.nodelist = engine.compile_string(template_string, origin) self.name = name self.origin = origin self.engine = engine def __iter__(self): for node in self.nodelist: for subnode in node: yield subnode def _render(self, context): return self.nodelist.render(context) def render(self, context): "Display stage -- can be called many times" context.render_context.push() try: if context.template is None: with context.bind_template(self): return self._render(context) else: return self._render(context) finally: context.render_context.pop() class Token(object): def __init__(self, token_type, contents): # token_type must be TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK or # TOKEN_COMMENT. self.token_type, self.contents = token_type, contents self.lineno = None def __str__(self): token_name = TOKEN_MAPPING[self.token_type] return ('<%s token: "%s...">' % (token_name, self.contents[:20].replace('\n', ''))) def split_contents(self): split = [] bits = iter(smart_split(self.contents)) for bit in bits: # Handle translation-marked template pieces if bit.startswith('_("') or bit.startswith("_('"): sentinal = bit[2] + ')' trans_bit = [bit] while not bit.endswith(sentinal): bit = next(bits) trans_bit.append(bit) bit = ' '.join(trans_bit) split.append(bit) return split class Lexer(object): def __init__(self, template_string, origin): self.template_string = template_string self.origin = origin self.lineno = 1 self.verbatim = False def tokenize(self): """ Return a list of tokens from a given template_string. """ in_tag = False result = [] for bit in tag_re.split(self.template_string): if bit: result.append(self.create_token(bit, in_tag)) in_tag = not in_tag return result def create_token(self, token_string, in_tag): """ Convert the given token string into a new Token object and return it. If in_tag is True, we are processing something that matched a tag, otherwise it should be treated as a literal string. """ if in_tag and token_string.startswith(BLOCK_TAG_START): # The [2:-2] ranges below strip off *_TAG_START and *_TAG_END. # We could do len(BLOCK_TAG_START) to be more "correct", but we've # hard-coded the 2s here for performance. And it's not like # the TAG_START values are going to change anytime, anyway. block_content = token_string[2:-2].strip() if self.verbatim and block_content == self.verbatim: self.verbatim = False if in_tag and not self.verbatim: if token_string.startswith(VARIABLE_TAG_START): token = Token(TOKEN_VAR, token_string[2:-2].strip()) elif token_string.startswith(BLOCK_TAG_START): if block_content[:9] in ('verbatim', 'verbatim '): self.verbatim = 'end%s' % block_content token = Token(TOKEN_BLOCK, block_content) elif token_string.startswith(COMMENT_TAG_START): content = '' if token_string.find(TRANSLATOR_COMMENT_MARK): content = token_string[2:-2].strip() token = Token(TOKEN_COMMENT, content) else: token = Token(TOKEN_TEXT, token_string) token.lineno = self.lineno self.lineno += token_string.count('\n') return token class Parser(object): def __init__(self, tokens): self.tokens = tokens self.tags = {} self.filters = {} for lib in builtins: self.add_library(lib) def parse(self, parse_until=None): if parse_until is None: parse_until = [] nodelist = self.create_nodelist() while self.tokens: token = self.next_token() # Use the raw values here for TOKEN_* for a tiny performance boost. if token.token_type == 0: # TOKEN_TEXT self.extend_nodelist(nodelist, TextNode(token.contents), token) elif token.token_type == 1: # TOKEN_VAR if not token.contents: self.empty_variable(token) try: filter_expression = self.compile_filter(token.contents) except TemplateSyntaxError as e: if not self.compile_filter_error(token, e): raise var_node = self.create_variable_node(filter_expression) self.extend_nodelist(nodelist, var_node, token) elif token.token_type == 2: # TOKEN_BLOCK try: command = token.contents.split()[0] except IndexError: self.empty_block_tag(token) if command in parse_until: # put token back on token list so calling # code knows why it terminated self.prepend_token(token) return nodelist # execute callback function for this tag and append # resulting node self.enter_command(command, token) try: compile_func = self.tags[command] except KeyError: self.invalid_block_tag(token, command, parse_until) try: compiled_result = compile_func(self, token) except TemplateSyntaxError as e: if not self.compile_function_error(token, e): raise self.extend_nodelist(nodelist, compiled_result, token) self.exit_command() if parse_until: self.unclosed_block_tag(parse_until) return nodelist def skip_past(self, endtag): while self.tokens: token = self.next_token() if token.token_type == TOKEN_BLOCK and token.contents == endtag: return self.unclosed_block_tag([endtag]) def create_variable_node(self, filter_expression): return VariableNode(filter_expression) def create_nodelist(self): return NodeList() def extend_nodelist(self, nodelist, node, token): if node.must_be_first and nodelist: try: if nodelist.contains_nontext: raise AttributeError except AttributeError: raise TemplateSyntaxError("%r must be the first tag " "in the template." % node) if isinstance(nodelist, NodeList) and not isinstance(node, TextNode): nodelist.contains_nontext = True nodelist.append(node) def enter_command(self, command, token): pass def exit_command(self): pass def error(self, token, msg): return TemplateSyntaxError(msg) def empty_variable(self, token): raise self.error(token, "Empty variable tag") def empty_block_tag(self, token): raise self.error(token, "Empty block tag") def invalid_block_tag(self, token, command, parse_until=None): if parse_until: raise self.error(token, "Invalid block tag: '%s', expected %s" % (command, get_text_list(["'%s'" % p for p in parse_until]))) raise self.error(token, "Invalid block tag: '%s'" % command) def unclosed_block_tag(self, parse_until): raise self.error(None, "Unclosed tags: %s " % ', '.join(parse_until)) def compile_filter_error(self, token, e): pass def compile_function_error(self, token, e): pass def next_token(self): return self.tokens.pop(0) def prepend_token(self, token): self.tokens.insert(0, token) def delete_first_token(self): del self.tokens[0] def add_library(self, lib): self.tags.update(lib.tags) self.filters.update(lib.filters) def compile_filter(self, token): """ Convenient wrapper for FilterExpression """ return FilterExpression(token, self) def find_filter(self, filter_name): if filter_name in self.filters: return self.filters[filter_name] else: raise TemplateSyntaxError("Invalid filter: '%s'" % filter_name) class TokenParser(object): """ Subclass this and implement the top() method to parse a template line. When instantiating the parser, pass in the line from the Django template parser. The parser's "tagname" instance-variable stores the name of the tag that the filter was called with. """ def __init__(self, subject): self.subject = subject self.pointer = 0 self.backout = [] self.tagname = self.tag() def top(self): """ Overload this method to do the actual parsing and return the result. """ raise NotImplementedError('subclasses of Tokenparser must provide a top() method') def more(self): """ Returns True if there is more stuff in the tag. """ return self.pointer < len(self.subject) def back(self): """ Undoes the last microparser. Use this for lookahead and backtracking. """ if not len(self.backout): raise TemplateSyntaxError("back called without some previous " "parsing") self.pointer = self.backout.pop() def tag(self): """ A microparser that just returns the next tag from the line. """ subject = self.subject i = self.pointer if i >= len(subject): raise TemplateSyntaxError("expected another tag, found " "end of string: %s" % subject) p = i while i < len(subject) and subject[i] not in (' ', '\t'): i += 1 s = subject[p:i] while i < len(subject) and subject[i] in (' ', '\t'): i += 1 self.backout.append(self.pointer) self.pointer = i return s def value(self): """ A microparser that parses for a value: some string constant or variable name. """ subject = self.subject i = self.pointer def next_space_index(subject, i): """ Increment pointer until a real space (i.e. a space not within quotes) is encountered """ while i < len(subject) and subject[i] not in (' ', '\t'): if subject[i] in ('"', "'"): c = subject[i] i += 1 while i < len(subject) and subject[i] != c: i += 1 if i >= len(subject): raise TemplateSyntaxError("Searching for value. " "Unexpected end of string in column %d: %s" % (i, subject)) i += 1 return i if i >= len(subject): raise TemplateSyntaxError("Searching for value. Expected another " "value but found end of string: %s" % subject) if subject[i] in ('"', "'"): p = i i += 1 while i < len(subject) and subject[i] != subject[p]: i += 1 if i >= len(subject): raise TemplateSyntaxError("Searching for value. Unexpected " "end of string in column %d: %s" % (i, subject)) i += 1 # Continue parsing until next "real" space, # so that filters are also included i = next_space_index(subject, i) res = subject[p:i] while i < len(subject) and subject[i] in (' ', '\t'): i += 1 self.backout.append(self.pointer) self.pointer = i return res else: p = i i = next_space_index(subject, i) s = subject[p:i] while i < len(subject) and subject[i] in (' ', '\t'): i += 1 self.backout.append(self.pointer) self.pointer = i return s # This only matches constant *strings* (things in quotes or marked for # translation). Numbers are treated as variables for implementation reasons # (so that they retain their type when passed to filters). constant_string = r""" (?:%(i18n_open)s%(strdq)s%(i18n_close)s| %(i18n_open)s%(strsq)s%(i18n_close)s| %(strdq)s| %(strsq)s) """ % { 'strdq': r'"[^"\\]*(?:\\.[^"\\]*)*"', # double-quoted string 'strsq': r"'[^'\\]*(?:\\.[^'\\]*)*'", # single-quoted string 'i18n_open': re.escape("_("), 'i18n_close': re.escape(")"), } constant_string = constant_string.replace("\n", "") filter_raw_string = r""" ^(?P<constant>%(constant)s)| ^(?P<var>[%(var_chars)s]+|%(num)s)| (?:\s*%(filter_sep)s\s* (?P<filter_name>\w+) (?:%(arg_sep)s (?: (?P<constant_arg>%(constant)s)| (?P<var_arg>[%(var_chars)s]+|%(num)s) ) )? )""" % { 'constant': constant_string, 'num': r'[-+\.]?\d[\d\.e]*', 'var_chars': "\w\.", 'filter_sep': re.escape(FILTER_SEPARATOR), 'arg_sep': re.escape(FILTER_ARGUMENT_SEPARATOR), } filter_re = re.compile(filter_raw_string, re.UNICODE | re.VERBOSE) class FilterExpression(object): """ Parses a variable token and its optional filters (all as a single string), and return a list of tuples of the filter name and arguments. Sample:: >>> token = 'variable|default:"Default value"|date:"Y-m-d"' >>> p = Parser('') >>> fe = FilterExpression(token, p) >>> len(fe.filters) 2 >>> fe.var <Variable: 'variable'> """ def __init__(self, token, parser): self.token = token matches = filter_re.finditer(token) var_obj = None filters = [] upto = 0 for match in matches: start = match.start() if upto != start: raise TemplateSyntaxError("Could not parse some characters: " "%s|%s|%s" % (token[:upto], token[upto:start], token[start:])) if var_obj is None: var, constant = match.group("var", "constant") if constant: try: var_obj = Variable(constant).resolve({}) except VariableDoesNotExist: var_obj = None elif var is None: raise TemplateSyntaxError("Could not find variable at " "start of %s." % token) else: var_obj = Variable(var) else: filter_name = match.group("filter_name") args = [] constant_arg, var_arg = match.group("constant_arg", "var_arg") if constant_arg: args.append((False, Variable(constant_arg).resolve({}))) elif var_arg: args.append((True, Variable(var_arg))) filter_func = parser.find_filter(filter_name) self.args_check(filter_name, filter_func, args) filters.append((filter_func, args)) upto = match.end() if upto != len(token): raise TemplateSyntaxError("Could not parse the remainder: '%s' " "from '%s'" % (token[upto:], token)) self.filters = filters self.var = var_obj def resolve(self, context, ignore_failures=False): if isinstance(self.var, Variable): try: obj = self.var.resolve(context) except VariableDoesNotExist: if ignore_failures: obj = None else: string_if_invalid = context.template.engine.string_if_invalid if string_if_invalid: if '%s' in string_if_invalid: return string_if_invalid % self.var else: return string_if_invalid else: obj = string_if_invalid else: obj = self.var for func, args in self.filters: arg_vals = [] for lookup, arg in args: if not lookup: arg_vals.append(mark_safe(arg)) else: arg_vals.append(arg.resolve(context)) if getattr(func, 'expects_localtime', False): obj = template_localtime(obj, context.use_tz) if getattr(func, 'needs_autoescape', False): new_obj = func(obj, autoescape=context.autoescape, *arg_vals) else: new_obj = func(obj, *arg_vals) if getattr(func, 'is_safe', False) and isinstance(obj, SafeData): obj = mark_safe(new_obj) elif isinstance(obj, EscapeData): obj = mark_for_escaping(new_obj) else: obj = new_obj return obj def args_check(name, func, provided): provided = list(provided) # First argument, filter input, is implied. plen = len(provided) + 1 # Check to see if a decorator is providing the real function. func = getattr(func, '_decorated_function', func) args, varargs, varkw, defaults = getargspec(func) alen = len(args) dlen = len(defaults or []) # Not enough OR Too many if plen < (alen - dlen) or plen > alen: raise TemplateSyntaxError("%s requires %d arguments, %d provided" % (name, alen - dlen, plen)) return True args_check = staticmethod(args_check) def __str__(self): return self.token def resolve_variable(path, context): """ Returns the resolved variable, which may contain attribute syntax, within the given context. Deprecated; use the Variable class instead. """ warnings.warn("resolve_variable() is deprecated. Use django.template." "Variable(path).resolve(context) instead", RemovedInDjango20Warning, stacklevel=2) return Variable(path).resolve(context) class Variable(object): """ A template variable, resolvable against a given context. The variable may be a hard-coded string (if it begins and ends with single or double quote marks):: >>> c = {'article': {'section':u'News'}} >>> Variable('article.section').resolve(c) u'News' >>> Variable('article').resolve(c) {'section': u'News'} >>> class AClass: pass >>> c = AClass() >>> c.article = AClass() >>> c.article.section = u'News' (The example assumes VARIABLE_ATTRIBUTE_SEPARATOR is '.') """ def __init__(self, var): self.var = var self.literal = None self.lookups = None self.translate = False self.message_context = None if not isinstance(var, six.string_types): raise TypeError( "Variable must be a string or number, got %s" % type(var)) try: # First try to treat this variable as a number. # # Note that this could cause an OverflowError here that we're not # catching. Since this should only happen at compile time, that's # probably OK. self.literal = float(var) # So it's a float... is it an int? If the original value contained a # dot or an "e" then it was a float, not an int. if '.' not in var and 'e' not in var.lower(): self.literal = int(self.literal) # "2." is invalid if var.endswith('.'): raise ValueError except ValueError: # A ValueError means that the variable isn't a number. if var.startswith('_(') and var.endswith(')'): # The result of the lookup should be translated at rendering # time. self.translate = True var = var[2:-1] # If it's wrapped with quotes (single or double), then # we're also dealing with a literal. try: self.literal = mark_safe(unescape_string_literal(var)) except ValueError: # Otherwise we'll set self.lookups so that resolve() knows we're # dealing with a bonafide variable if var.find(VARIABLE_ATTRIBUTE_SEPARATOR + '_') > -1 or var[0] == '_': raise TemplateSyntaxError("Variables and attributes may " "not begin with underscores: '%s'" % var) self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR)) def resolve(self, context): """Resolve this variable against a given context.""" if self.lookups is not None: # We're dealing with a variable that needs to be resolved value = self._resolve_lookup(context) else: # We're dealing with a literal, so it's already been "resolved" value = self.literal if self.translate: if self.message_context: return pgettext_lazy(self.message_context, value) else: return ugettext_lazy(value) return value def __repr__(self): return "<%s: %r>" % (self.__class__.__name__, self.var) def __str__(self): return self.var def _resolve_lookup(self, context): """ Performs resolution of a real variable (i.e. not a literal) against the given context. As indicated by the method's name, this method is an implementation detail and shouldn't be called by external code. Use Variable.resolve() instead. """ current = context try: # catch-all for silent variable failures for bit in self.lookups: try: # dictionary lookup current = current[bit] # ValueError/IndexError are for numpy.array lookup on # numpy < 1.9 and 1.9+ respectively except (TypeError, AttributeError, KeyError, ValueError, IndexError): try: # attribute lookup # Don't return class attributes if the class is the context: if isinstance(current, BaseContext) and getattr(type(current), bit): raise AttributeError current = getattr(current, bit) except (TypeError, AttributeError) as e: # Reraise an AttributeError raised by a @property if (isinstance(e, AttributeError) and not isinstance(current, BaseContext) and bit in dir(current)): raise try: # list-index lookup current = current[int(bit)] except (IndexError, # list index out of range ValueError, # invalid literal for int() KeyError, # current is a dict without `int(bit)` key TypeError): # unsubscriptable object raise VariableDoesNotExist("Failed lookup for key " "[%s] in %r", (bit, current)) # missing attribute if callable(current): if getattr(current, 'do_not_call_in_templates', False): pass elif getattr(current, 'alters_data', False): current = context.template.engine.string_if_invalid else: try: # method call (assuming no args required) current = current() except TypeError: try: getcallargs(current) except TypeError: # arguments *were* required current = context.template.engine.string_if_invalid # invalid method call else: raise except Exception as e: if getattr(e, 'silent_variable_failure', False): current = context.template.engine.string_if_invalid else: raise return current class Node(object): # Set this to True for nodes that must be first in the template (although # they can be preceded by text nodes. must_be_first = False child_nodelists = ('nodelist',) def render(self, context): """ Return the node rendered as a string. """ pass def __iter__(self): yield self def get_nodes_by_type(self, nodetype): """ Return a list of all nodes (within this node and its nodelist) of the given type """ nodes = [] if isinstance(self, nodetype): nodes.append(self) for attr in self.child_nodelists: nodelist = getattr(self, attr, None) if nodelist: nodes.extend(nodelist.get_nodes_by_type(nodetype)) return nodes class NodeList(list): # Set to True the first time a non-TextNode is inserted by # extend_nodelist(). contains_nontext = False def render(self, context): bits = [] for node in self: if isinstance(node, Node): bit = self.render_node(node, context) else: bit = node bits.append(force_text(bit)) return mark_safe(''.join(bits)) def get_nodes_by_type(self, nodetype): "Return a list of all nodes of the given type" nodes = [] for node in self: nodes.extend(node.get_nodes_by_type(nodetype)) return nodes def render_node(self, node, context): return node.render(context) class TextNode(Node): def __init__(self, s): self.s = s def __repr__(self): return force_str("<Text Node: '%s'>" % self.s[:25], 'ascii', errors='replace') def render(self, context): return self.s def render_value_in_context(value, context): """ Converts any value to a string to become part of a rendered template. This means escaping, if required, and conversion to a unicode object. If value is a string, it is expected to have already been translated. """ value = template_localtime(value, use_tz=context.use_tz) value = localize(value, use_l10n=context.use_l10n) value = force_text(value) if ((context.autoescape and not isinstance(value, SafeData)) or isinstance(value, EscapeData)): return conditional_escape(value) else: return value class VariableNode(Node): def __init__(self, filter_expression): self.filter_expression = filter_expression def __repr__(self): return "<Variable Node: %s>" % self.filter_expression def render(self, context): try: output = self.filter_expression.resolve(context) except UnicodeDecodeError: # Unicode conversion can fail sometimes for reasons out of our # control (e.g. exception rendering). In that case, we fail # quietly. return '' return render_value_in_context(output, context) # Regex for token keyword arguments kwarg_re = re.compile(r"(?:(\w+)=)?(.+)") def token_kwargs(bits, parser, support_legacy=False): """ A utility method for parsing token keyword arguments. :param bits: A list containing remainder of the token (split by spaces) that is to be checked for arguments. Valid arguments will be removed from this list. :param support_legacy: If set to true ``True``, the legacy format ``1 as foo`` will be accepted. Otherwise, only the standard ``foo=1`` format is allowed. :returns: A dictionary of the arguments retrieved from the ``bits`` token list. There is no requirement for all remaining token ``bits`` to be keyword arguments, so the dictionary will be returned as soon as an invalid argument format is reached. """ if not bits: return {} match = kwarg_re.match(bits[0]) kwarg_format = match and match.group(1) if not kwarg_format: if not support_legacy: return {} if len(bits) < 3 or bits[1] != 'as': return {} kwargs = {} while bits: if kwarg_format: match = kwarg_re.match(bits[0]) if not match or not match.group(1): return kwargs key, value = match.groups() del bits[:1] else: if len(bits) < 3 or bits[1] != 'as': return kwargs key, value = bits[2], bits[0] del bits[:3] kwargs[key] = parser.compile_filter(value) if bits and not kwarg_format: if bits[0] != 'and': return kwargs del bits[:1] return kwargs def parse_bits(parser, bits, params, varargs, varkw, defaults, takes_context, name): """ Parses bits for template tag helpers (simple_tag, include_tag and assignment_tag), in particular by detecting syntax errors and by extracting positional and keyword arguments. """ if takes_context: if params[0] == 'context': params = params[1:] else: raise TemplateSyntaxError( "'%s' is decorated with takes_context=True so it must " "have a first argument of 'context'" % name) args = [] kwargs = {} unhandled_params = list(params) for bit in bits: # First we try to extract a potential kwarg from the bit kwarg = token_kwargs([bit], parser) if kwarg: # The kwarg was successfully extracted param, value = list(six.iteritems(kwarg))[0] if param not in params and varkw is None: # An unexpected keyword argument was supplied raise TemplateSyntaxError( "'%s' received unexpected keyword argument '%s'" % (name, param)) elif param in kwargs: # The keyword argument has already been supplied once raise TemplateSyntaxError( "'%s' received multiple values for keyword argument '%s'" % (name, param)) else: # All good, record the keyword argument kwargs[str(param)] = value if param in unhandled_params: # If using the keyword syntax for a positional arg, then # consume it. unhandled_params.remove(param) else: if kwargs: raise TemplateSyntaxError( "'%s' received some positional argument(s) after some " "keyword argument(s)" % name) else: # Record the positional argument args.append(parser.compile_filter(bit)) try: # Consume from the list of expected positional arguments unhandled_params.pop(0) except IndexError: if varargs is None: raise TemplateSyntaxError( "'%s' received too many positional arguments" % name) if defaults is not None: # Consider the last n params handled, where n is the # number of defaults. unhandled_params = unhandled_params[:-len(defaults)] if unhandled_params: # Some positional arguments were not supplied raise TemplateSyntaxError( "'%s' did not receive value(s) for the argument(s): %s" % (name, ", ".join("'%s'" % p for p in unhandled_params))) return args, kwargs def generic_tag_compiler(parser, token, params, varargs, varkw, defaults, name, takes_context, node_class): """ Returns a template.Node subclass. """ bits = token.split_contents()[1:] args, kwargs = parse_bits(parser, bits, params, varargs, varkw, defaults, takes_context, name) return node_class(takes_context, args, kwargs) class TagHelperNode(Node): """ Base class for tag helper nodes such as SimpleNode, InclusionNode and AssignmentNode. Manages the positional and keyword arguments to be passed to the decorated function. """ def __init__(self, takes_context, args, kwargs): self.takes_context = takes_context self.args = args self.kwargs = kwargs def get_resolved_arguments(self, context): resolved_args = [var.resolve(context) for var in self.args] if self.takes_context: resolved_args = [context] + resolved_args resolved_kwargs = {k: v.resolve(context) for k, v in self.kwargs.items()} return resolved_args, resolved_kwargs class Library(object): def __init__(self): self.filters = {} self.tags = {} def tag(self, name=None, compile_function=None): if name is None and compile_function is None: # @register.tag() return self.tag_function elif name is not None and compile_function is None: if callable(name): # @register.tag return self.tag_function(name) else: # @register.tag('somename') or @register.tag(name='somename') def dec(func): return self.tag(name, func) return dec elif name is not None and compile_function is not None: # register.tag('somename', somefunc) self.tags[name] = compile_function return compile_function else: raise InvalidTemplateLibrary("Unsupported arguments to " "Library.tag: (%r, %r)", (name, compile_function)) def tag_function(self, func): self.tags[getattr(func, "_decorated_function", func).__name__] = func return func def filter(self, name=None, filter_func=None, **flags): if name is None and filter_func is None: # @register.filter() def dec(func): return self.filter_function(func, **flags) return dec elif name is not None and filter_func is None: if callable(name): # @register.filter return self.filter_function(name, **flags) else: # @register.filter('somename') or @register.filter(name='somename') def dec(func): return self.filter(name, func, **flags) return dec elif name is not None and filter_func is not None: # register.filter('somename', somefunc) self.filters[name] = filter_func for attr in ('expects_localtime', 'is_safe', 'needs_autoescape'): if attr in flags: value = flags[attr] # set the flag on the filter for FilterExpression.resolve setattr(filter_func, attr, value) # set the flag on the innermost decorated function # for decorators that need it e.g. stringfilter if hasattr(filter_func, "_decorated_function"): setattr(filter_func._decorated_function, attr, value) filter_func._filter_name = name return filter_func else: raise InvalidTemplateLibrary("Unsupported arguments to " "Library.filter: (%r, %r)", (name, filter_func)) def filter_function(self, func, **flags): name = getattr(func, "_decorated_function", func).__name__ return self.filter(name, func, **flags) def simple_tag(self, func=None, takes_context=None, name=None): def dec(func): params, varargs, varkw, defaults = getargspec(func) class SimpleNode(TagHelperNode): def render(self, context): resolved_args, resolved_kwargs = self.get_resolved_arguments(context) return func(*resolved_args, **resolved_kwargs) function_name = (name or getattr(func, '_decorated_function', func).__name__) compile_func = partial(generic_tag_compiler, params=params, varargs=varargs, varkw=varkw, defaults=defaults, name=function_name, takes_context=takes_context, node_class=SimpleNode) compile_func.__doc__ = func.__doc__ self.tag(function_name, compile_func) return func if func is None: # @register.simple_tag(...) return dec elif callable(func): # @register.simple_tag return dec(func) else: raise TemplateSyntaxError("Invalid arguments provided to simple_tag") def assignment_tag(self, func=None, takes_context=None, name=None): def dec(func): params, varargs, varkw, defaults = getargspec(func) class AssignmentNode(TagHelperNode): def __init__(self, takes_context, args, kwargs, target_var): super(AssignmentNode, self).__init__(takes_context, args, kwargs) self.target_var = target_var def render(self, context): resolved_args, resolved_kwargs = self.get_resolved_arguments(context) context[self.target_var] = func(*resolved_args, **resolved_kwargs) return '' function_name = (name or getattr(func, '_decorated_function', func).__name__) def compile_func(parser, token): bits = token.split_contents()[1:] if len(bits) < 2 or bits[-2] != 'as': raise TemplateSyntaxError( "'%s' tag takes at least 2 arguments and the " "second last argument must be 'as'" % function_name) target_var = bits[-1] bits = bits[:-2] args, kwargs = parse_bits(parser, bits, params, varargs, varkw, defaults, takes_context, function_name) return AssignmentNode(takes_context, args, kwargs, target_var) compile_func.__doc__ = func.__doc__ self.tag(function_name, compile_func) return func if func is None: # @register.assignment_tag(...) return dec elif callable(func): # @register.assignment_tag return dec(func) else: raise TemplateSyntaxError("Invalid arguments provided to assignment_tag") def inclusion_tag(self, file_name, takes_context=False, name=None): def dec(func): params, varargs, varkw, defaults = getargspec(func) class InclusionNode(TagHelperNode): def render(self, context): """ Renders the specified template and context. Caches the template object in render_context to avoid reparsing and loading when used in a for loop. """ resolved_args, resolved_kwargs = self.get_resolved_arguments(context) _dict = func(*resolved_args, **resolved_kwargs) t = context.render_context.get(self) if t is None: if isinstance(file_name, Template): t = file_name elif isinstance(getattr(file_name, 'template', None), Template): t = file_name.template elif not isinstance(file_name, six.string_types) and is_iterable(file_name): t = context.template.engine.select_template(file_name) else: t = context.template.engine.get_template(file_name) context.render_context[self] = t new_context = context.new(_dict) # Copy across the CSRF token, if present, because # inclusion tags are often used for forms, and we need # instructions for using CSRF protection to be as simple # as possible. csrf_token = context.get('csrf_token', None) if csrf_token is not None: new_context['csrf_token'] = csrf_token return t.render(new_context) function_name = (name or getattr(func, '_decorated_function', func).__name__) compile_func = partial(generic_tag_compiler, params=params, varargs=varargs, varkw=varkw, defaults=defaults, name=function_name, takes_context=takes_context, node_class=InclusionNode) compile_func.__doc__ = func.__doc__ self.tag(function_name, compile_func) return func return dec def is_library_missing(name): """Check if library that failed to load cannot be found under any templatetags directory or does exist but fails to import. Non-existing condition is checked recursively for each subpackage in cases like <appdir>/templatetags/subpackage/package/module.py. """ # Don't bother to check if '.' is in name since any name will be prefixed # with some template root. path, module = name.rsplit('.', 1) try: package = import_module(path) return not module_has_submodule(package, module) except ImportError: return is_library_missing(path) def import_library(taglib_module): """ Load a template tag library module. Verifies that the library contains a 'register' attribute, and returns that attribute as the representation of the library """ try: mod = import_module(taglib_module) except ImportError as e: # If the ImportError is because the taglib submodule does not exist, # that's not an error that should be raised. If the submodule exists # and raised an ImportError on the attempt to load it, that we want # to raise. if is_library_missing(taglib_module): return None else: raise InvalidTemplateLibrary("ImportError raised loading %s: %s" % (taglib_module, e)) try: return mod.register except AttributeError: raise InvalidTemplateLibrary("Template library %s does not have " "a variable named 'register'" % taglib_module) @lru_cache.lru_cache() def get_templatetags_modules(): """ Return the list of all available template tag modules. Caches the result for faster access. """ templatetags_modules_candidates = ['django.templatetags'] templatetags_modules_candidates.extend( '%s.templatetags' % app_config.name for app_config in apps.get_app_configs()) templatetags_modules = [] for templatetag_module in templatetags_modules_candidates: try: import_module(templatetag_module) except ImportError: continue else: templatetags_modules.append(templatetag_module) return templatetags_modules def get_library(library_name): """ Load the template library module with the given name. If library is not already loaded loop over all templatetags modules to locate it. {% load somelib %} and {% load someotherlib %} loops twice. Subsequent loads eg. {% load somelib %} in the same process will grab the cached module from libraries. """ lib = libraries.get(library_name, None) if not lib: templatetags_modules = get_templatetags_modules() tried_modules = [] for module in templatetags_modules: taglib_module = '%s.%s' % (module, library_name) tried_modules.append(taglib_module) lib = import_library(taglib_module) if lib: libraries[library_name] = lib break if not lib: raise InvalidTemplateLibrary("Template library %s not found, " "tried %s" % (library_name, ','.join(tried_modules))) return lib def add_to_builtins(module): builtins.append(import_library(module)) add_to_builtins('django.template.defaulttags') add_to_builtins('django.template.defaultfilters') add_to_builtins('django.template.loader_tags')
sharad/calibre
refs/heads/master
src/html5lib/serializer/__init__.py
1731
from __future__ import absolute_import, division, unicode_literals from .. import treewalkers from .htmlserializer import HTMLSerializer def serialize(input, tree="etree", format="html", encoding=None, **serializer_opts): # XXX: Should we cache this? walker = treewalkers.getTreeWalker(tree) if format == "html": s = HTMLSerializer(**serializer_opts) else: raise ValueError("type must be html") return s.render(walker(input), encoding)
rversteegen/commandergenius
refs/heads/sdl_android
project/jni/python/src/Lib/idlelib/keybindingDialog.py
49
""" Dialog for building Tkinter accelerator key bindings """ from Tkinter import * import tkMessageBox import string class GetKeysDialog(Toplevel): def __init__(self,parent,title,action,currentKeySequences): """ action - string, the name of the virtual event these keys will be mapped to currentKeys - list, a list of all key sequence lists currently mapped to virtual events, for overlap checking """ Toplevel.__init__(self, parent) self.configure(borderwidth=5) self.resizable(height=FALSE,width=FALSE) self.title(title) self.transient(parent) self.grab_set() self.protocol("WM_DELETE_WINDOW", self.Cancel) self.parent = parent self.action=action self.currentKeySequences=currentKeySequences self.result='' self.keyString=StringVar(self) self.keyString.set('') self.SetModifiersForPlatform() # set self.modifiers, self.modifier_label self.modifier_vars = [] for modifier in self.modifiers: variable = StringVar(self) variable.set('') self.modifier_vars.append(variable) self.advanced = False self.CreateWidgets() self.LoadFinalKeyList() self.withdraw() #hide while setting geometry self.update_idletasks() self.geometry("+%d+%d" % ((parent.winfo_rootx()+((parent.winfo_width()/2) -(self.winfo_reqwidth()/2)), parent.winfo_rooty()+((parent.winfo_height()/2) -(self.winfo_reqheight()/2)) )) ) #centre dialog over parent self.deiconify() #geometry set, unhide self.wait_window() def CreateWidgets(self): frameMain = Frame(self,borderwidth=2,relief=SUNKEN) frameMain.pack(side=TOP,expand=TRUE,fill=BOTH) frameButtons=Frame(self) frameButtons.pack(side=BOTTOM,fill=X) self.buttonOK = Button(frameButtons,text='OK', width=8,command=self.OK) self.buttonOK.grid(row=0,column=0,padx=5,pady=5) self.buttonCancel = Button(frameButtons,text='Cancel', width=8,command=self.Cancel) self.buttonCancel.grid(row=0,column=1,padx=5,pady=5) self.frameKeySeqBasic = Frame(frameMain) self.frameKeySeqAdvanced = Frame(frameMain) self.frameControlsBasic = Frame(frameMain) self.frameHelpAdvanced = Frame(frameMain) self.frameKeySeqAdvanced.grid(row=0,column=0,sticky=NSEW,padx=5,pady=5) self.frameKeySeqBasic.grid(row=0,column=0,sticky=NSEW,padx=5,pady=5) self.frameKeySeqBasic.lift() self.frameHelpAdvanced.grid(row=1,column=0,sticky=NSEW,padx=5) self.frameControlsBasic.grid(row=1,column=0,sticky=NSEW,padx=5) self.frameControlsBasic.lift() self.buttonLevel = Button(frameMain,command=self.ToggleLevel, text='Advanced Key Binding Entry >>') self.buttonLevel.grid(row=2,column=0,stick=EW,padx=5,pady=5) labelTitleBasic = Label(self.frameKeySeqBasic, text="New keys for '"+self.action+"' :") labelTitleBasic.pack(anchor=W) labelKeysBasic = Label(self.frameKeySeqBasic,justify=LEFT, textvariable=self.keyString,relief=GROOVE,borderwidth=2) labelKeysBasic.pack(ipadx=5,ipady=5,fill=X) self.modifier_checkbuttons = {} column = 0 for modifier, variable in zip(self.modifiers, self.modifier_vars): label = self.modifier_label.get(modifier, modifier) check=Checkbutton(self.frameControlsBasic, command=self.BuildKeyString, text=label,variable=variable,onvalue=modifier,offvalue='') check.grid(row=0,column=column,padx=2,sticky=W) self.modifier_checkbuttons[modifier] = check column += 1 labelFnAdvice=Label(self.frameControlsBasic,justify=LEFT, text=\ "Select the desired modifier keys\n"+ "above, and the final key from the\n"+ "list on the right.\n\n" + "Use upper case Symbols when using\n" + "the Shift modifier. (Letters will be\n" + "converted automatically.)") labelFnAdvice.grid(row=1,column=0,columnspan=4,padx=2,sticky=W) self.listKeysFinal=Listbox(self.frameControlsBasic,width=15,height=10, selectmode=SINGLE) self.listKeysFinal.bind('<ButtonRelease-1>',self.FinalKeySelected) self.listKeysFinal.grid(row=0,column=4,rowspan=4,sticky=NS) scrollKeysFinal=Scrollbar(self.frameControlsBasic,orient=VERTICAL, command=self.listKeysFinal.yview) self.listKeysFinal.config(yscrollcommand=scrollKeysFinal.set) scrollKeysFinal.grid(row=0,column=5,rowspan=4,sticky=NS) self.buttonClear=Button(self.frameControlsBasic, text='Clear Keys',command=self.ClearKeySeq) self.buttonClear.grid(row=2,column=0,columnspan=4) labelTitleAdvanced = Label(self.frameKeySeqAdvanced,justify=LEFT, text="Enter new binding(s) for '"+self.action+"' :\n"+ "(These bindings will not be checked for validity!)") labelTitleAdvanced.pack(anchor=W) self.entryKeysAdvanced=Entry(self.frameKeySeqAdvanced, textvariable=self.keyString) self.entryKeysAdvanced.pack(fill=X) labelHelpAdvanced=Label(self.frameHelpAdvanced,justify=LEFT, text="Key bindings are specified using Tkinter keysyms as\n"+ "in these samples: <Control-f>, <Shift-F2>, <F12>,\n" "<Control-space>, <Meta-less>, <Control-Alt-Shift-X>.\n" "Upper case is used when the Shift modifier is present!\n\n" + "'Emacs style' multi-keystroke bindings are specified as\n" + "follows: <Control-x><Control-y>, where the first key\n" + "is the 'do-nothing' keybinding.\n\n" + "Multiple separate bindings for one action should be\n"+ "separated by a space, eg., <Alt-v> <Meta-v>." ) labelHelpAdvanced.grid(row=0,column=0,sticky=NSEW) def SetModifiersForPlatform(self): """Determine list of names of key modifiers for this platform. The names are used to build Tk bindings -- it doesn't matter if the keyboard has these keys, it matters if Tk understands them. The order is also important: key binding equality depends on it, so config-keys.def must use the same ordering. """ import macosxSupport if macosxSupport.runningAsOSXApp(): self.modifiers = ['Shift', 'Control', 'Option', 'Command'] else: self.modifiers = ['Control', 'Alt', 'Shift'] self.modifier_label = {'Control': 'Ctrl'} # short name def ToggleLevel(self): if self.buttonLevel.cget('text')[:8]=='Advanced': self.ClearKeySeq() self.buttonLevel.config(text='<< Basic Key Binding Entry') self.frameKeySeqAdvanced.lift() self.frameHelpAdvanced.lift() self.entryKeysAdvanced.focus_set() self.advanced = True else: self.ClearKeySeq() self.buttonLevel.config(text='Advanced Key Binding Entry >>') self.frameKeySeqBasic.lift() self.frameControlsBasic.lift() self.advanced = False def FinalKeySelected(self,event): self.BuildKeyString() def BuildKeyString(self): keyList = modifiers = self.GetModifiers() finalKey = self.listKeysFinal.get(ANCHOR) if finalKey: finalKey = self.TranslateKey(finalKey, modifiers) keyList.append(finalKey) self.keyString.set('<' + string.join(keyList,'-') + '>') def GetModifiers(self): modList = [variable.get() for variable in self.modifier_vars] return filter(None, modList) def ClearKeySeq(self): self.listKeysFinal.select_clear(0,END) self.listKeysFinal.yview(MOVETO, '0.0') for variable in self.modifier_vars: variable.set('') self.keyString.set('') def LoadFinalKeyList(self): #these tuples are also available for use in validity checks self.functionKeys=('F1','F2','F2','F4','F5','F6','F7','F8','F9', 'F10','F11','F12') self.alphanumKeys=tuple(string.ascii_lowercase+string.digits) self.punctuationKeys=tuple('~!@#%^&*()_-+={}[]|;:,.<>/?') self.whitespaceKeys=('Tab','Space','Return') self.editKeys=('BackSpace','Delete','Insert') self.moveKeys=('Home','End','Page Up','Page Down','Left Arrow', 'Right Arrow','Up Arrow','Down Arrow') #make a tuple of most of the useful common 'final' keys keys=(self.alphanumKeys+self.punctuationKeys+self.functionKeys+ self.whitespaceKeys+self.editKeys+self.moveKeys) self.listKeysFinal.insert(END, *keys) def TranslateKey(self, key, modifiers): "Translate from keycap symbol to the Tkinter keysym" translateDict = {'Space':'space', '~':'asciitilde','!':'exclam','@':'at','#':'numbersign', '%':'percent','^':'asciicircum','&':'ampersand','*':'asterisk', '(':'parenleft',')':'parenright','_':'underscore','-':'minus', '+':'plus','=':'equal','{':'braceleft','}':'braceright', '[':'bracketleft',']':'bracketright','|':'bar',';':'semicolon', ':':'colon',',':'comma','.':'period','<':'less','>':'greater', '/':'slash','?':'question','Page Up':'Prior','Page Down':'Next', 'Left Arrow':'Left','Right Arrow':'Right','Up Arrow':'Up', 'Down Arrow': 'Down', 'Tab':'Tab'} if key in translateDict.keys(): key = translateDict[key] if 'Shift' in modifiers and key in string.ascii_lowercase: key = key.upper() key = 'Key-' + key return key def OK(self, event=None): if self.advanced or self.KeysOK(): # doesn't check advanced string yet self.result=self.keyString.get() self.destroy() def Cancel(self, event=None): self.result='' self.destroy() def KeysOK(self): '''Validity check on user's 'basic' keybinding selection. Doesn't check the string produced by the advanced dialog because 'modifiers' isn't set. ''' keys = self.keyString.get() keys.strip() finalKey = self.listKeysFinal.get(ANCHOR) modifiers = self.GetModifiers() # create a key sequence list for overlap check: keySequence = keys.split() keysOK = False title = 'Key Sequence Error' if not keys: tkMessageBox.showerror(title=title, parent=self, message='No keys specified.') elif not keys.endswith('>'): tkMessageBox.showerror(title=title, parent=self, message='Missing the final Key') elif (not modifiers and finalKey not in self.functionKeys + self.moveKeys): tkMessageBox.showerror(title=title, parent=self, message='No modifier key(s) specified.') elif (modifiers == ['Shift']) \ and (finalKey not in self.functionKeys + self.moveKeys + ('Tab', 'Space')): msg = 'The shift modifier by itself may not be used with'\ ' this key symbol.' tkMessageBox.showerror(title=title, parent=self, message=msg) elif keySequence in self.currentKeySequences: msg = 'This key combination is already in use.' tkMessageBox.showerror(title=title, parent=self, message=msg) else: keysOK = True return keysOK if __name__ == '__main__': #test the dialog root=Tk() def run(): keySeq='' dlg=GetKeysDialog(root,'Get Keys','find-again',[]) print dlg.result Button(root,text='Dialog',command=run).pack() root.mainloop()
diox/amo-validator
refs/heads/master
validator/testcases/__init__.py
12133432
thor/django-localflavor
refs/heads/master
localflavor/us/__init__.py
12133432
jackiekazil/python-oauth2
refs/heads/master
tests/__init__.py
12133432
colbyga/pychess
refs/heads/master
lib/pychess/Utils/lutils/LBoard.py
20
from __future__ import absolute_import from pychess.compat import PY3 from pychess.Utils.const import * from pychess.Utils.repr import reprColor from .ldata import * from .attack import isAttacked from .bitboard import * from .PolyglotHash import * ################################################################################ # FEN # ################################################################################ # This will cause applyFen to raise an exception, if halfmove clock and fullmove # number is not specified STRICT_FEN = False ################################################################################ # LBoard # ################################################################################ class LBoard: ini_kings = (E1, E8) ini_rooks = ((A1, H1), (A8, H8)) # Final positions of castled kings and rooks fin_kings = ((C1,G1),(C8,G8)) fin_rooks = ((D1,F1),(D8,F8)) holding = ({PAWN:0, KNIGHT:0, BISHOP:0, ROOK:0, QUEEN:0}, {PAWN:0, KNIGHT:0, BISHOP:0, ROOK:0, QUEEN:0}) def __init__ (self, variant=NORMALCHESS): self.variant = variant self.nags = [] # children can contain comments and variations # variations are lists of lboard objects self.children = [] # the next and prev lboard objects in the variation list self.next = None self.prev = None # The high level owner Board (with Piece objects) in gamemodel self.pieceBoard = None # This will True except in so called null_board # null_board act as parent of the variation # when we add a variation to last played board from hint panel self.fen_was_applied = False @property def lastMove (self): return self.hist_move[-1] if self.fen_was_applied and len(self.hist_move) > 0 else None def repetitionCount (self, drawThreshold=3): rc = 1 for ply in range(4, 1+min(len(self.hist_hash), self.fifty), 2): if self.hist_hash[-ply] == self.hash: rc += 1 if rc >= drawThreshold: break return rc def iniAtomic(self): self.hist_exploding_around = [] def iniHouse(self): self.promoted = [0]*64 self.capture_promoting = False self.hist_capture_promoting = [] self.holding = ({PAWN:0, KNIGHT:0, BISHOP:0, ROOK:0, QUEEN:0}, {PAWN:0, KNIGHT:0, BISHOP:0, ROOK:0, QUEEN:0}) def applyFen (self, fenstr): """ Applies the fenstring to the board. If the string is not properly written a SyntaxError will be raised, having its message ending in Pos(%d) specifying the string index of the problem. if an error is found, no changes will be made to the board. """ assert not self.fen_was_applied, "The applyFen() method can be used on new LBoard objects only!" # Set board to empty on Black's turn (which Polyglot-hashes to 0) self.blocker = 0 self.friends = [0]*2 self.kings = [-1]*2 self.boards = [[0]*7 for i in range(2)] self.enpassant = None # cord which can be captured by enpassant or None self.color = BLACK self.castling = 0 # The castling availability in the position self.hasCastled = [False, False] self.fifty = 0 # A ply counter for the fifty moves rule self.plyCount = 0 self.checked = None self.opchecked = None self.arBoard = [0]*64 self.hash = 0 self.pawnhash = 0 # Data from the position's history: self.hist_move = [] # The move that was applied to get the position self.hist_tpiece = [] # The piece the move captured, == EMPTY for normal moves self.hist_enpassant = [] self.hist_castling = [] self.hist_hash = [] self.hist_fifty = [] self.hist_checked = [] self.hist_opchecked = [] # piece counts self.pieceCount = [[0]*7, [0]*7] # initial cords of rooks and kings for castling in Chess960 if self.variant == FISCHERRANDOMCHESS: self.ini_kings = [None, None] self.ini_rooks = ([None, None], [None, None]) elif self.variant in (WILDCASTLECHESS, WILDCASTLESHUFFLECHESS): self.ini_kings = [None, None] self.fin_kings = ([None, None], [None, None]) self.fin_rooks = ([None, None], [None, None]) elif self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): self.iniHouse() elif self.variant == ATOMICCHESS: self.iniAtomic() # Get information parts = fenstr.split() castChr = "-" epChr = "-" fiftyChr = "0" moveNoChr = "1" if STRICT_FEN and len(parts) != 6: raise SyntaxError(_("FEN needs 6 data fields. \n\n%s") % fenstr) elif len(parts) < 2: raise SyntaxError(_("FEN needs at least 2 data fields in fenstr. \n\n%s") % fenstr) elif len(parts) >= 6: pieceChrs, colChr, castChr, epChr, fiftyChr, moveNoChr = parts[:6] elif len(parts) == 5: pieceChrs, colChr, castChr, epChr, fiftyChr = parts elif len(parts) == 4: pieceChrs, colChr, castChr, epChr = parts elif len(parts) == 3: pieceChrs, colChr, castChr = parts else: pieceChrs, colChr = parts # Try to validate some information # TODO: This should be expanded and perhaps moved slashes = len([c for c in pieceChrs if c == "/"]) if slashes < 7: raise SyntaxError(_("Needs 7 slashes in piece placement field. \n\n%s") % fenstr) if not colChr.lower() in ("w", "b"): raise SyntaxError(_("Active color field must be one of w or b. \n\n%s") % fenstr) if castChr != "-": for Chr in castChr: valid_chars = "ABCDEFGHKQ" if self.variant==FISCHERRANDOMCHESS else "KQ" if Chr.upper() not in valid_chars: raise SyntaxError(_("Castling availability field is not legal. \n\n%s") % fenstr) if epChr != "-" and not epChr in cordDic: raise SyntaxError(_("En passant cord is not legal. \n\n%s") % fenstr) # Put the next one into comment, because we use # "setboard 8/8/8/8/8/8/8/8 w - - 0 1" FEN to stop CECPEngine analyzers #if (not 'k' in pieceChrs) or (not 'K' in pieceChrs): # if self.variant not in (ATOMICCHESS, SUICIDECHESS): # raise SyntaxError, "FEN needs at least 'k' and 'K' in piece placement field." # Parse piece placement field promoted = False for r, rank in enumerate(pieceChrs.split("/")): cord = (7-r)*8 for char in rank: if r > 7: # After the 8.rank BFEN can contain holdings (captured pieces) # "~" after a piece letter denotes promoted piece if r == 8 and self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): color = char.islower() and BLACK or WHITE piece = reprSign.index(char.upper()) self.holding[color][piece] += 1 continue else: break if char.isdigit(): cord += int(char) elif char == "~": promoted = True else: color = char.islower() and BLACK or WHITE piece = reprSign.index(char.upper()) self._addPiece(cord, piece, color) self.pieceCount[color][piece] += 1 if self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS) and promoted: self.promoted[cord] = 1 promoted = False cord += 1 if self.variant == FISCHERRANDOMCHESS: # Save ranks fo find outermost rooks # if KkQq was used in castling rights if r == 0: rank8 = rank elif r == 7: rank1 = rank # Parse active color field if colChr.lower() == "w": self.setColor (WHITE) else: self.setColor (BLACK) # Parse castling availability castling = 0 for char in castChr: if self.variant == FISCHERRANDOMCHESS: if char in reprFile: if char < reprCord[self.kings[BLACK]][0]: castling |= B_OOO self.ini_rooks[1][0] = reprFile.index(char) + 56 else: castling |= B_OO self.ini_rooks[1][1] = reprFile.index(char) + 56 elif char in [c.upper() for c in reprFile]: if char < reprCord[self.kings[WHITE]][0].upper(): castling |= W_OOO self.ini_rooks[0][0] = reprFile.index(char.lower()) else: castling |= W_OO self.ini_rooks[0][1] = reprFile.index(char.lower()) elif char == "K": castling |= W_OO self.ini_rooks[0][1] = rank1.rfind('R') elif char == "Q": castling |= W_OOO self.ini_rooks[0][0] = rank1.find('R') elif char == "k": castling |= B_OO self.ini_rooks[1][1] = rank8.rfind('r') + 56 elif char == "q": castling |= B_OOO self.ini_rooks[1][0] = rank8.find('r') + 56 else: if char == "K": castling |= W_OO elif char == "Q": castling |= W_OOO elif char == "k": castling |= B_OO elif char == "q": castling |= B_OOO if self.variant in (WILDCASTLECHESS, WILDCASTLESHUFFLECHESS, FISCHERRANDOMCHESS): self.ini_kings[WHITE] = self.kings[WHITE] self.ini_kings[BLACK] = self.kings[BLACK] if self.variant in (WILDCASTLECHESS, WILDCASTLESHUFFLECHESS): if self.ini_kings[WHITE] == D1 and self.ini_kings[BLACK] == D8: self.fin_kings = ([B1,F1],[B8,F8]) self.fin_rooks = ([C1,E1],[C8,E8]) elif self.ini_kings[WHITE] == D1: self.fin_kings = ([B1,F1],[C8,G8]) self.fin_rooks = ([C1,E1],[D8,F8]) elif self.ini_kings[BLACK] == D8: self.fin_kings = ([C1,G1],[B8,F8]) self.fin_rooks = ([D1,F1],[C8,E8]) else: self.fin_kings = ([C1,G1],[C8,G8]) self.fin_rooks = ([D1,F1],[D8,F8]) self.setCastling(castling) # Parse en passant target sqaure if epChr == "-": self.setEnpassant (None) else: self.setEnpassant(cordDic[epChr]) # Parse halfmove clock field if fiftyChr.isdigit(): self.fifty = int(fiftyChr) else: self.fifty = 0 # Parse fullmove number if moveNoChr.isdigit(): movenumber = max(int(moveNoChr),1)*2 -2 if self.color == BLACK: movenumber += 1 self.plyCount = movenumber else: self.plyCount = 1 self.fen_was_applied = True def isChecked (self): if self.variant == SUICIDECHESS: return False elif self.variant == ATOMICCHESS: if not self.boards[self.color][KING]: return False if self.checked == None: kingcord = self.kings[self.color] self.checked = isAttacked (self, kingcord, 1-self.color, ischecked=True) return self.checked def opIsChecked (self): if self.variant == SUICIDECHESS: return False elif self.variant == ATOMICCHESS: if not self.boards[1-self.color][KING]: return False if self.opchecked == None: kingcord = self.kings[1-self.color] self.opchecked = isAttacked (self, kingcord, self.color, ischecked=True) return self.opchecked def willLeaveInCheck (self, move): if self.variant == SUICIDECHESS: return False board_clone = self.clone() board_clone.applyMove(move) return board_clone.opIsChecked() def _addPiece (self, cord, piece, color): _setBit = setBit self.boards[color][piece] = _setBit(self.boards[color][piece], cord) self.friends[color] = _setBit(self.friends[color], cord) self.blocker = _setBit(self.blocker, cord) if piece == PAWN: self.pawnhash ^= pieceHashes[color][PAWN][cord] elif piece == KING: self.kings[color] = cord self.hash ^= pieceHashes[color][piece][cord] self.arBoard[cord] = piece def _removePiece (self, cord, piece, color): _clearBit = clearBit self.boards[color][piece] = _clearBit(self.boards[color][piece], cord) self.friends[color] = _clearBit(self.friends[color], cord) self.blocker = _clearBit(self.blocker, cord) if piece == PAWN: self.pawnhash ^= pieceHashes[color][PAWN][cord] self.hash ^= pieceHashes[color][piece][cord] self.arBoard[cord] = EMPTY def setColor (self, color): if color == self.color: return self.color = color self.hash ^= colorHash def setCastling (self, castling): if self.castling == castling: return if castling & W_OO != self.castling & W_OO: self.hash ^= W_OOHash if castling & W_OOO != self.castling & W_OOO: self.hash ^= W_OOOHash if castling & B_OO != self.castling & B_OO: self.hash ^= B_OOHash if castling & B_OOO != self.castling & B_OOO: self.hash ^= B_OOOHash self.castling = castling def setEnpassant (self, epcord): # Strip the square if there's no adjacent enemy pawn to make the capture if epcord != None: sideToMove = (epcord >> 3 == 2 and BLACK or WHITE) fwdPawns = self.boards[sideToMove][PAWN] if sideToMove == WHITE: fwdPawns >>= 8 else: fwdPawns <<= 8 pawnTargets = (fwdPawns & ~fileBits[0]) << 1; pawnTargets |= (fwdPawns & ~fileBits[7]) >> 1; if not pawnTargets & bitPosArray[epcord]: epcord = None if self.enpassant == epcord: return if self.enpassant != None: self.hash ^= epHashes[self.enpassant & 7] if epcord != None: self.hash ^= epHashes[epcord & 7] self.enpassant = epcord #@profile def applyMove (self, move): flag = move >> 12 fcord = (move >> 6) & 63 tcord = move & 63 fpiece = fcord if flag==DROP else self.arBoard[fcord] tpiece = self.arBoard[tcord] color = self.color opcolor = 1-self.color castling = self.castling self.hist_move.append(move) self.hist_enpassant.append(self.enpassant) self.hist_castling.append(self.castling) self.hist_hash.append(self.hash) self.hist_fifty.append(self.fifty) self.hist_checked.append(self.checked) self.hist_opchecked.append(self.opchecked) if self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): self.hist_capture_promoting.append(self.capture_promoting) self.opchecked = None self.checked = None if flag == NULL_MOVE: self.setColor(opcolor) return move # Castling moves can be represented strangely, so normalize them. if flag in (KING_CASTLE, QUEEN_CASTLE): side = flag - QUEEN_CASTLE fpiece = KING tpiece = EMPTY # In FRC, there may be a rook there, but the king doesn't capture it. fcord = self.ini_kings[color] if FILE(fcord) == 3 and self.variant in (WILDCASTLECHESS, WILDCASTLESHUFFLECHESS): side = 0 if side == 1 else 1 tcord = self.fin_kings[color][side] rookf = self.ini_rooks[color][side] rookt = self.fin_rooks[color][side] # Capture if tpiece != EMPTY: self._removePiece(tcord, tpiece, opcolor) self.pieceCount[opcolor][tpiece] -= 1 if self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): if self.promoted[tcord]: if self.variant == CRAZYHOUSECHESS: self.holding[color][PAWN] += 1 self.capture_promoting = True else: if self.variant == CRAZYHOUSECHESS: self.holding[color][tpiece] += 1 self.capture_promoting = False elif self.variant == ATOMICCHESS: from pychess.Variants.atomic import piecesAround apieces = [(fcord, fpiece, color),] for acord, apiece, acolor in piecesAround(self, tcord): if apiece != PAWN and acord != fcord: self._removePiece(acord, apiece, acolor) self.pieceCount[acolor][apiece] -= 1 apieces.append((acord, apiece, acolor)) if apiece == ROOK and acord != fcord: if acord == self.ini_rooks[opcolor][0]: castling &= ~CAS_FLAGS[opcolor][0] elif acord == self.ini_rooks[opcolor][1]: castling &= ~CAS_FLAGS[opcolor][1] self.hist_exploding_around.append(apieces) self.hist_tpiece.append(tpiece) # Remove moving piece(s), then add them at their destination. if flag == DROP: if self.variant == CRAZYHOUSECHESS: assert self.holding[color][fpiece] > 0 self.holding[color][fpiece] -= 1 self.pieceCount[color][fpiece] += 1 else: self._removePiece(fcord, fpiece, color) if flag in (KING_CASTLE, QUEEN_CASTLE): self._removePiece (rookf, ROOK, color) self._addPiece (rookt, ROOK, color) self.hasCastled[color] = True if flag == ENPASSANT: takenPawnC = tcord + (color == WHITE and -8 or 8) self._removePiece (takenPawnC, PAWN, opcolor) self.pieceCount[opcolor][PAWN] -= 1 if self.variant == CRAZYHOUSECHESS: self.holding[color][PAWN] += 1 elif self.variant == ATOMICCHESS: from pychess.Variants.atomic import piecesAround apieces = [(fcord, fpiece, color),] for acord, apiece, acolor in piecesAround(self, tcord): if apiece != PAWN and acord != fcord: self._removePiece(acord, apiece, acolor) self.pieceCount[acolor][apiece] -= 1 apieces.append((acord, apiece, acolor)) self.hist_exploding_around.append(apieces) elif flag in PROMOTIONS: # Pretend the pawn changes into a piece before reaching its destination. fpiece = flag - 2 self.pieceCount[color][fpiece] += 1 self.pieceCount[color][PAWN] -=1 if self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): if tpiece == EMPTY: self.capture_promoting = False if flag in PROMOTIONS: self.promoted[tcord] = 1 elif flag != DROP: if self.promoted[fcord]: self.promoted[fcord] = 0 self.promoted[tcord] = 1 elif tpiece != EMPTY: self.promoted[tcord] = 0 if self.variant == ATOMICCHESS and (tpiece != EMPTY or flag == ENPASSANT): self.pieceCount[color][fpiece] -= 1 else: self._addPiece(tcord, fpiece, color) if fpiece == PAWN and abs(fcord-tcord) == 16: self.setEnpassant ((fcord + tcord) // 2) else: self.setEnpassant (None) if tpiece == EMPTY and fpiece != PAWN: self.fifty += 1 else: self.fifty = 0 # Clear castle flags king = self.ini_kings[color] wildcastle = FILE(king) == 3 and self.variant in (WILDCASTLECHESS, WILDCASTLESHUFFLECHESS) if fpiece == KING: castling &= ~CAS_FLAGS[color][0] castling &= ~CAS_FLAGS[color][1] elif fpiece == ROOK: if fcord == self.ini_rooks[color][0]: side = 1 if wildcastle else 0 castling &= ~CAS_FLAGS[color][side] elif fcord == self.ini_rooks[color][1]: side = 0 if wildcastle else 1 castling &= ~CAS_FLAGS[color][side] if tpiece == ROOK: if tcord == self.ini_rooks[opcolor][0]: side = 1 if wildcastle else 0 castling &= ~CAS_FLAGS[opcolor][side] elif tcord == self.ini_rooks[opcolor][1]: side = 0 if wildcastle else 1 castling &= ~CAS_FLAGS[opcolor][side] self.setCastling(castling) self.setColor(opcolor) self.plyCount += 1 def popMove (self): # Note that we remove the last made move, which was not made by boards # current color, but by its opponent color = 1 - self.color opcolor = self.color move = self.hist_move.pop() cpiece = self.hist_tpiece.pop() flag = move >> 12 if flag == NULL_MOVE: self.setColor(color) return fcord = (move >> 6) & 63 tcord = move & 63 tpiece = self.arBoard[tcord] # Castling moves can be represented strangely, so normalize them. if flag in (KING_CASTLE, QUEEN_CASTLE): side = flag - QUEEN_CASTLE tpiece = KING fcord = self.ini_kings[color] if FILE(fcord) == 3 and self.variant in (WILDCASTLECHESS, WILDCASTLESHUFFLECHESS): side = 0 if side == 1 else 1 tcord = self.fin_kings[color][side] rookf = self.ini_rooks[color][side] rookt = self.fin_rooks[color][side] self._removePiece (tcord, tpiece, color) self._removePiece (rookt, ROOK, color) self._addPiece (rookf, ROOK, color) self.hasCastled[color] = False else: self._removePiece (tcord, tpiece, color) # Put back captured piece if cpiece != EMPTY: self._addPiece (tcord, cpiece, opcolor) self.pieceCount[opcolor][cpiece] += 1 if self.variant == CRAZYHOUSECHESS: if self.capture_promoting: assert self.holding[color][PAWN] > 0 self.holding[color][PAWN] -= 1 else: assert self.holding[color][cpiece] > 0 self.holding[color][cpiece] -= 1 elif self.variant == ATOMICCHESS: apieces = self.hist_exploding_around.pop() for acord, apiece, acolor in apieces: self._addPiece (acord, apiece, acolor) self.pieceCount[acolor][apiece] += 1 # Put back piece captured by enpassant if flag == ENPASSANT: epcord = color == WHITE and tcord - 8 or tcord + 8 self._addPiece (epcord, PAWN, opcolor) self.pieceCount[opcolor][PAWN] += 1 if self.variant == CRAZYHOUSECHESS: assert self.holding[color][PAWN] > 0 self.holding[color][PAWN] -= 1 elif self.variant == ATOMICCHESS: apieces = self.hist_exploding_around.pop() for acord, apiece, acolor in apieces: self._addPiece (acord, apiece, acolor) self.pieceCount[acolor][apiece] += 1 # Un-promote pawn if flag in PROMOTIONS: tpiece = PAWN self.pieceCount[color][flag-2] -= 1 self.pieceCount[color][PAWN] +=1 # Put back moved piece if flag == DROP: self.holding[color][tpiece] += 1 self.pieceCount[color][tpiece] -= 1 else: if not (self.variant == ATOMICCHESS and (cpiece != EMPTY or flag == ENPASSANT)): self._addPiece (fcord, tpiece, color) if self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): if flag != DROP: if self.promoted[tcord] and (not flag in PROMOTIONS): self.promoted[fcord] = 1 if self.capture_promoting: self.promoted[tcord] = 1 else: self.promoted[tcord] = 0 self.capture_promoting = self.hist_capture_promoting.pop() self.setColor(color) self.checked = self.hist_checked.pop() self.opchecked = self.hist_opchecked.pop() self.enpassant = self.hist_enpassant.pop() self.castling = self.hist_castling.pop() self.hash = self.hist_hash.pop() self.fifty = self.hist_fifty.pop() self.plyCount -= 1 def __hash__ (self): return self.hash def reprCastling (self): if not self.castling: return "-" else: strs = [] if self.variant == FISCHERRANDOMCHESS: if self.castling & W_OO: strs.append(reprCord[self.ini_rooks[0][1]][0].upper()) if self.castling & W_OOO: strs.append(reprCord[self.ini_rooks[0][0]][0].upper()) if self.castling & B_OO: strs.append(reprCord[self.ini_rooks[1][1]][0]) if self.castling & B_OOO: strs.append(reprCord[self.ini_rooks[1][0]][0]) else: if self.castling & W_OO: strs.append("K") if self.castling & W_OOO: strs.append("Q") if self.castling & B_OO: strs.append("k") if self.castling & B_OOO: strs.append("q") return "".join(strs) def __repr__ (self): b = "#" + reprColor[self.color] + " " b += self.reprCastling() + " " b += self.enpassant != None and reprCord[self.enpassant] or "-" b += "\n# " rows = [self.arBoard[i:i+8] for i in range(0,64,8)][::-1] for r, row in enumerate(rows): for i, piece in enumerate(row): if piece != EMPTY: if bitPosArray[(7-r)*8+i] & self.friends[WHITE]: assert self.boards[WHITE][piece], "self.boards doesn't match self.arBoard !!!" sign = FAN_PIECES[WHITE][piece] else: assert self.boards[BLACK][piece], "self.boards doesn't match self.arBoard !!!" sign = FAN_PIECES[BLACK][piece] b += sign else: b += "." b += " " b += "\n# " return b if PY3 else b.encode('utf8') def asFen (self, enable_bfen=True): fenstr = [] rows = [self.arBoard[i:i+8] for i in range(0,64,8)][::-1] for r, row in enumerate(rows): empty = 0 for i, piece in enumerate(row): if piece != EMPTY: if empty > 0: fenstr.append(str(empty)) empty = 0 sign = reprSign[piece] if bitPosArray[(7-r)*8+i] & self.friends[WHITE]: sign = sign.upper() else: sign = sign.lower() fenstr.append(sign) if self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): if self.promoted[r*8+i]: fenstr.append("~") else: empty += 1 if empty > 0: fenstr.append(str(empty)) if r != 7: fenstr.append("/") if self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): holding_pieces = [] for color in (BLACK, WHITE): holding = self.holding[color] for piece in holding: if holding[piece] > 0: sign = reprSign[piece] sign = sign.upper() if color == WHITE else sign.lower() holding_pieces.append(sign*holding[piece]) if holding_pieces: if enable_bfen: fenstr.append("/") fenstr += holding_pieces else: fenstr.append("[") fenstr += holding_pieces fenstr.append("]") fenstr.append(" ") fenstr.append(self.color == WHITE and "w" or "b") fenstr.append(" ") fenstr.append(self.reprCastling()) fenstr.append(" ") if not self.enpassant: fenstr.append("-") else: fenstr.append(reprCord[self.enpassant]) fenstr.append(" ") fenstr.append(str(self.fifty)) fenstr.append(" ") fullmove = (self.plyCount)//2 + 1 fenstr.append(str(fullmove)) return "".join(fenstr) def clone (self): copy = LBoard(self.variant) copy.blocker = self.blocker copy.friends = self.friends[:] copy.kings = self.kings[:] copy.boards = [self.boards[WHITE][:], self.boards[BLACK][:]] copy.arBoard = self.arBoard[:] copy.pieceCount = [self.pieceCount[WHITE][:], self.pieceCount[BLACK][:]] copy.color = self.color copy.plyCount = self.plyCount copy.hasCastled = self.hasCastled[:] copy.enpassant = self.enpassant copy.castling = self.castling copy.hash = self.hash copy.pawnhash = self.pawnhash copy.fifty = self.fifty copy.checked = self.checked copy.opchecked = self.opchecked copy.hist_move = self.hist_move[:] copy.hist_tpiece = self.hist_tpiece[:] copy.hist_enpassant = self.hist_enpassant[:] copy.hist_castling = self.hist_castling[:] copy.hist_hash = self.hist_hash[:] copy.hist_fifty = self.hist_fifty[:] copy.hist_checked = self.hist_checked[:] copy.hist_opchecked = self.hist_opchecked[:] if self.variant == FISCHERRANDOMCHESS: copy.ini_kings = self.ini_kings[:] copy.ini_rooks = (self.ini_rooks[0][:], self.ini_rooks[1][:]) elif self.variant in (WILDCASTLECHESS, WILDCASTLESHUFFLECHESS): copy.ini_kings = self.ini_kings[:] copy.fin_kings = (self.fin_kings[0][:], self.fin_kings[1][:]) copy.fin_rooks = (self.fin_rooks[0][:], self.fin_rooks[1][:]) elif self.variant in (BUGHOUSECHESS, CRAZYHOUSECHESS): copy.promoted = self.promoted[:] copy.holding = (self.holding[0].copy(), self.holding[1].copy()) copy.capture_promoting = self.capture_promoting copy.hist_capture_promoting = self.hist_capture_promoting[:] elif self.variant == ATOMICCHESS: copy.hist_exploding_around = [a[:] for a in self.hist_exploding_around] copy.fen_was_applied = self.fen_was_applied return copy
priyankadeswal/network-address-translator
refs/heads/master
src/csma/bindings/modulegen__gcc_ILP32.py
28
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) return True pybindgen.settings.error_handler = ErrorHandler() import sys def module_init(): root_module = Module('ns.csma', cpp_namespace='::ns3') return root_module def register_types(module): root_module = module.get_root() ## csma-channel.h (module 'csma'): ns3::WireState [enumeration] module.add_enum('WireState', ['IDLE', 'TRANSMITTING', 'PROPAGATING']) ## address.h (module 'network'): ns3::Address [class] module.add_class('Address', import_from_module='ns.network') ## address.h (module 'network'): ns3::Address::MaxSize_e [enumeration] module.add_enum('MaxSize_e', ['MAX_SIZE'], outer_class=root_module['ns3::Address'], import_from_module='ns.network') ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper [class] module.add_class('AsciiTraceHelper', import_from_module='ns.network') ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice [class] module.add_class('AsciiTraceHelperForDevice', allow_subclassing=True, import_from_module='ns.network') ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList [class] module.add_class('AttributeConstructionList', import_from_module='ns.core') ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item [struct] module.add_class('Item', import_from_module='ns.core', outer_class=root_module['ns3::AttributeConstructionList']) ## backoff.h (module 'csma'): ns3::Backoff [class] module.add_class('Backoff') ## buffer.h (module 'network'): ns3::Buffer [class] module.add_class('Buffer', import_from_module='ns.network') ## buffer.h (module 'network'): ns3::Buffer::Iterator [class] module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::Buffer']) ## packet.h (module 'network'): ns3::ByteTagIterator [class] module.add_class('ByteTagIterator', import_from_module='ns.network') ## packet.h (module 'network'): ns3::ByteTagIterator::Item [class] module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagIterator']) ## byte-tag-list.h (module 'network'): ns3::ByteTagList [class] module.add_class('ByteTagList', import_from_module='ns.network') ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator [class] module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList']) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item [struct] module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList::Iterator']) ## callback.h (module 'core'): ns3::CallbackBase [class] module.add_class('CallbackBase', import_from_module='ns.core') ## csma-channel.h (module 'csma'): ns3::CsmaDeviceRec [class] module.add_class('CsmaDeviceRec') ## data-rate.h (module 'network'): ns3::DataRate [class] module.add_class('DataRate', import_from_module='ns.network') ## event-id.h (module 'core'): ns3::EventId [class] module.add_class('EventId', import_from_module='ns.core') ## hash.h (module 'core'): ns3::Hasher [class] module.add_class('Hasher', import_from_module='ns.core') ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class] module.add_class('Ipv4Address', import_from_module='ns.network') ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class] root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address']) ## ipv4-address.h (module 'network'): ns3::Ipv4Mask [class] module.add_class('Ipv4Mask', import_from_module='ns.network') ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class] module.add_class('Ipv6Address', import_from_module='ns.network') ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class] root_module['ns3::Ipv6Address'].implicitly_converts_to(root_module['ns3::Address']) ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix [class] module.add_class('Ipv6Prefix', import_from_module='ns.network') ## mac48-address.h (module 'network'): ns3::Mac48Address [class] module.add_class('Mac48Address', import_from_module='ns.network') ## mac48-address.h (module 'network'): ns3::Mac48Address [class] root_module['ns3::Mac48Address'].implicitly_converts_to(root_module['ns3::Address']) ## net-device-container.h (module 'network'): ns3::NetDeviceContainer [class] module.add_class('NetDeviceContainer', import_from_module='ns.network') ## node-container.h (module 'network'): ns3::NodeContainer [class] module.add_class('NodeContainer', import_from_module='ns.network') ## object-base.h (module 'core'): ns3::ObjectBase [class] module.add_class('ObjectBase', allow_subclassing=True, import_from_module='ns.core') ## object.h (module 'core'): ns3::ObjectDeleter [struct] module.add_class('ObjectDeleter', import_from_module='ns.core') ## object-factory.h (module 'core'): ns3::ObjectFactory [class] module.add_class('ObjectFactory', import_from_module='ns.core') ## packet-metadata.h (module 'network'): ns3::PacketMetadata [class] module.add_class('PacketMetadata', import_from_module='ns.network') ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [struct] module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata']) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [enumeration] module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network') ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class] module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata']) ## packet.h (module 'network'): ns3::PacketTagIterator [class] module.add_class('PacketTagIterator', import_from_module='ns.network') ## packet.h (module 'network'): ns3::PacketTagIterator::Item [class] module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator']) ## packet-tag-list.h (module 'network'): ns3::PacketTagList [class] module.add_class('PacketTagList', import_from_module='ns.network') ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct] module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList']) ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData_e [enumeration] module.add_enum('TagData_e', ['MAX_SIZE'], outer_class=root_module['ns3::PacketTagList::TagData'], import_from_module='ns.network') ## pcap-file.h (module 'network'): ns3::PcapFile [class] module.add_class('PcapFile', import_from_module='ns.network') ## trace-helper.h (module 'network'): ns3::PcapHelper [class] module.add_class('PcapHelper', import_from_module='ns.network') ## trace-helper.h (module 'network'): ns3::PcapHelper [enumeration] module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_LINUX_SSL', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO', 'DLT_IEEE802_15_4', 'DLT_NETLINK'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network') ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class] module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network') ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simulator.h (module 'core'): ns3::Simulator [class] module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core') ## tag.h (module 'network'): ns3::Tag [class] module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase']) ## tag-buffer.h (module 'network'): ns3::TagBuffer [class] module.add_class('TagBuffer', import_from_module='ns.network') ## nstime.h (module 'core'): ns3::TimeWithUnit [class] module.add_class('TimeWithUnit', import_from_module='ns.core') ## type-id.h (module 'core'): ns3::TypeId [class] module.add_class('TypeId', import_from_module='ns.core') ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration] module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core') ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation [struct] module.add_class('AttributeInformation', import_from_module='ns.core', outer_class=root_module['ns3::TypeId']) ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation [struct] module.add_class('TraceSourceInformation', import_from_module='ns.core', outer_class=root_module['ns3::TypeId']) ## empty.h (module 'core'): ns3::empty [class] module.add_class('empty', import_from_module='ns.core') ## int64x64-double.h (module 'core'): ns3::int64x64_t [class] module.add_class('int64x64_t', import_from_module='ns.core') ## int64x64-double.h (module 'core'): ns3::int64x64_t::impl_type [enumeration] module.add_enum('impl_type', ['int128_impl', 'cairo_impl', 'ld_impl'], outer_class=root_module['ns3::int64x64_t'], import_from_module='ns.core') ## chunk.h (module 'network'): ns3::Chunk [class] module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase']) ## csma-helper.h (module 'csma'): ns3::CsmaHelper [class] module.add_class('CsmaHelper', parent=[root_module['ns3::PcapHelperForDevice'], root_module['ns3::AsciiTraceHelperForDevice']]) ## header.h (module 'network'): ns3::Header [class] module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk']) ## object.h (module 'core'): ns3::Object [class] module.add_class('Object', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >']) ## object.h (module 'core'): ns3::Object::AggregateIterator [class] module.add_class('AggregateIterator', import_from_module='ns.core', outer_class=root_module['ns3::Object']) ## pcap-file-wrapper.h (module 'network'): ns3::PcapFileWrapper [class] module.add_class('PcapFileWrapper', import_from_module='ns.network', parent=root_module['ns3::Object']) ## queue.h (module 'network'): ns3::Queue [class] module.add_class('Queue', import_from_module='ns.network', parent=root_module['ns3::Object']) ## queue.h (module 'network'): ns3::Queue::QueueMode [enumeration] module.add_enum('QueueMode', ['QUEUE_MODE_PACKETS', 'QUEUE_MODE_BYTES'], outer_class=root_module['ns3::Queue'], import_from_module='ns.network') ## random-variable-stream.h (module 'core'): ns3::RandomVariableStream [class] module.add_class('RandomVariableStream', import_from_module='ns.core', parent=root_module['ns3::Object']) ## random-variable-stream.h (module 'core'): ns3::SequentialRandomVariable [class] module.add_class('SequentialRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeChecker', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeChecker>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeValue', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeValue>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::CallbackImplBase', 'ns3::empty', 'ns3::DefaultDeleter<ns3::CallbackImplBase>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::EventImpl', 'ns3::empty', 'ns3::DefaultDeleter<ns3::EventImpl>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter<ns3::Hash::Implementation> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Hash::Implementation', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Hash::Implementation>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::NixVector', 'ns3::empty', 'ns3::DefaultDeleter<ns3::NixVector>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::OutputStreamWrapper', 'ns3::empty', 'ns3::DefaultDeleter<ns3::OutputStreamWrapper>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > [class] module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount')) ## nstime.h (module 'core'): ns3::Time [class] module.add_class('Time', import_from_module='ns.core') ## nstime.h (module 'core'): ns3::Time::Unit [enumeration] module.add_enum('Unit', ['Y', 'D', 'H', 'MIN', 'S', 'MS', 'US', 'NS', 'PS', 'FS', 'LAST'], outer_class=root_module['ns3::Time'], import_from_module='ns.core') ## nstime.h (module 'core'): ns3::Time [class] root_module['ns3::Time'].implicitly_converts_to(root_module['ns3::int64x64_t']) ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor [class] module.add_class('TraceSourceAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >']) ## trailer.h (module 'network'): ns3::Trailer [class] module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk']) ## random-variable-stream.h (module 'core'): ns3::TriangularRandomVariable [class] module.add_class('TriangularRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## random-variable-stream.h (module 'core'): ns3::UniformRandomVariable [class] module.add_class('UniformRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## random-variable-stream.h (module 'core'): ns3::WeibullRandomVariable [class] module.add_class('WeibullRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## random-variable-stream.h (module 'core'): ns3::ZetaRandomVariable [class] module.add_class('ZetaRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## random-variable-stream.h (module 'core'): ns3::ZipfRandomVariable [class] module.add_class('ZipfRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## attribute.h (module 'core'): ns3::AttributeAccessor [class] module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >']) ## attribute.h (module 'core'): ns3::AttributeChecker [class] module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >']) ## attribute.h (module 'core'): ns3::AttributeValue [class] module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >']) ## callback.h (module 'core'): ns3::CallbackChecker [class] module.add_class('CallbackChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) ## callback.h (module 'core'): ns3::CallbackImplBase [class] module.add_class('CallbackImplBase', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >']) ## callback.h (module 'core'): ns3::CallbackValue [class] module.add_class('CallbackValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) ## channel.h (module 'network'): ns3::Channel [class] module.add_class('Channel', import_from_module='ns.network', parent=root_module['ns3::Object']) ## random-variable-stream.h (module 'core'): ns3::ConstantRandomVariable [class] module.add_class('ConstantRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## csma-channel.h (module 'csma'): ns3::CsmaChannel [class] module.add_class('CsmaChannel', parent=root_module['ns3::Channel']) ## data-rate.h (module 'network'): ns3::DataRateChecker [class] module.add_class('DataRateChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) ## data-rate.h (module 'network'): ns3::DataRateValue [class] module.add_class('DataRateValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) ## random-variable-stream.h (module 'core'): ns3::DeterministicRandomVariable [class] module.add_class('DeterministicRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## random-variable-stream.h (module 'core'): ns3::EmpiricalRandomVariable [class] module.add_class('EmpiricalRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## attribute.h (module 'core'): ns3::EmptyAttributeValue [class] module.add_class('EmptyAttributeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) ## random-variable-stream.h (module 'core'): ns3::ErlangRandomVariable [class] module.add_class('ErlangRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## error-model.h (module 'network'): ns3::ErrorModel [class] module.add_class('ErrorModel', import_from_module='ns.network', parent=root_module['ns3::Object']) ## event-impl.h (module 'core'): ns3::EventImpl [class] module.add_class('EventImpl', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >']) ## random-variable-stream.h (module 'core'): ns3::ExponentialRandomVariable [class] module.add_class('ExponentialRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## random-variable-stream.h (module 'core'): ns3::GammaRandomVariable [class] module.add_class('GammaRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker [class] module.add_class('Ipv4AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue [class] module.add_class('Ipv4AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker [class] module.add_class('Ipv4MaskChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue [class] module.add_class('Ipv4MaskValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker [class] module.add_class('Ipv6AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue [class] module.add_class('Ipv6AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker [class] module.add_class('Ipv6PrefixChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue [class] module.add_class('Ipv6PrefixValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) ## error-model.h (module 'network'): ns3::ListErrorModel [class] module.add_class('ListErrorModel', import_from_module='ns.network', parent=root_module['ns3::ErrorModel']) ## random-variable-stream.h (module 'core'): ns3::LogNormalRandomVariable [class] module.add_class('LogNormalRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker [class] module.add_class('Mac48AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) ## mac48-address.h (module 'network'): ns3::Mac48AddressValue [class] module.add_class('Mac48AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) ## net-device.h (module 'network'): ns3::NetDevice [class] module.add_class('NetDevice', import_from_module='ns.network', parent=root_module['ns3::Object']) ## net-device.h (module 'network'): ns3::NetDevice::PacketType [enumeration] module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'], import_from_module='ns.network') ## nix-vector.h (module 'network'): ns3::NixVector [class] module.add_class('NixVector', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >']) ## node.h (module 'network'): ns3::Node [class] module.add_class('Node', import_from_module='ns.network', parent=root_module['ns3::Object']) ## random-variable-stream.h (module 'core'): ns3::NormalRandomVariable [class] module.add_class('NormalRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker [class] module.add_class('ObjectFactoryChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) ## object-factory.h (module 'core'): ns3::ObjectFactoryValue [class] module.add_class('ObjectFactoryValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper [class] module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >']) ## packet.h (module 'network'): ns3::Packet [class] module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >']) ## random-variable-stream.h (module 'core'): ns3::ParetoRandomVariable [class] module.add_class('ParetoRandomVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariableStream']) ## error-model.h (module 'network'): ns3::RateErrorModel [class] module.add_class('RateErrorModel', import_from_module='ns.network', parent=root_module['ns3::ErrorModel']) ## error-model.h (module 'network'): ns3::RateErrorModel::ErrorUnit [enumeration] module.add_enum('ErrorUnit', ['ERROR_UNIT_BIT', 'ERROR_UNIT_BYTE', 'ERROR_UNIT_PACKET'], outer_class=root_module['ns3::RateErrorModel'], import_from_module='ns.network') ## error-model.h (module 'network'): ns3::ReceiveListErrorModel [class] module.add_class('ReceiveListErrorModel', import_from_module='ns.network', parent=root_module['ns3::ErrorModel']) ## nstime.h (module 'core'): ns3::TimeValue [class] module.add_class('TimeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) ## type-id.h (module 'core'): ns3::TypeIdChecker [class] module.add_class('TypeIdChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker']) ## type-id.h (module 'core'): ns3::TypeIdValue [class] module.add_class('TypeIdValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue']) ## address.h (module 'network'): ns3::AddressChecker [class] module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker']) ## address.h (module 'network'): ns3::AddressValue [class] module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue']) ## error-model.h (module 'network'): ns3::BurstErrorModel [class] module.add_class('BurstErrorModel', import_from_module='ns.network', parent=root_module['ns3::ErrorModel']) ## csma-net-device.h (module 'csma'): ns3::CsmaNetDevice [class] module.add_class('CsmaNetDevice', parent=root_module['ns3::NetDevice']) ## csma-net-device.h (module 'csma'): ns3::CsmaNetDevice::EncapsulationMode [enumeration] module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::CsmaNetDevice']) module.add_container('std::list< unsigned int >', 'unsigned int', container_type=u'list') ## Register a nested module for the namespace FatalImpl nested_module = module.add_cpp_namespace('FatalImpl') register_types_ns3_FatalImpl(nested_module) ## Register a nested module for the namespace Hash nested_module = module.add_cpp_namespace('Hash') register_types_ns3_Hash(nested_module) ## Register a nested module for the namespace TracedValueCallback nested_module = module.add_cpp_namespace('TracedValueCallback') register_types_ns3_TracedValueCallback(nested_module) def register_types_ns3_FatalImpl(module): root_module = module.get_root() def register_types_ns3_Hash(module): root_module = module.get_root() ## hash-function.h (module 'core'): ns3::Hash::Implementation [class] module.add_class('Implementation', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter<ns3::Hash::Implementation> >']) typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) *', u'ns3::Hash::Hash32Function_ptr') typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) **', u'ns3::Hash::Hash32Function_ptr*') typehandlers.add_type_alias(u'uint32_t ( * ) ( char const *, size_t ) *&', u'ns3::Hash::Hash32Function_ptr&') typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) *', u'ns3::Hash::Hash64Function_ptr') typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) **', u'ns3::Hash::Hash64Function_ptr*') typehandlers.add_type_alias(u'uint64_t ( * ) ( char const *, size_t ) *&', u'ns3::Hash::Hash64Function_ptr&') ## Register a nested module for the namespace Function nested_module = module.add_cpp_namespace('Function') register_types_ns3_Hash_Function(nested_module) def register_types_ns3_Hash_Function(module): root_module = module.get_root() ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a [class] module.add_class('Fnv1a', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32 [class] module.add_class('Hash32', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64 [class] module.add_class('Hash64', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3 [class] module.add_class('Murmur3', import_from_module='ns.core', parent=root_module['ns3::Hash::Implementation']) def register_types_ns3_TracedValueCallback(module): root_module = module.get_root() typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *', u'ns3::TracedValueCallback::Time') typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) **', u'ns3::TracedValueCallback::Time*') typehandlers.add_type_alias(u'void ( * ) ( ns3::Time, ns3::Time ) *&', u'ns3::TracedValueCallback::Time&') def register_methods(root_module): register_Ns3Address_methods(root_module, root_module['ns3::Address']) register_Ns3AsciiTraceHelper_methods(root_module, root_module['ns3::AsciiTraceHelper']) register_Ns3AsciiTraceHelperForDevice_methods(root_module, root_module['ns3::AsciiTraceHelperForDevice']) register_Ns3AttributeConstructionList_methods(root_module, root_module['ns3::AttributeConstructionList']) register_Ns3AttributeConstructionListItem_methods(root_module, root_module['ns3::AttributeConstructionList::Item']) register_Ns3Backoff_methods(root_module, root_module['ns3::Backoff']) register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer']) register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator']) register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator']) register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item']) register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList']) register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator']) register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item']) register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase']) register_Ns3CsmaDeviceRec_methods(root_module, root_module['ns3::CsmaDeviceRec']) register_Ns3DataRate_methods(root_module, root_module['ns3::DataRate']) register_Ns3EventId_methods(root_module, root_module['ns3::EventId']) register_Ns3Hasher_methods(root_module, root_module['ns3::Hasher']) register_Ns3Ipv4Address_methods(root_module, root_module['ns3::Ipv4Address']) register_Ns3Ipv4Mask_methods(root_module, root_module['ns3::Ipv4Mask']) register_Ns3Ipv6Address_methods(root_module, root_module['ns3::Ipv6Address']) register_Ns3Ipv6Prefix_methods(root_module, root_module['ns3::Ipv6Prefix']) register_Ns3Mac48Address_methods(root_module, root_module['ns3::Mac48Address']) register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer']) register_Ns3NodeContainer_methods(root_module, root_module['ns3::NodeContainer']) register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase']) register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter']) register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory']) register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata']) register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item']) register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator']) register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator']) register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item']) register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList']) register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData']) register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper']) register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice']) register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >']) register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator']) register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) register_Ns3TimeWithUnit_methods(root_module, root_module['ns3::TimeWithUnit']) register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId']) register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation']) register_Ns3TypeIdTraceSourceInformation_methods(root_module, root_module['ns3::TypeId::TraceSourceInformation']) register_Ns3Empty_methods(root_module, root_module['ns3::empty']) register_Ns3Int64x64_t_methods(root_module, root_module['ns3::int64x64_t']) register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk']) register_Ns3CsmaHelper_methods(root_module, root_module['ns3::CsmaHelper']) register_Ns3Header_methods(root_module, root_module['ns3::Header']) register_Ns3Object_methods(root_module, root_module['ns3::Object']) register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator']) register_Ns3PcapFileWrapper_methods(root_module, root_module['ns3::PcapFileWrapper']) register_Ns3Queue_methods(root_module, root_module['ns3::Queue']) register_Ns3RandomVariableStream_methods(root_module, root_module['ns3::RandomVariableStream']) register_Ns3SequentialRandomVariable_methods(root_module, root_module['ns3::SequentialRandomVariable']) register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >']) register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >']) register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >']) register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >']) register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >']) register_Ns3SimpleRefCount__Ns3HashImplementation_Ns3Empty_Ns3DefaultDeleter__lt__ns3HashImplementation__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter<ns3::Hash::Implementation> >']) register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >']) register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >']) register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >']) register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >']) register_Ns3Time_methods(root_module, root_module['ns3::Time']) register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor']) register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer']) register_Ns3TriangularRandomVariable_methods(root_module, root_module['ns3::TriangularRandomVariable']) register_Ns3UniformRandomVariable_methods(root_module, root_module['ns3::UniformRandomVariable']) register_Ns3WeibullRandomVariable_methods(root_module, root_module['ns3::WeibullRandomVariable']) register_Ns3ZetaRandomVariable_methods(root_module, root_module['ns3::ZetaRandomVariable']) register_Ns3ZipfRandomVariable_methods(root_module, root_module['ns3::ZipfRandomVariable']) register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor']) register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker']) register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue']) register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker']) register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase']) register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue']) register_Ns3Channel_methods(root_module, root_module['ns3::Channel']) register_Ns3ConstantRandomVariable_methods(root_module, root_module['ns3::ConstantRandomVariable']) register_Ns3CsmaChannel_methods(root_module, root_module['ns3::CsmaChannel']) register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateChecker']) register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateValue']) register_Ns3DeterministicRandomVariable_methods(root_module, root_module['ns3::DeterministicRandomVariable']) register_Ns3EmpiricalRandomVariable_methods(root_module, root_module['ns3::EmpiricalRandomVariable']) register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue']) register_Ns3ErlangRandomVariable_methods(root_module, root_module['ns3::ErlangRandomVariable']) register_Ns3ErrorModel_methods(root_module, root_module['ns3::ErrorModel']) register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl']) register_Ns3ExponentialRandomVariable_methods(root_module, root_module['ns3::ExponentialRandomVariable']) register_Ns3GammaRandomVariable_methods(root_module, root_module['ns3::GammaRandomVariable']) register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker']) register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue']) register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker']) register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue']) register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker']) register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue']) register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker']) register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue']) register_Ns3ListErrorModel_methods(root_module, root_module['ns3::ListErrorModel']) register_Ns3LogNormalRandomVariable_methods(root_module, root_module['ns3::LogNormalRandomVariable']) register_Ns3Mac48AddressChecker_methods(root_module, root_module['ns3::Mac48AddressChecker']) register_Ns3Mac48AddressValue_methods(root_module, root_module['ns3::Mac48AddressValue']) register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice']) register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector']) register_Ns3Node_methods(root_module, root_module['ns3::Node']) register_Ns3NormalRandomVariable_methods(root_module, root_module['ns3::NormalRandomVariable']) register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker']) register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue']) register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper']) register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) register_Ns3ParetoRandomVariable_methods(root_module, root_module['ns3::ParetoRandomVariable']) register_Ns3RateErrorModel_methods(root_module, root_module['ns3::RateErrorModel']) register_Ns3ReceiveListErrorModel_methods(root_module, root_module['ns3::ReceiveListErrorModel']) register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue']) register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker']) register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue']) register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker']) register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue']) register_Ns3BurstErrorModel_methods(root_module, root_module['ns3::BurstErrorModel']) register_Ns3CsmaNetDevice_methods(root_module, root_module['ns3::CsmaNetDevice']) register_Ns3HashImplementation_methods(root_module, root_module['ns3::Hash::Implementation']) register_Ns3HashFunctionFnv1a_methods(root_module, root_module['ns3::Hash::Function::Fnv1a']) register_Ns3HashFunctionHash32_methods(root_module, root_module['ns3::Hash::Function::Hash32']) register_Ns3HashFunctionHash64_methods(root_module, root_module['ns3::Hash::Function::Hash64']) register_Ns3HashFunctionMurmur3_methods(root_module, root_module['ns3::Hash::Function::Murmur3']) return def register_Ns3Address_methods(root_module, cls): cls.add_binary_comparison_operator('<') cls.add_binary_comparison_operator('!=') cls.add_output_stream_operator() cls.add_binary_comparison_operator('==') ## address.h (module 'network'): ns3::Address::Address() [constructor] cls.add_constructor([]) ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor] cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) ## address.h (module 'network'): ns3::Address::Address(ns3::Address const & address) [copy constructor] cls.add_constructor([param('ns3::Address const &', 'address')]) ## address.h (module 'network'): bool ns3::Address::CheckCompatible(uint8_t type, uint8_t len) const [member function] cls.add_method('CheckCompatible', 'bool', [param('uint8_t', 'type'), param('uint8_t', 'len')], is_const=True) ## address.h (module 'network'): uint32_t ns3::Address::CopyAllFrom(uint8_t const * buffer, uint8_t len) [member function] cls.add_method('CopyAllFrom', 'uint32_t', [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) ## address.h (module 'network'): uint32_t ns3::Address::CopyAllTo(uint8_t * buffer, uint8_t len) const [member function] cls.add_method('CopyAllTo', 'uint32_t', [param('uint8_t *', 'buffer'), param('uint8_t', 'len')], is_const=True) ## address.h (module 'network'): uint32_t ns3::Address::CopyFrom(uint8_t const * buffer, uint8_t len) [member function] cls.add_method('CopyFrom', 'uint32_t', [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')]) ## address.h (module 'network'): uint32_t ns3::Address::CopyTo(uint8_t * buffer) const [member function] cls.add_method('CopyTo', 'uint32_t', [param('uint8_t *', 'buffer')], is_const=True) ## address.h (module 'network'): void ns3::Address::Deserialize(ns3::TagBuffer buffer) [member function] cls.add_method('Deserialize', 'void', [param('ns3::TagBuffer', 'buffer')]) ## address.h (module 'network'): uint8_t ns3::Address::GetLength() const [member function] cls.add_method('GetLength', 'uint8_t', [], is_const=True) ## address.h (module 'network'): uint32_t ns3::Address::GetSerializedSize() const [member function] cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True) ## address.h (module 'network'): bool ns3::Address::IsInvalid() const [member function] cls.add_method('IsInvalid', 'bool', [], is_const=True) ## address.h (module 'network'): bool ns3::Address::IsMatchingType(uint8_t type) const [member function] cls.add_method('IsMatchingType', 'bool', [param('uint8_t', 'type')], is_const=True) ## address.h (module 'network'): static uint8_t ns3::Address::Register() [member function] cls.add_method('Register', 'uint8_t', [], is_static=True) ## address.h (module 'network'): void ns3::Address::Serialize(ns3::TagBuffer buffer) const [member function] cls.add_method('Serialize', 'void', [param('ns3::TagBuffer', 'buffer')], is_const=True) return def register_Ns3AsciiTraceHelper_methods(root_module, cls): ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper::AsciiTraceHelper(ns3::AsciiTraceHelper const & arg0) [copy constructor] cls.add_constructor([param('ns3::AsciiTraceHelper const &', 'arg0')]) ## trace-helper.h (module 'network'): ns3::AsciiTraceHelper::AsciiTraceHelper() [constructor] cls.add_constructor([]) ## trace-helper.h (module 'network'): ns3::Ptr<ns3::OutputStreamWrapper> ns3::AsciiTraceHelper::CreateFileStream(std::string filename, std::_Ios_Openmode filemode=std::ios_base::out) [member function] cls.add_method('CreateFileStream', 'ns3::Ptr< ns3::OutputStreamWrapper >', [param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode', default_value='std::ios_base::out')]) ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDequeueSinkWithContext(ns3::Ptr<ns3::OutputStreamWrapper> file, std::string context, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('DefaultDequeueSinkWithContext', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], is_static=True) ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDequeueSinkWithoutContext(ns3::Ptr<ns3::OutputStreamWrapper> file, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('DefaultDequeueSinkWithoutContext', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], is_static=True) ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDropSinkWithContext(ns3::Ptr<ns3::OutputStreamWrapper> file, std::string context, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('DefaultDropSinkWithContext', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], is_static=True) ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultDropSinkWithoutContext(ns3::Ptr<ns3::OutputStreamWrapper> file, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('DefaultDropSinkWithoutContext', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], is_static=True) ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultEnqueueSinkWithContext(ns3::Ptr<ns3::OutputStreamWrapper> file, std::string context, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('DefaultEnqueueSinkWithContext', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], is_static=True) ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultEnqueueSinkWithoutContext(ns3::Ptr<ns3::OutputStreamWrapper> file, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('DefaultEnqueueSinkWithoutContext', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], is_static=True) ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultReceiveSinkWithContext(ns3::Ptr<ns3::OutputStreamWrapper> file, std::string context, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('DefaultReceiveSinkWithContext', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('std::string', 'context'), param('ns3::Ptr< ns3::Packet const >', 'p')], is_static=True) ## trace-helper.h (module 'network'): static void ns3::AsciiTraceHelper::DefaultReceiveSinkWithoutContext(ns3::Ptr<ns3::OutputStreamWrapper> file, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('DefaultReceiveSinkWithoutContext', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'file'), param('ns3::Ptr< ns3::Packet const >', 'p')], is_static=True) ## trace-helper.h (module 'network'): std::string ns3::AsciiTraceHelper::GetFilenameFromDevice(std::string prefix, ns3::Ptr<ns3::NetDevice> device, bool useObjectNames=true) [member function] cls.add_method('GetFilenameFromDevice', 'std::string', [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'useObjectNames', default_value='true')]) ## trace-helper.h (module 'network'): std::string ns3::AsciiTraceHelper::GetFilenameFromInterfacePair(std::string prefix, ns3::Ptr<ns3::Object> object, uint32_t interface, bool useObjectNames=true) [member function] cls.add_method('GetFilenameFromInterfacePair', 'std::string', [param('std::string', 'prefix'), param('ns3::Ptr< ns3::Object >', 'object'), param('uint32_t', 'interface'), param('bool', 'useObjectNames', default_value='true')]) return def register_Ns3AsciiTraceHelperForDevice_methods(root_module, cls): ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice::AsciiTraceHelperForDevice(ns3::AsciiTraceHelperForDevice const & arg0) [copy constructor] cls.add_constructor([param('ns3::AsciiTraceHelperForDevice const &', 'arg0')]) ## trace-helper.h (module 'network'): ns3::AsciiTraceHelperForDevice::AsciiTraceHelperForDevice() [constructor] cls.add_constructor([]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool explicitFilename=false) [member function] cls.add_method('EnableAscii', 'void', [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename', default_value='false')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::Ptr<ns3::NetDevice> nd) [member function] cls.add_method('EnableAscii', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::Ptr< ns3::NetDevice >', 'nd')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, std::string ndName, bool explicitFilename=false) [member function] cls.add_method('EnableAscii', 'void', [param('std::string', 'prefix'), param('std::string', 'ndName'), param('bool', 'explicitFilename', default_value='false')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string ndName) [member function] cls.add_method('EnableAscii', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'ndName')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::NetDeviceContainer d) [member function] cls.add_method('EnableAscii', 'void', [param('std::string', 'prefix'), param('ns3::NetDeviceContainer', 'd')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::NetDeviceContainer d) [member function] cls.add_method('EnableAscii', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NetDeviceContainer', 'd')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, ns3::NodeContainer n) [member function] cls.add_method('EnableAscii', 'void', [param('std::string', 'prefix'), param('ns3::NodeContainer', 'n')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, ns3::NodeContainer n) [member function] cls.add_method('EnableAscii', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('ns3::NodeContainer', 'n')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool explicitFilename) [member function] cls.add_method('EnableAscii', 'void', [param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'explicitFilename')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAscii(ns3::Ptr<ns3::OutputStreamWrapper> stream, uint32_t nodeid, uint32_t deviceid) [member function] cls.add_method('EnableAscii', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiAll(std::string prefix) [member function] cls.add_method('EnableAsciiAll', 'void', [param('std::string', 'prefix')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiAll(ns3::Ptr<ns3::OutputStreamWrapper> stream) [member function] cls.add_method('EnableAsciiAll', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')]) ## trace-helper.h (module 'network'): void ns3::AsciiTraceHelperForDevice::EnableAsciiInternal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool explicitFilename) [member function] cls.add_method('EnableAsciiInternal', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')], is_pure_virtual=True, is_virtual=True) return def register_Ns3AttributeConstructionList_methods(root_module, cls): ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::AttributeConstructionList(ns3::AttributeConstructionList const & arg0) [copy constructor] cls.add_constructor([param('ns3::AttributeConstructionList const &', 'arg0')]) ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::AttributeConstructionList() [constructor] cls.add_constructor([]) ## attribute-construction-list.h (module 'core'): void ns3::AttributeConstructionList::Add(std::string name, ns3::Ptr<ns3::AttributeChecker const> checker, ns3::Ptr<ns3::AttributeValue> value) [member function] cls.add_method('Add', 'void', [param('std::string', 'name'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker'), param('ns3::Ptr< ns3::AttributeValue >', 'value')]) ## attribute-construction-list.h (module 'core'): std::_List_const_iterator<ns3::AttributeConstructionList::Item> ns3::AttributeConstructionList::Begin() const [member function] cls.add_method('Begin', 'std::_List_const_iterator< ns3::AttributeConstructionList::Item >', [], is_const=True) ## attribute-construction-list.h (module 'core'): std::_List_const_iterator<ns3::AttributeConstructionList::Item> ns3::AttributeConstructionList::End() const [member function] cls.add_method('End', 'std::_List_const_iterator< ns3::AttributeConstructionList::Item >', [], is_const=True) ## attribute-construction-list.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeConstructionList::Find(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('Find', 'ns3::Ptr< ns3::AttributeValue >', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True) return def register_Ns3AttributeConstructionListItem_methods(root_module, cls): ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::Item() [constructor] cls.add_constructor([]) ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::Item(ns3::AttributeConstructionList::Item const & arg0) [copy constructor] cls.add_constructor([param('ns3::AttributeConstructionList::Item const &', 'arg0')]) ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::checker [variable] cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False) ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::name [variable] cls.add_instance_attribute('name', 'std::string', is_const=False) ## attribute-construction-list.h (module 'core'): ns3::AttributeConstructionList::Item::value [variable] cls.add_instance_attribute('value', 'ns3::Ptr< ns3::AttributeValue >', is_const=False) return def register_Ns3Backoff_methods(root_module, cls): ## backoff.h (module 'csma'): ns3::Backoff::Backoff(ns3::Backoff const & arg0) [copy constructor] cls.add_constructor([param('ns3::Backoff const &', 'arg0')]) ## backoff.h (module 'csma'): ns3::Backoff::Backoff() [constructor] cls.add_constructor([]) ## backoff.h (module 'csma'): ns3::Backoff::Backoff(ns3::Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t ceiling, uint32_t maxRetries) [constructor] cls.add_constructor([param('ns3::Time', 'slotTime'), param('uint32_t', 'minSlots'), param('uint32_t', 'maxSlots'), param('uint32_t', 'ceiling'), param('uint32_t', 'maxRetries')]) ## backoff.h (module 'csma'): int64_t ns3::Backoff::AssignStreams(int64_t stream) [member function] cls.add_method('AssignStreams', 'int64_t', [param('int64_t', 'stream')]) ## backoff.h (module 'csma'): ns3::Time ns3::Backoff::GetBackoffTime() [member function] cls.add_method('GetBackoffTime', 'ns3::Time', []) ## backoff.h (module 'csma'): void ns3::Backoff::IncrNumRetries() [member function] cls.add_method('IncrNumRetries', 'void', []) ## backoff.h (module 'csma'): bool ns3::Backoff::MaxRetriesReached() [member function] cls.add_method('MaxRetriesReached', 'bool', []) ## backoff.h (module 'csma'): void ns3::Backoff::ResetBackoffTime() [member function] cls.add_method('ResetBackoffTime', 'void', []) ## backoff.h (module 'csma'): ns3::Backoff::m_ceiling [variable] cls.add_instance_attribute('m_ceiling', 'uint32_t', is_const=False) ## backoff.h (module 'csma'): ns3::Backoff::m_maxRetries [variable] cls.add_instance_attribute('m_maxRetries', 'uint32_t', is_const=False) ## backoff.h (module 'csma'): ns3::Backoff::m_maxSlots [variable] cls.add_instance_attribute('m_maxSlots', 'uint32_t', is_const=False) ## backoff.h (module 'csma'): ns3::Backoff::m_minSlots [variable] cls.add_instance_attribute('m_minSlots', 'uint32_t', is_const=False) ## backoff.h (module 'csma'): ns3::Backoff::m_slotTime [variable] cls.add_instance_attribute('m_slotTime', 'ns3::Time', is_const=False) return def register_Ns3Buffer_methods(root_module, cls): ## buffer.h (module 'network'): ns3::Buffer::Buffer() [constructor] cls.add_constructor([]) ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize) [constructor] cls.add_constructor([param('uint32_t', 'dataSize')]) ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize, bool initialize) [constructor] cls.add_constructor([param('uint32_t', 'dataSize'), param('bool', 'initialize')]) ## buffer.h (module 'network'): ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor] cls.add_constructor([param('ns3::Buffer const &', 'o')]) ## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(uint32_t end) [member function] cls.add_method('AddAtEnd', 'void', [param('uint32_t', 'end')]) ## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function] cls.add_method('AddAtEnd', 'void', [param('ns3::Buffer const &', 'o')]) ## buffer.h (module 'network'): void ns3::Buffer::AddAtStart(uint32_t start) [member function] cls.add_method('AddAtStart', 'void', [param('uint32_t', 'start')]) ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function] cls.add_method('Begin', 'ns3::Buffer::Iterator', [], is_const=True) ## buffer.h (module 'network'): void ns3::Buffer::CopyData(std::ostream * os, uint32_t size) const [member function] cls.add_method('CopyData', 'void', [param('std::ostream *', 'os'), param('uint32_t', 'size')], is_const=True) ## buffer.h (module 'network'): uint32_t ns3::Buffer::CopyData(uint8_t * buffer, uint32_t size) const [member function] cls.add_method('CopyData', 'uint32_t', [param('uint8_t *', 'buffer'), param('uint32_t', 'size')], is_const=True) ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function] cls.add_method('CreateFragment', 'ns3::Buffer', [param('uint32_t', 'start'), param('uint32_t', 'length')], is_const=True) ## buffer.h (module 'network'): uint32_t ns3::Buffer::Deserialize(uint8_t const * buffer, uint32_t size) [member function] cls.add_method('Deserialize', 'uint32_t', [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::End() const [member function] cls.add_method('End', 'ns3::Buffer::Iterator', [], is_const=True) ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSerializedSize() const [member function] cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True) ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSize() const [member function] cls.add_method('GetSize', 'uint32_t', [], is_const=True) ## buffer.h (module 'network'): uint8_t const * ns3::Buffer::PeekData() const [member function] cls.add_method('PeekData', 'uint8_t const *', [], is_const=True) ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function] cls.add_method('RemoveAtEnd', 'void', [param('uint32_t', 'end')]) ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtStart(uint32_t start) [member function] cls.add_method('RemoveAtStart', 'void', [param('uint32_t', 'start')]) ## buffer.h (module 'network'): uint32_t ns3::Buffer::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] cls.add_method('Serialize', 'uint32_t', [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], is_const=True) return def register_Ns3BufferIterator_methods(root_module, cls): ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor] cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')]) ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator() [constructor] cls.add_constructor([]) ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function] cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size')]) ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function] cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')]) ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function] cls.add_method('GetDistanceFrom', 'uint32_t', [param('ns3::Buffer::Iterator const &', 'o')], is_const=True) ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetSize() const [member function] cls.add_method('GetSize', 'uint32_t', [], is_const=True) ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsEnd() const [member function] cls.add_method('IsEnd', 'bool', [], is_const=True) ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsStart() const [member function] cls.add_method('IsStart', 'bool', [], is_const=True) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next() [member function] cls.add_method('Next', 'void', []) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next(uint32_t delta) [member function] cls.add_method('Next', 'void', [param('uint32_t', 'delta')]) ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function] cls.add_method('PeekU8', 'uint8_t', []) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function] cls.add_method('Prev', 'void', []) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function] cls.add_method('Prev', 'void', [param('uint32_t', 'delta')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function] cls.add_method('Read', 'void', [param('uint8_t *', 'buffer'), param('uint32_t', 'size')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function] cls.add_method('Read', 'void', [param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')]) ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function] cls.add_method('ReadLsbtohU16', 'uint16_t', []) ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function] cls.add_method('ReadLsbtohU32', 'uint32_t', []) ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function] cls.add_method('ReadLsbtohU64', 'uint64_t', []) ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function] cls.add_method('ReadNtohU16', 'uint16_t', []) ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function] cls.add_method('ReadNtohU32', 'uint32_t', []) ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function] cls.add_method('ReadNtohU64', 'uint64_t', []) ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadU16() [member function] cls.add_method('ReadU16', 'uint16_t', []) ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadU32() [member function] cls.add_method('ReadU32', 'uint32_t', []) ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadU64() [member function] cls.add_method('ReadU64', 'uint64_t', []) ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::ReadU8() [member function] cls.add_method('ReadU8', 'uint8_t', []) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function] cls.add_method('Write', 'void', [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function] cls.add_method('Write', 'void', [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function] cls.add_method('WriteHtolsbU16', 'void', [param('uint16_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function] cls.add_method('WriteHtolsbU32', 'void', [param('uint32_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function] cls.add_method('WriteHtolsbU64', 'void', [param('uint64_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function] cls.add_method('WriteHtonU16', 'void', [param('uint16_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function] cls.add_method('WriteHtonU32', 'void', [param('uint32_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function] cls.add_method('WriteHtonU64', 'void', [param('uint64_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function] cls.add_method('WriteU16', 'void', [param('uint16_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function] cls.add_method('WriteU32', 'void', [param('uint32_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function] cls.add_method('WriteU64', 'void', [param('uint64_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function] cls.add_method('WriteU8', 'void', [param('uint8_t', 'data')]) ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function] cls.add_method('WriteU8', 'void', [param('uint8_t', 'data'), param('uint32_t', 'len')]) return def register_Ns3ByteTagIterator_methods(root_module, cls): ## packet.h (module 'network'): ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor] cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')]) ## packet.h (module 'network'): bool ns3::ByteTagIterator::HasNext() const [member function] cls.add_method('HasNext', 'bool', [], is_const=True) ## packet.h (module 'network'): ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function] cls.add_method('Next', 'ns3::ByteTagIterator::Item', []) return def register_Ns3ByteTagIteratorItem_methods(root_module, cls): ## packet.h (module 'network'): ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor] cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')]) ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function] cls.add_method('GetEnd', 'uint32_t', [], is_const=True) ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function] cls.add_method('GetStart', 'uint32_t', [], is_const=True) ## packet.h (module 'network'): void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function] cls.add_method('GetTag', 'void', [param('ns3::Tag &', 'tag')], is_const=True) ## packet.h (module 'network'): ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_const=True) return def register_Ns3ByteTagList_methods(root_module, cls): ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList() [constructor] cls.add_constructor([]) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor] cls.add_constructor([param('ns3::ByteTagList const &', 'o')]) ## byte-tag-list.h (module 'network'): ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function] cls.add_method('Add', 'ns3::TagBuffer', [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')]) ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function] cls.add_method('Add', 'void', [param('ns3::ByteTagList const &', 'o')]) ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtEnd(int32_t appendOffset) [member function] cls.add_method('AddAtEnd', 'void', [param('int32_t', 'appendOffset')]) ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtStart(int32_t prependOffset) [member function] cls.add_method('AddAtStart', 'void', [param('int32_t', 'prependOffset')]) ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Adjust(int32_t adjustment) [member function] cls.add_method('Adjust', 'void', [param('int32_t', 'adjustment')]) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function] cls.add_method('Begin', 'ns3::ByteTagList::Iterator', [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')], is_const=True) ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::RemoveAll() [member function] cls.add_method('RemoveAll', 'void', []) return def register_Ns3ByteTagListIterator_methods(root_module, cls): ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor] cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')]) ## byte-tag-list.h (module 'network'): uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function] cls.add_method('GetOffsetStart', 'uint32_t', [], is_const=True) ## byte-tag-list.h (module 'network'): bool ns3::ByteTagList::Iterator::HasNext() const [member function] cls.add_method('HasNext', 'bool', [], is_const=True) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function] cls.add_method('Next', 'ns3::ByteTagList::Iterator::Item', []) return def register_Ns3ByteTagListIteratorItem_methods(root_module, cls): ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor] cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')]) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor] cls.add_constructor([param('ns3::TagBuffer', 'buf')]) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::buf [variable] cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::end [variable] cls.add_instance_attribute('end', 'int32_t', is_const=False) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::size [variable] cls.add_instance_attribute('size', 'uint32_t', is_const=False) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::start [variable] cls.add_instance_attribute('start', 'int32_t', is_const=False) ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::tid [variable] cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) return def register_Ns3CallbackBase_methods(root_module, cls): ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::CallbackBase const & arg0) [copy constructor] cls.add_constructor([param('ns3::CallbackBase const &', 'arg0')]) ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase() [constructor] cls.add_constructor([]) ## callback.h (module 'core'): ns3::Ptr<ns3::CallbackImplBase> ns3::CallbackBase::GetImpl() const [member function] cls.add_method('GetImpl', 'ns3::Ptr< ns3::CallbackImplBase >', [], is_const=True) ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor] cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')], visibility='protected') return def register_Ns3CsmaDeviceRec_methods(root_module, cls): ## csma-channel.h (module 'csma'): ns3::CsmaDeviceRec::CsmaDeviceRec() [constructor] cls.add_constructor([]) ## csma-channel.h (module 'csma'): ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::Ptr<ns3::CsmaNetDevice> device) [constructor] cls.add_constructor([param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')]) ## csma-channel.h (module 'csma'): ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::CsmaDeviceRec const & o) [copy constructor] cls.add_constructor([param('ns3::CsmaDeviceRec const &', 'o')]) ## csma-channel.h (module 'csma'): bool ns3::CsmaDeviceRec::IsActive() [member function] cls.add_method('IsActive', 'bool', []) ## csma-channel.h (module 'csma'): ns3::CsmaDeviceRec::active [variable] cls.add_instance_attribute('active', 'bool', is_const=False) ## csma-channel.h (module 'csma'): ns3::CsmaDeviceRec::devicePtr [variable] cls.add_instance_attribute('devicePtr', 'ns3::Ptr< ns3::CsmaNetDevice >', is_const=False) return def register_Ns3DataRate_methods(root_module, cls): cls.add_output_stream_operator() cls.add_binary_comparison_operator('!=') cls.add_binary_comparison_operator('<') cls.add_binary_comparison_operator('<=') cls.add_binary_comparison_operator('==') cls.add_binary_comparison_operator('>') cls.add_binary_comparison_operator('>=') ## data-rate.h (module 'network'): ns3::DataRate::DataRate(ns3::DataRate const & arg0) [copy constructor] cls.add_constructor([param('ns3::DataRate const &', 'arg0')]) ## data-rate.h (module 'network'): ns3::DataRate::DataRate() [constructor] cls.add_constructor([]) ## data-rate.h (module 'network'): ns3::DataRate::DataRate(uint64_t bps) [constructor] cls.add_constructor([param('uint64_t', 'bps')]) ## data-rate.h (module 'network'): ns3::DataRate::DataRate(std::string rate) [constructor] cls.add_constructor([param('std::string', 'rate')]) ## data-rate.h (module 'network'): ns3::Time ns3::DataRate::CalculateBitsTxTime(uint32_t bits) const [member function] cls.add_method('CalculateBitsTxTime', 'ns3::Time', [param('uint32_t', 'bits')], is_const=True) ## data-rate.h (module 'network'): ns3::Time ns3::DataRate::CalculateBytesTxTime(uint32_t bytes) const [member function] cls.add_method('CalculateBytesTxTime', 'ns3::Time', [param('uint32_t', 'bytes')], is_const=True) ## data-rate.h (module 'network'): double ns3::DataRate::CalculateTxTime(uint32_t bytes) const [member function] cls.add_method('CalculateTxTime', 'double', [param('uint32_t', 'bytes')], deprecated=True, is_const=True) ## data-rate.h (module 'network'): uint64_t ns3::DataRate::GetBitRate() const [member function] cls.add_method('GetBitRate', 'uint64_t', [], is_const=True) return def register_Ns3EventId_methods(root_module, cls): cls.add_binary_comparison_operator('!=') cls.add_binary_comparison_operator('==') ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor] cls.add_constructor([param('ns3::EventId const &', 'arg0')]) ## event-id.h (module 'core'): ns3::EventId::EventId() [constructor] cls.add_constructor([]) ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::Ptr<ns3::EventImpl> const & impl, uint64_t ts, uint32_t context, uint32_t uid) [constructor] cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'context'), param('uint32_t', 'uid')]) ## event-id.h (module 'core'): void ns3::EventId::Cancel() [member function] cls.add_method('Cancel', 'void', []) ## event-id.h (module 'core'): uint32_t ns3::EventId::GetContext() const [member function] cls.add_method('GetContext', 'uint32_t', [], is_const=True) ## event-id.h (module 'core'): uint64_t ns3::EventId::GetTs() const [member function] cls.add_method('GetTs', 'uint64_t', [], is_const=True) ## event-id.h (module 'core'): uint32_t ns3::EventId::GetUid() const [member function] cls.add_method('GetUid', 'uint32_t', [], is_const=True) ## event-id.h (module 'core'): bool ns3::EventId::IsExpired() const [member function] cls.add_method('IsExpired', 'bool', [], is_const=True) ## event-id.h (module 'core'): bool ns3::EventId::IsRunning() const [member function] cls.add_method('IsRunning', 'bool', [], is_const=True) ## event-id.h (module 'core'): ns3::EventImpl * ns3::EventId::PeekEventImpl() const [member function] cls.add_method('PeekEventImpl', 'ns3::EventImpl *', [], is_const=True) return def register_Ns3Hasher_methods(root_module, cls): ## hash.h (module 'core'): ns3::Hasher::Hasher(ns3::Hasher const & arg0) [copy constructor] cls.add_constructor([param('ns3::Hasher const &', 'arg0')]) ## hash.h (module 'core'): ns3::Hasher::Hasher() [constructor] cls.add_constructor([]) ## hash.h (module 'core'): ns3::Hasher::Hasher(ns3::Ptr<ns3::Hash::Implementation> hp) [constructor] cls.add_constructor([param('ns3::Ptr< ns3::Hash::Implementation >', 'hp')]) ## hash.h (module 'core'): uint32_t ns3::Hasher::GetHash32(char const * buffer, size_t const size) [member function] cls.add_method('GetHash32', 'uint32_t', [param('char const *', 'buffer'), param('size_t const', 'size')]) ## hash.h (module 'core'): uint32_t ns3::Hasher::GetHash32(std::string const s) [member function] cls.add_method('GetHash32', 'uint32_t', [param('std::string const', 's')]) ## hash.h (module 'core'): uint64_t ns3::Hasher::GetHash64(char const * buffer, size_t const size) [member function] cls.add_method('GetHash64', 'uint64_t', [param('char const *', 'buffer'), param('size_t const', 'size')]) ## hash.h (module 'core'): uint64_t ns3::Hasher::GetHash64(std::string const s) [member function] cls.add_method('GetHash64', 'uint64_t', [param('std::string const', 's')]) ## hash.h (module 'core'): ns3::Hasher & ns3::Hasher::clear() [member function] cls.add_method('clear', 'ns3::Hasher &', []) return def register_Ns3Ipv4Address_methods(root_module, cls): cls.add_binary_comparison_operator('<') cls.add_binary_comparison_operator('!=') cls.add_output_stream_operator() cls.add_binary_comparison_operator('==') ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')]) ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor] cls.add_constructor([]) ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(uint32_t address) [constructor] cls.add_constructor([param('uint32_t', 'address')]) ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(char const * address) [constructor] cls.add_constructor([param('char const *', 'address')]) ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::CombineMask(ns3::Ipv4Mask const & mask) const [member function] cls.add_method('CombineMask', 'ns3::Ipv4Address', [param('ns3::Ipv4Mask const &', 'mask')], is_const=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::ConvertFrom(ns3::Address const & address) [member function] cls.add_method('ConvertFrom', 'ns3::Ipv4Address', [param('ns3::Address const &', 'address')], is_static=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::Deserialize(uint8_t const * buf) [member function] cls.add_method('Deserialize', 'ns3::Ipv4Address', [param('uint8_t const *', 'buf')], is_static=True) ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function] cls.add_method('Get', 'uint32_t', [], is_const=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function] cls.add_method('GetAny', 'ns3::Ipv4Address', [], is_static=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetBroadcast() [member function] cls.add_method('GetBroadcast', 'ns3::Ipv4Address', [], is_static=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetLoopback() [member function] cls.add_method('GetLoopback', 'ns3::Ipv4Address', [], is_static=True) ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::GetSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function] cls.add_method('GetSubnetDirectedBroadcast', 'ns3::Ipv4Address', [param('ns3::Ipv4Mask const &', 'mask')], is_const=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetZero() [member function] cls.add_method('GetZero', 'ns3::Ipv4Address', [], is_static=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsBroadcast() const [member function] cls.add_method('IsBroadcast', 'bool', [], is_const=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsEqual(ns3::Ipv4Address const & other) const [member function] cls.add_method('IsEqual', 'bool', [param('ns3::Ipv4Address const &', 'other')], is_const=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsLocalMulticast() const [member function] cls.add_method('IsLocalMulticast', 'bool', [], is_const=True) ## ipv4-address.h (module 'network'): static bool ns3::Ipv4Address::IsMatchingType(ns3::Address const & address) [member function] cls.add_method('IsMatchingType', 'bool', [param('ns3::Address const &', 'address')], is_static=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsMulticast() const [member function] cls.add_method('IsMulticast', 'bool', [], is_const=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function] cls.add_method('IsSubnetDirectedBroadcast', 'bool', [param('ns3::Ipv4Mask const &', 'mask')], is_const=True) ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_const=True) ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Serialize(uint8_t * buf) const [member function] cls.add_method('Serialize', 'void', [param('uint8_t *', 'buf')], is_const=True) ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(uint32_t address) [member function] cls.add_method('Set', 'void', [param('uint32_t', 'address')]) ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(char const * address) [member function] cls.add_method('Set', 'void', [param('char const *', 'address')]) return def register_Ns3Ipv4Mask_methods(root_module, cls): cls.add_binary_comparison_operator('!=') cls.add_output_stream_operator() cls.add_binary_comparison_operator('==') ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(ns3::Ipv4Mask const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv4Mask const &', 'arg0')]) ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask() [constructor] cls.add_constructor([]) ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(uint32_t mask) [constructor] cls.add_constructor([param('uint32_t', 'mask')]) ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(char const * mask) [constructor] cls.add_constructor([param('char const *', 'mask')]) ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::Get() const [member function] cls.add_method('Get', 'uint32_t', [], is_const=True) ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::GetInverse() const [member function] cls.add_method('GetInverse', 'uint32_t', [], is_const=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetLoopback() [member function] cls.add_method('GetLoopback', 'ns3::Ipv4Mask', [], is_static=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetOnes() [member function] cls.add_method('GetOnes', 'ns3::Ipv4Mask', [], is_static=True) ## ipv4-address.h (module 'network'): uint16_t ns3::Ipv4Mask::GetPrefixLength() const [member function] cls.add_method('GetPrefixLength', 'uint16_t', [], is_const=True) ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetZero() [member function] cls.add_method('GetZero', 'ns3::Ipv4Mask', [], is_static=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsEqual(ns3::Ipv4Mask other) const [member function] cls.add_method('IsEqual', 'bool', [param('ns3::Ipv4Mask', 'other')], is_const=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsMatch(ns3::Ipv4Address a, ns3::Ipv4Address b) const [member function] cls.add_method('IsMatch', 'bool', [param('ns3::Ipv4Address', 'a'), param('ns3::Ipv4Address', 'b')], is_const=True) ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_const=True) ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Set(uint32_t mask) [member function] cls.add_method('Set', 'void', [param('uint32_t', 'mask')]) return def register_Ns3Ipv6Address_methods(root_module, cls): cls.add_binary_comparison_operator('<') cls.add_binary_comparison_operator('!=') cls.add_output_stream_operator() cls.add_binary_comparison_operator('==') ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor] cls.add_constructor([]) ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor] cls.add_constructor([param('char const *', 'address')]) ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(uint8_t * address) [constructor] cls.add_constructor([param('uint8_t *', 'address')]) ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const & addr) [copy constructor] cls.add_constructor([param('ns3::Ipv6Address const &', 'addr')]) ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const * addr) [constructor] cls.add_constructor([param('ns3::Ipv6Address const *', 'addr')]) ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6Address::CombinePrefix(ns3::Ipv6Prefix const & prefix) [member function] cls.add_method('CombinePrefix', 'ns3::Ipv6Address', [param('ns3::Ipv6Prefix const &', 'prefix')]) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::ConvertFrom(ns3::Address const & address) [member function] cls.add_method('ConvertFrom', 'ns3::Ipv6Address', [param('ns3::Address const &', 'address')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::Deserialize(uint8_t const * buf) [member function] cls.add_method('Deserialize', 'ns3::Ipv6Address', [param('uint8_t const *', 'buf')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllHostsMulticast() [member function] cls.add_method('GetAllHostsMulticast', 'ns3::Ipv6Address', [], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllNodesMulticast() [member function] cls.add_method('GetAllNodesMulticast', 'ns3::Ipv6Address', [], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllRoutersMulticast() [member function] cls.add_method('GetAllRoutersMulticast', 'ns3::Ipv6Address', [], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAny() [member function] cls.add_method('GetAny', 'ns3::Ipv6Address', [], is_static=True) ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::GetBytes(uint8_t * buf) const [member function] cls.add_method('GetBytes', 'void', [param('uint8_t *', 'buf')], is_const=True) ## ipv6-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv6Address::GetIpv4MappedAddress() const [member function] cls.add_method('GetIpv4MappedAddress', 'ns3::Ipv4Address', [], is_const=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetLoopback() [member function] cls.add_method('GetLoopback', 'ns3::Ipv6Address', [], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetOnes() [member function] cls.add_method('GetOnes', 'ns3::Ipv6Address', [], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetZero() [member function] cls.add_method('GetZero', 'ns3::Ipv6Address', [], is_static=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllHostsMulticast() const [member function] cls.add_method('IsAllHostsMulticast', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllNodesMulticast() const [member function] cls.add_method('IsAllNodesMulticast', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllRoutersMulticast() const [member function] cls.add_method('IsAllRoutersMulticast', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAny() const [member function] cls.add_method('IsAny', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsDocumentation() const [member function] cls.add_method('IsDocumentation', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsEqual(ns3::Ipv6Address const & other) const [member function] cls.add_method('IsEqual', 'bool', [param('ns3::Ipv6Address const &', 'other')], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsIpv4MappedAddress() const [member function] cls.add_method('IsIpv4MappedAddress', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocal() const [member function] cls.add_method('IsLinkLocal', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocalMulticast() const [member function] cls.add_method('IsLinkLocalMulticast', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLocalhost() const [member function] cls.add_method('IsLocalhost', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): static bool ns3::Ipv6Address::IsMatchingType(ns3::Address const & address) [member function] cls.add_method('IsMatchingType', 'bool', [param('ns3::Address const &', 'address')], is_static=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsMulticast() const [member function] cls.add_method('IsMulticast', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsSolicitedMulticast() const [member function] cls.add_method('IsSolicitedMulticast', 'bool', [], is_const=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac16Address addr, ns3::Ipv6Address prefix) [member function] cls.add_method('MakeAutoconfiguredAddress', 'ns3::Ipv6Address', [param('ns3::Mac16Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac48Address addr, ns3::Ipv6Address prefix) [member function] cls.add_method('MakeAutoconfiguredAddress', 'ns3::Ipv6Address', [param('ns3::Mac48Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac64Address addr, ns3::Ipv6Address prefix) [member function] cls.add_method('MakeAutoconfiguredAddress', 'ns3::Ipv6Address', [param('ns3::Mac64Address', 'addr'), param('ns3::Ipv6Address', 'prefix')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac16Address mac) [member function] cls.add_method('MakeAutoconfiguredLinkLocalAddress', 'ns3::Ipv6Address', [param('ns3::Mac16Address', 'mac')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac48Address mac) [member function] cls.add_method('MakeAutoconfiguredLinkLocalAddress', 'ns3::Ipv6Address', [param('ns3::Mac48Address', 'mac')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac64Address mac) [member function] cls.add_method('MakeAutoconfiguredLinkLocalAddress', 'ns3::Ipv6Address', [param('ns3::Mac64Address', 'mac')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeIpv4MappedAddress(ns3::Ipv4Address addr) [member function] cls.add_method('MakeIpv4MappedAddress', 'ns3::Ipv6Address', [param('ns3::Ipv4Address', 'addr')], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeSolicitedAddress(ns3::Ipv6Address addr) [member function] cls.add_method('MakeSolicitedAddress', 'ns3::Ipv6Address', [param('ns3::Ipv6Address', 'addr')], is_static=True) ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_const=True) ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Serialize(uint8_t * buf) const [member function] cls.add_method('Serialize', 'void', [param('uint8_t *', 'buf')], is_const=True) ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(char const * address) [member function] cls.add_method('Set', 'void', [param('char const *', 'address')]) ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(uint8_t * address) [member function] cls.add_method('Set', 'void', [param('uint8_t *', 'address')]) return def register_Ns3Ipv6Prefix_methods(root_module, cls): cls.add_binary_comparison_operator('!=') cls.add_output_stream_operator() cls.add_binary_comparison_operator('==') ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix() [constructor] cls.add_constructor([]) ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t * prefix) [constructor] cls.add_constructor([param('uint8_t *', 'prefix')]) ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(char const * prefix) [constructor] cls.add_constructor([param('char const *', 'prefix')]) ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t prefix) [constructor] cls.add_constructor([param('uint8_t', 'prefix')]) ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const & prefix) [copy constructor] cls.add_constructor([param('ns3::Ipv6Prefix const &', 'prefix')]) ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const * prefix) [constructor] cls.add_constructor([param('ns3::Ipv6Prefix const *', 'prefix')]) ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::GetBytes(uint8_t * buf) const [member function] cls.add_method('GetBytes', 'void', [param('uint8_t *', 'buf')], is_const=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetLoopback() [member function] cls.add_method('GetLoopback', 'ns3::Ipv6Prefix', [], is_static=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetOnes() [member function] cls.add_method('GetOnes', 'ns3::Ipv6Prefix', [], is_static=True) ## ipv6-address.h (module 'network'): uint8_t ns3::Ipv6Prefix::GetPrefixLength() const [member function] cls.add_method('GetPrefixLength', 'uint8_t', [], is_const=True) ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetZero() [member function] cls.add_method('GetZero', 'ns3::Ipv6Prefix', [], is_static=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsEqual(ns3::Ipv6Prefix const & other) const [member function] cls.add_method('IsEqual', 'bool', [param('ns3::Ipv6Prefix const &', 'other')], is_const=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsMatch(ns3::Ipv6Address a, ns3::Ipv6Address b) const [member function] cls.add_method('IsMatch', 'bool', [param('ns3::Ipv6Address', 'a'), param('ns3::Ipv6Address', 'b')], is_const=True) ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_const=True) return def register_Ns3Mac48Address_methods(root_module, cls): cls.add_binary_comparison_operator('<') cls.add_binary_comparison_operator('!=') cls.add_output_stream_operator() cls.add_binary_comparison_operator('==') ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(ns3::Mac48Address const & arg0) [copy constructor] cls.add_constructor([param('ns3::Mac48Address const &', 'arg0')]) ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address() [constructor] cls.add_constructor([]) ## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(char const * str) [constructor] cls.add_constructor([param('char const *', 'str')]) ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::Allocate() [member function] cls.add_method('Allocate', 'ns3::Mac48Address', [], is_static=True) ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::ConvertFrom(ns3::Address const & address) [member function] cls.add_method('ConvertFrom', 'ns3::Mac48Address', [param('ns3::Address const &', 'address')], is_static=True) ## mac48-address.h (module 'network'): void ns3::Mac48Address::CopyFrom(uint8_t const * buffer) [member function] cls.add_method('CopyFrom', 'void', [param('uint8_t const *', 'buffer')]) ## mac48-address.h (module 'network'): void ns3::Mac48Address::CopyTo(uint8_t * buffer) const [member function] cls.add_method('CopyTo', 'void', [param('uint8_t *', 'buffer')], is_const=True) ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetBroadcast() [member function] cls.add_method('GetBroadcast', 'ns3::Mac48Address', [], is_static=True) ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast(ns3::Ipv4Address address) [member function] cls.add_method('GetMulticast', 'ns3::Mac48Address', [param('ns3::Ipv4Address', 'address')], is_static=True) ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast(ns3::Ipv6Address address) [member function] cls.add_method('GetMulticast', 'ns3::Mac48Address', [param('ns3::Ipv6Address', 'address')], is_static=True) ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticast6Prefix() [member function] cls.add_method('GetMulticast6Prefix', 'ns3::Mac48Address', [], is_static=True) ## mac48-address.h (module 'network'): static ns3::Mac48Address ns3::Mac48Address::GetMulticastPrefix() [member function] cls.add_method('GetMulticastPrefix', 'ns3::Mac48Address', [], is_static=True) ## mac48-address.h (module 'network'): bool ns3::Mac48Address::IsBroadcast() const [member function] cls.add_method('IsBroadcast', 'bool', [], is_const=True) ## mac48-address.h (module 'network'): bool ns3::Mac48Address::IsGroup() const [member function] cls.add_method('IsGroup', 'bool', [], is_const=True) ## mac48-address.h (module 'network'): static bool ns3::Mac48Address::IsMatchingType(ns3::Address const & address) [member function] cls.add_method('IsMatchingType', 'bool', [param('ns3::Address const &', 'address')], is_static=True) return def register_Ns3NetDeviceContainer_methods(root_module, cls): ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & arg0) [copy constructor] cls.add_constructor([param('ns3::NetDeviceContainer const &', 'arg0')]) ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer() [constructor] cls.add_constructor([]) ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::Ptr<ns3::NetDevice> dev) [constructor] cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev')]) ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(std::string devName) [constructor] cls.add_constructor([param('std::string', 'devName')]) ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & a, ns3::NetDeviceContainer const & b) [constructor] cls.add_constructor([param('ns3::NetDeviceContainer const &', 'a'), param('ns3::NetDeviceContainer const &', 'b')]) ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::NetDeviceContainer other) [member function] cls.add_method('Add', 'void', [param('ns3::NetDeviceContainer', 'other')]) ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::Ptr<ns3::NetDevice> device) [member function] cls.add_method('Add', 'void', [param('ns3::Ptr< ns3::NetDevice >', 'device')]) ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(std::string deviceName) [member function] cls.add_method('Add', 'void', [param('std::string', 'deviceName')]) ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::Begin() const [member function] cls.add_method('Begin', '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >', [], is_const=True) ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::End() const [member function] cls.add_method('End', '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >', [], is_const=True) ## net-device-container.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::NetDeviceContainer::Get(uint32_t i) const [member function] cls.add_method('Get', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'i')], is_const=True) ## net-device-container.h (module 'network'): uint32_t ns3::NetDeviceContainer::GetN() const [member function] cls.add_method('GetN', 'uint32_t', [], is_const=True) return def register_Ns3NodeContainer_methods(root_module, cls): ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & arg0) [copy constructor] cls.add_constructor([param('ns3::NodeContainer const &', 'arg0')]) ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer() [constructor] cls.add_constructor([]) ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::Ptr<ns3::Node> node) [constructor] cls.add_constructor([param('ns3::Ptr< ns3::Node >', 'node')]) ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(std::string nodeName) [constructor] cls.add_constructor([param('std::string', 'nodeName')]) ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b) [constructor] cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b')]) ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c) [constructor] cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c')]) ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d) [constructor] cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd')]) ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d, ns3::NodeContainer const & e) [constructor] cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd'), param('ns3::NodeContainer const &', 'e')]) ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::NodeContainer other) [member function] cls.add_method('Add', 'void', [param('ns3::NodeContainer', 'other')]) ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::Ptr<ns3::Node> node) [member function] cls.add_method('Add', 'void', [param('ns3::Ptr< ns3::Node >', 'node')]) ## node-container.h (module 'network'): void ns3::NodeContainer::Add(std::string nodeName) [member function] cls.add_method('Add', 'void', [param('std::string', 'nodeName')]) ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::Begin() const [member function] cls.add_method('Begin', '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >', [], is_const=True) ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n) [member function] cls.add_method('Create', 'void', [param('uint32_t', 'n')]) ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n, uint32_t systemId) [member function] cls.add_method('Create', 'void', [param('uint32_t', 'n'), param('uint32_t', 'systemId')]) ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::End() const [member function] cls.add_method('End', '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >', [], is_const=True) ## node-container.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NodeContainer::Get(uint32_t i) const [member function] cls.add_method('Get', 'ns3::Ptr< ns3::Node >', [param('uint32_t', 'i')], is_const=True) ## node-container.h (module 'network'): static ns3::NodeContainer ns3::NodeContainer::GetGlobal() [member function] cls.add_method('GetGlobal', 'ns3::NodeContainer', [], is_static=True) ## node-container.h (module 'network'): uint32_t ns3::NodeContainer::GetN() const [member function] cls.add_method('GetN', 'uint32_t', [], is_const=True) return def register_Ns3ObjectBase_methods(root_module, cls): ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase() [constructor] cls.add_constructor([]) ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase(ns3::ObjectBase const & arg0) [copy constructor] cls.add_constructor([param('ns3::ObjectBase const &', 'arg0')]) ## object-base.h (module 'core'): void ns3::ObjectBase::GetAttribute(std::string name, ns3::AttributeValue & value) const [member function] cls.add_method('GetAttribute', 'void', [param('std::string', 'name'), param('ns3::AttributeValue &', 'value')], is_const=True) ## object-base.h (module 'core'): bool ns3::ObjectBase::GetAttributeFailSafe(std::string name, ns3::AttributeValue & value) const [member function] cls.add_method('GetAttributeFailSafe', 'bool', [param('std::string', 'name'), param('ns3::AttributeValue &', 'value')], is_const=True) ## object-base.h (module 'core'): ns3::TypeId ns3::ObjectBase::GetInstanceTypeId() const [member function] cls.add_method('GetInstanceTypeId', 'ns3::TypeId', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## object-base.h (module 'core'): static ns3::TypeId ns3::ObjectBase::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## object-base.h (module 'core'): void ns3::ObjectBase::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function] cls.add_method('SetAttribute', 'void', [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) ## object-base.h (module 'core'): bool ns3::ObjectBase::SetAttributeFailSafe(std::string name, ns3::AttributeValue const & value) [member function] cls.add_method('SetAttributeFailSafe', 'bool', [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function] cls.add_method('TraceConnect', 'bool', [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')]) ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function] cls.add_method('TraceConnectWithoutContext', 'bool', [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')]) ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function] cls.add_method('TraceDisconnect', 'bool', [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')]) ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function] cls.add_method('TraceDisconnectWithoutContext', 'bool', [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')]) ## object-base.h (module 'core'): void ns3::ObjectBase::ConstructSelf(ns3::AttributeConstructionList const & attributes) [member function] cls.add_method('ConstructSelf', 'void', [param('ns3::AttributeConstructionList const &', 'attributes')], visibility='protected') ## object-base.h (module 'core'): void ns3::ObjectBase::NotifyConstructionCompleted() [member function] cls.add_method('NotifyConstructionCompleted', 'void', [], visibility='protected', is_virtual=True) return def register_Ns3ObjectDeleter_methods(root_module, cls): ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter() [constructor] cls.add_constructor([]) ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter(ns3::ObjectDeleter const & arg0) [copy constructor] cls.add_constructor([param('ns3::ObjectDeleter const &', 'arg0')]) ## object.h (module 'core'): static void ns3::ObjectDeleter::Delete(ns3::Object * object) [member function] cls.add_method('Delete', 'void', [param('ns3::Object *', 'object')], is_static=True) return def register_Ns3ObjectFactory_methods(root_module, cls): cls.add_output_stream_operator() ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(ns3::ObjectFactory const & arg0) [copy constructor] cls.add_constructor([param('ns3::ObjectFactory const &', 'arg0')]) ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory() [constructor] cls.add_constructor([]) ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(std::string typeId) [constructor] cls.add_constructor([param('std::string', 'typeId')]) ## object-factory.h (module 'core'): ns3::Ptr<ns3::Object> ns3::ObjectFactory::Create() const [member function] cls.add_method('Create', 'ns3::Ptr< ns3::Object >', [], is_const=True) ## object-factory.h (module 'core'): ns3::TypeId ns3::ObjectFactory::GetTypeId() const [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_const=True) ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(std::string name, ns3::AttributeValue const & value) [member function] cls.add_method('Set', 'void', [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')]) ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(ns3::TypeId tid) [member function] cls.add_method('SetTypeId', 'void', [param('ns3::TypeId', 'tid')]) ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(char const * tid) [member function] cls.add_method('SetTypeId', 'void', [param('char const *', 'tid')]) ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(std::string tid) [member function] cls.add_method('SetTypeId', 'void', [param('std::string', 'tid')]) return def register_Ns3PacketMetadata_methods(root_module, cls): ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(uint64_t uid, uint32_t size) [constructor] cls.add_constructor([param('uint64_t', 'uid'), param('uint32_t', 'size')]) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor] cls.add_constructor([param('ns3::PacketMetadata const &', 'o')]) ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function] cls.add_method('AddAtEnd', 'void', [param('ns3::PacketMetadata const &', 'o')]) ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function] cls.add_method('AddHeader', 'void', [param('ns3::Header const &', 'header'), param('uint32_t', 'size')]) ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function] cls.add_method('AddPaddingAtEnd', 'void', [param('uint32_t', 'end')]) ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function] cls.add_method('AddTrailer', 'void', [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')]) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function] cls.add_method('BeginItem', 'ns3::PacketMetadata::ItemIterator', [param('ns3::Buffer', 'buffer')], is_const=True) ## packet-metadata.h (module 'network'): ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function] cls.add_method('CreateFragment', 'ns3::PacketMetadata', [param('uint32_t', 'start'), param('uint32_t', 'end')], is_const=True) ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Deserialize(uint8_t const * buffer, uint32_t size) [member function] cls.add_method('Deserialize', 'uint32_t', [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::Enable() [member function] cls.add_method('Enable', 'void', [], is_static=True) ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::EnableChecking() [member function] cls.add_method('EnableChecking', 'void', [], is_static=True) ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function] cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True) ## packet-metadata.h (module 'network'): uint64_t ns3::PacketMetadata::GetUid() const [member function] cls.add_method('GetUid', 'uint64_t', [], is_const=True) ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function] cls.add_method('RemoveAtEnd', 'void', [param('uint32_t', 'end')]) ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function] cls.add_method('RemoveAtStart', 'void', [param('uint32_t', 'start')]) ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function] cls.add_method('RemoveHeader', 'void', [param('ns3::Header const &', 'header'), param('uint32_t', 'size')]) ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function] cls.add_method('RemoveTrailer', 'void', [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')]) ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] cls.add_method('Serialize', 'uint32_t', [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], is_const=True) return def register_Ns3PacketMetadataItem_methods(root_module, cls): ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item() [constructor] cls.add_constructor([]) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor] cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')]) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::current [variable] cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentSize [variable] cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromEnd [variable] cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromStart [variable] cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::isFragment [variable] cls.add_instance_attribute('isFragment', 'bool', is_const=False) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::tid [variable] cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) return def register_Ns3PacketMetadataItemIterator_methods(root_module, cls): ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor] cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')]) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor] cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')]) ## packet-metadata.h (module 'network'): bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function] cls.add_method('HasNext', 'bool', [], is_const=True) ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function] cls.add_method('Next', 'ns3::PacketMetadata::Item', []) return def register_Ns3PacketTagIterator_methods(root_module, cls): ## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor] cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')]) ## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function] cls.add_method('HasNext', 'bool', [], is_const=True) ## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function] cls.add_method('Next', 'ns3::PacketTagIterator::Item', []) return def register_Ns3PacketTagIteratorItem_methods(root_module, cls): ## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor] cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')]) ## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function] cls.add_method('GetTag', 'void', [param('ns3::Tag &', 'tag')], is_const=True) ## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_const=True) return def register_Ns3PacketTagList_methods(root_module, cls): ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor] cls.add_constructor([]) ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor] cls.add_constructor([param('ns3::PacketTagList const &', 'o')]) ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function] cls.add_method('Add', 'void', [param('ns3::Tag const &', 'tag')], is_const=True) ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function] cls.add_method('Head', 'ns3::PacketTagList::TagData const *', [], is_const=True) ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function] cls.add_method('Peek', 'bool', [param('ns3::Tag &', 'tag')], is_const=True) ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function] cls.add_method('Remove', 'bool', [param('ns3::Tag &', 'tag')]) ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function] cls.add_method('RemoveAll', 'void', []) ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Replace(ns3::Tag & tag) [member function] cls.add_method('Replace', 'bool', [param('ns3::Tag &', 'tag')]) return def register_Ns3PacketTagListTagData_methods(root_module, cls): ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor] cls.add_constructor([]) ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor] cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')]) ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable] cls.add_instance_attribute('count', 'uint32_t', is_const=False) ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable] cls.add_instance_attribute('data', 'uint8_t [ 21 ]', is_const=False) ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable] cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False) ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable] cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False) return def register_Ns3PcapFile_methods(root_module, cls): ## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor] cls.add_constructor([]) ## pcap-file.h (module 'network'): void ns3::PcapFile::Clear() [member function] cls.add_method('Clear', 'void', []) ## pcap-file.h (module 'network'): void ns3::PcapFile::Close() [member function] cls.add_method('Close', 'void', []) ## pcap-file.h (module 'network'): static bool ns3::PcapFile::Diff(std::string const & f1, std::string const & f2, uint32_t & sec, uint32_t & usec, uint32_t & packets, uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT) [member function] cls.add_method('Diff', 'bool', [param('std::string const &', 'f1'), param('std::string const &', 'f2'), param('uint32_t &', 'sec'), param('uint32_t &', 'usec'), param('uint32_t &', 'packets'), param('uint32_t', 'snapLen', default_value='ns3::PcapFile::SNAPLEN_DEFAULT')], is_static=True) ## pcap-file.h (module 'network'): bool ns3::PcapFile::Eof() const [member function] cls.add_method('Eof', 'bool', [], is_const=True) ## pcap-file.h (module 'network'): bool ns3::PcapFile::Fail() const [member function] cls.add_method('Fail', 'bool', [], is_const=True) ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetDataLinkType() [member function] cls.add_method('GetDataLinkType', 'uint32_t', []) ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetMagic() [member function] cls.add_method('GetMagic', 'uint32_t', []) ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetSigFigs() [member function] cls.add_method('GetSigFigs', 'uint32_t', []) ## pcap-file.h (module 'network'): uint32_t ns3::PcapFile::GetSnapLen() [member function] cls.add_method('GetSnapLen', 'uint32_t', []) ## pcap-file.h (module 'network'): bool ns3::PcapFile::GetSwapMode() [member function] cls.add_method('GetSwapMode', 'bool', []) ## pcap-file.h (module 'network'): int32_t ns3::PcapFile::GetTimeZoneOffset() [member function] cls.add_method('GetTimeZoneOffset', 'int32_t', []) ## pcap-file.h (module 'network'): uint16_t ns3::PcapFile::GetVersionMajor() [member function] cls.add_method('GetVersionMajor', 'uint16_t', []) ## pcap-file.h (module 'network'): uint16_t ns3::PcapFile::GetVersionMinor() [member function] cls.add_method('GetVersionMinor', 'uint16_t', []) ## pcap-file.h (module 'network'): void ns3::PcapFile::Init(uint32_t dataLinkType, uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT, int32_t timeZoneCorrection=ns3::PcapFile::ZONE_DEFAULT, bool swapMode=false) [member function] cls.add_method('Init', 'void', [param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='ns3::PcapFile::SNAPLEN_DEFAULT'), param('int32_t', 'timeZoneCorrection', default_value='ns3::PcapFile::ZONE_DEFAULT'), param('bool', 'swapMode', default_value='false')]) ## pcap-file.h (module 'network'): void ns3::PcapFile::Open(std::string const & filename, std::_Ios_Openmode mode) [member function] cls.add_method('Open', 'void', [param('std::string const &', 'filename'), param('std::_Ios_Openmode', 'mode')]) ## pcap-file.h (module 'network'): void ns3::PcapFile::Read(uint8_t * const data, uint32_t maxBytes, uint32_t & tsSec, uint32_t & tsUsec, uint32_t & inclLen, uint32_t & origLen, uint32_t & readLen) [member function] cls.add_method('Read', 'void', [param('uint8_t * const', 'data'), param('uint32_t', 'maxBytes'), param('uint32_t &', 'tsSec'), param('uint32_t &', 'tsUsec'), param('uint32_t &', 'inclLen'), param('uint32_t &', 'origLen'), param('uint32_t &', 'readLen')]) ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, uint8_t const * const data, uint32_t totalLen) [member function] cls.add_method('Write', 'void', [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('uint8_t const * const', 'data'), param('uint32_t', 'totalLen')]) ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('Write', 'void', [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('ns3::Ptr< ns3::Packet const >', 'p')]) ## pcap-file.h (module 'network'): void ns3::PcapFile::Write(uint32_t tsSec, uint32_t tsUsec, ns3::Header const & header, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('Write', 'void', [param('uint32_t', 'tsSec'), param('uint32_t', 'tsUsec'), param('ns3::Header const &', 'header'), param('ns3::Ptr< ns3::Packet const >', 'p')]) ## pcap-file.h (module 'network'): ns3::PcapFile::SNAPLEN_DEFAULT [variable] cls.add_static_attribute('SNAPLEN_DEFAULT', 'uint32_t const', is_const=True) ## pcap-file.h (module 'network'): ns3::PcapFile::ZONE_DEFAULT [variable] cls.add_static_attribute('ZONE_DEFAULT', 'int32_t const', is_const=True) return def register_Ns3PcapHelper_methods(root_module, cls): ## trace-helper.h (module 'network'): ns3::PcapHelper::PcapHelper(ns3::PcapHelper const & arg0) [copy constructor] cls.add_constructor([param('ns3::PcapHelper const &', 'arg0')]) ## trace-helper.h (module 'network'): ns3::PcapHelper::PcapHelper() [constructor] cls.add_constructor([]) ## trace-helper.h (module 'network'): ns3::Ptr<ns3::PcapFileWrapper> ns3::PcapHelper::CreateFile(std::string filename, std::_Ios_Openmode filemode, uint32_t dataLinkType, uint32_t snapLen=std::numeric_limits<unsigned int>::max(), int32_t tzCorrection=0) [member function] cls.add_method('CreateFile', 'ns3::Ptr< ns3::PcapFileWrapper >', [param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode'), param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='std::numeric_limits<unsigned int>::max()'), param('int32_t', 'tzCorrection', default_value='0')]) ## trace-helper.h (module 'network'): std::string ns3::PcapHelper::GetFilenameFromDevice(std::string prefix, ns3::Ptr<ns3::NetDevice> device, bool useObjectNames=true) [member function] cls.add_method('GetFilenameFromDevice', 'std::string', [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'useObjectNames', default_value='true')]) ## trace-helper.h (module 'network'): std::string ns3::PcapHelper::GetFilenameFromInterfacePair(std::string prefix, ns3::Ptr<ns3::Object> object, uint32_t interface, bool useObjectNames=true) [member function] cls.add_method('GetFilenameFromInterfacePair', 'std::string', [param('std::string', 'prefix'), param('ns3::Ptr< ns3::Object >', 'object'), param('uint32_t', 'interface'), param('bool', 'useObjectNames', default_value='true')]) return def register_Ns3PcapHelperForDevice_methods(root_module, cls): ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice::PcapHelperForDevice(ns3::PcapHelperForDevice const & arg0) [copy constructor] cls.add_constructor([param('ns3::PcapHelperForDevice const &', 'arg0')]) ## trace-helper.h (module 'network'): ns3::PcapHelperForDevice::PcapHelperForDevice() [constructor] cls.add_constructor([]) ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool promiscuous=false, bool explicitFilename=false) [member function] cls.add_method('EnablePcap', 'void', [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous', default_value='false'), param('bool', 'explicitFilename', default_value='false')]) ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, std::string ndName, bool promiscuous=false, bool explicitFilename=false) [member function] cls.add_method('EnablePcap', 'void', [param('std::string', 'prefix'), param('std::string', 'ndName'), param('bool', 'promiscuous', default_value='false'), param('bool', 'explicitFilename', default_value='false')]) ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::NetDeviceContainer d, bool promiscuous=false) [member function] cls.add_method('EnablePcap', 'void', [param('std::string', 'prefix'), param('ns3::NetDeviceContainer', 'd'), param('bool', 'promiscuous', default_value='false')]) ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, ns3::NodeContainer n, bool promiscuous=false) [member function] cls.add_method('EnablePcap', 'void', [param('std::string', 'prefix'), param('ns3::NodeContainer', 'n'), param('bool', 'promiscuous', default_value='false')]) ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcap(std::string prefix, uint32_t nodeid, uint32_t deviceid, bool promiscuous=false) [member function] cls.add_method('EnablePcap', 'void', [param('std::string', 'prefix'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid'), param('bool', 'promiscuous', default_value='false')]) ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcapAll(std::string prefix, bool promiscuous=false) [member function] cls.add_method('EnablePcapAll', 'void', [param('std::string', 'prefix'), param('bool', 'promiscuous', default_value='false')]) ## trace-helper.h (module 'network'): void ns3::PcapHelperForDevice::EnablePcapInternal(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool promiscuous, bool explicitFilename) [member function] cls.add_method('EnablePcapInternal', 'void', [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')], is_pure_virtual=True, is_virtual=True) return def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount(ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3Simulator_methods(root_module, cls): ## simulator.h (module 'core'): ns3::Simulator::Simulator(ns3::Simulator const & arg0) [copy constructor] cls.add_constructor([param('ns3::Simulator const &', 'arg0')]) ## simulator.h (module 'core'): static void ns3::Simulator::Cancel(ns3::EventId const & id) [member function] cls.add_method('Cancel', 'void', [param('ns3::EventId const &', 'id')], is_static=True) ## simulator.h (module 'core'): static void ns3::Simulator::Destroy() [member function] cls.add_method('Destroy', 'void', [], is_static=True) ## simulator.h (module 'core'): static uint32_t ns3::Simulator::GetContext() [member function] cls.add_method('GetContext', 'uint32_t', [], is_static=True) ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::GetDelayLeft(ns3::EventId const & id) [member function] cls.add_method('GetDelayLeft', 'ns3::Time', [param('ns3::EventId const &', 'id')], is_static=True) ## simulator.h (module 'core'): static ns3::Ptr<ns3::SimulatorImpl> ns3::Simulator::GetImplementation() [member function] cls.add_method('GetImplementation', 'ns3::Ptr< ns3::SimulatorImpl >', [], is_static=True) ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::GetMaximumSimulationTime() [member function] cls.add_method('GetMaximumSimulationTime', 'ns3::Time', [], is_static=True) ## simulator.h (module 'core'): static uint32_t ns3::Simulator::GetSystemId() [member function] cls.add_method('GetSystemId', 'uint32_t', [], is_static=True) ## simulator.h (module 'core'): static bool ns3::Simulator::IsExpired(ns3::EventId const & id) [member function] cls.add_method('IsExpired', 'bool', [param('ns3::EventId const &', 'id')], is_static=True) ## simulator.h (module 'core'): static bool ns3::Simulator::IsFinished() [member function] cls.add_method('IsFinished', 'bool', [], is_static=True) ## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function] cls.add_method('Now', 'ns3::Time', [], is_static=True) ## simulator.h (module 'core'): static void ns3::Simulator::Remove(ns3::EventId const & id) [member function] cls.add_method('Remove', 'void', [param('ns3::EventId const &', 'id')], is_static=True) ## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function] cls.add_method('SetImplementation', 'void', [param('ns3::Ptr< ns3::SimulatorImpl >', 'impl')], is_static=True) ## simulator.h (module 'core'): static void ns3::Simulator::SetScheduler(ns3::ObjectFactory schedulerFactory) [member function] cls.add_method('SetScheduler', 'void', [param('ns3::ObjectFactory', 'schedulerFactory')], is_static=True) ## simulator.h (module 'core'): static void ns3::Simulator::Stop() [member function] cls.add_method('Stop', 'void', [], is_static=True) ## simulator.h (module 'core'): static void ns3::Simulator::Stop(ns3::Time const & delay) [member function] cls.add_method('Stop', 'void', [param('ns3::Time const &', 'delay')], is_static=True) return def register_Ns3Tag_methods(root_module, cls): ## tag.h (module 'network'): ns3::Tag::Tag() [constructor] cls.add_constructor([]) ## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor] cls.add_constructor([param('ns3::Tag const &', 'arg0')]) ## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function] cls.add_method('Deserialize', 'void', [param('ns3::TagBuffer', 'i')], is_pure_virtual=True, is_virtual=True) ## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function] cls.add_method('GetSerializedSize', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_pure_virtual=True, is_const=True, is_virtual=True) ## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function] cls.add_method('Serialize', 'void', [param('ns3::TagBuffer', 'i')], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3TagBuffer_methods(root_module, cls): ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor] cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')]) ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor] cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')]) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function] cls.add_method('CopyFrom', 'void', [param('ns3::TagBuffer', 'o')]) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function] cls.add_method('Read', 'void', [param('uint8_t *', 'buffer'), param('uint32_t', 'size')]) ## tag-buffer.h (module 'network'): double ns3::TagBuffer::ReadDouble() [member function] cls.add_method('ReadDouble', 'double', []) ## tag-buffer.h (module 'network'): uint16_t ns3::TagBuffer::ReadU16() [member function] cls.add_method('ReadU16', 'uint16_t', []) ## tag-buffer.h (module 'network'): uint32_t ns3::TagBuffer::ReadU32() [member function] cls.add_method('ReadU32', 'uint32_t', []) ## tag-buffer.h (module 'network'): uint64_t ns3::TagBuffer::ReadU64() [member function] cls.add_method('ReadU64', 'uint64_t', []) ## tag-buffer.h (module 'network'): uint8_t ns3::TagBuffer::ReadU8() [member function] cls.add_method('ReadU8', 'uint8_t', []) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function] cls.add_method('TrimAtEnd', 'void', [param('uint32_t', 'trim')]) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function] cls.add_method('Write', 'void', [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteDouble(double v) [member function] cls.add_method('WriteDouble', 'void', [param('double', 'v')]) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU16(uint16_t data) [member function] cls.add_method('WriteU16', 'void', [param('uint16_t', 'data')]) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU32(uint32_t data) [member function] cls.add_method('WriteU32', 'void', [param('uint32_t', 'data')]) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU64(uint64_t v) [member function] cls.add_method('WriteU64', 'void', [param('uint64_t', 'v')]) ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU8(uint8_t v) [member function] cls.add_method('WriteU8', 'void', [param('uint8_t', 'v')]) return def register_Ns3TimeWithUnit_methods(root_module, cls): cls.add_output_stream_operator() ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::TimeWithUnit const & arg0) [copy constructor] cls.add_constructor([param('ns3::TimeWithUnit const &', 'arg0')]) ## nstime.h (module 'core'): ns3::TimeWithUnit::TimeWithUnit(ns3::Time const time, ns3::Time::Unit const unit) [constructor] cls.add_constructor([param('ns3::Time const', 'time'), param('ns3::Time::Unit const', 'unit')]) return def register_Ns3TypeId_methods(root_module, cls): cls.add_binary_comparison_operator('<') cls.add_binary_comparison_operator('!=') cls.add_output_stream_operator() cls.add_binary_comparison_operator('==') ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor] cls.add_constructor([param('char const *', 'name')]) ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor] cls.add_constructor([]) ## type-id.h (module 'core'): ns3::TypeId::TypeId(ns3::TypeId const & o) [copy constructor] cls.add_constructor([param('ns3::TypeId const &', 'o')]) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('AddAttribute', 'ns3::TypeId', [param('std::string', 'name'), param('std::string', 'help'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')]) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, uint32_t flags, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('AddAttribute', 'ns3::TypeId', [param('std::string', 'name'), param('std::string', 'help'), param('uint32_t', 'flags'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')]) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr<ns3::TraceSourceAccessor const> accessor) [member function] cls.add_method('AddTraceSource', 'ns3::TypeId', [param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor')], deprecated=True) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr<ns3::TraceSourceAccessor const> accessor, std::string callback) [member function] cls.add_method('AddTraceSource', 'ns3::TypeId', [param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor'), param('std::string', 'callback')]) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation ns3::TypeId::GetAttribute(uint32_t i) const [member function] cls.add_method('GetAttribute', 'ns3::TypeId::AttributeInformation', [param('uint32_t', 'i')], is_const=True) ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeFullName(uint32_t i) const [member function] cls.add_method('GetAttributeFullName', 'std::string', [param('uint32_t', 'i')], is_const=True) ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeN() const [member function] cls.add_method('GetAttributeN', 'uint32_t', [], is_const=True) ## type-id.h (module 'core'): ns3::Callback<ns3::ObjectBase*,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ns3::TypeId::GetConstructor() const [member function] cls.add_method('GetConstructor', 'ns3::Callback< ns3::ObjectBase *, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', [], is_const=True) ## type-id.h (module 'core'): std::string ns3::TypeId::GetGroupName() const [member function] cls.add_method('GetGroupName', 'std::string', [], is_const=True) ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetHash() const [member function] cls.add_method('GetHash', 'uint32_t', [], is_const=True) ## type-id.h (module 'core'): std::string ns3::TypeId::GetName() const [member function] cls.add_method('GetName', 'std::string', [], is_const=True) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::GetParent() const [member function] cls.add_method('GetParent', 'ns3::TypeId', [], is_const=True) ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::GetRegistered(uint32_t i) [member function] cls.add_method('GetRegistered', 'ns3::TypeId', [param('uint32_t', 'i')], is_static=True) ## type-id.h (module 'core'): static uint32_t ns3::TypeId::GetRegisteredN() [member function] cls.add_method('GetRegisteredN', 'uint32_t', [], is_static=True) ## type-id.h (module 'core'): std::size_t ns3::TypeId::GetSize() const [member function] cls.add_method('GetSize', 'std::size_t', [], is_const=True) ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation ns3::TypeId::GetTraceSource(uint32_t i) const [member function] cls.add_method('GetTraceSource', 'ns3::TypeId::TraceSourceInformation', [param('uint32_t', 'i')], is_const=True) ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetTraceSourceN() const [member function] cls.add_method('GetTraceSourceN', 'uint32_t', [], is_const=True) ## type-id.h (module 'core'): uint16_t ns3::TypeId::GetUid() const [member function] cls.add_method('GetUid', 'uint16_t', [], is_const=True) ## type-id.h (module 'core'): bool ns3::TypeId::HasConstructor() const [member function] cls.add_method('HasConstructor', 'bool', [], is_const=True) ## type-id.h (module 'core'): bool ns3::TypeId::HasParent() const [member function] cls.add_method('HasParent', 'bool', [], is_const=True) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::HideFromDocumentation() [member function] cls.add_method('HideFromDocumentation', 'ns3::TypeId', []) ## type-id.h (module 'core'): bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function] cls.add_method('IsChildOf', 'bool', [param('ns3::TypeId', 'other')], is_const=True) ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInformation * info) const [member function] cls.add_method('LookupAttributeByName', 'bool', [param('std::string', 'name'), param('ns3::TypeId::AttributeInformation *', 'info', transfer_ownership=False)], is_const=True) ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByHash(uint32_t hash) [member function] cls.add_method('LookupByHash', 'ns3::TypeId', [param('uint32_t', 'hash')], is_static=True) ## type-id.h (module 'core'): static bool ns3::TypeId::LookupByHashFailSafe(uint32_t hash, ns3::TypeId * tid) [member function] cls.add_method('LookupByHashFailSafe', 'bool', [param('uint32_t', 'hash'), param('ns3::TypeId *', 'tid')], is_static=True) ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function] cls.add_method('LookupByName', 'ns3::TypeId', [param('std::string', 'name')], is_static=True) ## type-id.h (module 'core'): ns3::Ptr<ns3::TraceSourceAccessor const> ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function] cls.add_method('LookupTraceSourceByName', 'ns3::Ptr< ns3::TraceSourceAccessor const >', [param('std::string', 'name')], is_const=True) ## type-id.h (module 'core'): bool ns3::TypeId::MustHideFromDocumentation() const [member function] cls.add_method('MustHideFromDocumentation', 'bool', [], is_const=True) ## type-id.h (module 'core'): bool ns3::TypeId::SetAttributeInitialValue(uint32_t i, ns3::Ptr<ns3::AttributeValue const> initialValue) [member function] cls.add_method('SetAttributeInitialValue', 'bool', [param('uint32_t', 'i'), param('ns3::Ptr< ns3::AttributeValue const >', 'initialValue')]) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetGroupName(std::string groupName) [member function] cls.add_method('SetGroupName', 'ns3::TypeId', [param('std::string', 'groupName')]) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetParent(ns3::TypeId tid) [member function] cls.add_method('SetParent', 'ns3::TypeId', [param('ns3::TypeId', 'tid')]) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetSize(std::size_t size) [member function] cls.add_method('SetSize', 'ns3::TypeId', [param('std::size_t', 'size')]) ## type-id.h (module 'core'): void ns3::TypeId::SetUid(uint16_t tid) [member function] cls.add_method('SetUid', 'void', [param('uint16_t', 'tid')]) return def register_Ns3TypeIdAttributeInformation_methods(root_module, cls): ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::AttributeInformation() [constructor] cls.add_constructor([]) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::AttributeInformation(ns3::TypeId::AttributeInformation const & arg0) [copy constructor] cls.add_constructor([param('ns3::TypeId::AttributeInformation const &', 'arg0')]) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::accessor [variable] cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::AttributeAccessor const >', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::checker [variable] cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::flags [variable] cls.add_instance_attribute('flags', 'uint32_t', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::help [variable] cls.add_instance_attribute('help', 'std::string', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::initialValue [variable] cls.add_instance_attribute('initialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::name [variable] cls.add_instance_attribute('name', 'std::string', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::AttributeInformation::originalInitialValue [variable] cls.add_instance_attribute('originalInitialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False) return def register_Ns3TypeIdTraceSourceInformation_methods(root_module, cls): ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::TraceSourceInformation() [constructor] cls.add_constructor([]) ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::TraceSourceInformation(ns3::TypeId::TraceSourceInformation const & arg0) [copy constructor] cls.add_constructor([param('ns3::TypeId::TraceSourceInformation const &', 'arg0')]) ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::accessor [variable] cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::TraceSourceAccessor const >', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::callback [variable] cls.add_instance_attribute('callback', 'std::string', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::help [variable] cls.add_instance_attribute('help', 'std::string', is_const=False) ## type-id.h (module 'core'): ns3::TypeId::TraceSourceInformation::name [variable] cls.add_instance_attribute('name', 'std::string', is_const=False) return def register_Ns3Empty_methods(root_module, cls): ## empty.h (module 'core'): ns3::empty::empty() [constructor] cls.add_constructor([]) ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor] cls.add_constructor([param('ns3::empty const &', 'arg0')]) return def register_Ns3Int64x64_t_methods(root_module, cls): cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) cls.add_binary_numeric_operator('+', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) cls.add_binary_numeric_operator('-', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) cls.add_unary_numeric_operator('-') cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', u'right')) cls.add_binary_comparison_operator('<') cls.add_binary_comparison_operator('>') cls.add_binary_comparison_operator('!=') cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', u'right')) cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', u'right')) cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', u'right')) cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', u'right')) cls.add_output_stream_operator() cls.add_binary_comparison_operator('<=') cls.add_binary_comparison_operator('==') cls.add_binary_comparison_operator('>=') ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t() [constructor] cls.add_constructor([]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(double v) [constructor] cls.add_constructor([param('double', 'v')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long double v) [constructor] cls.add_constructor([param('long double', 'v')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(int v) [constructor] cls.add_constructor([param('int', 'v')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long int v) [constructor] cls.add_constructor([param('long int', 'v')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long long int v) [constructor] cls.add_constructor([param('long long int', 'v')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(unsigned int v) [constructor] cls.add_constructor([param('unsigned int', 'v')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long unsigned int v) [constructor] cls.add_constructor([param('long unsigned int', 'v')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(long long unsigned int v) [constructor] cls.add_constructor([param('long long unsigned int', 'v')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(int64_t hi, uint64_t lo) [constructor] cls.add_constructor([param('int64_t', 'hi'), param('uint64_t', 'lo')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::int64x64_t(ns3::int64x64_t const & o) [copy constructor] cls.add_constructor([param('ns3::int64x64_t const &', 'o')]) ## int64x64-double.h (module 'core'): double ns3::int64x64_t::GetDouble() const [member function] cls.add_method('GetDouble', 'double', [], is_const=True) ## int64x64-double.h (module 'core'): int64_t ns3::int64x64_t::GetHigh() const [member function] cls.add_method('GetHigh', 'int64_t', [], is_const=True) ## int64x64-double.h (module 'core'): uint64_t ns3::int64x64_t::GetLow() const [member function] cls.add_method('GetLow', 'uint64_t', [], is_const=True) ## int64x64-double.h (module 'core'): static ns3::int64x64_t ns3::int64x64_t::Invert(uint64_t v) [member function] cls.add_method('Invert', 'ns3::int64x64_t', [param('uint64_t', 'v')], is_static=True) ## int64x64-double.h (module 'core'): void ns3::int64x64_t::MulByInvert(ns3::int64x64_t const & o) [member function] cls.add_method('MulByInvert', 'void', [param('ns3::int64x64_t const &', 'o')]) ## int64x64-double.h (module 'core'): ns3::int64x64_t::implementation [variable] cls.add_static_attribute('implementation', 'ns3::int64x64_t::impl_type const', is_const=True) return def register_Ns3Chunk_methods(root_module, cls): ## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor] cls.add_constructor([]) ## chunk.h (module 'network'): ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor] cls.add_constructor([param('ns3::Chunk const &', 'arg0')]) ## chunk.h (module 'network'): uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function] cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_pure_virtual=True, is_virtual=True) ## chunk.h (module 'network'): static ns3::TypeId ns3::Chunk::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## chunk.h (module 'network'): void ns3::Chunk::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3CsmaHelper_methods(root_module, cls): ## csma-helper.h (module 'csma'): ns3::CsmaHelper::CsmaHelper(ns3::CsmaHelper const & arg0) [copy constructor] cls.add_constructor([param('ns3::CsmaHelper const &', 'arg0')]) ## csma-helper.h (module 'csma'): ns3::CsmaHelper::CsmaHelper() [constructor] cls.add_constructor([]) ## csma-helper.h (module 'csma'): int64_t ns3::CsmaHelper::AssignStreams(ns3::NetDeviceContainer c, int64_t stream) [member function] cls.add_method('AssignStreams', 'int64_t', [param('ns3::NetDeviceContainer', 'c'), param('int64_t', 'stream')]) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::Ptr<ns3::Node> node) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('ns3::Ptr< ns3::Node >', 'node')], is_const=True) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(std::string name) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('std::string', 'name')], is_const=True) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::Ptr<ns3::Node> node, ns3::Ptr<ns3::CsmaChannel> channel) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('ns3::Ptr< ns3::Node >', 'node'), param('ns3::Ptr< ns3::CsmaChannel >', 'channel')], is_const=True) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::Ptr<ns3::Node> node, std::string channelName) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('ns3::Ptr< ns3::Node >', 'node'), param('std::string', 'channelName')], is_const=True) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(std::string nodeName, ns3::Ptr<ns3::CsmaChannel> channel) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('std::string', 'nodeName'), param('ns3::Ptr< ns3::CsmaChannel >', 'channel')], is_const=True) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(std::string nodeName, std::string channelName) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('std::string', 'nodeName'), param('std::string', 'channelName')], is_const=True) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::NodeContainer const & c) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('ns3::NodeContainer const &', 'c')], is_const=True) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::NodeContainer const & c, ns3::Ptr<ns3::CsmaChannel> channel) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('ns3::NodeContainer const &', 'c'), param('ns3::Ptr< ns3::CsmaChannel >', 'channel')], is_const=True) ## csma-helper.h (module 'csma'): ns3::NetDeviceContainer ns3::CsmaHelper::Install(ns3::NodeContainer const & c, std::string channelName) const [member function] cls.add_method('Install', 'ns3::NetDeviceContainer', [param('ns3::NodeContainer const &', 'c'), param('std::string', 'channelName')], is_const=True) ## csma-helper.h (module 'csma'): void ns3::CsmaHelper::SetChannelAttribute(std::string n1, ns3::AttributeValue const & v1) [member function] cls.add_method('SetChannelAttribute', 'void', [param('std::string', 'n1'), param('ns3::AttributeValue const &', 'v1')]) ## csma-helper.h (module 'csma'): void ns3::CsmaHelper::SetDeviceAttribute(std::string n1, ns3::AttributeValue const & v1) [member function] cls.add_method('SetDeviceAttribute', 'void', [param('std::string', 'n1'), param('ns3::AttributeValue const &', 'v1')]) ## csma-helper.h (module 'csma'): void ns3::CsmaHelper::SetQueue(std::string type, std::string n1="", ns3::AttributeValue const & v1=ns3::EmptyAttributeValue(), std::string n2="", ns3::AttributeValue const & v2=ns3::EmptyAttributeValue(), std::string n3="", ns3::AttributeValue const & v3=ns3::EmptyAttributeValue(), std::string n4="", ns3::AttributeValue const & v4=ns3::EmptyAttributeValue()) [member function] cls.add_method('SetQueue', 'void', [param('std::string', 'type'), param('std::string', 'n1', default_value='""'), param('ns3::AttributeValue const &', 'v1', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n2', default_value='""'), param('ns3::AttributeValue const &', 'v2', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n3', default_value='""'), param('ns3::AttributeValue const &', 'v3', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n4', default_value='""'), param('ns3::AttributeValue const &', 'v4', default_value='ns3::EmptyAttributeValue()')]) ## csma-helper.h (module 'csma'): void ns3::CsmaHelper::EnableAsciiInternal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool explicitFilename) [member function] cls.add_method('EnableAsciiInternal', 'void', [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')], visibility='private', is_virtual=True) ## csma-helper.h (module 'csma'): void ns3::CsmaHelper::EnablePcapInternal(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool promiscuous, bool explicitFilename) [member function] cls.add_method('EnablePcapInternal', 'void', [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')], visibility='private', is_virtual=True) return def register_Ns3Header_methods(root_module, cls): cls.add_output_stream_operator() ## header.h (module 'network'): ns3::Header::Header() [constructor] cls.add_constructor([]) ## header.h (module 'network'): ns3::Header::Header(ns3::Header const & arg0) [copy constructor] cls.add_constructor([param('ns3::Header const &', 'arg0')]) ## header.h (module 'network'): uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function] cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_pure_virtual=True, is_virtual=True) ## header.h (module 'network'): uint32_t ns3::Header::GetSerializedSize() const [member function] cls.add_method('GetSerializedSize', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## header.h (module 'network'): static ns3::TypeId ns3::Header::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## header.h (module 'network'): void ns3::Header::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_pure_virtual=True, is_const=True, is_virtual=True) ## header.h (module 'network'): void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function] cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3Object_methods(root_module, cls): ## object.h (module 'core'): ns3::Object::Object() [constructor] cls.add_constructor([]) ## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr<ns3::Object> other) [member function] cls.add_method('AggregateObject', 'void', [param('ns3::Ptr< ns3::Object >', 'other')]) ## object.h (module 'core'): void ns3::Object::Dispose() [member function] cls.add_method('Dispose', 'void', []) ## object.h (module 'core'): ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function] cls.add_method('GetAggregateIterator', 'ns3::Object::AggregateIterator', [], is_const=True) ## object.h (module 'core'): ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function] cls.add_method('GetInstanceTypeId', 'ns3::TypeId', [], is_const=True, is_virtual=True) ## object.h (module 'core'): static ns3::TypeId ns3::Object::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## object.h (module 'core'): void ns3::Object::Initialize() [member function] cls.add_method('Initialize', 'void', []) ## object.h (module 'core'): ns3::Object::Object(ns3::Object const & o) [copy constructor] cls.add_constructor([param('ns3::Object const &', 'o')], visibility='protected') ## object.h (module 'core'): void ns3::Object::DoDispose() [member function] cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True) ## object.h (module 'core'): void ns3::Object::DoInitialize() [member function] cls.add_method('DoInitialize', 'void', [], visibility='protected', is_virtual=True) ## object.h (module 'core'): void ns3::Object::NotifyNewAggregate() [member function] cls.add_method('NotifyNewAggregate', 'void', [], visibility='protected', is_virtual=True) return def register_Ns3ObjectAggregateIterator_methods(root_module, cls): ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor] cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')]) ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator() [constructor] cls.add_constructor([]) ## object.h (module 'core'): bool ns3::Object::AggregateIterator::HasNext() const [member function] cls.add_method('HasNext', 'bool', [], is_const=True) ## object.h (module 'core'): ns3::Ptr<ns3::Object const> ns3::Object::AggregateIterator::Next() [member function] cls.add_method('Next', 'ns3::Ptr< ns3::Object const >', []) return def register_Ns3PcapFileWrapper_methods(root_module, cls): ## pcap-file-wrapper.h (module 'network'): static ns3::TypeId ns3::PcapFileWrapper::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## pcap-file-wrapper.h (module 'network'): ns3::PcapFileWrapper::PcapFileWrapper() [constructor] cls.add_constructor([]) ## pcap-file-wrapper.h (module 'network'): bool ns3::PcapFileWrapper::Fail() const [member function] cls.add_method('Fail', 'bool', [], is_const=True) ## pcap-file-wrapper.h (module 'network'): bool ns3::PcapFileWrapper::Eof() const [member function] cls.add_method('Eof', 'bool', [], is_const=True) ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Clear() [member function] cls.add_method('Clear', 'void', []) ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Open(std::string const & filename, std::_Ios_Openmode mode) [member function] cls.add_method('Open', 'void', [param('std::string const &', 'filename'), param('std::_Ios_Openmode', 'mode')]) ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Close() [member function] cls.add_method('Close', 'void', []) ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Init(uint32_t dataLinkType, uint32_t snapLen=std::numeric_limits<unsigned int>::max(), int32_t tzCorrection=ns3::PcapFile::ZONE_DEFAULT) [member function] cls.add_method('Init', 'void', [param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLen', default_value='std::numeric_limits<unsigned int>::max()'), param('int32_t', 'tzCorrection', default_value='ns3::PcapFile::ZONE_DEFAULT')]) ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('Write', 'void', [param('ns3::Time', 't'), param('ns3::Ptr< ns3::Packet const >', 'p')]) ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, ns3::Header const & header, ns3::Ptr<const ns3::Packet> p) [member function] cls.add_method('Write', 'void', [param('ns3::Time', 't'), param('ns3::Header const &', 'header'), param('ns3::Ptr< ns3::Packet const >', 'p')]) ## pcap-file-wrapper.h (module 'network'): void ns3::PcapFileWrapper::Write(ns3::Time t, uint8_t const * buffer, uint32_t length) [member function] cls.add_method('Write', 'void', [param('ns3::Time', 't'), param('uint8_t const *', 'buffer'), param('uint32_t', 'length')]) ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetMagic() [member function] cls.add_method('GetMagic', 'uint32_t', []) ## pcap-file-wrapper.h (module 'network'): uint16_t ns3::PcapFileWrapper::GetVersionMajor() [member function] cls.add_method('GetVersionMajor', 'uint16_t', []) ## pcap-file-wrapper.h (module 'network'): uint16_t ns3::PcapFileWrapper::GetVersionMinor() [member function] cls.add_method('GetVersionMinor', 'uint16_t', []) ## pcap-file-wrapper.h (module 'network'): int32_t ns3::PcapFileWrapper::GetTimeZoneOffset() [member function] cls.add_method('GetTimeZoneOffset', 'int32_t', []) ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetSigFigs() [member function] cls.add_method('GetSigFigs', 'uint32_t', []) ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetSnapLen() [member function] cls.add_method('GetSnapLen', 'uint32_t', []) ## pcap-file-wrapper.h (module 'network'): uint32_t ns3::PcapFileWrapper::GetDataLinkType() [member function] cls.add_method('GetDataLinkType', 'uint32_t', []) return def register_Ns3Queue_methods(root_module, cls): ## queue.h (module 'network'): ns3::Queue::Queue(ns3::Queue const & arg0) [copy constructor] cls.add_constructor([param('ns3::Queue const &', 'arg0')]) ## queue.h (module 'network'): ns3::Queue::Queue() [constructor] cls.add_constructor([]) ## queue.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Queue::Dequeue() [member function] cls.add_method('Dequeue', 'ns3::Ptr< ns3::Packet >', []) ## queue.h (module 'network'): void ns3::Queue::DequeueAll() [member function] cls.add_method('DequeueAll', 'void', []) ## queue.h (module 'network'): bool ns3::Queue::Enqueue(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('Enqueue', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')]) ## queue.h (module 'network'): uint32_t ns3::Queue::GetNBytes() const [member function] cls.add_method('GetNBytes', 'uint32_t', [], is_const=True) ## queue.h (module 'network'): uint32_t ns3::Queue::GetNPackets() const [member function] cls.add_method('GetNPackets', 'uint32_t', [], is_const=True) ## queue.h (module 'network'): uint32_t ns3::Queue::GetTotalDroppedBytes() const [member function] cls.add_method('GetTotalDroppedBytes', 'uint32_t', [], is_const=True) ## queue.h (module 'network'): uint32_t ns3::Queue::GetTotalDroppedPackets() const [member function] cls.add_method('GetTotalDroppedPackets', 'uint32_t', [], is_const=True) ## queue.h (module 'network'): uint32_t ns3::Queue::GetTotalReceivedBytes() const [member function] cls.add_method('GetTotalReceivedBytes', 'uint32_t', [], is_const=True) ## queue.h (module 'network'): uint32_t ns3::Queue::GetTotalReceivedPackets() const [member function] cls.add_method('GetTotalReceivedPackets', 'uint32_t', [], is_const=True) ## queue.h (module 'network'): static ns3::TypeId ns3::Queue::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## queue.h (module 'network'): bool ns3::Queue::IsEmpty() const [member function] cls.add_method('IsEmpty', 'bool', [], is_const=True) ## queue.h (module 'network'): ns3::Ptr<const ns3::Packet> ns3::Queue::Peek() const [member function] cls.add_method('Peek', 'ns3::Ptr< ns3::Packet const >', [], is_const=True) ## queue.h (module 'network'): void ns3::Queue::ResetStatistics() [member function] cls.add_method('ResetStatistics', 'void', []) ## queue.h (module 'network'): void ns3::Queue::Drop(ns3::Ptr<ns3::Packet> packet) [member function] cls.add_method('Drop', 'void', [param('ns3::Ptr< ns3::Packet >', 'packet')], visibility='protected') ## queue.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Queue::DoDequeue() [member function] cls.add_method('DoDequeue', 'ns3::Ptr< ns3::Packet >', [], is_pure_virtual=True, visibility='private', is_virtual=True) ## queue.h (module 'network'): bool ns3::Queue::DoEnqueue(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoEnqueue', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], is_pure_virtual=True, visibility='private', is_virtual=True) ## queue.h (module 'network'): ns3::Ptr<const ns3::Packet> ns3::Queue::DoPeek() const [member function] cls.add_method('DoPeek', 'ns3::Ptr< ns3::Packet const >', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) return def register_Ns3RandomVariableStream_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::RandomVariableStream::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::RandomVariableStream::RandomVariableStream() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): void ns3::RandomVariableStream::SetStream(int64_t stream) [member function] cls.add_method('SetStream', 'void', [param('int64_t', 'stream')]) ## random-variable-stream.h (module 'core'): int64_t ns3::RandomVariableStream::GetStream() const [member function] cls.add_method('GetStream', 'int64_t', [], is_const=True) ## random-variable-stream.h (module 'core'): void ns3::RandomVariableStream::SetAntithetic(bool isAntithetic) [member function] cls.add_method('SetAntithetic', 'void', [param('bool', 'isAntithetic')]) ## random-variable-stream.h (module 'core'): bool ns3::RandomVariableStream::IsAntithetic() const [member function] cls.add_method('IsAntithetic', 'bool', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::RandomVariableStream::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_pure_virtual=True, is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::RandomVariableStream::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_pure_virtual=True, is_virtual=True) ## random-variable-stream.h (module 'core'): ns3::RngStream * ns3::RandomVariableStream::Peek() const [member function] cls.add_method('Peek', 'ns3::RngStream *', [], is_const=True, visibility='protected') return def register_Ns3SequentialRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::SequentialRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::SequentialRandomVariable::SequentialRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::SequentialRandomVariable::GetMin() const [member function] cls.add_method('GetMin', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::SequentialRandomVariable::GetMax() const [member function] cls.add_method('GetMax', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): ns3::Ptr<ns3::RandomVariableStream> ns3::SequentialRandomVariable::GetIncrement() const [member function] cls.add_method('GetIncrement', 'ns3::Ptr< ns3::RandomVariableStream >', [], is_const=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::SequentialRandomVariable::GetConsecutive() const [member function] cls.add_method('GetConsecutive', 'uint32_t', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::SequentialRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::SequentialRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter< ns3::AttributeAccessor > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter< ns3::AttributeChecker > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter< ns3::AttributeValue > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount(ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter< ns3::CallbackImplBase > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount(ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter< ns3::EventImpl > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3HashImplementation_Ns3Empty_Ns3DefaultDeleter__lt__ns3HashImplementation__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter<ns3::Hash::Implementation> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter<ns3::Hash::Implementation> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter<ns3::Hash::Implementation> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter< ns3::Hash::Implementation > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Hash::Implementation, ns3::empty, ns3::DefaultDeleter<ns3::Hash::Implementation> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount(ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter< ns3::NixVector > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >::SimpleRefCount(ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter< ns3::OutputStreamWrapper > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter< ns3::Packet > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, cls): ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >::SimpleRefCount() [constructor] cls.add_constructor([]) ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >::SimpleRefCount(ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > const & o) [copy constructor] cls.add_constructor([param('ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter< ns3::TraceSourceAccessor > > const &', 'o')]) ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >::Cleanup() [member function] cls.add_method('Cleanup', 'void', [], is_static=True) return def register_Ns3Time_methods(root_module, cls): cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right')) cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right')) cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', u'right')) cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('int64_t const &', u'right')) cls.add_binary_comparison_operator('<') cls.add_binary_comparison_operator('>') cls.add_binary_comparison_operator('!=') cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', u'right')) cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', u'right')) cls.add_output_stream_operator() cls.add_binary_comparison_operator('<=') cls.add_binary_comparison_operator('==') cls.add_binary_comparison_operator('>=') ## nstime.h (module 'core'): ns3::Time::Time() [constructor] cls.add_constructor([]) ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor] cls.add_constructor([param('ns3::Time const &', 'o')]) ## nstime.h (module 'core'): ns3::Time::Time(double v) [constructor] cls.add_constructor([param('double', 'v')]) ## nstime.h (module 'core'): ns3::Time::Time(int v) [constructor] cls.add_constructor([param('int', 'v')]) ## nstime.h (module 'core'): ns3::Time::Time(long int v) [constructor] cls.add_constructor([param('long int', 'v')]) ## nstime.h (module 'core'): ns3::Time::Time(long long int v) [constructor] cls.add_constructor([param('long long int', 'v')]) ## nstime.h (module 'core'): ns3::Time::Time(unsigned int v) [constructor] cls.add_constructor([param('unsigned int', 'v')]) ## nstime.h (module 'core'): ns3::Time::Time(long unsigned int v) [constructor] cls.add_constructor([param('long unsigned int', 'v')]) ## nstime.h (module 'core'): ns3::Time::Time(long long unsigned int v) [constructor] cls.add_constructor([param('long long unsigned int', 'v')]) ## nstime.h (module 'core'): ns3::Time::Time(ns3::int64x64_t const & v) [constructor] cls.add_constructor([param('ns3::int64x64_t const &', 'v')]) ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor] cls.add_constructor([param('std::string const &', 's')]) ## nstime.h (module 'core'): ns3::TimeWithUnit ns3::Time::As(ns3::Time::Unit const unit) const [member function] cls.add_method('As', 'ns3::TimeWithUnit', [param('ns3::Time::Unit const', 'unit')], is_const=True) ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function] cls.add_method('Compare', 'int', [param('ns3::Time const &', 'o')], is_const=True) ## nstime.h (module 'core'): static ns3::Time ns3::Time::From(ns3::int64x64_t const & value) [member function] cls.add_method('From', 'ns3::Time', [param('ns3::int64x64_t const &', 'value')], is_static=True) ## nstime.h (module 'core'): static ns3::Time ns3::Time::From(ns3::int64x64_t const & value, ns3::Time::Unit unit) [member function] cls.add_method('From', 'ns3::Time', [param('ns3::int64x64_t const &', 'value'), param('ns3::Time::Unit', 'unit')], is_static=True) ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromDouble(double value, ns3::Time::Unit unit) [member function] cls.add_method('FromDouble', 'ns3::Time', [param('double', 'value'), param('ns3::Time::Unit', 'unit')], is_static=True) ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromInteger(uint64_t value, ns3::Time::Unit unit) [member function] cls.add_method('FromInteger', 'ns3::Time', [param('uint64_t', 'value'), param('ns3::Time::Unit', 'unit')], is_static=True) ## nstime.h (module 'core'): double ns3::Time::GetDays() const [member function] cls.add_method('GetDays', 'double', [], is_const=True) ## nstime.h (module 'core'): double ns3::Time::GetDouble() const [member function] cls.add_method('GetDouble', 'double', [], is_const=True) ## nstime.h (module 'core'): int64_t ns3::Time::GetFemtoSeconds() const [member function] cls.add_method('GetFemtoSeconds', 'int64_t', [], is_const=True) ## nstime.h (module 'core'): double ns3::Time::GetHours() const [member function] cls.add_method('GetHours', 'double', [], is_const=True) ## nstime.h (module 'core'): int64_t ns3::Time::GetInteger() const [member function] cls.add_method('GetInteger', 'int64_t', [], is_const=True) ## nstime.h (module 'core'): int64_t ns3::Time::GetMicroSeconds() const [member function] cls.add_method('GetMicroSeconds', 'int64_t', [], is_const=True) ## nstime.h (module 'core'): int64_t ns3::Time::GetMilliSeconds() const [member function] cls.add_method('GetMilliSeconds', 'int64_t', [], is_const=True) ## nstime.h (module 'core'): double ns3::Time::GetMinutes() const [member function] cls.add_method('GetMinutes', 'double', [], is_const=True) ## nstime.h (module 'core'): int64_t ns3::Time::GetNanoSeconds() const [member function] cls.add_method('GetNanoSeconds', 'int64_t', [], is_const=True) ## nstime.h (module 'core'): int64_t ns3::Time::GetPicoSeconds() const [member function] cls.add_method('GetPicoSeconds', 'int64_t', [], is_const=True) ## nstime.h (module 'core'): static ns3::Time::Unit ns3::Time::GetResolution() [member function] cls.add_method('GetResolution', 'ns3::Time::Unit', [], is_static=True) ## nstime.h (module 'core'): double ns3::Time::GetSeconds() const [member function] cls.add_method('GetSeconds', 'double', [], is_const=True) ## nstime.h (module 'core'): int64_t ns3::Time::GetTimeStep() const [member function] cls.add_method('GetTimeStep', 'int64_t', [], is_const=True) ## nstime.h (module 'core'): double ns3::Time::GetYears() const [member function] cls.add_method('GetYears', 'double', [], is_const=True) ## nstime.h (module 'core'): bool ns3::Time::IsNegative() const [member function] cls.add_method('IsNegative', 'bool', [], is_const=True) ## nstime.h (module 'core'): bool ns3::Time::IsPositive() const [member function] cls.add_method('IsPositive', 'bool', [], is_const=True) ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyNegative() const [member function] cls.add_method('IsStrictlyNegative', 'bool', [], is_const=True) ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyPositive() const [member function] cls.add_method('IsStrictlyPositive', 'bool', [], is_const=True) ## nstime.h (module 'core'): bool ns3::Time::IsZero() const [member function] cls.add_method('IsZero', 'bool', [], is_const=True) ## nstime.h (module 'core'): static ns3::Time ns3::Time::Max() [member function] cls.add_method('Max', 'ns3::Time', [], is_static=True) ## nstime.h (module 'core'): static ns3::Time ns3::Time::Min() [member function] cls.add_method('Min', 'ns3::Time', [], is_static=True) ## nstime.h (module 'core'): static void ns3::Time::SetResolution(ns3::Time::Unit resolution) [member function] cls.add_method('SetResolution', 'void', [param('ns3::Time::Unit', 'resolution')], is_static=True) ## nstime.h (module 'core'): static bool ns3::Time::StaticInit() [member function] cls.add_method('StaticInit', 'bool', [], is_static=True) ## nstime.h (module 'core'): ns3::int64x64_t ns3::Time::To(ns3::Time::Unit unit) const [member function] cls.add_method('To', 'ns3::int64x64_t', [param('ns3::Time::Unit', 'unit')], is_const=True) ## nstime.h (module 'core'): double ns3::Time::ToDouble(ns3::Time::Unit unit) const [member function] cls.add_method('ToDouble', 'double', [param('ns3::Time::Unit', 'unit')], is_const=True) ## nstime.h (module 'core'): int64_t ns3::Time::ToInteger(ns3::Time::Unit unit) const [member function] cls.add_method('ToInteger', 'int64_t', [param('ns3::Time::Unit', 'unit')], is_const=True) return def register_Ns3TraceSourceAccessor_methods(root_module, cls): ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor::TraceSourceAccessor(ns3::TraceSourceAccessor const & arg0) [copy constructor] cls.add_constructor([param('ns3::TraceSourceAccessor const &', 'arg0')]) ## trace-source-accessor.h (module 'core'): ns3::TraceSourceAccessor::TraceSourceAccessor() [constructor] cls.add_constructor([]) ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::Connect(ns3::ObjectBase * obj, std::string context, ns3::CallbackBase const & cb) const [member function] cls.add_method('Connect', 'bool', [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')], is_pure_virtual=True, is_const=True, is_virtual=True) ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::ConnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function] cls.add_method('ConnectWithoutContext', 'bool', [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('ns3::CallbackBase const &', 'cb')], is_pure_virtual=True, is_const=True, is_virtual=True) ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::Disconnect(ns3::ObjectBase * obj, std::string context, ns3::CallbackBase const & cb) const [member function] cls.add_method('Disconnect', 'bool', [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')], is_pure_virtual=True, is_const=True, is_virtual=True) ## trace-source-accessor.h (module 'core'): bool ns3::TraceSourceAccessor::DisconnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function] cls.add_method('DisconnectWithoutContext', 'bool', [param('ns3::ObjectBase *', 'obj', transfer_ownership=False), param('ns3::CallbackBase const &', 'cb')], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3Trailer_methods(root_module, cls): cls.add_output_stream_operator() ## trailer.h (module 'network'): ns3::Trailer::Trailer() [constructor] cls.add_constructor([]) ## trailer.h (module 'network'): ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor] cls.add_constructor([param('ns3::Trailer const &', 'arg0')]) ## trailer.h (module 'network'): uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function] cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'end')], is_pure_virtual=True, is_virtual=True) ## trailer.h (module 'network'): uint32_t ns3::Trailer::GetSerializedSize() const [member function] cls.add_method('GetSerializedSize', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## trailer.h (module 'network'): static ns3::TypeId ns3::Trailer::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## trailer.h (module 'network'): void ns3::Trailer::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_pure_virtual=True, is_const=True, is_virtual=True) ## trailer.h (module 'network'): void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function] cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3TriangularRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::TriangularRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::TriangularRandomVariable::TriangularRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::TriangularRandomVariable::GetMean() const [member function] cls.add_method('GetMean', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::TriangularRandomVariable::GetMin() const [member function] cls.add_method('GetMin', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::TriangularRandomVariable::GetMax() const [member function] cls.add_method('GetMax', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::TriangularRandomVariable::GetValue(double mean, double min, double max) [member function] cls.add_method('GetValue', 'double', [param('double', 'mean'), param('double', 'min'), param('double', 'max')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::TriangularRandomVariable::GetInteger(uint32_t mean, uint32_t min, uint32_t max) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'mean'), param('uint32_t', 'min'), param('uint32_t', 'max')]) ## random-variable-stream.h (module 'core'): double ns3::TriangularRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::TriangularRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3UniformRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::UniformRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::UniformRandomVariable::UniformRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::UniformRandomVariable::GetMin() const [member function] cls.add_method('GetMin', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::UniformRandomVariable::GetMax() const [member function] cls.add_method('GetMax', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::UniformRandomVariable::GetValue(double min, double max) [member function] cls.add_method('GetValue', 'double', [param('double', 'min'), param('double', 'max')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::UniformRandomVariable::GetInteger(uint32_t min, uint32_t max) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'min'), param('uint32_t', 'max')]) ## random-variable-stream.h (module 'core'): double ns3::UniformRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::UniformRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3WeibullRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::WeibullRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::WeibullRandomVariable::WeibullRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::WeibullRandomVariable::GetScale() const [member function] cls.add_method('GetScale', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::WeibullRandomVariable::GetShape() const [member function] cls.add_method('GetShape', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::WeibullRandomVariable::GetBound() const [member function] cls.add_method('GetBound', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::WeibullRandomVariable::GetValue(double scale, double shape, double bound) [member function] cls.add_method('GetValue', 'double', [param('double', 'scale'), param('double', 'shape'), param('double', 'bound')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::WeibullRandomVariable::GetInteger(uint32_t scale, uint32_t shape, uint32_t bound) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'scale'), param('uint32_t', 'shape'), param('uint32_t', 'bound')]) ## random-variable-stream.h (module 'core'): double ns3::WeibullRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::WeibullRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3ZetaRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::ZetaRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::ZetaRandomVariable::ZetaRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::ZetaRandomVariable::GetAlpha() const [member function] cls.add_method('GetAlpha', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ZetaRandomVariable::GetValue(double alpha) [member function] cls.add_method('GetValue', 'double', [param('double', 'alpha')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::ZetaRandomVariable::GetInteger(uint32_t alpha) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'alpha')]) ## random-variable-stream.h (module 'core'): double ns3::ZetaRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::ZetaRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3ZipfRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::ZipfRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::ZipfRandomVariable::ZipfRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): uint32_t ns3::ZipfRandomVariable::GetN() const [member function] cls.add_method('GetN', 'uint32_t', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ZipfRandomVariable::GetAlpha() const [member function] cls.add_method('GetAlpha', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ZipfRandomVariable::GetValue(uint32_t n, double alpha) [member function] cls.add_method('GetValue', 'double', [param('uint32_t', 'n'), param('double', 'alpha')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::ZipfRandomVariable::GetInteger(uint32_t n, uint32_t alpha) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'n'), param('uint32_t', 'alpha')]) ## random-variable-stream.h (module 'core'): double ns3::ZipfRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::ZipfRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3AttributeAccessor_methods(root_module, cls): ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor] cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')]) ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor() [constructor] cls.add_constructor([]) ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Get(ns3::ObjectBase const * object, ns3::AttributeValue & attribute) const [member function] cls.add_method('Get', 'bool', [param('ns3::ObjectBase const *', 'object'), param('ns3::AttributeValue &', 'attribute')], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasGetter() const [member function] cls.add_method('HasGetter', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasSetter() const [member function] cls.add_method('HasSetter', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Set(ns3::ObjectBase * object, ns3::AttributeValue const & value) const [member function] cls.add_method('Set', 'bool', [param('ns3::ObjectBase *', 'object', transfer_ownership=False), param('ns3::AttributeValue const &', 'value')], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3AttributeChecker_methods(root_module, cls): ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker(ns3::AttributeChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::AttributeChecker const &', 'arg0')]) ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker() [constructor] cls.add_constructor([]) ## attribute.h (module 'core'): bool ns3::AttributeChecker::Check(ns3::AttributeValue const & value) const [member function] cls.add_method('Check', 'bool', [param('ns3::AttributeValue const &', 'value')], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): bool ns3::AttributeChecker::Copy(ns3::AttributeValue const & source, ns3::AttributeValue & destination) const [member function] cls.add_method('Copy', 'bool', [param('ns3::AttributeValue const &', 'source'), param('ns3::AttributeValue &', 'destination')], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeChecker::Create() const [member function] cls.add_method('Create', 'ns3::Ptr< ns3::AttributeValue >', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeChecker::CreateValidValue(ns3::AttributeValue const & value) const [member function] cls.add_method('CreateValidValue', 'ns3::Ptr< ns3::AttributeValue >', [param('ns3::AttributeValue const &', 'value')], is_const=True) ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetUnderlyingTypeInformation() const [member function] cls.add_method('GetUnderlyingTypeInformation', 'std::string', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetValueTypeName() const [member function] cls.add_method('GetValueTypeName', 'std::string', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): bool ns3::AttributeChecker::HasUnderlyingTypeInformation() const [member function] cls.add_method('HasUnderlyingTypeInformation', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3AttributeValue_methods(root_module, cls): ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue(ns3::AttributeValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::AttributeValue const &', 'arg0')]) ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue() [constructor] cls.add_constructor([]) ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## attribute.h (module 'core'): bool ns3::AttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_pure_virtual=True, is_virtual=True) ## attribute.h (module 'core'): std::string ns3::AttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3CallbackChecker_methods(root_module, cls): ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker() [constructor] cls.add_constructor([]) ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')]) return def register_Ns3CallbackImplBase_methods(root_module, cls): ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor] cls.add_constructor([]) ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor] cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')]) ## callback.h (module 'core'): std::string ns3::CallbackImplBase::GetTypeid() const [member function] cls.add_method('GetTypeid', 'std::string', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function] cls.add_method('IsEqual', 'bool', [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')], is_pure_virtual=True, is_const=True, is_virtual=True) ## callback.h (module 'core'): static std::string ns3::CallbackImplBase::Demangle(std::string const & mangled) [member function] cls.add_method('Demangle', 'std::string', [param('std::string const &', 'mangled')], is_static=True, visibility='protected') return def register_Ns3CallbackValue_methods(root_module, cls): ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')]) ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue() [constructor] cls.add_constructor([]) ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor] cls.add_constructor([param('ns3::CallbackBase const &', 'base')]) ## callback.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::CallbackValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## callback.h (module 'core'): bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## callback.h (module 'core'): std::string ns3::CallbackValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## callback.h (module 'core'): void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function] cls.add_method('Set', 'void', [param('ns3::CallbackBase', 'base')]) return def register_Ns3Channel_methods(root_module, cls): ## channel.h (module 'network'): ns3::Channel::Channel(ns3::Channel const & arg0) [copy constructor] cls.add_constructor([param('ns3::Channel const &', 'arg0')]) ## channel.h (module 'network'): ns3::Channel::Channel() [constructor] cls.add_constructor([]) ## channel.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Channel::GetDevice(uint32_t i) const [member function] cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'i')], is_pure_virtual=True, is_const=True, is_virtual=True) ## channel.h (module 'network'): uint32_t ns3::Channel::GetId() const [member function] cls.add_method('GetId', 'uint32_t', [], is_const=True) ## channel.h (module 'network'): uint32_t ns3::Channel::GetNDevices() const [member function] cls.add_method('GetNDevices', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## channel.h (module 'network'): static ns3::TypeId ns3::Channel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) return def register_Ns3ConstantRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::ConstantRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::ConstantRandomVariable::ConstantRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::ConstantRandomVariable::GetConstant() const [member function] cls.add_method('GetConstant', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ConstantRandomVariable::GetValue(double constant) [member function] cls.add_method('GetValue', 'double', [param('double', 'constant')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::ConstantRandomVariable::GetInteger(uint32_t constant) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'constant')]) ## random-variable-stream.h (module 'core'): double ns3::ConstantRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::ConstantRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3CsmaChannel_methods(root_module, cls): ## csma-channel.h (module 'csma'): static ns3::TypeId ns3::CsmaChannel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## csma-channel.h (module 'csma'): ns3::CsmaChannel::CsmaChannel() [constructor] cls.add_constructor([]) ## csma-channel.h (module 'csma'): int32_t ns3::CsmaChannel::Attach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function] cls.add_method('Attach', 'int32_t', [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')]) ## csma-channel.h (module 'csma'): bool ns3::CsmaChannel::Detach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function] cls.add_method('Detach', 'bool', [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')]) ## csma-channel.h (module 'csma'): bool ns3::CsmaChannel::Detach(uint32_t deviceId) [member function] cls.add_method('Detach', 'bool', [param('uint32_t', 'deviceId')]) ## csma-channel.h (module 'csma'): bool ns3::CsmaChannel::Reattach(uint32_t deviceId) [member function] cls.add_method('Reattach', 'bool', [param('uint32_t', 'deviceId')]) ## csma-channel.h (module 'csma'): bool ns3::CsmaChannel::Reattach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function] cls.add_method('Reattach', 'bool', [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')]) ## csma-channel.h (module 'csma'): bool ns3::CsmaChannel::TransmitStart(ns3::Ptr<ns3::Packet> p, uint32_t srcId) [member function] cls.add_method('TransmitStart', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p'), param('uint32_t', 'srcId')]) ## csma-channel.h (module 'csma'): bool ns3::CsmaChannel::TransmitEnd() [member function] cls.add_method('TransmitEnd', 'bool', []) ## csma-channel.h (module 'csma'): void ns3::CsmaChannel::PropagationCompleteEvent() [member function] cls.add_method('PropagationCompleteEvent', 'void', []) ## csma-channel.h (module 'csma'): int32_t ns3::CsmaChannel::GetDeviceNum(ns3::Ptr<ns3::CsmaNetDevice> device) [member function] cls.add_method('GetDeviceNum', 'int32_t', [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')]) ## csma-channel.h (module 'csma'): ns3::WireState ns3::CsmaChannel::GetState() [member function] cls.add_method('GetState', 'ns3::WireState', []) ## csma-channel.h (module 'csma'): bool ns3::CsmaChannel::IsBusy() [member function] cls.add_method('IsBusy', 'bool', []) ## csma-channel.h (module 'csma'): bool ns3::CsmaChannel::IsActive(uint32_t deviceId) [member function] cls.add_method('IsActive', 'bool', [param('uint32_t', 'deviceId')]) ## csma-channel.h (module 'csma'): uint32_t ns3::CsmaChannel::GetNumActDevices() [member function] cls.add_method('GetNumActDevices', 'uint32_t', []) ## csma-channel.h (module 'csma'): uint32_t ns3::CsmaChannel::GetNDevices() const [member function] cls.add_method('GetNDevices', 'uint32_t', [], is_const=True, is_virtual=True) ## csma-channel.h (module 'csma'): ns3::Ptr<ns3::NetDevice> ns3::CsmaChannel::GetDevice(uint32_t i) const [member function] cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'i')], is_const=True, is_virtual=True) ## csma-channel.h (module 'csma'): ns3::Ptr<ns3::CsmaNetDevice> ns3::CsmaChannel::GetCsmaDevice(uint32_t i) const [member function] cls.add_method('GetCsmaDevice', 'ns3::Ptr< ns3::CsmaNetDevice >', [param('uint32_t', 'i')], is_const=True) ## csma-channel.h (module 'csma'): ns3::DataRate ns3::CsmaChannel::GetDataRate() [member function] cls.add_method('GetDataRate', 'ns3::DataRate', []) ## csma-channel.h (module 'csma'): ns3::Time ns3::CsmaChannel::GetDelay() [member function] cls.add_method('GetDelay', 'ns3::Time', []) return def register_Ns3DataRateChecker_methods(root_module, cls): ## data-rate.h (module 'network'): ns3::DataRateChecker::DataRateChecker() [constructor] cls.add_constructor([]) ## data-rate.h (module 'network'): ns3::DataRateChecker::DataRateChecker(ns3::DataRateChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::DataRateChecker const &', 'arg0')]) return def register_Ns3DataRateValue_methods(root_module, cls): ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue() [constructor] cls.add_constructor([]) ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue(ns3::DataRateValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::DataRateValue const &', 'arg0')]) ## data-rate.h (module 'network'): ns3::DataRateValue::DataRateValue(ns3::DataRate const & value) [constructor] cls.add_constructor([param('ns3::DataRate const &', 'value')]) ## data-rate.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::DataRateValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## data-rate.h (module 'network'): bool ns3::DataRateValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## data-rate.h (module 'network'): ns3::DataRate ns3::DataRateValue::Get() const [member function] cls.add_method('Get', 'ns3::DataRate', [], is_const=True) ## data-rate.h (module 'network'): std::string ns3::DataRateValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## data-rate.h (module 'network'): void ns3::DataRateValue::Set(ns3::DataRate const & value) [member function] cls.add_method('Set', 'void', [param('ns3::DataRate const &', 'value')]) return def register_Ns3DeterministicRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::DeterministicRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::DeterministicRandomVariable::DeterministicRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): void ns3::DeterministicRandomVariable::SetValueArray(double * values, uint64_t length) [member function] cls.add_method('SetValueArray', 'void', [param('double *', 'values'), param('uint64_t', 'length')]) ## random-variable-stream.h (module 'core'): double ns3::DeterministicRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::DeterministicRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3EmpiricalRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): ns3::EmpiricalRandomVariable::EmpiricalRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): void ns3::EmpiricalRandomVariable::CDF(double v, double c) [member function] cls.add_method('CDF', 'void', [param('double', 'v'), param('double', 'c')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::EmpiricalRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::EmpiricalRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): double ns3::EmpiricalRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): double ns3::EmpiricalRandomVariable::Interpolate(double c1, double c2, double v1, double v2, double r) [member function] cls.add_method('Interpolate', 'double', [param('double', 'c1'), param('double', 'c2'), param('double', 'v1'), param('double', 'v2'), param('double', 'r')], visibility='private', is_virtual=True) ## random-variable-stream.h (module 'core'): void ns3::EmpiricalRandomVariable::Validate() [member function] cls.add_method('Validate', 'void', [], visibility='private', is_virtual=True) return def register_Ns3EmptyAttributeValue_methods(root_module, cls): ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')]) ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue() [constructor] cls.add_constructor([]) ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EmptyAttributeValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, visibility='private', is_virtual=True) ## attribute.h (module 'core'): bool ns3::EmptyAttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], visibility='private', is_virtual=True) ## attribute.h (module 'core'): std::string ns3::EmptyAttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, visibility='private', is_virtual=True) return def register_Ns3ErlangRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::ErlangRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::ErlangRandomVariable::ErlangRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): uint32_t ns3::ErlangRandomVariable::GetK() const [member function] cls.add_method('GetK', 'uint32_t', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ErlangRandomVariable::GetLambda() const [member function] cls.add_method('GetLambda', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ErlangRandomVariable::GetValue(uint32_t k, double lambda) [member function] cls.add_method('GetValue', 'double', [param('uint32_t', 'k'), param('double', 'lambda')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::ErlangRandomVariable::GetInteger(uint32_t k, uint32_t lambda) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'k'), param('uint32_t', 'lambda')]) ## random-variable-stream.h (module 'core'): double ns3::ErlangRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::ErlangRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3ErrorModel_methods(root_module, cls): ## error-model.h (module 'network'): ns3::ErrorModel::ErrorModel(ns3::ErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::ErrorModel const &', 'arg0')]) ## error-model.h (module 'network'): ns3::ErrorModel::ErrorModel() [constructor] cls.add_constructor([]) ## error-model.h (module 'network'): void ns3::ErrorModel::Disable() [member function] cls.add_method('Disable', 'void', []) ## error-model.h (module 'network'): void ns3::ErrorModel::Enable() [member function] cls.add_method('Enable', 'void', []) ## error-model.h (module 'network'): static ns3::TypeId ns3::ErrorModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## error-model.h (module 'network'): bool ns3::ErrorModel::IsCorrupt(ns3::Ptr<ns3::Packet> pkt) [member function] cls.add_method('IsCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'pkt')]) ## error-model.h (module 'network'): bool ns3::ErrorModel::IsEnabled() const [member function] cls.add_method('IsEnabled', 'bool', [], is_const=True) ## error-model.h (module 'network'): void ns3::ErrorModel::Reset() [member function] cls.add_method('Reset', 'void', []) ## error-model.h (module 'network'): bool ns3::ErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], is_pure_virtual=True, visibility='private', is_virtual=True) ## error-model.h (module 'network'): void ns3::ErrorModel::DoReset() [member function] cls.add_method('DoReset', 'void', [], is_pure_virtual=True, visibility='private', is_virtual=True) return def register_Ns3EventImpl_methods(root_module, cls): ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor] cls.add_constructor([param('ns3::EventImpl const &', 'arg0')]) ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl() [constructor] cls.add_constructor([]) ## event-impl.h (module 'core'): void ns3::EventImpl::Cancel() [member function] cls.add_method('Cancel', 'void', []) ## event-impl.h (module 'core'): void ns3::EventImpl::Invoke() [member function] cls.add_method('Invoke', 'void', []) ## event-impl.h (module 'core'): bool ns3::EventImpl::IsCancelled() [member function] cls.add_method('IsCancelled', 'bool', []) ## event-impl.h (module 'core'): void ns3::EventImpl::Notify() [member function] cls.add_method('Notify', 'void', [], is_pure_virtual=True, visibility='protected', is_virtual=True) return def register_Ns3ExponentialRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::ExponentialRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::ExponentialRandomVariable::ExponentialRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::ExponentialRandomVariable::GetMean() const [member function] cls.add_method('GetMean', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ExponentialRandomVariable::GetBound() const [member function] cls.add_method('GetBound', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ExponentialRandomVariable::GetValue(double mean, double bound) [member function] cls.add_method('GetValue', 'double', [param('double', 'mean'), param('double', 'bound')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::ExponentialRandomVariable::GetInteger(uint32_t mean, uint32_t bound) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'mean'), param('uint32_t', 'bound')]) ## random-variable-stream.h (module 'core'): double ns3::ExponentialRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::ExponentialRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3GammaRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::GammaRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::GammaRandomVariable::GammaRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::GammaRandomVariable::GetAlpha() const [member function] cls.add_method('GetAlpha', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::GammaRandomVariable::GetBeta() const [member function] cls.add_method('GetBeta', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::GammaRandomVariable::GetValue(double alpha, double beta) [member function] cls.add_method('GetValue', 'double', [param('double', 'alpha'), param('double', 'beta')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::GammaRandomVariable::GetInteger(uint32_t alpha, uint32_t beta) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'alpha'), param('uint32_t', 'beta')]) ## random-variable-stream.h (module 'core'): double ns3::GammaRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::GammaRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3Ipv4AddressChecker_methods(root_module, cls): ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor] cls.add_constructor([]) ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker(ns3::Ipv4AddressChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv4AddressChecker const &', 'arg0')]) return def register_Ns3Ipv4AddressValue_methods(root_module, cls): ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor] cls.add_constructor([]) ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')]) ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor] cls.add_constructor([param('ns3::Ipv4Address const &', 'value')]) ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4AddressValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function] cls.add_method('Get', 'ns3::Ipv4Address', [], is_const=True) ## ipv4-address.h (module 'network'): std::string ns3::Ipv4AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## ipv4-address.h (module 'network'): void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function] cls.add_method('Set', 'void', [param('ns3::Ipv4Address const &', 'value')]) return def register_Ns3Ipv4MaskChecker_methods(root_module, cls): ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor] cls.add_constructor([]) ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker(ns3::Ipv4MaskChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv4MaskChecker const &', 'arg0')]) return def register_Ns3Ipv4MaskValue_methods(root_module, cls): ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor] cls.add_constructor([]) ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')]) ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor] cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')]) ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4MaskValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## ipv4-address.h (module 'network'): bool ns3::Ipv4MaskValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## ipv4-address.h (module 'network'): ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function] cls.add_method('Get', 'ns3::Ipv4Mask', [], is_const=True) ## ipv4-address.h (module 'network'): std::string ns3::Ipv4MaskValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## ipv4-address.h (module 'network'): void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function] cls.add_method('Set', 'void', [param('ns3::Ipv4Mask const &', 'value')]) return def register_Ns3Ipv6AddressChecker_methods(root_module, cls): ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor] cls.add_constructor([]) ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker(ns3::Ipv6AddressChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv6AddressChecker const &', 'arg0')]) return def register_Ns3Ipv6AddressValue_methods(root_module, cls): ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor] cls.add_constructor([]) ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')]) ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor] cls.add_constructor([param('ns3::Ipv6Address const &', 'value')]) ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6AddressValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function] cls.add_method('Get', 'ns3::Ipv6Address', [], is_const=True) ## ipv6-address.h (module 'network'): std::string ns3::Ipv6AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## ipv6-address.h (module 'network'): void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function] cls.add_method('Set', 'void', [param('ns3::Ipv6Address const &', 'value')]) return def register_Ns3Ipv6PrefixChecker_methods(root_module, cls): ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor] cls.add_constructor([]) ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker(ns3::Ipv6PrefixChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv6PrefixChecker const &', 'arg0')]) return def register_Ns3Ipv6PrefixValue_methods(root_module, cls): ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor] cls.add_constructor([]) ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')]) ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor] cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')]) ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6PrefixValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## ipv6-address.h (module 'network'): bool ns3::Ipv6PrefixValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function] cls.add_method('Get', 'ns3::Ipv6Prefix', [], is_const=True) ## ipv6-address.h (module 'network'): std::string ns3::Ipv6PrefixValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## ipv6-address.h (module 'network'): void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function] cls.add_method('Set', 'void', [param('ns3::Ipv6Prefix const &', 'value')]) return def register_Ns3ListErrorModel_methods(root_module, cls): ## error-model.h (module 'network'): ns3::ListErrorModel::ListErrorModel(ns3::ListErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::ListErrorModel const &', 'arg0')]) ## error-model.h (module 'network'): ns3::ListErrorModel::ListErrorModel() [constructor] cls.add_constructor([]) ## error-model.h (module 'network'): std::list<unsigned int, std::allocator<unsigned int> > ns3::ListErrorModel::GetList() const [member function] cls.add_method('GetList', 'std::list< unsigned int >', [], is_const=True) ## error-model.h (module 'network'): static ns3::TypeId ns3::ListErrorModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## error-model.h (module 'network'): void ns3::ListErrorModel::SetList(std::list<unsigned int, std::allocator<unsigned int> > const & packetlist) [member function] cls.add_method('SetList', 'void', [param('std::list< unsigned int > const &', 'packetlist')]) ## error-model.h (module 'network'): bool ns3::ListErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True) ## error-model.h (module 'network'): void ns3::ListErrorModel::DoReset() [member function] cls.add_method('DoReset', 'void', [], visibility='private', is_virtual=True) return def register_Ns3LogNormalRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::LogNormalRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::LogNormalRandomVariable::LogNormalRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::LogNormalRandomVariable::GetMu() const [member function] cls.add_method('GetMu', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::LogNormalRandomVariable::GetSigma() const [member function] cls.add_method('GetSigma', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::LogNormalRandomVariable::GetValue(double mu, double sigma) [member function] cls.add_method('GetValue', 'double', [param('double', 'mu'), param('double', 'sigma')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::LogNormalRandomVariable::GetInteger(uint32_t mu, uint32_t sigma) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'mu'), param('uint32_t', 'sigma')]) ## random-variable-stream.h (module 'core'): double ns3::LogNormalRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::LogNormalRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3Mac48AddressChecker_methods(root_module, cls): ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker::Mac48AddressChecker() [constructor] cls.add_constructor([]) ## mac48-address.h (module 'network'): ns3::Mac48AddressChecker::Mac48AddressChecker(ns3::Mac48AddressChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::Mac48AddressChecker const &', 'arg0')]) return def register_Ns3Mac48AddressValue_methods(root_module, cls): ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue() [constructor] cls.add_constructor([]) ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48AddressValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::Mac48AddressValue const &', 'arg0')]) ## mac48-address.h (module 'network'): ns3::Mac48AddressValue::Mac48AddressValue(ns3::Mac48Address const & value) [constructor] cls.add_constructor([param('ns3::Mac48Address const &', 'value')]) ## mac48-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Mac48AddressValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## mac48-address.h (module 'network'): bool ns3::Mac48AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## mac48-address.h (module 'network'): ns3::Mac48Address ns3::Mac48AddressValue::Get() const [member function] cls.add_method('Get', 'ns3::Mac48Address', [], is_const=True) ## mac48-address.h (module 'network'): std::string ns3::Mac48AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## mac48-address.h (module 'network'): void ns3::Mac48AddressValue::Set(ns3::Mac48Address const & value) [member function] cls.add_method('Set', 'void', [param('ns3::Mac48Address const &', 'value')]) return def register_Ns3NetDevice_methods(root_module, cls): ## net-device.h (module 'network'): ns3::NetDevice::NetDevice() [constructor] cls.add_constructor([]) ## net-device.h (module 'network'): ns3::NetDevice::NetDevice(ns3::NetDevice const & arg0) [copy constructor] cls.add_constructor([param('ns3::NetDevice const &', 'arg0')]) ## net-device.h (module 'network'): void ns3::NetDevice::AddLinkChangeCallback(ns3::Callback<void,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function] cls.add_method('AddLinkChangeCallback', 'void', [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetAddress() const [member function] cls.add_method('GetAddress', 'ns3::Address', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetBroadcast() const [member function] cls.add_method('GetBroadcast', 'ns3::Address', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): ns3::Ptr<ns3::Channel> ns3::NetDevice::GetChannel() const [member function] cls.add_method('GetChannel', 'ns3::Ptr< ns3::Channel >', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): uint32_t ns3::NetDevice::GetIfIndex() const [member function] cls.add_method('GetIfIndex', 'uint32_t', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): uint16_t ns3::NetDevice::GetMtu() const [member function] cls.add_method('GetMtu', 'uint16_t', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function] cls.add_method('GetMulticast', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function] cls.add_method('GetMulticast', 'ns3::Address', [param('ns3::Ipv6Address', 'addr')], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NetDevice::GetNode() const [member function] cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): static ns3::TypeId ns3::NetDevice::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## net-device.h (module 'network'): bool ns3::NetDevice::IsBridge() const [member function] cls.add_method('IsBridge', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::IsBroadcast() const [member function] cls.add_method('IsBroadcast', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::IsLinkUp() const [member function] cls.add_method('IsLinkUp', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::IsMulticast() const [member function] cls.add_method('IsMulticast', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::IsPointToPoint() const [member function] cls.add_method('IsPointToPoint', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::NeedsArp() const [member function] cls.add_method('NeedsArp', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function] cls.add_method('Send', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function] cls.add_method('SendFrom', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): void ns3::NetDevice::SetAddress(ns3::Address address) [member function] cls.add_method('SetAddress', 'void', [param('ns3::Address', 'address')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', [param('uint32_t const', 'index')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::SetMtu(uint16_t const mtu) [member function] cls.add_method('SetMtu', 'bool', [param('uint16_t const', 'mtu')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): void ns3::NetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function] cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): void ns3::NetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function] cls.add_method('SetPromiscReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): void ns3::NetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function] cls.add_method('SetReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], is_pure_virtual=True, is_virtual=True) ## net-device.h (module 'network'): bool ns3::NetDevice::SupportsSendFrom() const [member function] cls.add_method('SupportsSendFrom', 'bool', [], is_pure_virtual=True, is_const=True, is_virtual=True) return def register_Ns3NixVector_methods(root_module, cls): cls.add_output_stream_operator() ## nix-vector.h (module 'network'): ns3::NixVector::NixVector() [constructor] cls.add_constructor([]) ## nix-vector.h (module 'network'): ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor] cls.add_constructor([param('ns3::NixVector const &', 'o')]) ## nix-vector.h (module 'network'): void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function] cls.add_method('AddNeighborIndex', 'void', [param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')]) ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function] cls.add_method('BitCount', 'uint32_t', [param('uint32_t', 'numberOfNeighbors')], is_const=True) ## nix-vector.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::NixVector::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::NixVector >', [], is_const=True) ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Deserialize(uint32_t const * buffer, uint32_t size) [member function] cls.add_method('Deserialize', 'uint32_t', [param('uint32_t const *', 'buffer'), param('uint32_t', 'size')]) ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function] cls.add_method('ExtractNeighborIndex', 'uint32_t', [param('uint32_t', 'numberOfBits')]) ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetRemainingBits() [member function] cls.add_method('GetRemainingBits', 'uint32_t', []) ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetSerializedSize() const [member function] cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True) ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Serialize(uint32_t * buffer, uint32_t maxSize) const [member function] cls.add_method('Serialize', 'uint32_t', [param('uint32_t *', 'buffer'), param('uint32_t', 'maxSize')], is_const=True) return def register_Ns3Node_methods(root_module, cls): ## node.h (module 'network'): ns3::Node::Node(ns3::Node const & arg0) [copy constructor] cls.add_constructor([param('ns3::Node const &', 'arg0')]) ## node.h (module 'network'): ns3::Node::Node() [constructor] cls.add_constructor([]) ## node.h (module 'network'): ns3::Node::Node(uint32_t systemId) [constructor] cls.add_constructor([param('uint32_t', 'systemId')]) ## node.h (module 'network'): uint32_t ns3::Node::AddApplication(ns3::Ptr<ns3::Application> application) [member function] cls.add_method('AddApplication', 'uint32_t', [param('ns3::Ptr< ns3::Application >', 'application')]) ## node.h (module 'network'): uint32_t ns3::Node::AddDevice(ns3::Ptr<ns3::NetDevice> device) [member function] cls.add_method('AddDevice', 'uint32_t', [param('ns3::Ptr< ns3::NetDevice >', 'device')]) ## node.h (module 'network'): static bool ns3::Node::ChecksumEnabled() [member function] cls.add_method('ChecksumEnabled', 'bool', [], is_static=True) ## node.h (module 'network'): ns3::Ptr<ns3::Application> ns3::Node::GetApplication(uint32_t index) const [member function] cls.add_method('GetApplication', 'ns3::Ptr< ns3::Application >', [param('uint32_t', 'index')], is_const=True) ## node.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Node::GetDevice(uint32_t index) const [member function] cls.add_method('GetDevice', 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'index')], is_const=True) ## node.h (module 'network'): uint32_t ns3::Node::GetId() const [member function] cls.add_method('GetId', 'uint32_t', [], is_const=True) ## node.h (module 'network'): uint32_t ns3::Node::GetNApplications() const [member function] cls.add_method('GetNApplications', 'uint32_t', [], is_const=True) ## node.h (module 'network'): uint32_t ns3::Node::GetNDevices() const [member function] cls.add_method('GetNDevices', 'uint32_t', [], is_const=True) ## node.h (module 'network'): uint32_t ns3::Node::GetSystemId() const [member function] cls.add_method('GetSystemId', 'uint32_t', [], is_const=True) ## node.h (module 'network'): static ns3::TypeId ns3::Node::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## node.h (module 'network'): void ns3::Node::RegisterDeviceAdditionListener(ns3::Callback<void,ns3::Ptr<ns3::NetDevice>,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> listener) [member function] cls.add_method('RegisterDeviceAdditionListener', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'listener')]) ## node.h (module 'network'): void ns3::Node::RegisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device, bool promiscuous=false) [member function] cls.add_method('RegisterProtocolHandler', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'promiscuous', default_value='false')]) ## node.h (module 'network'): void ns3::Node::UnregisterDeviceAdditionListener(ns3::Callback<void,ns3::Ptr<ns3::NetDevice>,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> listener) [member function] cls.add_method('UnregisterDeviceAdditionListener', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'listener')]) ## node.h (module 'network'): void ns3::Node::UnregisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler) [member function] cls.add_method('UnregisterProtocolHandler', 'void', [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler')]) ## node.h (module 'network'): void ns3::Node::DoDispose() [member function] cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True) ## node.h (module 'network'): void ns3::Node::DoInitialize() [member function] cls.add_method('DoInitialize', 'void', [], visibility='protected', is_virtual=True) return def register_Ns3NormalRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): ns3::NormalRandomVariable::INFINITE_VALUE [variable] cls.add_static_attribute('INFINITE_VALUE', 'double const', is_const=True) ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::NormalRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::NormalRandomVariable::NormalRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::NormalRandomVariable::GetMean() const [member function] cls.add_method('GetMean', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::NormalRandomVariable::GetVariance() const [member function] cls.add_method('GetVariance', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::NormalRandomVariable::GetBound() const [member function] cls.add_method('GetBound', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::NormalRandomVariable::GetValue(double mean, double variance, double bound=ns3::NormalRandomVariable::INFINITE_VALUE) [member function] cls.add_method('GetValue', 'double', [param('double', 'mean'), param('double', 'variance'), param('double', 'bound', default_value='ns3::NormalRandomVariable::INFINITE_VALUE')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::NormalRandomVariable::GetInteger(uint32_t mean, uint32_t variance, uint32_t bound) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'mean'), param('uint32_t', 'variance'), param('uint32_t', 'bound')]) ## random-variable-stream.h (module 'core'): double ns3::NormalRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::NormalRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3ObjectFactoryChecker_methods(root_module, cls): ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor] cls.add_constructor([]) ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker(ns3::ObjectFactoryChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::ObjectFactoryChecker const &', 'arg0')]) return def register_Ns3ObjectFactoryValue_methods(root_module, cls): ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue() [constructor] cls.add_constructor([]) ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactoryValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::ObjectFactoryValue const &', 'arg0')]) ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactory const & value) [constructor] cls.add_constructor([param('ns3::ObjectFactory const &', 'value')]) ## object-factory.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::ObjectFactoryValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## object-factory.h (module 'core'): bool ns3::ObjectFactoryValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## object-factory.h (module 'core'): ns3::ObjectFactory ns3::ObjectFactoryValue::Get() const [member function] cls.add_method('Get', 'ns3::ObjectFactory', [], is_const=True) ## object-factory.h (module 'core'): std::string ns3::ObjectFactoryValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## object-factory.h (module 'core'): void ns3::ObjectFactoryValue::Set(ns3::ObjectFactory const & value) [member function] cls.add_method('Set', 'void', [param('ns3::ObjectFactory const &', 'value')]) return def register_Ns3OutputStreamWrapper_methods(root_module, cls): ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(ns3::OutputStreamWrapper const & arg0) [copy constructor] cls.add_constructor([param('ns3::OutputStreamWrapper const &', 'arg0')]) ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(std::string filename, std::_Ios_Openmode filemode) [constructor] cls.add_constructor([param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode')]) ## output-stream-wrapper.h (module 'network'): ns3::OutputStreamWrapper::OutputStreamWrapper(std::ostream * os) [constructor] cls.add_constructor([param('std::ostream *', 'os')]) ## output-stream-wrapper.h (module 'network'): std::ostream * ns3::OutputStreamWrapper::GetStream() [member function] cls.add_method('GetStream', 'std::ostream *', []) return def register_Ns3Packet_methods(root_module, cls): cls.add_output_stream_operator() ## packet.h (module 'network'): ns3::Packet::Packet() [constructor] cls.add_constructor([]) ## packet.h (module 'network'): ns3::Packet::Packet(ns3::Packet const & o) [copy constructor] cls.add_constructor([param('ns3::Packet const &', 'o')]) ## packet.h (module 'network'): ns3::Packet::Packet(uint32_t size) [constructor] cls.add_constructor([param('uint32_t', 'size')]) ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size, bool magic) [constructor] cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size'), param('bool', 'magic')]) ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor] cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')]) ## packet.h (module 'network'): void ns3::Packet::AddAtEnd(ns3::Ptr<const ns3::Packet> packet) [member function] cls.add_method('AddAtEnd', 'void', [param('ns3::Ptr< ns3::Packet const >', 'packet')]) ## packet.h (module 'network'): void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function] cls.add_method('AddByteTag', 'void', [param('ns3::Tag const &', 'tag')], is_const=True) ## packet.h (module 'network'): void ns3::Packet::AddHeader(ns3::Header const & header) [member function] cls.add_method('AddHeader', 'void', [param('ns3::Header const &', 'header')]) ## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function] cls.add_method('AddPacketTag', 'void', [param('ns3::Tag const &', 'tag')], is_const=True) ## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function] cls.add_method('AddPaddingAtEnd', 'void', [param('uint32_t', 'size')]) ## packet.h (module 'network'): void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function] cls.add_method('AddTrailer', 'void', [param('ns3::Trailer const &', 'trailer')]) ## packet.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function] cls.add_method('BeginItem', 'ns3::PacketMetadata::ItemIterator', [], is_const=True) ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::Packet >', [], is_const=True) ## packet.h (module 'network'): uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function] cls.add_method('CopyData', 'uint32_t', [param('uint8_t *', 'buffer'), param('uint32_t', 'size')], is_const=True) ## packet.h (module 'network'): void ns3::Packet::CopyData(std::ostream * os, uint32_t size) const [member function] cls.add_method('CopyData', 'void', [param('std::ostream *', 'os'), param('uint32_t', 'size')], is_const=True) ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function] cls.add_method('CreateFragment', 'ns3::Ptr< ns3::Packet >', [param('uint32_t', 'start'), param('uint32_t', 'length')], is_const=True) ## packet.h (module 'network'): static void ns3::Packet::EnableChecking() [member function] cls.add_method('EnableChecking', 'void', [], is_static=True) ## packet.h (module 'network'): static void ns3::Packet::EnablePrinting() [member function] cls.add_method('EnablePrinting', 'void', [], is_static=True) ## packet.h (module 'network'): bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function] cls.add_method('FindFirstMatchingByteTag', 'bool', [param('ns3::Tag &', 'tag')], is_const=True) ## packet.h (module 'network'): ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function] cls.add_method('GetByteTagIterator', 'ns3::ByteTagIterator', [], is_const=True) ## packet.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::Packet::GetNixVector() const [member function] cls.add_method('GetNixVector', 'ns3::Ptr< ns3::NixVector >', [], is_const=True) ## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function] cls.add_method('GetPacketTagIterator', 'ns3::PacketTagIterator', [], is_const=True) ## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function] cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True) ## packet.h (module 'network'): uint32_t ns3::Packet::GetSize() const [member function] cls.add_method('GetSize', 'uint32_t', [], is_const=True) ## packet.h (module 'network'): uint64_t ns3::Packet::GetUid() const [member function] cls.add_method('GetUid', 'uint64_t', [], is_const=True) ## packet.h (module 'network'): uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function] cls.add_method('PeekHeader', 'uint32_t', [param('ns3::Header &', 'header')], is_const=True) ## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function] cls.add_method('PeekPacketTag', 'bool', [param('ns3::Tag &', 'tag')], is_const=True) ## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function] cls.add_method('PeekTrailer', 'uint32_t', [param('ns3::Trailer &', 'trailer')]) ## packet.h (module 'network'): void ns3::Packet::Print(std::ostream & os) const [member function] cls.add_method('Print', 'void', [param('std::ostream &', 'os')], is_const=True) ## packet.h (module 'network'): void ns3::Packet::PrintByteTags(std::ostream & os) const [member function] cls.add_method('PrintByteTags', 'void', [param('std::ostream &', 'os')], is_const=True) ## packet.h (module 'network'): void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function] cls.add_method('PrintPacketTags', 'void', [param('std::ostream &', 'os')], is_const=True) ## packet.h (module 'network'): void ns3::Packet::RemoveAllByteTags() [member function] cls.add_method('RemoveAllByteTags', 'void', []) ## packet.h (module 'network'): void ns3::Packet::RemoveAllPacketTags() [member function] cls.add_method('RemoveAllPacketTags', 'void', []) ## packet.h (module 'network'): void ns3::Packet::RemoveAtEnd(uint32_t size) [member function] cls.add_method('RemoveAtEnd', 'void', [param('uint32_t', 'size')]) ## packet.h (module 'network'): void ns3::Packet::RemoveAtStart(uint32_t size) [member function] cls.add_method('RemoveAtStart', 'void', [param('uint32_t', 'size')]) ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function] cls.add_method('RemoveHeader', 'uint32_t', [param('ns3::Header &', 'header')]) ## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function] cls.add_method('RemovePacketTag', 'bool', [param('ns3::Tag &', 'tag')]) ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function] cls.add_method('RemoveTrailer', 'uint32_t', [param('ns3::Trailer &', 'trailer')]) ## packet.h (module 'network'): bool ns3::Packet::ReplacePacketTag(ns3::Tag & tag) [member function] cls.add_method('ReplacePacketTag', 'bool', [param('ns3::Tag &', 'tag')]) ## packet.h (module 'network'): uint32_t ns3::Packet::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function] cls.add_method('Serialize', 'uint32_t', [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')], is_const=True) ## packet.h (module 'network'): void ns3::Packet::SetNixVector(ns3::Ptr<ns3::NixVector> nixVector) [member function] cls.add_method('SetNixVector', 'void', [param('ns3::Ptr< ns3::NixVector >', 'nixVector')]) ## packet.h (module 'network'): std::string ns3::Packet::ToString() const [member function] cls.add_method('ToString', 'std::string', [], is_const=True) return def register_Ns3ParetoRandomVariable_methods(root_module, cls): ## random-variable-stream.h (module 'core'): static ns3::TypeId ns3::ParetoRandomVariable::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## random-variable-stream.h (module 'core'): ns3::ParetoRandomVariable::ParetoRandomVariable() [constructor] cls.add_constructor([]) ## random-variable-stream.h (module 'core'): double ns3::ParetoRandomVariable::GetMean() const [member function] cls.add_method('GetMean', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ParetoRandomVariable::GetShape() const [member function] cls.add_method('GetShape', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ParetoRandomVariable::GetBound() const [member function] cls.add_method('GetBound', 'double', [], is_const=True) ## random-variable-stream.h (module 'core'): double ns3::ParetoRandomVariable::GetValue(double mean, double shape, double bound) [member function] cls.add_method('GetValue', 'double', [param('double', 'mean'), param('double', 'shape'), param('double', 'bound')]) ## random-variable-stream.h (module 'core'): uint32_t ns3::ParetoRandomVariable::GetInteger(uint32_t mean, uint32_t shape, uint32_t bound) [member function] cls.add_method('GetInteger', 'uint32_t', [param('uint32_t', 'mean'), param('uint32_t', 'shape'), param('uint32_t', 'bound')]) ## random-variable-stream.h (module 'core'): double ns3::ParetoRandomVariable::GetValue() [member function] cls.add_method('GetValue', 'double', [], is_virtual=True) ## random-variable-stream.h (module 'core'): uint32_t ns3::ParetoRandomVariable::GetInteger() [member function] cls.add_method('GetInteger', 'uint32_t', [], is_virtual=True) return def register_Ns3RateErrorModel_methods(root_module, cls): ## error-model.h (module 'network'): ns3::RateErrorModel::RateErrorModel(ns3::RateErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::RateErrorModel const &', 'arg0')]) ## error-model.h (module 'network'): ns3::RateErrorModel::RateErrorModel() [constructor] cls.add_constructor([]) ## error-model.h (module 'network'): int64_t ns3::RateErrorModel::AssignStreams(int64_t stream) [member function] cls.add_method('AssignStreams', 'int64_t', [param('int64_t', 'stream')]) ## error-model.h (module 'network'): double ns3::RateErrorModel::GetRate() const [member function] cls.add_method('GetRate', 'double', [], is_const=True) ## error-model.h (module 'network'): static ns3::TypeId ns3::RateErrorModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## error-model.h (module 'network'): ns3::RateErrorModel::ErrorUnit ns3::RateErrorModel::GetUnit() const [member function] cls.add_method('GetUnit', 'ns3::RateErrorModel::ErrorUnit', [], is_const=True) ## error-model.h (module 'network'): void ns3::RateErrorModel::SetRandomVariable(ns3::Ptr<ns3::RandomVariableStream> arg0) [member function] cls.add_method('SetRandomVariable', 'void', [param('ns3::Ptr< ns3::RandomVariableStream >', 'arg0')]) ## error-model.h (module 'network'): void ns3::RateErrorModel::SetRate(double rate) [member function] cls.add_method('SetRate', 'void', [param('double', 'rate')]) ## error-model.h (module 'network'): void ns3::RateErrorModel::SetUnit(ns3::RateErrorModel::ErrorUnit error_unit) [member function] cls.add_method('SetUnit', 'void', [param('ns3::RateErrorModel::ErrorUnit', 'error_unit')]) ## error-model.h (module 'network'): bool ns3::RateErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True) ## error-model.h (module 'network'): bool ns3::RateErrorModel::DoCorruptBit(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoCorruptBit', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True) ## error-model.h (module 'network'): bool ns3::RateErrorModel::DoCorruptByte(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoCorruptByte', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True) ## error-model.h (module 'network'): bool ns3::RateErrorModel::DoCorruptPkt(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoCorruptPkt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True) ## error-model.h (module 'network'): void ns3::RateErrorModel::DoReset() [member function] cls.add_method('DoReset', 'void', [], visibility='private', is_virtual=True) return def register_Ns3ReceiveListErrorModel_methods(root_module, cls): ## error-model.h (module 'network'): ns3::ReceiveListErrorModel::ReceiveListErrorModel(ns3::ReceiveListErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::ReceiveListErrorModel const &', 'arg0')]) ## error-model.h (module 'network'): ns3::ReceiveListErrorModel::ReceiveListErrorModel() [constructor] cls.add_constructor([]) ## error-model.h (module 'network'): std::list<unsigned int, std::allocator<unsigned int> > ns3::ReceiveListErrorModel::GetList() const [member function] cls.add_method('GetList', 'std::list< unsigned int >', [], is_const=True) ## error-model.h (module 'network'): static ns3::TypeId ns3::ReceiveListErrorModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## error-model.h (module 'network'): void ns3::ReceiveListErrorModel::SetList(std::list<unsigned int, std::allocator<unsigned int> > const & packetlist) [member function] cls.add_method('SetList', 'void', [param('std::list< unsigned int > const &', 'packetlist')]) ## error-model.h (module 'network'): bool ns3::ReceiveListErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True) ## error-model.h (module 'network'): void ns3::ReceiveListErrorModel::DoReset() [member function] cls.add_method('DoReset', 'void', [], visibility='private', is_virtual=True) return def register_Ns3TimeValue_methods(root_module, cls): ## nstime.h (module 'core'): ns3::TimeValue::TimeValue() [constructor] cls.add_constructor([]) ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::TimeValue const &', 'arg0')]) ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor] cls.add_constructor([param('ns3::Time const &', 'value')]) ## nstime.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TimeValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## nstime.h (module 'core'): bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## nstime.h (module 'core'): ns3::Time ns3::TimeValue::Get() const [member function] cls.add_method('Get', 'ns3::Time', [], is_const=True) ## nstime.h (module 'core'): std::string ns3::TimeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## nstime.h (module 'core'): void ns3::TimeValue::Set(ns3::Time const & value) [member function] cls.add_method('Set', 'void', [param('ns3::Time const &', 'value')]) return def register_Ns3TypeIdChecker_methods(root_module, cls): ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker() [constructor] cls.add_constructor([]) ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker(ns3::TypeIdChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::TypeIdChecker const &', 'arg0')]) return def register_Ns3TypeIdValue_methods(root_module, cls): ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue() [constructor] cls.add_constructor([]) ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeIdValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::TypeIdValue const &', 'arg0')]) ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeId const & value) [constructor] cls.add_constructor([param('ns3::TypeId const &', 'value')]) ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TypeIdValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## type-id.h (module 'core'): bool ns3::TypeIdValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## type-id.h (module 'core'): ns3::TypeId ns3::TypeIdValue::Get() const [member function] cls.add_method('Get', 'ns3::TypeId', [], is_const=True) ## type-id.h (module 'core'): std::string ns3::TypeIdValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## type-id.h (module 'core'): void ns3::TypeIdValue::Set(ns3::TypeId const & value) [member function] cls.add_method('Set', 'void', [param('ns3::TypeId const &', 'value')]) return def register_Ns3AddressChecker_methods(root_module, cls): ## address.h (module 'network'): ns3::AddressChecker::AddressChecker() [constructor] cls.add_constructor([]) ## address.h (module 'network'): ns3::AddressChecker::AddressChecker(ns3::AddressChecker const & arg0) [copy constructor] cls.add_constructor([param('ns3::AddressChecker const &', 'arg0')]) return def register_Ns3AddressValue_methods(root_module, cls): ## address.h (module 'network'): ns3::AddressValue::AddressValue() [constructor] cls.add_constructor([]) ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor] cls.add_constructor([param('ns3::AddressValue const &', 'arg0')]) ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor] cls.add_constructor([param('ns3::Address const &', 'value')]) ## address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::AddressValue::Copy() const [member function] cls.add_method('Copy', 'ns3::Ptr< ns3::AttributeValue >', [], is_const=True, is_virtual=True) ## address.h (module 'network'): bool ns3::AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function] cls.add_method('DeserializeFromString', 'bool', [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_virtual=True) ## address.h (module 'network'): ns3::Address ns3::AddressValue::Get() const [member function] cls.add_method('Get', 'ns3::Address', [], is_const=True) ## address.h (module 'network'): std::string ns3::AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function] cls.add_method('SerializeToString', 'std::string', [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')], is_const=True, is_virtual=True) ## address.h (module 'network'): void ns3::AddressValue::Set(ns3::Address const & value) [member function] cls.add_method('Set', 'void', [param('ns3::Address const &', 'value')]) return def register_Ns3BurstErrorModel_methods(root_module, cls): ## error-model.h (module 'network'): ns3::BurstErrorModel::BurstErrorModel(ns3::BurstErrorModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::BurstErrorModel const &', 'arg0')]) ## error-model.h (module 'network'): ns3::BurstErrorModel::BurstErrorModel() [constructor] cls.add_constructor([]) ## error-model.h (module 'network'): int64_t ns3::BurstErrorModel::AssignStreams(int64_t stream) [member function] cls.add_method('AssignStreams', 'int64_t', [param('int64_t', 'stream')]) ## error-model.h (module 'network'): double ns3::BurstErrorModel::GetBurstRate() const [member function] cls.add_method('GetBurstRate', 'double', [], is_const=True) ## error-model.h (module 'network'): static ns3::TypeId ns3::BurstErrorModel::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## error-model.h (module 'network'): void ns3::BurstErrorModel::SetBurstRate(double rate) [member function] cls.add_method('SetBurstRate', 'void', [param('double', 'rate')]) ## error-model.h (module 'network'): void ns3::BurstErrorModel::SetRandomBurstSize(ns3::Ptr<ns3::RandomVariableStream> burstSz) [member function] cls.add_method('SetRandomBurstSize', 'void', [param('ns3::Ptr< ns3::RandomVariableStream >', 'burstSz')]) ## error-model.h (module 'network'): void ns3::BurstErrorModel::SetRandomVariable(ns3::Ptr<ns3::RandomVariableStream> ranVar) [member function] cls.add_method('SetRandomVariable', 'void', [param('ns3::Ptr< ns3::RandomVariableStream >', 'ranVar')]) ## error-model.h (module 'network'): bool ns3::BurstErrorModel::DoCorrupt(ns3::Ptr<ns3::Packet> p) [member function] cls.add_method('DoCorrupt', 'bool', [param('ns3::Ptr< ns3::Packet >', 'p')], visibility='private', is_virtual=True) ## error-model.h (module 'network'): void ns3::BurstErrorModel::DoReset() [member function] cls.add_method('DoReset', 'void', [], visibility='private', is_virtual=True) return def register_Ns3CsmaNetDevice_methods(root_module, cls): ## csma-net-device.h (module 'csma'): static ns3::TypeId ns3::CsmaNetDevice::GetTypeId() [member function] cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True) ## csma-net-device.h (module 'csma'): ns3::CsmaNetDevice::CsmaNetDevice() [constructor] cls.add_constructor([]) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetInterframeGap(ns3::Time t) [member function] cls.add_method('SetInterframeGap', 'void', [param('ns3::Time', 't')]) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetBackoffParams(ns3::Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t maxRetries, uint32_t ceiling) [member function] cls.add_method('SetBackoffParams', 'void', [param('ns3::Time', 'slotTime'), param('uint32_t', 'minSlots'), param('uint32_t', 'maxSlots'), param('uint32_t', 'maxRetries'), param('uint32_t', 'ceiling')]) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::Attach(ns3::Ptr<ns3::CsmaChannel> ch) [member function] cls.add_method('Attach', 'bool', [param('ns3::Ptr< ns3::CsmaChannel >', 'ch')]) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetQueue(ns3::Ptr<ns3::Queue> queue) [member function] cls.add_method('SetQueue', 'void', [param('ns3::Ptr< ns3::Queue >', 'queue')]) ## csma-net-device.h (module 'csma'): ns3::Ptr<ns3::Queue> ns3::CsmaNetDevice::GetQueue() const [member function] cls.add_method('GetQueue', 'ns3::Ptr< ns3::Queue >', [], is_const=True) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetReceiveErrorModel(ns3::Ptr<ns3::ErrorModel> em) [member function] cls.add_method('SetReceiveErrorModel', 'void', [param('ns3::Ptr< ns3::ErrorModel >', 'em')]) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ptr<ns3::CsmaNetDevice> sender) [member function] cls.add_method('Receive', 'void', [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ptr< ns3::CsmaNetDevice >', 'sender')]) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::IsSendEnabled() [member function] cls.add_method('IsSendEnabled', 'bool', []) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetSendEnable(bool enable) [member function] cls.add_method('SetSendEnable', 'void', [param('bool', 'enable')]) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::IsReceiveEnabled() [member function] cls.add_method('IsReceiveEnabled', 'bool', []) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetReceiveEnable(bool enable) [member function] cls.add_method('SetReceiveEnable', 'void', [param('bool', 'enable')]) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetEncapsulationMode(ns3::CsmaNetDevice::EncapsulationMode mode) [member function] cls.add_method('SetEncapsulationMode', 'void', [param('ns3::CsmaNetDevice::EncapsulationMode', 'mode')]) ## csma-net-device.h (module 'csma'): ns3::CsmaNetDevice::EncapsulationMode ns3::CsmaNetDevice::GetEncapsulationMode() [member function] cls.add_method('GetEncapsulationMode', 'ns3::CsmaNetDevice::EncapsulationMode', []) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', [param('uint32_t const', 'index')], is_virtual=True) ## csma-net-device.h (module 'csma'): uint32_t ns3::CsmaNetDevice::GetIfIndex() const [member function] cls.add_method('GetIfIndex', 'uint32_t', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): ns3::Ptr<ns3::Channel> ns3::CsmaNetDevice::GetChannel() const [member function] cls.add_method('GetChannel', 'ns3::Ptr< ns3::Channel >', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::SetMtu(uint16_t const mtu) [member function] cls.add_method('SetMtu', 'bool', [param('uint16_t const', 'mtu')], is_virtual=True) ## csma-net-device.h (module 'csma'): uint16_t ns3::CsmaNetDevice::GetMtu() const [member function] cls.add_method('GetMtu', 'uint16_t', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetAddress(ns3::Address address) [member function] cls.add_method('SetAddress', 'void', [param('ns3::Address', 'address')], is_virtual=True) ## csma-net-device.h (module 'csma'): ns3::Address ns3::CsmaNetDevice::GetAddress() const [member function] cls.add_method('GetAddress', 'ns3::Address', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::IsLinkUp() const [member function] cls.add_method('IsLinkUp', 'bool', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::AddLinkChangeCallback(ns3::Callback<void,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function] cls.add_method('AddLinkChangeCallback', 'void', [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::IsBroadcast() const [member function] cls.add_method('IsBroadcast', 'bool', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): ns3::Address ns3::CsmaNetDevice::GetBroadcast() const [member function] cls.add_method('GetBroadcast', 'ns3::Address', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::IsMulticast() const [member function] cls.add_method('IsMulticast', 'bool', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): ns3::Address ns3::CsmaNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function] cls.add_method('GetMulticast', 'ns3::Address', [param('ns3::Ipv4Address', 'multicastGroup')], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::IsPointToPoint() const [member function] cls.add_method('IsPointToPoint', 'bool', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::IsBridge() const [member function] cls.add_method('IsBridge', 'bool', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function] cls.add_method('Send', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function] cls.add_method('SendFrom', 'bool', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], is_virtual=True) ## csma-net-device.h (module 'csma'): ns3::Ptr<ns3::Node> ns3::CsmaNetDevice::GetNode() const [member function] cls.add_method('GetNode', 'ns3::Ptr< ns3::Node >', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function] cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')], is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::NeedsArp() const [member function] cls.add_method('NeedsArp', 'bool', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function] cls.add_method('SetReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], is_virtual=True) ## csma-net-device.h (module 'csma'): ns3::Address ns3::CsmaNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function] cls.add_method('GetMulticast', 'ns3::Address', [param('ns3::Ipv6Address', 'addr')], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function] cls.add_method('SetPromiscReceiveCallback', 'void', [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], is_virtual=True) ## csma-net-device.h (module 'csma'): bool ns3::CsmaNetDevice::SupportsSendFrom() const [member function] cls.add_method('SupportsSendFrom', 'bool', [], is_const=True, is_virtual=True) ## csma-net-device.h (module 'csma'): int64_t ns3::CsmaNetDevice::AssignStreams(int64_t stream) [member function] cls.add_method('AssignStreams', 'int64_t', [param('int64_t', 'stream')]) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::DoDispose() [member function] cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True) ## csma-net-device.h (module 'csma'): void ns3::CsmaNetDevice::AddHeader(ns3::Ptr<ns3::Packet> p, ns3::Mac48Address source, ns3::Mac48Address dest, uint16_t protocolNumber) [member function] cls.add_method('AddHeader', 'void', [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Mac48Address', 'source'), param('ns3::Mac48Address', 'dest'), param('uint16_t', 'protocolNumber')], visibility='protected') return def register_Ns3HashImplementation_methods(root_module, cls): ## hash-function.h (module 'core'): ns3::Hash::Implementation::Implementation(ns3::Hash::Implementation const & arg0) [copy constructor] cls.add_constructor([param('ns3::Hash::Implementation const &', 'arg0')]) ## hash-function.h (module 'core'): ns3::Hash::Implementation::Implementation() [constructor] cls.add_constructor([]) ## hash-function.h (module 'core'): uint32_t ns3::Hash::Implementation::GetHash32(char const * buffer, size_t const size) [member function] cls.add_method('GetHash32', 'uint32_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_pure_virtual=True, is_virtual=True) ## hash-function.h (module 'core'): uint64_t ns3::Hash::Implementation::GetHash64(char const * buffer, size_t const size) [member function] cls.add_method('GetHash64', 'uint64_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_virtual=True) ## hash-function.h (module 'core'): void ns3::Hash::Implementation::clear() [member function] cls.add_method('clear', 'void', [], is_pure_virtual=True, is_virtual=True) return def register_Ns3HashFunctionFnv1a_methods(root_module, cls): ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a::Fnv1a(ns3::Hash::Function::Fnv1a const & arg0) [copy constructor] cls.add_constructor([param('ns3::Hash::Function::Fnv1a const &', 'arg0')]) ## hash-fnv.h (module 'core'): ns3::Hash::Function::Fnv1a::Fnv1a() [constructor] cls.add_constructor([]) ## hash-fnv.h (module 'core'): uint32_t ns3::Hash::Function::Fnv1a::GetHash32(char const * buffer, size_t const size) [member function] cls.add_method('GetHash32', 'uint32_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_virtual=True) ## hash-fnv.h (module 'core'): uint64_t ns3::Hash::Function::Fnv1a::GetHash64(char const * buffer, size_t const size) [member function] cls.add_method('GetHash64', 'uint64_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_virtual=True) ## hash-fnv.h (module 'core'): void ns3::Hash::Function::Fnv1a::clear() [member function] cls.add_method('clear', 'void', [], is_virtual=True) return def register_Ns3HashFunctionHash32_methods(root_module, cls): ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32::Hash32(ns3::Hash::Function::Hash32 const & arg0) [copy constructor] cls.add_constructor([param('ns3::Hash::Function::Hash32 const &', 'arg0')]) ## hash-function.h (module 'core'): ns3::Hash::Function::Hash32::Hash32(ns3::Hash::Hash32Function_ptr hp) [constructor] cls.add_constructor([param('ns3::Hash::Hash32Function_ptr', 'hp')]) ## hash-function.h (module 'core'): uint32_t ns3::Hash::Function::Hash32::GetHash32(char const * buffer, size_t const size) [member function] cls.add_method('GetHash32', 'uint32_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_virtual=True) ## hash-function.h (module 'core'): void ns3::Hash::Function::Hash32::clear() [member function] cls.add_method('clear', 'void', [], is_virtual=True) return def register_Ns3HashFunctionHash64_methods(root_module, cls): ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64::Hash64(ns3::Hash::Function::Hash64 const & arg0) [copy constructor] cls.add_constructor([param('ns3::Hash::Function::Hash64 const &', 'arg0')]) ## hash-function.h (module 'core'): ns3::Hash::Function::Hash64::Hash64(ns3::Hash::Hash64Function_ptr hp) [constructor] cls.add_constructor([param('ns3::Hash::Hash64Function_ptr', 'hp')]) ## hash-function.h (module 'core'): uint32_t ns3::Hash::Function::Hash64::GetHash32(char const * buffer, size_t const size) [member function] cls.add_method('GetHash32', 'uint32_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_virtual=True) ## hash-function.h (module 'core'): uint64_t ns3::Hash::Function::Hash64::GetHash64(char const * buffer, size_t const size) [member function] cls.add_method('GetHash64', 'uint64_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_virtual=True) ## hash-function.h (module 'core'): void ns3::Hash::Function::Hash64::clear() [member function] cls.add_method('clear', 'void', [], is_virtual=True) return def register_Ns3HashFunctionMurmur3_methods(root_module, cls): ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3::Murmur3(ns3::Hash::Function::Murmur3 const & arg0) [copy constructor] cls.add_constructor([param('ns3::Hash::Function::Murmur3 const &', 'arg0')]) ## hash-murmur3.h (module 'core'): ns3::Hash::Function::Murmur3::Murmur3() [constructor] cls.add_constructor([]) ## hash-murmur3.h (module 'core'): uint32_t ns3::Hash::Function::Murmur3::GetHash32(char const * buffer, size_t const size) [member function] cls.add_method('GetHash32', 'uint32_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_virtual=True) ## hash-murmur3.h (module 'core'): uint64_t ns3::Hash::Function::Murmur3::GetHash64(char const * buffer, size_t const size) [member function] cls.add_method('GetHash64', 'uint64_t', [param('char const *', 'buffer'), param('size_t const', 'size')], is_virtual=True) ## hash-murmur3.h (module 'core'): void ns3::Hash::Function::Murmur3::clear() [member function] cls.add_method('clear', 'void', [], is_virtual=True) return def register_functions(root_module): module = root_module register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module) register_functions_ns3_Hash(module.get_submodule('Hash'), root_module) register_functions_ns3_TracedValueCallback(module.get_submodule('TracedValueCallback'), root_module) return def register_functions_ns3_FatalImpl(module, root_module): return def register_functions_ns3_Hash(module, root_module): register_functions_ns3_Hash_Function(module.get_submodule('Function'), root_module) return def register_functions_ns3_Hash_Function(module, root_module): return def register_functions_ns3_TracedValueCallback(module, root_module): return def main(): out = FileCodeSink(sys.stdout) root_module = module_init() register_types(root_module) register_methods(root_module) register_functions(root_module) root_module.generate(out) if __name__ == '__main__': main()
rversteegen/commandergenius
refs/heads/sdl_android
project/jni/python/src/Lib/plat-sunos5/TYPES.py
75
# Generated by h2py from /usr/include/sys/types.h # Included from sys/isa_defs.h _CHAR_ALIGNMENT = 1 _SHORT_ALIGNMENT = 2 _INT_ALIGNMENT = 4 _LONG_ALIGNMENT = 8 _LONG_LONG_ALIGNMENT = 8 _DOUBLE_ALIGNMENT = 8 _LONG_DOUBLE_ALIGNMENT = 16 _POINTER_ALIGNMENT = 8 _MAX_ALIGNMENT = 16 _ALIGNMENT_REQUIRED = 1 _CHAR_ALIGNMENT = 1 _SHORT_ALIGNMENT = 2 _INT_ALIGNMENT = 4 _LONG_ALIGNMENT = 4 _LONG_LONG_ALIGNMENT = 4 _DOUBLE_ALIGNMENT = 4 _LONG_DOUBLE_ALIGNMENT = 4 _POINTER_ALIGNMENT = 4 _MAX_ALIGNMENT = 4 _ALIGNMENT_REQUIRED = 0 _CHAR_ALIGNMENT = 1 _SHORT_ALIGNMENT = 2 _INT_ALIGNMENT = 4 _LONG_LONG_ALIGNMENT = 8 _DOUBLE_ALIGNMENT = 8 _ALIGNMENT_REQUIRED = 1 _LONG_ALIGNMENT = 4 _LONG_DOUBLE_ALIGNMENT = 8 _POINTER_ALIGNMENT = 4 _MAX_ALIGNMENT = 8 _LONG_ALIGNMENT = 8 _LONG_DOUBLE_ALIGNMENT = 16 _POINTER_ALIGNMENT = 8 _MAX_ALIGNMENT = 16 # Included from sys/feature_tests.h _POSIX_C_SOURCE = 1 _LARGEFILE64_SOURCE = 1 _LARGEFILE_SOURCE = 1 _FILE_OFFSET_BITS = 64 _FILE_OFFSET_BITS = 32 _POSIX_C_SOURCE = 199506L _POSIX_PTHREAD_SEMANTICS = 1 _XOPEN_VERSION = 500 _XOPEN_VERSION = 4 _XOPEN_VERSION = 3 # Included from sys/machtypes.h # Included from sys/inttypes.h # Included from sys/int_types.h # Included from sys/int_limits.h INT8_MAX = (127) INT16_MAX = (32767) INT32_MAX = (2147483647) INTMAX_MAX = INT32_MAX INT_LEAST8_MAX = INT8_MAX INT_LEAST16_MAX = INT16_MAX INT_LEAST32_MAX = INT32_MAX INT8_MIN = (-128) INT16_MIN = (-32767-1) INT32_MIN = (-2147483647-1) INTMAX_MIN = INT32_MIN INT_LEAST8_MIN = INT8_MIN INT_LEAST16_MIN = INT16_MIN INT_LEAST32_MIN = INT32_MIN # Included from sys/int_const.h def INT8_C(c): return (c) def INT16_C(c): return (c) def INT32_C(c): return (c) def INT64_C(c): return __CONCAT__(c,l) def INT64_C(c): return __CONCAT__(c,ll) def UINT8_C(c): return __CONCAT__(c,u) def UINT16_C(c): return __CONCAT__(c,u) def UINT32_C(c): return __CONCAT__(c,u) def UINT64_C(c): return __CONCAT__(c,ul) def UINT64_C(c): return __CONCAT__(c,ull) def INTMAX_C(c): return __CONCAT__(c,l) def UINTMAX_C(c): return __CONCAT__(c,ul) def INTMAX_C(c): return __CONCAT__(c,ll) def UINTMAX_C(c): return __CONCAT__(c,ull) def INTMAX_C(c): return (c) def UINTMAX_C(c): return (c) # Included from sys/int_fmtio.h PRId8 = "d" PRId16 = "d" PRId32 = "d" PRId64 = "ld" PRId64 = "lld" PRIdLEAST8 = "d" PRIdLEAST16 = "d" PRIdLEAST32 = "d" PRIdLEAST64 = "ld" PRIdLEAST64 = "lld" PRIi8 = "i" PRIi16 = "i" PRIi32 = "i" PRIi64 = "li" PRIi64 = "lli" PRIiLEAST8 = "i" PRIiLEAST16 = "i" PRIiLEAST32 = "i" PRIiLEAST64 = "li" PRIiLEAST64 = "lli" PRIo8 = "o" PRIo16 = "o" PRIo32 = "o" PRIo64 = "lo" PRIo64 = "llo" PRIoLEAST8 = "o" PRIoLEAST16 = "o" PRIoLEAST32 = "o" PRIoLEAST64 = "lo" PRIoLEAST64 = "llo" PRIx8 = "x" PRIx16 = "x" PRIx32 = "x" PRIx64 = "lx" PRIx64 = "llx" PRIxLEAST8 = "x" PRIxLEAST16 = "x" PRIxLEAST32 = "x" PRIxLEAST64 = "lx" PRIxLEAST64 = "llx" PRIX8 = "X" PRIX16 = "X" PRIX32 = "X" PRIX64 = "lX" PRIX64 = "llX" PRIXLEAST8 = "X" PRIXLEAST16 = "X" PRIXLEAST32 = "X" PRIXLEAST64 = "lX" PRIXLEAST64 = "llX" PRIu8 = "u" PRIu16 = "u" PRIu32 = "u" PRIu64 = "lu" PRIu64 = "llu" PRIuLEAST8 = "u" PRIuLEAST16 = "u" PRIuLEAST32 = "u" PRIuLEAST64 = "lu" PRIuLEAST64 = "llu" SCNd16 = "hd" SCNd32 = "d" SCNd64 = "ld" SCNd64 = "lld" SCNi16 = "hi" SCNi32 = "i" SCNi64 = "li" SCNi64 = "lli" SCNo16 = "ho" SCNo32 = "o" SCNo64 = "lo" SCNo64 = "llo" SCNu16 = "hu" SCNu32 = "u" SCNu64 = "lu" SCNu64 = "llu" SCNx16 = "hx" SCNx32 = "x" SCNx64 = "lx" SCNx64 = "llx" PRIdMAX = "ld" PRIoMAX = "lo" PRIxMAX = "lx" PRIuMAX = "lu" PRIdMAX = "lld" PRIoMAX = "llo" PRIxMAX = "llx" PRIuMAX = "llu" PRIdMAX = "d" PRIoMAX = "o" PRIxMAX = "x" PRIuMAX = "u" SCNiMAX = "li" SCNdMAX = "ld" SCNoMAX = "lo" SCNxMAX = "lx" SCNiMAX = "lli" SCNdMAX = "lld" SCNoMAX = "llo" SCNxMAX = "llx" SCNiMAX = "i" SCNdMAX = "d" SCNoMAX = "o" SCNxMAX = "x" # Included from sys/types32.h SHRT_MIN = (-32768) SHRT_MAX = 32767 USHRT_MAX = 65535 INT_MIN = (-2147483647-1) INT_MAX = 2147483647 LONG_MIN = (-9223372036854775807L-1L) LONG_MAX = 9223372036854775807L LONG_MIN = (-2147483647L-1L) LONG_MAX = 2147483647L P_MYID = (-1) # Included from sys/select.h # Included from sys/time.h TIME32_MAX = INT32_MAX TIME32_MIN = INT32_MIN def TIMEVAL_OVERFLOW(tv): return \ from TYPES import * DST_NONE = 0 DST_USA = 1 DST_AUST = 2 DST_WET = 3 DST_MET = 4 DST_EET = 5 DST_CAN = 6 DST_GB = 7 DST_RUM = 8 DST_TUR = 9 DST_AUSTALT = 10 ITIMER_REAL = 0 ITIMER_VIRTUAL = 1 ITIMER_PROF = 2 ITIMER_REALPROF = 3 def ITIMERVAL_OVERFLOW(itv): return \ SEC = 1 MILLISEC = 1000 MICROSEC = 1000000 NANOSEC = 1000000000 # Included from sys/time_impl.h def TIMESPEC_OVERFLOW(ts): return \ def ITIMERSPEC_OVERFLOW(it): return \ __CLOCK_REALTIME0 = 0 CLOCK_VIRTUAL = 1 CLOCK_PROF = 2 __CLOCK_REALTIME3 = 3 CLOCK_HIGHRES = 4 CLOCK_MAX = 5 CLOCK_REALTIME = __CLOCK_REALTIME3 CLOCK_REALTIME = __CLOCK_REALTIME0 TIMER_RELTIME = 0x0 TIMER_ABSTIME = 0x1 # Included from sys/mutex.h from TYPES import * def MUTEX_HELD(x): return (mutex_owned(x)) def TICK_TO_SEC(tick): return ((tick) / hz) def SEC_TO_TICK(sec): return ((sec) * hz) def TICK_TO_MSEC(tick): return \ def MSEC_TO_TICK(msec): return \ def MSEC_TO_TICK_ROUNDUP(msec): return \ def TICK_TO_USEC(tick): return ((tick) * usec_per_tick) def USEC_TO_TICK(usec): return ((usec) / usec_per_tick) def USEC_TO_TICK_ROUNDUP(usec): return \ def TICK_TO_NSEC(tick): return ((tick) * nsec_per_tick) def NSEC_TO_TICK(nsec): return ((nsec) / nsec_per_tick) def NSEC_TO_TICK_ROUNDUP(nsec): return \ def TIMEVAL_TO_TICK(tvp): return \ def TIMESTRUC_TO_TICK(tsp): return \ # Included from time.h from TYPES import * # Included from iso/time_iso.h NULL = 0L NULL = 0 CLOCKS_PER_SEC = 1000000 FD_SETSIZE = 65536 FD_SETSIZE = 1024 _NBBY = 8 NBBY = _NBBY def FD_ZERO(p): return bzero((p), sizeof (*(p)))
fxtentacle/phantomjs
refs/heads/master
src/breakpad/src/third_party/protobuf/protobuf/examples/list_people.py
429
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.name if person.HasField('email'): print " E-mail address:", person.email for phone_number in person.phone: if phone_number.type == addressbook_pb2.Person.MOBILE: print " Mobile phone #:", elif phone_number.type == addressbook_pb2.Person.HOME: print " Home phone #:", elif phone_number.type == addressbook_pb2.Person.WORK: print " Work phone #:", print phone_number.number # Main procedure: Reads the entire address book from a file and prints all # the information inside. if len(sys.argv) != 2: print "Usage:", sys.argv[0], "ADDRESS_BOOK_FILE" sys.exit(-1) address_book = addressbook_pb2.AddressBook() # Read the existing address book. f = open(sys.argv[1], "rb") address_book.ParseFromString(f.read()) f.close() ListPeople(address_book)
saturngod/pyWebTest-gitbook
refs/heads/master
book/js/Lib/unittest/__main__.py
13
"""Main entry point""" import sys if sys.argv[0].endswith("__main__.py"): import os.path # We change sys.argv[0] to make help message more useful # use executable without path, unquoted # (it's just a hint anyway) # (if you have spaces in your executable you get what you deserve!) executable = os.path.basename(sys.executable) sys.argv[0] = executable + " -m unittest" del os __unittest = True from .main import main, TestProgram, USAGE_AS_MAIN TestProgram.USAGE = USAGE_AS_MAIN main(module=None)
wkschwartz/django
refs/heads/stable/3.2.x
tests/migrations/test_migrations_squashed_complex/2_auto.py
266
from django.db import migrations class Migration(migrations.Migration): dependencies = [("migrations", "1_auto")] operations = [ migrations.RunPython(migrations.RunPython.noop) ]
hwine/build-relengapi
refs/heads/master
relengapi/lib/api.py
3
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import absolute_import import functools import sys import traceback import werkzeug import wsme import wsme.api import wsme.rest.args import wsme.rest.json import wsme.types from flask import Response from flask import current_app from flask import g from flask import json from flask import jsonify from flask import render_template from flask import request from werkzeug.exceptions import BadRequest from werkzeug.exceptions import HTTPException from relengapi import util class JsonHandler(object): """Handler for requests accepting application/json.""" media_type = 'application/json' def render_response(self, result, code, headers): resp = jsonify( result=result, request_id=g.request_id) resp.status_code = code resp.headers.extend(headers) return resp def handle_exception(self, exc_type, exc_value, exc_tb): if isinstance(exc_value, HTTPException): resp = jsonify(error={ 'code': exc_value.code, 'name': exc_value.name, 'description': exc_value.description, }, request_id=g.request_id) resp.status_code = exc_value.code else: current_app.log_exception((exc_type, exc_value, exc_tb)) error = { 'code': 500, 'name': 'Internal Server Error', 'description': 'Enable debug mode for more information', } if current_app.debug: error['traceback'] = traceback.format_exc().split('\n') error['name'] = exc_type.__name__ error['description'] = str(exc_value) resp = jsonify(error=error, request_id=g.request_id) resp.status_code = 500 return resp class HtmlHandler(object): """Handler for requests accepting text/html""" media_type = 'text/html' def render_response(self, result, code, headers): json_ = json.dumps(dict(result=result), indent=4) tpl = render_template('api_json.html', json=json_) return Response(tpl, code, headers) def handle_exception(self, exc_type, exc_value, exc_tb): if isinstance(exc_value, HTTPException): return current_app.handle_http_exception(exc_value) else: raise exc_type, exc_value, exc_tb def _get_handler(): """Get an appropriate handler based on the request""" return HtmlHandler() if util.is_browser() else JsonHandler() def apimethod(return_type, *arg_types, **options): def wrap(wrapped): # adapted from wsmeext.flask (MIT-licensed) wsme.signature(return_type, *arg_types, **options)(wrapped) funcdef = wsme.api.FunctionDefinition.get(wrapped) funcdef.resolve_types(wsme.types.registry) @functools.wraps(wrapped) def replacement(*args, **kwargs): data_only = kwargs.pop('_data_only_', False) if data_only: return wrapped(*args, **kwargs) try: args, kwargs = wsme.rest.args.get_args( funcdef, args, kwargs, request.args, request.form, request.data, request.mimetype) except wsme.exc.ClientSideError as e: raise BadRequest(e.faultstring) result = wrapped(*args, **kwargs) # if this is a Response (e.g., a redirect), just return it if isinstance(result, werkzeug.Response): return result # parse the result, if it was a tuple code = 200 headers = {} if isinstance(result, tuple): if len(result) == 2: if isinstance(result[1], dict): result, headers = result else: result, code = result else: result, code, headers = result assert 200 <= code < 299 # convert the objects into jsonable simple types, also checking # the type at the same time result = wsme.rest.json.tojson(funcdef.return_type, result) # and hand to render_response, which will actually # generate the appropriate string form h = _get_handler() return h.render_response(result, code, headers) replacement.__apidoc__ = wrapped.__doc__ return replacement return wrap def get_data(view_func, *args, **kwargs): kwargs['_data_only_'] = True # flag this as a subrequest, so that is_browser returns False request.is_subrequest = True try: rv = view_func(*args, **kwargs) finally: del request.is_subrequest if isinstance(rv, werkzeug.Response): # this generally indicates that some other decorator decided to handle # making the response itself -- at any rate, not what we want! raise ValueError("cannot access data required for page") return rv class JsonObject(wsme.types.UserType): basetype = dict name = 'JsonObject' def validate(self, value): if not isinstance(value, dict): raise ValueError("Wrong type. Expected JSON object, got '%s'" % (type(value),)) # try dumping it to make sure it's JSON-able try: json.dumps(value) except Exception: raise ValueError("Cannot be converted to JSON") return value # provide a single instance for use in WSME types jsonObject = JsonObject() def dumps(datatype, obj): return json.dumps(wsme.rest.json.tojson(datatype, obj)) def loads(datatype, data): return wsme.rest.json.fromjson(datatype, json.loads(data)) def init_app(app): # install a universal error handler that will render errors based on the # Accept header in the request @app.errorhandler(Exception) def exc_handler(error): exc_type, exc_value, tb = sys.exc_info() h = _get_handler() return h.handle_exception(exc_type, exc_value, tb) # always trap http exceptions; the HTML handler will render them # as expected, but the JSON handler needs its chance, too app.trap_http_exception = lambda e: True # create a new subclass of the current json_encoder, that can handle # encoding WSME types old_json_encoder = app.json_encoder class WSMEEncoder(old_json_encoder): """A mixin for JSONEncoder which can handle WSME types""" def default(self, o): if isinstance(o, wsme.types.Base): return wsme.rest.json.tojson(type(o), o) return old_json_encoder.default(self, o) app.json_encoder = WSMEEncoder
rob-smallshire/asq
refs/heads/master
asq/examples/mandelbrot.py
6
'''A conversion of Jon Skeet's LINQ Mandelbrot from LINQ to asq. The original can be found at http://msmvps.com/blogs/jon_skeet/archive/2008/02/26/visualising-the-mandelbrot-set-with-linq-yet-again.aspx ''' import colorsys #import Image from asq.initiators import integers, query def generate(start, func): value = start while True: yield value value = func(value) def colnorm(r, g, b): return (int(255 * r) - 1, int(255 * g) - 1, int(255 * b) - 1) def col(n, max): if n == max: return (0, 0, 0) return colnorm(colorsys.hsv_to_rgb(0.0, 1.0, float(n) / max)) def mandelbrot(): MaxIterations = 200 SampleWidth = 3.2 SampleHeight = 2.5 OffsetX = -2.1 OffsetY = -1.25 ImageWidth = 480 ImageHeight = int(SampleHeight * ImageWidth / SampleWidth) query = integers(0, ImageHeight).select(lambda y: (y * SampleHeight) / ImageHeight + OffsetY) \ .select_many_with_correspondence( lambda y: integers(0, ImageWidth).select(lambda x: (x * SampleWidth) / ImageWidth + OffsetX), lambda y, x: (x, y)) \ .select(lambda real_imag: complex(*real_imag)) \ .select(lambda c: query(generate(c, lambda x: x * x + c)) .take_while(lambda x: x.real ** 2 + x.imag ** 2 < 4) .take(MaxIterations) .count()) \ .select(lambda c: ((c * 7) % 255, (c * 5) % 255, (c * 11) % 255) if c != MaxIterations else (0, 0, 0)) data = q.to_list() image = Image.new("RGB", (ImageWidth, ImageHeight)) image.putdata(data) image.show() if __name__ == '__main__': mandelbrot()
ewienik/unte
refs/heads/master
tests/unte-ut-update_file.py
1
# UT| python2 {src_file} from __future__ import print_function # UT[ ../unte.py * update_file def update_file(path, tags): tags_db = dict([ [tag['file'], extract_tags(tag['file'])] for tag in tags['insert'] ]) temp_dst = tempfile.TemporaryFile(mode='w+') compile_file(temp_dst, path, tags, tags_db) temp_dst.seek(0) shutil.copyfileobj(temp_dst, open(path, 'w')) # UT] class tempfile: # noqa class TemporaryFile: id = 0 def __init__(self, mode=''): self.id = tempfile.TemporaryFile.id tempfile.TemporaryFile.id += 1 print('tempfile.TemporaryFile.__init__(%d, mode=%s)' % ( self.id, mode )) def seek(self, value): print('tempfile.TemporaryFile.seek(%d, %s)' % (self.id, value)) class shutil: # noqa @staticmethod def copyfileobj(src, dst): print('shutil.copyfileobj(%s, %s)' % (src.id, dst)) def compile_file(dst, src, tags, tags_db): print('compile_file(\n %s,\n %s,\n %s,\n %s\n)' % ( dst.id, src, tags, tags_db )) def extract_tags(path): r = 'tags_from.' + path print('extract_tags(%s): %s' % (path, r)) return r def open(path, mode): r = 'open.' + path print('open(%s, %s): %s' % (path, mode, r)) return r if __name__ == "__main__": update_file('path', {'insert': [{'file': 'f1'}, {'file': 'f2'}]}) # UT> extract_tags(f1): tags_from.f1 # UT> extract_tags(f2): tags_from.f2 # UT> tempfile.TemporaryFile.__init__(0, mode=w+) # UT> compile_file( # UT> 0, # UT> path, # UT> {'insert': [{'file': 'f1'}, {'file': 'f2'}]}, # UT> {'f1': 'tags_from.f1', 'f2': 'tags_from.f2'} # UT> ) # UT> tempfile.TemporaryFile.seek(0, 0) # UT> open(path, w): open.path # UT> shutil.copyfileobj(0, open.path)
marratj/ansible
refs/heads/devel
lib/ansible/modules/cloud/ovirt/ovirt_permissions_facts.py
59
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2016 Red Hat, Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. # ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: ovirt_permissions_facts short_description: Retrieve facts about one or more oVirt/RHV permissions author: "Ondra Machacek (@machacekondra)" version_added: "2.3" description: - "Retrieve facts about one or more oVirt/RHV permissions." notes: - "This module creates a new top-level C(ovirt_permissions) fact, which contains a list of permissions." options: user_name: description: - "Username of the user to manage. In most LDAPs it's I(uid) of the user, but in Active Directory you must specify I(UPN) of the user." group_name: description: - "Name of the group to manage." authz_name: description: - "Authorization provider of the user/group. In previous versions of oVirt/RHV known as domain." required: true aliases: ['domain'] namespace: description: - "Namespace of the authorization provider, where user/group resides." required: false extends_documentation_fragment: ovirt_facts ''' EXAMPLES = ''' # Examples don't contain auth parameter for simplicity, # look at ovirt_auth module to see how to reuse authentication: # Gather facts about all permissions of user with username C(john): - ovirt_permissions_facts: user_name: john authz_name: example.com-authz - debug: var: ovirt_permissions ''' RETURN = ''' ovirt_permissions: description: "List of dictionaries describing the permissions. Permission attribues are mapped to dictionary keys, all permissions attributes can be found at following url: http://ovirt.github.io/ovirt-engine-api-model/master/#types/permission." returned: On success. type: list ''' import traceback try: import ovirtsdk4 as sdk except ImportError: pass from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.ovirt import ( check_sdk, create_connection, get_link_name, ovirt_facts_full_argument_spec, search_by_name, ) def _permissions_service(connection, module): if module.params['user_name']: service = connection.system_service().users_service() entity = search_by_name(service, module.params['user_name']) else: service = connection.system_service().groups_service() entity = search_by_name(service, module.params['group_name']) if entity is None: raise Exception("User/Group wasn't found.") return service.service(entity.id).permissions_service() def main(): argument_spec = ovirt_facts_full_argument_spec( authz_name=dict(required=True, aliases=['domain']), user_name=dict(rdefault=None), group_name=dict(default=None), namespace=dict(default=None), ) module = AnsibleModule(argument_spec) check_sdk(module) try: auth = module.params.pop('auth') connection = create_connection(auth) permissions_service = _permissions_service(connection, module) permissions = [] for p in permissions_service.list(): newperm = dict() for key, value in p.__dict__.items(): if value and isinstance(value, sdk.Struct): newperm[key[1:]] = get_link_name(connection, value) permissions.append(newperm) module.exit_json( changed=False, ansible_facts=dict(ovirt_permissions=permissions), ) except Exception as e: module.fail_json(msg=str(e), exception=traceback.format_exc()) finally: connection.close(logout=auth.get('token') is None) if __name__ == '__main__': main()
srijanmishra/django-facebook
refs/heads/master
django_facebook/auth.py
2
from django.conf import settings from django.contrib.auth.models import User from django.contrib.auth.backends import ModelBackend import facebook class FacebookBackend(ModelBackend): """ Authenticate a facebook user. """ def authenticate(self, fb_uid=None, fb_graphtoken=None): """ If we receive a facebook uid then the cookie has already been validated. """ if fb_uid: user, created = User.objects.get_or_create(username=fb_uid) return user return None class FacebookProfileBackend(ModelBackend): """ Authenticate a facebook user and autopopulate facebook data into the users profile. """ def authenticate(self, fb_uid=None, fb_graphtoken=None): """ If we receive a facebook uid then the cookie has already been validated. """ if fb_uid and fb_graphtoken: user, created = User.objects.get_or_create(username=fb_uid) if created: # It would be nice to replace this with an asynchronous request graph = facebook.GraphAPI(fb_graphtoken) me = graph.get_object('me') if me: if me.get('first_name'): user.first_name = me['first_name'] if me.get('last_name'): user.last_name = me['last_name'] if me.get('email'): user.email = me['email'] user.save() return user return None
IllusionRom-deprecated/android_platform_tools_idea
refs/heads/master
python/testData/refactoring/extractmethod/ClassWithoutInit.before.py
83
def foo(): <selection>class C(object): pass c = C()</selection> return c
surajssd/kuma
refs/heads/master
vendor/packages/translate/convert/tiki2po.py
25
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2008 Mozilla Corporation, Zuza Software Foundation # # This file is part of translate. # # translate is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # translate 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <http://www.gnu.org/licenses/>. """Convert TikiWiki's language.php files to GetText PO files. See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/tiki2po.html for examples and usage instructions. """ import sys from translate.storage import po, tiki class tiki2po: def __init__(self, includeunused=False): """ :param includeunused: On conversion, should the "unused" section be preserved? Default: False """ self.includeunused = includeunused def convertstore(self, thetikifile): """Converts a given (parsed) tiki file to a po file. :param thetikifile: a tikifile pre-loaded with input data """ thetargetfile = po.pofile() # For each lang unit, make the new po unit accordingly for unit in thetikifile.units: if not self.includeunused and "unused" in unit.getlocations(): continue newunit = po.pounit() newunit.source = unit.source newunit.settarget(unit.target) locations = unit.getlocations() if locations: newunit.addlocations(locations) thetargetfile.addunit(newunit) return thetargetfile def converttiki(inputfile, outputfile, template=None, includeunused=False): """Converts from tiki file format to po. :param inputfile: file handle of the source :param outputfile: file handle to write to :param template: unused :param includeunused: Include the "usused" section of the tiki file? Default: False """ convertor = tiki2po(includeunused=includeunused) inputstore = tiki.TikiStore(inputfile) outputstore = convertor.convertstore(inputstore) if outputstore.isempty(): return False outputfile.write(str(outputstore)) return True def main(argv=None): """Converts tiki .php files to .po.""" from translate.convert import convert from translate.misc import stdiotell sys.stdout = stdiotell.StdIOWrapper(sys.stdout) formats = {"php": ("po", converttiki)} parser = convert.ConvertOptionParser(formats, description=__doc__) parser.add_option("", "--include-unused", dest="includeunused", action="store_true", default=False, help="Include strings in the unused section") parser.passthrough.append("includeunused") parser.run(argv) if __name__ == '__main__': main()
xuxiao19910803/edx
refs/heads/master
lms/djangoapps/courseware/migrations/0005_auto__add_offlinecomputedgrade__add_unique_offlinecomputedgrade_user_c.py
194
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'OfflineComputedGrade' db.create_table('courseware_offlinecomputedgrade', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), ('course_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, null=True, db_index=True, blank=True)), ('updated', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, db_index=True, blank=True)), ('gradeset', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), )) db.send_create_signal('courseware', ['OfflineComputedGrade']) # Adding unique constraint on 'OfflineComputedGrade', fields ['user', 'course_id'] db.create_unique('courseware_offlinecomputedgrade', ['user_id', 'course_id']) # Adding model 'OfflineComputedGradeLog' db.create_table('courseware_offlinecomputedgradelog', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('course_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)), ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, null=True, db_index=True, blank=True)), ('seconds', self.gf('django.db.models.fields.IntegerField')(default=0)), ('nstudents', self.gf('django.db.models.fields.IntegerField')(default=0)), )) db.send_create_signal('courseware', ['OfflineComputedGradeLog']) def backwards(self, orm): # Removing unique constraint on 'OfflineComputedGrade', fields ['user', 'course_id'] db.delete_unique('courseware_offlinecomputedgrade', ['user_id', 'course_id']) # Deleting model 'OfflineComputedGrade' db.delete_table('courseware_offlinecomputedgrade') # Deleting model 'OfflineComputedGradeLog' db.delete_table('courseware_offlinecomputedgradelog') models = { 'auth.group': { 'Meta': {'object_name': 'Group'}, 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) }, 'auth.permission': { 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) }, 'auth.user': { 'Meta': {'object_name': 'User'}, 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) }, 'contenttypes.contenttype': { 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) }, 'courseware.offlinecomputedgrade': { 'Meta': {'unique_together': "(('user', 'course_id'),)", 'object_name': 'OfflineComputedGrade'}, 'course_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'db_index': 'True', 'blank': 'True'}), 'gradeset': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}), 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) }, 'courseware.offlinecomputedgradelog': { 'Meta': {'object_name': 'OfflineComputedGradeLog'}, 'course_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'db_index': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'nstudents': ('django.db.models.fields.IntegerField', [], {'default': '0'}), 'seconds': ('django.db.models.fields.IntegerField', [], {'default': '0'}) }, 'courseware.studentmodule': { 'Meta': {'unique_together': "(('student', 'module_state_key', 'course_id'),)", 'object_name': 'StudentModule'}, 'course_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}), 'done': ('django.db.models.fields.CharField', [], {'default': "'na'", 'max_length': '8', 'db_index': 'True'}), 'grade': ('django.db.models.fields.FloatField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}), 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'max_grade': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}), 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}), 'module_state_key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_column': "'module_id'", 'db_index': 'True'}), 'module_type': ('django.db.models.fields.CharField', [], {'default': "'problem'", 'max_length': '32', 'db_index': 'True'}), 'state': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), 'student': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}) } } complete_apps = ['courseware']
redhat-openstack/python-openstackclient
refs/heads/master-patches
openstackclient/compute/v2/console.py
1
# Copyright 2012-2013 OpenStack Foundation # # 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. # """Compute v2 Console action implementations""" import six import sys from openstackclient.common import command from openstackclient.common import parseractions from openstackclient.common import utils from openstackclient.i18n import _ class ShowConsoleLog(command.Command): """Show server's console output""" def get_parser(self, prog_name): parser = super(ShowConsoleLog, self).get_parser(prog_name) parser.add_argument( 'server', metavar='<server>', help=_("Server to show console log (name or ID)") ) parser.add_argument( '--lines', metavar='<num-lines>', type=int, default=None, action=parseractions.NonNegativeAction, help=_("Number of lines to display from the end of the log " "(default=all)") ) return parser def take_action(self, parsed_args): compute_client = self.app.client_manager.compute server = utils.find_resource( compute_client.servers, parsed_args.server, ) length = parsed_args.lines if length: # NOTE(dtroyer): get_console_output() appears to shortchange the # output by one line length += 1 data = server.get_console_output(length=length) sys.stdout.write(data) class ShowConsoleURL(command.ShowOne): """Show server's remote console URL""" def get_parser(self, prog_name): parser = super(ShowConsoleURL, self).get_parser(prog_name) parser.add_argument( 'server', metavar='<server>', help=_("Server to show URL (name or ID)") ) type_group = parser.add_mutually_exclusive_group() type_group.add_argument( '--novnc', dest='url_type', action='store_const', const='novnc', default='novnc', help=_("Show noVNC console URL (default)") ) type_group.add_argument( '--xvpvnc', dest='url_type', action='store_const', const='xvpvnc', help=_("Show xpvnc console URL") ) type_group.add_argument( '--spice', dest='url_type', action='store_const', const='spice', help=_("Show SPICE console URL") ) return parser def take_action(self, parsed_args): compute_client = self.app.client_manager.compute server = utils.find_resource( compute_client.servers, parsed_args.server, ) if parsed_args.url_type in ['novnc', 'xvpvnc']: data = server.get_vnc_console(parsed_args.url_type) if parsed_args.url_type in ['spice']: data = server.get_spice_console(parsed_args.url_type) if not data: return ({}, {}) info = {} info.update(data['console']) return zip(*sorted(six.iteritems(info)))
bjorncooley/rainforest_makers
refs/heads/master
spirit/views/topic_notification.py
2
#-*- coding: utf-8 -*- import json from django.views.generic import DetailView, ListView from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.core.urlresolvers import reverse from django.shortcuts import render, redirect, get_object_or_404 from django.views.decorators.http import require_POST from django.http import Http404, HttpResponse from django.conf import settings from django.contrib import messages from spirit import utils from spirit.models.topic import Topic from spirit.utils.paginator.infinite_paginator import paginate from spirit.models.topic_notification import TopicNotification from spirit.forms.topic_notification import NotificationForm, NotificationCreationForm @require_POST @login_required def notification_create(request, topic_id): topic = get_object_or_404(Topic.objects.for_access(request.user), pk=topic_id) form = NotificationCreationForm(user=request.user, topic=topic, data=request.POST) if form.is_valid(): form.save() return redirect(request.POST.get('next', topic.get_absolute_url())) else: messages.error(request, utils.render_form_errors(form)) return redirect(request.POST.get('next', topic.get_absolute_url())) @require_POST @login_required def notification_update(request, pk): notification = get_object_or_404(TopicNotification, pk=pk, user=request.user) form = NotificationForm(data=request.POST, instance=notification) if form.is_valid(): form.save() return redirect(request.POST.get('next', notification.topic.get_absolute_url())) else: messages.error(request, utils.render_form_errors(form)) return redirect(request.POST.get('next', notification.topic.get_absolute_url())) @login_required def notification_ajax(request): if not request.is_ajax(): return Http404() notifications = TopicNotification.objects.for_access(request.user)\ .order_by("is_read", "-date")\ .select_related('comment__user', 'comment__topic')[:settings.ST_NOTIFICATIONS_PER_PAGE] notifications = [{'user': n.comment.user.username, 'action': n.action, 'title': n.comment.topic.title, 'url': n.get_absolute_url(), 'is_read': n.is_read} for n in notifications] return HttpResponse(json.dumps({'n': notifications, }), content_type="application/json") @login_required def notification_list_unread(request): notifications = TopicNotification.objects.for_access(request.user)\ .filter(is_read=False) page = paginate(request, query_set=notifications, lookup_field="date", page_var='notif', per_page=settings.ST_NOTIFICATIONS_PER_PAGE) next_page_pk = None if page: next_page_pk = page[-1].pk return render(request, 'spirit/topic_notification/list_unread.html', {'page': page, 'next_page_pk': next_page_pk}) @login_required def notification_list(request): notifications = TopicNotification.objects.for_access(request.user) return render(request, 'spirit/topic_notification/list.html', {'notifications': notifications, })
LoadCode/Gedit-Arduino-Plugin
refs/heads/master
arduinoplugin/SerialMonitorWindow.py
1
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk, GLib import serial.tools.list_ports import xml.etree.ElementTree as ET from . import CustomErrors from . import utils import threading import time import errno # ToDo: ****Bandera para desahabilidad la elección de parámetros cuando están deshabilitados los widgets # *Implement 'save data' button # *Implementar la accion respectiva para el cambio de parametros (baudrate, lineEnding, puerto) class SerialMonitor(Gtk.Window): serialPorts = [] serialPort = None dataBuffer = None thread = None thread_stop = None device = '' portName = '' defBaudrate = 9600 lineEnding = '\n' autoscroll = True configFilePath = '' strEnding = '' baudRates = ['300', '1200', '2400', '4800', '9600', '19200', '38400', '57600', '74880', '115200', '230400', '250000'] endingOptions = ['No Line Ending', 'Newline', 'Carriage Return', 'Both NL & CR'] # GUI elements btnSend = None txtInput = None scrolledWin = None chkAutoscroll = None comboBaudrate = None comboLineEnding = None comboPort = None def UpdateInputBuffer(self, capturedData): self.dataBuffer.insert_at_cursor(capturedData) return False def ReadSerial(self): i = 0 while not self.thread_stop.is_set(): try: if self.serialPort.in_waiting > 0: capturedData = self.serialPort.read(self.serialPort.in_waiting).decode() GLib.idle_add(self.UpdateInputBuffer, capturedData) except OSError as e: print('The device has been disconnected, close and open the serial monitor again') self.txtInput.set_text('Device disconnected, close and open the serial monitor again (still can save the data)') self.thread_stop.set() # Disable the buttons except the 'save data' button, we have to warn the user to close and open the monitor again self.DisconnectSignals() return time.sleep(0.1) print('Finished the reading thread') def __init__(self, _configFilePath, portName = None): ############################################################################################################################################## # before we create the window # gets the last used baudrate by reading the xml config file self.configFilePath = _configFilePath xmlItems = utils.XmlParser(self.configFilePath) self.defBaudrate = int(xmlItems[utils.XML_INDEX_BAUDRATE]) self.strEnding = xmlItems[utils.XML_INDEX_LINE_ENDING] # get the last used line ending if self.strEnding == 'No Line Ending': self.lineEnding = '' elif self.strEnding == 'Newline': self.lineEnding = '\n' elif self.strEnding == 'Carriage Return': self.lineEnding = '\r' elif self.strEnding == 'Both NL & CR': self.lineEnding = '\r\n' # Try to open de first available serial port detected self.serialPorts = serial.tools.list_ports.comports() if not self.serialPorts: print('No ports detected') raise CustomErrors.NoPortsFound else: # Init the first serial port available for ser in self.serialPorts: self.device = ser.device try: self.OpenSerialPort() break except CustomErrors.DeviceBusy as db: if ser.name == self.serialPorts[-1].name: raise CustomErrors.DeviceBusy else: continue self.serialPort.reset_output_buffer() self.thread_stop = threading.Event() self.thread = threading.Thread(target = self.ReadSerial) self.thread.start() ################################################################################################################################################ Gtk.Window.__init__( self, title = 'Serial Monitor on ' + 'xxxxxx' ) self.set_default_size(630,295) self.set_border_width(10) self.connect('delete-event', self.Close) self.BuildUI() def OpenSerialPort(self): try: self.serialPort = serial.Serial( port = self.device, baudrate = self.defBaudrate, bytesize = serial.EIGHTBITS, parity = serial.PARITY_NONE, stopbits = serial.STOPBITS_ONE, timeout = None, xonxoff = False, rtscts = False, dsrdtr = False, write_timeout = None, ) except serial.serialutil.SerialException as e: print('the device is busy') raise CustomErrors.DeviceBusy def BuildUI(self): mainGrid = Gtk.Grid() headerBox = Gtk.Box(orientation = Gtk.Orientation.HORIZONTAL, spacing = 10) bodyBox = Gtk.Box(orientation = Gtk.Orientation.HORIZONTAL, spacing = 10) footerBox = Gtk.Box(orientation = Gtk.Orientation.HORIZONTAL, spacing = 10) Gtk.Widget.set_hexpand(mainGrid, True) # Header section self.txtInput = Gtk.Entry() self.txtInput.set_width_chars(70) self.btnSend = Gtk.Button.new_with_label('Send Data') headerBox.pack_start(self.txtInput, True, True, 0) headerBox.pack_end(self.btnSend, True, True, 0) # Body section self.scrolledWin = Gtk.ScrolledWindow(None, None) self.scrolledWin.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC) self.scrolledWin.set_min_content_height(220) self.dataBuffer = Gtk.TextBuffer() self.dataBuffer.editable = False self.dataBuffer.set_text('') outputText = Gtk.TextView.new_with_buffer(self.dataBuffer) outputText.editable = False outputText.set_border_window_size(Gtk.TextWindowType.TOP, 10) self.scrolledWin.add(outputText) bodyBox.pack_start(self.scrolledWin, True, True, 0) # Footer section self.chkAutoscroll = Gtk.CheckButton.new_with_label('Autoscroll') self.chkAutoscroll.set_active(True) btnSave = Gtk.Button.new_with_label('Save Data') self.comboBaudrate = Gtk.ComboBoxText() for baudios in self.baudRates: self.comboBaudrate.append_text(baudios) self.comboBaudrate.set_active(self.baudRates.index(str(self.defBaudrate))) self.comboLineEnding = Gtk.ComboBoxText() for ending in self.endingOptions: self.comboLineEnding.append_text(ending) self.comboLineEnding.set_active(self.endingOptions.index(self.strEnding)) self.comboPort = Gtk.ComboBoxText() for deviceInfo in self.serialPorts: self.comboPort.append_text(deviceInfo.name) self.comboPort.set_active(0) footerBox.pack_start(self.chkAutoscroll, False, True, 0) footerBox.pack_end(self.comboPort, False, True, 0) footerBox.pack_end(self.comboBaudrate, False, True, 0) footerBox.pack_end(self.comboLineEnding, False, True, 0) footerBox.pack_end(btnSave, False, True, 0) mainGrid.add(headerBox) mainGrid.attach_next_to(bodyBox, headerBox, Gtk.PositionType.BOTTOM, 1, 1) mainGrid.attach_next_to(footerBox, bodyBox, Gtk.PositionType.BOTTOM, 1, 1) self.add(mainGrid) # Action definitions self.btnSend.connect('clicked', self.SendData) btnSave.connect('clicked', self.SaveData) self.txtInput.connect('activate', self.SendData) self.comboBaudrate.connect('changed', self.BaudreateChanged) self.comboLineEnding.connect('changed', self.LineEndingChanged) self.comboPort.connect('changed', self.SerialPortChanged) def InitMonitorWindow(self): print('Serial Monitor Started') self.show_all() Gtk.main() def SendData(self, widget): print('sending data') # Get the indicated line-ending dataToSend = self.txtInput.get_text() + '\n' # Try to send the data, if the device was disconnected rise the DeviceDisconnected exception try: self.serialPort.write(dataToSend.encode()) except serial.SerialException as e: self.CleanAndClose() else: self.txtInput.set_text('') print('data send') def SaveData(self, widget): print('Saving data') print('alive =', self.thread.is_alive()) startIter, endIter = self.dataBuffer.get_bounds() hidden_chars = False dialog = Gtk.FileChooserDialog("Save the data..", None, Gtk.FileChooserAction.SAVE, (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_SAVE, Gtk.ResponseType.OK)) dialog.set_default_response(Gtk.ResponseType.OK) dialog.set_current_name('untitled') filter = Gtk.FileFilter() filter.set_name("All files") filter.add_pattern("*") dialog.add_filter(filter) response = dialog.run() if response == Gtk.ResponseType.OK: try: dataFile = open(dialog.get_filename(), 'w') dataFile.write(self.dataBuffer.get_text(startIter, endIter, hidden_chars)) dataFile.close() print(dialog.get_filename(), 'selected') except PermissionError as e: self.txtInput.set_text('You have not permission to save the data in that location, PLEASE TRY AGAIN') elif response == Gtk.ResponseType.CANCEL: print ('Closed, no files selected') dialog.destroy() print(self.dataBuffer.get_text(startIter, endIter, hidden_chars)) def BaudreateChanged(self, widget): self.defBaudrate = int(self.comboBaudrate.get_active_text()) print('baud =', str(self.defBaudrate)) def LineEndingChanged(self, widget): self.strEnding = self.comboLineEnding.get_active_text() if self.strEnding == 'No Line Ending': self.lineEnding = '' elif self.strEnding == 'Newline': self.lineEnding = '\n' elif self.strEnding == 'Carriage Return': self.lineEnding = '\r' elif self.strEnding == 'Both NL & CR': self.lineEnding = '\r\n' # we must re-open the serial port print('Ending =', self.strEnding) def SerialPortChanged(self, widget): selectedPort = self.comboPort.get_active_text() print('New port =', selectedPort) def DisconnectSignals(self): # Disable some widgets of the window as something critical happened self.comboPort.disconnect_by_func(self.SerialPortChanged) self.comboBaudrate.disconnect_by_func(self.BaudreateChanged) self.comboLineEnding.disconnect_by_func(self.LineEndingChanged) self.txtInput.set_editable(False) self.txtInput.disconnect_by_func(self.SendData) self.btnSend.disconnect_by_func(self.SendData) def SaveConfigFile(self): # Saves the path configuration (arduino path, board, baudrate, etc) in the xml file lacated in self.configFilePath xmlItems = utils.XmlParser(self.configFilePath) arduinoPath = xmlItems[utils.XML_INDEX_ARDUINO_PATH] sketchbook = xmlItems[utils.XML_INDEX_SKETCHB_PATH] board = xmlItems[utils.XML_INDEX_BOARD] pluginFile = ET.Element('PluginFile') folderArduino = ET.SubElement(pluginFile, 'folder') folderArduino.set('id', 'arduino-path') folderArduino.text = arduinoPath folderSketch = ET.SubElement(pluginFile, 'folder') folderSketch.set('id', 'sketchbook') folderSketch.text = sketchbook deviceElement = ET.SubElement(pluginFile, 'device') deviceElement.set('id', 'arduino-board') deviceElement.text = board deviceElement = ET.SubElement(pluginFile, 'parameter') deviceElement.set('id', 'baudrate') deviceElement.text = str(self.defBaudrate) deviceElement = ET.SubElement(pluginFile, 'parameter') deviceElement.set('id', 'line') deviceElement.text = self.strEnding tree = ET.ElementTree(pluginFile) tree.write(open(self.configFilePath,'wb')) print('Configuration file saved') def Close(self, widget, data = None): self.CleanAndClose() def CleanAndClose(self): print('Logging out serial monitor on Port ' + self.portName ) # Killing the thread read data proccess self.thread_stop.set() self.SaveConfigFile() # Properly closing the serial port self.serialPort.close() # kills the serial monitor window Gtk.main_quit() #monitor = SerialMonitor('ttyUSB0') #monitor.InitMonitorWindow()
MonoHelixLabs/fridge-rpi
refs/heads/master
fridge-api/Adafruit_IO/errors.py
2
# Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. class AdafruitIOError(Exception): """Base class for all Adafruit IO request failures.""" pass class RequestError(Exception): """General error for a failed Adafruit IO request.""" def __init__(self, response): super(RequestError, self).__init__("Adafruit IO request failed: {0} {1}".format( response.status_code, response.reason)) class ThrottlingError(AdafruitIOError): """Too many requests have been made to Adafruit IO in a short period of time. Reduce the rate of requests and try again later. """ def __init__(self): super(ThrottlingError, self).__init__("Exceeded the limit of Adafruit IO " \ "requests in a short period of time. Please reduce the rate of requests " \ "and try again later.")
delhivery/django
refs/heads/master
tests/migrations/test_deprecated_fields.py
504
from django.core.management import call_command from django.test import override_settings from .test_base import MigrationTestBase class Tests(MigrationTestBase): """ Deprecated model fields should still be usable in historic migrations. """ @override_settings(MIGRATION_MODULES={"migrations": "migrations.deprecated_field_migrations"}) def test_migrate(self): # Make sure no tables are created self.assertTableNotExists("migrations_ipaddressfield") # Run migration call_command("migrate", verbosity=0) # Make sure the right tables exist self.assertTableExists("migrations_ipaddressfield") # Unmigrate everything call_command("migrate", "migrations", "zero", verbosity=0) # Make sure it's all gone self.assertTableNotExists("migrations_ipaddressfield")
adrianborkowski/kurs_django
refs/heads/dev
users/migrations/__init__.py
12133432
wevote/WebAppPublic
refs/heads/master
follow/migrations/__init__.py
12133432
SDXorg/ANTLR_collection
refs/heads/master
Compiled/__init__.py
12133432
faratro/django-oscar
refs/heads/master
tests/functional/dashboard/__init__.py
12133432
tjsavage/full_nonrel_starter
refs/heads/master
django/contrib/gis/tests/layermap/__init__.py
12133432
CGenie/sorl-thumbnail
refs/heads/master
sorl/thumbnail/admin/__init__.py
19
try: from django.forms import ClearableFileInput except ImportError: from .compat import AdminImageMixin else: from .current import AdminImageMixin AdminInlineImageMixin = AdminImageMixin # backwards compatibility
puttarajubr/commcare-hq
refs/heads/master
custom/intrahealth/reports/recap_passage_report.py
2
from corehq.apps.reports.standard import MonthYearMixin from custom.intrahealth.filters import RecapPassageLocationFilter, FRMonthFilter, FRYearFilter from custom.intrahealth.reports.tableu_de_board_report import MultiReport from custom.intrahealth.sqldata import RecapPassageData, DateSource from dimagi.utils.decorators.memoized import memoized class RecapPassageReport(MonthYearMixin, MultiReport): title = "Recap Passage" name = "Recap Passage" slug = 'recap_passage' report_title = "Recap Passage" exportable = True default_rows = 10 fields = [FRMonthFilter, FRYearFilter, RecapPassageLocationFilter] def config_update(self, config): if self.location and self.location.location_type.lower() == 'pps': config['location_id'] = self.location._id @property @memoized def data_providers(self): dates = sorted(sum(DateSource(config=self.report_config).rows, [])) data_providers = [] for date in dates: config = self.report_config config.update(dict(startdate=date, enddate=date)) data_providers.append(RecapPassageData(config=config)) if not data_providers: data_providers.append(RecapPassageData(config=self.report_config)) return data_providers
napalm-automation/napalm-yang
refs/heads/develop
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs_/ipv4_interface_address/state/__init__.py
1
# -*- coding: utf-8 -*- 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 collections import OrderedDict 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 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/mt-isis-neighbor-attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4-interface-address/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 6. """ __slots__ = ( "_path_helper", "_extmethods", "__subtlv_type", "__ipv4_interface_address" ) _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=six.text_type, restriction_type="dict_key", restriction_arg={ "ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/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.__ipv4_interface_address = YANGDynClass( base=TypedListType( allowed_type=RestrictedClassType( base_type=RestrictedClassType( base_type=six.text_type, restriction_dict={ "pattern": "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?" }, ), restriction_dict={"pattern": "[0-9\\.]*"}, ) ), is_leaf=False, yang_name="ipv4-interface-address", 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="inet:ipv4-address-no-zone", 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 [ "network-instances", "network-instance", "protocols", "protocol", "isis", "levels", "level", "link-state-database", "lsp", "tlvs", "tlv", "mt-isis-neighbor-attribute", "neighbors", "neighbor", "subTLVs", "subTLVs", "ipv4-interface-address", "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/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4_interface_address/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/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4_interface_address/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=six.text_type, restriction_type="dict_key", restriction_arg={ "ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/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=six.text_type, restriction_type="dict_key", restriction_arg={'ISIS_TLV22_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV23_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV135_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV141_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV222_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV223_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV235_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV236_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV237_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV242_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV242_SR_CAPABILITY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV242_SR_ALGORITHM': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/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=six.text_type, restriction_type="dict_key", restriction_arg={ "ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/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_ipv4_interface_address(self): """ Getter method for ipv4_interface_address, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4_interface_address/state/ipv4_interface_address (inet:ipv4-address-no-zone) YANG Description: A 4-octet IPv4 address for the interface described by the (main) TLV. This sub-TLV can occur multiple times. """ return self.__ipv4_interface_address def _set_ipv4_interface_address(self, v, load=False): """ Setter method for ipv4_interface_address, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4_interface_address/state/ipv4_interface_address (inet:ipv4-address-no-zone) If this variable is read-only (config: false) in the source YANG file, then _set_ipv4_interface_address is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ipv4_interface_address() directly. YANG Description: A 4-octet IPv4 address for the interface described by the (main) TLV. This sub-TLV can occur multiple times. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass( v, base=TypedListType( allowed_type=RestrictedClassType( base_type=RestrictedClassType( base_type=six.text_type, restriction_dict={ "pattern": "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?" }, ), restriction_dict={"pattern": "[0-9\\.]*"}, ) ), is_leaf=False, yang_name="ipv4-interface-address", 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="inet:ipv4-address-no-zone", is_config=False, ) except (TypeError, ValueError): raise ValueError( { "error-string": """ipv4_interface_address must be of a type compatible with inet:ipv4-address-no-zone""", "defined-type": "inet:ipv4-address-no-zone", "generated-type": """YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}), restriction_dict={'pattern': '[0-9\\.]*'})), is_leaf=False, yang_name="ipv4-interface-address", 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='inet:ipv4-address-no-zone', is_config=False)""", } ) self.__ipv4_interface_address = t if hasattr(self, "_set"): self._set() def _unset_ipv4_interface_address(self): self.__ipv4_interface_address = YANGDynClass( base=TypedListType( allowed_type=RestrictedClassType( base_type=RestrictedClassType( base_type=six.text_type, restriction_dict={ "pattern": "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?" }, ), restriction_dict={"pattern": "[0-9\\.]*"}, ) ), is_leaf=False, yang_name="ipv4-interface-address", 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="inet:ipv4-address-no-zone", is_config=False, ) subtlv_type = __builtin__.property(_get_subtlv_type) ipv4_interface_address = __builtin__.property(_get_ipv4_interface_address) _pyangbind_elements = OrderedDict( [ ("subtlv_type", subtlv_type), ("ipv4_interface_address", ipv4_interface_address), ] ) 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/mt-isis-neighbor-attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4-interface-address/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 6. """ __slots__ = ( "_path_helper", "_extmethods", "__subtlv_type", "__ipv4_interface_address" ) _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=six.text_type, restriction_type="dict_key", restriction_arg={ "ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/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.__ipv4_interface_address = YANGDynClass( base=TypedListType( allowed_type=RestrictedClassType( base_type=RestrictedClassType( base_type=six.text_type, restriction_dict={ "pattern": "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?" }, ), restriction_dict={"pattern": "[0-9\\.]*"}, ) ), is_leaf=False, yang_name="ipv4-interface-address", 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="inet:ipv4-address-no-zone", 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 [ "network-instances", "network-instance", "protocols", "protocol", "isis", "levels", "level", "link-state-database", "lsp", "tlvs", "tlv", "mt-isis-neighbor-attribute", "neighbors", "neighbor", "subTLVs", "subTLVs", "ipv4-interface-address", "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/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4_interface_address/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/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4_interface_address/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=six.text_type, restriction_type="dict_key", restriction_arg={ "ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/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=six.text_type, restriction_type="dict_key", restriction_arg={'ISIS_TLV22_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV22_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV23_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV23_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV135_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV135_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV141_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV141_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV222_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV222_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV223_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_ADJ_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_ADJ_LAN_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_LINK_LOSS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV223_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV235_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV235_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV236_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV236_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV237_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_TAG': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_TAG64': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_PREFIX_SID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_PREFIX_FLAGS': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV237_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'ISIS_TLV242_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV242_SR_CAPABILITY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV242_SR_CAPABILITY': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'TLV242_SR_ALGORITHM': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/isis-lsdb-types'}, 'oc-isis-lsdb-types:TLV242_SR_ALGORITHM': {'@module': 'openconfig-isis-lsdb-types', '@namespace': 'http://openconfig.net/yang/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=six.text_type, restriction_type="dict_key", restriction_arg={ "ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV22_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV22_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV23_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV23_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV135_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV135_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV141_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV141_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV222_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV222_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV223_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV4_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_LINK_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MAX_RESERVABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNRESERVED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_INTERFACE_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_IPV6_NEIGHBOR_ADDRESS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_EXTENDED_ADMIN_GROUP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_TE_DEFAULT_METRIC": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_ATTRIBUTES": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_PROTECTION_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_BANDWIDTH_CONSTRAINTS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UNCONSTRAINED_LSP": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_ADJ_LAN_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_MIN_MAX_LINK_DELAY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_DELAY_VARIATION": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_LINK_LOSS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_RESIDUAL_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_AVAILABLE_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV223_UTILIZED_BANDWIDTH": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV235_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV235_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV236_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV236_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV237_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_TAG64": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_SID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_PREFIX_FLAGS": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV4_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV237_IPV6_ROUTER_ID": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:ISIS_TLV242_SUBTLVS_TYPE": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_CAPABILITY": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/isis-lsdb-types", }, "oc-isis-lsdb-types:TLV242_SR_ALGORITHM": { "@module": "openconfig-isis-lsdb-types", "@namespace": "http://openconfig.net/yang/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_ipv4_interface_address(self): """ Getter method for ipv4_interface_address, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4_interface_address/state/ipv4_interface_address (inet:ipv4-address-no-zone) YANG Description: A 4-octet IPv4 address for the interface described by the (main) TLV. This sub-TLV can occur multiple times. """ return self.__ipv4_interface_address def _set_ipv4_interface_address(self, v, load=False): """ Setter method for ipv4_interface_address, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs/ipv4_interface_address/state/ipv4_interface_address (inet:ipv4-address-no-zone) If this variable is read-only (config: false) in the source YANG file, then _set_ipv4_interface_address is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ipv4_interface_address() directly. YANG Description: A 4-octet IPv4 address for the interface described by the (main) TLV. This sub-TLV can occur multiple times. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass( v, base=TypedListType( allowed_type=RestrictedClassType( base_type=RestrictedClassType( base_type=six.text_type, restriction_dict={ "pattern": "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?" }, ), restriction_dict={"pattern": "[0-9\\.]*"}, ) ), is_leaf=False, yang_name="ipv4-interface-address", 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="inet:ipv4-address-no-zone", is_config=False, ) except (TypeError, ValueError): raise ValueError( { "error-string": """ipv4_interface_address must be of a type compatible with inet:ipv4-address-no-zone""", "defined-type": "inet:ipv4-address-no-zone", "generated-type": """YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}), restriction_dict={'pattern': '[0-9\\.]*'})), is_leaf=False, yang_name="ipv4-interface-address", 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='inet:ipv4-address-no-zone', is_config=False)""", } ) self.__ipv4_interface_address = t if hasattr(self, "_set"): self._set() def _unset_ipv4_interface_address(self): self.__ipv4_interface_address = YANGDynClass( base=TypedListType( allowed_type=RestrictedClassType( base_type=RestrictedClassType( base_type=six.text_type, restriction_dict={ "pattern": "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?" }, ), restriction_dict={"pattern": "[0-9\\.]*"}, ) ), is_leaf=False, yang_name="ipv4-interface-address", 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="inet:ipv4-address-no-zone", is_config=False, ) subtlv_type = __builtin__.property(_get_subtlv_type) ipv4_interface_address = __builtin__.property(_get_ipv4_interface_address) _pyangbind_elements = OrderedDict( [ ("subtlv_type", subtlv_type), ("ipv4_interface_address", ipv4_interface_address), ] )
jhawkesworth/ansible
refs/heads/devel
test/units/modules/network/nxos/test_nxos_interface_ospf.py
13
# (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from units.compat.mock import patch from ansible.modules.network.nxos import nxos_interface_ospf from .nxos_module import TestNxosModule, load_fixture, set_module_args class TestNxosInterfaceOspfModule(TestNxosModule): module = nxos_interface_ospf def setUp(self): super(TestNxosInterfaceOspfModule, self).setUp() self.mock_get_config = patch('ansible.modules.network.nxos.nxos_interface_ospf.get_config') self.get_config = self.mock_get_config.start() self.mock_load_config = patch('ansible.modules.network.nxos.nxos_interface_ospf.load_config') self.load_config = self.mock_load_config.start() def tearDown(self): super(TestNxosInterfaceOspfModule, self).tearDown() self.mock_get_config.stop() self.mock_load_config.stop() def load_fixtures(self, commands=None, device=''): module_name = self.module.__name__.rsplit('.', 1)[1] self.get_config.return_value = load_fixture(module_name, 'config.cfg') self.load_config.return_value = None def test_nxos_interface_ospf(self): set_module_args(dict(interface='ethernet1/32', ospf=1, area=1)) self.execute_module(changed=True, commands=['interface Ethernet1/32', 'ip router ospf 1 area 0.0.0.1']) def test_loopback_interface_failed(self): set_module_args(dict(interface='loopback0', ospf=1, area=0, passive_interface=True)) self.execute_module(failed=True, changed=False) set_module_args(dict(interface='loopback0', ospf=1, area=0, network='broadcast')) self.execute_module(failed=True, changed=False) def test_nxos_interface_ospf_passive(self): # default -> True set_module_args(dict(interface='ethernet1/33', ospf=1, area=1, passive_interface=True)) self.execute_module(changed=True, commands=['interface Ethernet1/33', 'ip router ospf 1 area 0.0.0.1', 'ip ospf passive-interface']) # default -> False set_module_args(dict(interface='ethernet1/33', ospf=1, area=1, passive_interface=False)) self.execute_module(changed=True, commands=['interface Ethernet1/33', 'ip router ospf 1 area 0.0.0.1', 'no ip ospf passive-interface']) # True -> False set_module_args(dict(interface='ethernet1/34', ospf=1, area=1, passive_interface=False)) self.execute_module(changed=True, commands=['interface Ethernet1/34', 'no ip ospf passive-interface']) # True -> default (absent) set_module_args(dict(interface='ethernet1/34', ospf=1, area=1, state='absent')) self.execute_module(changed=True, commands=['interface Ethernet1/34', 'no ip router ospf 1 area 0.0.0.1', 'default ip ospf passive-interface']) # False -> True set_module_args(dict(interface='ethernet1/35', ospf=1, area=1, passive_interface=True)) self.execute_module(changed=True, commands=['interface Ethernet1/35', 'ip ospf passive-interface']) # False -> default (absent) set_module_args(dict(interface='ethernet1/35', ospf=1, area=1, state='absent')) self.execute_module(changed=True, commands=['interface Ethernet1/35', 'no ip router ospf 1 area 0.0.0.1', 'default ip ospf passive-interface'])
BrainPad/FindYourCandy
refs/heads/master
webapp/tests/__init__.py
11
# Copyright 2017 BrainPad Inc. 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. # ==============================================================================
albertomurillo/ansible
refs/heads/devel
lib/ansible/modules/cloud/openstack/__init__.py
12133432
rebstar6/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/py/py/_code/assertion.py
218
import sys import py BuiltinAssertionError = py.builtin.builtins.AssertionError _reprcompare = None # if set, will be called by assert reinterp for comparison ops def _format_explanation(explanation): """This formats an explanation Normally all embedded newlines are escaped, however there are three exceptions: \n{, \n} and \n~. The first two are intended cover nested explanations, see function and attribute explanations for examples (.visit_Call(), visit_Attribute()). The last one is for when one explanation needs to span multiple lines, e.g. when displaying diffs. """ raw_lines = (explanation or '').split('\n') # escape newlines not followed by {, } and ~ lines = [raw_lines[0]] for l in raw_lines[1:]: if l.startswith('{') or l.startswith('}') or l.startswith('~'): lines.append(l) else: lines[-1] += '\\n' + l result = lines[:1] stack = [0] stackcnt = [0] for line in lines[1:]: if line.startswith('{'): if stackcnt[-1]: s = 'and ' else: s = 'where ' stack.append(len(result)) stackcnt[-1] += 1 stackcnt.append(0) result.append(' +' + ' '*(len(stack)-1) + s + line[1:]) elif line.startswith('}'): assert line.startswith('}') stack.pop() stackcnt.pop() result[stack[-1]] += line[1:] else: assert line.startswith('~') result.append(' '*len(stack) + line[1:]) assert len(stack) == 1 return '\n'.join(result) class AssertionError(BuiltinAssertionError): def __init__(self, *args): BuiltinAssertionError.__init__(self, *args) if args: try: self.msg = str(args[0]) except py.builtin._sysex: raise except: self.msg = "<[broken __repr__] %s at %0xd>" %( args[0].__class__, id(args[0])) else: f = py.code.Frame(sys._getframe(1)) try: source = f.code.fullsource if source is not None: try: source = source.getstatement(f.lineno, assertion=True) except IndexError: source = None else: source = str(source.deindent()).strip() except py.error.ENOENT: source = None # this can also occur during reinterpretation, when the # co_filename is set to "<run>". if source: self.msg = reinterpret(source, f, should_fail=True) else: self.msg = "<could not determine information>" if not self.args: self.args = (self.msg,) if sys.version_info > (3, 0): AssertionError.__module__ = "builtins" reinterpret_old = "old reinterpretation not available for py3" else: from py._code._assertionold import interpret as reinterpret_old if sys.version_info >= (2, 6) or (sys.platform.startswith("java")): from py._code._assertionnew import interpret as reinterpret else: reinterpret = reinterpret_old
hghdo/web4beidanci
refs/heads/master
settings.py
1
# Copyright 2008 Google 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. # Django settings for google-app-engine-django project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'appengine' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = '' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # If running in a Windows environment this must be set to the same as your # system time zone. TIME_ZONE = 'UTC' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True ROOT_PATH = os.path.dirname(__file__) # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = os.path.join(ROOT_PATH, 'static') # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" MEDIA_URL = '/static/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". ADMIN_MEDIA_PREFIX = '/media/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'hvhxfm5u=^*v&doo#oq8x*eg8+1&9sxbye@=umutgn^t_sg_nx' # Ensure that email is not sent via SMTP by default to match the standard App # Engine SDK behaviour. If you want to sent email via SMTP then add the name of # your mailserver here. EMAIL_HOST = '' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', # 'django.template.loaders.eggs.load_template_source', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', # 'django.contrib.sessions.middleware.SessionMiddleware', # 'django.contrib.auth.middleware.AuthenticationMiddleware', # 'django.middleware.doc.XViewMiddleware', ) TEMPLATE_CONTEXT_PROCESSORS = ( # 'django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', # 'django.core.context_processors.media', # 0.97 only. # 'django.core.context_processors.request', ) ROOT_URLCONF = 'urls' TEMPLATE_DIRS = ( os.path.join(ROOT_PATH, 'templates') ) INSTALLED_APPS = ( 'appengine_django', 'test', # 'courses', # 'appengine_django.auth' # 'django.contrib.auth', # 'django.contrib.contenttypes', # 'django.contrib.sessions', # 'django.contrib.sites', )
tigeral/polygon
refs/heads/master
python/code_troopers/Runner.py
1
import sys from MyStrategy import MyStrategy from RemoteProcessClient import RemoteProcessClient from model.Move import Move from time import sleep class Runner: def __init__(self): sleep(4) if sys.argv.__len__() == 4: self.remote_process_client = RemoteProcessClient(sys.argv[1], int(sys.argv[2])) self.token = sys.argv[3] else: self.remote_process_client = RemoteProcessClient("localhost", 31001) self.token = "0000000000000000" #next line enables my custom debugger window debuggerEnabled = True def run(self): try: self.remote_process_client.write_token(self.token) team_size = self.remote_process_client.read_team_size() self.remote_process_client.write_protocol_version() game = self.remote_process_client.read_game_context() strategies = [] for strategy_index in xrange(team_size): strategies.append(MyStrategy()) while True: player_context = self.remote_process_client.read_player_context() if player_context is None: break player_trooper = player_context.trooper move = Move() strategies[player_trooper.teammate_index].move(player_trooper, player_context.world, game, move) self.remote_process_client.write_move(move) finally: self.remote_process_client.close() Runner().run()
Hao-Liu/avocado-vt
refs/heads/master
virttest/libvirt_xml/devices/channel.py
30
""" Classes to support XML for channel devices http://libvirt.org/formatdomain.html#elementCharSerial """ from virttest.libvirt_xml import base from virttest.libvirt_xml import accessors from virttest.libvirt_xml.devices.character import CharacterBase class Channel(CharacterBase): __slots__ = ('source', 'target', 'alias', 'address') def __init__(self, type_name='unix', virsh_instance=base.virsh): accessors.XMLElementDict('source', self, parent_xpath='/', tag_name='source') accessors.XMLElementDict('target', self, parent_xpath='/', tag_name='target') # example for new slots : alias and address # # <?xml version='1.0' encoding='UTF-8'?> # <channel type="pty"> # <source path="/dev/pts/10" /> # <target name="pty" type="virtio" /> # <alias name="pty" /> # <address bus="0" controller="0" type="virtio-serial" /> # </channel> accessors.XMLElementDict('alias', self, parent_xpath='/', tag_name='alias') accessors.XMLElementDict('address', self, parent_xpath='/', tag_name='address') super( Channel, self).__init__(device_tag='channel', type_name=type_name, virsh_instance=virsh_instance)
czpython/django-social-auth
refs/heads/master
social_auth/backends/twitter.py
8
""" Twitter OAuth support. This adds support for Twitter OAuth service. An application must be registered first on twitter and the settings TWITTER_CONSUMER_KEY and TWITTER_CONSUMER_SECRET must be defined with the corresponding values. User screen name is used to generate username. By default account id is stored in extra_data field, check OAuthBackend class for details on how to extend it. """ from django.utils import simplejson from social_auth.backends import ConsumerBasedOAuth, OAuthBackend, USERNAME from social_auth.backends.exceptions import AuthCanceled # Twitter configuration TWITTER_SERVER = 'api.twitter.com' TWITTER_REQUEST_TOKEN_URL = 'https://%s/oauth/request_token' % TWITTER_SERVER TWITTER_ACCESS_TOKEN_URL = 'https://%s/oauth/access_token' % TWITTER_SERVER # Note: oauth/authorize forces the user to authorize every time. # oauth/authenticate uses their previous selection, barring revocation. TWITTER_AUTHORIZATION_URL = 'http://%s/oauth/authenticate' % TWITTER_SERVER TWITTER_CHECK_AUTH = 'https://twitter.com/account/verify_credentials.json' class TwitterBackend(OAuthBackend): """Twitter OAuth authentication backend""" name = 'twitter' EXTRA_DATA = [('id', 'id')] def get_user_details(self, response): """Return user details from Twitter account""" try: first_name, last_name = response['name'].split(' ', 1) except: first_name = response['name'] last_name = '' return {USERNAME: response['screen_name'], 'email': '', # not supplied 'fullname': response['name'], 'first_name': first_name, 'last_name': last_name} @classmethod def tokens(cls, instance): """Return the tokens needed to authenticate the access to any API the service might provide. Twitter uses a pair of OAuthToken consisting of an oauth_token and oauth_token_secret. instance must be a UserSocialAuth instance. """ token = super(TwitterBackend, cls).tokens(instance) if token and 'access_token' in token: token = dict(tok.split('=') for tok in token['access_token'].split('&')) return token class TwitterAuth(ConsumerBasedOAuth): """Twitter OAuth authentication mechanism""" AUTHORIZATION_URL = TWITTER_AUTHORIZATION_URL REQUEST_TOKEN_URL = TWITTER_REQUEST_TOKEN_URL ACCESS_TOKEN_URL = TWITTER_ACCESS_TOKEN_URL SERVER_URL = TWITTER_SERVER AUTH_BACKEND = TwitterBackend SETTINGS_KEY_NAME = 'TWITTER_CONSUMER_KEY' SETTINGS_SECRET_NAME = 'TWITTER_CONSUMER_SECRET' def user_data(self, access_token, *args, **kwargs): """Return user data provided""" request = self.oauth_request(access_token, TWITTER_CHECK_AUTH) json = self.fetch_response(request) try: return simplejson.loads(json) except ValueError: return None def auth_complete(self, *args, **kwargs): """Completes login process, must return user instance""" if 'denied' in self.data: raise AuthCanceled(self) else: return super(TwitterAuth, self).auth_complete(*args, **kwargs) # Backend definition BACKENDS = { 'twitter': TwitterAuth, }
randynobx/ansible
refs/heads/devel
lib/ansible/plugins/action/patch.py
18
# (c) 2015, Brian Coca <briancoca+dev@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os from ansible.constants import mk_boolean as boolean from ansible.errors import AnsibleError from ansible.module_utils._text import to_native from ansible.plugins.action import ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): if task_vars is None: task_vars = dict() result = super(ActionModule, self).run(tmp, task_vars) src = self._task.args.get('src', None) remote_src = boolean(self._task.args.get('remote_src', 'no')) if src is None: result['failed'] = True result['msg'] = "src is required" return result elif remote_src: # everything is remote, so we just execute the module # without changing any of the module arguments result.update(self._execute_module(task_vars=task_vars)) return result try: src = self._find_needle('files', src) except AnsibleError as e: result['failed'] = True result['msg'] = to_native(e) return result # create the remote tmp dir if needed, and put the source file there if tmp is None or "-tmp-" not in tmp: tmp = self._make_tmp_path() tmp_src = self._connection._shell.join_path(tmp, os.path.basename(src)) self._transfer_file(src, tmp_src) self._fixup_perms2((tmp, tmp_src)) new_module_args = self._task.args.copy() new_module_args.update( dict( src=tmp_src, ) ) result.update(self._execute_module('patch', module_args=new_module_args, task_vars=task_vars)) self._remove_tmp_path(tmp) return result
cms-externals/pyqt
refs/heads/master
examples/graphicsview/anchorlayout.py
9
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2010 Riverbank Computing Limited. ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ## All rights reserved. ## ## This file is part of the examples of PyQt. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD license as follows: ## ## "Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are ## met: ## * Redistributions of source code must retain the above copyright ## notice, this list of conditions and the following disclaimer. ## * 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. ## * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor ## the names of its 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 ## OWNER 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." ## $QT_END_LICENSE$ ## ############################################################################# from PyQt4 import QtCore, QtGui def createItem(minimum, preferred, maximum, name): w = QtGui.QGraphicsProxyWidget() w.setWidget(QtGui.QPushButton(name)) w.setMinimumSize(minimum) w.setPreferredSize(preferred) w.setMaximumSize(maximum) w.setSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) return w if __name__ == '__main__': import sys app = QtGui.QApplication(sys.argv) scene = QtGui.QGraphicsScene() scene.setSceneRect(0, 0, 800, 480) minSize = QtCore.QSizeF(30, 100) prefSize = QtCore.QSizeF(210, 100) maxSize = QtCore.QSizeF(300, 100) a = createItem(minSize, prefSize, maxSize, "A") b = createItem(minSize, prefSize, maxSize, "B") c = createItem(minSize, prefSize, maxSize, "C") d = createItem(minSize, prefSize, maxSize, "D") e = createItem(minSize, prefSize, maxSize, "E") f = createItem(QtCore.QSizeF(30, 50), QtCore.QSizeF(150, 50), maxSize, "F") g = createItem(QtCore.QSizeF(30, 50), QtCore.QSizeF(30, 100), maxSize, "G") l = QtGui.QGraphicsAnchorLayout() l.setSpacing(0) w = QtGui.QGraphicsWidget(None, QtCore.Qt.Window) w.setPos(20, 20) w.setLayout(l) # Vertical. l.addAnchor(a, QtCore.Qt.AnchorTop, l, QtCore.Qt.AnchorTop) l.addAnchor(b, QtCore.Qt.AnchorTop, l, QtCore.Qt.AnchorTop) l.addAnchor(c, QtCore.Qt.AnchorTop, a, QtCore.Qt.AnchorBottom) l.addAnchor(c, QtCore.Qt.AnchorTop, b, QtCore.Qt.AnchorBottom) l.addAnchor(c, QtCore.Qt.AnchorBottom, d, QtCore.Qt.AnchorTop) l.addAnchor(c, QtCore.Qt.AnchorBottom, e, QtCore.Qt.AnchorTop) l.addAnchor(d, QtCore.Qt.AnchorBottom, l, QtCore.Qt.AnchorBottom) l.addAnchor(e, QtCore.Qt.AnchorBottom, l, QtCore.Qt.AnchorBottom) l.addAnchor(c, QtCore.Qt.AnchorTop, f, QtCore.Qt.AnchorTop) l.addAnchor(c, QtCore.Qt.AnchorVerticalCenter, f, QtCore.Qt.AnchorBottom) l.addAnchor(f, QtCore.Qt.AnchorBottom, g, QtCore.Qt.AnchorTop) l.addAnchor(c, QtCore.Qt.AnchorBottom, g, QtCore.Qt.AnchorBottom) # Horizontal. l.addAnchor(l, QtCore.Qt.AnchorLeft, a, QtCore.Qt.AnchorLeft) l.addAnchor(l, QtCore.Qt.AnchorLeft, d, QtCore.Qt.AnchorLeft) l.addAnchor(a, QtCore.Qt.AnchorRight, b, QtCore.Qt.AnchorLeft) l.addAnchor(a, QtCore.Qt.AnchorRight, c, QtCore.Qt.AnchorLeft) l.addAnchor(c, QtCore.Qt.AnchorRight, e, QtCore.Qt.AnchorLeft) l.addAnchor(b, QtCore.Qt.AnchorRight, l, QtCore.Qt.AnchorRight) l.addAnchor(e, QtCore.Qt.AnchorRight, l, QtCore.Qt.AnchorRight) l.addAnchor(d, QtCore.Qt.AnchorRight, e, QtCore.Qt.AnchorLeft) l.addAnchor(l, QtCore.Qt.AnchorLeft, f, QtCore.Qt.AnchorLeft) l.addAnchor(l, QtCore.Qt.AnchorLeft, g, QtCore.Qt.AnchorLeft) l.addAnchor(f, QtCore.Qt.AnchorRight, g, QtCore.Qt.AnchorRight) scene.addItem(w) scene.setBackgroundBrush(QtCore.Qt.darkGreen) view = QtGui.QGraphicsView(scene) view.show() sys.exit(app.exec_())
hagne/atm-py
refs/heads/master
atmPy/clouds/ceilometry.py
1
from atmPy.general import timeseries as _timeseries import matplotlib.pylab as _plt from matplotlib.colors import LogNorm as _LogNorm from copy import deepcopy class Ceilometer(object): def __init__(self): self._backscatter = None self._cloudbase = None @property def cloudbase(self): return self._cloudbase @cloudbase.setter def cloudbase(self, value, **kwargs): if type(value).__name__ == 'Cloud_base': self._cloudbase = value else: self._cloudbase = Cloud_base(value, **kwargs) @property def backscatter(self): # if type(self._backscatter).__name__ == 'NoneType': return self._backscatter @backscatter.setter def backscatter(self, value, **kwargs): if type(value).__name__ == 'Backscatter': self._backscatter = value else: self._backscatter = Backscatter(value, **kwargs) def zoom_time(self, start=None, end=None, copy=True): ceilnew = self.copy() ceilnew.backscatter = self.backscatter.zoom_time(start=start, end=end, copy=copy) ceilnew.cloudbase = self.cloudbase.zoom_time(start=start, end=end, copy=copy) return ceilnew def copy(self): return deepcopy(self) class Backscatter(_timeseries.TimeSeries_2D): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def plot(self, *args, vmin=1e2, norm='log', **kwargs): if 'pc_kwargs' in kwargs: pc_kwargs = kwargs['pc_kwargs'] assert (type(pc_kwargs) == dict) else: pc_kwargs = {} if 'cmap' not in pc_kwargs: pc_kwargs['cmap'] = _plt.cm.gist_gray_r if 'norm' not in pc_kwargs: if norm == 'log': pc_kwargs['norm'] = _LogNorm() if 'vmin' not in pc_kwargs: pc_kwargs['vmin'] = vmin kwargs['pc_kwargs'] = pc_kwargs out = super().plot(*args, **kwargs) f,a,lc,cb = out a.set_ylabel('Altitude (m)') return out class Cloud_base(_timeseries.TimeSeries): def plot(self, which='first', **kwargs): if not ('linestyle' in kwargs.keys()) or not ('ls' in kwargs.keys()): kwargs['ls'] = '' if not 'marker' in kwargs.keys(): kwargs['marker'] = '_' if which == 'first': cbs = self._del_all_columns_but('First_cloud_base') a = cbs.plot(which='all', **kwargs) elif which == 'all': a = super().plot(**kwargs) else: raise ValueError('not implemented yet') return a
cprogrammer1994/ModernGL
refs/heads/master
examples/simple_grid.py
1
import numpy as np from pyrr import Matrix44 import moderngl from ported._example import Example def grid(size, steps): u = np.repeat(np.linspace(-size, size, steps), 2) v = np.tile([-size, size], steps) w = np.zeros(steps * 2) return np.concatenate([np.dstack([u, v, w]), np.dstack([v, u, w])]) class SimpleGrid(Example): title = "Simple Grid" gl_version = (3, 3) def __init__(self, **kwargs): super().__init__(**kwargs) self.prog = self.ctx.program( vertex_shader=''' #version 330 uniform mat4 Mvp; in vec3 in_vert; void main() { gl_Position = Mvp * vec4(in_vert, 1.0); } ''', fragment_shader=''' #version 330 out vec4 f_color; void main() { f_color = vec4(0.1, 0.1, 0.1, 1.0); } ''', ) self.mvp = self.prog['Mvp'] self.vbo = self.ctx.buffer(grid(15, 10).astype('f4')) self.vao = self.ctx.simple_vertex_array(self.prog, self.vbo, 'in_vert') def render(self, time, frame_time): self.ctx.clear(1.0, 1.0, 1.0) self.ctx.enable(moderngl.DEPTH_TEST) proj = Matrix44.perspective_projection(45.0, self.aspect_ratio, 0.1, 1000.0) lookat = Matrix44.look_at( (40.0, 30.0, 30.0), (0.0, 0.0, 0.0), (0.0, 0.0, 1.0), ) self.mvp.write((proj * lookat).astype('f4')) self.vao.render(moderngl.LINES) if __name__ == '__main__': SimpleGrid.run()
spulec/uncurl
refs/heads/master
tests/test_bin.py
1
from mock import patch import six from uncurl.bin import main print_module = "__builtin__.print" if six.PY2 else "uncurl.bin.print" @patch("uncurl.bin.sys") @patch(print_module) def test_main(printer, fake_sys): fake_sys.argv = ['uncurl', "curl 'https://pypi.python.org/pypi/uncurl' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8'"] main() printer.assert_called_once_with( """ requests.get("https://pypi.python.org/pypi/uncurl", headers={ "Accept-Encoding": "gzip,deflate,sdch", "Accept-Language": "en-US,en;q=0.8" }, cookies={}, auth=(), )""")
tumbl3w33d/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/ec2_vpc_subnet_info.py
13
#!/usr/bin/python # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['stableinterface'], 'supported_by': 'core'} DOCUMENTATION = ''' --- module: ec2_vpc_subnet_info short_description: Gather information about ec2 VPC subnets in AWS description: - Gather information about ec2 VPC subnets in AWS - This module was called C(ec2_vpc_subnet_facts) before Ansible 2.9. The usage did not change. version_added: "2.1" author: "Rob White (@wimnat)" requirements: - boto3 - botocore options: subnet_ids: description: - A list of subnet IDs to gather information for. version_added: "2.5" aliases: ['subnet_id'] type: list elements: str filters: description: - A dict of filters to apply. Each dict item consists of a filter key and a filter value. See U(https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html) for possible filters. type: dict extends_documentation_fragment: - aws - ec2 ''' EXAMPLES = ''' # Note: These examples do not set authentication details, see the AWS Guide for details. # Gather information about all VPC subnets - ec2_vpc_subnet_info: # Gather information about a particular VPC subnet using ID - ec2_vpc_subnet_info: subnet_ids: subnet-00112233 # Gather information about any VPC subnet with a tag key Name and value Example - ec2_vpc_subnet_info: filters: "tag:Name": Example # Gather information about any VPC subnet within VPC with ID vpc-abcdef00 - ec2_vpc_subnet_info: filters: vpc-id: vpc-abcdef00 # Gather information about a set of VPC subnets, publicA, publicB and publicC within a # VPC with ID vpc-abcdef00 and then use the jinja map function to return the # subnet_ids as a list. - ec2_vpc_subnet_info: filters: vpc-id: vpc-abcdef00 "tag:Name": "{{ item }}" loop: - publicA - publicB - publicC register: subnet_info - set_fact: subnet_ids: "{{ subnet_info.subnets|map(attribute='id')|list }}" ''' RETURN = ''' subnets: description: Returns an array of complex objects as described below. returned: success type: complex contains: subnet_id: description: The ID of the Subnet. returned: always type: str id: description: The ID of the Subnet (for backwards compatibility). returned: always type: str vpc_id: description: The ID of the VPC . returned: always type: str state: description: The state of the subnet. returned: always type: str tags: description: A dict of tags associated with the Subnet. returned: always type: dict map_public_ip_on_launch: description: True/False depending on attribute setting for public IP mapping. returned: always type: bool default_for_az: description: True if this is the default subnet for AZ. returned: always type: bool cidr_block: description: The IPv4 CIDR block assigned to the subnet. returned: always type: str available_ip_address_count: description: Count of available IPs in subnet. returned: always type: str availability_zone: description: The availability zone where the subnet exists. returned: always type: str assign_ipv6_address_on_creation: description: True/False depending on attribute setting for IPv6 address assignment. returned: always type: bool ipv6_cidr_block_association_set: description: An array of IPv6 cidr block association set information. returned: always type: complex contains: association_id: description: The association ID returned: always type: str ipv6_cidr_block: description: The IPv6 CIDR block that is associated with the subnet. returned: always type: str ipv6_cidr_block_state: description: A hash/dict that contains a single item. The state of the cidr block association. returned: always type: dict contains: state: description: The CIDR block association state. returned: always type: str ''' import traceback from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.ec2 import ( boto3_conn, ec2_argument_spec, get_aws_connection_info, AWSRetry, HAS_BOTO3, boto3_tag_list_to_ansible_dict, camel_dict_to_snake_dict, ansible_dict_to_boto3_filter_list ) from ansible.module_utils._text import to_native try: import botocore except ImportError: pass # caught by imported HAS_BOTO3 @AWSRetry.exponential_backoff() def describe_subnets_with_backoff(connection, subnet_ids, filters): """ Describe Subnets with AWSRetry backoff throttling support. connection : boto3 client connection object subnet_ids : list of subnet ids for which to gather information filters : additional filters to apply to request """ return connection.describe_subnets(SubnetIds=subnet_ids, Filters=filters) def describe_subnets(connection, module): """ Describe Subnets. module : AnsibleModule object connection : boto3 client connection object """ # collect parameters filters = ansible_dict_to_boto3_filter_list(module.params.get('filters')) subnet_ids = module.params.get('subnet_ids') if subnet_ids is None: # Set subnet_ids to empty list if it is None subnet_ids = [] # init empty list for return vars subnet_info = list() # Get the basic VPC info try: response = describe_subnets_with_backoff(connection, subnet_ids, filters) except botocore.exceptions.ClientError as e: module.fail_json(msg=to_native(e), exception=traceback.format_exc(), **camel_dict_to_snake_dict(e.response)) for subnet in response['Subnets']: # for backwards compatibility subnet['id'] = subnet['SubnetId'] subnet_info.append(camel_dict_to_snake_dict(subnet)) # convert tag list to ansible dict subnet_info[-1]['tags'] = boto3_tag_list_to_ansible_dict(subnet.get('Tags', [])) module.exit_json(subnets=subnet_info) def main(): argument_spec = ec2_argument_spec() argument_spec.update(dict( subnet_ids=dict(type='list', default=[], aliases=['subnet_id']), filters=dict(type='dict', default={}) )) module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) if module._name == 'ec2_vpc_subnet_facts': module.deprecate("The 'ec2_vpc_subnet_facts' module has been renamed to 'ec2_vpc_subnet_info'", version='2.13') if not HAS_BOTO3: module.fail_json(msg='boto3 is required for this module') region, ec2_url, aws_connect_params = get_aws_connection_info(module, boto3=True) if region: try: connection = boto3_conn(module, conn_type='client', resource='ec2', region=region, endpoint=ec2_url, **aws_connect_params) except (botocore.exceptions.NoCredentialsError, botocore.exceptions.ProfileNotFound) as e: module.fail_json(msg=to_native(e), exception=traceback.format_exc(), **camel_dict_to_snake_dict(e.response)) else: module.fail_json(msg="Region must be specified") describe_subnets(connection, module) if __name__ == '__main__': main()
Elico-Corp/odoo_OCB
refs/heads/9.0
addons/payment_buckaroo/models/buckaroo.py
12
# -*- coding: utf-'8' "-*-" from hashlib import sha1 import logging import urllib import urlparse from openerp.addons.payment.models.payment_acquirer import ValidationError from openerp.addons.payment_buckaroo.controllers.main import BuckarooController from openerp.osv import osv, fields from openerp.tools.float_utils import float_compare from openerp.tools.translate import _ _logger = logging.getLogger(__name__) def normalize_keys_upper(data): """Set all keys of a dictionnary to uppercase Buckaroo parameters names are case insensitive convert everything to upper case to be able to easily detected the presence of a parameter by checking the uppercase key only """ return dict((key.upper(), val) for key, val in data.items()) class AcquirerBuckaroo(osv.Model): _inherit = 'payment.acquirer' def _get_buckaroo_urls(self, cr, uid, environment, context=None): """ Buckaroo URLs """ if environment == 'prod': return { 'buckaroo_form_url': 'https://checkout.buckaroo.nl/html/', } else: return { 'buckaroo_form_url': 'https://testcheckout.buckaroo.nl/html/', } def _get_providers(self, cr, uid, context=None): providers = super(AcquirerBuckaroo, self)._get_providers(cr, uid, context=context) providers.append(['buckaroo', 'Buckaroo']) return providers _columns = { 'brq_websitekey': fields.char('WebsiteKey', required_if_provider='buckaroo', groups='base.group_user'), 'brq_secretkey': fields.char('SecretKey', required_if_provider='buckaroo', groups='base.group_user'), } def _buckaroo_generate_digital_sign(self, acquirer, inout, values): """ Generate the shasign for incoming or outgoing communications. :param browse acquirer: the payment.acquirer browse record. It should have a shakey in shaky out :param string inout: 'in' (openerp contacting buckaroo) or 'out' (buckaroo contacting openerp). :param dict values: transaction values :return string: shasign """ assert inout in ('in', 'out') assert acquirer.provider == 'buckaroo' keys = "add_returndata Brq_amount Brq_culture Brq_currency Brq_invoicenumber Brq_return Brq_returncancel Brq_returnerror Brq_returnreject brq_test Brq_websitekey".split() def get_value(key): if values.get(key): return values[key] return '' values = dict(values or {}) if inout == 'out': for key in values.keys(): # case insensitive keys if key.upper() == 'BRQ_SIGNATURE': del values[key] break items = sorted(values.items(), key=lambda (x, y): x.lower()) sign = ''.join('%s=%s' % (k, urllib.unquote_plus(v)) for k, v in items) else: sign = ''.join('%s=%s' % (k,get_value(k)) for k in keys) #Add the pre-shared secret key at the end of the signature sign = sign + acquirer.brq_secretkey if isinstance(sign, str): # TODO: remove me? should not be used sign = urlparse.parse_qsl(sign) shasign = sha1(sign.encode('utf-8')).hexdigest() return shasign def buckaroo_form_generate_values(self, cr, uid, id, values, context=None): base_url = self.pool['ir.config_parameter'].get_param(cr, uid, 'web.base.url') acquirer = self.browse(cr, uid, id, context=context) buckaroo_tx_values = dict(values) buckaroo_tx_values.update({ 'Brq_websitekey': acquirer.brq_websitekey, 'Brq_amount': values['amount'], 'Brq_currency': values['currency'] and values['currency'].name or '', 'Brq_invoicenumber': values['reference'], 'brq_test': False if acquirer.environment == 'prod' else True, 'Brq_return': '%s' % urlparse.urljoin(base_url, BuckarooController._return_url), 'Brq_returncancel': '%s' % urlparse.urljoin(base_url, BuckarooController._cancel_url), 'Brq_returnerror': '%s' % urlparse.urljoin(base_url, BuckarooController._exception_url), 'Brq_returnreject': '%s' % urlparse.urljoin(base_url, BuckarooController._reject_url), 'Brq_culture': (values.get('partner_lang') or 'en_US').replace('_', '-'), 'add_returndata': buckaroo_tx_values.pop('return_url', '') or '', }) buckaroo_tx_values['Brq_signature'] = self._buckaroo_generate_digital_sign(acquirer, 'in', buckaroo_tx_values) return buckaroo_tx_values def buckaroo_get_form_action_url(self, cr, uid, id, context=None): acquirer = self.browse(cr, uid, id, context=context) return self._get_buckaroo_urls(cr, uid, acquirer.environment, context=context)['buckaroo_form_url'] class TxBuckaroo(osv.Model): _inherit = 'payment.transaction' # buckaroo status _buckaroo_valid_tx_status = [190] _buckaroo_pending_tx_status = [790, 791, 792, 793] _buckaroo_cancel_tx_status = [890, 891] _buckaroo_error_tx_status = [490, 491, 492] _buckaroo_reject_tx_status = [690] # -------------------------------------------------- # FORM RELATED METHODS # -------------------------------------------------- def _buckaroo_form_get_tx_from_data(self, cr, uid, data, context=None): """ Given a data dict coming from buckaroo, verify it and find the related transaction record. """ origin_data = dict(data) data = normalize_keys_upper(data) reference, pay_id, shasign = data.get('BRQ_INVOICENUMBER'), data.get('BRQ_PAYMENT'), data.get('BRQ_SIGNATURE') if not reference or not pay_id or not shasign: error_msg = _('Buckaroo: received data with missing reference (%s) or pay_id (%s) or shasign (%s)') % (reference, pay_id, shasign) _logger.info(error_msg) raise ValidationError(error_msg) tx_ids = self.search(cr, uid, [('reference', '=', reference)], context=context) if not tx_ids or len(tx_ids) > 1: error_msg = _('Buckaroo: received data for reference %s') % (reference) if not tx_ids: error_msg += _('; no order found') else: error_msg += _('; multiple order found') _logger.info(error_msg) raise ValidationError(error_msg) tx = self.pool['payment.transaction'].browse(cr, uid, tx_ids[0], context=context) #verify shasign shasign_check = self.pool['payment.acquirer']._buckaroo_generate_digital_sign(tx.acquirer_id, 'out', origin_data) if shasign_check.upper() != shasign.upper(): error_msg = _('Buckaroo: invalid shasign, received %s, computed %s, for data %s') % (shasign, shasign_check, data) _logger.info(error_msg) raise ValidationError(error_msg) return tx def _buckaroo_form_get_invalid_parameters(self, cr, uid, tx, data, context=None): invalid_parameters = [] data = normalize_keys_upper(data) if tx.acquirer_reference and data.get('BRQ_TRANSACTIONS') != tx.acquirer_reference: invalid_parameters.append(('Transaction Id', data.get('BRQ_TRANSACTIONS'), tx.acquirer_reference)) # check what is buyed if float_compare(float(data.get('BRQ_AMOUNT', '0.0')), tx.amount, 2) != 0: invalid_parameters.append(('Amount', data.get('BRQ_AMOUNT'), '%.2f' % tx.amount)) if data.get('BRQ_CURRENCY') != tx.currency_id.name: invalid_parameters.append(('Currency', data.get('BRQ_CURRENCY'), tx.currency_id.name)) return invalid_parameters def _buckaroo_form_validate(self, cr, uid, tx, data, context=None): data = normalize_keys_upper(data) status_code = int(data.get('BRQ_STATUSCODE','0')) if status_code in self._buckaroo_valid_tx_status: tx.write({ 'state': 'done', 'acquirer_reference': data.get('BRQ_TRANSACTIONS'), }) return True elif status_code in self._buckaroo_pending_tx_status: tx.write({ 'state': 'pending', 'acquirer_reference': data.get('BRQ_TRANSACTIONS'), }) return True elif status_code in self._buckaroo_cancel_tx_status: tx.write({ 'state': 'cancel', 'acquirer_reference': data.get('BRQ_TRANSACTIONS'), }) return True else: error = 'Buckaroo: feedback error' _logger.info(error) tx.write({ 'state': 'error', 'state_message': error, 'acquirer_reference': data.get('BRQ_TRANSACTIONS'), }) return False
mancoast/CPythonPyc_test
refs/heads/master
cpython/250_test_socketserver.py
2
# Test suite for SocketServer.py from test import test_support from test.test_support import (verbose, verify, TESTFN, TestSkipped, reap_children) test_support.requires('network') from SocketServer import * import socket import errno import select import time import threading import os NREQ = 3 DELAY = 0.5 class MyMixinHandler: def handle(self): time.sleep(DELAY) line = self.rfile.readline() time.sleep(DELAY) self.wfile.write(line) class MyStreamHandler(MyMixinHandler, StreamRequestHandler): pass class MyDatagramHandler(MyMixinHandler, DatagramRequestHandler): pass class MyMixinServer: def serve_a_few(self): for i in range(NREQ): self.handle_request() def handle_error(self, request, client_address): self.close_request(request) self.server_close() raise teststring = "hello world\n" def receive(sock, n, timeout=20): r, w, x = select.select([sock], [], [], timeout) if sock in r: return sock.recv(n) else: raise RuntimeError, "timed out on %r" % (sock,) def testdgram(proto, addr): s = socket.socket(proto, socket.SOCK_DGRAM) s.sendto(teststring, addr) buf = data = receive(s, 100) while data and '\n' not in buf: data = receive(s, 100) buf += data verify(buf == teststring) s.close() def teststream(proto, addr): s = socket.socket(proto, socket.SOCK_STREAM) s.connect(addr) s.sendall(teststring) buf = data = receive(s, 100) while data and '\n' not in buf: data = receive(s, 100) buf += data verify(buf == teststring) s.close() class ServerThread(threading.Thread): def __init__(self, addr, svrcls, hdlrcls): threading.Thread.__init__(self) self.__addr = addr self.__svrcls = svrcls self.__hdlrcls = hdlrcls def run(self): class svrcls(MyMixinServer, self.__svrcls): pass if verbose: print "thread: creating server" svr = svrcls(self.__addr, self.__hdlrcls) # pull the address out of the server in case it changed # this can happen if another process is using the port addr = getattr(svr, 'server_address') if addr: self.__addr = addr if verbose: print "thread: serving three times" svr.serve_a_few() if verbose: print "thread: done" seed = 0 def pickport(): global seed seed += 1 return 10000 + (os.getpid() % 1000)*10 + seed host = "localhost" testfiles = [] def pickaddr(proto): if proto == socket.AF_INET: return (host, pickport()) else: fn = TESTFN + str(pickport()) if os.name == 'os2': # AF_UNIX socket names on OS/2 require a specific prefix # which can't include a drive letter and must also use # backslashes as directory separators if fn[1] == ':': fn = fn[2:] if fn[0] in (os.sep, os.altsep): fn = fn[1:] fn = os.path.join('\socket', fn) if os.sep == '/': fn = fn.replace(os.sep, os.altsep) else: fn = fn.replace(os.altsep, os.sep) testfiles.append(fn) return fn def cleanup(): for fn in testfiles: try: os.remove(fn) except os.error: pass testfiles[:] = [] def testloop(proto, servers, hdlrcls, testfunc): for svrcls in servers: addr = pickaddr(proto) if verbose: print "ADDR =", addr print "CLASS =", svrcls t = ServerThread(addr, svrcls, hdlrcls) if verbose: print "server created" t.start() if verbose: print "server running" for i in range(NREQ): time.sleep(DELAY) if verbose: print "test client", i testfunc(proto, addr) if verbose: print "waiting for server" t.join() if verbose: print "done" class ForgivingTCPServer(TCPServer): # prevent errors if another process is using the port we want def server_bind(self): host, default_port = self.server_address # this code shamelessly stolen from test.test_support # the ports were changed to protect the innocent import sys for port in [default_port, 3434, 8798, 23833]: try: self.server_address = host, port TCPServer.server_bind(self) break except socket.error, (err, msg): if err != errno.EADDRINUSE: raise print >>sys.__stderr__, \ ' WARNING: failed to listen on port %d, trying another' % port tcpservers = [ForgivingTCPServer, ThreadingTCPServer] if hasattr(os, 'fork') and os.name not in ('os2',): tcpservers.append(ForkingTCPServer) udpservers = [UDPServer, ThreadingUDPServer] if hasattr(os, 'fork') and os.name not in ('os2',): udpservers.append(ForkingUDPServer) if not hasattr(socket, 'AF_UNIX'): streamservers = [] dgramservers = [] else: class ForkingUnixStreamServer(ForkingMixIn, UnixStreamServer): pass streamservers = [UnixStreamServer, ThreadingUnixStreamServer] if hasattr(os, 'fork') and os.name not in ('os2',): streamservers.append(ForkingUnixStreamServer) class ForkingUnixDatagramServer(ForkingMixIn, UnixDatagramServer): pass dgramservers = [UnixDatagramServer, ThreadingUnixDatagramServer] if hasattr(os, 'fork') and os.name not in ('os2',): dgramservers.append(ForkingUnixDatagramServer) def sloppy_cleanup(): # See http://python.org/sf/1540386 # We need to reap children here otherwise a child from one server # can be left running for the next server and cause a test failure. time.sleep(DELAY) reap_children() def testall(): testloop(socket.AF_INET, tcpservers, MyStreamHandler, teststream) sloppy_cleanup() testloop(socket.AF_INET, udpservers, MyDatagramHandler, testdgram) if hasattr(socket, 'AF_UNIX'): sloppy_cleanup() testloop(socket.AF_UNIX, streamservers, MyStreamHandler, teststream) # Alas, on Linux (at least) recvfrom() doesn't return a meaningful # client address so this cannot work: ##testloop(socket.AF_UNIX, dgramservers, MyDatagramHandler, testdgram) def test_main(): import imp if imp.lock_held(): # If the import lock is held, the threads will hang. raise TestSkipped("can't run when import lock is held") try: testall() finally: cleanup() reap_children() if __name__ == "__main__": test_main()
munnerz/CouchPotatoServer
refs/heads/master
couchpotato/core/downloaders/qbittorrent_.py
13
from base64 import b16encode, b32decode from hashlib import sha1 from datetime import timedelta import os import re from bencode import bencode, bdecode from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList from couchpotato.core.helpers.encoding import sp from couchpotato.core.helpers.variable import cleanHost from couchpotato.core.logger import CPLog from qbittorrent.client import QBittorrentClient log = CPLog(__name__) autoload = 'qBittorrent' class qBittorrent(DownloaderBase): protocol = ['torrent', 'torrent_magnet'] qb = None def __init__(self): super(qBittorrent, self).__init__() def connect(self): if self.qb is not None: self.qb.logout() url = cleanHost(self.conf('host'), protocol = True, ssl = False) if self.conf('username') and self.conf('password'): self.qb = QBittorrentClient(url) self.qb.login(username=self.conf('username'), password=self.conf('password')) else: self.qb = QBittorrentClient(url) return self.qb._is_authenticated def test(self): """ Check if connection works :return: bool """ return self.connect() def download(self, data = None, media = None, filedata = None): """ Send a torrent/nzb file to the downloader :param data: dict returned from provider Contains the release information :param media: media dict with information Used for creating the filename when possible :param filedata: downloaded torrent/nzb filedata The file gets downloaded in the searcher and send to this function This is done to have failed checking before using the downloader, so the downloader doesn't need to worry about that :return: boolean One faile returns false, but the downloaded should log his own errors """ if not media: media = {} if not data: data = {} log.debug('Sending "%s" to qBittorrent.', (data.get('name'))) if not self.connect(): return False if not filedata and data.get('protocol') == 'torrent': log.error('Failed sending torrent, no data') return False if data.get('protocol') == 'torrent_magnet': # Send request to qBittorrent directly as a magnet try: self.qb.download_from_link(data.get('url'), label=self.conf('label')) torrent_hash = re.findall('urn:btih:([\w]{32,40})', data.get('url'))[0].upper() log.info('Torrent [magnet] sent to QBittorrent successfully.') return self.downloadReturnId(torrent_hash) except Exception as e: log.error('Failed to send torrent to qBittorrent: %s', e) return False if data.get('protocol') == 'torrent': info = bdecode(filedata)["info"] torrent_hash = sha1(bencode(info)).hexdigest() # Convert base 32 to hex if len(torrent_hash) == 32: torrent_hash = b16encode(b32decode(torrent_hash)) # Send request to qBittorrent try: self.qb.download_from_file(filedata, label=self.conf('label')) log.info('Torrent [file] sent to QBittorrent successfully.') return self.downloadReturnId(torrent_hash) except Exception as e: log.error('Failed to send torrent to qBittorrent: %s', e) return False def getTorrentStatus(self, torrent): if torrent['state'] in ('uploading', 'queuedUP', 'stalledUP'): return 'seeding' if torrent['progress'] == 1: return 'completed' return 'busy' def getAllDownloadStatus(self, ids): """ Get status of all active downloads :param ids: list of (mixed) downloader ids Used to match the releases for this downloader as there could be other downloaders active that it should ignore :return: list of releases """ log.debug('Checking qBittorrent download status.') if not self.connect(): return [] try: torrents = self.qb.torrents(status='all', label=self.conf('label')) release_downloads = ReleaseDownloadList(self) for torrent in torrents: if torrent['hash'] in ids: torrent_filelist = self.qb.get_torrent_files(torrent['hash']) torrent_files = [] torrent_dir = os.path.join(torrent['save_path'], torrent['name']) if os.path.isdir(torrent_dir): torrent['save_path'] = torrent_dir if len(torrent_filelist) > 1 and os.path.isdir(torrent_dir): # multi file torrent, path.isdir check makes sure we're not in the root download folder for root, _, files in os.walk(torrent['save_path']): for f in files: torrent_files.append(sp(os.path.join(root, f))) else: # multi or single file placed directly in torrent.save_path for f in torrent_filelist: file_path = os.path.join(torrent['save_path'], f['name']) if os.path.isfile(file_path): torrent_files.append(sp(file_path)) release_downloads.append({ 'id': torrent['hash'], 'name': torrent['name'], 'status': self.getTorrentStatus(torrent), 'seed_ratio': torrent['ratio'], 'original_status': torrent['state'], 'timeleft': str(timedelta(seconds = torrent['eta'])), 'folder': sp(torrent['save_path']), 'files': torrent_files }) return release_downloads except Exception as e: log.error('Failed to get status from qBittorrent: %s', e) return [] def pause(self, release_download, pause = True): if not self.connect(): return False torrent = self.qb.get_torrent(release_download['id']) if torrent is None: return False if pause: return self.qb.pause(release_download['id']) return self.qb.resume(release_download['id']) def removeFailed(self, release_download): log.info('%s failed downloading, deleting...', release_download['name']) return self.processComplete(release_download, delete_files = True) def processComplete(self, release_download, delete_files): log.debug('Requesting qBittorrent to remove the torrent %s%s.', (release_download['name'], ' and cleanup the downloaded files' if delete_files else '')) if not self.connect(): return False torrent = self.qb.get_torrent(release_download['id']) if torrent is None: return False if delete_files: self.qb.delete_permanently(release_download['id']) # deletes torrent with data else: self.qb.delete(release_download['id']) # just removes the torrent, doesn't delete data return True config = [{ 'name': 'qbittorrent', 'groups': [ { 'tab': 'downloaders', 'list': 'download_providers', 'name': 'qbittorrent', 'label': 'qBittorrent', 'description': 'Use <a href="http://www.qbittorrent.org/" target="_blank">qBittorrent</a> to download torrents.', 'wizard': True, 'options': [ { 'name': 'enabled', 'default': 0, 'type': 'enabler', 'radio_group': 'torrent', }, { 'name': 'host', 'default': 'http://localhost:8080/', 'description': 'RPC Communication URI. Usually <strong>http://localhost:8080/</strong>' }, { 'name': 'username', }, { 'name': 'password', 'type': 'password', }, { 'name': 'label', 'label': 'Torrent Label', 'default': 'couchpotato', }, { 'name': 'remove_complete', 'label': 'Remove torrent', 'default': False, 'advanced': True, 'type': 'bool', 'description': 'Remove the torrent after it finishes seeding.', }, { 'name': 'delete_files', 'label': 'Remove files', 'default': True, 'type': 'bool', 'advanced': True, 'description': 'Also remove the leftover files.', }, { 'name': 'paused', 'type': 'bool', 'advanced': True, 'default': False, 'description': 'Add the torrent paused.', }, { 'name': 'manual', 'default': 0, 'type': 'bool', 'advanced': True, 'description': 'Disable this downloader for automated searches, but use it when I manually send a release.', }, ], } ], }]
javiercantero/streamlink
refs/heads/master
src/streamlink/plugins/antenna.py
2
import re import json from streamlink.plugin import Plugin from streamlink.plugin.api import http, validate from streamlink.stream import HDSStream _url_re = re.compile(r"(http(s)?://(\w+\.)?antenna.gr)/webtv/watch\?cid=.+") _playlist_re = re.compile(r"playlist:\s*\"(/templates/data/jplayer\?cid=[^\"]+)") _manifest_re = re.compile(r"jwplayer:source\s+file=\"([^\"]+)\"") _swf_re = re.compile(r"<jwplayer:provider>(http[^<]+)</jwplayer:provider>") class Antenna(Plugin): @classmethod def can_handle_url(self, url): return _url_re.match(url) def _get_streams(self): # Discover root match = _url_re.search(self.url) root = match.group(1) # Download main URL res = http.get(self.url) # Find playlist match = _playlist_re.search(res.text) playlist_url = root + match.group(1) + "d" # Download playlist res = http.get(playlist_url) # Find manifest match = _manifest_re.search(res.text) manifest_url = match.group(1) # Find SWF match = _swf_re.search(res.text) swf_url = match.group(1) streams = {} streams.update( HDSStream.parse_manifest(self.session, manifest_url, pvswf=swf_url) ) return streams __plugin__ = Antenna
tomduijf/home-assistant
refs/heads/master
homeassistant/components/sensor/transmission.py
10
""" homeassistant.components.sensor.transmission ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monitors Transmission BitTorrent client API. Configuration: To use the Transmission sensor you will need to add something like the following to your configuration.yaml file. sensor: platform: transmission name: Transmission host: 192.168.1.26 port: 9091 username: YOUR_USERNAME password: YOUR_PASSWORD monitored_variables: - 'current_status' - 'download_speed' - 'upload_speed' Variables: host *Required This is the IP address of your Transmission daemon, e.g. 192.168.1.32 port *Optional The port your Transmission daemon uses, defaults to 9091. Example: 8080 username *Required Your Transmission username. password *Required Your Transmission password. name *Optional The name to use when displaying this Transmission instance. monitored_variables *Required Variables to monitor. See the configuration example above for a list of all available variables to monitor. """ from homeassistant.util import Throttle from datetime import timedelta from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD from homeassistant.helpers.entity import Entity # pylint: disable=no-name-in-module, import-error import transmissionrpc from transmissionrpc.error import TransmissionError import logging REQUIREMENTS = ['transmissionrpc==0.11'] SENSOR_TYPES = { 'current_status': ['Status', ''], 'download_speed': ['Down Speed', 'MB/s'], 'upload_speed': ['Up Speed', 'MB/s'] } _LOGGER = logging.getLogger(__name__) _THROTTLED_REFRESH = None # pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """ Sets up the Transmission sensors. """ host = config.get(CONF_HOST) username = config.get(CONF_USERNAME, None) password = config.get(CONF_PASSWORD, None) port = config.get('port', 9091) name = config.get("name", "Transmission") if not host: _LOGGER.error('Missing config variable %s', CONF_HOST) return False # import logging # logging.getLogger('transmissionrpc').setLevel(logging.DEBUG) transmission_api = transmissionrpc.Client( host, port=port, user=username, password=password) try: transmission_api.session_stats() except TransmissionError: _LOGGER.exception("Connection to Transmission API failed.") return False # pylint: disable=global-statement global _THROTTLED_REFRESH _THROTTLED_REFRESH = Throttle(timedelta(seconds=1))( transmission_api.session_stats) dev = [] for variable in config['monitored_variables']: if variable not in SENSOR_TYPES: _LOGGER.error('Sensor type: "%s" does not exist', variable) else: dev.append(TransmissionSensor( variable, transmission_api, name)) add_devices(dev) class TransmissionSensor(Entity): """ A Transmission sensor. """ def __init__(self, sensor_type, transmission_client, client_name): self._name = SENSOR_TYPES[sensor_type][0] self.transmission_client = transmission_client self.type = sensor_type self.client_name = client_name self._state = None self._unit_of_measurement = SENSOR_TYPES[sensor_type][1] @property def name(self): return self.client_name + ' ' + self._name @property def state(self): """ Returns the state of the device. """ return self._state @property def unit_of_measurement(self): """ Unit of measurement of this entity, if any. """ return self._unit_of_measurement def refresh_transmission_data(self): """ Calls the throttled Transmission refresh method. """ if _THROTTLED_REFRESH is not None: try: _THROTTLED_REFRESH() except TransmissionError: _LOGGER.exception( self.name + " Connection to Transmission API failed." ) def update(self): """ Gets the latest data from Transmission and updates the state. """ self.refresh_transmission_data() if self.type == 'current_status': if self.transmission_client.session: upload = self.transmission_client.session.uploadSpeed download = self.transmission_client.session.downloadSpeed if upload > 0 and download > 0: self._state = 'Up/Down' elif upload > 0 and download == 0: self._state = 'Seeding' elif upload == 0 and download > 0: self._state = 'Downloading' else: self._state = 'Idle' else: self._state = 'Unknown' if self.transmission_client.session: if self.type == 'download_speed': mb_spd = float(self.transmission_client.session.downloadSpeed) mb_spd = mb_spd / 1024 / 1024 self._state = round(mb_spd, 2 if mb_spd < 0.1 else 1) elif self.type == 'upload_speed': mb_spd = float(self.transmission_client.session.uploadSpeed) mb_spd = mb_spd / 1024 / 1024 self._state = round(mb_spd, 2 if mb_spd < 0.1 else 1)
thdtjsdn/geonode
refs/heads/master
geonode/security/urls.py
31
from django.conf.urls import patterns, url urlpatterns = patterns('geonode.security.views', url(r'^permissions/(?P<resource_id>\d+)$', 'resource_permissions', name='resource_permissions'), url(r'^bulk-permissions/?$', 'set_bulk_permissions', name='bulk_permissions'), url(r'^request-permissions/?$', 'request_permissions', name='request_permissions'), )
ol-loginov/intellij-community
refs/heads/master
python/testData/quickFixes/PyRemoveStatementQuickFixTest/variable.py
80
def foo(r): """ :param r: :return: """ def a(): pass x<caret> = 1 x = 2
drjova/cds-demosite
refs/heads/cdslabs_qa
cds/version.py
3
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2014, 2015 CERN. # # Invenio is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # Invenio 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 # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Invenio; if not, write to the # Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307, USA. # # In applying this license, CERN does not # waive the privileges and immunities granted to it by virtue of its status # as an Intergovernmental Organization or submit itself to any jurisdiction. """CDS version.""" __version__ = "0.3.0"
sesuncedu/sdhash
refs/heads/master
external/tools/build/v2/test/path_features.py
20
#!/usr/bin/python # Copyright 2003 Dave Abrahams # Copyright 2002, 2003, 2004 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import BoostBuild t = BoostBuild.Tester() t.write("jamroot.jam", "import gcc ;") t.write("jamfile.jam", "lib a : a.cpp : <include>. ;") t.write("a.cpp", """ #include <a.h> void # ifdef _WIN32 __declspec(dllexport) # endif foo() {} """) t.write("a.h", "//empty file\n") t.write("d/jamfile.jam", "exe b : b.cpp ..//a ; ") t.write("d/b.cpp", """ void foo(); int main() { foo(); } """) t.run_build_system(subdir="d") # Now test the path features with condition work as well. t.write("jamfile.jam", "lib a : a.cpp : <variant>debug:<include>. ;") t.rm("bin") t.run_build_system(subdir="d") # Test path features with condition in usage requirements. t.write("jamfile.jam", """ lib a : a.cpp : <include>. : : <variant>debug:<include>. ; """) t.write("d/b.cpp", """ #include <a.h> void foo(); int main() { foo(); } """) t.rm("d/bin") t.run_build_system(subdir="d") # Test that absolute paths inside requirements are ok. The problems appeared # only when building targets in subprojects. t.write("jamroot.jam", "") t.write("jamfile.jam", "build-project x ; ") t.write("x/jamfile.jam", """ local pwd = [ PWD ] ; project : requirements <include>$(pwd)/x/include ; exe m : m.cpp : <include>$(pwd)/x/include2 ; """) t.write("x/m.cpp", """ #include <h1.hpp> #include <h2.hpp> int main() {} """) t.write("x/include/h1.hpp", "\n") t.write("x/include2/h2.hpp", "\n") t.run_build_system() t.expect_addition("x/bin/$toolset/debug/m.exe") # Test that "&&" in path features is handled correctly. t.rm("bin") t.write("jamfile.jam", "build-project sub ;") t.write("sub/jamfile.jam", """ exe a : a.cpp : <include>../h1&&../h2 ; """) t.write("sub/a.cpp", """ #include <header.h> int main() { return OK; } """) t.write("h2/header.h", """ const int OK = 0; """) t.run_build_system() t.expect_addition("sub/bin/$toolset/debug/a.exe") t.cleanup()
anant-dev/django
refs/heads/master
tests/user_commands/management/commands/transaction.py
553
from django.core.management.base import BaseCommand class Command(BaseCommand): help = "Say hello." args = '' output_transaction = True def handle(self, *args, **options): return 'Hello!'
joelddiaz/openshift-tools
refs/heads/prod
openshift/installer/vendored/openshift-ansible-3.5.127/roles/lib_utils/src/class/yedit.py
14
# flake8: noqa # pylint: disable=undefined-variable,missing-docstring # noqa: E301,E302 class YeditException(Exception): ''' Exception class for Yedit ''' pass # pylint: disable=too-many-public-methods class Yedit(object): ''' Class to modify yaml files ''' re_valid_key = r"(((\[-?\d+\])|([0-9a-zA-Z%s/_-]+)).?)+$" re_key = r"(?:\[(-?\d+)\])|([0-9a-zA-Z%s/_-]+)" com_sep = set(['.', '#', '|', ':']) # pylint: disable=too-many-arguments def __init__(self, filename=None, content=None, content_type='yaml', separator='.', backup=False): self.content = content self._separator = separator self.filename = filename self.__yaml_dict = content self.content_type = content_type self.backup = backup self.load(content_type=self.content_type) if self.__yaml_dict is None: self.__yaml_dict = {} @property def separator(self): ''' getter method for yaml_dict ''' return self._separator @separator.setter def separator(self): ''' getter method for yaml_dict ''' return self._separator @property def yaml_dict(self): ''' getter method for yaml_dict ''' return self.__yaml_dict @yaml_dict.setter def yaml_dict(self, value): ''' setter method for yaml_dict ''' self.__yaml_dict = value @staticmethod def parse_key(key, sep='.'): '''parse the key allowing the appropriate separator''' common_separators = list(Yedit.com_sep - set([sep])) return re.findall(Yedit.re_key % ''.join(common_separators), key) @staticmethod def valid_key(key, sep='.'): '''validate the incoming key''' common_separators = list(Yedit.com_sep - set([sep])) if not re.match(Yedit.re_valid_key % ''.join(common_separators), key): return False return True @staticmethod def remove_entry(data, key, sep='.'): ''' remove data at location key ''' if key == '' and isinstance(data, dict): data.clear() return True elif key == '' and isinstance(data, list): del data[:] return True if not (key and Yedit.valid_key(key, sep)) and \ isinstance(data, (list, dict)): return None key_indexes = Yedit.parse_key(key, sep) for arr_ind, dict_key in key_indexes[:-1]: if dict_key and isinstance(data, dict): data = data.get(dict_key, None) elif (arr_ind and isinstance(data, list) and int(arr_ind) <= len(data) - 1): data = data[int(arr_ind)] else: return None # process last index for remove # expected list entry if key_indexes[-1][0]: if isinstance(data, list) and int(key_indexes[-1][0]) <= len(data) - 1: # noqa: E501 del data[int(key_indexes[-1][0])] return True # expected dict entry elif key_indexes[-1][1]: if isinstance(data, dict): del data[key_indexes[-1][1]] return True @staticmethod def add_entry(data, key, item=None, sep='.'): ''' Get an item from a dictionary with key notation a.b.c d = {'a': {'b': 'c'}}} key = a#b return c ''' if key == '': pass elif (not (key and Yedit.valid_key(key, sep)) and isinstance(data, (list, dict))): return None key_indexes = Yedit.parse_key(key, sep) for arr_ind, dict_key in key_indexes[:-1]: if dict_key: if isinstance(data, dict) and dict_key in data and data[dict_key]: # noqa: E501 data = data[dict_key] continue elif data and not isinstance(data, dict): raise YeditException("Unexpected item type found while going through key " + "path: {} (at key: {})".format(key, dict_key)) data[dict_key] = {} data = data[dict_key] elif (arr_ind and isinstance(data, list) and int(arr_ind) <= len(data) - 1): data = data[int(arr_ind)] else: raise YeditException("Unexpected item type found while going through key path: {}".format(key)) if key == '': data = item # process last index for add # expected list entry elif key_indexes[-1][0] and isinstance(data, list) and int(key_indexes[-1][0]) <= len(data) - 1: # noqa: E501 data[int(key_indexes[-1][0])] = item # expected dict entry elif key_indexes[-1][1] and isinstance(data, dict): data[key_indexes[-1][1]] = item # didn't add/update to an existing list, nor add/update key to a dict # so we must have been provided some syntax like a.b.c[<int>] = "data" for a # non-existent array else: raise YeditException("Error adding to object at path: {}".format(key)) return data @staticmethod def get_entry(data, key, sep='.'): ''' Get an item from a dictionary with key notation a.b.c d = {'a': {'b': 'c'}}} key = a.b return c ''' if key == '': pass elif (not (key and Yedit.valid_key(key, sep)) and isinstance(data, (list, dict))): return None key_indexes = Yedit.parse_key(key, sep) for arr_ind, dict_key in key_indexes: if dict_key and isinstance(data, dict): data = data.get(dict_key, None) elif (arr_ind and isinstance(data, list) and int(arr_ind) <= len(data) - 1): data = data[int(arr_ind)] else: return None return data @staticmethod def _write(filename, contents): ''' Actually write the file contents to disk. This helps with mocking. ''' tmp_filename = filename + '.yedit' with open(tmp_filename, 'w') as yfd: yfd.write(contents) os.rename(tmp_filename, filename) def write(self): ''' write to file ''' if not self.filename: raise YeditException('Please specify a filename.') if self.backup and self.file_exists(): shutil.copy(self.filename, self.filename + '.orig') # Try to set format attributes if supported try: self.yaml_dict.fa.set_block_style() except AttributeError: pass # Try to use RoundTripDumper if supported. try: Yedit._write(self.filename, yaml.dump(self.yaml_dict, Dumper=yaml.RoundTripDumper)) except AttributeError: Yedit._write(self.filename, yaml.safe_dump(self.yaml_dict, default_flow_style=False)) return (True, self.yaml_dict) def read(self): ''' read from file ''' # check if it exists if self.filename is None or not self.file_exists(): return None contents = None with open(self.filename) as yfd: contents = yfd.read() return contents def file_exists(self): ''' return whether file exists ''' if os.path.exists(self.filename): return True return False def load(self, content_type='yaml'): ''' return yaml file ''' contents = self.read() if not contents and not self.content: return None if self.content: if isinstance(self.content, dict): self.yaml_dict = self.content return self.yaml_dict elif isinstance(self.content, str): contents = self.content # check if it is yaml try: if content_type == 'yaml' and contents: # Try to set format attributes if supported try: self.yaml_dict.fa.set_block_style() except AttributeError: pass # Try to use RoundTripLoader if supported. try: self.yaml_dict = yaml.safe_load(contents, yaml.RoundTripLoader) except AttributeError: self.yaml_dict = yaml.safe_load(contents) # Try to set format attributes if supported try: self.yaml_dict.fa.set_block_style() except AttributeError: pass elif content_type == 'json' and contents: self.yaml_dict = json.loads(contents) except yaml.YAMLError as err: # Error loading yaml or json raise YeditException('Problem with loading yaml file. %s' % err) return self.yaml_dict def get(self, key): ''' get a specified key''' try: entry = Yedit.get_entry(self.yaml_dict, key, self.separator) except KeyError: entry = None return entry def pop(self, path, key_or_item): ''' remove a key, value pair from a dict or an item for a list''' try: entry = Yedit.get_entry(self.yaml_dict, path, self.separator) except KeyError: entry = None if entry is None: return (False, self.yaml_dict) if isinstance(entry, dict): # AUDIT:maybe-no-member makes sense due to fuzzy types # pylint: disable=maybe-no-member if key_or_item in entry: entry.pop(key_or_item) return (True, self.yaml_dict) return (False, self.yaml_dict) elif isinstance(entry, list): # AUDIT:maybe-no-member makes sense due to fuzzy types # pylint: disable=maybe-no-member ind = None try: ind = entry.index(key_or_item) except ValueError: return (False, self.yaml_dict) entry.pop(ind) return (True, self.yaml_dict) return (False, self.yaml_dict) def delete(self, path): ''' remove path from a dict''' try: entry = Yedit.get_entry(self.yaml_dict, path, self.separator) except KeyError: entry = None if entry is None: return (False, self.yaml_dict) result = Yedit.remove_entry(self.yaml_dict, path, self.separator) if not result: return (False, self.yaml_dict) return (True, self.yaml_dict) def exists(self, path, value): ''' check if value exists at path''' try: entry = Yedit.get_entry(self.yaml_dict, path, self.separator) except KeyError: entry = None if isinstance(entry, list): if value in entry: return True return False elif isinstance(entry, dict): if isinstance(value, dict): rval = False for key, val in value.items(): if entry[key] != val: rval = False break else: rval = True return rval return value in entry return entry == value def append(self, path, value): '''append value to a list''' try: entry = Yedit.get_entry(self.yaml_dict, path, self.separator) except KeyError: entry = None if entry is None: self.put(path, []) entry = Yedit.get_entry(self.yaml_dict, path, self.separator) if not isinstance(entry, list): return (False, self.yaml_dict) # AUDIT:maybe-no-member makes sense due to loading data from # a serialized format. # pylint: disable=maybe-no-member entry.append(value) return (True, self.yaml_dict) # pylint: disable=too-many-arguments def update(self, path, value, index=None, curr_value=None): ''' put path, value into a dict ''' try: entry = Yedit.get_entry(self.yaml_dict, path, self.separator) except KeyError: entry = None if isinstance(entry, dict): # AUDIT:maybe-no-member makes sense due to fuzzy types # pylint: disable=maybe-no-member if not isinstance(value, dict): raise YeditException('Cannot replace key, value entry in ' + 'dict with non-dict type. value=[%s] [%s]' % (value, type(value))) # noqa: E501 entry.update(value) return (True, self.yaml_dict) elif isinstance(entry, list): # AUDIT:maybe-no-member makes sense due to fuzzy types # pylint: disable=maybe-no-member ind = None if curr_value: try: ind = entry.index(curr_value) except ValueError: return (False, self.yaml_dict) elif index is not None: ind = index if ind is not None and entry[ind] != value: entry[ind] = value return (True, self.yaml_dict) # see if it exists in the list try: ind = entry.index(value) except ValueError: # doesn't exist, append it entry.append(value) return (True, self.yaml_dict) # already exists, return if ind is not None: return (False, self.yaml_dict) return (False, self.yaml_dict) def put(self, path, value): ''' put path, value into a dict ''' try: entry = Yedit.get_entry(self.yaml_dict, path, self.separator) except KeyError: entry = None if entry == value: return (False, self.yaml_dict) # deepcopy didn't work # Try to use ruamel.yaml and fallback to pyyaml try: tmp_copy = yaml.load(yaml.round_trip_dump(self.yaml_dict, default_flow_style=False), yaml.RoundTripLoader) except AttributeError: tmp_copy = copy.deepcopy(self.yaml_dict) # set the format attributes if available try: tmp_copy.fa.set_block_style() except AttributeError: pass result = Yedit.add_entry(tmp_copy, path, value, self.separator) if not result: return (False, self.yaml_dict) self.yaml_dict = tmp_copy return (True, self.yaml_dict) def create(self, path, value): ''' create a yaml file ''' if not self.file_exists(): # deepcopy didn't work # Try to use ruamel.yaml and fallback to pyyaml try: tmp_copy = yaml.load(yaml.round_trip_dump(self.yaml_dict, default_flow_style=False), yaml.RoundTripLoader) except AttributeError: tmp_copy = copy.deepcopy(self.yaml_dict) # set the format attributes if available try: tmp_copy.fa.set_block_style() except AttributeError: pass result = Yedit.add_entry(tmp_copy, path, value, self.separator) if result: self.yaml_dict = tmp_copy return (True, self.yaml_dict) return (False, self.yaml_dict) @staticmethod def get_curr_value(invalue, val_type): '''return the current value''' if invalue is None: return None curr_value = invalue if val_type == 'yaml': curr_value = yaml.load(invalue) elif val_type == 'json': curr_value = json.loads(invalue) return curr_value @staticmethod def parse_value(inc_value, vtype=''): '''determine value type passed''' true_bools = ['y', 'Y', 'yes', 'Yes', 'YES', 'true', 'True', 'TRUE', 'on', 'On', 'ON', ] false_bools = ['n', 'N', 'no', 'No', 'NO', 'false', 'False', 'FALSE', 'off', 'Off', 'OFF'] # It came in as a string but you didn't specify value_type as string # we will convert to bool if it matches any of the above cases if isinstance(inc_value, str) and 'bool' in vtype: if inc_value not in true_bools and inc_value not in false_bools: raise YeditException('Not a boolean type. str=[%s] vtype=[%s]' % (inc_value, vtype)) elif isinstance(inc_value, bool) and 'str' in vtype: inc_value = str(inc_value) # If vtype is not str then go ahead and attempt to yaml load it. if isinstance(inc_value, str) and 'str' not in vtype: try: inc_value = yaml.load(inc_value) except Exception: raise YeditException('Could not determine type of incoming ' + 'value. value=[%s] vtype=[%s]' % (type(inc_value), vtype)) return inc_value # pylint: disable=too-many-return-statements,too-many-branches @staticmethod def run_ansible(module): '''perform the idempotent crud operations''' yamlfile = Yedit(filename=module.params['src'], backup=module.params['backup'], separator=module.params['separator']) if module.params['src']: rval = yamlfile.load() if yamlfile.yaml_dict is None and \ module.params['state'] != 'present': return {'failed': True, 'msg': 'Error opening file [%s]. Verify that the ' + 'file exists, that it is has correct' + ' permissions, and is valid yaml.'} if module.params['state'] == 'list': if module.params['content']: content = Yedit.parse_value(module.params['content'], module.params['content_type']) yamlfile.yaml_dict = content if module.params['key']: rval = yamlfile.get(module.params['key']) or {} return {'changed': False, 'result': rval, 'state': "list"} elif module.params['state'] == 'absent': if module.params['content']: content = Yedit.parse_value(module.params['content'], module.params['content_type']) yamlfile.yaml_dict = content if module.params['update']: rval = yamlfile.pop(module.params['key'], module.params['value']) else: rval = yamlfile.delete(module.params['key']) if rval[0] and module.params['src']: yamlfile.write() return {'changed': rval[0], 'result': rval[1], 'state': "absent"} elif module.params['state'] == 'present': # check if content is different than what is in the file if module.params['content']: content = Yedit.parse_value(module.params['content'], module.params['content_type']) # We had no edits to make and the contents are the same if yamlfile.yaml_dict == content and \ module.params['value'] is None: return {'changed': False, 'result': yamlfile.yaml_dict, 'state': "present"} yamlfile.yaml_dict = content # we were passed a value; parse it if module.params['value']: value = Yedit.parse_value(module.params['value'], module.params['value_type']) key = module.params['key'] if module.params['update']: # pylint: disable=line-too-long curr_value = Yedit.get_curr_value(Yedit.parse_value(module.params['curr_value']), # noqa: E501 module.params['curr_value_format']) # noqa: E501 rval = yamlfile.update(key, value, module.params['index'], curr_value) # noqa: E501 elif module.params['append']: rval = yamlfile.append(key, value) else: rval = yamlfile.put(key, value) if rval[0] and module.params['src']: yamlfile.write() return {'changed': rval[0], 'result': rval[1], 'state': "present"} # no edits to make if module.params['src']: # pylint: disable=redefined-variable-type rval = yamlfile.write() return {'changed': rval[0], 'result': rval[1], 'state': "present"} return {'failed': True, 'msg': 'Unkown state passed'}
mbauskar/frappe
refs/heads/develop
frappe/email/doctype/email_flag_queue/test_email_flag_queue.py
20
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Email Flag Queue') class TestEmailFlagQueue(unittest.TestCase): pass
dakarsenegal/Plugin.Video.best
refs/heads/master
servers/userporn.py
33
# -*- coding: utf-8 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Conector para userporn # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import os,re import base64 from core import scrapertools from core import logger from core import config HOSTER_KEY="NTI2NzI5Cgo=" # Returns an array of possible video url's from the page_url def get_video_url( page_url , premium = False , user="" , password="", video_password="" ): logger.info("[userporn.py] get_video_url(page_url='%s')" % page_url) video_urls = [] # Espera un poco como hace el player flash logger.info("[userporn.py] waiting 3 secs") import time time.sleep(3) # Obtiene el id code = Extract_id(page_url) # Descarga el json con los detalles del vídeo #http://www.userporn.com/player_control/settings.php?v=dvthddkC7l4J&em=TRUE&fv=v1.1.45 controluri = "http://userporn.com/player_control/settings.php?v=" + code + "&em=TRUE&fv=v1.1.45" datajson = scrapertools.cachePage(controluri) #logger.info("response="+datajson); # Convierte el json en un diccionario datajson = datajson.replace("false","False").replace("true","True") datajson = datajson.replace("null","None") datadict = eval("("+datajson+")") # Formatos formatos = datadict["settings"]["res"] for formato in formatos: uri = base64.decodestring(formato["u"]) resolucion = formato["l"] import videobb video_url = videobb.build_url(uri,HOSTER_KEY,datajson) video_urls.append( ["%s [userporn]" % resolucion , video_url.replace(":80","") ]) for video_url in video_urls: logger.info("[userporn.py] %s - %s" % (video_url[0],video_url[1])) return video_urls def Extract_id(url): _VALID_URL = r'^((?:http://)?(?:\w+\.)?userporn\.com/(?:(?:(?:e/)|(?:video/))|(?:(?:flash/)|(?:f/)))?)?([0-9A-Za-z_-]+)(?(1).+)?$' # Extract video id from URL mobj = re.match(_VALID_URL, url) if mobj is None: logger.info('[userporn.py] ERROR: URL invalida: %s' % url) return "" id = mobj.group(2) logger.info("[userporn.py] extracted code="+id) return id # Encuentra vídeos del servidor en el texto pasado def find_videos(data): encontrados = set() devuelve = [] #Enlace estricto a userporn") #userporn tipo "http://www.userporn.com/f/szIwlZD8ewaH.swf" patronvideos = 'userporn.com\/f\/([A-Z0-9a-z]{12}).swf' logger.info("[userporn.py] find_videos #"+patronvideos+"#") matches = re.compile(patronvideos).findall(data) for match in matches: titulo = "[userporn]" url = "http://www.userporn.com/video/"+match if url not in encontrados: logger.info(" url="+url) devuelve.append( [ titulo , url , 'userporn' ] ) encontrados.add(url) else: logger.info(" url duplicada="+url) #logger.info ("1) Enlace estricto a userporn") #userporn tipo "http://www.userporn.com/video/ZIeb370iuHE4" patronvideos = 'userporn.com\/video\/([A-Z0-9a-z]{12})' logger.info("[userporn.py] find_videos #"+patronvideos+"#") matches = re.compile(patronvideos).findall(data) for match in matches: titulo = "[userporn]" url = "http://www.userporn.com/video/"+match if url not in encontrados: logger.info(" url="+url) devuelve.append( [ titulo , url , 'userporn' ] ) encontrados.add(url) else: logger.info(" url duplicada="+url) #logger.info ("2) Enlace estricto a userporn") #userporn tipo "http://www.userporn.com/e/LLqVzhw5ft7T" patronvideos = 'userporn.com\/e\/([A-Z0-9a-z]{12})' logger.info("[userporn.py] find_videos #"+patronvideos+"#") matches = re.compile(patronvideos).findall(data) for match in matches: titulo = "[userporn]" url = "http://www.userporn.com/video/"+match if url not in encontrados: logger.info(" url="+url) devuelve.append( [ titulo , url , 'userporn' ] ) encontrados.add(url) else: logger.info(" url duplicada="+url) patronvideos = "http\:\/\/(?:www\.)?userporn.com\/(?:(?:e/|flash/)|(?:(?:video/|f/)))?([a-zA-Z0-9]{0,12})" logger.info("[userporn.py] find_videos #"+patronvideos+"#") matches = re.compile(patronvideos,re.DOTALL).findall(data) #print data for match in matches: titulo = "[Userporn]" url = "http://www.userporn.com/video/"+match if url not in encontrados: logger.info(" url="+url) devuelve.append( [ titulo , url , 'userporn' ] ) encontrados.add(url) else: logger.info(" url duplicada="+url) return devuelve
cindyyu/kuma
refs/heads/master
kuma/core/tests/__init__.py
15
from importlib import import_module from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.messages.storage.fallback import FallbackStorage from django.core.cache import cache from django import test from django.test import TestCase, TransactionTestCase from django.test.client import Client from django.utils.functional import wraps from django.utils.translation import trans_real from constance import config from nose import SkipTest from nose.tools import eq_ from ..cache import memcache from ..exceptions import FixtureMissingError from ..urlresolvers import split_path, reverse get = lambda c, v, **kw: c.get(reverse(v, **kw), follow=True) post = lambda c, v, data={}, **kw: c.post(reverse(v, **kw), data, follow=True) def attrs_eq(received, **expected): """Compares received's attributes with expected's kwargs.""" for k, v in expected.iteritems(): eq_(v, getattr(received, k)) def get_user(username='testuser'): """Return a django user or raise FixtureMissingError""" User = get_user_model() try: return User.objects.get(username=username) except User.DoesNotExist: raise FixtureMissingError( 'Username "%s" not found. You probably forgot to import a' ' users fixture.' % username) class overrider(object): """ See http://djangosnippets.org/snippets/2437/ Acts as either a decorator, or a context manager. If it's a decorator it takes a function and returns a wrapped function. If it's a contextmanager it's used with the ``with`` statement. In either event entering/exiting are called before and after, respectively, the function/block is executed. """ def __init__(self, **kwargs): self.options = kwargs def __enter__(self): self.enable() def __exit__(self, exc_type, exc_value, traceback): self.disable() def __call__(self, func): @wraps(func) def inner(*args, **kwargs): with self: return func(*args, **kwargs) return inner def enable(self): pass def disable(self): pass class override_constance_settings(overrider): """Decorator / context manager to override constance settings and defeat its caching.""" def enable(self): self.old_cache = config._backend._cache config._backend._cache = None self.old_settings = dict((k, getattr(config, k)) for k in dir(config)) for k, v in self.options.items(): config._backend.set(k, v) def disable(self): for k, v in self.old_settings.items(): config._backend.set(k, v) config._backend._cache = self.old_cache def mock_lookup_user(): return {u'confirmed': True, u'country': u'us', u'created-date': u'12/8/2013 8:05:55 AM', u'email': u'testuser@test.com', u'format': u'H', u'lang': u'en-US', u'master': True, u'newsletters': [], u'pending': False, u'status': u'ok', u'token': u'cdaa9e5d-2023-5f59-974d-83f6a29514ec'} class SessionAwareClient(Client): """ Just a small override to patch the session property to be able to use the sessions. """ def _session(self): """ Obtains the current session variables. Backported the else clause from Django 1.7 to make sure there is a session available during tests. """ if 'django.contrib.sessions' in settings.INSTALLED_APPS: engine = import_module(settings.SESSION_ENGINE) cookie = self.cookies.get(settings.SESSION_COOKIE_NAME, None) if cookie: return engine.SessionStore(cookie.value) else: session = engine.SessionStore() session.save() self.cookies[settings.SESSION_COOKIE_NAME] = session.session_key return session return {} session = property(_session) class LocalizingMixin(object): def request(self, **request): """Make a request, but prepend a locale if there isn't one already.""" # Fall back to defaults as in the superclass's implementation: path = request.get('PATH_INFO', self.defaults.get('PATH_INFO', '/')) locale, shortened = split_path(path) if not locale: request['PATH_INFO'] = '/%s/%s' % (settings.LANGUAGE_CODE, shortened) return super(LocalizingMixin, self).request(**request) class LocalizingClient(LocalizingMixin, SessionAwareClient): """Client which prepends a locale so test requests can get through LocaleURLMiddleware without resulting in a locale-prefix-adding 301. Otherwise, we'd have to hard-code locales into our tests everywhere or {mock out reverse() and make LocaleURLMiddleware not fire}. """ # If you use this, you might also find the force_locale=True argument to # kuma.core.urlresolvers.reverse() handy, in case you need to force locale # prepending in a one-off case or do it outside a mock request. JINJA_INSTRUMENTED = False class KumaTestMixin(object): client_class = SessionAwareClient localizing_client = False skipme = False @classmethod def setUpClass(cls): if cls.skipme: raise SkipTest if cls.localizing_client: cls.client_class = LocalizingClient super(KumaTestMixin, cls).setUpClass() def _pre_setup(self): super(KumaTestMixin, self)._pre_setup() # Clean the slate. cache.clear() memcache.clear() trans_real.deactivate() trans_real._translations = {} # Django fails to clear this cache. trans_real.activate(settings.LANGUAGE_CODE) global JINJA_INSTRUMENTED if not JINJA_INSTRUMENTED: import jinja2 old_render = jinja2.Template.render def instrumented_render(self, *args, **kwargs): context = dict(*args, **kwargs) test.signals.template_rendered.send(sender=self, template=self, context=context) return old_render(self, *args, **kwargs) jinja2.Template.render = instrumented_render JINJA_INSTRUMENTED = True def get_messages(self, request): # Django 1.4 RequestFactory requests can't be used to test views that # call messages.add (https://code.djangoproject.com/ticket/17971) # FIXME: HACK from http://stackoverflow.com/q/11938164/571420 messages = FallbackStorage(request) request._messages = messages return messages class KumaTestCase(KumaTestMixin, TestCase): pass class KumaTransactionTestCase(KumaTestMixin, TransactionTestCase): pass class SkippedTestCase(KumaTestCase): skipme = True
GoogleCloudPlatform/training-data-analyst
refs/heads/master
courses/machine_learning/deepdive2/end_to_end_ml/solutions/serving/application/lib/oauth2client/contrib/django_util/storage.py
59
# Copyright 2015 Google Inc. 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. """Contains a storage module that stores credentials using the Django ORM.""" from oauth2client import client class DjangoORMStorage(client.Storage): """Store and retrieve a single credential to and from the Django datastore. This Storage helper presumes the Credentials have been stored as a CredentialsField on a db model class. """ def __init__(self, model_class, key_name, key_value, property_name): """Constructor for Storage. Args: model: string, fully qualified name of db.Model model class. key_name: string, key name for the entity that has the credentials key_value: string, key value for the entity that has the credentials. property_name: string, name of the property that is an CredentialsProperty. """ super(DjangoORMStorage, self).__init__() self.model_class = model_class self.key_name = key_name self.key_value = key_value self.property_name = property_name def locked_get(self): """Retrieve stored credential from the Django ORM. Returns: oauth2client.Credentials retrieved from the Django ORM, associated with the ``model``, ``key_value``->``key_name`` pair used to query for the model, and ``property_name`` identifying the ``CredentialsProperty`` field, all of which are defined in the constructor for this Storage object. """ query = {self.key_name: self.key_value} entities = self.model_class.objects.filter(**query) if len(entities) > 0: credential = getattr(entities[0], self.property_name) if getattr(credential, 'set_store', None) is not None: credential.set_store(self) return credential else: return None def locked_put(self, credentials): """Write a Credentials to the Django datastore. Args: credentials: Credentials, the credentials to store. """ entity, _ = self.model_class.objects.get_or_create( **{self.key_name: self.key_value}) setattr(entity, self.property_name, credentials) entity.save() def locked_delete(self): """Delete Credentials from the datastore.""" query = {self.key_name: self.key_value} self.model_class.objects.filter(**query).delete()
mfherbst/spack
refs/heads/develop
var/spack/repos/builtin.mock/packages/dependency-install/package.py
5
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-647188 # # For details, see https://github.com/spack/spack # Please also see the NOTICE and LICENSE files for our notice and the LGPL. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License (as # published by the Free Software Foundation) version 2.1, February 1999. # # 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 terms and # conditions of the GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## from spack import * class DependencyInstall(Package): """Dependency which has a working install method""" homepage = "http://www.example.com" url = "http://www.example.com/a-1.0.tar.gz" version('1.0', 'hash1.0') version('2.0', 'hash2.0') def install(self, spec, prefix): touch(join_path(prefix, 'an_installation_file'))
veger/ansible
refs/heads/devel
lib/ansible/modules/network/netscaler/netscaler_servicegroup.py
57
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2017 Citrix Systems # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: netscaler_servicegroup short_description: Manage service group configuration in Netscaler description: - Manage service group configuration in Netscaler. - This module is intended to run either on the ansible control node or a bastion (jumpserver) with access to the actual netscaler instance. version_added: "2.4" author: George Nikolopoulos (@giorgos-nikolopoulos) options: servicegroupname: description: - >- Name of the service group. Must begin with an ASCII alphabetic or underscore C(_) character, and must contain only ASCII alphanumeric, underscore C(_), hash C(#), period C(.), space C( ), colon C(:), at C(@), equals C(=), and hyphen C(-) characters. Can be changed after the name is created. - "Minimum length = 1" servicetype: choices: - 'HTTP' - 'FTP' - 'TCP' - 'UDP' - 'SSL' - 'SSL_BRIDGE' - 'SSL_TCP' - 'DTLS' - 'NNTP' - 'RPCSVR' - 'DNS' - 'ADNS' - 'SNMP' - 'RTSP' - 'DHCPRA' - 'ANY' - 'SIP_UDP' - 'SIP_TCP' - 'SIP_SSL' - 'DNS_TCP' - 'ADNS_TCP' - 'MYSQL' - 'MSSQL' - 'ORACLE' - 'RADIUS' - 'RADIUSListener' - 'RDP' - 'DIAMETER' - 'SSL_DIAMETER' - 'TFTP' - 'SMPP' - 'PPTP' - 'GRE' - 'SYSLOGTCP' - 'SYSLOGUDP' - 'FIX' - 'SSL_FIX' description: - "Protocol used to exchange data with the service." cachetype: choices: - 'TRANSPARENT' - 'REVERSE' - 'FORWARD' description: - "Cache type supported by the cache server." maxclient: description: - "Maximum number of simultaneous open connections for the service group." - "Minimum value = C(0)" - "Maximum value = C(4294967294)" maxreq: description: - "Maximum number of requests that can be sent on a persistent connection to the service group." - "Note: Connection requests beyond this value are rejected." - "Minimum value = C(0)" - "Maximum value = C(65535)" cacheable: description: - "Use the transparent cache redirection virtual server to forward the request to the cache server." - "Note: Do not set this parameter if you set the Cache Type." type: bool cip: choices: - 'enabled' - 'disabled' description: - "Insert the Client IP header in requests forwarded to the service." cipheader: description: - >- Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client's IP header name. - "Minimum length = 1" usip: description: - >- Use client's IP address as the source IP address when initiating connection to the server. With the NO setting, which is the default, a mapped IP (MIP) address or subnet IP (SNIP) address is used as the source IP address to initiate server side connections. type: bool pathmonitor: description: - "Path monitoring for clustering." type: bool pathmonitorindv: description: - "Individual Path monitoring decisions." type: bool useproxyport: description: - >- Use the proxy port as the source port when initiating connections with the server. With the NO setting, the client-side connection port is used as the source port for the server-side connection. - "Note: This parameter is available only when the Use Source IP C(usip) parameter is set to C(yes)." type: bool healthmonitor: description: - "Monitor the health of this service. Available settings function as follows:" - "C(yes) - Send probes to check the health of the service." - >- C(no) - Do not send probes to check the health of the service. With the NO option, the appliance shows the service as UP at all times. type: bool sp: description: - "Enable surge protection for the service group." type: bool rtspsessionidremap: description: - "Enable RTSP session ID mapping for the service group." type: bool clttimeout: description: - "Time, in seconds, after which to terminate an idle client connection." - "Minimum value = C(0)" - "Maximum value = C(31536000)" svrtimeout: description: - "Time, in seconds, after which to terminate an idle server connection." - "Minimum value = C(0)" - "Maximum value = C(31536000)" cka: description: - "Enable client keep-alive for the service group." type: bool tcpb: description: - "Enable TCP buffering for the service group." type: bool cmp: description: - "Enable compression for the specified service." type: bool maxbandwidth: description: - "Maximum bandwidth, in Kbps, allocated for all the services in the service group." - "Minimum value = C(0)" - "Maximum value = C(4294967287)" monthreshold: description: - >- Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. - "Minimum value = C(0)" - "Maximum value = C(65535)" downstateflush: choices: - 'enabled' - 'disabled' description: - >- Flush all active transactions associated with all the services in the service group whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. tcpprofilename: description: - "Name of the TCP profile that contains TCP configuration settings for the service group." - "Minimum length = 1" - "Maximum length = 127" httpprofilename: description: - "Name of the HTTP profile that contains HTTP configuration settings for the service group." - "Minimum length = 1" - "Maximum length = 127" comment: description: - "Any information about the service group." appflowlog: choices: - 'enabled' - 'disabled' description: - "Enable logging of AppFlow information for the specified service group." netprofile: description: - "Network profile for the service group." - "Minimum length = 1" - "Maximum length = 127" autoscale: choices: - 'DISABLED' - 'DNS' - 'POLICY' description: - "Auto scale option for a servicegroup." memberport: description: - "member port." graceful: description: - "Wait for all existing connections to the service to terminate before shutting down the service." type: bool servicemembers: description: - A list of dictionaries describing each service member of the service group. suboptions: ip: description: - IP address of the service. Must not overlap with an existing server entity defined by name. port: description: - Server port number. - Range C(1) - C(65535) - "* in CLI is represented as 65535 in NITRO API" state: choices: - 'enabled' - 'disabled' description: - Initial state of the service after binding. hashid: description: - The hash identifier for the service. - This must be unique for each service. - This parameter is used by hash based load balancing methods. - Minimum value = C(1) serverid: description: - The identifier for the service. - This is used when the persistency type is set to Custom Server ID. servername: description: - Name of the server to which to bind the service group. - The server must already be configured as a named server. - Minimum length = 1 customserverid: description: - The identifier for this IP:Port pair. - Used when the persistency type is set to Custom Server ID. weight: description: - Weight to assign to the servers in the service group. - Specifies the capacity of the servers relative to the other servers in the load balancing configuration. - The higher the weight, the higher the percentage of requests sent to the service. - Minimum value = C(1) - Maximum value = C(100) monitorbindings: description: - A list of monitornames to bind to this service - Note that the monitors must have already been setup possibly using the M(netscaler_lb_monitor) module or some other method suboptions: monitorname: description: - The monitor name to bind to this servicegroup. weight: description: - Weight to assign to the binding between the monitor and servicegroup. disabled: description: - When set to C(yes) the service group state will be set to DISABLED. - When set to C(no) the service group state will be set to ENABLED. - >- Note that due to limitations of the underlying NITRO API a C(disabled) state change alone does not cause the module result to report a changed status. type: bool default: false extends_documentation_fragment: netscaler requirements: - nitro python sdk ''' EXAMPLES = ''' # The LB Monitors monitor-1 and monitor-2 must already exist # Service members defined by C(ip) must not redefine an existing server's ip address. # Service members defined by C(servername) must already exist. - name: Setup http service with ip members delegate_to: localhost netscaler_servicegroup: nsip: 172.18.0.2 nitro_user: nsroot nitro_pass: nsroot state: present servicegroupname: service-group-1 servicetype: HTTP servicemembers: - ip: 10.78.78.78 port: 80 weight: 50 - ip: 10.79.79.79 port: 80 weight: 40 - servername: server-1 port: 80 weight: 10 monitorbindings: - monitorname: monitor-1 weight: 50 - monitorname: monitor-2 weight: 50 ''' RETURN = ''' loglines: description: list of logged messages by the module returned: always type: list sample: ['message 1', 'message 2'] msg: description: Message detailing the failure reason returned: failure type: str sample: "Action does not exist" diff: description: List of differences between the actual configured object and the configuration specified in the module returned: failure type: dict sample: { 'clttimeout': 'difference. ours: (float) 10.0 other: (float) 20.0' } ''' from ansible.module_utils.basic import AnsibleModule import copy from ansible.module_utils.network.netscaler.netscaler import ConfigProxy, get_nitro_client, netscaler_common_arguments, log, \ loglines, get_immutables_intersection try: from nssrc.com.citrix.netscaler.nitro.resource.config.basic.servicegroup import servicegroup from nssrc.com.citrix.netscaler.nitro.resource.config.basic.servicegroup_servicegroupmember_binding import servicegroup_servicegroupmember_binding from nssrc.com.citrix.netscaler.nitro.exception.nitro_exception import nitro_exception from nssrc.com.citrix.netscaler.nitro.resource.config.basic.servicegroup_lbmonitor_binding import servicegroup_lbmonitor_binding from nssrc.com.citrix.netscaler.nitro.resource.config.lb.lbmonitor_servicegroup_binding import lbmonitor_servicegroup_binding PYTHON_SDK_IMPORTED = True except ImportError as e: PYTHON_SDK_IMPORTED = False def servicegroup_exists(client, module): log('Checking if service group exists') count = servicegroup.count_filtered(client, 'servicegroupname:%s' % module.params['servicegroupname']) log('count is %s' % count) if count > 0: return True else: return False def servicegroup_identical(client, module, servicegroup_proxy): log('Checking if service group is identical') servicegroups = servicegroup.get_filtered(client, 'servicegroupname:%s' % module.params['servicegroupname']) if servicegroup_proxy.has_equal_attributes(servicegroups[0]): return True else: return False def get_configured_service_members(client, module): log('get_configured_service_members') readwrite_attrs = [ 'servicegroupname', 'ip', 'port', 'state', 'hashid', 'serverid', 'servername', 'customserverid', 'weight' ] readonly_attrs = [ 'delay', 'statechangetimesec', 'svrstate', 'tickssincelaststatechange', 'graceful', ] members = [] if module.params['servicemembers'] is None: return members for config in module.params['servicemembers']: # Make a copy to update config = copy.deepcopy(config) config['servicegroupname'] = module.params['servicegroupname'] member_proxy = ConfigProxy( actual=servicegroup_servicegroupmember_binding(), client=client, attribute_values_dict=config, readwrite_attrs=readwrite_attrs, readonly_attrs=readonly_attrs ) members.append(member_proxy) return members def get_actual_service_members(client, module): try: # count() raises nitro exception instead of returning 0 count = servicegroup_servicegroupmember_binding.count(client, module.params['servicegroupname']) if count > 0: servicegroup_members = servicegroup_servicegroupmember_binding.get(client, module.params['servicegroupname']) else: servicegroup_members = [] except nitro_exception as e: if e.errorcode == 258: servicegroup_members = [] else: raise return servicegroup_members def servicemembers_identical(client, module): log('servicemembers_identical') servicegroup_members = get_actual_service_members(client, module) log('servicemembers %s' % servicegroup_members) module_servicegroups = get_configured_service_members(client, module) log('Number of service group members %s' % len(servicegroup_members)) if len(servicegroup_members) != len(module_servicegroups): return False # Fallthrough to member evaluation identical_count = 0 for actual_member in servicegroup_members: for member in module_servicegroups: if member.has_equal_attributes(actual_member): identical_count += 1 break if identical_count != len(servicegroup_members): return False # Fallthrough to success return True def sync_service_members(client, module): log('sync_service_members') configured_service_members = get_configured_service_members(client, module) actual_service_members = get_actual_service_members(client, module) skip_add = [] skip_delete = [] # Find positions of identical service members for (configured_index, configured_service) in enumerate(configured_service_members): for (actual_index, actual_service) in enumerate(actual_service_members): if configured_service.has_equal_attributes(actual_service): skip_add.append(configured_index) skip_delete.append(actual_index) # Delete actual that are not identical to any configured for (actual_index, actual_service) in enumerate(actual_service_members): # Skip identical if actual_index in skip_delete: log('Skipping actual delete at index %s' % actual_index) continue # Fallthrouth to deletion if all([ hasattr(actual_service, 'ip'), actual_service.ip is not None, hasattr(actual_service, 'servername'), actual_service.servername is not None, ]): actual_service.ip = None actual_service.servicegroupname = module.params['servicegroupname'] servicegroup_servicegroupmember_binding.delete(client, actual_service) # Add configured that are not already present in actual for (configured_index, configured_service) in enumerate(configured_service_members): # Skip identical if configured_index in skip_add: log('Skipping configured add at index %s' % configured_index) continue # Fallthrough to addition configured_service.add() def monitor_binding_equal(configured, actual): if any([configured.monitorname != actual.monitor_name, configured.servicegroupname != actual.servicegroupname, configured.weight != float(actual.weight)]): return False return True def get_configured_monitor_bindings(client, module): log('Entering get_configured_monitor_bindings') bindings = {} if 'monitorbindings' in module.params and module.params['monitorbindings'] is not None: for binding in module.params['monitorbindings']: readwrite_attrs = [ 'monitorname', 'servicegroupname', 'weight', ] readonly_attrs = [] attribute_values_dict = copy.deepcopy(binding) attribute_values_dict['servicegroupname'] = module.params['servicegroupname'] binding_proxy = ConfigProxy( actual=lbmonitor_servicegroup_binding(), client=client, attribute_values_dict=attribute_values_dict, readwrite_attrs=readwrite_attrs, readonly_attrs=readonly_attrs, ) key = attribute_values_dict['monitorname'] bindings[key] = binding_proxy return bindings def get_actual_monitor_bindings(client, module): log('Entering get_actual_monitor_bindings') bindings = {} try: # count() raises nitro exception instead of returning 0 count = servicegroup_lbmonitor_binding.count(client, module.params['servicegroupname']) except nitro_exception as e: if e.errorcode == 258: return bindings else: raise if count == 0: return bindings # Fallthrough to rest of execution for binding in servicegroup_lbmonitor_binding.get(client, module.params['servicegroupname']): log('Gettign actual monitor with name %s' % binding.monitor_name) key = binding.monitor_name bindings[key] = binding return bindings def monitor_bindings_identical(client, module): log('Entering monitor_bindings_identical') configured_bindings = get_configured_monitor_bindings(client, module) actual_bindings = get_actual_monitor_bindings(client, module) configured_key_set = set(configured_bindings.keys()) actual_key_set = set(actual_bindings.keys()) symmetrical_diff = configured_key_set ^ actual_key_set for default_monitor in ('tcp-default', 'ping-default'): if default_monitor in symmetrical_diff: log('Excluding %s monitor from key comparison' % default_monitor) symmetrical_diff.remove(default_monitor) if len(symmetrical_diff) > 0: return False # Compare key to key for key in configured_key_set: configured_proxy = configured_bindings[key] # Follow nscli convention for missing weight value if not hasattr(configured_proxy, 'weight'): configured_proxy.weight = 1 log('configured_proxy %s' % [configured_proxy.monitorname, configured_proxy.servicegroupname, configured_proxy.weight]) log('actual_bindings %s' % [actual_bindings[key].monitor_name, actual_bindings[key].servicegroupname, actual_bindings[key].weight]) if not monitor_binding_equal(configured_proxy, actual_bindings[key]): return False # Fallthrought to success return True def sync_monitor_bindings(client, module): log('Entering sync_monitor_bindings') actual_bindings = get_actual_monitor_bindings(client, module) # Exclude default monitors from deletion for monitorname in ('tcp-default', 'ping-default'): if monitorname in actual_bindings: del actual_bindings[monitorname] configured_bindings = get_configured_monitor_bindings(client, module) to_remove = list(set(actual_bindings.keys()) - set(configured_bindings.keys())) to_add = list(set(configured_bindings.keys()) - set(actual_bindings.keys())) to_modify = list(set(configured_bindings.keys()) & set(actual_bindings.keys())) # Delete existing and modifiable bindings for key in to_remove + to_modify: binding = actual_bindings[key] b = lbmonitor_servicegroup_binding() b.monitorname = binding.monitor_name b.servicegroupname = module.params['servicegroupname'] # Cannot remove default monitor bindings if b.monitorname in ('tcp-default', 'ping-default'): continue lbmonitor_servicegroup_binding.delete(client, b) # Add new and modified bindings for key in to_add + to_modify: binding = configured_bindings[key] log('Adding %s' % binding.monitorname) binding.add() def diff(client, module, servicegroup_proxy): servicegroup_list = servicegroup.get_filtered(client, 'servicegroupname:%s' % module.params['servicegroupname']) diff_object = servicegroup_proxy.diff_object(servicegroup_list[0]) return diff_object def do_state_change(client, module, servicegroup_proxy): if module.params['disabled']: log('Disabling service') result = servicegroup.disable(client, servicegroup_proxy.actual) else: log('Enabling service') result = servicegroup.enable(client, servicegroup_proxy.actual) return result def main(): module_specific_arguments = dict( servicegroupname=dict(type='str'), servicetype=dict( type='str', choices=[ 'HTTP', 'FTP', 'TCP', 'UDP', 'SSL', 'SSL_BRIDGE', 'SSL_TCP', 'DTLS', 'NNTP', 'RPCSVR', 'DNS', 'ADNS', 'SNMP', 'RTSP', 'DHCPRA', 'ANY', 'SIP_UDP', 'SIP_TCP', 'SIP_SSL', 'DNS_TCP', 'ADNS_TCP', 'MYSQL', 'MSSQL', 'ORACLE', 'RADIUS', 'RADIUSListener', 'RDP', 'DIAMETER', 'SSL_DIAMETER', 'TFTP', 'SMPP', 'PPTP', 'GRE', 'SYSLOGTCP', 'SYSLOGUDP', 'FIX', 'SSL_FIX', ] ), cachetype=dict( type='str', choices=[ 'TRANSPARENT', 'REVERSE', 'FORWARD', ] ), maxclient=dict(type='float'), maxreq=dict(type='float'), cacheable=dict(type='bool'), cip=dict( type='str', choices=[ 'enabled', 'disabled', ] ), cipheader=dict(type='str'), usip=dict(type='bool'), pathmonitor=dict(type='bool'), pathmonitorindv=dict(type='bool'), useproxyport=dict(type='bool'), healthmonitor=dict(type='bool'), sp=dict(type='bool'), rtspsessionidremap=dict(type='bool'), clttimeout=dict(type='float'), svrtimeout=dict(type='float'), cka=dict(type='bool'), tcpb=dict(type='bool'), cmp=dict(type='bool'), maxbandwidth=dict(type='float'), monthreshold=dict(type='float'), downstateflush=dict( type='str', choices=[ 'enabled', 'disabled', ] ), tcpprofilename=dict(type='str'), httpprofilename=dict(type='str'), comment=dict(type='str'), appflowlog=dict( type='str', choices=[ 'enabled', 'disabled', ] ), netprofile=dict(type='str'), autoscale=dict( type='str', choices=[ 'DISABLED', 'DNS', 'POLICY', ] ), memberport=dict(type='int'), graceful=dict(type='bool'), ) hand_inserted_arguments = dict( servicemembers=dict(type='list'), monitorbindings=dict(type='list'), disabled=dict( type='bool', default=False, ), ) argument_spec = dict() argument_spec.update(netscaler_common_arguments) argument_spec.update(module_specific_arguments) argument_spec.update(hand_inserted_arguments) module = AnsibleModule( argument_spec=argument_spec, supports_check_mode=True, ) module_result = dict( changed=False, failed=False, loglines=loglines, ) # Fail the module if imports failed if not PYTHON_SDK_IMPORTED: module.fail_json(msg='Could not load nitro python sdk') # Fallthrough to rest of execution client = get_nitro_client(module) try: client.login() except nitro_exception as e: msg = "nitro exception during login. errorcode=%s, message=%s" % (str(e.errorcode), e.message) module.fail_json(msg=msg) except Exception as e: if str(type(e)) == "<class 'requests.exceptions.ConnectionError'>": module.fail_json(msg='Connection error %s' % str(e)) elif str(type(e)) == "<class 'requests.exceptions.SSLError'>": module.fail_json(msg='SSL Error %s' % str(e)) else: module.fail_json(msg='Unexpected error during login %s' % str(e)) # Instantiate service group configuration object readwrite_attrs = [ 'servicegroupname', 'servicetype', 'cachetype', 'maxclient', 'maxreq', 'cacheable', 'cip', 'cipheader', 'usip', 'pathmonitor', 'pathmonitorindv', 'useproxyport', 'healthmonitor', 'sp', 'rtspsessionidremap', 'clttimeout', 'svrtimeout', 'cka', 'tcpb', 'cmp', 'maxbandwidth', 'monthreshold', 'downstateflush', 'tcpprofilename', 'httpprofilename', 'comment', 'appflowlog', 'netprofile', 'autoscale', 'memberport', 'graceful', ] readonly_attrs = [ 'numofconnections', 'serviceconftype', 'value', 'svrstate', 'ip', 'monstatcode', 'monstatparam1', 'monstatparam2', 'monstatparam3', 'statechangetimemsec', 'stateupdatereason', 'clmonowner', 'clmonview', 'groupcount', 'riseapbrstatsmsgcode2', 'serviceipstr', 'servicegroupeffectivestate' ] immutable_attrs = [ 'servicegroupname', 'servicetype', 'cachetype', 'td', 'cipheader', 'state', 'autoscale', 'memberport', 'servername', 'port', 'serverid', 'monitor_name_svc', 'dup_weight', 'riseapbrstatsmsgcode', 'delay', 'graceful', 'includemembers', 'newname', ] transforms = { 'pathmonitorindv': ['bool_yes_no'], 'cacheable': ['bool_yes_no'], 'cka': ['bool_yes_no'], 'pathmonitor': ['bool_yes_no'], 'tcpb': ['bool_yes_no'], 'sp': ['bool_on_off'], 'usip': ['bool_yes_no'], 'healthmonitor': ['bool_yes_no'], 'useproxyport': ['bool_yes_no'], 'rtspsessionidremap': ['bool_on_off'], 'graceful': ['bool_yes_no'], 'cmp': ['bool_yes_no'], 'cip': [lambda v: v.upper()], 'downstateflush': [lambda v: v.upper()], 'appflowlog': [lambda v: v.upper()], } # Instantiate config proxy servicegroup_proxy = ConfigProxy( actual=servicegroup(), client=client, attribute_values_dict=module.params, readwrite_attrs=readwrite_attrs, readonly_attrs=readonly_attrs, immutable_attrs=immutable_attrs, transforms=transforms, ) try: if module.params['state'] == 'present': log('Applying actions for state present') if not servicegroup_exists(client, module): if not module.check_mode: log('Adding service group') servicegroup_proxy.add() if module.params['save_config']: client.save_config() module_result['changed'] = True elif not servicegroup_identical(client, module, servicegroup_proxy): # Check if we try to change value of immutable attributes diff_dict = diff(client, module, servicegroup_proxy) immutables_changed = get_immutables_intersection(servicegroup_proxy, diff_dict.keys()) if immutables_changed != []: msg = 'Cannot update immutable attributes %s. Must delete and recreate entity.' % (immutables_changed,) module.fail_json(msg=msg, diff=diff_dict, **module_result) if not module.check_mode: servicegroup_proxy.update() if module.params['save_config']: client.save_config() module_result['changed'] = True else: module_result['changed'] = False # Check bindings if not monitor_bindings_identical(client, module): if not module.check_mode: sync_monitor_bindings(client, module) if module.params['save_config']: client.save_config() module_result['changed'] = True if not servicemembers_identical(client, module): if not module.check_mode: sync_service_members(client, module) if module.params['save_config']: client.save_config() module_result['changed'] = True if not module.check_mode: res = do_state_change(client, module, servicegroup_proxy) if res.errorcode != 0: msg = 'Error when setting disabled state. errorcode: %s message: %s' % (res.errorcode, res.message) module.fail_json(msg=msg, **module_result) # Sanity check for state if not module.check_mode: log('Sanity checks for state present') if not servicegroup_exists(client, module): module.fail_json(msg='Service group is not present', **module_result) if not servicegroup_identical(client, module, servicegroup_proxy): module.fail_json( msg='Service group is not identical to configuration', diff=diff(client, module, servicegroup_proxy), **module_result ) if not servicemembers_identical(client, module): module.fail_json(msg='Service group members differ from configuration', **module_result) if not monitor_bindings_identical(client, module): module.fail_json(msg='Monitor bindings are not identical', **module_result) elif module.params['state'] == 'absent': log('Applying actions for state absent') if servicegroup_exists(client, module): if not module.check_mode: servicegroup_proxy.delete() if module.params['save_config']: client.save_config() module_result['changed'] = True else: module_result['changed'] = False # Sanity check for state if not module.check_mode: log('Sanity checks for state absent') if servicegroup_exists(client, module): module.fail_json(msg='Service group is present', **module_result) except nitro_exception as e: msg = "nitro exception errorcode=" + str(e.errorcode) + ",message=" + e.message module.fail_json(msg=msg, **module_result) client.logout() module.exit_json(**module_result) if __name__ == "__main__": main()
pudo/aleph
refs/heads/master
aleph/migrate/versions/57e9e4ff269b_init_migrations.py
5
"""init migrations Revision ID: 57e9e4ff269b Revises: None Create Date: 2016-03-03 10:48:05.689514 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '57e9e4ff269b' down_revision = None def upgrade(): op.create_table('source', sa.Column('created_at', sa.DateTime(), nullable=True), sa.Column('updated_at', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('label', sa.Unicode(), nullable=True), sa.Column('foreign_id', sa.Unicode(), nullable=False), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('foreign_id') ) op.create_table('role', sa.Column('created_at', sa.DateTime(), nullable=True), sa.Column('updated_at', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('foreign_id', sa.Unicode(length=2048), nullable=False), sa.Column('name', sa.Unicode(), nullable=False), sa.Column('email', sa.Unicode(), nullable=True), sa.Column('api_key', sa.Unicode(), nullable=True), sa.Column('is_admin', sa.Boolean(), nullable=False), sa.Column('type', sa.Enum('user', 'group', 'system', name='role_type'), nullable=False), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('foreign_id') ) op.create_table('document', sa.Column('created_at', sa.DateTime(), nullable=True), sa.Column('updated_at', sa.DateTime(), nullable=True), sa.Column('id', sa.BigInteger(), nullable=False), sa.Column('content_hash', sa.Unicode(length=65), nullable=False), sa.Column('foreign_id', sa.Unicode(), nullable=True), sa.Column('type', sa.Unicode(length=10), nullable=False), sa.Column('source_id', sa.Integer(), nullable=True), sa.Column('meta', postgresql.JSONB(), nullable=True), sa.ForeignKeyConstraint(['source_id'], ['source.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_table('watchlist', sa.Column('created_at', sa.DateTime(), nullable=True), sa.Column('updated_at', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('label', sa.Unicode(), nullable=True), sa.Column('foreign_id', sa.Unicode(), nullable=False), sa.Column('creator_id', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['creator_id'], ['role.id'], ), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('foreign_id') ) op.create_table('alert', sa.Column('created_at', sa.DateTime(), nullable=True), sa.Column('updated_at', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('role_id', sa.Integer(), nullable=True), sa.Column('signature', sa.Unicode(), nullable=True), sa.Column('query', postgresql.JSONB(), nullable=True), sa.Column('max_id', sa.BigInteger(), nullable=True), sa.Column('deleted_at', sa.DateTime(), nullable=True), sa.ForeignKeyConstraint(['role_id'], ['role.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_table('permission', sa.Column('created_at', sa.DateTime(), nullable=True), sa.Column('updated_at', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('role_id', sa.Integer(), nullable=True), sa.Column('read', sa.Boolean(), nullable=True), sa.Column('write', sa.Boolean(), nullable=True), sa.Column('resource_id', sa.Integer(), nullable=False), sa.Column('resource_type', sa.Enum('watchlist', 'source', name='permission_type'), nullable=False), sa.ForeignKeyConstraint(['role_id'], ['role.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_table('entity', sa.Column('created_at', sa.DateTime(), nullable=True), sa.Column('updated_at', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('foreign_id', sa.Unicode(), nullable=True), sa.Column('name', sa.Unicode(), nullable=True), sa.Column('data', postgresql.JSONB(), nullable=True), sa.Column('category', sa.Enum('Person', 'Company', 'Organization', 'Other', name='entity_categories'), nullable=False), sa.Column('watchlist_id', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['watchlist_id'], ['watchlist.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_table('page', sa.Column('id', sa.BigInteger(), nullable=False), sa.Column('number', sa.Integer(), nullable=False), sa.Column('text', sa.Unicode(), nullable=False), sa.Column('document_id', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['document_id'], ['document.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_table('selector', sa.Column('id', sa.Integer(), nullable=False), sa.Column('text', sa.Unicode(), nullable=True), sa.Column('entity_id', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['entity_id'], ['entity.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_table('reference', sa.Column('created_at', sa.DateTime(), nullable=True), sa.Column('updated_at', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('document_id', sa.BigInteger(), nullable=True), sa.Column('entity_id', sa.Integer(), nullable=True), sa.Column('weight', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['document_id'], ['document.id'], ), sa.ForeignKeyConstraint(['entity_id'], ['entity.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_document_content_hash'), 'document', ['content_hash'], unique=False) op.create_index(op.f('ix_document_source_id'), 'document', ['source_id'], unique=False) op.create_index(op.f('ix_document_type'), 'document', ['type'], unique=False) op.create_index(op.f('ix_selector_text'), 'selector', ['text'], unique=False) op.create_index(op.f('ix_permission_role_id'), 'permission', ['role_id'], unique=False) op.create_index(op.f('ix_alert_role_id'), 'alert', ['role_id'], unique=False) def downgrade(): op.drop_table('reference') op.drop_table('selector') op.drop_table('page') op.drop_table('entity') op.drop_table('permission') op.drop_table('alert') op.drop_table('watchlist') op.drop_table('document') op.drop_table('role') op.drop_table('source') op.drop_index(op.f('ix_permission_role_id'), table_name='permission') op.drop_index(op.f('ix_alert_role_id'), table_name='alert') op.drop_index(op.f('ix_selector_text'), table_name='selector') op.drop_index(op.f('ix_document_type'), table_name='document') op.drop_index(op.f('ix_document_source_id'), table_name='document') op.drop_index(op.f('ix_document_content_hash'), table_name='document')
omerhasan/namebench
refs/heads/master
nb_third_party/jinja2/lexer.py
211
# -*- coding: utf-8 -*- """ jinja2.lexer ~~~~~~~~~~~~ This module implements a Jinja / Python combination lexer. The `Lexer` class provided by this module is used to do some preprocessing for Jinja. On the one hand it filters out invalid operators like the bitshift operators we don't allow in templates. On the other hand it separates template code and python code in expressions. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ import re from operator import itemgetter from collections import deque from jinja2.exceptions import TemplateSyntaxError from jinja2.utils import LRUCache, next # cache for the lexers. Exists in order to be able to have multiple # environments with the same lexer _lexer_cache = LRUCache(50) # static regular expressions whitespace_re = re.compile(r'\s+', re.U) string_re = re.compile(r"('([^'\\]*(?:\\.[^'\\]*)*)'" r'|"([^"\\]*(?:\\.[^"\\]*)*)")', re.S) integer_re = re.compile(r'\d+') # we use the unicode identifier rule if this python version is able # to handle unicode identifiers, otherwise the standard ASCII one. try: compile('föö', '<unknown>', 'eval') except SyntaxError: name_re = re.compile(r'\b[a-zA-Z_][a-zA-Z0-9_]*\b') else: from jinja2 import _stringdefs name_re = re.compile(r'[%s][%s]*' % (_stringdefs.xid_start, _stringdefs.xid_continue)) float_re = re.compile(r'(?<!\.)\d+\.\d+') newline_re = re.compile(r'(\r\n|\r|\n)') # internal the tokens and keep references to them TOKEN_ADD = intern('add') TOKEN_ASSIGN = intern('assign') TOKEN_COLON = intern('colon') TOKEN_COMMA = intern('comma') TOKEN_DIV = intern('div') TOKEN_DOT = intern('dot') TOKEN_EQ = intern('eq') TOKEN_FLOORDIV = intern('floordiv') TOKEN_GT = intern('gt') TOKEN_GTEQ = intern('gteq') TOKEN_LBRACE = intern('lbrace') TOKEN_LBRACKET = intern('lbracket') TOKEN_LPAREN = intern('lparen') TOKEN_LT = intern('lt') TOKEN_LTEQ = intern('lteq') TOKEN_MOD = intern('mod') TOKEN_MUL = intern('mul') TOKEN_NE = intern('ne') TOKEN_PIPE = intern('pipe') TOKEN_POW = intern('pow') TOKEN_RBRACE = intern('rbrace') TOKEN_RBRACKET = intern('rbracket') TOKEN_RPAREN = intern('rparen') TOKEN_SEMICOLON = intern('semicolon') TOKEN_SUB = intern('sub') TOKEN_TILDE = intern('tilde') TOKEN_WHITESPACE = intern('whitespace') TOKEN_FLOAT = intern('float') TOKEN_INTEGER = intern('integer') TOKEN_NAME = intern('name') TOKEN_STRING = intern('string') TOKEN_OPERATOR = intern('operator') TOKEN_BLOCK_BEGIN = intern('block_begin') TOKEN_BLOCK_END = intern('block_end') TOKEN_VARIABLE_BEGIN = intern('variable_begin') TOKEN_VARIABLE_END = intern('variable_end') TOKEN_RAW_BEGIN = intern('raw_begin') TOKEN_RAW_END = intern('raw_end') TOKEN_COMMENT_BEGIN = intern('comment_begin') TOKEN_COMMENT_END = intern('comment_end') TOKEN_COMMENT = intern('comment') TOKEN_LINESTATEMENT_BEGIN = intern('linestatement_begin') TOKEN_LINESTATEMENT_END = intern('linestatement_end') TOKEN_LINECOMMENT_BEGIN = intern('linecomment_begin') TOKEN_LINECOMMENT_END = intern('linecomment_end') TOKEN_LINECOMMENT = intern('linecomment') TOKEN_DATA = intern('data') TOKEN_INITIAL = intern('initial') TOKEN_EOF = intern('eof') # bind operators to token types operators = { '+': TOKEN_ADD, '-': TOKEN_SUB, '/': TOKEN_DIV, '//': TOKEN_FLOORDIV, '*': TOKEN_MUL, '%': TOKEN_MOD, '**': TOKEN_POW, '~': TOKEN_TILDE, '[': TOKEN_LBRACKET, ']': TOKEN_RBRACKET, '(': TOKEN_LPAREN, ')': TOKEN_RPAREN, '{': TOKEN_LBRACE, '}': TOKEN_RBRACE, '==': TOKEN_EQ, '!=': TOKEN_NE, '>': TOKEN_GT, '>=': TOKEN_GTEQ, '<': TOKEN_LT, '<=': TOKEN_LTEQ, '=': TOKEN_ASSIGN, '.': TOKEN_DOT, ':': TOKEN_COLON, '|': TOKEN_PIPE, ',': TOKEN_COMMA, ';': TOKEN_SEMICOLON } reverse_operators = dict([(v, k) for k, v in operators.iteritems()]) assert len(operators) == len(reverse_operators), 'operators dropped' operator_re = re.compile('(%s)' % '|'.join(re.escape(x) for x in sorted(operators, key=lambda x: -len(x)))) ignored_tokens = frozenset([TOKEN_COMMENT_BEGIN, TOKEN_COMMENT, TOKEN_COMMENT_END, TOKEN_WHITESPACE, TOKEN_WHITESPACE, TOKEN_LINECOMMENT_BEGIN, TOKEN_LINECOMMENT_END, TOKEN_LINECOMMENT]) ignore_if_empty = frozenset([TOKEN_WHITESPACE, TOKEN_DATA, TOKEN_COMMENT, TOKEN_LINECOMMENT]) def _describe_token_type(token_type): if token_type in reverse_operators: return reverse_operators[token_type] return { TOKEN_COMMENT_BEGIN: 'begin of comment', TOKEN_COMMENT_END: 'end of comment', TOKEN_COMMENT: 'comment', TOKEN_LINECOMMENT: 'comment', TOKEN_BLOCK_BEGIN: 'begin of statement block', TOKEN_BLOCK_END: 'end of statement block', TOKEN_VARIABLE_BEGIN: 'begin of print statement', TOKEN_VARIABLE_END: 'end of print statement', TOKEN_LINESTATEMENT_BEGIN: 'begin of line statement', TOKEN_LINESTATEMENT_END: 'end of line statement', TOKEN_DATA: 'template data / text', TOKEN_EOF: 'end of template' }.get(token_type, token_type) def describe_token(token): """Returns a description of the token.""" if token.type == 'name': return token.value return _describe_token_type(token.type) def describe_token_expr(expr): """Like `describe_token` but for token expressions.""" if ':' in expr: type, value = expr.split(':', 1) if type == 'name': return value else: type = expr return _describe_token_type(type) def count_newlines(value): """Count the number of newline characters in the string. This is useful for extensions that filter a stream. """ return len(newline_re.findall(value)) def compile_rules(environment): """Compiles all the rules from the environment into a list of rules.""" e = re.escape rules = [ (len(environment.comment_start_string), 'comment', e(environment.comment_start_string)), (len(environment.block_start_string), 'block', e(environment.block_start_string)), (len(environment.variable_start_string), 'variable', e(environment.variable_start_string)) ] if environment.line_statement_prefix is not None: rules.append((len(environment.line_statement_prefix), 'linestatement', r'^\s*' + e(environment.line_statement_prefix))) if environment.line_comment_prefix is not None: rules.append((len(environment.line_comment_prefix), 'linecomment', r'(?:^|(?<=\S))[^\S\r\n]*' + e(environment.line_comment_prefix))) return [x[1:] for x in sorted(rules, reverse=True)] class Failure(object): """Class that raises a `TemplateSyntaxError` if called. Used by the `Lexer` to specify known errors. """ def __init__(self, message, cls=TemplateSyntaxError): self.message = message self.error_class = cls def __call__(self, lineno, filename): raise self.error_class(self.message, lineno, filename) class Token(tuple): """Token class.""" __slots__ = () lineno, type, value = (property(itemgetter(x)) for x in range(3)) def __new__(cls, lineno, type, value): return tuple.__new__(cls, (lineno, intern(str(type)), value)) def __str__(self): if self.type in reverse_operators: return reverse_operators[self.type] elif self.type == 'name': return self.value return self.type def test(self, expr): """Test a token against a token expression. This can either be a token type or ``'token_type:token_value'``. This can only test against string values and types. """ # here we do a regular string equality check as test_any is usually # passed an iterable of not interned strings. if self.type == expr: return True elif ':' in expr: return expr.split(':', 1) == [self.type, self.value] return False def test_any(self, *iterable): """Test against multiple token expressions.""" for expr in iterable: if self.test(expr): return True return False def __repr__(self): return 'Token(%r, %r, %r)' % ( self.lineno, self.type, self.value ) class TokenStreamIterator(object): """The iterator for tokenstreams. Iterate over the stream until the eof token is reached. """ def __init__(self, stream): self.stream = stream def __iter__(self): return self def next(self): token = self.stream.current if token.type is TOKEN_EOF: self.stream.close() raise StopIteration() next(self.stream) return token class TokenStream(object): """A token stream is an iterable that yields :class:`Token`\s. The parser however does not iterate over it but calls :meth:`next` to go one token ahead. The current active token is stored as :attr:`current`. """ def __init__(self, generator, name, filename): self._next = iter(generator).next self._pushed = deque() self.name = name self.filename = filename self.closed = False self.current = Token(1, TOKEN_INITIAL, '') next(self) def __iter__(self): return TokenStreamIterator(self) def __nonzero__(self): return bool(self._pushed) or self.current.type is not TOKEN_EOF eos = property(lambda x: not x, doc="Are we at the end of the stream?") def push(self, token): """Push a token back to the stream.""" self._pushed.append(token) def look(self): """Look at the next token.""" old_token = next(self) result = self.current self.push(result) self.current = old_token return result def skip(self, n=1): """Got n tokens ahead.""" for x in xrange(n): next(self) def next_if(self, expr): """Perform the token test and return the token if it matched. Otherwise the return value is `None`. """ if self.current.test(expr): return next(self) def skip_if(self, expr): """Like :meth:`next_if` but only returns `True` or `False`.""" return self.next_if(expr) is not None def next(self): """Go one token ahead and return the old one""" rv = self.current if self._pushed: self.current = self._pushed.popleft() elif self.current.type is not TOKEN_EOF: try: self.current = self._next() except StopIteration: self.close() return rv def close(self): """Close the stream.""" self.current = Token(self.current.lineno, TOKEN_EOF, '') self._next = None self.closed = True def expect(self, expr): """Expect a given token type and return it. This accepts the same argument as :meth:`jinja2.lexer.Token.test`. """ if not self.current.test(expr): expr = describe_token_expr(expr) if self.current.type is TOKEN_EOF: raise TemplateSyntaxError('unexpected end of template, ' 'expected %r.' % expr, self.current.lineno, self.name, self.filename) raise TemplateSyntaxError("expected token %r, got %r" % (expr, describe_token(self.current)), self.current.lineno, self.name, self.filename) try: return self.current finally: next(self) def get_lexer(environment): """Return a lexer which is probably cached.""" key = (environment.block_start_string, environment.block_end_string, environment.variable_start_string, environment.variable_end_string, environment.comment_start_string, environment.comment_end_string, environment.line_statement_prefix, environment.line_comment_prefix, environment.trim_blocks, environment.newline_sequence) lexer = _lexer_cache.get(key) if lexer is None: lexer = Lexer(environment) _lexer_cache[key] = lexer return lexer class Lexer(object): """Class that implements a lexer for a given environment. Automatically created by the environment class, usually you don't have to do that. Note that the lexer is not automatically bound to an environment. Multiple environments can share the same lexer. """ def __init__(self, environment): # shortcuts c = lambda x: re.compile(x, re.M | re.S) e = re.escape # lexing rules for tags tag_rules = [ (whitespace_re, TOKEN_WHITESPACE, None), (float_re, TOKEN_FLOAT, None), (integer_re, TOKEN_INTEGER, None), (name_re, TOKEN_NAME, None), (string_re, TOKEN_STRING, None), (operator_re, TOKEN_OPERATOR, None) ] # assamble the root lexing rule. because "|" is ungreedy # we have to sort by length so that the lexer continues working # as expected when we have parsing rules like <% for block and # <%= for variables. (if someone wants asp like syntax) # variables are just part of the rules if variable processing # is required. root_tag_rules = compile_rules(environment) # block suffix if trimming is enabled block_suffix_re = environment.trim_blocks and '\\n?' or '' self.newline_sequence = environment.newline_sequence # global lexing rules self.rules = { 'root': [ # directives (c('(.*?)(?:%s)' % '|'.join( [r'(?P<raw_begin>(?:\s*%s\-|%s)\s*raw\s*%s)' % ( e(environment.block_start_string), e(environment.block_start_string), e(environment.block_end_string) )] + [ r'(?P<%s_begin>\s*%s\-|%s)' % (n, r, r) for n, r in root_tag_rules ])), (TOKEN_DATA, '#bygroup'), '#bygroup'), # data (c('.+'), TOKEN_DATA, None) ], # comments TOKEN_COMMENT_BEGIN: [ (c(r'(.*?)((?:\-%s\s*|%s)%s)' % ( e(environment.comment_end_string), e(environment.comment_end_string), block_suffix_re )), (TOKEN_COMMENT, TOKEN_COMMENT_END), '#pop'), (c('(.)'), (Failure('Missing end of comment tag'),), None) ], # blocks TOKEN_BLOCK_BEGIN: [ (c('(?:\-%s\s*|%s)%s' % ( e(environment.block_end_string), e(environment.block_end_string), block_suffix_re )), TOKEN_BLOCK_END, '#pop'), ] + tag_rules, # variables TOKEN_VARIABLE_BEGIN: [ (c('\-%s\s*|%s' % ( e(environment.variable_end_string), e(environment.variable_end_string) )), TOKEN_VARIABLE_END, '#pop') ] + tag_rules, # raw block TOKEN_RAW_BEGIN: [ (c('(.*?)((?:\s*%s\-|%s)\s*endraw\s*(?:\-%s\s*|%s%s))' % ( e(environment.block_start_string), e(environment.block_start_string), e(environment.block_end_string), e(environment.block_end_string), block_suffix_re )), (TOKEN_DATA, TOKEN_RAW_END), '#pop'), (c('(.)'), (Failure('Missing end of raw directive'),), None) ], # line statements TOKEN_LINESTATEMENT_BEGIN: [ (c(r'\s*(\n|$)'), TOKEN_LINESTATEMENT_END, '#pop') ] + tag_rules, # line comments TOKEN_LINECOMMENT_BEGIN: [ (c(r'(.*?)()(?=\n|$)'), (TOKEN_LINECOMMENT, TOKEN_LINECOMMENT_END), '#pop') ] } def _normalize_newlines(self, value): """Called for strings and template data to normlize it to unicode.""" return newline_re.sub(self.newline_sequence, value) def tokenize(self, source, name=None, filename=None, state=None): """Calls tokeniter + tokenize and wraps it in a token stream. """ stream = self.tokeniter(source, name, filename, state) return TokenStream(self.wrap(stream, name, filename), name, filename) def wrap(self, stream, name=None, filename=None): """This is called with the stream as returned by `tokenize` and wraps every token in a :class:`Token` and converts the value. """ for lineno, token, value in stream: if token in ignored_tokens: continue elif token == 'linestatement_begin': token = 'block_begin' elif token == 'linestatement_end': token = 'block_end' # we are not interested in those tokens in the parser elif token in ('raw_begin', 'raw_end'): continue elif token == 'data': value = self._normalize_newlines(value) elif token == 'keyword': token = value elif token == 'name': value = str(value) elif token == 'string': # try to unescape string try: value = self._normalize_newlines(value[1:-1]) \ .encode('ascii', 'backslashreplace') \ .decode('unicode-escape') except Exception, e: msg = str(e).split(':')[-1].strip() raise TemplateSyntaxError(msg, lineno, name, filename) # if we can express it as bytestring (ascii only) # we do that for support of semi broken APIs # as datetime.datetime.strftime. On python 3 this # call becomes a noop thanks to 2to3 try: value = str(value) except UnicodeError: pass elif token == 'integer': value = int(value) elif token == 'float': value = float(value) elif token == 'operator': token = operators[value] yield Token(lineno, token, value) def tokeniter(self, source, name, filename=None, state=None): """This method tokenizes the text and returns the tokens in a generator. Use this method if you just want to tokenize a template. """ source = '\n'.join(unicode(source).splitlines()) pos = 0 lineno = 1 stack = ['root'] if state is not None and state != 'root': assert state in ('variable', 'block'), 'invalid state' stack.append(state + '_begin') else: state = 'root' statetokens = self.rules[stack[-1]] source_length = len(source) balancing_stack = [] while 1: # tokenizer loop for regex, tokens, new_state in statetokens: m = regex.match(source, pos) # if no match we try again with the next rule if m is None: continue # we only match blocks and variables if brances / parentheses # are balanced. continue parsing with the lower rule which # is the operator rule. do this only if the end tags look # like operators if balancing_stack and \ tokens in ('variable_end', 'block_end', 'linestatement_end'): continue # tuples support more options if isinstance(tokens, tuple): for idx, token in enumerate(tokens): # failure group if token.__class__ is Failure: raise token(lineno, filename) # bygroup is a bit more complex, in that case we # yield for the current token the first named # group that matched elif token == '#bygroup': for key, value in m.groupdict().iteritems(): if value is not None: yield lineno, key, value lineno += value.count('\n') break else: raise RuntimeError('%r wanted to resolve ' 'the token dynamically' ' but no group matched' % regex) # normal group else: data = m.group(idx + 1) if data or token not in ignore_if_empty: yield lineno, token, data lineno += data.count('\n') # strings as token just are yielded as it. else: data = m.group() # update brace/parentheses balance if tokens == 'operator': if data == '{': balancing_stack.append('}') elif data == '(': balancing_stack.append(')') elif data == '[': balancing_stack.append(']') elif data in ('}', ')', ']'): if not balancing_stack: raise TemplateSyntaxError('unexpected \'%s\'' % data, lineno, name, filename) expected_op = balancing_stack.pop() if expected_op != data: raise TemplateSyntaxError('unexpected \'%s\', ' 'expected \'%s\'' % (data, expected_op), lineno, name, filename) # yield items if data or tokens not in ignore_if_empty: yield lineno, tokens, data lineno += data.count('\n') # fetch new position into new variable so that we can check # if there is a internal parsing error which would result # in an infinite loop pos2 = m.end() # handle state changes if new_state is not None: # remove the uppermost state if new_state == '#pop': stack.pop() # resolve the new state by group checking elif new_state == '#bygroup': for key, value in m.groupdict().iteritems(): if value is not None: stack.append(key) break else: raise RuntimeError('%r wanted to resolve the ' 'new state dynamically but' ' no group matched' % regex) # direct state name given else: stack.append(new_state) statetokens = self.rules[stack[-1]] # we are still at the same position and no stack change. # this means a loop without break condition, avoid that and # raise error elif pos2 == pos: raise RuntimeError('%r yielded empty string without ' 'stack change' % regex) # publish new function and start again pos = pos2 break # if loop terminated without break we havn't found a single match # either we are at the end of the file or we have a problem else: # end of text if pos >= source_length: return # something went wrong raise TemplateSyntaxError('unexpected char %r at %d' % (source[pos], pos), lineno, name, filename)
n4hy/gnuradio
refs/heads/master
gr-qtgui/apps/uhd_display.py
3
#!/usr/bin/env python # # Copyright 2009,2011 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # GNU Radio 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Radio; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 51 Franklin Street, # Boston, MA 02110-1301, USA. # from gnuradio import gr from gnuradio import uhd from gnuradio import eng_notation from gnuradio.eng_option import eng_option from gnuradio.qtgui import qtgui from optparse import OptionParser import sys try: from gnuradio.qtgui import qtgui from PyQt4 import QtGui, QtCore import sip except ImportError: print "Error: Program requires PyQt4 and gr-qtgui." sys.exit(1) try: from usrp_display_qtgui import Ui_MainWindow except ImportError: print "Error: could not find usrp_display_qtgui.py:" print "\t\"pyuic4 usrp_display_qtgui.ui -o usrp_display_qtgui.py\"" sys.exit(1) # //////////////////////////////////////////////////////////////////// # Define the QT Interface and Control Dialog # //////////////////////////////////////////////////////////////////// class main_window(QtGui.QMainWindow): def __init__(self, snk, fg, parent=None): QtGui.QWidget.__init__(self, parent) self.gui = Ui_MainWindow() self.gui.setupUi(self) self.fg = fg # Add the qtsnk widgets to the layout box self.gui.sinkLayout.addWidget(snk) self.gui.dcGainEdit.setText(QtCore.QString("%1").arg(0.001)) # Connect up some signals self.connect(self.gui.pauseButton, QtCore.SIGNAL("clicked()"), self.pauseFg) self.connect(self.gui.frequencyEdit, QtCore.SIGNAL("editingFinished()"), self.frequencyEditText) self.connect(self.gui.gainEdit, QtCore.SIGNAL("editingFinished()"), self.gainEditText) self.connect(self.gui.bandwidthEdit, QtCore.SIGNAL("editingFinished()"), self.bandwidthEditText) self.connect(self.gui.amplifierEdit, QtCore.SIGNAL("editingFinished()"), self.amplifierEditText) self.connect(self.gui.actionSaveData, QtCore.SIGNAL("activated()"), self.saveData) self.gui.actionSaveData.setShortcut(QtGui.QKeySequence.Save) self.connect(self.gui.dcGainEdit, QtCore.SIGNAL("editingFinished()"), self.dcGainEditText) self.connect(self.gui.dcCancelCheckBox, QtCore.SIGNAL("clicked(bool)"), self.dcCancelClicked) def pauseFg(self): if(self.gui.pauseButton.text() == "Pause"): self.fg.stop() self.fg.wait() self.gui.pauseButton.setText("Unpause") else: self.fg.start() self.gui.pauseButton.setText("Pause") # Functions to set the values in the GUI def set_frequency(self, freq): self.freq = freq sfreq = eng_notation.num_to_str(self.freq) self.gui.frequencyEdit.setText(QtCore.QString("%1").arg(sfreq)) def set_gain(self, gain): self.gain = gain self.gui.gainEdit.setText(QtCore.QString("%1").arg(self.gain)) def set_bandwidth(self, bw): self.bw = bw sbw = eng_notation.num_to_str(self.bw) self.gui.bandwidthEdit.setText(QtCore.QString("%1").arg(sbw)) def set_amplifier(self, amp): self.amp = amp self.gui.amplifierEdit.setText(QtCore.QString("%1").arg(self.amp)) # Functions called when signals are triggered in the GUI def frequencyEditText(self): try: freq = eng_notation.str_to_num(self.gui.frequencyEdit.text().toAscii()) self.fg.set_frequency(freq) self.freq = freq except RuntimeError: pass def gainEditText(self): try: gain = float(self.gui.gainEdit.text()) self.fg.set_gain(gain) self.gain = gain except ValueError: pass def bandwidthEditText(self): try: bw = eng_notation.str_to_num(self.gui.bandwidthEdit.text().toAscii()) self.fg.set_bandwidth(bw) self.bw = bw except ValueError: pass def amplifierEditText(self): try: amp = float(self.gui.amplifierEdit.text()) self.fg.set_amplifier_gain(amp) self.amp = amp except ValueError: pass def saveData(self): fileName = QtGui.QFileDialog.getSaveFileName(self, "Save data to file", "."); if(len(fileName)): self.fg.save_to_file(str(fileName)) def dcGainEditText(self): gain = float(self.gui.dcGainEdit.text()) self.fg.set_dc_gain(gain) def dcCancelClicked(self, state): self.dcGainEditText() self.fg.cancel_dc(state) class my_top_block(gr.top_block): def __init__(self, options): gr.top_block.__init__(self) self.options = options self.show_debug_info = True self.qapp = QtGui.QApplication(sys.argv) self.u = uhd.usrp_source(device_addr=options.address, stream_args=uhd.stream_args('fc32')) self.set_bandwidth(options.samp_rate) if options.gain is None: # if no gain was specified, use the mid-point in dB g = self.u.get_gain_range() options.gain = float(g.start()+g.stop())/2 self.set_gain(options.gain) if options.freq is None: # if no freq was specified, use the mid-point r = self.u.get_freq_range() options.freq = float(r.start()+r.stop())/2 self.set_frequency(options.freq) if(options.antenna): self.u.set_antenna(options.antenna, 0) self._fftsize = options.fft_size self.snk = qtgui.sink_c(options.fft_size, gr.firdes.WIN_BLACKMAN_hARRIS, self._freq, self._bandwidth, "UHD Display", True, True, True, False) # Set up internal amplifier self.amp = gr.multiply_const_cc(0.0) self.set_amplifier_gain(100) # Create a single-pole IIR filter to remove DC # but don't connect it yet self.dc_gain = 0.001 self.dc = gr.single_pole_iir_filter_cc(self.dc_gain) self.dc_sub = gr.sub_cc() self.connect(self.u, self.amp, self.snk) if self.show_debug_info: print "Bandwidth: ", self.u.get_samp_rate() print "Center Freq: ", self.u.get_center_freq() print "Freq Range: ", self.u.get_freq_range() # Get the reference pointer to the SpectrumDisplayForm QWidget # Wrap the pointer as a PyQt SIP object # This can now be manipulated as a PyQt4.QtGui.QWidget self.pysink = sip.wrapinstance(self.snk.pyqwidget(), QtGui.QWidget) self.main_win = main_window(self.pysink, self) self.main_win.set_frequency(self._freq) self.main_win.set_gain(self._gain) self.main_win.set_bandwidth(self._bandwidth) self.main_win.set_amplifier(self._amp_value) self.main_win.show() def save_to_file(self, name): self.lock() # Add file sink to save data self.file_sink = gr.file_sink(gr.sizeof_gr_complex, name) self.connect(self.amp, self.file_sink) self.unlock() def set_gain(self, gain): self._gain = gain self.u.set_gain(self._gain) def set_frequency(self, freq): self._freq = freq r = self.u.set_center_freq(freq) try: self.snk.set_frequency_range(self._freq, self._bandwidth) except: pass def set_bandwidth(self, bw): self._bandwidth = bw self.u.set_samp_rate(self._bandwidth) try: self.snk.set_frequency_range(self._freq, self._bandwidth) except: pass def set_amplifier_gain(self, amp): self._amp_value = amp self.amp.set_k(self._amp_value) def set_dc_gain(self, gain): self.dc.set_taps(gain) def cancel_dc(self, state): self.lock() if(state): self.disconnect(self.u, self.amp) self.connect(self.u, (self.dc_sub,0)) self.connect(self.u, self.dc, (self.dc_sub,1)) self.connect(self.dc_sub, self.amp) else: self.disconnect(self.dc_sub, self.amp) self.disconnect(self.dc, (self.dc_sub,1)) self.disconnect(self.u, self.dc) self.disconnect(self.u, (self.dc_sub,0)) self.connect(self.u, self.amp) self.unlock() def main (): parser = OptionParser(option_class=eng_option) parser.add_option("-a", "--address", type="string", default="addr=192.168.10.2", help="Address of UHD device, [default=%default]") parser.add_option("-A", "--antenna", type="string", default=None, help="select Rx Antenna where appropriate") parser.add_option("-s", "--samp-rate", type="eng_float", default=1e6, help="set sample rate (bandwidth) [default=%default]") parser.add_option("-f", "--freq", type="eng_float", default=2412e6, help="set frequency to FREQ", metavar="FREQ") parser.add_option("-g", "--gain", type="eng_float", default=None, help="set gain in dB (default is midpoint)") parser.add_option("--fft-size", type="int", default=2048, help="Set number of FFT bins [default=%default]") (options, args) = parser.parse_args() if len(args) != 0: parser.print_help() sys.exit(1) tb = my_top_block(options) tb.start() tb.snk.exec_(); if __name__ == '__main__': try: main () except KeyboardInterrupt: pass
shaform/scrapy
refs/heads/master
scrapy/contrib/spidermiddleware/__init__.py
12133432
appliedx/edx-platform
refs/heads/master
common/djangoapps/track/backends/tests/__init__.py
12133432