blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62c475190a6842fc5b99e36d32788908371b5d80 | 0d1967c716f7edb260102a6d2737f6c321082286 | /.config/qtile/config.py | 669051851fa298362809a8e999c7ecb91aee0100 | [] | no_license | AysenJ/Genome | 163be741b797ff5c2bf469488a478382a1f4341a | 69123891c01528812bafad6172da7bed6e4b9ae0 | refs/heads/main | 2023-02-17T21:52:35.901175 | 2021-01-19T13:29:13 | 2021-01-19T13:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,595 | py | # -*- coding: utf-8 -*-
import os
import re
import socket
import subprocess
import psutil
from libqtile.config import (
KeyChord,
Key,
Screen,
Group,
Drag,
Click,
ScratchPad,
DropDown,
Match,
)
from libqtile.command import lazy
from libqtile import layout, bar, widget, hook
from libqtile.lazy import lazy
from libqtile import qtile
from typing import List # noqa: F401
from custom.bsp import Bsp as CustomBsp
from custom.pomodoro import Pomodoro as CustomPomodoro
mod = "mod4"
terminal = "urxvt"
myconfig = "/home/barbarossa/.config/qtile/config.py"
## Resize functions for bsp layout
def resize(qtile, direction):
layout = qtile.current_layout
child = layout.current
parent = child.parent
while parent:
if child in parent.children:
layout_all = False
if (direction == "left" and parent.split_horizontal) or (
direction == "up" and not parent.split_horizontal
):
parent.split_ratio = max(5, parent.split_ratio - layout.grow_amount)
layout_all = True
elif (direction == "right" and parent.split_horizontal) or (
direction == "down" and not parent.split_horizontal
):
parent.split_ratio = min(95, parent.split_ratio + layout.grow_amount)
layout_all = True
if layout_all:
layout.group.layout_all()
break
child = parent
parent = child.parent
@lazy.function
def resize_left(qtile):
resize(qtile, "left")
@lazy.function
def resize_right(qtile):
resize(qtile, "right")
@lazy.function
def resize_up(qtile):
resize(qtile, "up")
@lazy.function
def resize_down(qtile):
resize(qtile, "down")
keys = [
### The essentials
Key([mod], "Return", lazy.spawn(terminal), desc="Launches My Terminal"),
Key(
[mod],
"d",
lazy.group["scratchpad"].dropdown_toggle("term"),
desc="Toggle dropdown terminal",
),
Key(
[mod],
"e",
lazy.spawn("./.config/rofi/launchers/ribbon/launcher.sh"),
# lazy.spawn("rofi -display-drun '' -show drun -drun-show-actions"),
desc="Rofi app launcher",
),
Key([mod], "Tab", lazy.next_layout(), desc="Toggle through layouts"),
Key([mod, "shift"], "q", lazy.window.kill(), desc="Kill active window"),
Key([mod, "shift"], "r", lazy.restart(), desc="Restart Qtile"),
Key(
[mod, "shift"],
"e",
lazy.spawn("./.config/rofi/powermenu/powermenu.sh"),
desc="Power Menu",
),
Key(
[mod, "shift"],
"a",
lazy.spawn("emacs /home/barbarossa/.config/qtile/config.py"),
desc="Config qtile",
),
### Switch focus to specific monitor (out of three)
# Key([mod], "w", lazy.to_screen(0), desc="Keyboard focus to monitor 1"),
# Key([mod], "e", lazy.to_screen(1), desc="Keyboard focus to monitor 2"),
# Key([mod], "r", lazy.to_screen(2), desc="Keyboard focus to monitor 3"),
### Switch focus of monitors
# Key([mod], "period", lazy.next_screen(), desc="Move focus to next monitor"),
# Key([mod], "comma", lazy.prev_screen(), desc="Move focus to prev monitor"),
### Treetab controls
# Key(
# [mod, "control"],
# "k",
# lazy.layout.section_up(),
# desc="Move up a section in treetab",
# ),
# Key(
# [mod, "control"],
# "j",
# lazy.layout.section_down(),
# desc="Move down a section in treetab",
# ),
### Window controls
Key(
[mod], "Down", lazy.layout.down(), desc="Move focus down in current stack pane"
),
Key([mod], "Up", lazy.layout.up(), desc="Move focus up in current stack pane"),
Key(
[mod],
"Left",
lazy.layout.left(),
lazy.layout.next(),
desc="Move focus left in current stack pane",
),
Key(
[mod],
"Right",
lazy.layout.right(),
lazy.layout.previous(),
desc="Move focus right in current stack pane",
),
Key(
[mod, "shift"],
"Down",
lazy.layout.shuffle_down(),
desc="Move windows down in current stack",
),
Key(
[mod, "shift"],
"Up",
lazy.layout.shuffle_up(),
desc="Move windows up in current stack",
),
Key(
[mod, "shift"],
"Left",
lazy.layout.shuffle_left(),
lazy.layout.swap_left(),
lazy.layout.client_to_previous(),
desc="Move windows left in current stack",
),
Key(
[mod, "shift"],
"Right",
lazy.layout.shuffle_right(),
lazy.layout.swap_right(),
lazy.layout.client_to_next(),
desc="Move windows right in the current stack",
),
Key([mod, "control"], "Down", lazy.layout.flip_down(), desc="Flip layout down"),
Key([mod, "control"], "Up", lazy.layout.flip_up(), desc="Flip layout up"),
Key([mod, "control"], "Left", lazy.layout.flip_left(), desc="Flip layout left"),
Key([mod, "control"], "Right", lazy.layout.flip_right(), desc="Flip layout right"),
Key(
[mod, "mod1"],
"Left",
resize_left,
desc="Resize window left",
),
Key(
[mod, "mod1"],
"Right",
resize_right,
desc="Resize window Right",
),
Key([mod, "mod1"], "Up", resize_up, desc="Resize windows upward"),
Key([mod, "mod1"], "Down", resize_down, desc="Resize windows downward"),
Key([mod], "n", lazy.layout.normalize(), desc="Normalize window size ratios"),
Key(
[mod],
"m",
lazy.layout.maximize(),
desc="Toggle window between minimum and maximum sizes",
),
Key([mod, "shift"], "f", lazy.window.toggle_fullscreen(), desc="Toggle fullscreen"),
Key([mod], "equal", lazy.layout.grow(), desc="Grow in monad tall"),
Key([mod], "minus", lazy.layout.shrink(), desc="Shrink in monad tall"),
Key(
[mod],
"t",
lazy.window.toggle_floating(),
desc="Toggle floating on focused window",
),
### Stack controls
Key(
[mod],
"f",
lazy.layout.rotate(),
lazy.layout.flip(),
desc="Switch which side main pane occupies {MonadTall}",
),
# Key(
# [mod],
# "f",
# lazy.layout.next(),
# desc="Switch window focus to other pane/s of stack",
# ),
Key(
[mod],
"s",
lazy.layout.toggle_split(),
desc="Toggle between split and unsplit sides of stack",
),
### Misc. Commands
Key(
[mod],
"b",
lazy.spawn("qtile-cmd -o cmd -f hide_show_bar"),
desc="Toggle bar visibility",
),
Key(
[mod],
"backslash",
lazy.spawn("sh -c 'thunar \"$(xcwd)\"'"),
desc="Launch thunar",
),
Key(
[mod, "shift"],
"Return",
lazy.spawn("sh -c 'urxvt -cd \"$(xcwd)\"'"),
desc="Launch terminal from directory of focused window",
),
Key(
[mod, "mod1"],
"space",
lazy.spawn("./.config/sxhkd/old_scripts/rofi-task"),
desc="Rofi taskwarrior",
),
Key([mod, "shift"], "m", lazy.spawn("splatmoji copy"), desc="*moji selector"),
Key(
[mod, "shift"],
"w",
lazy.spawn("./.config/qtile/focus_mode.sh"),
desc="Toggle focus mode",
),
Key(
[mod],
"w",
lazy.spawn("rofi -theme ~/.config/rofi/configTall.rasi -show window"),
# lazy.spawn("rofi -display-window '□' -show window"),
desc="Rofi window select",
),
Key(
[mod, "control"],
"w",
lazy.spawn("nc_flash_window"),
desc="Flash currently focused window",
),
Key(
[mod],
"space",
lazy.spawn("./.config/sxhkd/old_scripts/rofi_notes.sh"),
desc="Rofi quick notes",
),
Key(
[],
"Print",
lazy.spawn("./.config/sxhkd/prtscr"),
desc="Print Screen",
),
Key(
[mod],
"Print",
lazy.spawn("./.config/sxhkd/prtregion"),
desc="Print region of screen",
),
# Key(
# [mod],
# "F10",
# lazy.spawn("./.config/qtile/eww_bright.sh up"),
# desc="Increase brightness",
# ),
# Key(
# [mod],
# "F9",
# lazy.spawn("./.config/qtile/eww_bright.sh down"),
# desc="Decrease brightness",
# ),
Key(
[],
"XF86AudioRaiseVolume",
lazy.spawn("./.config/qtile/eww_vol.sh up"),
desc="Increase volume",
),
Key(
[],
"XF86AudioLowerVolume",
lazy.spawn("./.config/qtile/eww_vol.sh down"),
desc="Decrease volume",
),
Key(
[],
"XF86AudioMute",
lazy.spawn("./.config/qtile/eww_vol.sh mute"),
desc="Toggle mute",
),
Key(
[mod],
"XF86AudioRaiseVolume",
lazy.spawn("./.config/sxhkd/vol pulsemic up"),
desc="Increase mic volume",
),
Key(
[mod],
"XF86AudioLowerVolume",
lazy.spawn("./.config/sxhkd/vol pulsemic down"),
desc="Decrease mic volume",
),
Key(
[mod],
"XF86AudioMute",
lazy.spawn("./.config/sxhkd/vol pulsemic mute"),
desc="Toggle mic mute",
),
Key(
[mod],
"F7",
lazy.spawn("playerctl previous"),
desc="Play last audio",
),
Key([mod], "F8", lazy.spawn("playerctl next"), desc="Play next audio"),
Key(
[mod], "F5", lazy.spawn("playerctl play-pause"), desc="Toggle play/pause audio"
),
Key([mod], "F6", lazy.spawn("playerctl stop"), desc="Stop audio"),
Key(
[mod], "F4", lazy.spawn("./.config/sxhkd/.caffeine.sh"), desc="Toggle caffeine"
),
Key(
[mod],
"z",
lazy.spawn("./.config/sxhkd/old_scripts/rofi-files"),
desc="Find files",
),
Key(
[mod, "shift"],
"z",
lazy.spawn("./.config/sxhkd/rofi-search.sh"),
desc="Google search",
),
Key(
[mod, "control"],
"r",
lazy.spawn("mp4"),
desc="Record selected part of screen in mp4",
),
Key(
[mod, "control", "shift"],
"r",
lazy.spawn("gif"),
desc="Record selected part of screen as gif",
),
Key(
[mod, "shift"],
"p",
lazy.spawn("./.config/sxhkd/togglepicom"),
desc="Toggle picom",
),
Key([mod], "x", lazy.spawn("./.config/sxhkd/greenclip"), desc="Greenclip"),
Key([mod, "shift"], "c", lazy.spawn("colorpick.sh"), desc="Color picker"),
Key([mod], "j", lazy.spawn("./.config/sxhkd/spotnotif"), desc="What is playing?"),
Key(
[mod, "control"],
"c",
lazy.spawn("./.config/sxhkd/old_scripts/toggledunst"),
desc="Toggle dunst",
),
Key(
[mod, "mod1"],
"c",
lazy.spawn(
"sh -c 'xdotool mousemove --window \"$(xdotool getwindowfocus)\" --polar 0 0'"
),
desc="Teleport cursor to center of focused window",
),
Key(
[mod],
"grave",
lazy.spawn("./.local/bin/rofi_notif_center.sh"),
desc="Open notification center",
),
Key(
[],
"XF86Calculator",
lazy.spawn("galculator"),
desc="Launch calculator",
),
Key(
[mod],
"r",
lazy.spawn("./.config/qtile/toggle_redshift.sh"),
desc="Toggle redshift",
),
]
def show_keys():
key_help = ""
for k in keys:
mods = ""
for m in k.modifiers:
if m == "mod4":
mods += "Super + "
else:
mods += m.capitalize() + " + "
if len(k.key) > 1:
mods += k.key.capitalize()
else:
mods += k.key
key_help += "{:<30} {}".format(mods, k.desc + "\n")
return key_help
keys.extend(
[
Key(
[mod],
"a",
lazy.spawn(
"sh -c 'echo \""
+ show_keys()
+ '" | rofi -dmenu -theme ~/.config/rofi/configTall.rasi -i -p "?"\''
),
desc="Print keyboard bindings",
),
]
)
workspaces = [
{"name": "", "key": "1", "matches": [Match(wm_class="firefox")]},
{
"name": "",
"key": "2",
"matches": [Match(wm_class="Thunderbird"), Match(wm_class="ptask")],
},
{"name": "", "key": "3", "matches": []},
{"name": "", "key": "4", "matches": [Match(wm_class="emacs")]},
{"name": "", "key": "5", "matches": []},
{"name": "", "key": "6", "matches": [Match(wm_class="slack")]},
{"name": "", "key": "7", "matches": [Match(wm_class="spotify")]},
{"name": "", "key": "8", "matches": [Match(wm_class="zoom")]},
{"name": "", "key": "9", "matches": [Match(wm_class="gimp")]},
{
"name": "",
"key": "0",
"matches": [Match(wm_class="lxappearance"), Match(wm_class="pavucontrol")],
},
]
groups = [
ScratchPad(
"scratchpad",
[
# define a drop down terminal.
# it is placed in the upper third of screen by default.
DropDown(
"term",
"urxvt -e tmux_startup.sh",
height=0.6,
on_focus_lost_hide=False,
opacity=1,
warp_pointer=False,
)
],
),
]
for workspace in workspaces:
matches = workspace["matches"] if "matches" in workspace else None
groups.append(Group(workspace["name"], matches=matches, layout="Bsp"))
keys.append(
Key(
[mod],
workspace["key"],
lazy.group[workspace["name"]].toscreen(),
desc="Focus this desktop",
)
)
keys.append(
Key(
[mod, "shift"],
workspace["key"],
lazy.window.togroup(workspace["name"]),
desc="Move focused window to another group",
)
)
layout_theme = {
"border_width": 3,
"margin": 9,
"border_focus": "3b4252",
"border_normal": "3b4252",
}
layouts = [
# layout.MonadWide(**layout_theme),
# layout.Bsp(**layout_theme, fair=False, grow_amount=2),
CustomBsp(**layout_theme, fair=False, grow_amount=2),
# layout.Columns(**layout_theme),
# layout.RatioTile(**layout_theme),
# layout.Verticmod1ile(**layout_theme),
# layout.Matrix(**layout_theme),
# layout.Zoomy(**layout_theme),
# layout.MonadTall(**layout_theme),
layout.Max(**layout_theme),
# layout.Tile(shift_windows=True, **layout_theme),
layout.Stack(num_stacks=2, **layout_theme),
layout.Floating(**layout_theme, fullscreen_border_width=3, max_border_width=3),
]
# Finish changing colors and setup bar
colors = [
["#2e3440", "#2e3440"], # background
["#d8dee9", "#d8dee9"], # foreground
["#3b4252", "#3b4252"], # background lighter
["#bf616a", "#bf616a"], # red
["#a3be8c", "#a3be8c"], # green
["#ebcb8b", "#ebcb8b"], # yellow
["#81a1c1", "#81a1c1"], # blue
["#b48ead", "#b48ead"], # magenta
["#88c0d0", "#88c0d0"], # cyan
["#e5e9f0", "#e5e9f0"], # white
["#4c566a", "#4c566a"], # grey
["#d08770", "#d08770"], # orange
["#8fbcbb", "#8fbcbb"], # super cyan
["#5e81ac", "#5e81ac"], # super blue
["#242831", "#242831"], # super dark background
]
widget_defaults = dict(
font="FiraCode Nerd Font", fontsize=18, padding=3, background=colors[0]
)
extension_defaults = widget_defaults.copy()
group_box_settings = {
"padding": 5,
"borderwidth": 4,
"active": colors[9],
"inactive": colors[10],
"disable_drag": True,
"rounded": True,
"highlight_color": colors[2],
"block_highlight_text_color": colors[6],
"highlight_method": "block",
"this_current_screen_border": colors[14],
"this_screen_border": colors[7],
"other_current_screen_border": colors[14],
"other_screen_border": colors[14],
"foreground": colors[1],
"background": colors[14],
"urgent_border": colors[3],
}
# Define functions for bar
def taskwarrior():
return (
subprocess.check_output(["./.config/qtile/task_polybar.sh"])
.decode("utf-8")
.strip()
)
def bluetooth():
return (
subprocess.check_output(["./.config/qtile/system-bluetooth-bluetoothctl.sh"])
.decode("utf-8")
.strip()
)
### Mouse_callback functions
def open_launcher():
qtile.cmd_spawn("./.config/rofi/launchers/ribbon/launcher.sh")
def finish_task():
qtile.cmd_spawn('task "$((`cat /tmp/tw_polybar_id`))" done')
def kill_window():
qtile.cmd_spawn("xdotool getwindowfocus windowkill")
def update():
qtile.cmd_spawn(terminal + "-e yay")
def open_pavu():
qtile.cmd_spawn("pavucontrol")
def toggle_bluetooth():
qtile.cmd_spawn("./.config/qtile/system-bluetooth-bluetoothctl.sh --toggle")
def open_bt_menu():
qtile.cmd_spawn("blueman")
def open_connman():
qtile.cmd_spawn("connman-gtk")
def todays_date():
qtile.cmd_spawn("./.config/qtile/calendar.sh")
def open_powermenu():
qtile.cmd_spawn("./.config/rofi/powermenu/powermenu.sh")
screens = [
Screen(
top=bar.Bar(
[
# widget.Image(
# background=colors[0],
# filename="~/.config/qtile/icons/qtilelogo.png",
# margin=6,
# mouse_callbacks={
# "Button1": lambda qtile: qtile.cmd_spawn(
# "./.config/rofi/launchers/ribbon/launcher.sh"
# )
# },
# ),
widget.TextBox(
text="",
foreground=colors[13],
background=colors[0],
font="Font Awesome 5 Free Solid",
fontsize=28,
padding=20,
mouse_callbacks={"Button1": open_launcher},
),
# widget.Sep(
# linewidth=2,
# foreground=colors[2],
# padding=25,
# size_percent=50,
# ),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.GroupBox(
font="Font Awesome 5 Brands",
visible_groups=[""],
**group_box_settings,
),
widget.GroupBox(
font="Font Awesome 5 Free Solid",
visible_groups=["", "", "", "", ""],
**group_box_settings,
),
widget.GroupBox(
font="Font Awesome 5 Brands",
visible_groups=[""],
**group_box_settings,
),
widget.GroupBox(
font="Font Awesome 5 Free Solid",
visible_groups=["", "", ""],
**group_box_settings,
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.Sep(
linewidth=0,
foreground=colors[2],
background=colors[0],
padding=10,
size_percent=40,
),
# widget.TextBox(
# text=" ",
# foreground=colors[7],
# background=colors[0],
# font="Font Awesome 5 Free Solid",
# ),
# widget.CurrentLayout(
# background=colors[0],
# foreground=colors[7],
# ),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.CurrentLayoutIcon(
custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
foreground=colors[2],
background=colors[14],
padding=-2,
scale=0.45,
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.Sep(
linewidth=0,
foreground=colors[2],
padding=10,
size_percent=50,
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.GenPollText(
func=taskwarrior,
update_interval=5,
foreground=colors[11],
background=colors[14],
mouse_callbacks={"Button1": finish_task},
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.Spacer(),
widget.TextBox(
text=" ",
foreground=colors[12],
background=colors[0],
# fontsize=38,
font="Font Awesome 5 Free Solid",
),
widget.WindowName(
background=colors[0],
foreground=colors[12],
width=bar.CALCULATED,
empty_group_string="Desktop",
mouse_callbacks={"Button2": kill_window},
),
widget.CheckUpdates(
background=colors[0],
foreground=colors[3],
colour_have_updates=colors[3],
custom_command="./.config/qtile/updates-arch-combined",
display_format=" {updates}",
execute=update,
padding=20,
),
# widget.GenPollText(
# func=updates,
# update_interval=300,
# foreground=colors[3],
# mouse_callbacks={"Button1": update},
# ),
widget.Spacer(),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
# widget.Systray(icon_size=24, background=colors[14], padding=10),
CustomPomodoro(
background=colors[14],
fontsize=24,
color_active=colors[3],
color_break=colors[6],
color_inactive=colors[10],
timer_visible=False,
prefix_active="",
prefix_break="",
prefix_inactive="",
prefix_long_break="",
prefix_paused="",
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.Sep(
linewidth=0,
foreground=colors[2],
padding=10,
size_percent=50,
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.TextBox(
text=" ",
foreground=colors[8],
background=colors[14],
font="Font Awesome 5 Free Solid",
# fontsize=38,
),
widget.PulseVolume(
foreground=colors[8],
background=colors[14],
limit_max_volume="True",
mouse_callbacks={"Button3": open_pavu},
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.Sep(
linewidth=0,
foreground=colors[2],
padding=10,
size_percent=50,
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.GenPollText(
func=bluetooth,
background=colors[14],
foreground=colors[6],
update_interval=3,
mouse_callbacks={
"Button1": toggle_bluetooth,
"Button3": open_bt_menu,
},
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.Sep(
linewidth=0,
foreground=colors[2],
padding=10,
size_percent=50,
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.TextBox(
text=" ",
font="Font Awesome 5 Free Solid",
foreground=colors[7], # fontsize=38
background=colors[14],
),
widget.Wlan(
interface="wlan0",
format="{essid}",
foreground=colors[7],
background=colors[14],
padding=5,
mouse_callbacks={"Button1": open_connman},
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.Sep(
linewidth=0,
foreground=colors[2],
padding=10,
size_percent=50,
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.TextBox(
text=" ",
font="Font Awesome 5 Free Solid",
foreground=colors[5], # fontsize=38
background=colors[14],
),
widget.Clock(
format="%a, %b %d",
background=colors[14],
foreground=colors[5],
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.Sep(
linewidth=0,
foreground=colors[2],
padding=10,
size_percent=50,
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
widget.TextBox(
text=" ",
font="Font Awesome 5 Free Solid",
foreground=colors[4], # fontsize=38
background=colors[14],
),
widget.Clock(
format="%I:%M %p",
foreground=colors[4],
background=colors[14],
# mouse_callbacks={"Button1": todays_date},
),
widget.TextBox(
text="",
foreground=colors[14],
background=colors[0],
fontsize=28,
padding=0,
),
# widget.Sep(
# linewidth=2,
# foreground=colors[2],
# padding=25,
# size_percent=50,
# ),
widget.TextBox(
text="⏻",
foreground=colors[13],
font="Font Awesome 5 Free Solid",
fontsize=34,
padding=20,
mouse_callbacks={"Button1": open_powermenu},
),
],
48,
margin=[0, -4, 18, -4],
),
bottom=bar.Gap(18),
left=bar.Gap(18),
right=bar.Gap(18),
),
]
# Drag floating layouts.
mouse = [
Drag(
[mod],
"Button1",
lazy.window.set_position_floating(),
start=lazy.window.get_position(),
),
Drag(
[mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()
),
Click([mod], "Button2", lazy.window.bring_to_front()),
]
dgroups_key_binder = None
dgroups_app_rules = [] # type: List
main = None # WARNING: this is deprecated and will be removed soon
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
floating_layout = layout.Floating(
**layout_theme,
float_rules=[
# Run the utility of `xprop` to see the wm class and name of an X client.
Match(wm_type="utility"),
Match(wm_type="notification"),
Match(wm_type="toolbar"),
Match(wm_type="splash"),
Match(wm_type="dialog"),
Match(wm_class="confirm"),
Match(wm_class="dialog"),
Match(wm_class="download"),
Match(wm_class="error"),
Match(wm_class="file_progress"),
Match(wm_class="notification"),
Match(wm_class="splash"),
Match(wm_class="toolbar"),
Match(wm_class="confirmreset"), # gitk
Match(wm_class="makebranch"), # gitk
Match(wm_class="maketag"), # gitk
Match(title="branchdialog"), # gitk
Match(title="pinentry"), # GPG key password entry
Match(wm_class="ssh-askpass"), # ssh-askpass
Match(wm_class="pomotroid"),
Match(wm_class="cmatrixterm"),
Match(title="Farge"),
Match(wm_class="thunar"),
Match(wm_class="feh"),
Match(wm_class="galculator"),
Match(wm_class="blueman-manager"),
],
)
auto_fullscreen = True
focus_on_window_activation = "focus"
@hook.subscribe.startup_once
def start_once():
home = os.path.expanduser("~")
subprocess.call([home + "/.config/qtile/autostart.sh"])
@hook.subscribe.client_new
def _swallow(window):
pid = window.window.get_net_wm_pid()
ppid = psutil.Process(pid).ppid()
cpids = {
c.window.get_net_wm_pid(): wid for wid, c in window.qtile.windows_map.items()
}
for i in range(5):
if not ppid:
return
if ppid in cpids:
parent = window.qtile.windows_map.get(cpids[ppid])
parent.minimized = True
window.parent = parent
return
ppid = psutil.Process(ppid).ppid()
@hook.subscribe.client_killed
def _unswallow(window):
if hasattr(window, "parent"):
window.parent.minimized = False
# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
# string besides java UI toolkits; you can see several discussions on the
# mailing lists, GitHub issues, and other WM documentation that suggest setting
# this string if your java app doesn't work correctly. We may as well just lie
# and say that we're a working one by default.
#
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
# java that happens to be on java's whitelist.
wmname = "qtile"
| [
"cullenrss@gmail.com"
] | cullenrss@gmail.com |
c67931ef41e293a2d99a642e5d4acb3c14fba88e | 01b759bfa841e601bebb560d49f7b33add6a6756 | /sources/listen/liste3.py | eff7b61c7cedb3e01bc4c845708d487337d11c6a | [
"MIT"
] | permissive | kantel/python-schulung | dd5469d77b48da5ee13d240ca54632c8191e4e27 | c319125c4a6f8479aff5ca5e66f3bbfbf48eb22c | refs/heads/master | 2021-01-21T15:21:52.719327 | 2018-09-23T16:28:12 | 2018-09-23T16:28:12 | 95,450,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | fruits = ["Apple", "Tomato", "Banana", "Orange", "Lemon"]
print(fruits)
for i in range(len(fruits) - 1, -1, -1):
if fruits[i] == "Banana":
fruits.pop(i)
print(fruits) | [
"joerg@kantel.de"
] | joerg@kantel.de |
a1dcab2d30be533772b88b3a9707b63122ef6a1d | 7687a3bc9117a1a2d750536c626805f8fba01ce6 | /Example5_2014-02-16-mw30-Carolina/MergeWfData_20200502.py | 2a8b207c892132b5d19c050c2de5dbe703253bcf | [
"MIT"
] | permissive | sean0921/dsa | 8f749b421e0e369618ed91f7a29d1e0a25309dc3 | b4325be1d142b1fd8e49208579e78c0804ae3a3a | refs/heads/master | 2023-01-06T07:05:42.483652 | 2020-11-02T15:24:01 | 2020-11-02T15:24:01 | 309,399,650 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 12 01:33:57 2019
@author: jianlongyuan
Function:
set wanted event's longitude and latitude
"""
#%%
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
import os
from obspy import read
from obspy.core import UTCDateTime
from obspy.geodetics import gps2dist_azimuth
plt.rcParams["font.family"] = "Times New Roman"
inputPath = './'
#%%-- get wanted station list
filenameList = []
for iFile in sorted(os.listdir("{0}".format( inputPath ))):
if '.SAC' in iFile:
filenameList.append( iFile )
print( iFile )
numFiles = len(filenameList)
#%%
#-- changed evla and evlo
for ifile in np.arange( 0, numFiles, 1 ):
filename1 = open( "{0}/{1}".format( inputPath, filenameList[ ifile ] ))
st1 = read( filename1.name, debug_headers=True)
eventLat = 33.830 # event's latitude. unit: degree
eventLon = -82.066 # event's longitude. unit: degree
epi_dist, az, baz = gps2dist_azimuth(eventLat, eventLon,
st1[0].stats.sac.stla,
st1[0].stats.sac.stlo)
epi_dist = epi_dist / 1000.0 # km
#-- create headers
st1[0].stats.sac.evla = eventLat
st1[0].stats.sac.evlo = eventLon
st1[0].stats.sac.dist = epi_dist
st1[0].stats.sac.az = az
st1[0].stats.sac.baz = baz
print( 'st1[0].stats:\n', st1[0].stats )
#-- output
st1.write( '{0}/{1}'.format(
inputPath,
filenameList[ ifile ] ),
format='sac') | [
"sean.li.shin.ho@gmail.com"
] | sean.li.shin.ho@gmail.com |
1b25eb82a8c96558081d5d9eae3ae4234e260d3c | 098419bb9ff98c376128699e9d425d11ff566821 | /echome/echome/id_gen.py | deb7c7eb5c78ecd98a15a54e57675c420df04231 | [
"MIT"
] | permissive | mgtrrz/echome | 3f91d2c351fbbddde4d0bc62bbd43dc68cc1dac7 | 30d105154dcf5aa34af120db384fab95c4d5765c | refs/heads/main | 2023-02-17T16:39:27.021070 | 2022-03-15T00:43:56 | 2022-03-15T00:43:56 | 253,356,472 | 2 | 1 | MIT | 2023-02-16T04:21:07 | 2020-04-06T00:00:12 | Python | UTF-8 | Python | false | false | 643 | py | import uuid
default_vm_length = 8
default_vmi_length = 8
default = 8
class IdGenerator:
# Generate a unique ID.
@staticmethod
def generate(type="vm", length=""):
# Use default length unless length is manually specified
if type == "vm":
l = default_vm_length if length == "" else length
elif type == "vmi":
l = default_vmi_length if length == "" else length
else:
l = default if length == "" else length
uid = str(uuid.uuid4()).replace("-", "")
if l > len(uid):
l = len(uid)
uid = uid[0:l]
return f"{type}-{uid}"
| [
"markg90@gmail.com"
] | markg90@gmail.com |
50560ca0d68454b9d3ead8851b166e1c8c6b32b4 | e7106179487c2287567589bbbc1fd18c8c7c913d | /jax_md/space.py | 6bf4a8480b48901898f7158d46914a2845516f5f | [
"Apache-2.0"
] | permissive | VardaHagh/jax-md | 4ad37e8a274e9e829a834fb150629d03a80d005f | 19e49b33e49dbc721f87528bbdbc977b5e39328a | refs/heads/master | 2020-09-26T04:01:03.224401 | 2019-09-25T17:13:06 | 2019-09-25T17:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,846 | py | # Copyright 2019 The JAX, M.D. Authors.
#
# 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
#
# https://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.
"""Code to define different spaces in which particles are simulated.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from jax.abstract_arrays import ShapedArray
from jax import eval_shape
from jax import vmap
from jax import custom_transforms
import jax
import jax.numpy as np
from jax_md.util import *
# Primitive Spatial Transforms
# pylint: disable=invalid-name
def _check_transform_shapes(T, v=None):
"""Check whether a transform and collection of vectors have valid shape."""
if len(T.shape) != 2:
raise ValueError(
('Transform has invalid rank.'
' Found rank {}, expected rank 2.'.format(len(T.shape))))
if T.shape[0] != T.shape[1]:
raise ValueError('Found non-square transform.')
if v is not None and v.shape[-1] != T.shape[1]:
raise ValueError(
('Transform and vectors have incommensurate spatial dimension. '
'Found {} and {} respectively.'.format(T.shape[1], v.shape[-1])))
def _small_inverse(T):
"""Compute the inverse of a small matrix."""
_check_transform_shapes(T)
dim = T.shape[0]
# TODO(schsam): Check whether matrices are singular. @ErrorChecking
if dim == 2:
det = T[0, 0] * T[1, 1] - T[0, 1] * T[1, 0]
return np.array([[T[1, 1], -T[0, 1]], [-T[1, 0], T[0, 0]]], dtype=T.dtype) / det
# TODO(schsam): Fill in the 3x3 case by hand.
return np.linalg.inv(T)
@custom_transforms
def transform(T, v):
"""Apply a linear transformation, T, to a collection of vectors, v.
Transform is written such that it acts as the identity during gradient
backpropagation.
Args:
T: Transformation; ndarray(shape=[spatial_dim, spatial_dim]).
v: Collection of vectors; ndarray(shape=[..., spatial_dim]).
Returns:
Transformed vectors; ndarray(shape=[..., spatial_dim]).
"""
_check_transform_shapes(T, v)
return np.dot(v, T)
jax.defjvp(transform, None, lambda g, ans, T, v: g)
def pairwise_displacement(Ra, Rb):
"""Compute a matrix of pairwise displacements given two sets of positions.
Args:
Ra: Vector of positions; ndarray(shape=[spatial_dim]).
Rb: Vector of positions; ndarray(shape=[spatial_dim]).
Returns:
Matrix of displacements; ndarray(shape=[spatial_dim]).
"""
if len(Ra.shape) != 1:
msg = (
'Can only compute displacements between vectors. To compute '
'displacements between sets of vectors use vmap or TODO.'
)
raise ValueError(msg)
if Ra.shape != Rb.shape:
msg = 'Can only compute displacement between vectors of equal dimension.'
raise ValueError(msg)
return Ra - Rb
def periodic_displacement(side, dR):
"""Wraps displacement vectors into a hypercube.
Args:
side: Specification of hypercube size. Either,
(a) float if all sides have equal length.
(b) ndarray(spatial_dim) if sides have different lengths.
dR: Matrix of displacements; ndarray(shape=[..., spatial_dim]).
Returns:
Matrix of wrapped displacements; ndarray(shape=[..., spatial_dim]).
"""
return np.mod(dR + side * f32(0.5), side) - f32(0.5) * side
def square_distance(dR):
"""Computes square distances.
Args:
dR: Matrix of displacements; ndarray(shape=[..., spatial_dim]).
Returns:
Matrix of squared distances; ndarray(shape=[...]).
"""
return np.sum(dR ** 2, axis=-1)
def distance(dR):
"""Computes distances.
Args:
dR: Matrix of displacements; ndarray(shape=[..., spatial_dim]).
Returns:
Matrix of distances; ndarray(shape=[...]).
"""
return np.sqrt(square_distance(dR))
def periodic_shift(side, R, dR):
"""Shifts positions, wrapping them back within a periodic hypercube."""
return np.mod(R + dR, side)
"""
Spaces
The following functions provide the necessary transformations to perform
simulations in different spaces.
Spaces are tuples containing:
displacement_fn(Ra, Rb, **kwargs): Computes displacements between pairs of
particles. Ra and Rb should be ndarrays of shape [spatial_dim]. Returns
an ndarray of shape [spatial_dim]. To compute displacements over sets
of positions, use vmap. Soon (TODO) we will add convenience functions
to do this where needed.
shift_fn(R, dR, **kwargs): Moves points at position R by an amount dR.
In each case, **kwargs is optional keyword arguments that can be supplied to
the different functions. In cases where the space features time dependence
this will be passed through a "t" keyword argument.
"""
def free():
"""Free boundary conditions."""
def displacement_fn(Ra, Rb, **unused_kwargs):
check_kwargs_time_dependence(unused_kwargs)
return pairwise_displacement(Ra, Rb)
def shift_fn(R, dR, **unused_kwargs):
check_kwargs_time_dependence(unused_kwargs)
return R + dR
return displacement_fn, shift_fn
def periodic(side, wrapped=True):
"""Periodic boundary conditions on a hypercube of sidelength side.
Args:
side: Either a float or an ndarray of shape [spatial_dimension] specifying
the size of each side of the periodic box.
wrapped: A boolean specifying whether or not particle positions are
remapped back into the box after each step
Returns:
(displacement_fn, shift_fn) tuple.
"""
def displacement_fn(Ra, Rb, **unused_kwargs):
check_kwargs_time_dependence(unused_kwargs)
return periodic_displacement(side, pairwise_displacement(Ra, Rb))
if wrapped:
def shift_fn(R, dR, **unused_kwargs):
check_kwargs_time_dependence(unused_kwargs)
return periodic_shift(side, R, dR)
else:
def shift_fn(R, dR, **unused_kwargs):
check_kwargs_time_dependence(unused_kwargs)
return R + dR
return displacement_fn, shift_fn
def _check_time_dependence(t):
if t is None:
msg = ('Space has time-dependent transform, but no time has been '
'provided. (t = {})'.format(t))
raise ValueError(msg)
def periodic_general(T, wrapped=True):
"""Periodic boundary conditions on a parallelepiped.
This function defines a simulation on a parellelepiped formed by applying an
affine transformation to the unit hypercube [0, 1]^spatial_dimension.
When using periodic_general, particles positions should be stored in the unit
hypercube. To get real positions from the simulation you should call
R_sim = space.transform(T, R_unit_cube).
The affine transformation can feature time dependence (if T is a function
instead of a scalar). In this case the resulting space will also be time
dependent. This can be useful for simulating systems under mechanical strain.
Args:
T: An affine transformation.
Either:
1) An ndarray of shape [spatial_dim, spatial_dim].
2) A function that takes floating point times and produces ndarrays of
shape [spatial_dim, spatial_dim].
wrapped: A boolean specifying whether or not particle positions are
remapped back into the box after each step
Returns:
(displacement_fn, shift_fn) tuple.
"""
if callable(T):
def displacement(Ra, Rb, t=None, **unused_kwargs):
_check_time_dependence(t)
check_kwargs_empty(unused_kwargs)
dR = periodic_displacement(f32(1.0), pairwise_displacement(Ra, Rb))
return transform(T(t), dR)
# Can we cache the inverse? @Optimization
if wrapped:
def shift(R, dR, t=None, **unused_kwargs):
_check_time_dependence(t)
check_kwargs_empty(unused_kwargs)
return periodic_shift(f32(1.0), R, transform(_small_inverse(T(t)), dR))
else:
def shift(R, dR, t=None, **unused_kwargs):
_check_time_dependence(t)
check_kwargs_empty(unused_kwargs)
return R + transform(_small_inverse(T(t)), dR)
else:
T_inv = _small_inverse(T)
def displacement(Ra, Rb, **unused_kwargs):
check_kwargs_time_dependence(unused_kwargs)
dR = periodic_displacement(f32(1.0), pairwise_displacement(Ra, Rb))
return transform(T, dR)
if wrapped:
def shift(R, dR, **unused_kwargs):
check_kwargs_time_dependence(unused_kwargs)
return periodic_shift(f32(1.0), R, transform(T_inv, dR))
else:
def shift(R, dR, **unused_kwargs):
check_kwargs_time_dependence(unused_kwargs)
return R + transform(T_inv, dR)
return displacement, shift
def metric(displacement):
"""Takes a displacement function and creates a metric."""
return lambda Ra, Rb, **kwargs: distance(displacement(Ra, Rb, **kwargs))
def map_product(metric_or_displacement):
return vmap(vmap(metric_or_displacement, (0, None), 0), (None, 0), 0)
def map_set(metric_or_displacement):
return vmap(metric_or_displacement, (0, 0), 0)
def canonicalize_displacement_or_metric(displacement_or_metric):
"""Checks whether or not a displacement or metric was provided."""
for dim in range(1, 4):
try:
R = ShapedArray((dim,), f32)
dR_or_dr = eval_shape(displacement_or_metric, R, R, t=0)
if len(dR_or_dr.shape) == 0:
return displacement_or_metric
else:
return metric(displacement_or_metric)
except TypeError:
continue
except ValueError:
continue
raise ValueError(
'Canonicalize displacement not implemented for spatial dimension larger'
'than 4.')
| [
"noreply@github.com"
] | VardaHagh.noreply@github.com |
179b1827617d524de25a5f1967d906ea3675b454 | c5e52a2c536228c8fb8e08896c8fd57b4449a57f | /Dharil/Trainingproject/Trainingproject/urls.py | 020aa637acdc5107c27bc03901e189ae9d31717d | [] | no_license | dharilpatel/Final_Project | 28729605e4efd1488a1fb4d0ba1ab15b3f6368bf | 2c953063dd03aae45133d3097df895325842d097 | refs/heads/master | 2021-01-01T17:43:52.454613 | 2017-07-24T02:00:42 | 2017-07-24T02:00:42 | 98,138,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | """Trainingproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'',include('Trainingapp.urls'))
]
| [
"dharpate@my.bridgeport.edu"
] | dharpate@my.bridgeport.edu |
9716c818e4e0556b673d5a7bda9910ffedc0d2df | 922e9c174f764df4ff6713792794d5cc2ce709af | /manifold_clustering.py | 70b3621e124ec331ca1aca814e11d3df57ee4cc3 | [] | no_license | ysong07/neuro_coding | 6e7045bf33b0a36edf49f694643a3b273a278262 | 00831641d833a14d90cca211933f6bbe480c611b | refs/heads/master | 2021-03-12T20:37:18.614429 | 2014-02-07T04:34:12 | 2014-02-07T04:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from time import time
import numpy as np
import pylab as pl
from matplotlib import offsetbox
from sklearn import (manifold, datasets, decomposition, ensemble, lda,
random_projection,mixture)
from sklearn.hmm import GaussianHMM
import delay_map_clustering as dmc
import math
import clustering_delay_maps as cdm
import scipy.io as scipy_io
import scipy.cluster.vq as scivq
def
if __name__ == '__main__':
#DP
# dp_components = 25 and alpha = 10 => best so far in terms of coherence
# alpha => 1 and .1 is also quite good
dp_components = (30, 20)
alpha = (0.1, 1)
n_iter = 10000
n_neighbors = 30
delay,energy,mask = dmc.load_data_40_maps()
all_correlation = dmc.load_raw_correlation('all_correlation_40.mat')
X = all_correlation
X_iso = manifold.Isomap(n_neighbors, n_components=5).fit_transform(X)
# w_correlation = scivq.whiten(X_iso);
# print(w_correlation.shape)
(aic, bic), dp_indices,labels = cdm.dirichlet_process_clustering(X_iso, dp_components[0], a=alpha[0], n_iter=n_iter)
scipy_io.savemat('data_40_Dirichlet_correlation_isomap_label',{'labels':labels})
print(labels.shape)
| [
"songyilin@songmatoMacBook-Pro.local"
] | songyilin@songmatoMacBook-Pro.local |
e08427b98bcea013ebcbad431d8d80b885fa09d8 | 24f0aba57f4393200a9327e3f3605a906859ae4b | /bot/wikidata/mfa_import.py | cd6ea5369441038bc7e0d1a88f37daefa1b767a1 | [] | no_license | Sadads/toollabs | 0b8b68adc9ca4cb21c785341cf8f3e901298d55c | 31dcd44616e6dafefdd35bbc4d09c480738a9d44 | refs/heads/master | 2020-03-18T15:43:55.774106 | 2018-05-20T11:48:04 | 2018-05-20T11:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,213 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Bot to scrape paintings from the Museum of Fine Arts, Boston website.
http://www.mfa.org/collections/search?search_api_views_fulltext=&f%5B0%5D=field_classifications%3A16
"""
import pywikibot
import artdatabot
import requests
import re
import HTMLParser
def getMFAGenerator():
"""
Do Americas, Europe, Contemporary Art. Leave Asia for later
Doing a two step approach here.
* Loop over http://www.mfa.org/collections/search?search_api_views_fulltext&sort=search_api_aggregation_1&order=asc&f[0]=field_classifications%3A16&f[1]=field_collections%3A5=&page=4 - 66 and grab paintings
* Grab data from paintings
Sorted by author name
Americas = 3, 0 - 120 = 2153
Contemporary = 4, 0 - 38 = 681
Europe = 5, 0 - 81 = 1452
Bot doesn't seem to catch everything. For Americas:
Excepted 2160 items, got 1559 items
(probably because I started half way)
"""
collectionurls = [
(u'http://www.mfa.org/collections/search?search_api_views_fulltext=&sort=search_api_aggregation_1&order=asc&f[0]=field_classifications%%3A16&f[1]=field_collections%%3A3&page=%s', 121),
(u'http://www.mfa.org/collections/search?search_api_views_fulltext=&sort=search_api_aggregation_1&order=asc&f[0]=field_classifications%%3A16&f[1]=field_collections%%3A4&page=%s', 39),
(u'http://www.mfa.org/collections/search?search_api_views_fulltext=&sort=search_api_aggregation_1&order=asc&f[0]=field_classifications%%3A16&f[1]=field_collections%%3A5&page=%s', 82),
]
htmlparser = HTMLParser.HTMLParser()
session = requests.Session()
for (baseurl, lastpage) in collectionurls:
n = 0
for i in range(0, lastpage):
searchurl = baseurl % (i,)
pywikibot.output(searchurl)
searchPage = session.get(searchurl)
searchData = searchPage.text
# <span class="italic"><a href="/aic/collections/artwork/47149?search_no=
itemregex = u'<div class="object">\s*<a href="(http://www.mfa.org/collections/object/[^"]+)">'
for match in re.finditer(itemregex, searchData, flags=re.M):
n = n + 1
metadata = {}
# No ssl, faster?
url = match.group(1)
metadata['url'] = url
print url
metadata['artworkidpid'] = u'P4625'
metadata['artworkid'] = url.replace(u'http://www.mfa.org/collections/object/', u'')
metadata['collectionqid'] = u'Q49133'
metadata['collectionshort'] = u'MFA'
metadata['locationqid'] = u'Q49133'
metadata['idpid'] = u'P217'
#No need to check, I'm actually searching for paintings.
metadata['instanceofqid'] = u'Q3305213'
# Grab the data for the item
itemPage = session.get(url)
itemData = itemPage.text
idregex = u'<h4>Accession Number</h4>\s*<p>([^<]+)</p>'
idmatch = re.search(idregex, itemData, flags=re.M)
if idmatch:
metadata['id'] = htmlparser.unescape(idmatch.group(1))
else:
print u'No ID found. Something is really wrong on this page'
continue
titleregex = u'<meta property="og:title" content="([^"]+)" />'
titlematch = re.search(titleregex, itemData, flags=re.M)
# Chop chop, several very long titles
if htmlparser.unescape(titlematch.group(1)) > 220:
title = htmlparser.unescape(titlematch.group(1))[0:200]
else:
title = htmlparser.unescape(titlematch.group(1))
metadata['title'] = { u'en' : title,
}
creatorregex = u'<a href="/collections/search\?f\[0\]=field_artists%253Afield_artist%3A\d+">([^<]+)</a>'
creatormatch = re.search(creatorregex, itemData, flags=re.M)
if creatormatch:
metadata['creatorname'] = htmlparser.unescape(creatormatch.group(1))
else:
metadata['creatorname'] = u'anonymous'
metadata['description'] = { u'nl' : u'%s van %s' % (u'schilderij', metadata.get('creatorname'),),
u'en' : u'%s by %s' % (u'painting', metadata.get('creatorname'),),
}
mediumregex = u'<h4>Medium or Technique</h4>\s*<p>([^<]+)</p>'
mediummatch = re.search(mediumregex, itemData, flags=re.M)
if mediummatch and htmlparser.unescape(mediummatch.group(1))==u'Oil on canvas':
metadata['medium'] = u'oil on canvas'
dateregex = u'\<p\>\s*(\d\d\d\d)\s*\<br\>\s*\<a href=\"/collections/search\?f\[0\]=field_artists%253Afield_artist'
datematch = re.search(dateregex, itemData, flags=re.M)
if datematch:
metadata['date'] = htmlparser.unescape(datematch.group(1))
accessionDateRegex = u'\(Accession [dD]ate\:\s*(?P<month>(January|February|March|April|May|June|July|August|September|October|November|December))\s*(?P<day>\d+),\s*(?P<year>\d+\d+\d+\d+)\s*\)'
accessionDateMatch = re.search(accessionDateRegex, itemData)
accessionDateRegex2 = u'\<h3\>\s*Provenance\s*\<\/h3\>\s*<p>[^<]+to MFA,\s*(Boston,)?\s*(?P<year>\d\d\d\d)(\s*,)?[^<]*\<\/p\>'
accessionDateMatch2 = re.search(accessionDateRegex2, itemData, flags=re.M)
if accessionDateMatch:
months = { u'January' : 1,
u'February' : 2,
u'March' : 3,
u'April' : 4,
u'May' : 5,
u'June' : 6,
u'July' : 7,
u'August' : 8,
u'September' : 9,
u'October' : 10,
u'November' : 11,
u'December' : 12,
}
metadata[u'acquisitiondate'] = u'%04d-%02d-%02d' % (int(accessionDateMatch.group(u'year')),
months.get(accessionDateMatch.group(u'month')),
int(accessionDateMatch.group(u'day')),)
elif accessionDateMatch2:
metadata[u'acquisitiondate'] = accessionDateMatch2.group(u'year')
dimensionregex = u'<h4>Dimensions</h4>\s*<p>([^<]+)</p>'
dimensionMatch = re.search(dimensionregex, itemData, flags=re.M)
if dimensionMatch:
dimensiontext = dimensionMatch.group(1).strip()
regex_2d = u'^(Overall:)?\s*(?P<height>\d+(\.\d+)?)\s*(x|×)\s*(?P<width>\d+(\.\d+)?)\s*cm\s*\(.*\)'
regex_3d = u'.*\((?P<height>\d+(\.\d+)?) (x|×) (?P<width>\d+(\.\d+)?) (x|×) (?P<depth>\d+(\.\d+)?) cm\)'
match_2d = re.match(regex_2d, dimensiontext)
match_3d = re.match(regex_3d, dimensiontext)
if match_2d:
metadata['heightcm'] = match_2d.group(u'height')
metadata['widthcm'] = match_2d.group(u'width')
elif match_3d:
metadata['heightcm'] = match_3d.group(u'height')
metadata['widthcm'] = match_3d.group(u'width')
metadata['depthcm'] = match_3d.group(u'depth')
yield metadata
print u'Excepted %s items, got %s items' % ((i+1) * 18, n)
def main():
dictGen = getMFAGenerator()
#for painting in dictGen:
# print painting
artDataBot = artdatabot.ArtDataBot(dictGen, create=False)
artDataBot.run()
if __name__ == "__main__":
main()
| [
"maarten@mdammers.nl"
] | maarten@mdammers.nl |
7f0dbdd8bbddfe74ffae5412b96cb85bfa3d079e | 33f805792e79a9ef1d577699b983031521d5b6c9 | /tapiriik/web/templatetags/displayutils.py | 8d12cc795fab8e114bb4aa56ce04880e311873f4 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | cpfair/tapiriik | 0dce9599400579d33acbbdaba16806256270d0a3 | c67e9848e67f515e116bb19cd4dd479e8414de4d | refs/heads/master | 2023-08-28T10:17:11.070324 | 2023-07-25T00:59:33 | 2023-07-25T00:59:33 | 7,812,229 | 1,519 | 343 | Apache-2.0 | 2022-10-24T16:52:34 | 2013-01-25T02:43:42 | Python | UTF-8 | Python | false | false | 2,560 | py | from django import template
from django.utils.timesince import timesince
from datetime import datetime, date
import json
register = template.Library()
@register.filter(name="utctimesince")
def utctimesince(value):
if not value:
return ""
return timesince(value, now=datetime.utcnow())
@register.filter(name="fractional_hour_duration")
def fractional_hour_duration(value):
if value is None:
return ""
return "%2.f hours" % (value / 60 / 60)
@register.filter(name="format_fractional_percentage")
def fractional_percentage(value):
try:
return "%d%%" % round(value * 100)
except:
return "NaN"
@register.filter(name="format_meters")
def meters_to_kms(value):
try:
return round(value / 1000)
except:
return "NaN"
@register.filter(name="format_daily_meters_hourly_rate")
def meters_per_day_to_km_per_hour(value):
try:
return (value / 24) / 1000
except:
return "0"
@register.filter(name="format_seconds_minutes")
def meters_to_kms(value):
try:
return round(value / 60, 3)
except:
return "NaN"
@register.filter(name='json')
def jsonit(obj):
dthandler = lambda obj: obj.isoformat() if isinstance(obj, datetime) or isinstance(obj, date) else None
return json.dumps(obj, default=dthandler)
@register.filter(name='dict_get')
def dict_get(tdict, key):
if type(tdict) is not dict:
tdict = tdict.__dict__
return tdict.get(key, None)
@register.filter(name='format')
def format(format, var):
return format.format(var)
@register.simple_tag
def stringformat(value, *args):
return value.format(*args)
@register.filter(name="percentage")
def percentage(value, *args):
if not value:
return "NaN"
try:
return str(round(float(value) * 100)) + "%"
except ValueError:
return value
def do_infotip(parser, token):
tagname, infotipId = token.split_contents()
nodelist = parser.parse(('endinfotip',))
parser.delete_first_token()
return InfoTipNode(nodelist, infotipId)
class InfoTipNode(template.Node):
def __init__(self, nodelist, infotipId):
self.nodelist = nodelist
self.infotipId = infotipId
def render(self, context):
hidden_infotips = context.get('hidden_infotips', None)
if hidden_infotips and self.infotipId in hidden_infotips:
return ""
output = self.nodelist.render(context)
return "<p class=\"infotip\" id=\"%s\">%s</p>" % (self.infotipId, output)
register.tag("infotip", do_infotip) | [
"cpf@cpfx.ca"
] | cpf@cpfx.ca |
09a3fedfed9290aa1ce27d7797e8c7fc71bf9979 | e43413526a32d20000216f3450798ae2084d22ea | /main.py | 8b7e4e5fbf2ef30fd3b91205fc2693cb69d521c3 | [] | no_license | bichar4/Radiosonde_monitoring_tool | 7066c7793ed0f965e7002be8fa74940c0a49e960 | ab4a57f8e71afbfd373a7092ad68b0af7c42c33a | refs/heads/master | 2021-05-18T04:11:45.326745 | 2020-04-03T16:33:41 | 2020-04-03T16:33:41 | 251,100,618 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,914 | py | import sys,traceback
import serial.tools.list_ports
from PyQt5.QtWidgets import QApplication,QDialog
from serialMonitor_ui import *
from SerialThreadClass import *
from Packet_Tokenizer import *
import random
from PlotCanvas import *
from PyQt5.QtCore import *
ports = [
p.device
for p in serial.tools.list_ports.comports()
if 'USB' in p.description
]
class WorkerSignals(QObject):
'''
Defines the signals available from a running worker thread.
Supported signals are:
finished
No data
error
`tuple` (exctype, value, traceback.format_exc() )
result
`object` data returned from processing, anything
progress
`int` indicating % progress
'''
finished = pyqtSignal()
error = pyqtSignal(tuple)
result = pyqtSignal(object)
progress = pyqtSignal(int)
class Worker(QRunnable):
'''
Worker thread
Inherits from QRunnable to handler worker thread setup, signals and wrap-up.
:param callback: The function callback to run on this worker thread. Supplied args and
kwargs will be passed through to the runner.
:type callback: function
:param args: Arguments to pass to the callback function
:param kwargs: Keywords to pass to the callback function
'''
def __init__(self, fn, *args, **kwargs):
super(Worker, self).__init__()
# Store constructor arguments (re-used for processing)
self.fn = fn
self.args = args
self.kwargs = kwargs
self.signals = WorkerSignals()
@pyqtSlot()
def run(self):
'''
Initialise the runner function with passed args, kwargs.
'''
# Retrieve args/kwargs here; and fire processing using them
try:
result = self.fn(*self.args, **self.kwargs)
except:
traceback.print_exc()
exctype, value = sys.exc_info()[:2]
self.signals.error.emit((exctype, value, traceback.format_exc()))
else:
self.signals.result.emit(result) # Return the result of the processing
finally:
self.signals.finished.emit() # Done
class MainClass(QDialog):
def __init__(self):
super().__init__()
self.ui_Serial = Ui_Serial()
self.ui_Serial.setupUi(self)
self.ui_Serial.SendButton.clicked.connect(self.btnClickedEvent)
self.myserial = SerialThreadClass(port = ports[0])
self.myserial.message.connect(self.intrepret_packet)
self.myserial.start()
self.parser = Packet_Tokenizer()
self.parser.assign_key(['nodeId','temp','humidity','pressure','latitude','longitude'])
self.m = PlotCanvas(self, width=5, height=4)
self.m.move(500,0)
self.n = PlotCanvas(self, width=5, height=4)
self.n.move(500,450)
self.o = PlotCanvas(self, width=5, height=4)
self.o.move(0,650)
self.threadpool = QThreadPool()
self.show()
def intrepret_packet(self,packet):
self.ui_Serial.SerialOutput.append(packet)
self.parser.extractData(packet)
value = self.parser.getData()['nodeId']
if value is not None:
worker1 = Worker(self.m.updatePlot,int(value)+random.randint(1,10))
worker2 = Worker(self.n.updatePlot,int(value))
worker3 = Worker(self.o.updatePlot,3)
# self.n.updatePlot(int(value)+random.randint(1,10))
# self.o.updatePlot(int(value)+random.randint(1,10))
self.threadpool.start(worker1)
self.threadpool.start(worker2)
self.threadpool.start(worker3)
def btnClickedEvent(self):
self.myserial.sendSerial(b'test')
print('Pressing')
if __name__ == "__main__":
app = QApplication(sys.argv)
w = MainClass()
sys.exit(app.exec_()) | [
"bichar4@gmail.com"
] | bichar4@gmail.com |
b59b070a09f239036e8f6726ca8a0b420510750b | 1c01339154e6a51e08d55322a1c6fd7c508dc7ce | /src/floor_plan_annotator/components.py | 383b79d0f2e3fa48b971f878e871fe6b03eb62e4 | [] | no_license | MathieuTuli/floor-plan-annotator | 552f18ae3acc4d1b1b66f7242b6ee9f8b80b0fe8 | c6a2109b2ff6847a3f8224be66e17253850286c9 | refs/heads/master | 2020-06-18T09:40:57.104887 | 2019-08-15T14:49:49 | 2019-08-15T14:49:49 | 196,256,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | class CornerAnnotation:
pass
class WindowAnnotation:
pass
class DoorAnnotation:
pass
class EdgeAnnotation:
pass
class GraphAnnotations:
pass
| [
"tuli.mathieu@gmail.com"
] | tuli.mathieu@gmail.com |
77599e09c87dd5d7689c8af47e98fb348d5feea3 | 1b310f21ac5f06025df2916002d21f7609d69591 | /Consensus.py | 0e182458037b89342db648977d7168dd01df1dee | [] | no_license | bipin2295/ML_income_prediction_on_census_UCI_dataet | e3e2fa171a0244e76b4fac7cd53a1a1380ac5893 | db580d5a3a0c6fddec6bbd46dcc8f99fdc64352d | refs/heads/master | 2020-04-10T07:14:00.091076 | 2018-03-08T17:48:59 | 2018-03-08T17:48:59 | 124,266,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py |
# coding: utf-8
# # Consensus
# ### Importing libraries
# In[1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from pandas.plotting import scatter_matrix
# ### Loading *csv* file in *dataframe*
# In[2]:
df = pd.read_csv("adult.csv",1,",")
data = [df]
df.head()
# ### Convert *salary* to integer
# In[3]:
salary_map={'<=50K':1,'>50K':0}
df['salary']=df['salary'].map(salary_map).astype(int)
df.head(10)
# ### convert *sex* into *integer*
# In[4]:
df['sex'] = df['sex'].map({'Male':1,'Female':0}).astype(int)
print df.head()
print ("-"*40)
print df.info()
# ### Find correlation between columns
# In[5]:
def plot_correlation(df, size=15):
corr= df.corr()
fig, ax =plt.subplots(figsize=(size,size))
ax.matshow(corr)
plt.xticks(range(len(corr.columns)),corr.columns)
plt.yticks(range(len(corr.columns)),corr.columns)
plt.show()
# In[6]:
plot_correlation(df)
# ### Categorise in US and Non-US candidates
# In[7]:
print df[['country','salary']].groupby(['country']).mean()
# ### Drop empty value marked as '?'
# In[8]:
print df.shape
df['country'] = df['country'].replace('?',np.nan)
df['workclass'] = df['workclass'].replace('?',np.nan)
df['occupation'] = df['occupation'].replace('?',np.nan)
df.dropna(how='any',inplace=True)
print df.shape
df.head(10)
# In[9]:
for dataset in data:
dataset.loc[dataset['country'] != 'United-States', 'country'] = 'Non-US'
dataset.loc[dataset['country'] == 'United-States', 'country'] = 'US'
# In[10]:
df.head(10)
# ### Convert *country* in *integer*
# In[11]:
df['country'] = df['country'].map({'US':1,'Non-US':0}).astype(int)
# In[12]:
df.head(10)
# ### Data visualisation using histogram
# In[13]:
x= df['hours-per-week']
plt.hist(x,bins=None,density=True,normed=None,histtype='bar')
plt.show()
# In[14]:
print df[['relationship','salary']].groupby(['relationship']).mean()
# In[15]:
print df[['marital-status','salary']].groupby(['marital-status']).mean()
# ### Categorise marital-status into single and couple
# In[16]:
df['marital-status'] = df['marital-status'].replace(['Divorced','Married-spouse-absent','Never-married','Separated','Widowed'],'Single')
df['marital-status'] = df['marital-status'].replace(['Married-AF-spouse','Married-civ-spouse'],'Couple')
df.head(10)
# In[17]:
print df[['marital-status','salary']].groupby(['marital-status']).mean()
# In[18]:
print df[['marital-status','relationship','salary']].groupby(['marital-status','relationship']).mean()
# In[19]:
print df[['marital-status','relationship','salary']].groupby(['relationship','marital-status']).mean()
# In[20]:
df['marital-status'] = df['marital-status'].map({'Couple':0,'Single':1})
df.head(10)
# In[21]:
rel_map = {'Unmarried':0,'Wife':1,'Husband':2,'Not-in-family':3,'Own-child':4,'Other-relative':5}
df['relationship'] = df['relationship'].map(rel_map)
df.head(10)
# ### Analyse *race*
# In[22]:
print df[['race','salary']].groupby('race').mean()
# In[23]:
race_map={'White':0,'Amer-Indian-Eskimo':1,'Asian-Pac-Islander':2,'Black':3,'Other':4}
df['race']= df['race'].map(race_map)
df.head(10)
# In[24]:
print df[['occupation','salary']].groupby(['occupation']).mean()
# In[25]:
print df[['workclass','salary']].groupby(['workclass']).mean()
# In[26]:
def f(x):
if x['workclass'] == 'Federal-gov' or x['workclass']== 'Local-gov' or x['workclass']=='State-gov': return 'govt'
elif x['workclass'] == 'Private':return 'private'
elif x['workclass'] == 'Self-emp-inc' or x['workclass'] == 'Self-emp-not-inc': return 'self_employed'
else: return 'without_pay'
df['employment_type']=df.apply(f, axis=1)
df.head(10)
# In[27]:
print df[['employment_type','salary']].groupby(['employment_type']).mean()
# In[28]:
employment_map = {'govt':0,'private':1,'self_employed':2,'without_pay':3}
df['employment_type'] = df['employment_type'].map(employment_map)
df.head(10)
# In[29]:
print df[['education','salary']].groupby(['education']).mean()
# In[30]:
df.drop(labels=['workclass','education','occupation'],axis=1,inplace=True)
df.head(10)
# In[31]:
x= df['education-num']
plt.hist(x,bins=None,density=True,normed=None,histtype='bar')
plt.show()
# In[32]:
x=df['capital-gain']
plt.hist(x,bins=None,normed=None)
plt.show()
# In[33]:
df.loc[(df['capital-gain'] > 0),'capital-gain'] = 1
df.loc[(df['capital-gain'] == 0 ,'capital-gain')]= 0
# In[34]:
df.head(25)
# In[35]:
x=df['capital-loss']
plt.hist(x,bins=None)
plt.show()
# In[36]:
df.loc[(df['capital-loss'] > 0),'capital-loss'] = 1
df.loc[(df['capital-loss'] == 0 ,'capital-loss')]= 0
df.head(10)
# In[37]:
print df['age'].count()
# ## Applying model for learning
# ### Divide data into training data, validation, and final testing data
# #### 50% training data, 20% validation data, 30% test data
# In[38]:
from sklearn.model_selection import train_test_split
X= df.drop(['salary'],axis=1)
y=df['salary']
split_size=0.3
#Creation of Train and Test dataset
X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=split_size,random_state=22)
#Creation of Train and validation dataset
X_train, X_val, y_train, y_val = train_test_split(X_train,y_train,test_size=0.2,random_state=5)
# In[39]:
print "Train dataset: {0}{1}".format(X_train.shape, y_train.shape)
print "Validation dataset: {0}{1}".format(X_val.shape, y_val.shape)
print "Test dataset: {0}{1}".format(X_test.shape, y_test.shape)
# ### Let's select few algorithm used for classification
# In[40]:
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.neural_network import MLPClassifier
from sklearn.naive_bayes import GaussianNB
from sklearn.tree import DecisionTreeClassifier
from sklearn.svm import SVC
# In[41]:
models = []
names = ['LR','Random Forest','Neural Network','GaussianNB','DecisionTreeClassifier','SVM',]
models.append((LogisticRegression()))
models.append((RandomForestClassifier(n_estimators=100)))
models.append((MLPClassifier()))
models.append((GaussianNB()))
models.append((DecisionTreeClassifier()))
models.append((SVC()))
# In[43]:
print (models)
# In[44]:
from sklearn import model_selection
from sklearn.metrics import accuracy_score
# In[45]:
kfold = model_selection.KFold(n_splits=5,random_state=7)
for i in range(0,len(models)):
cv_result = model_selection.cross_val_score(models[i],X_train,y_train,cv=kfold,scoring='accuracy')
score=models[i].fit(X_train,y_train)
prediction = models[i].predict(X_val)
acc_score = accuracy_score(y_val,prediction)
print ('-'*40)
print ('{0}: {1}'.format(names[i],acc_score))
# ### Let's proceed further with Random Forest algorithm as it showed good accuracy
# #### Let's predict our test data and see prediction results
# In[46]:
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
# In[47]:
randomForest = RandomForestClassifier(n_estimators=100)
randomForest.fit(X_train,y_train)
prediction = randomForest.predict(X_test)
# In[48]:
print ('-'*40)
print ('Accuracy score:')
print (accuracy_score(y_test,prediction))
print ('-'*40)
print ('Confusion Matrix:')
print (confusion_matrix(y_test,prediction))
print ('-'*40)
print ('Classification Matrix:')
print (classification_report(y_test,prediction))
| [
"noreply@github.com"
] | bipin2295.noreply@github.com |
1ff6a71dd535623c3c0eaecb7a20aa01d9abec20 | 088bf32deb784b4efa66bfa08852156818af06e6 | /C02_Getting_Started/ex_2.2-2.py | e2145ad2c959d702ac4aade8fbe76aa0230bd393 | [] | no_license | GHLisz/CLRS-Solutions | 1c2f9927b456214d55713728457267177b222b8a | a2b7639e99a1528372e2789fe5517db8ce2cb5d6 | refs/heads/master | 2021-01-21T18:29:11.692055 | 2018-09-07T00:46:07 | 2018-09-07T00:46:07 | 92,051,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | '''
Outer loop invariant: at the start of each iteration, a[1..i-1] is the sorted smallest i-1 elements of the array
Inner loop invariant: at the start of each iteration, a[min_index] is the smallest number in the subarray a[i..j-1]
Why first n-1 elements? if there is a nth loop, it will compare a single element.
Best and worst running time are both Θ(n^2)
'''
import random
import unittest
def selection_sort(a):
n = len(a)
for i in range(0, n - 1):
min_index = i
for j in range(i + 1, n):
if a[min_index] > a[j]:
min_index = j
a[i], a[min_index] = a[min_index], a[i]
class InsertionSortTestCase(unittest.TestCase):
def random_array(self):
return [random.randint(0, 100) for _ in range(random.randint(1, 100))]
def test_random(self):
for _ in range(10000):
arr = self.random_array()
sorted_arr = sorted(arr)
selection_sort(arr)
self.assertEqual(arr, sorted_arr)
if __name__ == '__main__':
unittest.main()
| [
"leeshzh@outlook.com"
] | leeshzh@outlook.com |
c194e041337b645c23193b36a356f2a446d206f3 | 80fb063ad0beb148dd65fc64e41b0447edb35748 | /student_lists/studentlists.py | 6dda189cb5e20359d794eedb23e3baabb007a36f | [] | no_license | Judas-Michael/Lab4-Unit-Testing | d486b84daf0984e24b2db9ee1ba35c6d1d9d9f37 | 869f1b9882839cd6dc8f649a8cf9c17ca2dc063d | refs/heads/master | 2021-04-30T12:18:04.269194 | 2018-04-04T15:15:19 | 2018-04-04T15:15:19 | 121,272,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py |
class StudentError(Exception):
""" Custom exception class """
pass
class ClassList:
"""
Class registration system. Can create a class, add students, remove students.
Student names in a class must be unique.
"""
def __init__(self, max_students):
self.class_list = []
self.max_students = max_students
def add_student(self, student):
''' Add student if there is space in the class,
Raises Error if student is already in the list '''
if len(self.class_list) < self.max_students:
if student not in self.class_list:
self.class_list.append(student)
else:
raise StudentError('Student %s already enrolled, can\'t add again' % student)
def remove_student(self, student):
''' Remove student from class list. Raises Error if student not in list '''
if student not in self.class_list:
raise StudentError('Student %s not found in class' % student)
self.class_list.remove(student)
def is_enrolled(self, student):
''' Verifies if the student is enrolled or not '''
return student in self.class_list
def index_of_student(self, student):
''' Returns position of student in list, indexed from 1
Returns None if student not present '''
if student in self.class_list:
return self.class_list.index(student) + 1
return None
def is_class_full(self,student):
boolean full = true #initiates boolean for true
if len(self.class_list) < self.max_students:
full = false #length of class list is not equal to the amount of students allowed
else:
full = true
def __str__(self):
return ", ".join(self.class_list)
def main():
## Just for testing
capstone = ClassList(5)
capstone.add_student('Anna')
capstone.remove_student('Anna')
capstone.add_student('Anna')
capstone.add_student('Bob')
capstone.add_student('Cathy')
try:
capstone.add_student('Cathy') # Second Cathy not added
except:
print('Did not add student twice')
capstone.add_student('David')
capstone.add_student('Elliot')
capstone.add_student('Flora') # Shouldn't add
try:
capstone.remove_student('Gus') # not present
except:
print('Attempt to remove student not enrolled')
print(capstone)
print(capstone.is_enrolled('Bob')) # True
print(capstone.is_enrolled('Flora')) # False
print('Anna is at position', capstone.index_of_student('Anna') ) ## 4
print('Alex is at position', capstone.index_of_student('Alex') ) ## None
if __name__ == '__main__':
main()
| [
"lollypopsandrainbows@gmail.com"
] | lollypopsandrainbows@gmail.com |
f1aeb93cd0ccc135f2f13a0e71519123c29394e4 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/ashvin/rss/pusher1/scale/rl.py | fe1b316d1274746e7760e94c9705a061398925ae | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | from railrl.launchers.experiments.murtaza.multiworld import her_td3_experiment
import railrl.misc.hyperparameter as hyp
from multiworld.envs.mujoco.cameras import sawyer_pusher_camera_upright_v2
from multiworld.envs.mujoco.sawyer_xyz.sawyer_push_and_reach_env import (
SawyerPushAndReachXYEnv
)
from multiworld.envs.mujoco.sawyer_xyz.sawyer_push_multiobj import SawyerMultiobjectEnv
from railrl.launchers.launcher_util import run_experiment
from railrl.launchers.arglauncher import run_variants
import numpy as np
if __name__ == "__main__":
# noinspection PyTypeChecker
x_low = -0.2
x_high = 0.2
y_low = 0.5
y_high = 0.7
t = 0.03
variant = dict(
algo_kwargs=dict(
base_kwargs=dict(
num_epochs=501,
num_steps_per_epoch=1000,
num_steps_per_eval=1000,
max_path_length=100,
num_updates_per_env_step=4,
batch_size=128,
discount=0.99,
min_num_steps_before_training=4000,
reward_scale=1.0,
render=False,
collection_mode='online',
tau=1e-2,
parallel_env_params=dict(
num_workers=1,
),
),
her_kwargs=dict(
observation_key='state_observation',
desired_goal_key='state_desired_goal',
),
td3_kwargs=dict(),
),
replay_buffer_kwargs=dict(
max_size=int(1E6),
fraction_goals_rollout_goals=0.1,
fraction_goals_env_goals=0.5,
ob_keys_to_save=[],
),
qf_kwargs=dict(
hidden_sizes=[400, 300],
),
policy_kwargs=dict(
hidden_sizes=[400, 300],
),
algorithm='HER-TD3',
version='normal',
es_kwargs=dict(
max_sigma=.2,
),
exploration_type='ou',
observation_key='state_observation',
desired_goal_key='state_desired_goal',
init_camera=sawyer_pusher_camera_upright_v2,
do_state_exp=True,
save_video=True,
imsize=84,
snapshot_mode='gap_and_last',
snapshot_gap=50,
env_class=SawyerMultiobjectEnv,
env_kwargs=dict(
num_objects=1,
preload_obj_dict=[
dict(color2=(0.1, 0.1, 0.9)),
],
),
num_exps_per_instance=1,
region="us-west-2",
)
search_space = {
'seedid': range(5),
'algo_kwargs.base_kwargs.num_updates_per_env_step': [4, ],
'replay_buffer_kwargs.fraction_goals_rollout_goals': [0.1, ],
'replay_buffer_kwargs.fraction_goals_env_goals': [0.5, ],
'env_kwargs.action_repeat': [1, 5, 25],
'algo_kwargs.base_kwargs.max_path_length': [10, 20, 100],
}
sweeper = hyp.DeterministicHyperparameterSweeper(
search_space, default_parameters=variant,
)
# n_seeds = 1
# mode = 'local'
# exp_prefix = 'test'
n_seeds = 1
mode = 'ec2'
exp_prefix = 'sawyer_pusher_state_final'
variants = []
for variant in sweeper.iterate_hyperparameters():
variants.append(variant)
run_variants(her_td3_experiment, variants, run_id=0)
| [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
d6598700cc25e793daa1521bfaf42799e6407b17 | aa1b8c6ad5505b64e404e79b8d8836bba7a9052b | /controlimcap/models/flatattn.py | 3c988a3bbfa24fe5c3273607b2e3a5909c559524 | [
"MIT"
] | permissive | cshizhe/asg2cap | cac14c08f55e9efdda127e8bd81ee7d2c31e836e | 9d3a8a6312935cb1b033835c1edc522dcf9f6061 | refs/heads/master | 2022-12-09T15:01:43.380983 | 2022-12-01T17:39:00 | 2022-12-01T17:39:00 | 247,243,896 | 202 | 29 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | import torch
import torch.nn as nn
import framework.configbase
import caption.encoders.vanilla
import caption.decoders.attention
import caption.models.attention
import controlimcap.encoders.flat
from caption.models.attention import MPENCODER, ATTNENCODER, DECODER
class NodeBUTDAttnModel(caption.models.attention.BUTDAttnModel):
def forward_encoder(self, input_batch):
attn_embeds = self.submods[ATTNENCODER](input_batch['attn_fts'])
graph_embeds = torch.sum(attn_embeds * input_batch['attn_masks'].unsqueeze(2), 1)
graph_embeds = graph_embeds / torch.sum(input_batch['attn_masks'], 1, keepdim=True)
enc_states = self.submods[MPENCODER](
torch.cat([input_batch['mp_fts'], graph_embeds], 1))
return {'init_states': enc_states, 'attn_fts': attn_embeds}
class NodeRoleBUTDAttnModelConfig(caption.models.attention.AttnModelConfig):
def __init__(self):
super().__init__()
self.subcfgs[ATTNENCODER] = controlimcap.encoders.flat.EncoderConfig()
class NodeRoleBUTDAttnModel(caption.models.attention.BUTDAttnModel):
def build_submods(self):
submods = {}
submods[MPENCODER] = caption.encoders.vanilla.Encoder(self.config.subcfgs[MPENCODER])
submods[ATTNENCODER] = controlimcap.encoders.flat.Encoder(self.config.subcfgs[ATTNENCODER])
submods[DECODER] = caption.decoders.attention.BUTDAttnDecoder(self.config.subcfgs[DECODER])
return submods
def prepare_input_batch(self, batch_data, is_train=False):
outs = super().prepare_input_batch(batch_data, is_train=is_train)
outs['node_types'] = torch.LongTensor(batch_data['node_types']).to(self.device)
outs['attr_order_idxs'] = torch.LongTensor(batch_data['attr_order_idxs']).to(self.device)
return outs
def forward_encoder(self, input_batch):
attn_embeds = self.submods[ATTNENCODER](input_batch['attn_fts'],
input_batch['node_types'], input_batch['attr_order_idxs'])
graph_embeds = torch.sum(attn_embeds * input_batch['attn_masks'].unsqueeze(2), 1)
graph_embeds = graph_embeds / torch.sum(input_batch['attn_masks'], 1, keepdim=True)
enc_states = self.submods[MPENCODER](
torch.cat([input_batch['mp_fts'], graph_embeds], 1))
return {'init_states': enc_states, 'attn_fts': attn_embeds}
| [
"cszhe1@ruc.edu.cn"
] | cszhe1@ruc.edu.cn |
4541d4b20df8048c248369a9e12a1abbe4ff9d2b | a479a5773fd5607f96c3b84fed57733fe39c3dbb | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs_/flags/state/__init__.py | 2cbd65f6e6f17027609843564b0443f7651f767c | [
"Apache-2.0"
] | permissive | napalm-automation/napalm-yang | 839c711e9294745534f5fbbe115e0100b645dbca | 9148e015b086ebe311c07deb92e168ea36fd7771 | refs/heads/develop | 2021-01-11T07:17:20.226734 | 2019-05-15T08:43:03 | 2019-05-15T08:43:03 | 69,226,025 | 65 | 64 | Apache-2.0 | 2019-05-15T08:43:24 | 2016-09-26T07:48:42 | Python | UTF-8 | Python | false | false | 534,091 | py | # -*- 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/extended-ipv4-reachability/prefixes/prefix/subTLVs/subTLVs/flags/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 4.
"""
__slots__ = ("_path_helper", "_extmethods", "__subtlv_type", "__flags")
_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.__flags = YANGDynClass(
base=TypedListType(
allowed_type=RestrictedClassType(
base_type=six.text_type,
restriction_type="dict_key",
restriction_arg={
"EXTERNAL_FLAG": {}, "READVERTISEMENT_FLAG": {}, "NODE_FLAG": {}
},
)
),
is_leaf=False,
yang_name="flags",
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="enumeration",
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",
"extended-ipv4-reachability",
"prefixes",
"prefix",
"subTLVs",
"subTLVs",
"flags",
"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/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs/flags/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/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs/flags/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_flags(self):
"""
Getter method for flags, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs/flags/state/flags (enumeration)
YANG Description: Additional prefix reachability flags.
"""
return self.__flags
def _set_flags(self, v, load=False):
"""
Setter method for flags, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs/flags/state/flags (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_flags is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_flags() directly.
YANG Description: Additional prefix reachability flags.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=TypedListType(
allowed_type=RestrictedClassType(
base_type=six.text_type,
restriction_type="dict_key",
restriction_arg={
"EXTERNAL_FLAG": {},
"READVERTISEMENT_FLAG": {},
"NODE_FLAG": {},
},
)
),
is_leaf=False,
yang_name="flags",
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="enumeration",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """flags must be of a type compatible with enumeration""",
"defined-type": "openconfig-network-instance:enumeration",
"generated-type": """YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'EXTERNAL_FLAG': {}, 'READVERTISEMENT_FLAG': {}, 'NODE_FLAG': {}},)), is_leaf=False, yang_name="flags", 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='enumeration', is_config=False)""",
}
)
self.__flags = t
if hasattr(self, "_set"):
self._set()
def _unset_flags(self):
self.__flags = YANGDynClass(
base=TypedListType(
allowed_type=RestrictedClassType(
base_type=six.text_type,
restriction_type="dict_key",
restriction_arg={
"EXTERNAL_FLAG": {}, "READVERTISEMENT_FLAG": {}, "NODE_FLAG": {}
},
)
),
is_leaf=False,
yang_name="flags",
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="enumeration",
is_config=False,
)
subtlv_type = __builtin__.property(_get_subtlv_type)
flags = __builtin__.property(_get_flags)
_pyangbind_elements = OrderedDict([("subtlv_type", subtlv_type), ("flags", flags)])
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/extended-ipv4-reachability/prefixes/prefix/subTLVs/subTLVs/flags/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 4.
"""
__slots__ = ("_path_helper", "_extmethods", "__subtlv_type", "__flags")
_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.__flags = YANGDynClass(
base=TypedListType(
allowed_type=RestrictedClassType(
base_type=six.text_type,
restriction_type="dict_key",
restriction_arg={
"EXTERNAL_FLAG": {}, "READVERTISEMENT_FLAG": {}, "NODE_FLAG": {}
},
)
),
is_leaf=False,
yang_name="flags",
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="enumeration",
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",
"extended-ipv4-reachability",
"prefixes",
"prefix",
"subTLVs",
"subTLVs",
"flags",
"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/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs/flags/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/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs/flags/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_flags(self):
"""
Getter method for flags, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs/flags/state/flags (enumeration)
YANG Description: Additional prefix reachability flags.
"""
return self.__flags
def _set_flags(self, v, load=False):
"""
Setter method for flags, mapped from YANG variable /network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/subTLVs/subTLVs/flags/state/flags (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_flags is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_flags() directly.
YANG Description: Additional prefix reachability flags.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(
v,
base=TypedListType(
allowed_type=RestrictedClassType(
base_type=six.text_type,
restriction_type="dict_key",
restriction_arg={
"EXTERNAL_FLAG": {},
"READVERTISEMENT_FLAG": {},
"NODE_FLAG": {},
},
)
),
is_leaf=False,
yang_name="flags",
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="enumeration",
is_config=False,
)
except (TypeError, ValueError):
raise ValueError(
{
"error-string": """flags must be of a type compatible with enumeration""",
"defined-type": "openconfig-network-instance:enumeration",
"generated-type": """YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'EXTERNAL_FLAG': {}, 'READVERTISEMENT_FLAG': {}, 'NODE_FLAG': {}},)), is_leaf=False, yang_name="flags", 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='enumeration', is_config=False)""",
}
)
self.__flags = t
if hasattr(self, "_set"):
self._set()
def _unset_flags(self):
self.__flags = YANGDynClass(
base=TypedListType(
allowed_type=RestrictedClassType(
base_type=six.text_type,
restriction_type="dict_key",
restriction_arg={
"EXTERNAL_FLAG": {}, "READVERTISEMENT_FLAG": {}, "NODE_FLAG": {}
},
)
),
is_leaf=False,
yang_name="flags",
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="enumeration",
is_config=False,
)
subtlv_type = __builtin__.property(_get_subtlv_type)
flags = __builtin__.property(_get_flags)
_pyangbind_elements = OrderedDict([("subtlv_type", subtlv_type), ("flags", flags)])
| [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
640dff6bde47a5a81a2be8e0488dd529e78879f4 | c22b6d04e9e1bb1d71bb4e73c7a10bbbc0e61c15 | /deep-learning/cnn/tagger_cle_cnn.py | 042d5dc3e845603bc710089876fe561b340dc89f | [] | no_license | zhangyujinoct/chriscay-compling | cba767a92a9b129fe7389cd0d4427430294c5795 | 64c0488e71ca03dc02e1ba14983b3cfc544d2729 | refs/heads/master | 2022-12-27T21:20:17.707542 | 2020-10-10T11:18:36 | 2020-10-10T11:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,728 | py | #!/usr/bin/env python3
import argparse
import datetime
import os
import re
import numpy as np
import tensorflow as tf
from morpho_dataset import MorphoDataset
class Network:
def __init__(self, args, num_words, num_tags, num_chars):
word_ids = tf.keras.Input(shape=(None,), name='word_ids')
words_embedding = tf.keras.layers.Embedding(
input_dim=num_words, output_dim=args.we_dim, mask_zero=True, name='word_embeddings')(word_ids)
charseqs = tf.keras.Input(shape=(None, None), name='charseqs')
# Because cuDNN implementation of RNN does not allow empty sequences,
# we need to consider only charseqs for valid words.
# For CNN embeddings it is not strictly necessary, but we use it anyway.
valid_words = tf.where(word_ids != 0, name='word_ids_not_0')
cle = tf.gather_nd(charseqs, valid_words, name='charseqs_valid_words')
chars_embedding = tf.keras.layers.Embedding(
input_dim=num_chars, output_dim=args.cle_dim, mask_zero=True, name='chars_embedding')(cle)
def cnn(width, cnn):
cnn = tf.keras.layers.Conv1D(
args.cnn_filters, width, strides=1, padding="valid", activation='relu', name='cnn' + str(width))(cnn)
return tf.keras.layers.GlobalMaxPool1D(name='max_pool' + str(width))(cnn)
cnn_concat = tf.keras.layers.Concatenate(name='concat_cnn_layers')(
[cnn(width, chars_embedding) for width in range(2, args.cnn_max_width + 1)])
def highway_network(x):
T = tf.keras.layers.Dense(units=x.shape[1], activation='sigmoid', name='T_gate')(x)
H = tf.keras.layers.Dense(units=x.shape[1], activation='relu', name='H')(x)
C = tf.subtract(1.0, T, name='C_gate')
return tf.add(tf.multiply(H, T), tf.multiply(x, C), name='highway_network')
# Now we copy cle-s back to the original shape.
cle = tf.scatter_nd(valid_words, highway_network(cnn_concat), [tf.shape(charseqs, name='shape0')[
0], tf.shape(charseqs, name='shape1')[1], highway_network(cnn_concat).shape[-1]], name='highway_net_scattered')
# `tf.keras.layers.Concatenate()` layer preserves masks
# (contrary to raw methods like tf.concat).
we_cle_concat = tf.keras.layers.Concatenate(
name='we_cle_concat')([words_embedding, cle])
if args.rnn_cell == "LSTM":
rnn_cell = tf.keras.layers.LSTM(
args.rnn_cell_dim, return_sequences=True)
elif args.rnn_cell == "GRU":
rnn_cell = tf.keras.layers.GRU(
args.rnn_cell_dim, return_sequences=True)
brnn_global = tf.keras.layers.Bidirectional(
layer=rnn_cell, merge_mode='sum')(we_cle_concat)
predictions = tf.keras.layers.Dense(
units=num_tags, activation=tf.keras.activations.softmax)(brnn_global)
self.model = tf.keras.Model(inputs=[word_ids, charseqs], outputs=predictions)
tf.keras.utils.plot_model(
self.model, to_file='model.png', show_shapes=True, show_layer_names=True,
rankdir='TB', expand_nested=False, dpi=96
)
self.model.compile(optimizer=tf.optimizers.Adam(),
loss=tf.losses.SparseCategoricalCrossentropy(),
metrics=[tf.metrics.SparseCategoricalAccuracy(name="accuracy")])
self._writer = tf.summary.create_file_writer(args.logdir, flush_millis=10 * 1000)
def train_epoch(self, dataset, args):
for batch in dataset.batches(args.batch_size):
metrics = self.model.train_on_batch(
x=[batch[dataset.FORMS].word_ids, batch[dataset.FORMS].charseqs],
y=batch[dataset.TAGS].word_ids,
reset_metrics=True
)
# Generate the summaries each 100 steps
if self.model.optimizer.iterations % 100 == 0:
tf.summary.experimental.set_step(self.model.optimizer.iterations)
with self._writer.as_default():
for name, value in zip(self.model.metrics_names, metrics):
tf.summary.scalar("train/{}".format(name), value)
def evaluate(self, dataset, dataset_name, args):
# We assume that model metric are already resetted at this point.
for batch in dataset.batches(args.batch_size):
metrics = self.model.test_on_batch(
x=[batch[dataset.FORMS].word_ids, batch[dataset.FORMS].charseqs],
y=batch[dataset.TAGS].word_ids,
reset_metrics=False
)
self.model.reset_metrics()
metrics = dict(zip(self.model.metrics_names, metrics))
with self._writer.as_default():
tf.summary.experimental.set_step(self.model.optimizer.iterations)
for name, value in metrics.items():
tf.summary.scalar("{}/{}".format(dataset_name, name), value)
return metrics
if __name__ == "__main__":
# Parse arguments
parser = argparse.ArgumentParser()
parser.add_argument("--batch_size", default=10, type=int, help="Batch size.")
parser.add_argument("--cle_dim", default=32, type=int, help="CLE embedding dimension.")
parser.add_argument("--cnn_filters", default=16, type=int, help="CNN embedding filters per length.")
parser.add_argument("--cnn_max_width", default=4, type=int, help="Maximum CNN filter width.")
parser.add_argument("--epochs", default=10, type=int, help="Number of epochs.")
parser.add_argument("--max_sentences", default=5000, type=int, help="Maximum number of sentences to load.")
parser.add_argument("--rnn_cell", default="LSTM", type=str, help="RNN cell type.")
parser.add_argument("--rnn_cell_dim", default=64, type=int, help="RNN cell dimension.")
parser.add_argument("--seed", default=42, type=int, help="Random seed.")
parser.add_argument("--threads", default=1, type=int, help="Maximum number of threads to use.")
parser.add_argument("--we_dim", default=64, type=int, help="Word embedding dimension.")
parser.add_argument("--verbose", default=False, action="store_true", help="Verbose TF logging.")
args = parser.parse_args([] if "__file__" not in globals() else None)
# Fix random seeds and threads
np.random.seed(args.seed)
tf.random.set_seed(args.seed)
tf.config.threading.set_inter_op_parallelism_threads(args.threads)
tf.config.threading.set_intra_op_parallelism_threads(args.threads)
# Report only errors by default
if not args.verbose:
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
# Create logdir name
args.logdir = os.path.join("logs", "{}-{}-{}".format(
os.path.basename(globals().get("__file__", "notebook")),
datetime.datetime.now().strftime("%Y-%m-%d_%H%M%S"),
",".join(("{}={}".format(re.sub("(.)[^_]*_?", r"\1", key), value) for key, value in sorted(vars(args).items())))
))
# Load the data
morpho = MorphoDataset("czech_cac", max_sentences=args.max_sentences, add_bow_eow=True)
# Create the network and train
network = Network(args,
num_words=len(morpho.train.data[morpho.train.FORMS].words),
num_tags=len(morpho.train.data[morpho.train.TAGS].words),
num_chars=len(morpho.train.data[morpho.train.FORMS].alphabet))
for epoch in range(args.epochs):
network.train_epoch(morpho.train, args)
metrics = network.evaluate(morpho.dev, "dev", args)
metrics = network.evaluate(morpho.test, "test", args)
with open("tagger_we.out", "w") as out_file:
print("{:.2f}".format(100 * metrics["accuracy"]), file=out_file)
| [
"christian-cayralat@hotmail.com"
] | christian-cayralat@hotmail.com |
9b969f93179d938a575467a4298aa7a9a4f7cbb4 | a06a520b73e0d7b5918767781245c3d027744d00 | /message_app/mensajes/permissions.py | 1db72212a5037bc7ed27d5b3996596e3438af878 | [] | no_license | ggonzalez94/chat_app_django | bf16366ad573e668cc624e112530bdc2fbf116ea | c6d41efa73282d6f110911b0a3a5f82fe2964475 | refs/heads/master | 2020-03-16T23:17:32.281553 | 2018-05-11T22:08:12 | 2018-05-11T22:08:12 | 133,071,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from rest_framework.permissions import BasePermission
from .models import Mensajes
class IsOwner(BasePermission):
"""Custom permission class to allow only bucketlist owners to edit them."""
def has_object_permission(self, request, view, obj):
print("Inside object permissions")
"""Return True if permission is granted to the bucketlist owner."""
if isinstance(obj, Mensajes):
return obj.sender == request.user
return obj.sender == request.user
| [
"gustavog_gs@hotmail.com"
] | gustavog_gs@hotmail.com |
78a631b47121388e5c568f1cfd26fe33d5f1b0d2 | 7c82394eb21a21c2db70569b0a1cd43ddcfa666f | /flask_auth/server/app/models.py | 8fa68ea8e96f2602399f043cc4f0ba4a702ce8b3 | [] | no_license | matbloch/flask_examples | b0ab133e9f16828865c4eff6a2246f618ea93636 | 2ba8e8d3e921cce3c7f7f722039a11c5c38f61be | refs/heads/master | 2020-03-19T10:36:19.658817 | 2018-10-26T21:48:27 | 2018-10-26T21:48:27 | 136,385,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,359 | py | from app import db
from passlib.hash import pbkdf2_sha256 as sha256
class RoleModel(db.Model):
__tablename__ = 'roles'
id = db.Column(db.Integer(), primary_key=True)
name = db.Column(db.String(80), unique=True)
description = db.Column(db.String(255))
def __init__(self, name, description):
self.name = name
self.description = description
@classmethod
def find_by_name(cls, name):
return cls.query.filter_by(name=name).first()
@classmethod
def find_by_id(cls, id):
return cls.query.filter_by(id=id).first()
def save_to_db(self):
db.session.add(self)
db.session.commit()
roles_users = db.Table('roles_users',
db.Column('user_id', db.Integer(), db.ForeignKey('users.id')),
db.Column('role_id', db.Integer(), db.ForeignKey('roles.id')))
class UserModel(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
password = db.Column(db.String(255), nullable=False)
active = db.Column(db.Boolean())
confirmed_at = db.Column(db.DateTime())
last_login_at = db.Column(db.DateTime())
current_login_at = db.Column(db.DateTime())
last_login_ip = db.Column(db.String(255))
current_login_ip = db.Column(db.String(255))
login_count = db.Column(db.Integer)
# role references
roles = db.relationship('RoleModel', secondary=roles_users,
backref=db.backref('users', lazy='dynamic'))
def save_to_db(self):
db.session.add(self)
db.session.commit()
def __repr__(self):
return '<models.UserModel[username=%s]>' % self.username
def remove_role(self, role):
self.roles.remove(role)
def add_role(self, role):
self.roles.append(role)
def add_roles(self, roles):
for role in roles:
self.add_role(role)
def get_roles(self):
for role in self.roles:
yield role
@classmethod
def find_by_id(cls, id):
return cls.query.filter_by(id=id).first()
@classmethod
def find_by_username(cls, username):
return cls.query.filter_by(username=username).first()
@classmethod
def return_all(cls):
def to_json(x):
return {
'username': x.username,
'password': x.password
}
return {'users': list(map(lambda x: to_json(x), UserModel.query.all()))}
@classmethod
def delete_all(cls):
try:
num_rows_deleted = db.session.query(cls).delete()
db.session.commit()
return {'message': '{} row(s) deleted'.format(num_rows_deleted)}
except:
return {'message': 'Something went wrong'}
@staticmethod
def generate_hash(password):
return sha256.hash(password)
@staticmethod
def verify_hash(password, hash):
return sha256.verify(password, hash)
class RevokedTokenModel(db.Model):
__tablename__ = 'revoked_tokens'
id = db.Column(db.Integer, primary_key=True)
jti = db.Column(db.String(120))
def add(self):
db.session.add(self)
db.session.commit()
@classmethod
def is_jti_blacklisted(cls, jti):
query = cls.query.filter_by(jti=jti).first()
return bool(query) | [
"matbloch@student.ethz.ch"
] | matbloch@student.ethz.ch |
2cf68d92ced07fa2c61c9a2414e18779e5d3956a | c6194e1ee9a9a4ce7ffccef0fa07ed9535aa73e8 | /src/EWSLibrary/pageobjects/flows.py | 6c49ef22f628eeb0711ababb50ae717870094c9e | [] | no_license | chrisblythe812/AutomationFramework | 702e9601520a7a36e8859e9d3432d4793bc9520f | fee2bd94aa03aba12e35831ec4bf03410b1c4537 | refs/heads/master | 2016-09-05T11:27:40.621125 | 2012-05-09T19:08:51 | 2012-05-09T19:08:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,257 | py | from robot.api import logger
from ews_element_finder import EWSElementFinder
import dummy_classes as DC
from object_repository import OR
from ews_page_element import ValidationFailedError
class Flows(EWSElementFinder):
'''for multi step function calls that basically make stuff easier.'''
def euh_check_last_clockout_hour(self, expected_time):
'''finds the last clockout hour label and verifies that its text equals 'expected_time'
for use with the clock-in pop-up form'''
last_clockouthour_locator = "css=[id$='OutHour']"
hour = self._element_find(last_clockouthour_locator,False,True)[-1]
self._compare_time_values(expected_time, hour.text, "last clockout hour")
def euh_check_last_clockin_hour(self, expected_time):
'''finds the last clock_in hour label and verifies that its text equals 'expected_time'
for use with the clock-in pop-up form'''
last_clockinhour_locator = "css=[id$='InHour']"
hour = self._element_find(last_clockinhour_locator, False,True)[-1]
self._compare_time_values(expected_time, hour.text, "last clockin hour")
def euh_check_last_clockin_reason(self, expected_reason):
'''finds the last clockin reason text field for the clock_in pop_up box and
verifies if it displays 'expected_reason' '''
last_clockin_reason_locator = "css=[id$='InReason']"
reason = self._element_find(last_clockin_reason_locator, False, True)[-1]
if expected_reason != reason.text:
raise ValidationFailedError("last clockin reason was %s but expected %s" % (reason.text,expected_reason))
def euh_EWS_Logon(self, browser, url, user_name, pwd, positive_test=True):
'''perfoms Login functionality, by opening browser, navigating to URL, and trying to login
'''
self.open_browser(url, browser)
self.wait_until_page_contains_element(OR["login_username"])
self.input_text(OR["login_username"], user_name)
self.input_text(OR["login_password"], pwd)
self.click_element(OR["login_button"])
#now verify we are on the correct page
if not positive_test:
self.page_should_contain_element(OR["login_banner"])
else:
#this is generally an error msg saying user already logged in
if self._quick_check(4,self._is_element_present,OR["login_info"]):
logger.warn("Error msg saying %s trying to continue " % self._get_text(OR["login_info"]))
self.click_element(OR["login_button"])
self._wait_for_loading_div_to_clear()
self.page_should_contain_element(OR["mainpage_banner"])
def euh_EWS_Logoff(self,confirmation_button="Yes",positive_test=True):
self.click_element(OR["logoff_link"])
self.euh_click_button(button_name=confirmation_button,wait_for_loading=False)
if positive_test:
self.page_should_contain_element(OR["login_banner"])
else:
self.page_should_contain_element(OR["mainpage_banner"])
def euh_navigate_to_specific_tab(self, module_name, sub_module_name, tab_name=None, index=0):
'''TODO: index is not yet implemented'''
self._wait_for_loading_div_to_clear()
self._info("about to click module %s" % (module_name))
module = self._get_euh_top_menu_button(module_name)
self._wait_for_loading_div_to_clear()
if not self._wait_and_click(module):
#sometimes we are too fast, so let's just try it again.
self._info("Couldn't click % module button, trying again" % (module_name))
module = self._get_euh_top_menu_button(module_name)
self._wait_and_click(module)
self._info("about to click sub module %s" % (sub_module_name))
self._wait_for_loading_div_to_clear()
sub_module = self._get_euh_top_menu_button(sub_module_name)
self._wait_for_loading_div_to_clear()
self._wait_and_click(sub_module)
self._wait_for_loading_div_to_clear()
if tab_name:
self._info("about to click tab %s" % (tab_name))
self.euh_click_tab(sub_module_name,tab_name)
| [
"jonsunggyu@gmail.com"
] | jonsunggyu@gmail.com |
712f3222ee20755f9d2a16ab07ce19e0f6cb7959 | dd8125d9da04f6c51665c876dc50a376991be609 | /project/app/urls.py | bb5796a7c2d0af6186970fba5bfe4201ab473e5d | [] | no_license | harshal1998/djangoImage | f3d69e1721ebe7f047928098e3fc0121b13ed767 | cde73c2df6b85fd106fe2f59068f35d4b240913a | refs/heads/master | 2023-05-30T23:14:56.736643 | 2021-06-22T05:37:07 | 2021-06-22T05:37:07 | 379,150,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from . import views
urlpatterns = [
path('', views.a, name='home'),
path('display', views.b, name='display'),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
| [
"harshalwankhede1998@gmail.com"
] | harshalwankhede1998@gmail.com |
b604f6d9e3ff0b739c39f52912637b97664d1f5e | 0a44d84769a746e788d2fdb0798eaf60f01a7e1e | /chase_3.x.py | fb92cd8ab5051ca0c0b2154c9e8c1855a894418f | [] | no_license | mark92/python_game_chase | 8783549479e4b4c0735cc3377a4de8459b241f66 | cea94ce3508f834cfdbfeb2f37b76abc575ebbe7 | refs/heads/master | 2016-08-05T03:42:26.153713 | 2016-01-06T21:11:22 | 2016-01-06T21:11:22 | 20,497,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,940 | py | #!/usr/bin/env python
from curses import flash,beep,noecho,initscr,curs_set,newwin,endwin,KEY_RIGHT,KEY_LEFT,KEY_DOWN,KEY_UP
import time
import random
import socket
import math
import os
import urllib.request
#Pasirinkimas prisijungti arba paleisti serveri
option = input("[1] Host\n[2] Connect\n[3] Reconnect\n[4] Local\n")
#Vienetas(1) reiskia serveris, dvejetas(2) reiskia klientas, trejetas(3) reiskia persijungima ir bus pakeistas 2, jei keturi(4) ijungiamas lokalus rezimas
if option == '1':
ipFinder = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
ipFinder.connect(("google.com", 80))
host = ipFinder.getsockname()[0] # IP
servPort = 12345
serverSock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
extHost = urllib.request.urlopen('http://ip.42.pl/raw').read().strip().decode('utf-8')
print ('Server started! Local IP: ' + host + " External IP: " + extHost)
print ('Waiting for clients...')
serverSock.bind((host, servPort))
serverSock.listen(5)
clientSock, addr = serverSock.accept()
print ('Got connection from', addr)
elif option == '2' or option == '3':
serverSock = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
if option == '3':
try:
file = open(os.path.abspath(__file__).replace('chase.py','',1) + 'chaseLast','r')
host = file.readline()
file.close()
option = '2'
except IOError:
print ("There is no last connection")
exit()
else:
host = input('Enter IP of the host: ')
file = open(os.path.abspath(__file__).replace('chase.py','',1) + 'chaseLast','w')
file.write(host)
file.close()
port = 12345
print ('Connecting to: ', host, port)
serverSock.connect((host, port))
elif option != '4': print("\nBad input! bb"); exit()
#Serveris sugeneruoja kas bus kuris zaidejas ir issiuncia klientui jo player numeri(1 ctrl, 2 esc), arba lokaliam rezime padaro player 0
if option == '1':
player = int(round(random.randint(90,200)/100.0))
playerClient = 3 - player #SMART!
clientSock.send(str(playerClient).encode('utf-8'))
elif option == '2':
player = int(serverSock.recv(1).decode('utf-8'))
else:
player = 0
#Serveris sugeneruoja skaiciu kuris bus determenistishkos funkcijos raktu(ziureti def obstacleGenerator(seed)) ir issiuncia klientui
if option == '1' or option == '4':
seed = random.randint(1,500)
if player != 0: clientSock.send(str(seed).encode('utf-8'))
else:
seed = int(serverSock.recv(3).decode('utf-8'))
#Zaidejui pasakoma ka jis valdys ir kokiais mygtukais
if player == 1:
print("\nYou are CTRL! W,S,q - quit")
time.sleep(3)
elif player == 2:
print("\nYou are ESC! /\,\/,q - quit")
time.sleep(3)
initscr()
noecho()
curs_set(0)
win = newwin(20,70,0,0)
win.keypad(1)
win.nodelay(1)
win.border('|','|','-','-','+','+','+','+')
posBuf = '' #Saugomi gautos is kito zaidejo koordinates
pos1 = [8,14] #Ctrl pradzios koordinates
ctrl1 = " ____ "
ctrl2 = "| |"
ctrl3 = "|Ctrl|"
ctrl4 = "|____|"
pos2 = [8,40] #Esc pradzios koordinates
esc1 = " ____ "
esc2 = "| |"
esc3 = "|Esc |"
esc4 = "|____|"
chargeBar = '' #parodo veikeju suolio i prieki intervala grafishkai
startTime = time.time() #registruojamas laikas kad zinoti kada paleisti daugiau barjeru
moveInterval = 3 #sekundziu skaicius, kaip daznai i prieki juda veikejai
lastMove = startTime + 10 #sudaro 10 sekundziu perioda kai veikejai nejuda i prieki zaidimo pradzioje
numOfObstacles = 10 #maksimalus kliuciu kiekis
numOfDeadObstacles = 0 #skaitiklis tam kad zinoti kiek jau kliuciu buvo sugeneruota, ribojasi numOfDeadObstaclesLimit(ziureti obstacleGenerator(seed))
numOfDeadObstaclesLimit = 3000 #limitas, parodo kiek kliuciu nesikartos
future = [] #masyvas kuris laikys sugeneruotas kliuciu koordinates
#Determenistishka funkcija kuri naudojama duomenu srauto tarip serverio ir kliento sumazinimui, reikalingas tik vienas skaicius - sekla
def obstacleGenerator(seed):
for i in range(0,numOfDeadObstaclesLimit):
future.insert(0,int(((math.cos(i)*100)*seed))%14 +1) #sugeneruojami skaiciai kuri butu intervale (1,LAUKO_DYDIS(20)-2-FIGUROS_ILGIS(4))
#Paleidziamas generatorius
obstacleGenerator(seed)
#Metodas kuris pabaigia programos vykdyma, uzdaro portus, atjungia _curses aplinka, jeigu gaunamas signalas nuo kito kliento kad zaidimas jau baigesi
#tai zaidimas pereina i lokalu rezima ir pabaigia paskutini barieru prasukima ir tada pabaigia zaidima cia
def results(winResult):
global option
global player
if winResult != 'end':
if option == '1':
clientSock.send('en'.encode('utf-8'))
clientSock.close()
serverSock.close()
elif option == '2':
serverSock.send('en'.encode('utf-8'))
serverSock.close()
time.sleep(2)
endwin()
if winResult == 'first':
print ("Player Ctrl wins!")
elif winResult == 'second':
print ("Player Esc wins!")
elif winResult == 'quit':
print ("The player has quit")
exit()
elif winResult == 'end':
if option == '1':
clientSock.close()
serverSock.close()
elif option == '2':
serverSock.close()
time.sleep(2)
endwin()
option = '4'
player = 0
#Trina Ctrl pedsakus, animacijos dalis
def erase1():
win.addstr(pos1[0]+0,pos1[1]," ")
win.addstr(pos1[0]+1,pos1[1]," ")
win.addstr(pos1[0]+2,pos1[1]," ")
win.addstr(pos1[0]+3,pos1[1]," ")
#Paiso nauja Ctrl pozicija, animacijos dalis
def draw1():
win.addstr(pos1[0]+0,pos1[1],ctrl1)
win.addstr(pos1[0]+1,pos1[1],ctrl2)
win.addstr(pos1[0]+2,pos1[1],ctrl3)
win.addstr(pos1[0]+3,pos1[1],ctrl4)
#Trina Esc pedsakus, animacijos dalis
def erase2():
win.addstr(pos2[0]+0,pos2[1]," ")
win.addstr(pos2[0]+1,pos2[1]," ")
win.addstr(pos2[0]+2,pos2[1]," ")
win.addstr(pos2[0]+3,pos2[1]," ")
#Paiso nauja Esc pozicija, animacijos dalis
def draw2():
win.addstr(pos2[0]+0,pos2[1],esc1)
win.addstr(pos2[0]+1,pos2[1],esc2)
win.addstr(pos2[0]+2,pos2[1],esc3)
win.addstr(pos2[0]+3,pos2[1],esc4)
#Kliuciu klase kur saugomi dinaminiai duomenys apie jas(veikejams nereikia nes ju tik 2, o barjeru gali buti daugiau nei 10)
class Barier:
lifespan = 0 #Kiek kliuties objektas jau padare zingsniu
posBarier = 0 #Klities padetis dabar
elapsed = 0.0 #Laikas praejes nuo buvusio zingsnio(trivialus atributas)
timeRedraw = 0 #Laikas kada buvo darytas praeitas zingsnis
speed = 0 #Kliuties greitis, kiek 1sec/speed zingsniu padaroma i sekunde(neobjektyvus atributas del sleep()'u)
#Kliuties perpesimas su patikrinimu ar reikia pastumti veikeja, ir ar kliutis isstums veikeja is zaidimo, ir ar susidurs veikejai, animacijos dalis
def moveBarier(self):
win.addch(self.posBarier[0]+0,self.posBarier[1],' ')
win.addch(self.posBarier[0]+1,self.posBarier[1],' ')
win.addch(self.posBarier[0]+2,self.posBarier[1],' ')
win.addch(self.posBarier[0]+3,self.posBarier[1],' ')
self.posBarier[1] -= 1
for i in range(0,3):
if self.posBarier[0]+i in range(pos1[0]-1,pos1[0]+4) and self.posBarier[1] == pos1[1]+5:
if checkLoss1(): beep(); flash(); print ("Ctrl has lost esc!"); beep(); results('second')
erase1()
pos1[1] -= 1
draw1()
if self.posBarier[0]+i in range(pos2[0]-1,pos2[0]+4) and self.posBarier[1] == pos2[1]+5:
if checkLoss2(): beep(); flash(); print ("Esc forgot the right way!"); beep(); results('first')
if checkWin1(): beep(); flash(); print ("Esc got too brave!"); beep(); results('first')
erase2()
pos2[1] -= 1
draw2()
win.addch(self.posBarier[0]+0,self.posBarier[1],'|')
win.addch(self.posBarier[0]+1,self.posBarier[1],'|')
win.addch(self.posBarier[0]+2,self.posBarier[1],'|')
win.addch(self.posBarier[0]+3,self.posBarier[1],'|')
#Metodas kvieciamas norint saveikauti su kliuties objektu, patikrina ar kliutis gali judeti, ar dar gali gyventi, kiek dar kliuciu galima sugeneruoti
def calcBarier(self):
global future
global numOfDeadObstacles
global numOfDeadObstaclesLimit
self.elapsed = time.time() - self.timeRedraw
if self.elapsed > self.speed :
self.elapsed = 0.0
self.timeRedraw = time.time()
if self.lifespan < 68: #68=70(lauko ilgis)-2
self.moveBarier()
self.lifespan += 1
if self.lifespan >= 68:
self.lifespan = 0
self.posBarier = [future[numOfDeadObstacles],68]
numOfDeadObstacles += 1
self.speed = (future[numOfDeadObstacles]*2)/100.0
if numOfDeadObstacles >= numOfDeadObstaclesLimit:
numOfDeadObstacles = 0
obstacles = [] #Masyvas kliutims laikyti
#Pirma kliuciu generacija
for i in range(0,numOfObstacles):
obstacles.insert(0,Barier())
for i in range(0,numOfObstacles):
obstacles[i].posBarier = [future[i*5],68]
for i in range(0,numOfObstacles):
obstacles[i].speed = (future[i*5]*2)/100.0
#Patikrinimas ar Ctrl gali judeti i desine
def checkRight1():
for i in range(0,4):
if win.inch(pos1[0]+i,pos1[1]+6) == ord('|'):
return False
return True
#Patikrinimas ar Ctrl gali judeti i kaire(trivialus metodas, naudojamas testavime)
def checkLeft1():
for i in range(0,4):
if win.inch(pos1[0]+i,pos1[1]-1) != ord(' '):
return False
return True
#Patikrinimas ar Ctrl gali judeti i virsu
def checkUp1():
for i in range(0,5):
if win.inch(pos1[0]-1,pos1[1]+i) != ord(' '):
return False
return True
#Patikrinimas ar Ctrl gali judeti zemyn
def checkDown1():
for i in range(0,5):
if win.inch(pos1[0]+4,pos1[1]+i) != ord(' '):
return False
return True
#Patikrinimas ar Esc gali judeti i desine
def checkRight2():
for i in range(0,4):
if win.inch(pos2[0]+i,pos2[1]+6) == ord('|'):
return False
return True
#Patikrinimas ar Esc gali judeti i kaire(trivialus metodas, naudojamas testavime)
def checkLeft2():
for i in range(0,4):
if win.inch(pos2[0]+i,pos2[1]-1) != ord(' '):
return False
return True
#Patikrinimas ar Esc gali judeti i virsu
def checkUp2():
for i in range(0,5):
if win.inch(pos2[0]-1,pos2[1]+i) != ord(' '):
return False
return True
#Patikrinimas ar Esc gali judeti zemyn
def checkDown2():
for i in range(0,5):
if win.inch(pos2[0]+4,pos2[1]+i) != ord(' '):
return False
return True
#Patikrinimas ar Ctrl pateko uz lauko ribu
def checkLoss1():
if (pos1[1] - 1) == 0:
return True
return False
#Patikrinimas ar Esc pateko uz lauko ribu(kairiuju)
def checkLoss2():
if (pos2[1] - 1) == 0:
return True
return False
#Patikrinimas ar Ctrl liecia Esc po judejimo i prieki(apgalvota mechanikos dalis kad Esc turetu paskutini shansa pabegti)
def checkWin1():
if pos1[0] in range(pos2[0],pos2[0]+3) and pos1[1]+5 == pos2[1]:
return True
return False
#Patikrinimas ar Esc liecia desiniaja lauko dali - laimi
def checkWin2():
if pos2[1]+4 == 60:
return True
return False
#Isankstinis veikeju piesimas
draw1()
draw2()
key = '' #Laiko klavishu paspaudimus
#Kol ne bus paspaustas 'q' arba neivyks viena is laimejimo/pralaimejimo salygu kartosis sis ciklas, faktiskai main metodas ir vykdomo kodo pradzia
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PRADZIA~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
while key != ord('q'):
win.refresh()
#Periodinis kliuciu paisimas su kliuciu kiekio didejimu
for i in range(0,numOfObstacles):
obstacles[i].calcBarier()
if i > (int(round((time.time() - startTime)))/5.0) - 1:
break
#Laimejimo salygu tikrinimas, veikeju judejimas i prieki
if time.time() - lastMove > moveInterval:
if checkWin1(): beep(); flash(); print ("Ctrl has caught esc!"); beep(); results('first')
if checkWin2(): beep(); flash(); print ("Esc has escaped ctrl!"); beep(); results('second')
if checkRight1():
erase1()
pos1[1] += 1
draw1()
if checkRight2():
erase2()
pos2[1] += 1
draw2()
lastMove = time.time()
win.addstr(19,35," ")
#Jeigu neivyksta judejimas, grafishkai atvaizduojama kada jis ivyks
else:
elapsed = time.time() - lastMove
if elapsed < 0.5:
chargeBar = '. '
elif elapsed < 1:
chargeBar = '.. '
elif elapsed < 1.5:
chargeBar = '..x '
elif elapsed < 2:
chargeBar = '..xx '
elif elapsed < 2.5:
chargeBar = '..xxX '
elif elapsed < 3:
chargeBar = '..xxXX'
win.addstr(19,27,"Charge: " + chargeBar)
key = win.getch()
#Zaideju inputo analizavimas, priklauso nuo tuo ar jie 1 ar 2 zaidejas, ir judejimo registravimas-issiuntimas klientui/serveriui
if key == ord('w') and (player == 1 or player == 0) and checkUp1():
erase1()
pos1[0] -= 1
draw1()
if option == '1':
clientSock.send(str(pos1[0]).encode('utf-8'))
elif option == '2': serverSock.send(str(pos1[0]).encode('utf-8'))
elif key == ord('s') and (player == 1 or player == 0) and checkDown1():
erase1()
pos1[0] += 1
draw1()
if option == '1':
clientSock.send(str(pos1[0]).encode('utf-8'))
elif option == '2': serverSock.send(str(pos1[0]).encode('utf-8'))
elif key == KEY_UP and (player == 2 or player == 0) and checkUp2():
erase2()
pos2[0] -= 1
draw2()
if option == '1':
clientSock.send(str(pos2[0]).encode('utf-8'))
elif option == '2': serverSock.send(str(pos2[0]).encode('utf-8'))
elif key == KEY_DOWN and (player == 2 or player == 0) and checkDown2():
erase2()
pos2[0] += 1
draw2()
if option == '1':
clientSock.send(str(pos2[0]).encode('utf-8'))
elif option == '2': serverSock.send(str(pos2[0]).encode('utf-8'))
#Jeigu nera ivesties, siunciami tusti pranesimai kad kitame gale nebutu laukimo ir uzsiciklintos tylos
else:
if option == '1':
clientSock.send(" ".encode('utf-8'))
elif option == '2':
serverSock.send(" ".encode('utf-8'))
#Gaudoma kito zaidejo ivestis, jeigu gautas pranesimas "qu" skaitoma kad kitas zaidejas paliko zaidima
if player == 1:
if option == '1':
posBuf = clientSock.recv(2).decode('utf-8')
if posBuf != " " and posBuf != " " and posBuf and posBuf != "qu" and posBuf != "en" and int(posBuf) != 0:
erase2()
pos2[0] = int(posBuf)
draw2()
else:
posBuf = serverSock.recv(2).decode('utf-8')
if posBuf != " " and posBuf != " " and posBuf and posBuf != "qu" and posBuf != "en" and int(posBuf) != 0:
erase2()
pos2[0] = int(posBuf)
draw2()
elif player == 2:
if option == '1':
posBuf = clientSock.recv(2).decode('utf-8')
if posBuf != " " and posBuf != " " and posBuf and posBuf != "qu" and posBuf != "en" and int(posBuf) != 0:
erase1()
pos1[0] = int(posBuf)
draw1()
else:
posBuf = serverSock.recv(2).decode('utf-8')
if posBuf != " " and posBuf != " " and posBuf and posBuf != "qu" and posBuf != "en" and int(posBuf) != 0:
erase1()
pos1[0] = int(posBuf)
draw1()
#Zaidimo palikimo registracija ir isejimas
if option != '4' and posBuf == "qu":
print ("The player has quit.")
time.sleep(2)
results('quit')
else:
#Jei zaidimas jau pasibaige kitam zaidejui apdorojams sis signalas
if posBuf == "en":
results("end")
posBuf=''
time.sleep(0.01) #laiko pauze :)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PAGRINDINIO CIKLO PABAIGA~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
endwin()
#Isejimo atveju pranesimas kitam zaidejui apie isejima ir Kultura
if option == '1':
clientSock.send("qu".encode('utf-8'))
time.sleep(1)
clientSock.close()
serverSock.close()
elif option == '2':
serverSock.send("qu".encode('utf-8'))
time.sleep(1)
serverSock.close()
#MADE BY MARK GANUSEVICH AND ERIK KISEL, 2013
#UPDATED TO PYTHON 3.X BY MARK GANUSEVICH, 2016
| [
"0tollerance@gmail.com"
] | 0tollerance@gmail.com |
b069b5f920584d32ad73de83eeb0fdeb9f5964d2 | 13c8fd9bb4ea5b04861bad627eed48c22367e69d | /src/tabbar/conf.py | d130bfbabdad909df4d2fbcb5f3878a29ed2a91e | [] | no_license | duyhenryer/i3wm-config | 556852dd5e03535dac783ff0caac287b603d62ea | 075bc9540b1b7a7581661f262c4308246275e255 | refs/heads/master | 2020-06-26T07:13:46.345504 | 2017-10-02T18:10:37 | 2017-10-02T18:10:37 | 97,006,683 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | #!/usr/bin/env python3
# MPD config
MPD_HOST = "XHv1OqE6Yy1oZbF5@127.0.0.1"
MPD_PORT = "2856"
MPD_FORMAT = "%title% - %artist%"
# HDDTEMP config
HDDTEMP_HOST = "127.0.0.1"
HDDTEMP_PORT = "7634"
# Net config
NETWORK_VPN_DIR = "/proc/sys/net/ipv4/conf/tun0"
# Sensor config
CPU_SENSOR_1 = '/sys/devices/platform/asus-nb-wmi/hwmon/hwmon1/temp1_input'
CPU_SENSOR_2 = '/sys/devices/platform/asus-nb-wmi/hwmon/hwmon2/temp1_input'
# Clock config
TIME_FORMAT = "%y:%m:%d %H:%M"
TIME_FORMAT_SHORT = "%H:%M"
# CPU / Disk / Network IO wait time
IO_INTERVAL = 1
# Check updates commands
PKG_COUNT_CMD = "pacman -Qq"
PKG_CHECK_UPDATE_CMD = "checkupdates"
PKG_CHECK_ORPHANED_CMD = "pacman -Qqdt"
# Color config
COLOR_DEF = {
'black': '#FFFFFF',
'white': '#ABB2BF',
'red': '#E06C75',
'green': '#98C379',
'yellow': '#D19A66',
'blue': '#61AFEF',
'magenta': '#C678DD',
'cyan': '#56B6C2',
'gray': '#828997',
'dark_gray': '#555555'
}
COLOR = {
'battery': COLOR_DEF['red'],
'check_updates': COLOR_DEF['magenta'],
'clock': COLOR_DEF['cyan'],
'cpu_avg': COLOR_DEF['yellow'],
'cpu_percent': COLOR_DEF['yellow'],
'cpu_temp': COLOR_DEF['red'],
'disk_io': COLOR_DEF['blue'],
'gpu_temp': COLOR_DEF['red'],
'hdd_temp': COLOR_DEF['red'],
'memory': COLOR_DEF['green'],
'mpd': COLOR_DEF['gray'],
'network': COLOR_DEF['magenta'],
'network_io': COLOR_DEF['magenta'],
'swap': COLOR_DEF['green'],
'system_info': COLOR_DEF['white'],
'volume': COLOR_DEF['blue'],
'weather': COLOR_DEF['yellow'],
'xkb_indicator': {
'active': COLOR_DEF['yellow'],
'inactive': COLOR_DEF['dark_gray']
},
'separator': COLOR_DEF['dark_gray'],
}
EMBLEM = {
'battery': {
'normal': '\U0001F50B',
'plugged': '\U0001F50C'
},
'clock': {
'full': '\u23fa',
'one_quarter': '\u25d4',
'two_quarter': '\u25d1',
'three_quarter': '\u25d5',
'first_quarter': '\u25f7',
'second_quarter': '\u25f6',
'third_quarter': '\u25f5',
'fourth_quarter': '\u25f4',
'first_triangle': '\u25e5',
'second_triangle': '\u25e2',
'third_triangle': '\u25e3',
'fourth_triangle': '\u25e4',
},
'indicator': {
'numlock': '[1]',
'capslock': '[A]',
},
'music': {
'default': '\U0000266B',
'playing': '\u25B6',
'paused': '\u23F8',
},
'network': {
'wireless': '\U0001F4F6',
'wired': '\u2693',
'protected': '\U0001F512',
'unknown': '\U0001F4F6'
},
'volume': {
'high': '\U0001F50A',
'medium': '\U0001F509',
'low': '\U0001F508',
'muted': '\U0001F507',
},
'system': {
'computer': '\U0001F4BB',
'cpu': '\u25A3',
'disk': '\U0001F5AA',
'memory': '\u25E8',
'network': '\U0001F4F6',
'package': '\U0001F4D6',
'indicator': '\u2325',
},
'misc': {
'arrow_up': '\u25B2',
'arrow_down': '\u25BC',
'temperature': '\U0001F375',
'up-to-date': '\u2713',
'separator': '/',
}
}
| [
"duyhenry250897@gmail.com"
] | duyhenry250897@gmail.com |
9ca1767458317f6ea1c5586a7e19dc08ccb9ec10 | 753f40c6f67dd1f9fdc9e1d20429475effb41328 | /DataScienceFromScratch/LinearAlgebra/Matrices/MakeAMatrix.py | ad1a4b369663b0fad67c31b9a762b29e5bf1178e | [] | no_license | skonienczwy/DataScience | 43314c4c2f7fe24306c7e29e866ffc8da2ebfcf0 | 55af32139fd8d962becd71e6174c32486831153d | refs/heads/master | 2022-12-16T05:44:53.434064 | 2020-09-10T20:05:31 | 2020-09-10T20:05:31 | 288,776,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from typing import List,Callable
Matrix = List[List[float]]
def make_matrix(num_rows: int,
num_cols: int,
entry_fn: Callable[[int,int],float]) -> Matrix:
'''Return a num_rows x num_cols matrix
whose (i,j)-th entry is entry_fn(i,j
'''
#given i , create a list [entry_fn(i,0),...] create one list for each i
return [[entry_fn(i , j) for j in range(num_cols)] for i in range(num_rows)]
def identity_matrix (n: int) -> Matrix:
'''Returns the nxn identify matrix '''
return make_matrix(n,n,lambda i ,j: 1 if i==j else 0)
print(identity_matrix(5)) | [
"skonienczwy@hotmail.com"
] | skonienczwy@hotmail.com |
0c7e08fb553b03c40e35d8862537c388fe27ad46 | 0e25329bb101eb7280a34f650f9bd66ed002bfc8 | /vendor/sat-solvers/simplesat/repository.py | e544bdb4aa6f264f1cf16b9c2b4d754e4b14d0f6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/enstaller | 2a2d433a3b83bcf9b4e3eaad59d952c531f36566 | 9c9f1a7ce58358b89352f4d82b15f51fbbdffe82 | refs/heads/master | 2023-08-08T02:30:26.990190 | 2016-01-22T17:51:35 | 2016-01-22T17:51:35 | 17,997,072 | 3 | 4 | null | 2017-01-13T19:22:10 | 2014-03-21T23:03:58 | Python | UTF-8 | Python | false | false | 3,337 | py | from __future__ import absolute_import
import bisect
import collections
import operator
import six
from .errors import NoPackageFound
class Repository(object):
"""
A Repository is a set of packages, and knows about which package it
contains.
It also supports the iterator protocol. Iteration is guaranteed to be
deterministic and independent of the order in which packages have been
added.
"""
def __init__(self, packages=None):
self._name_to_packages = collections.defaultdict(list)
# Sorted list of keys in self._name_to_packages, to keep iteration
# over a repository reproducible
self._names = []
packages = packages or []
for package in packages:
self.add_package(package)
def __len__(self):
return sum(
len(packages) for packages in six.itervalues(self._name_to_packages)
)
def __iter__(self):
for name in self._names:
for package in self._name_to_packages[name]:
yield package
def add_package(self, package_metadata):
""" Add the given package to this repository.
Parameters
----------
package : PackageMetadata
The package metadata to add. May be a subclass of PackageMetadata.
Note
----
If the same package is added multiple times to a repository, every copy
will be available when calling find_package or when iterating.
"""
if package_metadata.name not in self._name_to_packages:
bisect.insort(self._names, package_metadata.name)
self._name_to_packages[package_metadata.name].append(package_metadata)
# Fixme: this should not be that costly as long as we don't have
# many versions for a given package.
self._name_to_packages[package_metadata.name].sort(
key=operator.attrgetter("version")
)
def find_package(self, name, version):
"""Search for the first match of a package with the given name and
version.
Parameters
----------
name : str
The package name to look for.
version : EnpkgVersion
The version to look for.
Returns
-------
package : PackageMetadata
The corresponding metadata.
"""
candidates = self._name_to_packages[name]
for candidate in candidates:
if candidate.version == version:
return candidate
raise NoPackageFound(
"Package '{0}-{1}' not found".format(name, str(version))
)
def find_packages(self, name):
""" Returns an iterable of package metadata with the given name, sorted
from lowest to highest version.
Parameters
----------
name : str
The package's name
Returns
-------
packages : iterable
Iterable of PackageMetadata instances (order is from lower to
higher version)
"""
return tuple(self._name_to_packages[name])
def update(self, iterable):
""" Add the packages from the given iterable into this repository.
Parameters
----------
"""
for package in iterable:
self.add_package(package)
| [
"cournape@gmail.com"
] | cournape@gmail.com |
ccd823f0630e1eb2b2b4506906845abdab2321ef | 26c4d3ba94fa4b77111a193a9d88f485b6434dd7 | /tengri/tengri.py | 59bbcfa5602b5e8f5ce7cb431f5560e89fa1fa94 | [
"BSD-2-Clause"
] | permissive | leopepe/tengri | b82a6bbd76b56ee319559f95adcb4c0aa7a0c60a | 1083d3e0e508d423ac70ccc7a59501a63a18cd2a | refs/heads/master | 2020-05-20T00:32:57.974222 | 2015-09-18T13:39:15 | 2015-09-18T13:39:15 | 42,177,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | import boto3
class EC2Client:
def __init__(self):
""" Creates an EC2 client object
:return:
"""
self.ec2 = boto3.client('ec2')
def list_instances(self, exclude=[], state='Running'):
""" List all instances which key pair name is not on the exclude list
:param exclude: list of keynames to exclude, default is empty list
:return: instances list
:rtype: list
"""
reservations = self.ec2.describe_instances()['Reservations']
instances = []
for reservation in reservations:
# print(reservation['Instances'])
for instance in reservation['Instances']:
if instance['KeyName'] not in exclude:
instances.append(instance)
return instances
def stop_all(self, exclude=[]):
""" Stop all instances which key pair name is not on the exclude list
:return:
"""
for instance in self.list_instances(exclude=exclude):
# print(instance['InstanceId'])
if instance['State']['Name'] == 'running':
self.ec2.stop_all(InstanceIds=[instance['InstanceId']])
else:
print('Nothing to stop')
if __name__ == '__main__':
ec2 = EC2Client()
exclude_list = ['deployer_key', 'blabla_key']
# List instances excluding a key name
instances = ec2.list_instances(exclude=exclude_list)
# Do not exclude key name
instances = ec2.list_instances()
# Print Instance ids
for i in instances:
print(i['InstanceId'])
# Stop ONLY wanted instances
ec2.stop_all(exclude=exclude_list)
| [
"lpepefreitas@gmail.com"
] | lpepefreitas@gmail.com |
55ffb1398d3722cdd09ee648ed8739e556ef6b31 | 0b0d908493375ac616b06c81b31348271290203a | /server.py | 58d7937d9ac135299eddc6e2bf955ba328a292d9 | [] | no_license | wori0702/1- | 3d02c598afd0a7bb65bec46f8676518f5f22310a | 2e20a00c62f6ef6b2fbdf0f749ade9e9f9f7e727 | refs/heads/master | 2020-04-27T20:26:07.639952 | 2019-06-11T03:51:36 | 2019-06-11T03:51:36 | 174,657,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | import socket
import argparse
import os
import glob
def run_server(port=4000,file_dir='*'):
host = ''
with socket.socket(family=socket.AF_INET, type = socket.SOCK_STREAM) as s:
s.bind((host,port))
s.listen(1)
file_list_link = file_dir + "/*"
file_list=glob.glob(file_list_link)
for i in file_list:
print(i)
conn, addr = s.accept()
msg = conn.recv(1024)
file_name = msg.decode()
link = file_dir + "\\" + file_name
if link in file_list:
file_size= str(os.path.getsize(link))
conn.sendall(file_size.encode())
with open(link, 'rb')as f:
files = f.read(int(file_size))
conn.send(files)
else:
print("file no exist")
conn.close()
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Echo server -p port -d direct")
parser.add_argument('-p', help="port_number", required = True)
parser.add_argument('-d',help="file_dir", required = True)
args = parser.parse_args()
run_server(port=int(args.p),file_dir = args.d) | [
"noreply@github.com"
] | wori0702.noreply@github.com |
f2bfe28b7ac28b223882fa52c497abd85ab5296c | 960087b76640a24e6bb5eb8a9a0e5aeb6c68917b | /model/predMultiOD_GEML_log_single2multi.py | f85f7ef2cba22efd7bc90d651d020fbe2ca4808d | [] | no_license | 346644054/ODCRN | e14d0a1f2e2e4a9cb655cdd914b587beeaff37cf | 71c11cb1da156ad0809c4352e578a8b0586fdf83 | refs/heads/main | 2023-06-19T21:32:22.245910 | 2021-07-20T02:47:59 | 2021-07-20T02:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,402 | py | import sys
import os
import shutil
import math
import numpy as np
import pandas as pd
import scipy.sparse as ss
from datetime import datetime
import time
import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
from keras.callbacks import CSVLogger, EarlyStopping, ModelCheckpoint, LearningRateScheduler
from sklearn.preprocessing import normalize
import random
import Metrics
from Param import *
from GEML import *
from Param_GEML import *
import jpholiday
def getXSYS_single(allData, mode):
DAYS = pd.date_range(start=STARTDATE, end=ENDDATE, freq='1D')
df = pd.DataFrame()
df['DAYS'] = DAYS
df['DAYOFWEEK'] = DAYS.weekday
df = pd.get_dummies(df, columns=['DAYOFWEEK'])
df['ISHOLIDAY'] = df['DAYS'].apply(lambda x: int(jpholiday.is_holiday(x) | (x.weekday() >= 5)))
df = df.drop(columns=['DAYS'])
YD = df.values
TRAIN_NUM = int(allData.shape[0] * trainRatio)
XS, YS = [], []
if mode == 'TRAIN':
for i in range(TRAIN_NUM - TIMESTEP_OUT - TIMESTEP_IN + 1):
x = allData[i:i + TIMESTEP_IN, :, :]
y = allData[i + TIMESTEP_IN:i + TIMESTEP_IN + 1, :, :]
XS.append(x), YS.append(y)
YD = YD[TIMESTEP_IN:TRAIN_NUM - TIMESTEP_OUT + 1]
elif mode == 'TEST':
for i in range(TRAIN_NUM - TIMESTEP_IN, allData.shape[0] - TIMESTEP_OUT - TIMESTEP_IN + 1):
x = allData[i:i + TIMESTEP_IN, :, :]
y = allData[i + TIMESTEP_IN:i + TIMESTEP_IN + 1, :, :]
XS.append(x), YS.append(y)
YD = YD[TRAIN_NUM:]
XS, YS = np.array(XS), np.array(YS)
return XS, YS, YD
def getXSYS(allData, mode):
TRAIN_NUM = int(allData.shape[0] * trainRatio)
XS, YS = [], []
if mode == 'TRAIN':
for i in range(TRAIN_NUM - TIMESTEP_OUT - TIMESTEP_IN + 1):
x = allData[i:i + TIMESTEP_IN, :, :]
y = allData[i + TIMESTEP_IN:i + TIMESTEP_IN + TIMESTEP_OUT, :, :]
XS.append(x), YS.append(y)
elif mode == 'TEST':
for i in range(TRAIN_NUM - TIMESTEP_IN, allData.shape[0] - TIMESTEP_OUT - TIMESTEP_IN + 1):
x = allData[i:i + TIMESTEP_IN, :, :]
y = allData[i + TIMESTEP_IN:i + TIMESTEP_IN + TIMESTEP_OUT, :, :]
XS.append(x), YS.append(y)
XS, YS = np.array(XS), np.array(YS)
return XS, YS
def get_adj(data):
W_adj = np.load(ADJPATH)
print('W_adj = np.load(ADJPATH)###########################', W_adj.shape)
W_adj = normalize(W_adj, norm='l1')
W_adj[range(W_adj.shape[0]), range(W_adj.shape[1])] += 1
W_adj = np.array([W_adj for i in range(TIMESTEP_IN)])
W_adj = np.array([W_adj for i in range(data.shape[0])])
print('data.shape', data.shape)
W_seman = (data + data.transpose((0, 1, 3, 2)))
for i in range(W_seman.shape[0]):
for j in range(W_seman.shape[1]):
W_seman[i, j] = normalize(W_seman[i, j], norm='l1')
W_seman[i, j][range(W_seman.shape[2]), range(W_seman.shape[3])] += 1
return W_adj, W_seman
def trainModel(name, mode, XS, YS, YD):
print('Model Training Started ...', time.ctime())
model = getModel()
W_adj, W_seman = get_adj(XS)
model.compile(loss=LOSS, optimizer=OPTIMIZER)
model.summary()
csv_logger = CSVLogger(PATH + '/' + name + '.log')
checkpointer = ModelCheckpoint(filepath=PATH + '/' + name + '.h5', verbose=1, save_best_only=True)
LR = LearningRateScheduler(lambda epoch: LEARN)
early_stopping = EarlyStopping(monitor='val_loss', patience=PATIENCE, verbose=1, mode='auto')
model.fit(x=[XS, W_adj, W_seman, YD], y=YS, batch_size=BATCHSIZE, epochs=EPOCH, verbose=1,
validation_split=SPLIT, shuffle=True, callbacks=[csv_logger, checkpointer, LR, early_stopping])
keras_score = model.evaluate(x=[XS, W_adj, W_seman, YD], y=YS, batch_size=1)
YS_pred = model.predict(x=[XS, W_adj, W_seman, YD], batch_size=1)
print('YS.shape, YS_pred.shape,', YS.shape, YS_pred.shape)
YS, YS_pred = YS * TRAIN_MAX, YS_pred * TRAIN_MAX
MSE, RMSE, MAE, MAPE = Metrics.evaluate(YS, YS_pred)
f = open(PATH + '/' + name + '_prediction_scores.txt', 'a')
f.write("%s, %s, Keras MSE, %.10e, %.10f\n" % (name, mode, keras_score, keras_score))
f.write("%s, %s, MSE, RMSE, MAE, MAPE, %.10f, %.10f, %.10f, %.10f\n" % (name, mode, MSE, RMSE, MAE, MAPE))
f.close()
print('*' * 40)
print("%s, %s, Keras MSE, %.10e, %.10f\n" % (name, mode, keras_score, keras_score))
print("%s, %s, MSE, RMSE, MAE, MAPE, %.10f, %.10f, %.10f, %.10f\n" % (name, mode, MSE, RMSE, MAE, MAPE))
print('Model Training Ended ...', time.ctime())
def testModel(name, mode, XS, YS, YS_multi, YD):
print('Model Testing Started ...', time.ctime())
W_adj, W_seman = get_adj(XS)
model = getModel()
model.compile(loss=LOSS, optimizer=OPTIMIZER)
model.load_weights(PATH + '/' + name + '.h5')
model.summary()
keras_score = model.evaluate(x=[XS, W_adj, W_seman, YD[:XS.shape[0]]], y=YS, batch_size=1)
XS_pred_multi, YS_pred_multi = [XS], []
for i in range(TIMESTEP_OUT):
tmp_torch = np.concatenate(XS_pred_multi, axis=1)[:, i:, :, :]
_, W_seman = get_adj(tmp_torch)
YS_pred = model.predict(x=[tmp_torch, W_adj, W_seman, YD[i:XS.shape[0] + i]], batch_size=1)
print('type(YS_pred), YS_pred.shape, XS_tmp_torch.shape', type(YS_pred), YS_pred.shape, tmp_torch.shape)
XS_pred_multi.append(YS_pred)
YS_pred_multi.append(YS_pred)
YS_pred_multi = np.concatenate(YS_pred_multi, axis=1)
print('YS_multi.shape, YS_pred_multi.shape,', YS_multi.shape, YS_pred_multi.shape)
YS_multi, YS_pred_multi = YS_multi * TRAIN_MAX, YS_pred_multi * TRAIN_MAX
np.save(PATH + '/' + MODELNAME + '_prediction.npy', YS_pred_multi)
np.save(PATH + '/' + MODELNAME + '_groundtruth.npy', YS_multi)
MSE, RMSE, MAE, MAPE = Metrics.evaluate(YS_multi, YS_pred_multi)
f = open(PATH + '/' + name + '_prediction_scores.txt', 'a')
f.write("%s, %s, Keras MSE, %.10e, %.10f\n" % (name, mode, keras_score, keras_score))
f.write("%s, %s, MSE, RMSE, MAE, MAPE, %.10f, %.10f, %.10f, %.10f\n" % (name, mode, MSE, RMSE, MAE, MAPE))
f.close()
print('*' * 40)
print("%s, %s, Keras MSE, %.10e, %.10f\n" % (name, mode, keras_score, keras_score))
print("%s, %s, MSE, RMSE, MAE, MAPE, %.10f, %.10f, %.10f, %.10f\n" % (name, mode, MSE, RMSE, MAE, MAPE))
print('Model Testing Ended ...', time.ctime())
################# Parameter Setting #######################
MODELNAME = 'GEML'
KEYWORD = 'predMultiOD_' + MODELNAME + '_' + datetime.now().strftime("%y%m%d%H%M") + '_log_single2multi'
PATH = FILEPATH + KEYWORD
BATCHSIZE = 1
os.environ['PYTHONHASHSEED'] = '0'
tf.set_random_seed(100)
np.random.seed(100)
random.seed(100)
###########################################################
param = sys.argv
if len(param) == 2:
GPU = param[-1]
else:
GPU = '3'
config = tf.ConfigProto(intra_op_parallelism_threads=0, inter_op_parallelism_threads=0)
config.gpu_options.allow_growth = True
config.gpu_options.visible_device_list = GPU
set_session(tf.Session(graph=tf.get_default_graph(), config=config))
###########################################################
def main():
if not os.path.exists(PATH):
os.makedirs(PATH)
currentPython = sys.argv[0]
shutil.copy2(currentPython, PATH)
shutil.copy2('Param.py', PATH)
shutil.copy2('Param_GEML.py', PATH)
shutil.copy2('GEML.py', PATH)
prov_day_data = ss.load_npz(ODPATH)
prov_day_data_dense = np.array(prov_day_data.todense()).reshape((-1, 47, 47))
data = prov_day_data_dense[STARTINDEX:ENDINDEX+1,:,:]
data = np.log(data + 1.0) / TRAIN_MAX
print('STARTDATE, ENDDATE', STARTDATE, ENDDATE, 'data.shape', data.shape)
print(KEYWORD, 'training started', time.ctime())
trainXS, trainYS, YD = getXSYS_single(data, 'TRAIN')
print('TRAIN XS.shape YD.shape YS,shape', trainXS.shape, YD.shape, trainYS.shape)
trainModel(MODELNAME, 'TRAIN', trainXS, trainYS, YD)
print(KEYWORD, 'testing started', time.ctime())
testXS, testYS, YD = getXSYS_single(data, 'TEST')
_, testYS_multi = getXSYS(data, 'TEST')
print('TEST XS.shape, YD.shape, YS.shape, YS_multi.shape', testXS.shape, YD.shape, testYS.shape, testYS_multi.shape)
testModel(MODELNAME, 'TEST', testXS, testYS, testYS_multi, YD)
if __name__ == '__main__':
main()
| [
"jiangrh@csis.u-tokyo.ac.jp"
] | jiangrh@csis.u-tokyo.ac.jp |
7f0a2666ac3f6125f73ef0a944db7dcf4878f3e0 | 8cd7bb2e212cc973d632e2d43d1845b41649f129 | /src/test/match_test.py | 87867494fc4b76fe5a7d608a28dbf605959a7879 | [
"MIT"
] | permissive | kclhi/ehr-fhir-converter | 82d71bd7e74c185c3aaa2205c8f9d3bf1caac897 | fbe0f419dc6eac1c1f8c4d02470a7483c2416ae9 | refs/heads/master | 2022-06-30T18:57:52.283471 | 2020-05-11T16:59:33 | 2020-05-11T16:59:33 | 260,462,967 | 1 | 1 | MIT | 2020-05-11T16:59:35 | 2020-05-01T13:14:56 | Python | UTF-8 | Python | false | false | 2,240 | py | from mockito import mock, verify
from random import shuffle
from nltk.corpus import wordnet
import unittest, sys
from translation.matches import Matches
from utils.utilities import Utilities
from test.match_syntactic_dictionary import usToGB
class MatchTests(unittest.TestCase):
def test_TestSyntactic(self):
# e.g self.assertTrue(Matches.match("Organisation", "Organization"));
matched = 0;
for key, value in usToGB.items():
if ( Matches.matches(key, value) ):
matched += 1;
else:
print(str(key) + " " + str(value));
matchPercentage = matched / float(len(usToGB.items()));
print("Syntactic match percentage: " + str(matchPercentage));
self.assertTrue(matchPercentage > 0.90);
def test_TestMorphological(self):
# e.g. self.assertTrue(Matches.match("PostCode", "postalCode"));
total = 0;
matched = 0;
for key, value in usToGB.items():
lemmas = list(Utilities.lemmas(value));
if ( lemmas ):
total += 1;
shuffle(lemmas)
if ( Matches.matches(value, lemmas[0]) ):
matched += 1;
else:
print(str(value) + " " + str(lemmas[0]));
matchPercentage = matched / float(total);
self.assertTrue(matchPercentage > 0.90);
def test_TestSemantic(self):
# e.g. self.assertTrue(Matches.match("FirstName", "givenHumanName"));
total = 0;
matched = 0;
for key, value in usToGB.items():
for set in wordnet.synsets(key):
synonyms = [synonym for synonym in list(set.lemma_names()) if not synonym == key];
if ( synonyms ):
shuffle(synonyms)
if ( "_" not in synonyms[0] ):
total += 1;
if ( Matches.matches(value, synonyms[0]) ):
matched += 1;
else:
print(str(value) + " " + str(synonyms[0]));
break;
matchPercentage = matched / float(total);
self.assertTrue(matchPercentage > 0.90);
| [
"contact@martinchapman.co.uk"
] | contact@martinchapman.co.uk |
3d66d5fd1e57a2958bd2ae3541249f7551b8ff1f | 759650a7f8242778963a78e3f4681a40c119f868 | /script-python/kc-mod-bd-architecture-SCRAPING.py | c5a186fb2dc2f99022eab31686b7b951498f90d6 | [] | no_license | sgcharameli/kc-mod-bd-architecture | 56bc7760deccc0bb7a58f7d96fa78580d806699f | 8a08690316a3ec3449710156d4d723427c6cd464 | refs/heads/master | 2020-04-17T12:30:45.657880 | 2019-01-27T22:06:55 | 2019-01-27T22:06:55 | 166,582,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,130 | py | # -*- coding: utf-8 -*-
import requests
import time
from random import randint
from kafka import KafkaProducer
KAFKA_URI="10.142.0.3:9092"
KAFKA_DATA_PRODUCER_TOPIC="testkafka"
# Lista de códigos postales de madrid http://www.madrid.org/iestadis/fijas/estructu/general/territorio/estructucartemcop.htm
# https://www.fotocasa.es/es/robots.txt
madrid_cp_list = [28000, 28001, 28002, 28003, 28004, 28005, 28006, 28007, 28008, 28009, 28010, 28011, 28012, 28013, 28014, 28015, 28016, 28017, 28018, 28019, 28020, 28021, 28022, 28023, 28024, 28025, 28026, 28027, 28028, 28029, 28030, 28031, 28032, 28033, 28034, 28035, 28036, 28037, 28038, 28039, 28040, 28041, 28042, 28043, 28044, 28045, 28046, 28047, 28048, 28049, 28050, 28051, 28052, 28053, 28054, 28055, 28100, 28100, 28108, 28109, 28110, 28119, 28120, 28130, 28140, 28150, 28160, 28170, 28180, 28189, 28190, 28191, 28192, 28193, 28194, 28195, 28196, 28200, 28200, 28209, 28210, 28211, 28212, 28213, 28214, 28219, 28220, 28221, 28222, 28223, 28224, 28229, 28231, 28232, 28240, 28248, 28250, 28260, 28270, 28280, 28290, 28292, 28293, 28294, 28295, 28296, 28297, 28300, 28300, 28310, 28311, 28312, 28320, 28330, 28341, 28342, 28343, 28350, 28359, 28360, 28370, 28380, 28390, 28391, 28400, 28400, 28410, 28411, 28412, 28413, 28420, 28430, 28440, 28450, 28459, 28460, 28470, 28479, 28480, 28490, 28491, 28492, 28500, 28500, 28510, 28511, 28512, 28513, 28514, 28515, 28521, 28522, 28523, 28524, 28529, 28530, 28540, 28550, 28560, 28570, 28580, 28590, 28594, 28595, 28596, 28597, 28598, 28600, 28600, 28607, 28609, 28610, 28620, 28630, 28640, 28648, 28649, 28650, 28660, 28670, 28679, 28680, 28690, 28691, 28692, 28693, 28694, 28695, 28696, 28700, 28701, 28702, 28703, 28706, 28707, 28708, 28709, 28710, 28720, 28721, 28722, 28723, 28729, 28730, 28737, 28739, 28740, 28741, 28742, 28743, 28749, 28750, 28751, 28752, 28753, 28754, 28755, 28756, 28760, 28770, 28780, 28790, 28791, 28792, 28793, 28794, 28800, 28801, 28802, 28803, 28804, 28805, 28806, 28807, 28810, 28811, 28812, 28813, 28814, 28815, 28816, 28817, 28818, 28821, 28822, 28823, 28830, 28840, 28850, 28860, 28861, 28862, 28863, 28864, 28880, 28890, 28891, 28900, 28901, 28902, 28903, 28904, 28905, 28906, 28907, 28909, 28911, 28912, 28913, 28914, 28915, 28916, 28917, 28918, 28919, 28921, 28922, 28923, 28924, 28925, 28931, 28932, 28933, 28934, 28935, 28936, 28937, 28938, 28939, 28940, 28941, 28942, 28943, 28944, 28945, 28946, 28947, 28950, 28970, 28971, 28976, 28977, 28978, 28979, 28981, 28982, 28983, 28984, 28990, 28991]
print(madrid_cp_list)
producer = KafkaProducer(bootstrap_servers=KAFKA_URI)
for current_cp in madrid_cp_list:
real_estates_num = 0;
pageNum = 1;
print("Obteniendo inmuebles del Código Postal: " + str(current_cp))
while True:
response = requests.get("https://api.fotocasa.es/PropertySearch/Search?combinedLocationIds=724,0,0,0,0,0,0,0,0&culture=es-ES&hrefLangCultures=ca-ES%3Bes-ES%3Bde-DE%3Ben-GB&isNewConstruction=false&isMap=false&latitude=40&longitude=-4&pageNumber=" + str(pageNum) + "&platformId=1&propertyTypeId=2&sortOrderDesc=true&sortType=bumpdate&text=" + str(current_cp) + "&transactionTypeId=1", headers={'user-agent': 'rogerbot'})
result_json = response.json()
real_estates = result_json['realEstates']
real_estates_total = result_json['count']
real_estates_num = real_estates_num + len(real_estates)
#
# send to kafka/rabbit
#
# producer.send(KAFKA_DATA_PRODUCER_TOPIC, str.encode(result_json), key=sensor.encode())
producer.send(KAFKA_DATA_PRODUCER_TOPIC, str.encode(str(result_json)))
# print(json.dumps(result, indent=4))
#
print("\tObtenidos " + str(real_estates_num) + " inmuebles de " + str(real_estates_total) + " para el CP: " + str(current_cp))
pageNum += 1
# Por no ser muy pesaos pidiendo datos
time.sleep(randint(3, 9))
if ( real_estates_num >= real_estates_total ):
break
print("Obteniendo inmuebles en el Código Postal: " + str(current_cp) + " cargados " + str(real_estates_num) + " inmuebles de " + str(real_estates_total))
| [
"sgcharameli@gmail.com"
] | sgcharameli@gmail.com |
b2688ec8816f074b72f143c58d440b7e9d19cd25 | 55dbc385efd8ca8ae07ac7327115b82898e281c6 | /id_diff.py | b08a240003c5de20b2fbce5d41842161e84e458a | [] | no_license | criddell94/capstone | 8d5f3e1108053edf92c7c75a07492e5ada89468a | 4c493c3aa65b02f8e5e8906f937a9124e1ff0dc3 | refs/heads/master | 2021-01-21T11:44:52.638517 | 2016-05-16T12:50:36 | 2016-05-16T12:50:36 | 44,018,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,905 | py | # -*- coding: utf-8 -*-
'''
#
# id_diff.py
# Connor Riddell
# Calculate error type with Naive Bayes Classifier
#
'''
import nltk
import os
import random
# open language word list
#gv_words = []
#bi_words = []
is_words = []
#with open("gv_word_list.txt") as word_f:
#with open("bi_word_list.txt") as word_f:
with open("is_word_list.txt") as word_f:
words = word_f.readlines()
word_f.close()
for word in words:
#gv_words.append(word.lower().rstrip())
#bi_words.append(word.lower().rstrip())
is_words.append(word.lower().rstrip())
#end for
#
# calculate error features
#
def error_features(input_list):
# set original variables
prev_llen = int(input_list[0].rstrip())
new_llen = int(input_list[1].rstrip())
prev_word = input_list[2].rstrip().lower()
if 'Ç' in prev_word:
prev_word = prev_word.replace('Ç','ç')
new_word = input_list[3].rstrip().lower()
if 'Ç' in new_word:
new_word = new_word.replace('Ç','ç')
changed_chars = input_list[4].rstrip()
change_dist = int(input_list[5].rstrip())
features = {}
features["Change Distance"] = change_dist
# set grammar-change
if len(changed_chars) == 1:
if changed_chars[0] == "," or (changed_chars[0] == "'" and new_word not in is_words):
features["grammar-change"] = True
else:
features["grammar-change"] = False
else:
features["grammar-change"] = False
# set is spelling error
for char in changed_chars:
if char.isalpha() or char == "\xe7" or char == "'" or char == '-':
features["is-sp-error chars"] = True
else:
features["is-sp-error chars"] = False
break
# set add/delete
if prev_llen != new_llen:
features["Add/Delete Word"] = True
else:
features["Add/Delete Word"] = False
# set formatting
for char in changed_chars:
if not char.isalpha() or char != '-' or char != '\xe7':
features["Formatting"] = True
else:
features["Formatting"] = False
if changed_chars == '\\n':
features["Formatting"] = True
# set non-word to word
if prev_word not in is_words and new_word in is_words:
features["non-word => word"] = True
else:
features["non-word => word"] = False
# set word to word
if prev_word in is_words and new_word in is_words:
features["word => word"] = True
else:
features["word => word"] = False
return features
#end error_features
print "Loading in training data..."
# open all the test set files and load them into labeled errors by type
labeled_errors = []
for form_file in os.listdir("classifiers/formatting"):
if form_file == '.DS_Store':
continue
else:
with open("classifiers/formatting/" + form_file) as f:
lines = f.readlines()
f.close()
labeled_errors.append((lines,'formatting'))
for sp_file in os.listdir("classifiers/spelling"):
if sp_file == '.DS_Store':
continue
else:
with open("classifiers/spelling/" + sp_file) as f:
lines = f.readlines()
f.close()
labeled_errors.append((lines,'spelling'))
for gram_file in os.listdir("classifiers/grammar"):
if gram_file == '.DS_Store':
continue
else:
with open("classifiers/grammar/" + gram_file) as f:
lines = f.readlines()
f.close()
labeled_errors.append((lines,'grammar'))
for add_file in os.listdir("classifiers/add_delete"):
if add_file == '.DS_Store':
continue
else:
with open("classifiers/add_delete/" + add_file) as f:
lines = f.readlines()
f.close()
labeled_errors.append((lines,'add/delete'))
# shuffle up labeled errors for testing
random.shuffle(labeled_errors)
# load in all unlabeled data from folders
print "Loading in uncategorized data..."
unlabeled_errors = []
for new_file in os.listdir("is_diff_data_sets_1"):
if new_file == '.DS_Store':
continue
else:
with open("is_diff_data_sets_1/" + new_file) as f:
lines = f.readlines()
f.close()
unlabeled_errors.append(lines)
for new_file in os.listdir("is_diff_data_sets_2"):
if new_file == '.DS_Store':
continue
else:
with open("is_diff_data_sets_2/" + new_file) as f:
lines = f.readlines()
f.close()
unlabeled_errors.append(lines)
for new_file in os.listdir("is_diff_data_sets_3"):
if new_file == '.DS_Store':
continue
else:
with open("is_diff_data_sets_3/" + new_file) as f:
lines = f.readlines()
f.close()
unlabeled_errors.append(lines)
for new_file in os.listdir("is_diff_data_sets_4"):
if new_file == '.DS_Store':
continue
else:
with open("is_diff_data_sets_4/" + new_file) as f:
lines = f.readlines()
f.close()
unlabeled_errors.append(lines)
for new_file in os.listdir("is_diff_data_sets_5"):
if new_file == '.DS_Store':
continue
else:
with open("is_diff_data_sets_5/" + new_file) as f:
lines = f.readlines()
f.close()
unlabeled_errors.append(lines)
for new_file in os.listdir("is_diff_data_sets_6"):
if new_file == '.DS_Store':
continue
else:
with open("is_diff_data_sets_6/" + new_file) as f:
lines = f.readlines()
f.close()
unlabeled_errors.append(lines)
# create featuresets
print "Training..."
featuresets = []
for (feature_list, error_type) in labeled_errors:
featuresets.append((error_features(feature_list), error_type))
halfway = len(featuresets)/2
#train_set, test_set = featuresets[:halfway], featuresets[halfway:]
classifier = nltk.NaiveBayesClassifier.train(featuresets)
# classify data for all unlabeled errors
counter = 1
num_symbol = ''
print "Calculating categories..."
class_f = open("classified_errors.txt", "w+")
for error in unlabeled_errors:
error_class = classifier.classify(error_features(error))
#print error_class + " Prev Word: " + error[2].rstrip() + " New Word: " + error[3].rstrip()
prev_word = error[2].lower().rstrip()
if 'Ç' in prev_word:
prev_word = prev_word.replace('Ç','ç')
new_word = error[3].lower().rstrip()
if 'Ç' in new_word:
new_word = new_word.replace('Ç','ç')
class_f.write(error_class + " Prev Word: " + prev_word + " New Word: " + new_word + '\n')
num_symbol = num_symbol + '*'
if len(num_symbol) == 125:
print str(125*counter) + ": " + num_symbol
num_symbol = ''
counter += 1
class_f.close()
#print(nltk.classify.accuracy(classifier, test_set))
| [
"riddell.connor.m@gmail.com"
] | riddell.connor.m@gmail.com |
ba4fc1788c1dbf1d553af32f6f90a91f2aaa3485 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/chrome/chrome_repack_pseudo_locales.gypi | 340ed191955ce1651ad7f722c9614b277d497f92 | [
"BSD-3-Clause",
"MIT"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 1,247 | gypi | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'action_name': 'repack_pseudo_locales',
'variables': {
'conditions': [
['branding=="Chrome"', {
'branding_flag': ['-b', 'google_chrome',],
}, { # else: branding!="Chrome"
'branding_flag': ['-b', 'chromium',],
}],
],
},
'inputs': [
'tools/build/repack_locales.py',
'<!@pymod_do_main(repack_locales -i -p <(OS) <(branding_flag) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(pseudo_locales))'
],
'conditions': [
['OS == "mac" or OS == "ios"', {
'outputs': [
'<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(pseudo_locales))'
],
}, { # else 'OS != "mac"'
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/<(pseudo_locales).pak'
],
}],
],
'action': [
'<@(repack_locales_cmd)',
'<@(branding_flag)',
'-p', '<(OS)',
'-g', '<(grit_out_dir)',
'-s', '<(SHARED_INTERMEDIATE_DIR)',
'-x', '<(SHARED_INTERMEDIATE_DIR)/.',
'<@(pseudo_locales)',
],
}
| [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
8265b22feff8988d5a78fd85d1d9fc43f915de26 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-Cocoa/PyObjCTest/test_nsnumberformatter.py | 903f5e2dffeb62d1bb0af948a9b0ab4af0a16d49 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,347 | py | from PyObjCTools.TestSupport import *
from Foundation import *
class TestNSNumberFormatter(TestCase):
def testConstants(self):
self.assertEqual(NSNumberFormatterNoStyle, kCFNumberFormatterNoStyle)
self.assertEqual(NSNumberFormatterDecimalStyle, kCFNumberFormatterDecimalStyle)
self.assertEqual(
NSNumberFormatterCurrencyStyle, kCFNumberFormatterCurrencyStyle
)
self.assertEqual(NSNumberFormatterPercentStyle, kCFNumberFormatterPercentStyle)
self.assertEqual(
NSNumberFormatterScientificStyle, kCFNumberFormatterScientificStyle
)
self.assertEqual(
NSNumberFormatterSpellOutStyle, kCFNumberFormatterSpellOutStyle
)
self.assertEqual(NSNumberFormatterBehaviorDefault, 0)
self.assertEqual(NSNumberFormatterBehavior10_0, 1000)
self.assertEqual(NSNumberFormatterBehavior10_4, 1040)
self.assertEqual(
NSNumberFormatterPadBeforePrefix, kCFNumberFormatterPadBeforePrefix
)
self.assertEqual(
NSNumberFormatterPadAfterPrefix, kCFNumberFormatterPadAfterPrefix
)
self.assertEqual(
NSNumberFormatterPadBeforeSuffix, kCFNumberFormatterPadBeforeSuffix
)
self.assertEqual(
NSNumberFormatterPadAfterSuffix, kCFNumberFormatterPadAfterSuffix
)
self.assertEqual(NSNumberFormatterRoundCeiling, kCFNumberFormatterRoundCeiling)
self.assertEqual(NSNumberFormatterRoundFloor, kCFNumberFormatterRoundFloor)
self.assertEqual(NSNumberFormatterRoundDown, kCFNumberFormatterRoundDown)
self.assertEqual(NSNumberFormatterRoundUp, kCFNumberFormatterRoundUp)
self.assertEqual(
NSNumberFormatterRoundHalfEven, kCFNumberFormatterRoundHalfEven
)
self.assertEqual(
NSNumberFormatterRoundHalfDown, kCFNumberFormatterRoundHalfDown
)
self.assertEqual(NSNumberFormatterRoundHalfUp, kCFNumberFormatterRoundHalfUp)
@min_os_level("10.11")
def testConstants(self):
self.assertEqual(NSNumberFormatterOrdinalStyle, kCFNumberFormatterOrdinalStyle)
self.assertEqual(
NSNumberFormatterCurrencyISOCodeStyle,
kCFNumberFormatterCurrencyISOCodeStyle,
)
self.assertEqual(
NSNumberFormatterCurrencyPluralStyle, kCFNumberFormatterCurrencyPluralStyle
)
self.assertEqual(
NSNumberFormatterCurrencyAccountingStyle,
kCFNumberFormatterCurrencyAccountingStyle,
)
def testOutput(self):
self.assertResultIsBOOL(NSNumberFormatter.getObjectValue_forString_range_error_)
self.assertArgIsOut(NSNumberFormatter.getObjectValue_forString_range_error_, 0)
self.assertArgIsInOut(
NSNumberFormatter.getObjectValue_forString_range_error_, 2
)
self.assertArgIsOut(NSNumberFormatter.getObjectValue_forString_range_error_, 3)
self.assertResultIsBOOL(NSNumberFormatter.generatesDecimalNumbers)
self.assertArgIsBOOL(NSNumberFormatter.setGeneratesDecimalNumbers_, 0)
self.assertResultIsBOOL(NSNumberFormatter.allowsFloats)
self.assertArgIsBOOL(NSNumberFormatter.setAllowsFloats_, 0)
self.assertResultIsBOOL(NSNumberFormatter.alwaysShowsDecimalSeparator)
self.assertArgIsBOOL(NSNumberFormatter.setAlwaysShowsDecimalSeparator_, 0)
self.assertResultIsBOOL(NSNumberFormatter.usesGroupingSeparator)
self.assertArgIsBOOL(NSNumberFormatter.setUsesGroupingSeparator_, 0)
self.assertResultIsBOOL(NSNumberFormatter.isLenient)
self.assertArgIsBOOL(NSNumberFormatter.setLenient_, 0)
self.assertResultIsBOOL(NSNumberFormatter.usesSignificantDigits)
self.assertArgIsBOOL(NSNumberFormatter.setUsesSignificantDigits_, 0)
self.assertResultIsBOOL(NSNumberFormatter.isPartialStringValidationEnabled)
self.assertArgIsBOOL(NSNumberFormatter.setPartialStringValidationEnabled_, 0)
self.assertResultIsBOOL(NSNumberFormatter.hasThousandSeparators)
self.assertArgIsBOOL(NSNumberFormatter.setHasThousandSeparators_, 0)
self.assertResultIsBOOL(NSNumberFormatter.localizesFormat)
self.assertArgIsBOOL(NSNumberFormatter.setLocalizesFormat_, 0)
if __name__ == "__main__":
main()
| [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
1217867d6445957c4cf47d6409ea0cceff370ef9 | 783244556a7705d99662e0b88872e3b63e3f6301 | /denzo/migrations(second attempt)/0017_auto_20160224_0953.py | 41cd71d62a6d23ebf83e8ef0f9f1d7495859f9c9 | [] | no_license | KobiBeef/eastave_src | bf8f2ce9c99697653d36ca7f0256473cc25ac282 | dfba594f3250a88d479ccd9f40fefc907a269857 | refs/heads/master | 2021-01-10T16:49:14.933424 | 2016-03-08T13:30:48 | 2016-03-08T13:30:48 | 51,752,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('denzo', '0016_auto_20160224_0951'),
]
operations = [
migrations.AlterField(
model_name='patientinfo',
name='attending_physician',
field=models.ManyToManyField(related_name='attending_phycisian1', to='denzo.PhysicianInfo'),
),
migrations.AlterField(
model_name='patientinfo',
name='physician',
field=models.ManyToManyField(related_name='attending_physician2', to='denzo.PhysicianInfo'),
),
]
| [
"ezekielbacungan@gmail.com"
] | ezekielbacungan@gmail.com |
1e6f70eec09a530a4c3db0e9939343b1075d7a12 | 3971979d46959636ee2a7a68d72428b1d7fd9853 | /elasticsearch_django/management/commands/__init__.py | 5c823387e8298bac9a333b02cb017b59c389c852 | [
"MIT"
] | permissive | vryazanov/elasticsearch-django | 818b302d53cdbf9c2c1ee05255170710e450186d | adc8328ca3e6ef5d21cb53447e3a2e0663d770d4 | refs/heads/master | 2020-03-16T16:11:19.230648 | 2018-02-23T14:50:36 | 2018-02-23T14:50:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | # -*- coding: utf-8 -*-
"""Base command for search-related management commands."""
import logging
import builtins
from django.core.management.base import BaseCommand
from elasticsearch.exceptions import TransportError
logger = logging.getLogger(__name__)
class BaseSearchCommand(BaseCommand):
"""Base class for commands that interact with the search index."""
description = "Base search command."
def _confirm_action(self):
"""Return True if the user confirms the action."""
msg = "Are you sure you wish to continue? [y/N] "
return builtins.input(msg).lower().startswith('y')
def add_arguments(self, parser):
"""Add default base options of --noinput and indexes."""
parser.add_argument(
'--noinput',
action='store_false',
dest='interactive',
default=True,
help='Do no display user prompts - may affect data.'
)
parser.add_argument(
'indexes',
nargs='*',
help="Names of indexes on which to run the command."
)
def do_index_command(self, index, interactive):
"""Run a command against a named index."""
raise NotImplementedError()
def handle(self, *args, **options):
"""Run do_index_command on each specified index and log the output."""
for index in options.pop('indexes'):
data = {}
try:
data = self.do_index_command(index, **options)
except TransportError as ex:
logger.warning("ElasticSearch threw an error: %s", ex)
data = {
"index": index,
"status": ex.status_code,
"reason": ex.error,
}
finally:
logger.info(data)
| [
"hugo@yunojuno.com"
] | hugo@yunojuno.com |
96d23b92026e5ac28fb9bdcdb0b268cbd883af0d | 938a496fe78d5538af94017c78a11615a8498682 | /algorithms/901-/1030.matrix-cells-in-distance-order.py | 56b21b33d5488d66697d5f02c50976a56e730edd | [] | no_license | huilizhou/Leetcode-pyhton | 261280044d15d0baeb227248ade675177efdb297 | 6ae85bf79c5a21735e3c245c0c256f29c1c60926 | refs/heads/master | 2020-03-28T15:57:52.762162 | 2019-11-26T06:14:13 | 2019-11-26T06:14:13 | 148,644,059 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # 距离顺序排列矩阵单元格
class Solution(object):
def allCellsDistOrder(self, R, C, r0, c0):
"""
:type R: int
:type C: int
:type r0: int
:type c0: int
:rtype: List[List[int]]
"""
# res = [[i, j] for i in range(R) for j in range(C)]
# res.sort(key=lambda x: abs(x[0] - r0) + abs(x[1] - c0))
# return res
res = []
for i in range(R):
for j in range(C):
res.append((abs(i - r0) + abs(j - c0), [i, j]))
res.sort()
return list(item[1] for item in res)
print(Solution().allCellsDistOrder(R=2, C=2, r0=0, c0=1))
| [
"2540278344@qq.com"
] | 2540278344@qq.com |
1b0ab143746e4e9d177120da147a53226dec8893 | 6f575baf1623262612ad6b71d8cd23fc9201f191 | /python_tasks/study_input.py | 400484d96631b86354bce18edd1b7431d8f32a78 | [] | no_license | ElenaZhelezova/lection_git_hw | 7c1967a5544fcc678972ecd2cfbf0b7c94135453 | aed857859d58c2f874993045272f1942cebb0312 | refs/heads/main | 2023-04-07T05:18:57.226742 | 2021-04-24T13:52:44 | 2021-04-24T13:52:44 | 352,929,439 | 0 | 0 | null | 2021-04-19T16:54:24 | 2021-03-30T08:38:27 | Python | UTF-8 | Python | false | false | 621 | py | """
Task 1
Self-study input() function. Write a script which accepts a sequence of
comma-separated numbers from user and generate a list and a tuple with those
numbers and prints these objects as-is (just print(list) without any formatting).
"""
def main(seq):
seq = seq.split(',')
seq_list = []
for i in seq:
try:
i = int(i)
seq_list.append(int(i))
except:
continue
seq_tuple = tuple(seq_list)
print(seq_list)
print(seq_tuple)
return
if __name__ == '__main__':
sequence = input("enter comma-separated numbers: ")
main(sequence)
| [
"Elena_Zhelezova@epam.com"
] | Elena_Zhelezova@epam.com |
347e83a77741b61d8657d3cb2a0956f362fe55e5 | 426f216e3d38d2030d337c8be6463cc4cd7af6c3 | /day07/mul/multipro8_pool.py | ddfcdc95d2e644dd1b33c973e98dbae909fcf69d | [
"Apache-2.0"
] | permissive | zhangyage/Python-oldboy | c7b43801935fc9e08e973ee0b852daa8e8667fb7 | a95c1b465929e2be641e425fcb5e15b366800831 | refs/heads/master | 2021-01-23T02:59:37.574638 | 2019-10-27T05:35:58 | 2019-10-27T05:35:58 | 86,039,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
进程池
'''
from multiprocessing import Process,Pool
import time
def f(x):
#print x*x
time.sleep(1)
return x*x
if __name__ == '__main__':
pool = Pool(processes=5) #并行5个进程
res_list = []
for i in range(10):
res = pool.apply_async(f,[i,]) #pool.apply_async异步执行 pool.apply同步执行即串行
res_list.append(res) #将进程的结果追加到一个列表中 注意这里的列表中的元素实际上都是一个实例
for r in res_list: #由于列表元素是进程实例因此需要使用如下方式遍历
print r.get()
| [
"zhangyage2015@163.com"
] | zhangyage2015@163.com |
d629b3f65cb54454daeea955592e07b3c6160181 | d678ac8e1e247702a021ddcc232f2ac3417eca3d | /GAZEBO_TEST_SAC/test_gazebo_sac.py | 246063b53f097062eabdbdf991e799ec47609093 | [] | no_license | CzJaewan/rl_avoidance_gazebo | 1b55182e9f476a1890703f8f13f2f1659df01a7b | 98c9359ded3a2a78edaedf29971e910d9b1158ec | refs/heads/master | 2023-03-03T22:38:52.025571 | 2021-02-15T10:49:49 | 2021-02-15T10:49:49 | 290,694,749 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,629 | py | import os
import logging
import sys
import socket
import numpy as np
import rospy
import torch
import torch.nn as nn
import argparse
from mpi4py import MPI
from gym import spaces
from torch.optim import Adam
import datetime
from torch.utils.tensorboard import SummaryWriter
from collections import deque
from model.net import QNetwork_1, QNetwork_2, ValueNetwork, GaussianPolicy, DeterministicPolicy
from syscon_gazebo_test_amcl_world import StageWorld
from model.sac import SAC
parser = argparse.ArgumentParser(description='PyTorch Soft Actor-Critic Args')
parser.add_argument('--env-name', default="Stage",
help='Environment name (default: Stage)')
parser.add_argument('--policy', default="Gaussian",
help='Policy Type: Gaussian | Deterministic (default: Gaussian)')
parser.add_argument('--eval', type=bool, default=True,
help='Evaluates a policy a policy every 10 episode (default: True)')
parser.add_argument('--gamma', type=float, default=0.99, metavar='G',
help='discount factor for reward (default: 0.99)')
parser.add_argument('--tau', type=float, default=0.005, metavar='G',
help='target smoothing coefficient(\tau) (default: 0.005)')
parser.add_argument('--lr', type=float, default=0.0003, metavar='G',
help='learning rate (default: 0.0003)')
parser.add_argument('--alpha', type=float, default=0.2, metavar='G',
help='Temperature parameter \alpha determines the relative importance of the entropy\
term against the reward (default: 0.2)')
parser.add_argument('--automatic_entropy_tuning', type=bool, default=True, metavar='G',
help='Automaically adjust \alpha (default: False)')
parser.add_argument('--seed', type=int, default=123456, metavar='N',
help='random seed (default: 123456)')
parser.add_argument('--batch_size', type=int, default=1024, metavar='N',
help='batch size (default: 256)')
parser.add_argument('--num_steps', type=int, default=100, metavar='N',
help='maximum number of steps (default: 1000000)')
parser.add_argument('--updates_per_step', type=int, default=1, metavar='N',
help='model updates per simulator step (default: 1)')
parser.add_argument('--start_steps', type=int, default=10000, metavar='N',
help='Steps sampling random actions (default: 10000)')
parser.add_argument('--target_update_interval', type=int, default=1, metavar='N',
help='Value target update per no. of updates per step (default: 1)')
parser.add_argument('--replay_size', type=int, default=200000, metavar='N',
help='size of replay buffer (default: 10000000)')
parser.add_argument('--cuda', action="store_true",
help='run on CUDA (default: False)')
parser.add_argument('--laser_beam', type=int, default=512,
help='the number of Lidar scan [observation] (default: 512)')
parser.add_argument('--num_env', type=int, default=10,
help='the number of environment (default: 1)')
parser.add_argument('--laser_hist', type=int, default=3,
help='the number of laser history (default: 3)')
parser.add_argument('--act_size', type=int, default=2,
help='Action size (default: 2, translation, rotation velocity)')
parser.add_argument('--epoch', type=int, default=1,
help='Epoch (default: 1)')
parser.add_argument('--hidden_size', type=int, default=256, metavar='N',
help='hidden size (default: 256)')
args = parser.parse_args()
def run(comm, env, agent, policy_path, args):
# Training Loop
total_numsteps = 0
# world reset
if env.index == 0: # step
env.reset_world()
#Tesnorboard
writer = SummaryWriter('test_runs/' + policy_path)
for i_episode in range(args.num_steps):
env.control_vel([0,0])
'''
while not rospy.is_shutdown():
get_goal = env.is_sub_goal
if get_goal:
break
'''
env.send_goal_point()
episode_reward = 0
episode_steps = 0
done = False
# Get initial state
frame = env.get_laser_observation()
frame_stack = deque([frame, frame, frame])
goal = np.asarray(env.get_local_goal())
speed = np.asarray(env.get_self_speed())
state = [frame_stack, goal, speed]
start_time = rospy.Time.now()
# Episode start
while not done and not rospy.is_shutdown():
state_list = comm.gather(state, root=0)
if env.index == 0:
action = agent.select_action(state_list, evaluate=True)
else:
action = None
# Execute actions
#-------------------------------------------------------------------------
action_clip_bound = [[0, -1], [1, 1]] #### Action maximum, minimum values
cliped_action = np.clip(action, a_min=action_clip_bound[0], a_max=action_clip_bound[1])
real_action = comm.scatter(cliped_action, root=0)
'''
if real_action[0] < 0.2 :
real_action[0] = 0.0
if real_action[1] > 0 and real_action[1] < 0.3:
real_action[1] = 0.3
elif real_action[1] < 0 and real_action[1] > -0.3:
real_action[1] = -0.3
'''
env.control_vel(real_action)
rospy.sleep(0.001)
## Get reward and terminal state
reward, done, result = env.get_reward_and_terminate(episode_steps)
#print("Action : [{}, {}], Distance : {}, Reward : {}".format(real_action[0], real_action[1], env.distance, reward))
#logger_step.info('Env: %d, Episode: %d, steps: %d, Action : [%05.2f, %05.2f], Speed : [%05.2f, %05.2f], state : [%05.2f, %05.2f, %05.2f], Distance : %05.2f, Reward : %05.2f', env.index, i_episode+1, episode_steps, real_action[0], real_action[1], env.speed_GT[0], env.speed_GT[1], env.state_GT[0], env.state_GT[1], env.state_GT[2], env.distance, reward)
episode_steps += 1
total_numsteps += 1
episode_reward += reward
# Get next state
next_frame = env.get_laser_observation()
left = frame_stack.popleft()
frame_stack.append(next_frame)
next_goal = np.asarray(env.get_local_goal())
next_speed = np.asarray(env.get_self_speed())
next_state = [frame_stack, next_goal, next_speed]
r_list = comm.gather(reward, root=0)
done_list = comm.gather(done, root=0)
next_state_list = comm.gather(next_state, root=0)
#if result == "Crashed" or result == "Time out":
# env.set_gazebo_pose(0,0, 3.14)
state = next_state
env.control_vel([0,0])
env.is_sub_goal = False
end_time = rospy.Time.now()
epi_time = end_time - start_time
if env.index == 0:
writer.add_scalar('reward/train', episode_reward, i_episode)
print("Env: {}, Goal: ({} , {}), Episode: {}, steps: {}, Reward: {}, {}".format(env.index, round(env.goal_point[0],2), round(env.goal_point[1],2), i_episode+1, episode_steps, round(episode_reward, 2), result))
#logger.info('Env: %d, Goal: (%05.1f , %05.1f), Episode: %d, steps: %d, Reward: %05.2f, Distance: %05.2f, Result: %s', env.index, round(env.goal_point[0],2), round(env.goal_point[1],2), i_episode+1, episode_steps, round(episode_reward, 2), round(distance, 2), result)
#logger_time.info('Env: %d, Episode: %d, time :%d.%d, start_time: %d.%d, end_time: %d.%d', env.index, i_episode+1, epi_time.secs, epi_time.nsecs, start_time.secs, start_time.nsecs, end_time.secs, end_time.nsecs )
if __name__ == '__main__':
task_name = 'SIM_S_R5_no_sac'
log_path = './log/' + task_name
# config log
if not os.path.exists(log_path):
os.makedirs(log_path)
output_file = log_path + '/epi_output.log'
step_output_file = log_path + '/step_output.log'
time_output_file = log_path + '/time_output.log'
# config log
logger = logging.getLogger('epi_logger')
logger.setLevel(logging.INFO)
file_handler = logging.FileHandler(output_file, mode='a')
file_handler.setLevel(logging.INFO)
file_handler.setFormatter(logging.Formatter("%(asctime)s - %(levelname)s - %(message)s"))
stdout_handler = logging.StreamHandler(sys.stdout)
stdout_handler.setLevel(logging.INFO)
logger.addHandler(file_handler)
logger.addHandler(stdout_handler)
logger_step = logging.getLogger('step_logger')
logger_step.setLevel(logging.INFO)
file_handler = logging.FileHandler(step_output_file, mode='a')
file_handler.setLevel(logging.INFO)
file_handler.setFormatter(logging.Formatter("%(asctime)s - %(levelname)s - %(message)s"))
stdout_handler.setLevel(logging.INFO)
logger_step.addHandler(file_handler)
logger_step.addHandler(stdout_handler)
logger_time = logging.getLogger('time_logger')
logger_time.setLevel(logging.INFO)
file_handler = logging.FileHandler(time_output_file, mode='a')
file_handler.setLevel(logging.INFO)
file_handler.setFormatter(logging.Formatter("%(asctime)s - %(levelname)s - %(message)s"))
stdout_handler.setLevel(logging.INFO)
logger_time.addHandler(file_handler)
logger_time.addHandler(stdout_handler)
comm = MPI.COMM_WORLD # There is one special communicator that exists when an MPI program starts, that contains all the processes in the MPI program. This communicator is called MPI.COMM_WORLD
size = comm.Get_size() # The first of these is called Get_size(), and this returns the total number of processes contained in the communicator (the size of the communicator).
rank = comm.Get_rank() # The second of these is called Get_rank(), and this returns the rank of the calling process within the communicator. Note that Get_rank() will return a different value for every process in the MPI program.
print("MPI size=%d, rank=%d" % (size, rank))
# Environment
env = StageWorld(beam_num=args.laser_beam, index=rank, num_env=args.num_env)
print("Ready to environment")
reward = None
if rank == 0:
policy_path = 'policy_test'
#board_path = 'runs/r2_epi_0'
# Agent num_frame_obs, num_goal_obs, num_vel_obs, action_space, args
action_bound = [[0, 1], [-1, 1]] #### Action maximum, minimum values
action_bound = spaces.Box(-1, +1, (2,), dtype=np.float32)
agent = SAC(num_frame_obs=args.laser_hist, num_goal_obs=2, num_vel_obs=2, action_space=action_bound, args=args)
if not os.path.exists(policy_path):
os.makedirs(policy_path)
#'/w5a10_policy_epi_2000.pth'
#file_policy = policy_path + '/slow_action_syscon_policy_epi_1500.pth'
#file_critic_1 = policy_path + '/slow_action_syscon_critic_1_epi_1500.pth'
#file_critic_2 = policy_path + '/slow_action_syscon_critic_2_epi_1500.pth'
# static obstacle best policy
#file_policy = policy_path + '/syscon_6world_policy_epi_12900.pth'
#file_critic_1 = policy_path + '/syscon_6world_critic_1_epi_12900.pth'
#file_critic_2 = policy_path + '/syscon_6world_critic_2_epi_12900.pth'
file_policy = policy_path + '/syscon_a6_policy_epi_2000.pth'
file_critic_1 = policy_path + '/syscon_a6_critic_1_epi_2000.pth'
file_critic_2 = policy_path + '/syscon_a6_critic_2_epi_2000.pth'
if os.path.exists(file_policy):
print('###########################################')
print('############Loading Policy Model###########')
print('###########################################')
state_dict = torch.load(file_policy)
agent.policy.load_state_dict(state_dict)
else:
print('###########################################')
print('############Start policy Training###########')
print('###########################################')
if os.path.exists(file_critic_1):
print('###########################################')
print('############Loading critic_1 Model###########')
print('###########################################')
state_dict = torch.load(file_critic_1)
agent.critic_1.load_state_dict(state_dict)
else:
print('###########################################')
print('############Start critic_1 Training###########')
print('###########################################')
if os.path.exists(file_critic_2):
print('###########################################')
print('############Loading critic_2 Model###########')
print('###########################################')
state_dict = torch.load(file_critic_2)
agent.critic_2.load_state_dict(state_dict)
else:
print('###########################################')
print('############Start critic_2 Training###########')
print('###########################################')
else:
agent = None
policy_path = None
try:
run(comm=comm, env=env, agent=agent, policy_path=policy_path, args=args)
except KeyboardInterrupt:
pass
| [
"wodhks7968@gmail.com"
] | wodhks7968@gmail.com |
0cc2e6b5afbcc6588596c4313893d206bcec3465 | 930309163b930559929323647b8d82238724f392 | /abc104_c.v2.py | 1c56b7dd77d336db84c82ba6490babad3fded1b6 | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | import math
N,G=map(int,input().split())
A=[]
for i in range(1,N+1):
score = i*100
num,comp=map(int,input().split())
A.append((score, num, comp))
P = 1<<len(A)
ans = math.inf
for i in range(P):
num = 0
score = 0
for j in range(len(A)):
if i&(1<<j) > 0:
score += A[j][2] + A[j][0]*A[j][1]
num += A[j][1]
if G > score:
for j in reversed(range(len(A))):
if i&(1<<j) == 0:
for _ in range(A[j][1]):
score += A[j][0]
num += 1
if G <= score:
break
if G <= score:
break
ans = min(ans, num)
print(ans)
| [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
ecf576b35af2d943a36d94e6fdfbbe2f3093a017 | 0e98d3a46f67e554a3569ae37319505b3e352d1a | /esp8266_files/sonoff_relay3.py | 0630414726aee65bfdabcf653039dcb55c06027c | [] | no_license | knyete/mqtt_lights | 9a4261097d78848756f572d2ce1cda7a315318b4 | 7d1df5b0899a1110148fee7487c470a7a11a9939 | refs/heads/master | 2020-03-23T22:53:28.402679 | 2018-07-09T20:32:36 | 2018-07-09T20:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | import time
from umqtt.simple import MQTTClient
import ubinascii
import machine
client_id = 'esp8266-light' + ubinascii.hexlify(machine.unique_id()).decode('utf-8')
esp8266_set = "home/controller/woonkamer/schemerlamp"
light_set = "home/woonkamer/bank_schemerlamp/set"
light_topic = "home/woonkamer/bank_schemerlamp"
mqtt_server_ip = '192.168.1.10'
mqtt_server_port = 1883
retries = 0 #mqtt reconnect retries
max_retries = 86400 #time
## sonoff GPIO pins
# PIN 12-----------------replay
# PIN 13-----------------LED
# PIN 0------------Button
class switch():
def __init__ (self, pin, topic, set_topic):
if pin not in (0, 2, 4, 5, 12, 13, 14, 15, 16):
raise ValueError ("pin must be 0, 2, 4, 5, 12, 13, 14, 15 or 16")
self._relay = machine.Pin(pin, machine.Pin.OUT)
self.switch = 'OFF'
self.message = self.switch
self.is_on = False
self.topic = topic
self.tc_set = set_topic
self._set_state()
self.haschanged = False
def __str__(self):
variables = (
self.switch,
self._relay.value,
self.is_on,
self._relay.value()
)
log_str = 'switch: {}, value: {} is_on {} relay_state {}'
return(log_str.format(*variables))
def _set_state(self):
if self.is_on:
state = 1 # relay is inverted
else:
state = 0 # relay is inverted
self._relay.value(state)
def update(self, value):
self.haschanged = False
on_vals = (True, 1, 'true', 'on')
off_vals = (False, 0, 'false', 'off')
if isinstance(value, str): value = value.lower() # convert value to lowercase if it is a string
if value in on_vals:
self.is_on = True
self.switch = 'ON'
if value in off_vals:
self.is_on = False
self.switch = 'OFF'
self.message = self.switch
self._set_state()
self.haschanged = True
def toggle(self):
if self.is_on:
self.update('OFF')
else:
self.update('ON')
class mqtt_client():
def __init__(self, topics, callback, client_id, mqtt_server_ip):
self.server_ip = mqtt_server_ip
self.id = client_id
self.__mqtt_client = MQTTClient(self.id, self.server_ip)
self.topics = topics
print(self.topics)
self.__callback = callback
self.connected = False
self.__connect()
def __connect(self):
try:
# print('id', self.id, 'ip' , self.server_ip)
myclient = MQTTClient(self.id, self.server_ip)
self.__mqtt_client = MQTTClient(self.id, self.server_ip)
self.__mqtt_client.set_callback(self.__callback)
self.__mqtt_client.connect()
for tpc in self.topics:
print('subscribing to topic ', tpc)
self.__mqtt_client.subscribe(tpc)
print('connected to mqtt server at {}'.format(self.server_ip))
self.connected = True
except OSError:
print('unable to connect to mqtt server')
self.connected = False
def check_msg(self):
try:
self.__mqtt_client.check_msg()
self.connected = True
except OSError:
self.connected = False
def send_msg(self, topic, message):
tpc = topic.encode('utf-8')
msg = message.encode('utf-8')
try:
self.__mqtt_client.publish(tpc,msg,0,True)
print('published topic {}, message {}'.format(topic, message))
self.connected = True
except OSError:
self.connected = False
def is_alive(self):
# check if connected is true and reconnect if it is not. if succesful, the
# function will return true, otherwise, false
if not self.connected:
self.__connect()
return self.connected
def mqtt_on_message(topic, message):
tpc = topic.decode('utf-8')
msg = message.decode('utf-8')
if tpc == light.tc_set:
light.update(msg)
print('topic {}, message {}'.format(tpc, msg))
if tpc == esp8266_set and msg == 'RESET':
machine.reset()
def check_btn_led():
led.value(1) # led is inverted
if light.is_on:
led.value(0)
d = 0
duration = 300
while btn.value() == 0: # button is inverted
l = led.value()
d += duration
led.value(1-l) # toggle led
time.sleep_ms(duration)
if d > 5000:
machine.reset()
if d > 0:
light.toggle()
def main_loop():
while True:
check_btn_led()
if client.is_alive():
client.check_msg()
if light.haschanged:
client.send_msg(light.topic, light.message)
light.haschanged = False
print('light {} btn {}, led {}'.format(light.switch, btn.value(), led.value()))
time.sleep_ms(500)
light = switch(12, light_topic, light_set)
btn = machine.Pin(0, machine.Pin.IN)
led = machine.Pin(13, machine.Pin.OUT)
client = mqtt_client((light.tc_set, esp8266_set),mqtt_on_message, client_id, mqtt_server_ip)
main_loop()
| [
"wagner.marc@gmail.com"
] | wagner.marc@gmail.com |
b65a97fd81e65b510cfc22d262ca5b2607f3e5a2 | 7beb75c5cc5e039a378e41651702c2c3537ada9a | /chapter7/ranges.py | 5b62623dc31eac0b24078483d6684a72e3d4c7ca | [] | no_license | aleksandra-fuhrmann/core-python-getting-started | 934685adea32436869b00ec9b29348c145e8cf83 | 261061efc156d97cb5d0a73fdebf9ca4cac245c6 | refs/heads/main | 2023-02-01T10:01:46.735604 | 2020-12-13T19:49:24 | 2020-12-13T19:49:24 | 321,141,136 | 0 | 0 | null | 2020-12-13T19:35:06 | 2020-12-13T19:16:22 | null | UTF-8 | Python | false | false | 223 | py | l = [4, 67, 8, 9, 11]
for i in l:
print(i)
for i in enumerate(l):
print(i)
for numero,i in enumerate(l,100):
print(numero, i)
for i,v in enumerate(l):
print(f'i={i}, v={v}')
#print('i={i}, v={v}')
| [
"aleksandrafuhrmann@gmail.com"
] | aleksandrafuhrmann@gmail.com |
9ab3f959f6bf0d827a0f48f15c979c3a77375a87 | 8f50f792f739cf6a4073e82dfde0a1881523a6fb | /Tkinter/Beispiel_Position.py | 1b6c85366732e93b846b804e242e064ae694505a | [] | no_license | Nordlxnder/Beispiele | 0946757339ae226e482486976e81af98900835dd | 21885cb69fe6f44988467db204c7ad6b90080f95 | refs/heads/master | 2022-02-19T02:30:34.745462 | 2019-08-25T12:03:22 | 2019-08-25T12:03:22 | 105,098,972 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 843 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# damit es keine Fehlermeldungen durch Sonderzeichen gibt
import tkinter
from tkinter import ttk
from tkinter import messagebox
from tkinter import *
fenster=tkinter.Tk()
fenster.title("Hallo")
# Breite x Höhe +1000+ 400 Position
fenster.geometry("300x200+100+400")
# Fenster2 in die Mitte setzen
fenster2=tkinter.Tk()
fenster.title("Fenster 2")
w = 800 # Breite des Fensters
h = 650 # Höhe des Fensters
# Abfrage der Höhe und Breite des Monitors
ws = fenster2.winfo_screenwidth() # width of the screen
hs = fenster2.winfo_screenheight() # height of the screen
# calculate x and y coordinates for the Tk root window
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
# setzt die dimension des Fensters
# und den Platz
fenster2.geometry('%dx%d+%d+%d' % (w, h, x, y))
mainloop() | [
"lnxawdr@web.de"
] | lnxawdr@web.de |
9e7631c87d277c14e04515ee0930159e352f908b | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/share/model/save_sharing_batch_dr_response_wrapper_body.py | 3ba6d3e6ccf54fcf6792652170c14f6b287f2ac3 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 10,980 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
validate_get_composed_info,
OpenApiModel
)
from baiduads.exceptions import ApiAttributeError
class SaveSharingBatchDrResponseWrapperBody(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
Attributes:
allowed_values (dict): The key is the tuple path to the attribute
and the for var_name this is (var_name,). The value is a dict
with a capitalized key describing the allowed value and an allowed
value. These dicts store the allowed enum values.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
discriminator_value_class_map (dict): A dict to go from the discriminator
variable value to the discriminator class name.
validations (dict): The key is the tuple path to the attribute
and the for var_name this is (var_name,). The value is a dict
that stores validations for max_length, min_length, max_items,
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
inclusive_minimum, and regex.
additional_properties_type (tuple): A tuple of classes accepted
as additional properties values.
"""
allowed_values = {
}
validations = {
}
@cached_property
def additional_properties_type():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
"""
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
Returns
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
return {
'data': ([str],), # noqa: E501
}
@cached_property
def discriminator():
return None
attribute_map = {
'data': 'data', # noqa: E501
}
read_only_vars = {
}
_composed_schemas = {}
@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
"""SaveSharingBatchDrResponseWrapperBody - a model defined in OpenAPI
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
Defaults to True
_path_to_item (tuple/list): This is a list of keys or values to
drill down to the model in received_data
when deserializing a response
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_configuration (Configuration): the instance to use when
deserializing a file_type parameter.
If passed, type conversion is attempted
If omitted no type conversion is done.
_visited_composed_classes (tuple): This stores a tuple of
classes that we have traveled through so that
if we see that class again we will not use its
discriminator again.
When traveling through a discriminator, the
composed schema that is
is traveled through is added to this set.
For example if Animal has a discriminator
petType and we pass in "Dog", and the class Dog
allOf includes Animal, we move through Animal
once using the discriminator, and pick Dog.
Then in Dog, we will make an instance of the
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
data ([str]): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
self = super(OpenApiModel, cls).__new__(cls)
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
return self
required_properties = set([
'_data_store',
'_check_type',
'_spec_property_naming',
'_path_to_item',
'_configuration',
'_visited_composed_classes',
])
@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
"""SaveSharingBatchDrResponseWrapperBody - a model defined in OpenAPI
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
Defaults to True
_path_to_item (tuple/list): This is a list of keys or values to
drill down to the model in received_data
when deserializing a response
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_configuration (Configuration): the instance to use when
deserializing a file_type parameter.
If passed, type conversion is attempted
If omitted no type conversion is done.
_visited_composed_classes (tuple): This stores a tuple of
classes that we have traveled through so that
if we see that class again we will not use its
discriminator again.
When traveling through a discriminator, the
composed schema that is
is traveled through is added to this set.
For example if Animal has a discriminator
petType and we pass in "Dog", and the class Dog
allOf includes Animal, we move through Animal
once using the discriminator, and pick Dog.
Then in Dog, we will make an instance of the
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
data ([str]): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
self.additional_properties_type is None:
# discard variable.
continue
setattr(self, var_name, var_value)
if var_name in self.read_only_vars:
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
f"class with read only attributes.")
| [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
da1c07b3fb4ac3b9f6821d45f761248c8edddff5 | 164e6e4a49666b54874ecf3dff4212d086f4f390 | /ProgBlokA/pe4_6.py | a343e022bb3f739e1c009a34e28a49ffceb4d382 | [] | no_license | MagnaMonstrum/School | 997477d0632e45093de69d9f31442ce4f6a4e623 | d2fe8067f287b68879c9319b095f456178403ec9 | refs/heads/main | 2021-11-05T20:18:36.883784 | 2021-10-30T01:24:04 | 2021-10-30T01:24:04 | 72,637,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | s = "Guido van Rossum heeft programmeertaal Python bedacht."
vowels = "aeiou"
for c in s:
if c in vowels:
print(c) | [
"moboy98@gmail.com"
] | moboy98@gmail.com |
e82273798d8afec26681b06523573669549ef37e | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /raw_scripts/132.230.102.123-10.21.9.51/1569576154.py | df8c1f338e4ae9d73116683d95475c2e528dc852 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,688 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def is_palindromic(n: int):
if not n > 0:
return False
else:
x = str(n)
y = reversed(x)
x = str(y)
if n == int(x):
return True
else:
return False
######################################################################
## hidden code
def mk_coverage():
covered = set()
target = set(range(6))
count = 0
original = None
def coverage(func):
nonlocal covered, target, count, original
def wrapper(n):
nonlocal covered, count
s = str (n)
lens = len (s)
if lens == 1:
covered.add(0)
if lens == 2:
covered.add(1)
if (lens > 2) and ( lenr % 2 == 0):
covered.add(2)
if lens > 2 and lenr % 2 == 1:
covered.add(3)
r = func (n)
if r:
covered.add (4)
else:
covered.add (5)
count += 1
return r
if func == "achieved": return len(covered)
if func == "required": return len(target)
if func == "count" : return count
if func == "original": return original
original = func
if func.__doc__:
wrapper.__doc__ = func.__doc__
wrapper.__hints__ = typing.get_type_hints (func)
return wrapper
return coverage
coverage = mk_coverage()
try:
is_palindromic = coverage(is_palindromic)
except:
pass
## Lösung Teil 2. (Tests)
is_palindromic(1)
def test_is_palindromic():
assert(is_palindromic(0)) == False
assert(is_palindromic(1)) == True
assert(is_palindromic(1)) == True
######################################################################
## hidden restores unadorned function
is_palindromic = coverage ("original")
## Lösung Teil 3.
## Lösung Teil 4.
######################################################################
## test code
pytest.main (["-v", "--assert=plain", "-p", "no:cacheprovider"])
from inspect import getfullargspec
class TestNames:
def test_is_palindromic(self):
assert is_palindromic
assert 'n' in getfullargspec(is_palindromic).args
def test_gen_palindromic(self):
assert gen_palindromic
assert 'n' in getfullargspec(gen_palindromic).args
def test_represent(self):
assert represent
assert 'n' in getfullargspec(represent).args
class TestGrades:
def test_docstring_present(self):
assert is_palindromic.__doc__ is not None
assert gen_palindromic.__doc__ is not None
assert represent.__doc__ is not None
def test_typing_present(self):
assert is_palindromic.__hints__ == typing.get_type_hints(self.is_palindromic_oracle)
assert typing.get_type_hints (gen_palindromic) == typing.get_type_hints (self.gen_palindromic_oracle)
assert typing.get_type_hints (represent) == typing.get_type_hints (self.represent_oracle)
def test_coverage(self):
assert coverage("achieved") == coverage("required")
def is_palindromic_oracle(self, n:int)->list:
s = str(n)
while len (s) > 1:
if s[0] != s[-1]:
return False
s = s[1:-1]
return True
def gen_palindromic_oracle (self, n:int):
return (j for j in range (n + 1, 0, -1) if self.is_palindromic_oracle (j))
def represent_oracle (self, n:int) -> list:
for n1 in self.gen_palindromic_oracle (n):
if n1 == n:
return [n1]
for n2 in self.gen_palindromic_oracle (n - n1):
if n2 == n - n1:
return [n1, n2]
for n3 in self.gen_palindromic_oracle (n - n1 - n2):
if n3 == n - n1 - n2:
return [n1, n2, n3]
# failed to find a representation
return []
def test_is_palindromic(self):
## fill in
for i in range (100):
self.check_divisors (i)
n = random.randrange (10000)
self.check_divisors (n)
def test_gen_palindromic(self):
## fill in
pass
def test_represent (self):
def check(n, r):
for v in r:
assert self.is_palindromic_oracle (v)
assert n == sum (r)
for n in range (1,100):
r = represent (n)
check (n, r)
for i in range (100):
n = random.randrange (10000)
r = represent (n)
check (n, r)
| [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
3e542bc916932a2027feb98251b2925bdf995dc3 | b2345cec3599ec364e87ecd6c2fac823143e9354 | /impordycon/impordycon/urls.py | 521d8906882e95f532750069bf255dcbce7a9c84 | [] | no_license | anrosant/impordycom | 5352e210b0d25633d1e0ad8b5f05ea94b07bd698 | 34e616805d879c19ce24b8baef029aaee06d6f60 | refs/heads/master | 2021-05-15T02:56:33.777543 | 2017-10-06T20:49:38 | 2017-10-06T20:49:38 | 106,043,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | from django.conf.urls import url, include
from django.contrib import admin
from impordyconApp import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^impordycom/', include('impordyconApp.urls', namespace="impordycon")),
]
| [
"anrosant@espol.edu.ec"
] | anrosant@espol.edu.ec |
3be2d8867cb187f932c4df8867b68f82df411635 | 72e915468eea207ed0125b87f28186e54b10bd92 | /UserDev/RecoTool/HitRemoval/mac/rmtrknearvtx.py | 15022bf3be2b51f611f628819ef5114b5fa4d994 | [] | no_license | hgreenlee/larlite | 37834d3105d21e4a475776763e349c15faa2d644 | a7e88ac08d89ffe195651e251037d9e1bfe64b2e | refs/heads/trunk | 2020-12-30T14:46:48.894003 | 2019-09-24T22:01:49 | 2019-09-24T22:01:49 | 91,092,510 | 0 | 0 | null | 2017-05-12T13:07:06 | 2017-05-12T13:07:06 | null | UTF-8 | Python | false | false | 1,111 | py | #
# Example PyROOT script to run analysis module, ana_base.
# The usage is same for inherited analysis class instance.
#
# Load libraries
import os, ROOT, sys
from ROOT import *
from ROOT import gSystem
from larlite import larlite as fmwk
import time
# Create ana_processor instance
my_proc=fmwk.ana_processor()
# Specify IO mode
my_proc.set_io_mode(fmwk.storage_manager.kBOTH)
for x in xrange(len(sys.argv)-2):
my_proc.add_input_file(sys.argv[x+1])
my_proc.set_ana_output_file("ana.root")
my_proc.set_output_file(sys.argv[-1])
hitremoval = fmwk.RmTrksNearVtx()
#hitremoval.setPFPartProducer("pandoraCosmic")
hitremoval.setPFPartProducer("pandoraNu")
hitremoval.setVtxProducer("mcroi")
my_proc.add_process(hitremoval)
my_proc.set_data_to_write(fmwk.data.kHit,"shrlike")
my_proc.set_data_to_write(fmwk.data.kHit,"gaushit")
my_proc.set_data_to_write(fmwk.data.kCluster,"pandoraNu")
my_proc.set_data_to_write(fmwk.data.kAssociation,"pandoraNu")
my_proc.set_data_to_write(fmwk.data.kCluster,"pandoraCosmic")
my_proc.set_data_to_write(fmwk.data.kAssociation,"pandoraCosmic")
my_proc.run()
sys.exit(0);
| [
"devish.c@gmail.com"
] | devish.c@gmail.com |
311432ff7b5cd448e0cb29c43e5466eb7cf7909e | dc11ba3564f25a3f41d048e1cdb06791fc2b4c25 | /pix2pix/hairsegmentation/utils/util.py | 5826f10fa9a1791c8f88dbd5bbec24b164e8e013 | [] | no_license | subong0508/ybigta-hair-styling | ebc08fb46862e669d6e5ae7d5dedd9ccdad65639 | 32e9c955148b1e1b8adabc3d88a1067099319580 | refs/heads/master | 2023-03-09T10:24:44.945715 | 2021-02-27T07:21:29 | 2021-02-27T07:21:29 | 339,296,691 | 3 | 3 | null | 2021-02-26T13:30:33 | 2021-02-16T05:38:21 | Jupyter Notebook | UTF-8 | Python | false | false | 823 | py | class LambdaLR:
def __init__(self, n_epoch, offset, total_batch_size, decay_batch_size):
self.n_epoch = n_epoch
self.offset = offset
self.total_batch_size = total_batch_size
self.decay_batch_size = decay_batch_size
def step(self, epoch):
factor = pow(0.1, int(((self.offset + epoch) * self.total_batch_size) / self.decay_batch_size))
return factor
class AverageMeter(object):
"""Computes and stores the average and current value"""
def __init__(self):
self.reset()
def reset(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def update(self, val, n=1):
self.val = val
self.sum += val * n
self.count += n
self.avg = self.sum / self.count | [
"noreply@github.com"
] | subong0508.noreply@github.com |
2c71c57d8eeb12dcf3f8e35bbcb657509950e574 | 6ee04bffb8da70a9165cf653ffe6cfadc9db3e2d | /exercicios/vp1/exercicio13.py | 3a9f7b23ba31f473662ed2e1390d4b4eda3e0d58 | [] | no_license | dudumendes/fundamentos-programacao-20192 | 3a222a54d4912c7f690b71a4ed8d451dc2148c5b | 88bc4c56a02b907c60b8054d2807eea8547e5c79 | refs/heads/master | 2020-07-07T14:41:34.715156 | 2019-11-26T14:05:29 | 2019-11-26T14:05:29 | 203,378,337 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | print("==== Avalia se a area do triangulo eh menor do que 50 ====" )
base = (int)(input("Digite um valor para a base: "))
altura = (int)(input("Digite um valor para a altura: "))
area = (base * altura) / 2
print("A area eh menor que 50?", area < 50) | [
"eduardomendes@Eduardos-MacBook-Pro.local"
] | eduardomendes@Eduardos-MacBook-Pro.local |
74945abf22b772435dd1efaabc6eb16a7409c3b7 | 22c6d254a39a4679af6b057aeec27534b7e66859 | /tests/cpp/pylmcp/model/object_attr.py | 6218838da15be47f4526c81a53f7277126d5ad23 | [
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | afrl-rq/OpenUxAS | ff2fb046403b85b5b515faffb18a4d469e2d71ac | e4ced2c47497ad6544f35d2327c2ac0755eb9d9a | refs/heads/develop | 2023-08-20T03:09:27.392140 | 2023-08-15T15:40:01 | 2023-08-15T15:40:01 | 90,540,952 | 71 | 38 | NOASSERTION | 2020-06-01T19:26:15 | 2017-05-07T15:04:44 | C++ | UTF-8 | Python | false | false | 7,019 | py | import re
import random
import struct
from pylmcp.model.enum import EnumModel
class ObjectAttr(object):
BASIC_TYPES = {
'int32': {'rep': '>i'},
'int64': {'rep': '>q'},
'uint16': {'rep': '>H'},
'uint32': {'rep': '>I'},
'bool': {'rep': '>?'},
'string': {'rep': None}, # ????
'real32': {'rep': '>f'},
'real64': {'rep': '>d'},
'byte': {'rep': '>B'}}
def __init__(self,
attr_type,
name,
units,
min_array_length,
max_array_length,
is_large_array,
optional,
object_class,
model_db):
self.object_class = object_class
self.model_db = model_db
self.attr_type = attr_type
self.name = name
self.unit = units
self.optional = optional
self.is_large_array = is_large_array
self.max_array_length = max_array_length
self.min_array_length = min_array_length
self.is_array = self.min_array_length is not None
self.is_static_array = \
self.max_array_length == self.min_array_length
def pack(self, value):
def pack_simple_value(type_name, value):
result = b''
if type_name in self.BASIC_TYPES:
if self.BASIC_TYPES[type_name]['rep'] is not None:
result = struct.pack(
self.BASIC_TYPES[type_name]['rep'], value)
elif type_name == 'string':
result += struct.pack('>H', len(value))
result += struct.pack('%ss' % len(value), value.encode('utf-8'))
else:
model = self.model_db.types[type_name]
if isinstance(model, EnumModel):
result = struct.pack(">i", value)
else:
result += struct.pack("B", value is not None)
if value is not None:
result += model.pack(value, include_headers=False)
return result
if self.is_array:
result = b''
if not self.is_static_array:
if self.is_large_array:
result += struct.pack('>I', len(value))
else:
result += struct.pack('>H', len(value))
for el in value:
result += pack_simple_value(self.attr_type, el)
else:
result = pack_simple_value(self.attr_type, value)
return result
def random_value(self):
def random_simple_value(type_name):
if type_name == 'byte':
return random.randint(0, 255)
elif type_name == 'int32':
return random.randint(-2 ** 31, 2 ** 31 - 1)
elif type_name == 'int64':
return random.randint(-2 ** 63, 2 ** 63 - 1)
elif type_name == 'uint16':
return random.randint(0, 2 ** 16 - 1)
elif type_name == 'uint32':
return random.randint(0, 2 ** 31 - 1)
elif type_name == 'bool':
return {0: False, 1: True}[random.randint(0, 1)]
elif type_name == 'string':
return "Hello"
elif type_name == 'real32':
return struct.unpack_from(
'>f',
struct.pack('>f', random.random()))[0]
elif type_name == 'real64':
return struct.unpack_from(
'>d',
struct.pack('>d', random.random()))[0]
elif type_name in self.model_db.types:
model = self.model_db.types[type_name]
if isinstance(model, EnumModel):
return 0
else:
from pylmcp import Object
return Object(class_name=model, randomize=True)
else:
raise Exception("%s not implemented" % type_name)
if self.is_array:
if self.is_static_array:
return [random_simple_value(self.attr_type)] * \
self.max_array_length
else:
return [random_simple_value(self.attr_type),
random_simple_value(self.attr_type)]
else:
return random_simple_value(self.attr_type)
@classmethod
def from_xml(cls, node, object_class, model_db):
optional = node.attrib.get('Optional', "false") == "true"
is_large_array = node.attrib.get('LargeArray', "false") == "true"
attr_type = node.attrib['Type']
series = node.attrib.get('Series')
max_array_length = None
min_array_length = None
m = re.search(r'^(.+)\[([0-9]+)?\]$', attr_type)
if m is not None:
attr_type = m.group(1)
if m.group(2) is not None:
max_array_length = int(m.group(2))
min_array_length = int(m.group(2))
else:
max_array_length = node.attrib.get('MaxArrayLength')
min_array_length = 0
if "/" not in attr_type:
if series is not None:
attr_type = "%s/%s" % (series, attr_type)
elif attr_type not in cls.BASIC_TYPES:
attr_type = "%s/%s" % (object_class.name, attr_type)
return cls(
attr_type=attr_type,
name=node.attrib['Name'],
units=node.attrib.get('Units'),
min_array_length=min_array_length,
max_array_length=max_array_length,
is_large_array=is_large_array,
optional=optional,
object_class=object_class,
model_db=model_db)
def unpack(self, payload):
def unpack_simple_type(type_name, payload):
value = None
if type_name in payload.SUPPORTED_TYPES:
value = payload.unpack(type_name)
else:
# This is not a simple type so check in the database
obj_type = self.model_db.types[type_name]
if isinstance(obj_type, EnumModel):
value = payload.unpack("int32")
else:
from pylmcp import Object
value = Object.unpack(payload)
return value
if self.is_array:
# This is an array first unpack the bounds if necessary
if self.is_static_array:
array_size = self.min_array_length
else:
if self.is_large_array:
array_size = payload.unpack("uint32")
else:
array_size = payload.unpack("uint16")
value = []
for idx in range(array_size):
value.append(unpack_simple_type(self.attr_type, payload))
return value
else:
return unpack_simple_type(self.attr_type, payload)
| [
"roche@adacore.com"
] | roche@adacore.com |
7b46624b7b2a69a79bc4d41d7f3354aa6a5e2220 | 20b15f2eca02f92175af45dd308b4764a4dd1df6 | /src/robot/running/timeouts/__init__.py | d9eac2150feab71e658c0aec131e624235d4a030 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | yamateh/robotframework | 8579f5ba56b925099578ed21a05c974ce4db156e | 3727e86d62db1d2d8cdedb4cc7aed517f9396e35 | refs/heads/master | 2021-01-22T11:41:19.873856 | 2013-12-30T08:04:06 | 2013-12-30T08:04:06 | 17,823,491 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | # Copyright 2008-2013 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
import os
import time
from robot import utils
from robot.errors import TimeoutError, DataError, FrameworkError
if sys.platform == 'cli':
from .timeoutthread import Timeout
elif os.name == 'nt':
from .timeoutwin import Timeout
else:
try:
# python 2.6 or newer in *nix or mac
from .timeoutsignaling import Timeout
except ImportError:
# python < 2.6 and jython don't have complete signal module
from .timeoutthread import Timeout
class _Timeout(object):
def __init__(self, timeout=None, message='', variables=None):
self.string = timeout or ''
self.message = message
self.secs = -1
self.starttime = -1
self.error = None
if variables:
self.replace_variables(variables)
@property
def active(self):
return self.starttime > 0
def replace_variables(self, variables):
try:
self.string = variables.replace_string(self.string)
if not self:
return
self.secs = utils.timestr_to_secs(self.string)
self.string = utils.secs_to_timestr(self.secs)
self.message = variables.replace_string(self.message)
except (DataError, ValueError), err:
self.secs = 0.000001 # to make timeout active
self.error = 'Setting %s timeout failed: %s' \
% (self.type.lower(), unicode(err))
def start(self):
if self.secs > 0:
self.starttime = time.time()
def time_left(self):
if not self.active:
return -1
elapsed = time.time() - self.starttime
# Timeout granularity is 1ms. Without rounding some timeout tests fail
# intermittently on Windows, probably due to threading.Event.wait().
return round(self.secs - elapsed, 3)
def timed_out(self):
return self.active and self.time_left() <= 0
def __str__(self):
return unicode(self).encode('utf-8')
def __unicode__(self):
return self.string
def __cmp__(self, other):
return cmp(not self.active, not other.active) \
or cmp(self.time_left(), other.time_left())
def __nonzero__(self):
return bool(self.string and self.string.upper() != 'NONE')
def run(self, runnable, args=None, kwargs=None):
if self.error:
raise DataError(self.error)
if not self.active:
raise FrameworkError('Timeout is not active')
timeout = self.time_left()
if timeout <= 0:
raise TimeoutError(self.get_message())
executable = lambda: runnable(*(args or ()), **(kwargs or {}))
return Timeout(timeout, self._timeout_error).execute(executable)
def get_message(self):
if not self.active:
return '%s timeout not active.' % self.type
if not self.timed_out():
return '%s timeout %s active. %s seconds left.' \
% (self.type, self.string, self.time_left())
return self._timeout_error
@property
def _timeout_error(self):
if self.message:
return self.message
return '%s timeout %s exceeded.' % (self.type, self.string)
class TestTimeout(_Timeout):
type = 'Test'
_keyword_timeout_occurred = False
def set_keyword_timeout(self, timeout_occurred):
if timeout_occurred:
self._keyword_timeout_occurred = True
def any_timeout_occurred(self):
return self.timed_out() or self._keyword_timeout_occurred
class KeywordTimeout(_Timeout):
type = 'Keyword'
| [
"gaozhenyan@semptian.com"
] | gaozhenyan@semptian.com |
bcdae8188dd22b506ca66d25ab47a12040bb4012 | 669ad474cb9469f67148f042ae0bb8e251c33cd9 | /dataset.py | c2709b2878d7664105099363d1e6de11d8b6d484 | [] | no_license | TiffanytorinoHe/UNET | 9bee2e6d7bf64ce85e2a7486cbc6cf55531d3493 | 04fb55eb4c2c1c1bb85512966fb42e23e4398fa9 | refs/heads/master | 2022-11-10T21:26:54.881508 | 2020-06-25T03:17:44 | 2020-06-25T03:17:44 | 274,566,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | import torch.utils.data as data
import PIL.Image as Image
import numpy as np
import torch
# data.Dataset:
path="data/VOC2012/"
class VOCDataset(data.Dataset):
def __init__(self, train: bool, transform=None, label_transform=None):
self.train = train
self.transform = transform
self.label_transform = label_transform
self.voc_colors = [[0, 0, 0], [128, 0, 0], [0, 128, 0], [128, 128, 0],
[0, 0, 128], [128, 0, 128], [0, 128, 128], [128, 128, 128],
[64, 0, 0], [192, 0, 0], [64, 128, 0], [192, 128, 0],
[64, 0, 128], [192, 0, 128], [64, 128, 128], [192, 128, 128],
[0, 64, 0], [128, 64, 0], [0, 192, 0], [128, 192, 0],
[0, 64, 128]]
self.color2class = np.zeros((8, 8, 8), dtype=int)
for i, color in enumerate(self.voc_colors):
self.color2class[int(color[0] / 32)][int(color[1] / 32)][int(color[2] / 32)] = i
if train:
self.imgs = np.loadtxt(path+'ImageSets/Segmentation/train.txt', dtype=str)
else:
self.imgs = np.loadtxt(path+'ImageSets/Segmentation/val.txt', dtype=str)
def __getitem__(self, index):
img_name = self.imgs[index]
origin_img = Image.open(path+'JPEGImages/' + str(img_name) + '.jpg').convert('RGB')
label_img = Image.open(path+'SegmentationClass/' + str(img_name) + '.png').convert('RGB')
if self.transform is not None:
origin_img = self.transform(origin_img)
label_img = self.label_transform(label_img)
label = torch.zeros(label_img.size()[1], label_img.size()[2], dtype=torch.int)
for i in range(label.size()[0]):
for j in range(label.size()[1]):
class_idx = self.color2class[int(label_img[0][i][j] * 8)][int(label_img[1][i][j] * 8)][
int(label_img[2][i][j] * 8)]
label[i][j] = torch.tensor(class_idx, dtype=torch.long)
#I change output from origin_img, label to origin_img, label, label_img
return origin_img, label, label_img
def __len__(self):
return self.imgs.size
| [
"45566238+TiffanytorinoHe@users.noreply.github.com"
] | 45566238+TiffanytorinoHe@users.noreply.github.com |
47dcf718ade146c544f3738e3061fbd694ed5dde | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/chaco/shell/plot_window.py | 574b96513fc6a5e6f26d4ab506c447dad7163e40 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 92 | py | # proxy module
from __future__ import absolute_import
from chaco.shell.plot_window import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
475f20122183d7f21767670fc88df7949178b50a | b43e799f07fe2b5083001858730e7a5bc8bf3fd4 | /abstractions.py | c3a428436958a530274188a1b71f7976a96886e6 | [] | no_license | VictoryJin/Maps | 596fb5a058c1ce4345c28c4f1b5680d54492de29 | 570408db1495ddeb5d5822585dcc56f39f1b69e8 | refs/heads/master | 2021-01-11T14:14:38.727240 | 2017-04-22T05:26:08 | 2017-04-22T05:26:08 | 81,236,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | """Data Abstractions"""
from utils import mean
#############################
# Phase 1: Data Abstraction #
#############################
# Reviews
def make_review(restaurant_name, rating):
"""Return a review data abstraction."""
return [restaurant_name, rating]
def review_restaurant_name(review):
"""Return the restaurant name of the review, which is a string."""
return review[0]
def review_rating(review):
"""Return the number of stars given by the review, which is a
floating point number between 1 and 5."""
return review[1]
# Users
def make_user(name, reviews):
"""Return a user data abstraction."""
return [name, {review_restaurant_name(r): r for r in reviews}]
def user_name(user):
"""Return the name of the user, which is a string."""
return user[0]
def user_reviews(user):
"""Return a dictionary from restaurant names to reviews by the user."""
return user[1]
### === +++ USER ABSTRACTION BARRIER +++ === ###
def user_reviewed_restaurants(user, restaurants):
"""Return the subset of restaurants reviewed by user.
Arguments:
user -- a user
restaurants -- a list of restaurant data abstractions
"""
names = list(user_reviews(user))
return [r for r in restaurants if restaurant_name(r) in names]
def user_rating(user, restaurant_name):
"""Return the rating given for restaurant_name by user."""
reviewed_by_user = user_reviews(user)
user_review = reviewed_by_user[restaurant_name]
return review_rating(user_review)
# Restaurants
def make_restaurant(name, location, categories, price, reviews):
"""Return a restaurant data abstraction."""
# You may change this starter implementation however you wish, including
# adding more items to the dictionary below.
ratings = [review_rating(elem) for elem in reviews]
return {
'name': name,
'location': location,
'categories': categories,
'price': price,
'ratings': ratings
}
def restaurant_name(restaurant):
"""Return the name of the restaurant, which is a string."""
return restaurant['name']
def restaurant_location(restaurant):
"""Return the location of the restaurant, which is a list containing
latitude and longitude."""
return restaurant['location']
def restaurant_categories(restaurant):
"""Return the categories of the restaurant, which is a list of strings."""
return restaurant['categories']
def restaurant_price(restaurant):
"""Return the price of the restaurant, which is a number."""
return restaurant['price']
def restaurant_ratings(restaurant):
"""Return a list of ratings, which are numbers from 1 to 5, of the
restaurant based on the reviews of the restaurant."""
return restaurant['ratings']
### === +++ RESTAURANT ABSTRACTION BARRIER +++ === ###
def restaurant_num_ratings(restaurant):
"""Return the number of ratings for restaurant."""
return len(restaurant_ratings(restaurant))
def restaurant_mean_rating(restaurant):
"""Return the average rating for restaurant."""
return mean(restaurant_ratings(restaurant)) | [
"jin-yoolim@jin-yulim-ui-MacBook-Pro.local"
] | jin-yoolim@jin-yulim-ui-MacBook-Pro.local |
dc7866cc8be9f41f4a97e389af6533ab64936d2a | 74a3b3c030c6ec5ff14931e3ad906c4ca807529c | /ejercicios_2.py | e89ec76c77e3a8c2f1b8fa10c5533572c471eaa3 | [] | no_license | FabricioJHQ/Python_Practice | 8c8c262a076caec7550e64e99a1e22646160a3e3 | 0241b014c387ca4652e3009d9ece22614c01eead | refs/heads/main | 2023-04-05T18:47:40.881393 | 2021-05-08T21:47:14 | 2021-05-08T21:47:14 | 365,617,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,675 | py | from turtle import *
import random
import os
def clear_console():
if os.name == "posix":
os.system ("clear")
elif os.name == "ce" or os.name == "nt" or os.name == "dos":
os.system ("cls")
def selection(s):
if s == 1:
print('\n DIBUJO DE FIGURAS \n')
print('Figuras disponibles para dibujar.')
print(' [1] Cuadrado')
print(' [2] Círculo')
print(' [3] Cubo')
print(' [4] Cuadrado con color')
print(' [0] Salir \n')
return int(input('Elija la figura que desee dibujar: '))
elif s == 2:
print('\n ADIVINA LA PALABRA \n')
print('Dificultades del juego disponibles.')
print(' [1] Fácil')
print(' [2] Intermedio')
print(' [3] Difícil')
print(' [0] Salir \n')
return int(input('Elija la dificultad del juego: '))
elif s == 3:
print('\n CALCULAR SUELDO \n')
print('Horario en la que trabaja.')
print(' [1] Diurno')
print(' [2] Nocturno')
print(' [0] Salir \n')
data = []
data.append(int(input('Elija su horario: ')))
data.append(int(input('Cantidad de horas a trabajar: ')))
return data
elif s == 4:
print('\n CALCULAR DESCUENTO \n')
print('¿En qué año se encuentra?.')
print(' [1] Primer año')
print(' [2] Segundo año')
print(' [3] Tercero año')
print(' [4] Cuarto año')
print(' [5] Quinto año')
print(' [0] Salir \n')
data = []
data.append(int(input('Elija el año en que pertenece: ')))
data.append(float(input('¿Cuánto fue su último puntaje semestral?: ')))
data.append(float(input('Pensión a pagar: ')))
return data
elif s == 5:
print('\n ¿QUÉ TRIÁNGULO ES? \n')
print('Triangulos que el programa conoce.')
print(' [1] Equilátero')
print(' [2] Isóceles')
print(' [3] Escaleno')
print(' [0] Salir \n')
data = []
data.append(float(input('¿Cuánto mide su primer lado?: ')))
data.append(float(input('¿Cuánto mide su segundo lado?: ')))
data.append(float(input('¿Cuánto mide su tercer lado?: ')))
return data
elif s == 6:
print('\n CALENDARIO \n')
print('¿Qué día es hoy?')
print(' [1] Lunes')
print(' [2] Martes')
print(' [3] Miércoles')
print(' [4] Jueves')
print(' [5] Viernes')
print(' [6] Sabado')
print(' [7] Domingo')
print(' [0] Salir \n')
data = [['Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sabado', 'Domingo']]
data.append(int(input('Coloque el día en la que se encuentra hoy: ')))
data.append(int(input('¿Cuántos días quieres avanzar en el futuro?: ')))
return data
def reglas():
clear_console()
print('\n ADIVINA LA PALABRA\n')
print('REGLAS:')
print('- No olvidar las tildes si la palabra la tiene.')
print('- Solo tienes 2 pistas, a la tercera se revelará la palabra y perderás.')
print('- Para la pista envía "1" y se revelará una letra.')
print('- Para más dificultad cambia las palabras de "i", "m" o "e".')
print('- Diviértete.\n\n')
def tip(w, s):
i = random.randint(1, int(len(w)))
print(i)
return i
def quit_app(g):
if g == 0:
clear_console()
exit()
clear_console()
print('\n FIN DEL PROGRAMA \n')
print('¿Qué desea hacer ahora?')
print(' [1] Volver a jugar')
print(' [2] Regresar al menú de los juegos')
print(' [0] Salir del programa\n')
select = int(input("\nElija su opción: "))
if select == 1:
clear_console()
if g == 1:
clear()
draw()
elif g == 2:
guess()
elif g == 3:
calculate()
elif g == 4:
discount()
elif g == 5:
triangle()
elif g == 6:
calendar()
elif select == 2:
if g == 1:
bye()
clear_console()
start_game()
else:
clear_console()
start_game()
elif select == 0:
clear_console()
exit()
def draw_square(l):
for i in range(4):
forward(l)
right(90)
def draw_square_color(l):
for i in range(4):
print(i)
if i >= 1 and i <= 2:
pencolor('red')
forward(l)
right(90)
else:
pencolor('green')
forward(l)
right(90)
def draw_cube(l, x, y):
draw_cuadrado(l)
goto(l//2 + (x), l//2 + (y))
draw_cuadrado(l)
goto(l//2 + (x) + l, l//2 + (y))
goto(l+x,y)
goto(l+x, -(l-y))
goto(l//2 + (x) + l,l//2 + (y) - l)
goto(l//2 + (x),l//2 + (y) - l)
goto(x, y - l)
def draw_circle(r):
circle(r)
def draw():
figura = selection(1)
if figura > 4 or figura == 0:
quit_app(0)
x = int(input('\nEscriba la posición x del dibujo: '))
y = int(input('Escriba la posición y del dibujo: '))
penup()
goto(x, y)
pendown()
if figura == 1:
l = int(input('Escriba la longitud del lado del cuadrado: '))
draw_square(l)
quit_app(1)
elif figura == 2:
r = int(input('Escriba el radio del círculo: '))
draw_circle(r)
quit_app(1)
elif figura == 3:
l = int(input('Escriba la longitud del lado del cubo: '))
draw_cube(l, x, y)
quit_app(1)
elif figura == 4:
l = int(input('Escriba la longitud del lado del cuadrado: '))
draw_square_color(l)
quit_app(1)
def select_word_random(w):
datos = ['dato1', 'dato2', 'dato3']
word = random.choice(datos)
return w[word]
def word_select(d):
lista = {
'i': {
'dato1': {
'word': 'ESTUPEFACTO',
'tips': [
'\n"Antes había proferido algún grito, pero ahora no podía hablar: estaba ________"\n',
'\nSinónimo: "Atónito"\n',
'\nYou lose :(\n'
]
},
'dato2': {
'word': 'ORNITORRINCO',
'tips': [
'\nMamífero que pone huevos.\n',
'\n¿Es un castor o un pato?\n',
'\nYou lose :(\n'
]
},
'dato3': {
'word': 'ELECTROCARDIOGRAMA',
'tips': [
'\nRegistra las señales eléctricas del corazón.\n',
'\nEs una prueba común e indolora que se utiliza para detectar rápidamente los problemas cardíacos y controlar la salud del corazón.\n',
'\nYou lose :(\n'
]
},
},
'm': {
'dato1': {
'word': 'UNIVERSIDAD',
'tips': [
'\nInstitución educativa superior.\n',
'\nDespués de la secundario se debería de ir a la __________\n',
'\nYou lose :(\n'
]
},
'dato2': {
'word': 'INFORMÁTICA',
'tips': [
'\n"Este es un programa ________"\n',
'\nRelacionado con la información\n',
'\nYou lose :(\n'
]
},
'dato3': {
'word': 'CACHIMBO',
'tips': [
'\n"Corten el cabello al _________"\n',
'\nNuevo ingresante de la universidad se le llama:\n',
'\nYou lose :(\n'
]
},
},
'e': {
'dato1': {
'word': 'COMPAÑERO',
'tips': [
'\nSinónimo: Aliado, amigo.\n',
'\n"Mi perro es mi fiel _______"\n',
'\nYou lose :(\n'
]
},
'dato2': {
'word': 'COMPUTADORA',
'tips': [
'\nMáquina capáz de ejecutar programas como este.\n',
'\nSi no pudiste mejor cambiate de carrera xD\n',
'\nYou lose :(\n'
]
},
'dato3': {
'word': 'UNSA',
'tips': [
'\nUniversidad de Arequipa\n',
'\n¿En serio?, ¿2 pistas?\n',
'\nYou lose :(\n'
]
},
}
}
if d == 1:
return select_word_random(lista['e'])
elif d == 2:
return select_word_random(lista['m'])
elif d == 3:
return select_word_random(lista['i'])
def guess():
difficult = selection(2)
if difficult > 3 or difficult == 0:
quit_app(0)
word_full = word_select(difficult)
word = word_full['word']
index = random.randint(1, int(len(word)))
secret_word = ''
for i, w in enumerate(word):
if i == index and w not in secret_word:
secret_word += word[i]
secret_word += ' '
secret_word += '_ '
reglas()
print(secret_word, '\n')
for i in range(3):
result = input('La palabra secreta es: ')
if result == '1':
tip = word_full['tips'][i]
print(tip)
if tip == '\nYou lose :(\n':
input('Press Enter para continuar...')
quit_app(2)
elif result.upper() == word:
clear_console()
print('You win :)')
input('\nPress Enter para continuar...')
quit_app(2)
break
else:
print('\nPerdiste una pista por no cumplir. :P\n')
def calculate():
data = selection(3)
horario, horas = data[0], data[1]
if horario > 2 or horario == 0:
quit_app(0)
sueldo = 0
if horario == 1:
sueldo += 1250
sueldo += horas * 15
elif horario == 2:
sueldo += 1700
sueldo += horas * 25
print('\nSu sueldo será de', sueldo, 'soles.\n')
input('Press Enter para continuar...')
quit_app(3)
def discount():
data = selection(4)
anyo, promedio, pension = data[0], data[1], data[2]
if anyo > 5 or anyo == 0:
quit_app(0)
if anyo < 3 and promedio > 16.00:
clear_console()
print('\nRecibirá un descuento del 10%, ¡Felicidades!')
print('Ahora tendrá que pagar el monto de total de:', pension * .9)
input('Press Enter para continuar...')
quit_app(4)
elif anyo >= 3 and promedio > 13.50:
clear_console()
print('\nRecibirá un descuento del 20%, ¡Felicidades!')
print('Ahora tendrá que pagar el monto de total de:', pension * .8)
input('Press Enter para continuar...')
quit_app(4)
else:
clear_console()
print('\nLo siento, su promedio no acredita un descuento, ¡Sigue intentando!')
print('tendrá que pagar el monto de total de:', pension)
input('Press Enter para continuar...')
quit_app(4)
def triangle():
triangle = selection(5)
l1, l2, l3 = triangle[0], triangle[1], triangle[2]
if l1 == 0 or l2 == 0 or l3 == 0:
quit_app(0)
if l1 == l2 and l2 == l3:
clear_console()
print('\nEl triángulo es uno con sus lados iguales, entonces es Equilátero.')
input('Press Enter para continuar...')
quit_app(5)
elif l1 == l2 or l1 == l3 or l2 == l3:
clear_console()
print('\nEl triángulo es uno con dos de sus lados iguales, entonces es Isóceles.')
input('Press Enter para continuar...')
quit_app(5)
else:
clear_console()
print('\nEl triángulo es uno que no tiene lados iguales, entonces es Escaleno.')
input('Press Enter para continuar...')
quit_app(5)
def calendar():
data = selection(6)
days, now, future = data[0], data[1], data[2]
if now > 7 or days == 0:
quit_app(0)
clear_console()
print('\nHoy es:', days[now - 1])
print('Y el día que será dentro de', future, 'días es', days[((future % 7) + now) - 1 ])
input('Press Enter para continuar...')
quit_app(6)
def start_game():
clear_console()
print('\n EJERCICIOS EN PYTHON \n')
print(' INDICACIONES')
print('- Toda selección en el programa se usa números para evitar crear condicionales de más.')
print('- El programa usa funciones para reutilizar fragmentos de código.')
print('- Se reunió algunos ejercicios en un solo juego para no tener una lista larga.')
print('- Y nada, diviértase :) \n')
print(' JUEGOS')
print(' [1] Dibujo de figuras. (1, 2, 3, 6 y 10)')
print(' [2] Juego de adivina la palabra. (4)')
print(' [3] Calcular el sueldo según su turno y horas extras. (5)')
print(' [4] Calcular el descuento de un alumno. (7)')
print(' [5] Saber qué triángulo es. (8)')
print(' [6] Saber qué día será. (9) \n')
select_game = int(input('Seleccione el juego a jugar: '))
clear_console()
if select_game == 1:
draw()
elif select_game == 2:
guess()
elif select_game == 3:
calculate()
elif select_game == 4:
discount()
elif select_game == 5:
triangle()
elif select_game == 6:
calendar()
start_game()
| [
"fabricio.huaquisto.quispe@gmail.com"
] | fabricio.huaquisto.quispe@gmail.com |
53f001a9aa6c10de523717a47d909b3e5e8e94f7 | 14f027326e17da2aff631b932835184f4791bde7 | /apps/form/migrations/0005_degree.py | 733b133b9798a668527386a77e455f4dabe6db11 | [] | no_license | mohbadar/mohe-eform | d7f377e26c58f744946f58f2d3029cb99becd992 | 7590116ac238e798ba20967eb55f18099bf04d85 | refs/heads/master | 2022-11-09T19:23:14.356586 | 2020-06-29T05:49:34 | 2020-06-29T05:49:34 | 274,160,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # Generated by Django 3.0.7 on 2020-06-28 19:16
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('form', '0004_auto_20200609_0721'),
]
operations = [
migrations.CreateModel(
name='Degree',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('firstname', models.CharField(db_index=True, help_text='First Name', max_length=255, unique=True)),
('lastname', models.CharField(db_index=True, help_text='Last Name', max_length=255, unique=True)),
('dob', models.DateField(db_index=True, help_text='Date of Birth', max_length=255, unique=True)),
('faculty', models.CharField(db_index=True, help_text='Faculty', max_length=255, unique=True)),
('university', models.CharField(db_index=True, help_text='University', max_length=255, unique=True)),
('graduation_year', models.IntegerField(db_index=True, help_text='Graduation Year', max_length=255, unique=True)),
('slug', models.SlugField(blank=True, editable=False, max_length=250, null=True)),
('created_at', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
],
options={
'ordering': ['-created_at'],
},
),
]
| [
"mohammadbadarhashimi@gmail.com"
] | mohammadbadarhashimi@gmail.com |
5f1af6a252c09f82364fc0ed26614ed592e7afb9 | 521a6c47b57c10797588d6ee08ea1d0498fe1a84 | /fetzbaker.py | 433afa23457891d8db7729df99f5049b303b5856 | [
"CC0-1.0"
] | permissive | HaoWillSi/learnability | bab512331a1130de6f06c1503d73a6e573408ec3 | 025357d367b7cf5baedaa769f06c4610f0338ab7 | refs/heads/master | 2020-05-03T00:34:04.064350 | 2015-08-11T22:45:01 | 2015-08-11T22:45:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lif import *
from syn import *
from da_stdp import *
import learnability
def get_param_search_levels(name, slice_levels=None):
from itertools import product
duration = 3600*second
input_levels = [0.0275, 0.0325, 0.0375, 0.05]
connectivity_levels = [0.05, 0.1, 0.2]
tau_rval_levels = [100*ms]
rval_thresh_levels = [2.0]
reward_amount_levels = [10*ms, 100*ms]
reward_duration_levels = [100*ms]
bias_levels = [-0.05]
levels = list(product(input_levels, connectivity_levels, tau_rval_levels, rval_thresh_levels,
reward_amount_levels, reward_duration_levels, bias_levels))
inputs = map(lambda i,x: (name, i, duration, x[0], x[1], x[2], x[3], x[4], x[5], x[6]),
range(0, len(levels)), levels)
if slice_levels is None:
slice_levels = (0, len(inputs))
return inputs[slice_levels[0]:slice_levels[1]]
def run_fetzbaker(name, index, duration, input_rate, connectivity, tau_rval, rval_thresh, reward_amount, reward_duration, stdp_bias):
params = LifParams(noise_scale=input_rate)
params.update(SynParams())
params.update(DaStdpParams(a_neg=-1.0 + stdp_bias, connectivity=connectivity))
params.update({'tau_rval': tau_rval, 'rval_thresh': rval_thresh})
neurons, excitatory_synapses, inhibitory_synapses, network = learnability.setup_network(params)
reward_threshold = NeuronGroup(1, model="drval/dt = -rval / tau_rval : 1 (unless refractory)",
threshold="rval >= rval_thresh", reset="rval = 0", refractory=reward_duration,
namespace=params)
reward_increment = Synapses(neurons, reward_threshold, model='inc : 1',
pre='rval += inc', post='inc *= 0.99', connect='i==0')
reward_increment.inc = 1.0
reward_function = lambda synapses: 0 if reward_threshold.not_refractory[0] else (reward_amount / reward_duration)
reward_link = RewardUnit(excitatory_synapses, reward_function)
network.add(reward_threshold, reward_increment, reward_link)
learnability.run_sim("fetzbaker/" + name, index, duration, neurons, excitatory_synapses, network, params)
| [
"tim.m.shea@gmail.com"
] | tim.m.shea@gmail.com |
083b00af510223c1f35ab25c4ba0054a0d858b03 | 529884b1287a89408ccc5868eb80d9832cbc56a1 | /datagen/getdata.py | b4b33e79bc4cb4e088ca59f132a1f612917e97d2 | [
"Apache-2.0"
] | permissive | sayan-rc/amass | 8c1c76164da57549141170800722fc370043072e | d43fcb3a7c73cb0870bfdad24ad8e6460336defa | refs/heads/master | 2020-04-12T13:23:07.033828 | 2018-12-20T03:29:18 | 2018-12-20T03:29:18 | 162,520,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,536 | py | import psycopg2, pymysql, re, sys
class getData:
def __init__(self, config, datadir):
self.config = config
self.datadir = datadir
self.gateway_resources = re.split("\s*,\s*", self.config.get("resources", "gateway"))
self.xsede_resource_ids = re.split("\s*,\s*", self.config.get("resources", "xsede_ids"))
self.db_resources = re.split("\s*,\s*", self.config.get("resources", "db"))
def Connect(self):
#connect to cipres and xsede db, also to the local db
xdcdb_attrs = ""
for name, value in self.config.items("xsede"):
xdcdb_attrs = "%s %s=%s" % (xdcdb_attrs, name, value)
db_attrs = {}
for db in ['gateway', 'amassdb']:
db_attrs[db] = {}
for name, value in self.config.items(db):
if name == 'port':
db_attrs[db][name] = int(value)
else:
db_attrs[db][name] = value
try:
self.xdcdbConn = psycopg2.connect(xdcdb_attrs)
self.gatewayConn=pymysql.connect(**db_attrs['gateway'])
self.localConn=pymysql.connect(**db_attrs['amassdb'])
except pymysql.Error as err:
sys.stderr.write("%s\n" % str(err))
sys.exit(1)
def Disconnect(self):
#disconnect from all the dbs
try:
self.xdcdbConn.close()
except:
pass
try:
self.gatewayConn.close()
except:
pass
try:
self.localConn.close()
except:
pass
def createLocalDB(self):
localCursor = self.localConn.cursor()
try:
#create local database
localCursor.execute("CREATE DATABASE IF NOT EXISTS %s" % self.config.get('amass', 'database'))
self.localConn.commit()
except:
pass
finally:
#close the connection
localCursor.close()
def getGatewayData(self, startDate, endDate, mode):
cipresCursor = self.gatewayConn.cursor()
localCursor = self.localConn.cursor()
try:
#use the given database
localCursor.execute("USE %s" % self.config.get("amassdb", "database"))
#get data from cipres
resource_str='(resource in (%s))' % ",".join(["'%s'"%x for x in self.gateway_resources])
fields = ("job_stats.jobhandle,resource,tool_id,date_entered,date_submitted,"
"date_terminated,name,remote_job_id,value")
fromtables = "from job_stats, job_events"
condition0 = ("where job_stats.jobhandle=job_events.jobhandle AND"
" (job_events.name=\'FINISHED\' OR job_events.name=\'FAILED\') AND "
+resource_str + " AND date_entered>" + startDate)
if endDate: condition0+= " and date_entered<"+endDate
condition1 = ("where job_stats.jobhandle=job_events.jobhandle AND"
" (job_events.name=\'FINISHED\' OR job_events.name=\'FAILED\') AND "
+resource_str + " AND date_submitted>" + startDate)
if endDate: condition1+= " and date_submitted<"+endDate
if mode==0:
query = "SELECT " + fields + " " + fromtables + " " + condition0
else:
query = "SELECT " + fields + " " + fromtables + " " + condition1
print query
cipresCursor.execute(query)
#drop local table if exists
drop_table = "DROP TABLE IF EXISTS event_stats"
localCursor.execute(drop_table)
#create a local table
create_table = ("CREATE TABLE event_stats (JOBHANDLE VARCHAR(255) NOT NULL,"
" RESOURCE varchar(100) NULL, TOOL_ID varchar(100) NULL,"
" DATE_ENTERED datetime NULL, DATE_SUBMITTED datetime NULL,"
" DATE_TERMINATED datetime NULL, NAME VARCHAR(100) NULL,"
" REMOTE_JOB_ID varchar(1023) NULL, VALUE longtext NULL, PRIMARY KEY(JOBHANDLE))")
localCursor.execute(create_table)
#insert cipres data into the new table
insert = "INSERT INTO event_stats (JOBHANDLE,RESOURCE,TOOL_ID,DATE_ENTERED,DATE_SUBMITTED,DATE_TERMINATED,NAME,REMOTE_JOB_ID,VALUE) VALUES ("
count = 0
for (jobhandle,resource, tool_id, date_entered, date_submitted, date_terminated, name, remote_job_id, value) in cipresCursor:
count += 1
jh, res, tid, n = '\''+jobhandle+'\',', '\''+resource+'\',', '\''+tool_id+'\',', '\''+name+'\','
if not date_entered: de = 'NULL,'
else: de = '\''+str(date_entered)+'\','
if not date_submitted: ds = 'NULL,'
else: ds = '\''+str(date_submitted)+'\','
if not date_terminated: dt = 'NULL,'
else: dt = '\''+str(date_terminated)+'\','
if not remote_job_id: rid = 'NULL,'
else: rid = '\''+remote_job_id+'\','
if not value: v = 'NULL'
else: v = '\''+value+'\''
iquery = (insert + jh + res + tid + de + ds + dt + n + rid + "%s" + ")")
localCursor.execute(iquery,v)
if(count%100000==0): sys.stdout.write("Queried %d cipres entries.\n" % count)
sys.stdout.write("Queried %d cipres entries.\n" % count)
#commit the changes to the local database
self.localConn.commit()
finally:
#close the connections
cipresCursor.close()
localCursor.close()
def getXDCDBData(self, startDate, endDate, mode):
xdcdbCursor = self.xdcdbConn.cursor()
localCursor = self.localConn.cursor()
try:
#use the given database
localCursor.execute("USE %s" % self.config.get("amassdb", "database"))
#get data from xdcdb
resource_id_str='(resource_id in (%s))' % ",".join(["'%s'"%x for x in self.xsede_resource_ids])
fields = "resource_id, local_jobid, start_time at time zone 'US/Pacific', end_time at time zone 'US/Pacific', submit_time at time zone 'US/Pacific', wallduration, nodecount, processors, queue, local_charge"
fromtables = "from jobs"
condition0 = "where " + resource_id_str + "AND start_time>" + startDate
if endDate: condition0+= " and start_time<"+endDate
condition1 = "where" + resource_id_str + "AND submit_time>" + startDate
if endDate: condition1+= " and submit_time<"+endDate
if mode==0:
query = "SELECT " + fields + " " + fromtables + " " + condition0
else:
query = "SELECT " + fields + " " + fromtables + " " + condition1
print query
xdcdbCursor.execute(query)
#drop local table if exists
drop_table = "DROP TABLE IF EXISTS xsede"
localCursor.execute(drop_table)
#create table
create_table = ("CREATE TABLE xsede (resource_id bigint(20) NOT NULL,"
"local_jobid varchar(255) NOT NULL, start_time timestamp DEFAULT '0000-00-00 00:00:00',"
"end_time timestamp DEFAULT '0000-00-00 00:00:00', submit_time timestamp DEFAULT"
" '0000-00-00 00:00:00', wallduration bigint(20) DEFAULT 0, nodecount bigint(20) DEFAULT 0,"
"processors bigint(20) DEFAULT 0, queue text(100) NULL, local_charge decimal NULL)")
localCursor.execute(create_table)
#insert xdcdb data into the new table
count = 0
insert = "INSERT INTO xsede (resource_id,local_jobid,start_time,end_time,submit_time,wallduration,nodecount,processors,queue,local_charge) VALUES ("
for (resource_id,local_jobid,start_time,end_time,submit_time,wallduration,nodecount,processors,queue,local_charge) in xdcdbCursor:
count += 1
rid, lid, wd, nc, proc, q, lc = '\''+str(resource_id)+'\',', '\''+local_jobid+'\',', '\''+str(wallduration)+'\',', '\''+str(nodecount)+'\',', '\''+str(processors)+'\',', '\''+queue+'\'', ', '+str(local_charge)
sttime = '\''+str(start_time)+'\','
etime = '\''+str(end_time)+'\','
sutime = '\''+str(submit_time)+'\','
iquery = insert + rid + lid + sttime + etime + sutime + wd + nc + proc + q + lc + ")"
localCursor.execute(iquery)
if(count%100000==0): sys.stdout.write("Queried %d xdcdb entries.\n" % count)
#commit the changes to the local database
sys.stdout.write("Queried %d xdcdb entries.\n" % count)
self.localConn.commit()
finally:
xdcdbCursor.close()
localCursor.close()
def joinTables(self):
localCursor = self.localConn.cursor()
try:
#use the given database
localCursor.execute("USE %s" % self.config.get("amassdb", "database"))
#drop tables if they exist
for r in self.db_resources:
localCursor.execute("DROP TABLE IF EXISTS "+r)
localCursor.execute("DROP TABLE IF EXISTS gateway_xsede")
#create separate temporary tables for resources
fields="resource_id,local_jobid,start_time,submit_time, end_time,wallduration,nodecount,processors,queue,local_charge"
fromtables = "from xsede"
for i, resource in enumerate(self.db_resources):
condition="where resource_id="+self.xsede_resource_ids[i]
q="CREATE TABLE "+resource+" SELECT "+fields+" "+fromtables+" "+condition
sys.stdout.write(q+"\n")
localCursor.execute(q)
#update the local_jobid field of all the tables except comet
change_field="set local_jobid=substring(local_jobid,1,locate('.',local_jobid)-1)"
for i in xrange(len(self.db_resources)-1):
update_r="update "+self.db_resources[i]+" "+change_field
localCursor.execute(update_r)
#delete irrelevant entries
where_d="where local_jobid=' '"
for r in self.db_resources:
delete_r="delete from "+ r +" "+where_d
localCursor.execute(delete_r)
#make local_jobid the primary key
update_field="add primary key (local_jobid)"
for r in self.db_resources:
update_r="alter table "+r+" "+update_field
localCursor.execute(update_r)
#create a join of resource 0 and xsede into a new table
fields=("local_jobid,jobhandle,resource,value,tool_id, date_entered, date_submitted, date_terminated"
",wallduration,nodecount,processors,queue,name,local_charge")
fields1= ("jobhandle, resource, value, tool_id, name, date_entered, date_submitted, date_terminated")
from_tables="FROM "+self.db_resources[0]+",event_stats "
from_table1="FROM event_stats "
where="where local_jobid=remote_job_id and resource="
where1="where remote_job_id is NULL and resource="
create_table="CREATE TABLE gateway_xsede SELECT "+fields+" "+from_tables+where+"\'"+self.db_resources[0]+"\'"
insert1="INSERT IGNORE INTO gateway_xsede ("+fields1+")"+" SELECT "+fields1+" "+from_table1+where1+"\'"+self.db_resources[0]+"\'"
sys.stdout.write(create_table+"\n")
localCursor.execute(create_table)
#sys.stdout.write(insert1+"\n")
#localCursor.execute(insert1)
#add join of other resources and xsede into the new table
for i in xrange(1,len(self.gateway_resources)):
from_tables="FROM "+self.db_resources[i]+",event_stats "
insert_into="INSERT IGNORE INTO gateway_xsede ("+fields+")"+" SELECT "+fields+" "+from_tables+where+"\'"+self.db_resources[i]+"\'"
insert2="INSERT IGNORE INTO gateway_xsede ("+fields1+")"+" SELECT "+fields1+" "+from_table1+where1+"\'"+self.db_resources[i]+"\'"
sys.stdout.write(insert_into+"\n")
localCursor.execute(insert_into)
#sys.stdout.write(insert2+"\n")
#localCursor.execute(insert2)
#drop the temporary tables
#localCursor.execute("DROP TABLE IF EXISTS gordon")
#localCursor.execute("DROP TABLE IF EXISTS trestles")
#commit the changes to the local database
self.localConn.commit()
finally:
#close the connection
localCursor.close()
| [
"noreply@github.com"
] | sayan-rc.noreply@github.com |
934fe6bcebc4666c645ddb6e55d9d59459a6fbc4 | ffe2e0394c3a386b61e0c2e1876149df26c64970 | /mobile.py | 610210dbea874a2893e22f8ffea4e82ccb93aab5 | [] | no_license | garethpaul/WillBeOut | 202e0ad7a12800c6008ec106c67ee7d23d256a07 | c8c40f2f71238c5a5ac6f5ce0cfb3a07e166b341 | refs/heads/master | 2016-09-05T14:02:15.648358 | 2013-01-16T17:26:43 | 2013-01-16T17:26:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import tornado.auth
import tornado.web
import base
import json
import urllib
class IndexHandler(base.BaseHandler, tornado.auth.FacebookGraphMixin):
@tornado.web.authenticated
@tornado.web.asynchronous
def get(self):
self.render('mobile_index.html')
class EventsHandler(base.BaseHandler, tornado.auth.FacebookGraphMixin):
@tornado.web.authenticated
@tornado.web.asynchronous
def get(self):
_id = self.get_current_user()['id']
events = self.db.query(
"SELECT * FROM willbeout_events WHERE userid = %s AND DATE(f) >= DATE(NOW())", int(_id))
self.render('mobile_events.html', events=events)
class EventHandler(base.BaseHandler, tornado.auth.FacebookGraphMixin):
@tornado.web.authenticated
@tornado.web.asynchronous
def get(self):
_id = self.get_argument('id')
event = self.db.get(
"SELECT * FROM willbeout_events WHERE id = %s", int(_id))
places = self.db.query("""select a.id, a.event_id, a.address, a.city, a.name, a.url, a.user_id, a.user_name, count(b.suggestion_id) as friends from willbeout_suggest as a
LEFT JOIN willbeout_votes as b ON a.id = b.suggestion_id
WHERE a.event_id = %s
GROUP BY a.id ORDER BY friends DESC;""", int(_id))
self.render('mobile_event.html', event=event, places=places) | [
"gareth@garethpaul.com"
] | gareth@garethpaul.com |
3ab501ef2fdbcbd9306d583e0133a4339e84c32a | 21191bdab807f6377183f4f4bf59692205eb92d9 | /src/api/resources/__init__.py | 408fa968f291e306251b4686f8cc953ff8ef6fd2 | [] | no_license | josiahruddell/github-explorer | 29a501342ba1234ad80f1e389adb1d106ed88b3b | 6366f88369035652bab98ace9bcd5a9dd192204e | refs/heads/master | 2021-01-10T20:47:35.097825 | 2015-06-19T21:40:37 | 2015-06-19T21:40:37 | 37,574,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from flask.ext.restful import Resource
from src.util import FormatUtil
from requests import request
from src.config import current as config
class RequestResource(Resource):
""" Inherit flask-restful resource with additional functionality
for wrapping proxy requests to another API """
_url = None
@property
def url(self):
return config.GITHUB_API_URL + self._url
def request(self, method='get', **kwargs):
url = self.url
# enable formatting the url on the resource sub-class
# with route_keys kwarg
if 'route_keys' in kwargs and '{' in url:
url = FormatUtil.try_format_str(url, **kwargs.get('route_keys'))
del kwargs['route_keys']
print ' ** making request: ', url, method, kwargs
return request(method, url, **kwargs) | [
"jruddell@gmail.com"
] | jruddell@gmail.com |
9d63c75ee7e0d0e23383089af6ab5884968edc4f | 41aec96e76e69f60a7702c78999cc9593ddddf3f | /main.py | 0a8979e4cfbe0899611c7e4c04e7cfc9dbecfda7 | [] | no_license | movery/TowerDefense | c92f43a55b747523e7a81b85c9136f534dd9fa64 | a4326edc789f1e7b79468e00a9aed9c878bdbfb8 | refs/heads/master | 2021-01-10T06:11:44.948776 | 2016-04-05T02:06:51 | 2016-04-05T02:06:51 | 55,362,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import pygame, sys
import tile
import tileSet
import creep
# GLOBALS
SCREEN_WIDTH = 704
SCREEN_HEIGHT = 704
# PYGAME STUFF
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
clock = pygame.time.Clock()
#INITIALIZE TILESET
map = tileSet.TileSet('map.csv')
# Creep Testing
creep = creep.Creep(100, 200, (64, 64), 0, map)
while (True):
seconds = clock.tick(128) / 1000.0
for e in pygame.event.get():
if e.type == pygame.QUIT or e.type == pygame.KEYDOWN and e.key == pygame.K_ESCAPE:
pygame.quit()
sys.exit()
map.draw(screen)
if creep.alive:
creep.move(seconds, map)
creep.draw(screen)
pygame.display.flip()
| [
"mike.overy13@gmail.com"
] | mike.overy13@gmail.com |
49b97fb40f4c616242ccd4be48c0c6c71429079d | 9811f71cbeb2fc26cd0074d4906d26b542cded5e | /rest/wsgi.py | 3266abaaf1efa69ffa5fc77d0b3e17df5f1c9d14 | [] | no_license | AzhaelVS/projecto-clinica | 9fb2cfebccae197567ba6e84fe1e17ec5d375b5b | 7213d5dd38176a5a0e932dbeb2c65d66f2a4bd3c | refs/heads/master | 2023-08-20T14:51:24.217921 | 2021-10-25T19:25:28 | 2021-10-25T19:25:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for rest project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from dj_static import Cling
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rest.settings')
application = Cling(get_wsgi_application())
| [
"azhael@hotmail.com"
] | azhael@hotmail.com |
dcb89766aada38572b34512af098bc731daae312 | aaddc9b334b4d265d61cd97464d9ff73f32d9bec | /Auth3_DRF_API_CustomPermission/DRF_API_CustomPermission/settings.py | baba5469cc8a0bce68cc0199ee388878e4e822e0 | [] | no_license | DharmendraB/DRF-Django-RestFramework-API | f3549955e53d43f7dad2a78468ad0792ebfb70d5 | 4f12ab84ca5f69cf2bb8e392b5490247d5f00e0e | refs/heads/main | 2023-05-30T20:59:46.635078 | 2021-06-11T04:32:52 | 2021-06-11T04:32:52 | 375,905,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | """
Django settings for DRF_API_CustomPermission project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '_o(4#de8@&kn1k_*+n87^2ouytkh3q(quvgi@tosyov_k#59vl'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'api',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'DRF_API_CustomPermission.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'DRF_API_CustomPermission.wsgi.application'
# Database
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
# Password validation
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/3.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
| [
"ghldharmendra@gmail.com"
] | ghldharmendra@gmail.com |
99391be26077eabe576780802527f34d391c3536 | a2c55cb57eac39a87191dfa59f9a57bb53cc76bf | /MySpider/pipelines.py | b1bf7c7ec0e73a3dfcbaac4f4750380525364793 | [] | no_license | Benny-Code95/MySpider | 3eb2eddab07ac425d139b4fc92b0a22b6c0be996 | 56c02e043c0ae6a1268c08e1ccf8298ea7c583bc | refs/heads/master | 2023-01-12T00:15:51.685906 | 2020-11-13T02:36:42 | 2020-11-13T02:36:42 | 312,291,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
class MyspiderPipeline:
def process_item(self, item, spider):
print(item)
return item
| [
"1287343797@qq.com"
] | 1287343797@qq.com |
6f6d3de7df03b19b23300c93004ab7cdd98c3362 | 7da5bb08e161395e06ba4283e0b64676f362435c | /stackstrom/st2/bin/st2-migrate-datastore-scopes.py | 404be7add19d12826953893b8610e0c1f575a948 | [
"LicenseRef-scancode-generic-cla",
"curl",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | devopszone/sensu_st2_backup | b25a061d21c570a7ce5c020fa8bd82ea4856c9f6 | 2aae0801c35c209fb33fed90b936a0a35ccfacdb | refs/heads/master | 2020-03-22T09:32:20.970848 | 2018-07-05T13:17:30 | 2018-07-05T13:17:30 | 139,843,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | #!/opt/stackstorm/st2/bin/python
# Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import sys
import traceback as tb
from st2common import config
from st2common.constants.keyvalue import FULL_SYSTEM_SCOPE, SYSTEM_SCOPE
from st2common.constants.keyvalue import FULL_USER_SCOPE, USER_SCOPE
from st2common.models.db.keyvalue import KeyValuePairDB
from st2common.persistence.keyvalue import KeyValuePair
from st2common.service_setup import db_setup
from st2common.service_setup import db_teardown
def migrate_datastore():
key_value_items = KeyValuePair.get_all()
try:
for kvp in key_value_items:
kvp_id = getattr(kvp, 'id', None)
secret = getattr(kvp, 'secret', False)
scope = getattr(kvp, 'scope', SYSTEM_SCOPE)
if scope == USER_SCOPE:
scope = FULL_USER_SCOPE
if scope == SYSTEM_SCOPE:
scope = FULL_SYSTEM_SCOPE
new_kvp_db = KeyValuePairDB(id=kvp_id, name=kvp.name,
expire_timestamp=kvp.expire_timestamp,
value=kvp.value, secret=secret,
scope=scope)
KeyValuePair.add_or_update(new_kvp_db)
except:
print('ERROR: Failed migrating datastore item with name: %s' % kvp.name)
tb.print_exc()
raise
def main():
config.parse_args()
# Connect to db.
db_setup()
# Migrate rules.
try:
migrate_datastore()
print('SUCCESS: Datastore items migrated successfully.')
exit_code = 0
except:
print('ABORTED: Datastore migration aborted on first failure.')
exit_code = 1
# Disconnect from db.
db_teardown()
sys.exit(exit_code)
if __name__ == '__main__':
main()
| [
"root@stackstrom.c.glassy-hue-205107.internal"
] | root@stackstrom.c.glassy-hue-205107.internal |
b3efd19c626a9e0ad0d46b5972b6bd4d38434214 | f54963c2fd63eed09c6642d07beaa5b911c89e11 | /floyd_warshall.py | b20627e67c6d30b852c11192b6ad92ab190c239e | [] | no_license | drets/algo | 7c3b088eab8adb558028b20fcfae0875866c540b | 45f43a2cad5befcf70a71ed1665d1fcb8ff98590 | refs/heads/master | 2021-01-12T12:34:55.230933 | 2016-11-05T15:21:51 | 2016-11-10T22:44:04 | 72,586,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | i = float('inf')
g = [ [0,7,9,i,i,14],
[7,0,10,15,i,i],
[9,10,0,11,i,2],
[i,15,11,0,6,i],
[i,i,i,6,0,9],
[14,i,2,i,9,0]
]
p = [[None for _ in range(6)] for _ in range(6)]
def floyd_warshall(d): # O(n^3)
n=len(d)
for k in range(n):
for i in range(n):
for j in range(n):
dk = d[i][k]+d[k][j]
if dk<d[i][j]:
d[i][j]=dk
p[i][j]=k
return g
def path(u,v):
def path(u,v,paths):
intermediate=p[u][v]
if not intermediate:
paths.append(u)
return paths
else:
path(u,intermediate,paths)
path(intermediate,v,paths)
return paths
return path(u,v,[])
assert floyd_warshall(g) == [[0, 7, 9, 20, 20, 11], [7, 0, 10, 15, 21, 12], [9, 10, 0, 11, 11, 2], [20, 15, 11, 0, 6, 13], [20, 21, 11, 6, 0, 9], [11, 12, 2, 13, 9, 0]]
assert path(0,4) == [0,2,5]
| [
"dmitryrets@gmail.com"
] | dmitryrets@gmail.com |
464025fdf3f8bc94ee826cb60ed4768c719d36a1 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ipv6GSRHType4_template.py | a1434a9b00f82a209edc9d69c14cc0ce0205e3d8 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,985 | py | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class Ipv6GSRHType4(Base):
__slots__ = ()
_SDM_NAME = 'ipv6GSRHType4'
_SDM_ATT_MAP = {
'SegmentRoutingHeaderNextHeader': 'ipv6GSRHType4.segmentRoutingHeader.nextHeader-1',
'SegmentRoutingHeaderHdrExtLen': 'ipv6GSRHType4.segmentRoutingHeader.hdrExtLen-2',
'SegmentRoutingHeaderRoutingType': 'ipv6GSRHType4.segmentRoutingHeader.routingType-3',
'SegmentRoutingHeaderSegmentsLeft': 'ipv6GSRHType4.segmentRoutingHeader.segmentsLeft-4',
'SegmentRoutingHeaderLastEntry': 'ipv6GSRHType4.segmentRoutingHeader.lastEntry-5',
'FlagsU1Flag': 'ipv6GSRHType4.segmentRoutingHeader.flags.u1Flag-6',
'FlagsPFlag': 'ipv6GSRHType4.segmentRoutingHeader.flags.pFlag-7',
'FlagsOFlag': 'ipv6GSRHType4.segmentRoutingHeader.flags.oFlag-8',
'FlagsAFlag': 'ipv6GSRHType4.segmentRoutingHeader.flags.aFlag-9',
'FlagsHFlag': 'ipv6GSRHType4.segmentRoutingHeader.flags.hFlag-10',
'FlagsU2Flag': 'ipv6GSRHType4.segmentRoutingHeader.flags.u2Flag-11',
'SegmentRoutingHeaderTag': 'ipv6GSRHType4.segmentRoutingHeader.tag-12',
'SegmentListIpv6SID1': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID1-13',
'SegmentListIpv6SID2': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID2-14',
'SegmentListIpv6SID3': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID3-15',
'SegmentListIpv6SID4': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID4-16',
'SegmentListIpv6SID5': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID5-17',
'SegmentListIpv6SID6': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID6-18',
'SegmentListIpv6SID7': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID7-19',
'SegmentListIpv6SID8': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID8-20',
'SegmentListIpv6SID9': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID9-21',
'SegmentListIpv6SID10': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID10-22',
'SegmentListIpv6SID11': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID11-23',
'SegmentListIpv6SID12': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID12-24',
'SegmentListIpv6SID13': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID13-25',
'SegmentListIpv6SID14': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID14-26',
'SegmentListIpv6SID15': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID15-27',
'SegmentListIpv6SID16': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID16-28',
'SegmentListIpv6SID17': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID17-29',
'SegmentListIpv6SID18': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID18-30',
'SegmentListIpv6SID19': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID19-31',
'SegmentListIpv6SID20': 'ipv6GSRHType4.segmentRoutingHeader.segmentList.ipv6SID20-32',
'Sripv6IngressNodeTLVTclType': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6IngressNodeTLV.tclType-33',
'Sripv6IngressNodeTLVTclLength': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6IngressNodeTLV.tclLength-34',
'Sripv6IngressNodeTLVTclReserved': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6IngressNodeTLV.tclReserved-35',
'Sripv6IngressNodeTLVTclFlags': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6IngressNodeTLV.tclFlags-36',
'Sripv6IngressNodeTLVTclValue': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6IngressNodeTLV.tclValue-37',
'Sripv6EgressNodeTLVTclType': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6EgressNodeTLV.tclType-38',
'Sripv6EgressNodeTLVTclLength': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6EgressNodeTLV.tclLength-39',
'Sripv6EgressNodeTLVTclReserved': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6EgressNodeTLV.tclReserved-40',
'Sripv6EgressNodeTLVTclFlags': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6EgressNodeTLV.tclFlags-41',
'Sripv6EgressNodeTLVTclValue': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6EgressNodeTLV.tclValue-42',
'Sripv6OpaqueContainerTLVTclType': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6OpaqueContainerTLV.tclType-43',
'Sripv6OpaqueContainerTLVTclLength': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6OpaqueContainerTLV.tclLength-44',
'Sripv6OpaqueContainerTLVTclReserved': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6OpaqueContainerTLV.tclReserved-45',
'Sripv6OpaqueContainerTLVTclFlags': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6OpaqueContainerTLV.tclFlags-46',
'Sripv6OpaqueContainerTLVTclValue': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6OpaqueContainerTLV.tclValue-47',
'Sripv6PaddingTLVTclType': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6PaddingTLV.tclType-48',
'Sripv6PaddingTLVTclLength': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6PaddingTLV.tclLength-49',
'Sripv6PaddingTLVPad': 'ipv6GSRHType4.segmentRoutingHeader.srhTLVs.sripv6PaddingTLV.pad-50',
}
def __init__(self, parent, list_op=False):
super(Ipv6GSRHType4, self).__init__(parent, list_op)
@property
def SegmentRoutingHeaderNextHeader(self):
"""
Display Name: Next Header
Default Value: 59
Value Format: decimal
Available enum values: HOPOPT, 0, ICMP, 1, IGMP, 2, GGP, 3, IP, 4, ST, 5, TCP, 6, CBT, 7, EGP, 8, IGP, 9, BBN-RCC-MON, 10, NVP-II, 11, PUP, 12, ARGUS, 13, EMCON, 14, XNET, 15, CHAOS, 16, UDP, 17, MUX, 18, DCN-MEAS, 19, HMP, 20, PRM, 21, XNS-IDP, 22, TRUNK-1, 23, TRUNK-2, 24, LEAF-1, 25, LEAF-2, 26, RDP, 27, IRTP, 28, ISO-TP4, 29, NETBLT, 30, MFE-NSP, 31, MERIT-INP, 32, SEP, 33, 3PC, 34, IDPR, 35, XTP, 36, DDP, 37, IDPR-CMTP, 38, TP++, 39, IL, 40, IPv6, 41, SDRP, 42, IPv6-Route, 43, IPv6-Frag, 44, IDRP, 45, RSVP, 46, GRE, 47, MHRP, 48, BNA, 49, ESP, 50, AH, 51, I-NLSP, 52, SWIPE, 53, NARP, 54, MOBILE, 55, TLSP, 56, SKIP, 57, IPv6-ICMP, 58, IPv6-NoNxt, 59, IPv6-Opts, 60, Any host internal protocol, 61, CFTP, 62, Any local network, 63, SAT-EXPAK, 64, KRYPTOLAN, 65, RVD, 66, IPPC, 67, Any distributed file system, 68, SAT-MON, 69, VISA, 70, IPCV, 71, CPNX, 72, CPHB, 73, WSN, 74, PVP, 75, BR-SAT-MON, 76, SUN-ND, 77, WB-MON, 78, WB-EXPAK, 79, ISO-IP, 80, VMTP, 81, SECURE-VMTP, 82, VINES, 83, TTP, 84, NSFNET-IGP, 85, DGP, 86, TCF, 87, EIGRP, 88, OSPFIGP, 89, Sprite-RPC, 90, LARP, 91, MTP, 92, AX.25, 93, IPIP, 94, MICP, 95, SCC-SP, 96, ETHERIP, 97, ENCAP, 98, Any private encryption, 99, GMTP, 100, IFMP, 101, PNNI, 102, PIM, 103, ARIS, 104, SCPS, 105, QNX, 106, A/N, 107, IPComp, 108, SNP, 109, Compaq-Peer, 110, IPX-in-IP, 111, VRRP, 112, PGM, 113, Any 0-hop protocol, 114, L2TP, 115, DDX, 116, IATP, 117, STP, 118, SRP, 119, UTI, 120, SMP, 121, SM, 122, PTP, 123, ISIS over IPv4, 124, FIRE, 125, CRTP, 126, CRUDP, 127, SSCOPMCE, 128, IPLT, 129, SPS, 130, PIPE, 131, SCTP, 132, FC, 133, RSVP-E2E-IGNORE, 134, Mobility Header, 135, UDPLite, 136, MPLS-in-IP, 137, Unassigned, 138, Unassigned, 139, Unassigned, 140, Unassigned, 141, Unassigned, 142, Unassigned, 143, Unassigned, 144, Unassigned, 145, Unassigned, 146, Unassigned, 147, Unassigned, 148, Unassigned, 149, Unassigned, 150, Unassigned, 151, Unassigned, 152, Unassigned, 153, Unassigned, 154, Unassigned, 155, Unassigned, 156, Unassigned, 157, Unassigned, 158, Unassigned, 159, Unassigned, 160, Unassigned, 161, Unassigned, 162, Unassigned, 163, Unassigned, 164, Unassigned, 165, Unassigned, 166, Unassigned, 167, Unassigned, 168, Unassigned, 169, Unassigned, 170, Unassigned, 171, Unassigned, 172, Unassigned, 173, Unassigned, 174, Unassigned, 175, Unassigned, 176, Unassigned, 177, Unassigned, 178, Unassigned, 179, Unassigned, 180, Unassigned, 181, Unassigned, 182, Unassigned, 183, Unassigned, 184, Unassigned, 185, Unassigned, 186, Unassigned, 187, Unassigned, 188, Unassigned, 189, Unassigned, 190, Unassigned, 191, Unassigned, 192, Unassigned, 193, Unassigned, 194, Unassigned, 195, Unassigned, 196, Unassigned, 197, Unassigned, 198, Unassigned, 199, Unassigned, 200, Unassigned, 201, Unassigned, 202, Unassigned, 203, Unassigned, 204, Unassigned, 205, Unassigned, 206, Unassigned, 207, Unassigned, 208, Unassigned, 209, Unassigned, 210, Unassigned, 211, Unassigned, 212, Unassigned, 213, Unassigned, 214, Unassigned, 215, Unassigned, 216, Unassigned, 217, Unassigned, 218, Unassigned, 219, Unassigned, 220, Unassigned, 221, Unassigned, 222, Unassigned, 223, Unassigned, 224, Unassigned, 225, Unassigned, 226, Unassigned, 227, Unassigned, 228, Unassigned, 229, Unassigned, 230, Unassigned, 231, Unassigned, 232, Unassigned, 233, Unassigned, 234, Unassigned, 235, Unassigned, 236, Unassigned, 237, Unassigned, 238, Unassigned, 239, Unassigned, 240, Unassigned, 241, Unassigned, 242, Unassigned, 243, Unassigned, 244, Unassigned, 245, Unassigned, 246, Unassigned, 247, Unassigned, 248, Unassigned, 249, Unassigned, 250, Unassigned, 251, Unassigned, 252, Unassigned, 253, Unassigned, 254, Reserved, 255
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentRoutingHeaderNextHeader']))
@property
def SegmentRoutingHeaderHdrExtLen(self):
"""
Display Name: Hdr Ext Len
Default Value: 2
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentRoutingHeaderHdrExtLen']))
@property
def SegmentRoutingHeaderRoutingType(self):
"""
Display Name: Routing Type
Default Value: 4
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentRoutingHeaderRoutingType']))
@property
def SegmentRoutingHeaderSegmentsLeft(self):
"""
Display Name: Segments Left
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentRoutingHeaderSegmentsLeft']))
@property
def SegmentRoutingHeaderLastEntry(self):
"""
Display Name: Last Entry
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentRoutingHeaderLastEntry']))
@property
def FlagsU1Flag(self):
"""
Display Name: U1
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['FlagsU1Flag']))
@property
def FlagsPFlag(self):
"""
Display Name: P
Default Value: 0
Value Format: decimal
Available enum values: Not Protected through FRR, 0, Protected through FRR, 1
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['FlagsPFlag']))
@property
def FlagsOFlag(self):
"""
Display Name: O
Default Value: 0
Value Format: decimal
Available enum values: Not OAM Packet, 0, OAM Packet, 1
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['FlagsOFlag']))
@property
def FlagsAFlag(self):
"""
Display Name: A
Default Value: 0
Value Format: decimal
Available enum values: No Alert (important TLVs not present), 0, Important TLVs are Present, 1
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['FlagsAFlag']))
@property
def FlagsHFlag(self):
"""
Display Name: H
Default Value: 0
Value Format: decimal
Available enum values: No HMAC TLV, 0, HMAC TLV present, 1
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['FlagsHFlag']))
@property
def FlagsU2Flag(self):
"""
Display Name: U2
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['FlagsU2Flag']))
@property
def SegmentRoutingHeaderTag(self):
"""
Display Name: Tag
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentRoutingHeaderTag']))
@property
def SegmentListIpv6SID1(self):
"""
Display Name: IPv6 GSID 0
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID1']))
@property
def SegmentListIpv6SID2(self):
"""
Display Name: IPv6 GSID 1
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID2']))
@property
def SegmentListIpv6SID3(self):
"""
Display Name: IPv6 GSID 2
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID3']))
@property
def SegmentListIpv6SID4(self):
"""
Display Name: IPv6 GSID 3
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID4']))
@property
def SegmentListIpv6SID5(self):
"""
Display Name: IPv6 GSID 4
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID5']))
@property
def SegmentListIpv6SID6(self):
"""
Display Name: IPv6 GSID 5
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID6']))
@property
def SegmentListIpv6SID7(self):
"""
Display Name: IPv6 GSID 6
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID7']))
@property
def SegmentListIpv6SID8(self):
"""
Display Name: IPv6 GSID 7
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID8']))
@property
def SegmentListIpv6SID9(self):
"""
Display Name: IPv6 GSID 8
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID9']))
@property
def SegmentListIpv6SID10(self):
"""
Display Name: IPv6 GSID 9
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID10']))
@property
def SegmentListIpv6SID11(self):
"""
Display Name: IPv6 GSID 10
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID11']))
@property
def SegmentListIpv6SID12(self):
"""
Display Name: IPv6 GSID 11
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID12']))
@property
def SegmentListIpv6SID13(self):
"""
Display Name: IPv6 GSID 12
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID13']))
@property
def SegmentListIpv6SID14(self):
"""
Display Name: IPv6 GSID 13
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID14']))
@property
def SegmentListIpv6SID15(self):
"""
Display Name: IPv6 GSID 14
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID15']))
@property
def SegmentListIpv6SID16(self):
"""
Display Name: IPv6 GSID 15
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID16']))
@property
def SegmentListIpv6SID17(self):
"""
Display Name: IPv6 SID 16
Default Value: 0
Value Format: iPv6
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID17']))
@property
def SegmentListIpv6SID18(self):
"""
Display Name: IPv6 SID 17
Default Value: 0
Value Format: iPv6
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID18']))
@property
def SegmentListIpv6SID19(self):
"""
Display Name: IPv6 SID 18
Default Value: 0
Value Format: iPv6
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID19']))
@property
def SegmentListIpv6SID20(self):
"""
Display Name: IPv6 SID 19
Default Value: 0
Value Format: iPv6
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SegmentListIpv6SID20']))
@property
def Sripv6IngressNodeTLVTclType(self):
"""
Display Name: Type
Default Value: 1
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6IngressNodeTLVTclType']))
@property
def Sripv6IngressNodeTLVTclLength(self):
"""
Display Name: Length
Default Value: 18
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6IngressNodeTLVTclLength']))
@property
def Sripv6IngressNodeTLVTclReserved(self):
"""
Display Name: Reserved
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6IngressNodeTLVTclReserved']))
@property
def Sripv6IngressNodeTLVTclFlags(self):
"""
Display Name: Flags
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6IngressNodeTLVTclFlags']))
@property
def Sripv6IngressNodeTLVTclValue(self):
"""
Display Name: Value
Default Value: 0
Value Format: iPv6
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6IngressNodeTLVTclValue']))
@property
def Sripv6EgressNodeTLVTclType(self):
"""
Display Name: Type
Default Value: 2
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6EgressNodeTLVTclType']))
@property
def Sripv6EgressNodeTLVTclLength(self):
"""
Display Name: Length
Default Value: 18
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6EgressNodeTLVTclLength']))
@property
def Sripv6EgressNodeTLVTclReserved(self):
"""
Display Name: Reserved
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6EgressNodeTLVTclReserved']))
@property
def Sripv6EgressNodeTLVTclFlags(self):
"""
Display Name: Flags
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6EgressNodeTLVTclFlags']))
@property
def Sripv6EgressNodeTLVTclValue(self):
"""
Display Name: Value
Default Value: 0
Value Format: iPv6
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6EgressNodeTLVTclValue']))
@property
def Sripv6OpaqueContainerTLVTclType(self):
"""
Display Name: Type
Default Value: 3
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6OpaqueContainerTLVTclType']))
@property
def Sripv6OpaqueContainerTLVTclLength(self):
"""
Display Name: Length
Default Value: 18
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6OpaqueContainerTLVTclLength']))
@property
def Sripv6OpaqueContainerTLVTclReserved(self):
"""
Display Name: Reserved
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6OpaqueContainerTLVTclReserved']))
@property
def Sripv6OpaqueContainerTLVTclFlags(self):
"""
Display Name: Flags
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6OpaqueContainerTLVTclFlags']))
@property
def Sripv6OpaqueContainerTLVTclValue(self):
"""
Display Name: Value
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6OpaqueContainerTLVTclValue']))
@property
def Sripv6PaddingTLVTclType(self):
"""
Display Name: Type
Default Value: 4
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6PaddingTLVTclType']))
@property
def Sripv6PaddingTLVTclLength(self):
"""
Display Name: Length
Default Value: 0
Value Format: decimal
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6PaddingTLVTclLength']))
@property
def Sripv6PaddingTLVPad(self):
"""
Display Name: Padding
Default Value: 0
Value Format: hex
"""
from ixnetwork_restpy.multivalue import Multivalue
return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['Sripv6PaddingTLVPad']))
def add(self):
return self._create(self._map_locals(self._SDM_ATT_MAP, locals()))
| [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
cd96b06231acde9d33c7427b4abc68667d938d02 | c483d7bee5e63c208930733fb75f6c64d91734e1 | /recognitiondriver.py | d89b74f400c58902748de5b808f6ad72bb4e81eb | [] | no_license | ronan-dean/carparkANPR | 5342634be0080a89c1390a0c780b9c00b59de319 | ce48d9d6916dc81d7ccae29701816aa22b8c5a0f | refs/heads/master | 2023-05-05T17:48:25.635999 | 2021-05-17T14:21:49 | 2021-05-17T14:21:49 | 346,888,799 | 0 | 0 | null | 2021-05-17T14:21:50 | 2021-03-12T01:04:05 | Python | UTF-8 | Python | false | false | 2,159 | py | # import the necessary packages
from recognition.recognition_processing import ANPR
from imutils import paths
import argparse
import imutils
import cv2
def cleanup_text(text):
# strip out non-ASCII text so we can draw the text on the image
# using OpenCV
return "".join([c if ord(c) < 128 else "" for c in text]).strip()
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--input", required=True,
help="path to input directory of images")
ap.add_argument("-c", "--clear-border", type=int, default=-1,
help="whether or to clear border pixels before OCR'ing")
ap.add_argument("-p", "--psm", type=int, default=7,
help="default PSM mode for OCR'ing license plates")
ap.add_argument("-d", "--debug", type=int, default=-1,
help="whether or not to show additional visualizations")
args = vars(ap.parse_args())
# initialize our ANPR class
anpr = ANPR(debug=args["debug"] > 0)
# grab all image paths in the input directory
imagePaths = sorted(list(paths.list_images(args["input"])))
# loop over all image paths in the input directory
for imagePath in imagePaths:
# load the input image from disk and resize it
image = cv2.imread(imagePath)
image = imutils.resize(image, width=600)
# apply automatic license plate recognition
(lpText, lpCnt) = anpr.find_and_ocr(image, psm=args["psm"],
clearBorder=args["clear_border"] > 0)
# only continue if the license plate was successfully OCR'd
if lpText is not None and lpCnt is not None:
# fit a rotated bounding box to the license plate contour and
# draw the bounding box on the license plate
box = cv2.boxPoints(cv2.minAreaRect(lpCnt))
box = box.astype("int")
cv2.drawContours(image, [box], -1, (0, 255, 0), 2)
# compute a normal (unrotated) bounding box for the license
# plate and then draw the OCR'd license plate text on the
# image
(x, y, w, h) = cv2.boundingRect(lpCnt)
cv2.putText(image, cleanup_text(lpText), (x, y - 15),
cv2.FONT_HERSHEY_SIMPLEX, 0.75, (0, 255, 0), 2)
# show the output ANPR image
print("[INFO] {}".format(lpText))
cv2.imshow("Output ANPR", image)
cv2.waitKey(0) | [
"ultraboyz63@gmail.com"
] | ultraboyz63@gmail.com |
7b10377c0a6d0557e093903d77cb0766e12f0a9d | 46f62f818e7c41e4bcff1a2f0b4525078b2d881b | /libheap/pydbg/pygdbpython.py | 38acc37831aae6b525eb207be76013f8165d4a48 | [
"MIT"
] | permissive | vitkyrka/libheap | 9e27760bdd2979bba4e9121a6aa5f42ea1e1b8ad | 0e337ffe4208c199570b9700822c462a5f920872 | refs/heads/master | 2021-06-12T10:24:35.541082 | 2017-03-12T04:23:23 | 2017-03-12T04:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,490 | py | import sys
from functools import wraps
from libheap.frontend.printutils import print_error
try:
import gdb
except ImportError:
print("Not running inside of GDB, exiting...")
sys.exit()
def gdb_is_running(f):
"decorator to make sure gdb is running"
@wraps(f)
def _gdb_is_running(*args, **kwargs):
if (gdb.selected_thread() is not None):
return f(*args, **kwargs)
else:
print_error("GDB is not running.")
return _gdb_is_running
class pygdbpython:
def __init__(self):
self.inferior = None
@gdb_is_running
def execute(self, cmd, to_string=True):
return gdb.execute(cmd, to_string=to_string)
def format_address(self, value):
"""Helper for printing gdb.Value on both python 2 and 3
"""
try:
ret = int(value)
except gdb.error:
# python2 error: Cannot convert value to int.
# value.cast(gdb.lookup_type("unsigned long"))
ret = int(str(value), 16)
return ret
@gdb_is_running
def get_heap_address(self, mp=None):
"""Read heap address from glibc's mp_ structure if available,
otherwise fall back to /proc/self/maps which is unreliable.
"""
start, end = None, None
if mp is not None:
from libheap.ptmalloc.malloc_par import malloc_par
if isinstance(mp, malloc_par):
start = mp.sbrk_base
else:
print_error("Please specify a valid malloc_par variable")
# XXX: add end from arena(s).system_mem ?
else:
pid, task_id, thread_id = gdb.selected_thread().ptid
maps_file = "/proc/%d/task/%d/maps"
maps_data = open(maps_file % (pid, task_id)).readlines()
for line in maps_data:
if any(x.strip() == '[heap]' for x in line.split(' ')):
heap_range = line.split(' ')[0]
start, end = [int(h, 16) for h in heap_range.split('-')]
break
return start, end
@gdb_is_running
def get_arch(self):
cmd = self.execute("maintenance info sections ?")
return cmd.strip().split()[-1:]
def get_inferior(self):
try:
if self.inferior is None:
if len(gdb.inferiors()) == 0:
print_error("No gdb inferior could be found.")
return -1
else:
self.inferior = gdb.inferiors()[0]
return self.inferior
else:
return self.inferior
except AttributeError:
print_error("This gdb's python support is too old.")
sys.exit()
@gdb_is_running
def get_size_sz(self):
try:
_machine = self.get_arch()[0]
except IndexError:
_machine = ""
SIZE_SZ = 0
print_error("Retrieving SIZE_SZ failed.")
except TypeError: # gdb is not running
_machine = ""
SIZE_SZ = 0
print_error("Retrieving SIZE_SZ failed.")
if "elf64" in _machine:
SIZE_SZ = 8
elif "elf32" in _machine:
SIZE_SZ = 4
else:
SIZE_SZ = 0
print_error("Retrieving SIZE_SZ failed.")
return SIZE_SZ
@gdb_is_running
def read_memory(self, address, length):
if self.inferior is None:
self.inferior = self.get_inferior()
return self.inferior.read_memory(address, length)
@gdb_is_running
def read_variable(self, variable=None):
if variable is None:
print_error("Please specify a variable to read")
return None
try:
return gdb.selected_frame().read_var(variable)
except RuntimeError:
# No idea why this works but sometimes the frame is not selected
print_error("No gdb frame is currently selected.\n")
return gdb.selected_frame().read_var(variable)
@gdb_is_running
def write_memory(self, address, buf, length=None):
if self.inferior is None:
self.inferior = self.get_inferior()
try:
if length is None:
self.inferior.write_memory(address, buf)
else:
self.inferior.write_memory(address, buf, length)
except MemoryError:
print_error("GDB inferior write_memory error")
| [
"cloudburst@users.noreply.github.com"
] | cloudburst@users.noreply.github.com |
df46b64c18a7f14cafc321f42018349a445cfefc | 7d4157be529a5d4aa185cba9f0ebe12ce8cfd1e6 | /yonbt/__init__.py | 55fa751dc73097e154cc88326742cd117cc65c9d | [
"MIT"
] | permissive | Kellador/YoNBT | 5a9810f1ab31b33f3daa4a37dd2b9461912c33e2 | 78784f84def36731e3cd24850c8fddc389595ad2 | refs/heads/master | 2021-03-27T20:10:50.908222 | 2021-02-06T15:16:47 | 2021-02-06T15:16:47 | 103,052,854 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from .files import NBTFile, RegionFile
from .region import Chunk, Region
from .nbt import TAG_Byte, TAG_Short, TAG_Int, TAG_Long, TAG_Float, TAG_Double, \
TAG_Byte_Array, TAG_String, TAG_List, TAG_Compound, TAG_Int_Array, TAG_Long_Array, NBTObj
from .utils import locateBlock, locateChunk, chunkByBlock
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
| [
"kellador@gmail.com"
] | kellador@gmail.com |
e6769e2d0826644418427dc6e163dfa220220277 | 3cff44566467c12e3a16f13e89027239c0f72b87 | /login.py | dc4e83d9b0d2ccaafe961bd99102b4fb1a8fdd5e | [] | no_license | Agiorno/NAK | 04a257a22543347b8db85f2a17829bf9bb2f94d0 | 9e61569dc21b8ffa855c79ec535446c6a02cee7d | refs/heads/main | 2023-04-30T20:53:06.842088 | 2021-05-21T19:35:29 | 2021-05-21T19:35:29 | 359,142,743 | 0 | 0 | null | 2021-04-30T09:21:06 | 2021-04-18T12:54:49 | Python | UTF-8 | Python | false | false | 6,891 | py | from pymongo import MongoClient
import dns
from update import Update
from answer import AnswerMethod
import ast
from users import User
with open("monkey", "r") as f:
bot = ast.literal_eval(f.read())
class Permission:
def accept_permission(self, chat_id,is_bot, first_name, last_name, user_name):
doc = {'chat_id':chat_id, 'first_name': first_name, 'last_name': last_name, 'user_name':user_name, 'is_bot':is_bot, 'role':'user', 'permission':True, 'tags':[]}
self.users.insert_one(doc)
self.client.close()
print(f"{chat_id} has changed permission to [USER]")
def pause_permission(self, chat_id, is_bot, first_name, last_name, user_name):
doc = {'chat_id':chat_id, 'first_name': first_name, 'last_name': last_name, 'user_name':user_name, 'is_bot':is_bot, 'role':'user', 'permission':True, 'tags':[]}
self.users.insert_one(doc)
self.client.close()
print(f"{chat_id} has changed permission to [STRANGER]")
def permission_list(self):
a = []
result = self.users.find({'permission': True})
for i in result:
a.append(i['chat_id'])
self.client.close()
return a
def permission_check(self, chat_id):
result = self.users.find_one({'permission': True, 'chat_id':chat_id})
self.client.close()
if result:
self.user = result
return result['permission']
else:
return False
def stranger_check(self, chat_id):
result = self.users.find_one({'role':'stranger', 'chat_id':chat_id})
self.client.close()
if result:
return True
else:
return False
def get_admins(self):
a = []
admins = self.db.BOT
result = self.users.find({'role': 'admin'})
self.client.close()
for i in result:
a.append(i['chat_id'])
return a
def get_users(self):
a = []
result = self.users.find({'role': 'user'})
self.client.close()
for i in result:
a.append(i['chat_id'])
return a
class Login(Permission):
def check_login(self):
self.send_log_mongo(self.data)
self.data.pop('_id')
if self.my_type == 'message':
if self.permission_check(self.chat_id):
self.status = True
elif self.stranger_check(self.chat_id):
self.send_message(self.just_text('Запрос на авторизацию получен. Ожидайте.'))
self.status = False
else:
self.send_message(self.just_text('Запрос на авторизацию получен. Ожидайте.'))
for i in self.get_admins():
self.send_message(self.json_data(i))
print(f"{self.message_id} -- {i}")
self.status = False
elif self.my_type == 'channel_post':
self.status = True
elif self.my_type == 'callback_query':
self.status = True
elif self.my_type == 'my_chat_member':
if self.permission_check(self.from_id):
self.status = True
else:
self.leave_chat()
self.status = False
else:
self.status = False
def json_data(self, chat_id):
kb = AnswerMethod().make_inline_keyboard(option1 = { "text": "Авторизовать", "callback_data": "1auth" },
option2 = { "text": "Шли на хуй", "callback_data": "2auth" })
print('К нам стучится левый(ая) хуй')
json_data = {
"text": f'К нам стучится {self.chat_id}. Авторизовать? {self.update_id}',
"chat_id" : chat_id,
"parse_mode": 'markdown',
'reply_markup': kb
}
return json_data
def simple_json(self, chat_id=None, text = None):
json_data = {
'text': text,
'chat_id': chat_id,
'parse_mode': 'markdown'
}
return json_data
def login_answer(self):
if self.message == "1auth":
chat_id = int(self.data['callback_query']['message']['text'].split("К нам стучится ")[1].split('.')[0])
upd_id = int(self.data['callback_query']['message']['text'].split("Авторизовать? ")[1])
print(upd_id)
is_bot, first_name, last_name, user_name = self.get_from_update_id(upd_id)
self.accept_permission(chat_id, is_bot, first_name, last_name, user_name)
js = {
'text':'Вы успешно авторизованы. Напишите номер законопроекта, который вас интересует.',
'chat_id':chat_id
}
for i in self.get_admins():
self.send_message(self.simple_json(text = f'Новый пользователь {first_name} {last_name} добавлен успешно', chat_id=i))
self.send_message(js)
print(self.get_users())
# отказались
else:
upd_id = int(self.data['callback_query']['message']['text'].split("Авторизовать? ")[1])
chat_id = int(self.data['callback_query']['message']['text'].split("К нам стучится ")[1].split('.')[0])
is_bot, first_name, last_name, user_name = self.get_from_update_id(upd_id)
for i in self.get_admins():
self.send_message(self.simple_json(text=f'Новый пользователь {first_name} {last_name} послан на хуй', chat_id=i))
self.pause_permission(chat_id, is_bot, first_name, last_name, user_name)
# после чего удаляем клавиатуру
self.edit_reply(self.message_id, 172185928)
self.edit_reply(int(self.message_id)-1, 114660111)
print('[ЛОГИН]: КЛАВИАТУРА УДАЛЕНА')
def send_log_mongo(self, data):
self.log.insert_one(data)
def get_from_update_id(self, update_id):
result = self.log.find_one({'update_id': update_id})
print(result)
try:
is_bot = result['message']['from']['is_bot']
except:
is_bot = None
try:
first_name = result['message']['from']['first_name']
except:
first_name = None
try:
last_name = result['message']['from']['last_name']
except:
last_name = None
try:
user_name = result['message']['from']['user_name']
except:
user_name = None
return is_bot, first_name, last_name, user_name
| [
"agiorno@me.com"
] | agiorno@me.com |
7b4c77e9469fa1be0c37b043a5cbbd6836123bda | e870566de873966a9dc64dfc8d0159e813bcb25d | /main.py | 42c64754ad6091e8e823d973d94531cc2dbfea57 | [] | no_license | icequezon/K-means-clustering | 9552dace14509c1f390f91f629871f91c195a4c3 | e20b005a39469236f16dded2261f9af82658a0a1 | refs/heads/master | 2021-08-23T21:12:42.866258 | 2017-12-06T15:27:29 | 2017-12-06T15:27:29 | 112,827,487 | 0 | 1 | null | 2017-12-06T15:27:30 | 2017-12-02T08:53:22 | Python | UTF-8 | Python | false | false | 3,166 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import style
import pandas as pd
import random
style.use('ggplot')
class K_Means:
def __init__(self, k=3, max_iterations=1, centroids={}):
self.k = k
self.centroids = centroids
self.max_iterations = max_iterations
def fit(self, data):
# initialize the centroids, the first 'k' elements in the dataset will be our initial centroids
if self.centroids == {}:
for i in range(self.k):
self.centroids[i] = data[random.randint(0, len(data))]
# begin iterations
toReturn = {}
for i in range(self.max_iterations):
self.classes = {}
for i in range(self.k):
self.classes[i] = []
# find the distance between the point and cluster; choose the nearest centroid
for features in data:
distances = [np.linalg.norm(features - self.centroids[centroid]) for centroid in self.centroids]
classification = distances.index(min(distances))
self.classes[classification].append(features)
# previous = dict(self.centroids)
# average the cluster datapoints to re-calculate the centroids
for classification in self.classes:
self.centroids[classification] = np.average(self.classes[classification], axis=0)
for centroid in self.centroids:
# original_centroid = previous[centroid]
print(centroid+1, self.centroids[centroid])
toReturn[centroid] = self.centroids[centroid]
# curr = self.centroids[centroid]
return toReturn
def pred(self, data):
distances = [np.linalg.norm(data - self.centroids[centroid]) for centroid in self.centroids]
classification = distances.index(min(distances))
return classification
def main():
df = pd.read_table(r"kmdata1.txt", delim_whitespace=True, names=['one', 'two'])
X = df.values # returns a numpy array
km = K_Means(3, 10, {0: np.array([3.0, 3.0]), 1: np.array([6.0, 2.0]), 2: np.array([8.0, 5.0])})
val = km.fit(X)
for centroid in val:
km.pred(val[centroid])
# Plotting starts here
colors = 10*["r", "g", "c", "b", "k"]
for centroid in km.centroids:
plt.scatter(km.centroids[centroid][0], km.centroids[centroid][1], s=130, marker="x")
for classification in km.classes:
color = colors[classification]
for features in km.classes[classification]:
plt.scatter(features[0], features[1], color=color, s=30)
plt.show()
if __name__ == "__main__":
main()
| [
"ice@modernmachin.es"
] | ice@modernmachin.es |
e13c2b343d21f52283ccae9e50298c08e8d346bc | 1733c48ea06f8265835b11dc5d2770a6ad5b23ac | /tests/device/test_measure_voltage.py | 2373c86a8f3a626eb237656b65debee411eae59f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Sensirion/python-shdlc-sensorbridge | c16374d018ca149c2e2a907929129e310e367252 | c441c17d89697ecf0f7b61955f54c3da195e30e6 | refs/heads/master | 2021-06-30T07:49:24.032949 | 2021-03-19T10:00:04 | 2021-03-19T10:00:04 | 224,618,118 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
# (c) Copyright 2020 Sensirion AG, Switzerland
from __future__ import absolute_import, division, print_function
from sensirion_shdlc_sensorbridge import SensorBridgePort
import pytest
@pytest.mark.needs_device
@pytest.mark.parametrize("port", [
SensorBridgePort.ONE,
SensorBridgePort.TWO,
])
def test_valid_port(device, port):
"""
Test if the measure_voltage() function works when passing a valid port.
"""
voltage = device.measure_voltage(port)
assert type(voltage) is float
@pytest.mark.needs_device
@pytest.mark.parametrize("port", [
2,
SensorBridgePort.ALL,
])
def test_invalid_port(device, port):
"""
Test if the measure_voltage() function raises the correct exception when
passing an invalid port.
"""
with pytest.raises(ValueError):
device.measure_voltage(port)
| [
"urban.bruhin@sensirion.com"
] | urban.bruhin@sensirion.com |
dad18d91eddb0dbdb35c8fae190c95de6cdec4bd | 6858b0e8da83676634e6208829ada13d1ea46bd1 | /vendor/pathtools/scripts/nosy.py | ad97406cc752bb38380997533f187eed485af9fc | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | iVerb/armada-pipeline | 452045da1b9dfc85c5d0bb4350feeee2061f761d | 9f0d0fd7c23fe382ca9c9ea1d44fcbb3dd5cbf01 | refs/heads/master | 2023-05-02T00:52:19.209982 | 2021-05-14T14:57:06 | 2021-05-14T14:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,569 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# nosy: continuous integration for watchdog
#
# Copyright (C) 2010 Yesudeep Mangalapilly <yesudeep@gmail.com>
#
# 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.
"""
:module: nosy
:synopsis: Rewrite of Jeff Winkler's nosy script tailored to testing watchdog
:platform: OS-independent
"""
import os.path
import sys
import stat
import time
import subprocess
from fnmatch import fnmatch
def match_patterns(pathname, patterns):
"""Returns ``True`` if the pathname matches any of the given patterns."""
for pattern in patterns:
if fnmatch(pathname, pattern):
return True
return False
def filter_paths(pathnames, patterns=None, ignore_patterns=None):
"""Filters from a set of paths based on acceptable patterns and
ignorable patterns."""
result = []
if patterns is None:
patterns = ['*']
if ignore_patterns is None:
ignore_patterns = []
for pathname in pathnames:
if match_patterns(pathname, patterns) and not match_patterns(pathname, ignore_patterns):
result.append(pathname)
return result
def absolute_walker(pathname, recursive):
if recursive:
walk = os.walk
else:
def walk(_path):
try:
return next(os.walk(_path))
except NameError:
return os.walk(_path).next()
for root, directories, filenames in walk(pathname):
yield root
for directory in directories:
yield os.path.abspath(os.path.join(root, directory))
for filename in filenames:
yield os.path.abspath(os.path.join(root, filename))
def glob_recursive(pathname, patterns=None, ignore_patterns=None):
full_paths = []
for root, _, filenames in os.walk(pathname):
for filename in filenames:
full_path = os.path.abspath(os.path.join(root, filename))
full_paths.append(full_path)
filepaths = filter_paths(full_paths, patterns, ignore_patterns)
return filepaths
def check_sum(pathname='.', patterns=None, ignore_patterns=None):
checksum = 0
for f in glob_recursive(pathname, patterns, ignore_patterns):
stats = os.stat(f)
checksum += stats[stat.ST_SIZE] + stats[stat.ST_MTIME]
return checksum
if __name__ == "__main__":
if len(sys.argv) > 1:
path = sys.argv[1]
else:
path = '.'
if len(sys.argv) > 2:
command = sys.argv[2]
else:
commands = [
# Build documentation automatically as well as the armada code
# changes.
"make SPHINXBUILD=../bin/sphinx-build -C docs html",
# The reports coverage generates all by itself are more
# user-friendly than the ones which `nosetests --with-coverage`
# generates. Therefore, we call `coverage` explicitly to
# generate reports, and to keep the reports in synchronization
# with the armada code, we erase all coverage information
# before regenerating reports or running `nosetests`.
"bin/coverage erase",
"bin/python-tests tests/run_tests.py",
"bin/coverage html",
]
command = '; '.join(commands)
previous_checksum = 0
while True:
calculated_checksum = check_sum(path, patterns=['*.py', '*.rst', '*.rst.inc'])
if calculated_checksum != previous_checksum:
previous_checksum = calculated_checksum
subprocess.Popen(command, shell=True)
time.sleep(2)
| [
"borbs727@gmail.com"
] | borbs727@gmail.com |
c029e030607bbbc3f34e1a1b0d889a1910658f3f | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/e4e01c5aae883f8131ebef455939f313e7125520-<_check_trainable_weights_consistency>-fix.py | 084d3645a7ea3cf5a43993c7ff1540cbac19494d | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | def _check_trainable_weights_consistency(self):
'Check trainable weights count consistency.\n\n This will raise a warning if `trainable_weights` and\n `_collected_trainable_weights` are inconsistent (i.e. have different\n number of parameters).\n Inconsistency will typically arise when one modifies `model.trainable`\n without calling `model.compile` again.\n '
if (not hasattr(self, '_collected_trainable_weights')):
return
if (len(self.trainable_weights) != len(self._collected_trainable_weights)):
warnings.warn(UserWarning('Discrepancy between trainable weights and collected trainable weights, did you set `model.trainable` without calling `model.compile` after ?')) | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
9872719df06d5b45dad365cc460b7ac6fc6ba26b | 84c4038e3422fa9551129eb58991b36402e8f8f8 | /benchmarks/DNN/layers/convolution/direct/cpu_sparse_with_dense/analyze_data.py | 5ba70a47d9f39d2fa8454e454e9d1624239f4c1e | [
"MIT"
] | permissive | ThinhinaneIhadadene/tiramisu | 6ebf632d45ecde91e5f798f81d84bcc9dfb7d524 | 0ae732a2bc11b1c3ec45aabf18273b631a1f2cf0 | refs/heads/master | 2020-03-25T18:50:07.881747 | 2019-08-17T11:51:57 | 2019-08-17T11:51:57 | 144,051,030 | 0 | 0 | MIT | 2019-03-12T16:35:23 | 2018-08-08T18:11:19 | C++ | UTF-8 | Python | false | false | 6,487 | py | #!/usr/bin/python
import numpy as np
import sys
RARE_CASES=True
ANALYSIS_1=False
ANALYSIS_2=True
def is_zero(s):
is_zeroo = True
for i in range(0,3):
for j in range(0,3):
if s[i, j] != 0:
is_zeroo = False
return is_zeroo;
def array_has_pattern(s, pattern):
is_pat = True
for i in range(0,3):
for j in range(0,3):
if (pattern[i,j] == -1):
continue;
if (pattern[i,j] == 0):
if (s[i,j] != 0):
is_pat = False
if (pattern[i,j] != 0):
if (s[i,j] == 0):
is_pat = False
return is_pat;
def count_pattern(d, pattern):
nb_pat = 0
for i in range(0,32):
for j in range(0,32):
s = d[i,j]
if array_has_pattern(s, pattern) == True:
nb_pat += 1;
return nb_pat;
def count_pattern_per_output_channel(d, pattern):
nb_pat = 32
for i in range(0,32):
old_nb_pat = nb_pat;
new_nb_pat = 0;
for j in range(0,32):
s = d[i,j]
if array_has_pattern(s, pattern) == True:
new_nb_pat += 1;
print("Patterns in output channel " + str(i) + " : " + str(new_nb_pat));
nb_pat = min(old_nb_pat, new_nb_pat)
return nb_pat;
def count_patterns(d, patterns, excluded_patterns):
print("------ Counting patterns ------ \n")
nb_pat = 0
for p in patterns:
nb_pat += count_pattern(d, p)
for excluded in excluded_patterns:
nb_pat -= count_pattern(d, excluded)
print("Patterns included:\n")
for p in patterns:
print(np.array2string(p))
print("\nPatterns excluded:\n")
for e in excluded_patterns:
print(np.array2string(e))
print("\nNumber of patterns: " + str(nb_pat) + "/" + str(32*32) + " = " + str((nb_pat*100)/(32*32)) + "%\n")
def count_patterns_per_output_channel(d, patterns, excluded_patterns):
print("------ Counting patterns per output channel ------ \n")
print("Patterns included:\n")
for p in patterns:
print(np.array2string(p))
print("\nPatterns excluded:\n")
for e in excluded_patterns:
print(np.array2string(e))
nb_pat = 0
for p in patterns:
nb_pat += count_pattern_per_output_channel(d, p)
for excluded in excluded_patterns:
nb_pat -= count_pattern_per_output_channel(d, excluded)
print("\nNumber of patterns per output channel: " + str(nb_pat) + "/" + str(32) + " = " + str((nb_pat*100)/(32)) + "%\n")
def main():
np.set_printoptions(threshold=sys.maxsize)
np.set_printoptions(suppress=True)
if len(sys.argv) > 1:
data_file = sys.argv[1]
else:
data_file = 'resnet_10.npy'
d = np.load(data_file)
print("--------------------------------------------------------------------------------")
print("Analyzing file: " + data_file)
print("--------------------------------------------------------------------------------")
if (ANALYSIS_1):
count_patterns(d, [np.array([[0,0,0],
[0,0,0],
[0,0,0]])],
[])
count_patterns(d, [np.array([[-1,-1,-1],
[ 0, 0, 0],
[ 0, 0, 0]])],
[np.array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])])
count_patterns(d, [np.array([[ 0, 0, 0],
[-1,-1,-1],
[ 0, 0, 0]])],
[np.array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])])
count_patterns(d, [np.array([[ 0, 0, 0],
[ 0, 0, 0],
[-1,-1,-1]])],
[np.array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])])
if (RARE_CASES):
count_patterns(d, [np.array([[1,0,0],
[0,0,0],
[0,0,0]])],
[])
count_patterns(d, [np.array([[0,1,0],
[0,0,0],
[0,0,0]])],
[])
count_patterns(d, [np.array([[0,0,1],
[0,0,0],
[0,0,0]])],
[])
count_patterns(d, [np.array([[0,0,0],
[1,0,0],
[0,0,0]])],
[])
count_patterns(d, [np.array([[0,0,0],
[0,1,0],
[0,0,0]])],
[])
count_patterns(d, [np.array([[0,0,0],
[0,0,1],
[0,0,0]])],
[])
count_patterns(d, [np.array([[0,0,0],
[0,0,0],
[1,0,0]])],
[])
count_patterns(d, [np.array([[0,0,0],
[0,0,0],
[0,1,0]])],
[])
count_patterns(d, [np.array([[0,0,0],
[0,0,0],
[0,0,1]])],
[])
count_patterns(d, [np.array([[0,0,0],
[0,0,0],
[0,0,1]]),
np.array([[0,0,0],
[0,0,0],
[0,1,0]]),
np.array([[0,0,0],
[0,0,0],
[1,0,0]]),
np.array([[0,0,0],
[0,0,1],
[0,0,0]]),
np.array([[0,0,0],
[0,1,0],
[0,0,0]]),
np.array([[0,0,0],
[1,0,0],
[0,0,0]]),
np.array([[0,0,1],
[0,0,0],
[0,0,0]]),
np.array([[0,1,0],
[0,0,0],
[0,0,0]]),
np.array([[1,0,0],
[0,0,0],
[0,0,0]])],
[])
count_patterns(d, [np.array([[-1,-1,-1],
[ 0, 0, 0],
[ 0, 0, 0]])],
[np.array([[ 0, 0, 0],
[ 0, 0, 0],
[ 0, 0, 0]]),
np.array([[ 1, 0, 0],
[ 0, 0, 0],
[ 0, 0, 0]]),
np.array([[ 0, 1, 0],
[ 0, 0, 0],
[ 0, 0, 0]]),
np.array([[ 0, 0, 1],
[ 0, 0, 0],
[ 0, 0, 0]])
])
count_patterns(d, [np.array([[ 0, 0, 0],
[-1,-1,-1],
[ 0, 0, 0]])],
[np.array([[ 0, 0, 0],
[ 1, 0, 0],
[ 0, 0, 0]]),
np.array([[ 0, 0, 0],
[ 0, 1, 0],
[ 0, 0, 0]]),
np.array([[ 0, 0, 0],
[ 0, 0, 1],
[ 0, 0, 0]]),
np.array([[ 0, 0, 0],
[ 0, 0, 0],
[ 0, 0, 0]])
])
count_patterns(d, [np.array([[ 0, 0, 0],
[ 0, 0, 0],
[-1,-1,-1]])],
[np.array([[ 0, 0, 0],
[ 0, 0, 0],
[ 1, 0, 0]]),
np.array([[ 0, 0, 0],
[ 0, 0, 0],
[ 0, 1, 0]]),
np.array([[ 0, 0, 0],
[ 0, 0, 0],
[ 0, 0, 1]]),
np.array([[ 0, 0, 0],
[ 0, 0, 0],
[ 0, 0, 0]])
])
if (ANALYSIS_2):
count_patterns_per_output_channel(d, [np.array([[0,0,0],
[0,0,0],
[0,0,0]])],
[])
count_patterns_per_output_channel(d, [np.array([[-1,-1,-1],
[ 0, 0, 0],
[ 0, 0, 0]])],
[np.array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])])
count_patterns_per_output_channel(d, [np.array([[ 0, 0, 0],
[-1,-1,-1],
[ 0, 0, 0]])],
[np.array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])])
count_patterns_per_output_channel(d, [np.array([[ 0, 0, 0],
[ 0, 0, 0],
[-1,-1,-1]])],
[np.array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])])
main()
#print(d)
| [
"baghdadi.mr@gmail.com"
] | baghdadi.mr@gmail.com |
b5aa09a754f91f2f12bf2c248faaa70d24aeace7 | 6a1afb06f74f4db246db3610fcf6e25358bfb43b | /receipt_analyzer.py | 92a1baa09c17ab235542aeeb6694150e1183d767 | [] | no_license | JasonMTarka/Receipt-Analyzer | 7b50131f4aa94a32e9535de1417f5cb228c3e7d1 | 61fbcffa901421cbfa61edef06f940fd56e93fff | refs/heads/main | 2023-08-16T07:12:23.452482 | 2021-10-25T12:21:49 | 2021-10-25T12:21:49 | 417,689,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | import io
import os
import time
from typing import Dict
from google.cloud import vision
from proto.marshal.collections import RepeatedComposite
from objects.receipt_info import ReceiptInfo
def get_text(path: str):
"""
Get receipt text using Google Vision API.
"""
# Instantiates a client
client = vision.ImageAnnotatorClient()
# The name of the image file to annotate
base = "receipts/"
file_name = os.path.abspath(base + path)
# Loads the image into memory
with io.open(file_name, "rb") as image_file:
content = image_file.read()
image = vision.Image(content=content)
# Get text from image
response = client.text_detection(image=image, timeout=60)
if response.error.message:
raise Exception(
"{}\nFor more info on error messages, check: "
"https://cloud.google.com/apis/design/errors".format(
response.error.message
)
)
return response.text_annotations
def retrieve_info(text: RepeatedComposite) -> Dict[str, any]:
"""
Returns a dictionary of name, date, tags,
and total price of a given receipt.
"""
info = ReceiptInfo(text)
info.extract_info()
return info.get_info()
def main() -> None:
image = "test_receipt_lawson.jpg"
start = time.time()
text: RepeatedComposite = get_text(image)
total_time = time.time() - start
info = retrieve_info(text)
print(
f"Time elapsed getting text from API: {round(total_time, 2)} seconds."
)
print(info)
if __name__ == "__main__":
main()
| [
"71971736+JasonMTarka@users.noreply.github.com"
] | 71971736+JasonMTarka@users.noreply.github.com |
2cda9cbfbb62fc7ecc2212d15eca6fda70c549a5 | 1fc9eaeeee2cfbf3877b9c22b545970f89c7f0ca | /python/ClinicalReportLaunchers/upload_genome_to_panel_report.py | 7361b0932908a5053775290e5f14c1b31815e776 | [
"MIT"
] | permissive | Subrahmanyam83/omicia_api_examples | cb73812ad008e2bcf470cba5cd526ad6f0245199 | e2c91e2c407297a90510bdcc6907e2445605efbe | refs/heads/master | 2021-01-22T19:09:17.949698 | 2017-02-09T23:05:48 | 2017-02-09T23:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,655 | py | """Add a genome to an existing (genomeless) panel report.
"""
import os
import json
import requests
from requests.auth import HTTPBasicAuth
import sys
import argparse
# Load environment variables for request authentication parameters
if "OMICIA_API_PASSWORD" not in os.environ:
sys.exit("OMICIA_API_PASSWORD environment variable missing")
if "OMICIA_API_LOGIN" not in os.environ:
sys.exit("OMICIA_API_LOGIN environment variable missing")
OMICIA_API_LOGIN = os.environ['OMICIA_API_LOGIN']
OMICIA_API_PASSWORD = os.environ['OMICIA_API_PASSWORD']
OMICIA_API_URL = os.environ.get('OMICIA_API_URL', 'https://api.omicia.com')
auth = HTTPBasicAuth(OMICIA_API_LOGIN, OMICIA_API_PASSWORD)
def add_genome_to_clinical_report(clinical_report_id,
proband_genome_id=None,
proband_sex=None):
"""Use the Omicia API to add genome(s) to a clinical report
"""
# Construct url and request
url = "{}/reports/{}".format(OMICIA_API_URL, clinical_report_id)
url_payload = {
'proband_genome_id': proband_genome_id,
'proband_sex': proband_sex
}
sys.stdout.write("Adding genome(s) to report...")
sys.stdout.write("\n\n")
sys.stdout.flush()
result = requests.put(url, auth=auth, data=json.dumps(url_payload))
return result.json()
def upload_genome_to_project(project_id, label, sex, file_format, file_name, external_id=""):
"""Use the Omicia API to add a genome, in vcf format, to a project.
Returns the newly uploaded genome's id.
"""
#Construct request
url = "{}/projects/{}/genomes?genome_label={}&genome_sex={}&external_id={}\
&assembly_version=hg19&format={}"
url = url.format(OMICIA_API_URL, project_id, label, sex, external_id, file_format)
sys.stdout.write("Uploading genome...\n")
with open(file_name, 'rb') as file_handle:
#Post request and return id of newly uploaded genome
result = requests.put(url, auth=auth, data=file_handle, verify=False)
return result.json()
def main():
"""Main function. Add genomes and metadata to an existing clinical report.
"""
parser = argparse.ArgumentParser(description='Add genome ids or vaast report ids to existing clinical reports.')
parser.add_argument('clinical_report_id', metavar='clinical_report_id', type=int)
parser.add_argument('project_id', metavar='project_id', type=int)
parser.add_argument('genome_label', metavar='genome_label', type=str)
parser.add_argument('sex', metavar='sex', type=str, choices=['female', 'male', 'unspecified'])
parser.add_argument('file_format', metavar='file_format', type=str, choices=['vcf', 'vcf.gz', 'vcf.bz2'])
parser.add_argument('file_name', metavar='file_name', type=str)
parser.add_argument('--genome_external_id', metavar='genome_external_id', type=str)
args = parser.parse_args()
cr_id = args.clinical_report_id
project_id = args.project_id
genome_label = args.genome_label
sex = args.sex
file_format = args.file_format
file_name = args.file_name
genome_external_id = args.genome_external_id
genome_json = upload_genome_to_project(project_id,
genome_label,
sex,
file_format,
file_name,
genome_external_id)
try:
genome_id = genome_json["genome_id"]
sys.stdout.write("genome_id: {}\n".format(genome_id))
except KeyError:
if genome_json['description']:
sys.stdout.write('Error: {}\n'.format(genome_json['description']))
else:
sys.stdout.write('Something went wrong...')
sys.exit("Exiting...")
if sex == 'male':
proband_sex = 'm'
elif sex == 'female':
proband_sex = 'f'
else:
proband_sex = 'u'
json_response = add_genome_to_clinical_report(cr_id,
proband_genome_id=genome_id,
proband_sex=sex,
)
if "clinical_report" not in json_response.keys():
sys.stderr(json_response)
sys.exit("Failed to launch. Check report parameters for correctness.")
clinical_report = json_response['clinical_report']
sys.stdout.write('Clinical Report Info:\n'
'id: {}\n'
'test_type: {}\n'
'accession_id: {}\n'
'created_on: {}\n'
'created_by: {}\n'
'status: {}\n'
'filter_id: {}\n'
'panel_id: {}\n'
'filter_name: {}\n'
'workspace_id: {}\n'
'sample_collected_date: {}\n'
'sample_received_date: {}\n'
'include_cosmic: {}\n'
'vaast_report_id: {}\n'
'mother_genome_id: {}\n'
'father_genome_id: {}\n'
'genome_id: {}\n'
'version: {}\n'
.format(clinical_report.get('id', 'Missing'),
clinical_report.get('test_type','Missing'),
clinical_report.get('accession_id','Missing'),
clinical_report.get('created_on','Missing'),
clinical_report.get('created_by','Missing'),
clinical_report.get('status', 'Missing'),
clinical_report.get('filter_id','Missing'),
clinical_report.get('panel_id','Missing'),
clinical_report.get('filter_name', 'Missing'),
clinical_report.get('workspace_id','Missing'),
clinical_report.get('sample_collected_date','Missing'),
clinical_report.get('sample_received_date','Missing'),
clinical_report.get('include_cosmic','Missing'),
clinical_report.get('vaast_report_id', 'Missing'),
clinical_report.get('mother_genome_id', 'Missing'),
clinical_report.get('father_genome_id', 'Missing'),
clinical_report.get('genome_id', 'Missing'),
clinical_report.get('version', 'Missing')))
if __name__ == "__main__":
main()
| [
"ekofman@omicia.com"
] | ekofman@omicia.com |
f7528265aaf123bd2baf091a614ccb7c40bb1ba3 | c118b5ca4f05634eafbed764d3ec9b927e5f1bce | /makereference.py | 5e3513ce46f74686f7076a33d9f5c71fe07cafd8 | [] | no_license | KatSteinke/automlst-simplified-wrapper | 98a244ab79f8bd8547457ff53df2a9742c7781db | 0df609455ab3fe83c9ff1120d7c5593800024473 | refs/heads/main | 2023-07-23T21:37:55.652207 | 2023-07-18T06:07:10 | 2023-07-18T06:07:10 | 307,310,380 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,624 | py | #!/usr/bin/env python
import argparse, subprocess, glob, os, setlog
from concatmsa import concatmsa
log = setlog.init(toconsole=True)
def trimal(infil,outfile):
cmd = ["trimal","-automated1","-in",infil,"-out",outfile]
with open(os.devnull,"w") as devnull:
try:
subprocess.call(cmd,stdout=devnull)
log.debug("TrimAl: finished %s"%outfile)
return True
except subprocess.CalledProcessError as e:
log.error("TrimAl: error, could not process %s - %s"%(outfile,e))
return False
def codonalign(inalign,nafile,outputfile):
cmd = ["perl",os.path.join(os.path.dirname(os.path.realpath(__file__)),"pal2nal.pl"),"-output", "fasta", inalign, nafile]
with open(outputfile,"w") as ofil:
try:
subprocess.call(cmd, stdout=ofil)
log.debug("Pal2Nal: finished %s"%outputfile)
return True
except subprocess.CalledProcessError as e:
log.error("Pal2Nal: error, could not process %s - %s"%(inalign,e))
return False
def maftalign(seq,outfile,cpu=1):
#ofil = tempfile.NamedTemporaryFile(dir=os.path.split(outfile)[0])
cmd = ["mafft-linsi","--quiet",seq]
if cpu>1:
cmd[1:1] = ["--thread","%s"%cpu]
# if os.path.isfile(outfile+".tmafft"):
# cmd[1:1] = ["--treein", outfile+".tmafft"]
try:
# ofil = tempfile.NamedTemporaryFile(dir=os.path.split(newseqs)[0])
with open(outfile,"w") as ofil:
subprocess.call(cmd,stdout=ofil)
log.debug("MAFFT: finished %s"%seq)
return True
except subprocess.CalledProcessError as e:
log.error("MAFFT: error, failed to align %s"%outfile)
return False
def raxml(outdir,inalgn,bootstrap=1000,mcpu=1,part=None):
#Run raxml EPA
fname = os.path.split(inalgn)[-1]
cmd="raxmlHPC-SSE3 -f a -m GTRGAMMAI -p 12345 -x 12345 -N %s -w %s -s %s -n %s"%(bootstrap,os.path.realpath(outdir),inalgn,fname)
if mcpu >1:
cmd+=" -T %s"%mcpu
if part and os.path.exists(part):
cmd+=" -q %s"%part
try:
log.debug("Starting: %s"%cmd)
with open(os.devnull,"w") as devnull:
subprocess.call(cmd.split(),stdout=devnull)
log.debug("RAxML: finished %s"%inalgn)
return True
except subprocess.CalledProcessError as e:
log.error("RAxML: error, could not process %s - %s"%(inalgn,e))
return False
def makeref(indir,outdir,mcpu=1,concat=False):
singlist = [os.path.split(x)[-1] for x in glob.glob(os.path.join(indir,"*.faa"))]
if os.path.exists(os.path.join(indir,"RNA_16S_rRNA.fna")):
singlist.append("RNA_16S_rRNA.fna")
os.makedirs(os.path.join(outdir,"trees"))
log.info("Starting alignments...")
finished=[]
for fname in singlist:
outfil = os.path.join(outdir,fname)
outfil2 = os.path.join(outdir,os.path.splitext(fname)[0]+".fna")
fnafil = os.path.join(indir,os.path.splitext(fname)[0]+".fna")
trimfil = outfil2+".trimmed"
if "RNA_16S_rRNA.fna" in fname and maftalign(os.path.join(indir,fname),outfil,mcpu):
if trimal(outfil,trimfil):
finished.append(trimfil)
elif maftalign(os.path.join(indir,fname),outfil,mcpu):
if codonalign(outfil,fnafil,outfil2):
if trimal(outfil2,trimfil):
finished.append(trimfil)
if concat:
log.info("Making supermatrix...")
outfil = os.path.join(outdir,"supermatrix.fa")
partfil = os.path.join(outdir,"nucpart.txt")
concatmsa(os.path.join(outdir,"*.trimmed"),outfil,partfil)
log.info("Done. Building tree...")
raxml(os.path.join(outdir,"trees"),outfil,mcpu=mcpu,part=partfil)
else:
log.info("Starting buildtrees...")
for fname in finished:
raxml(os.path.join(outdir,"trees"),fname,mcpu=mcpu)
# Commandline Execution
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="""Use extracted MLST genes and builds reference folder with single copy codon alignments""")
parser.add_argument("input", help="Directory of extracted MLST genes")
parser.add_argument("outdir", help="Output directory of alignments and trees")
parser.add_argument("-cpu", "--multicpu", help="Turn on Multi processing set # Cpus (default: Off, 1)", type=int, default=1)
parser.add_argument("-cat", "--concatmsa", help="Build species tree using concatenated supermatrix",action="store_true",default=False)
args = parser.parse_args()
makeref(args.input,args.outdir,args.multicpu,args.concatmsa) | [
"kati.steinke@gmail.com"
] | kati.steinke@gmail.com |
04ce89c97e3135ce7b2635beb82b6cf5fb967214 | ec3989be028387b990b92bc0de1cca72ee08ef85 | /saleor/dashboard/product/forms.py | 556b87ba672e96bb59e6f8e38e17fe901f3678fa | [
"BSD-3-Clause"
] | permissive | tinyfood/farmers | 6acb384209b19276ee71b717ff456494288fbf6e | be51ad7f17ec549826bcd515df2d97b7c3961d48 | refs/heads/master | 2022-12-10T16:50:29.990679 | 2019-06-09T18:06:23 | 2019-06-09T18:06:23 | 191,038,246 | 3 | 0 | BSD-3-Clause | 2022-12-08T05:14:10 | 2019-06-09T17:56:16 | Python | UTF-8 | Python | false | false | 21,467 | py | import bleach
from django import forms
from django.conf import settings
from django.db.models import Count, Q
from django.forms.models import ModelChoiceIterator
from django.forms.widgets import CheckboxSelectMultiple
from django.utils.encoding import smart_text
from django.utils.text import slugify
from django.utils.translation import pgettext_lazy
from django_prices_vatlayer.utils import get_tax_rate_types
from mptt.forms import TreeNodeChoiceField
from ...core import TaxRateType
from ...core.utils.taxes import DEFAULT_TAX_RATE_NAME, include_taxes_in_prices
from ...core.weight import WeightField
from ...product.models import (
Attribute,
AttributeValue,
Category,
Collection,
Product,
ProductImage,
ProductType,
ProductVariant,
VariantImage,
)
from ...product.tasks import update_variants_names
from ...product.thumbnails import create_product_thumbnails
from ...product.utils.attributes import get_name_from_attributes
from ..forms import ModelChoiceOrCreationField, OrderedModelMultipleChoiceField
from ..seo.fields import SeoDescriptionField, SeoTitleField
from ..seo.utils import prepare_seo_description
from ..widgets import RichTextEditorWidget
from . import ProductBulkAction
from .widgets import ImagePreviewWidget
class RichTextField(forms.CharField):
"""A field for rich text editor, providing backend sanitization."""
widget = RichTextEditorWidget
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.help_text = pgettext_lazy(
"Help text in rich-text editor field",
"Select text to enable text-formatting tools.",
)
def to_python(self, value):
tags = settings.ALLOWED_TAGS or bleach.ALLOWED_TAGS
attributes = settings.ALLOWED_ATTRIBUTES or bleach.ALLOWED_ATTRIBUTES
styles = settings.ALLOWED_STYLES or bleach.ALLOWED_STYLES
value = super().to_python(value)
value = bleach.clean(value, tags=tags, attributes=attributes, styles=styles)
return value
class ProductTypeSelectorForm(forms.Form):
"""Form that allows selecting product type."""
product_type = forms.ModelChoiceField(
queryset=ProductType.objects.all(),
label=pgettext_lazy("Product type form label", "Product type"),
widget=forms.RadioSelect,
empty_label=None,
)
def get_tax_rate_type_choices():
rate_types = get_tax_rate_types() + [DEFAULT_TAX_RATE_NAME]
translations = dict(TaxRateType.CHOICES)
choices = [
(rate_name, translations.get(rate_name, "---------"))
for rate_name in rate_types
]
# sort choices alphabetically by translations
return sorted(choices, key=lambda x: x[1])
class ProductTypeForm(forms.ModelForm):
tax_rate = forms.ChoiceField(
required=False, label=pgettext_lazy("Product type tax rate type", "Tax rate")
)
weight = WeightField(
label=pgettext_lazy("ProductType weight", "Weight"),
help_text=pgettext_lazy(
"ProductVariant weight help text",
"Default weight that will be used for calculating shipping"
" price for products of that type.",
),
)
product_attributes = forms.ModelMultipleChoiceField(
queryset=Attribute.objects.none(),
required=False,
label=pgettext_lazy(
"Product type attributes", "Attributes common to all variants."
),
)
variant_attributes = forms.ModelMultipleChoiceField(
queryset=Attribute.objects.none(),
required=False,
label=pgettext_lazy(
"Product type attributes", "Attributes specific to each variant."
),
)
class Meta:
model = ProductType
exclude = []
labels = {
"name": pgettext_lazy("Item name", "Name"),
"has_variants": pgettext_lazy("Enable variants", "Enable variants"),
"is_shipping_required": pgettext_lazy(
"Shipping toggle", "Require shipping"
),
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields["tax_rate"].choices = get_tax_rate_type_choices()
unassigned_attrs_q = Q(
product_type__isnull=True, product_variant_type__isnull=True
)
if self.instance.pk:
product_attrs_qs = Attribute.objects.filter(
Q(product_type=self.instance) | unassigned_attrs_q
)
variant_attrs_qs = Attribute.objects.filter(
Q(product_variant_type=self.instance) | unassigned_attrs_q
)
product_attrs_initial = self.instance.product_attributes.all()
variant_attrs_initial = self.instance.variant_attributes.all()
else:
unassigned_attrs = Attribute.objects.filter(unassigned_attrs_q)
product_attrs_qs = unassigned_attrs
variant_attrs_qs = unassigned_attrs
product_attrs_initial = []
variant_attrs_initial = []
self.fields["product_attributes"].queryset = product_attrs_qs
self.fields["variant_attributes"].queryset = variant_attrs_qs
self.fields["product_attributes"].initial = product_attrs_initial
self.fields["variant_attributes"].initial = variant_attrs_initial
def clean(self):
data = super().clean()
has_variants = self.cleaned_data["has_variants"]
product_attr = set(self.cleaned_data.get("product_attributes", []))
variant_attr = set(self.cleaned_data.get("variant_attributes", []))
if not has_variants and variant_attr:
msg = pgettext_lazy(
"Product type form error", "Product variants are disabled."
)
self.add_error("variant_attributes", msg)
if product_attr & variant_attr:
msg = pgettext_lazy(
"Product type form error",
"A single attribute can't belong to both a product " "and its variant.",
)
self.add_error("variant_attributes", msg)
if not self.instance.pk:
return data
self.check_if_variants_changed(has_variants)
variant_attr_ids = [attr.pk for attr in variant_attr]
update_variants_names.delay(self.instance.pk, variant_attr_ids)
return data
def check_if_variants_changed(self, has_variants):
variants_changed = self.fields["has_variants"].initial != has_variants
if variants_changed:
query = self.instance.products.all()
query = query.annotate(variants_counter=Count("variants"))
query = query.filter(variants_counter__gt=1)
if query.exists():
msg = pgettext_lazy(
"Product type form error",
"Some products of this type have more than " "one variant.",
)
self.add_error("has_variants", msg)
def save(self, *args, **kwargs):
instance = super().save(*args, **kwargs)
new_product_attrs = self.cleaned_data.get("product_attributes", [])
new_variant_attrs = self.cleaned_data.get("variant_attributes", [])
instance.product_attributes.set(new_product_attrs)
instance.variant_attributes.set(new_variant_attrs)
return instance
class AttributesMixin:
"""Form mixin that dynamically adds attribute fields."""
available_attributes = Attribute.objects.none()
# Name of a field in self.instance that hold attributes HStore
model_attributes_field = None
def __init__(self, *args, **kwargs):
if not self.model_attributes_field:
raise Exception(
"model_attributes_field must be set in subclasses of "
"AttributesMixin."
)
def prepare_fields_for_attributes(self):
initial_attrs = getattr(self.instance, self.model_attributes_field)
for attribute in self.available_attributes:
field_defaults = {
"label": attribute.name,
"required": False,
"initial": initial_attrs.get(str(attribute.pk)),
}
if attribute.has_values():
field = ModelChoiceOrCreationField(
queryset=attribute.values.all(), **field_defaults
)
else:
field = forms.CharField(**field_defaults)
self.fields[attribute.get_formfield_name()] = field
def iter_attribute_fields(self):
for attr in self.available_attributes:
yield self[attr.get_formfield_name()]
def get_saved_attributes(self):
attributes = {}
for attr in self.available_attributes:
value = self.cleaned_data.pop(attr.get_formfield_name())
if value:
# if the passed attribute value is a string,
# create the attribute value.
if not isinstance(value, AttributeValue):
value = AttributeValue(
attribute_id=attr.pk, name=value, slug=slugify(value)
)
value.save()
attributes[smart_text(attr.pk)] = smart_text(value.pk)
return attributes
class ProductForm(forms.ModelForm, AttributesMixin):
tax_rate = forms.ChoiceField(
required=False, label=pgettext_lazy("Product tax rate type", "Tax rate")
)
category = TreeNodeChoiceField(
queryset=Category.objects.all(), label=pgettext_lazy("Category", "Category")
)
collections = forms.ModelMultipleChoiceField(
required=False,
queryset=Collection.objects.all(),
label=pgettext_lazy("Add to collection select", "Collections"),
)
description = RichTextField(
label=pgettext_lazy("Description", "Description"), required=True
)
weight = WeightField(
required=False,
label=pgettext_lazy("ProductType weight", "Weight"),
help_text=pgettext_lazy(
"Product weight field help text",
"Weight will be used to calculate shipping price, "
"if empty, equal to default value used on the ProductType.",
),
)
model_attributes_field = "attributes"
class Meta:
model = Product
exclude = ["attributes", "product_type", "updated_at", "description_json"]
labels = {
"name": pgettext_lazy("Item name", "Name"),
"price": pgettext_lazy("Currency amount", "Price"),
"publication_date": pgettext_lazy(
"Availability date", "Publish product on"
),
"is_published": pgettext_lazy("Product published toggle", "Published"),
"charge_taxes": pgettext_lazy(
"Charge taxes on product", "Charge taxes on this product"
),
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
product_type = self.instance.product_type
self.initial["tax_rate"] = self.instance.tax_rate or product_type.tax_rate
self.available_attributes = product_type.product_attributes.prefetch_related(
"values"
).all()
self.prepare_fields_for_attributes()
self.fields["collections"].initial = Collection.objects.filter(
products__name=self.instance
)
self.fields["seo_description"] = SeoDescriptionField(
extra_attrs={
"data-bind": self["description"].auto_id,
"data-materialize": self["description"].html_name,
}
)
self.fields["seo_title"] = SeoTitleField(
extra_attrs={"data-bind": self["name"].auto_id}
)
self.fields["tax_rate"].choices = get_tax_rate_type_choices()
if include_taxes_in_prices():
self.fields["price"].label = pgettext_lazy(
"Currency gross amount", "Gross price"
)
else:
self.fields["price"].label = pgettext_lazy(
"Currency net amount", "Net price"
)
if not product_type.is_shipping_required:
del self.fields["weight"]
else:
self.fields["weight"].widget.attrs[
"placeholder"
] = product_type.weight.value
def clean_seo_description(self):
seo_description = prepare_seo_description(
seo_description=self.cleaned_data["seo_description"],
html_description=self.data["description"],
max_length=self.fields["seo_description"].max_length,
)
return seo_description
def save(self, commit=True):
attributes = self.get_saved_attributes()
self.instance.attributes = attributes
instance = super().save()
instance.collections.clear()
for collection in self.cleaned_data["collections"]:
instance.collections.add(collection)
return instance
class ProductVariantForm(forms.ModelForm, AttributesMixin):
model_attributes_field = "attributes"
weight = WeightField(
required=False,
label=pgettext_lazy("ProductVariant weight", "Weight"),
help_text=pgettext_lazy(
"ProductVariant weight help text",
"Weight will be used to calculate shipping price. "
"If empty, weight from Product or ProductType will be used.",
),
)
class Meta:
model = ProductVariant
fields = [
"sku",
"price_override",
"weight",
"quantity",
"cost_price",
"track_inventory",
]
labels = {
"sku": pgettext_lazy("SKU", "SKU"),
"price_override": pgettext_lazy("Override price", "Selling price override"),
"quantity": pgettext_lazy("Integer number", "Number in stock"),
"cost_price": pgettext_lazy("Currency amount", "Cost price"),
"track_inventory": pgettext_lazy(
"Track inventory field", "Track inventory"
),
}
help_texts = {
"track_inventory": pgettext_lazy(
"product variant handle stock field help text",
"Automatically track this product's inventory",
)
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if self.instance.product.pk:
self.fields["price_override"].widget.attrs[
"placeholder"
] = self.instance.product.price.amount
qs = self.instance.product.product_type.variant_attributes.all()
self.available_attributes = qs.prefetch_related("values")
self.prepare_fields_for_attributes()
if include_taxes_in_prices():
self.fields["price_override"].label = pgettext_lazy(
"Override price", "Selling gross price override"
)
self.fields["cost_price"].label = pgettext_lazy(
"Currency amount", "Cost gross price"
)
else:
self.fields["price_override"].label = pgettext_lazy(
"Override price", "Selling net price override"
)
self.fields["cost_price"].label = pgettext_lazy(
"Currency amount", "Cost net price"
)
if not self.instance.product.product_type.is_shipping_required:
del self.fields["weight"]
else:
self.fields["weight"].widget.attrs["placeholder"] = (
getattr(self.instance.product.weight, "value", None)
or self.instance.product.product_type.weight.value
)
def save(self, commit=True):
attributes = self.get_saved_attributes()
self.instance.attributes = attributes
attrs = self.instance.product.product_type.variant_attributes.prefetch_related(
"values__translations"
)
self.instance.name = get_name_from_attributes(self.instance, attrs)
return super().save(commit=commit)
class CachingModelChoiceIterator(ModelChoiceIterator):
def __iter__(self):
if self.field.empty_label is not None:
yield ("", self.field.empty_label)
for obj in self.queryset:
yield self.choice(obj)
class CachingModelChoiceField(forms.ModelChoiceField):
def _get_choices(self):
if hasattr(self, "_choices"):
return self._choices
return CachingModelChoiceIterator(self)
choices = property(_get_choices, forms.ChoiceField._set_choices)
class VariantBulkDeleteForm(forms.Form):
items = forms.ModelMultipleChoiceField(queryset=ProductVariant.objects)
def delete(self):
items = ProductVariant.objects.filter(pk__in=self.cleaned_data["items"])
items.delete()
class ProductImageForm(forms.ModelForm):
use_required_attribute = False
variants = forms.ModelMultipleChoiceField(
queryset=ProductVariant.objects.none(),
widget=forms.CheckboxSelectMultiple,
required=False,
)
class Meta:
model = ProductImage
exclude = ("product", "sort_order")
labels = {
"image": pgettext_lazy("Product image", "Image"),
"alt": pgettext_lazy("Description", "Description"),
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if self.instance.image:
self.fields["image"].widget = ImagePreviewWidget()
def save(self, commit=True):
image = super().save(commit=commit)
create_product_thumbnails.delay(image.pk)
return image
class VariantImagesSelectForm(forms.Form):
images = forms.ModelMultipleChoiceField(
queryset=VariantImage.objects.none(),
widget=CheckboxSelectMultiple,
required=False,
)
def __init__(self, *args, **kwargs):
self.variant = kwargs.pop("variant")
super().__init__(*args, **kwargs)
self.fields["images"].queryset = self.variant.product.images.all()
self.fields["images"].initial = self.variant.images.all()
def save(self):
images = []
self.variant.images.clear()
for image in self.cleaned_data["images"]:
images.append(VariantImage(variant=self.variant, image=image))
VariantImage.objects.bulk_create(images)
class AttributeForm(forms.ModelForm):
class Meta:
model = Attribute
exclude = []
labels = {
"name": pgettext_lazy("Product display name", "Display name"),
"slug": pgettext_lazy("Product internal name", "Internal name"),
}
class AttributeValueForm(forms.ModelForm):
class Meta:
model = AttributeValue
fields = ["attribute", "name"]
widgets = {"attribute": forms.widgets.HiddenInput()}
labels = {"name": pgettext_lazy("Item name", "Name")}
def save(self, commit=True):
self.instance.slug = slugify(self.instance.name)
return super().save(commit=commit)
class ReorderAttributeValuesForm(forms.ModelForm):
ordered_values = OrderedModelMultipleChoiceField(
queryset=AttributeValue.objects.none()
)
class Meta:
model = Attribute
fields = ()
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if self.instance:
self.fields["ordered_values"].queryset = self.instance.values.all()
def save(self):
for order, value in enumerate(self.cleaned_data["ordered_values"]):
value.sort_order = order
value.save()
return self.instance
class ReorderProductImagesForm(forms.ModelForm):
ordered_images = OrderedModelMultipleChoiceField(
queryset=ProductImage.objects.none()
)
class Meta:
model = Product
fields = ()
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if self.instance:
self.fields["ordered_images"].queryset = self.instance.images.all()
def save(self):
for order, image in enumerate(self.cleaned_data["ordered_images"]):
image.sort_order = order
image.save()
return self.instance
class UploadImageForm(forms.ModelForm):
class Meta:
model = ProductImage
fields = ("image",)
labels = {"image": pgettext_lazy("Product image", "Image")}
def __init__(self, *args, **kwargs):
product = kwargs.pop("product")
super().__init__(*args, **kwargs)
self.instance.product = product
def save(self, commit=True):
image = super().save(commit=commit)
create_product_thumbnails.delay(image.pk)
return image
class ProductBulkUpdate(forms.Form):
"""Perform one selected bulk action on all selected products."""
action = forms.ChoiceField(choices=ProductBulkAction.CHOICES)
products = forms.ModelMultipleChoiceField(queryset=Product.objects.all())
def save(self):
action = self.cleaned_data["action"]
if action == ProductBulkAction.PUBLISH:
self._publish_products()
elif action == ProductBulkAction.UNPUBLISH:
self._unpublish_products()
def _publish_products(self):
self.cleaned_data["products"].update(is_published=True)
def _unpublish_products(self):
self.cleaned_data["products"].update(is_published=False)
| [
"greg@biomassiv.es"
] | greg@biomassiv.es |
e3b175c9d2a98e079ba57a123a9a1062b4e82990 | 2c926939b5192985b467455c5fdda5d92d2a3e77 | /python_env/bin/jp.py | 0ca43d0b523fe9da490cd1a9c4567efc48f39a4c | [] | no_license | mabuaita/sts | 1e16cbfb832a67ca0ce30bf92c20d5561fff99f1 | 117603442b79db167d36528a573e3f98f9c2905a | refs/heads/master | 2022-10-30T21:29:16.066903 | 2019-10-21T16:23:12 | 2019-10-21T16:23:12 | 3,158,014 | 0 | 1 | null | 2022-10-15T13:12:53 | 2012-01-11T22:39:23 | Python | UTF-8 | Python | false | false | 1,698 | py | #!/home/mddx/sts/python_env/bin/python2.7
import sys
import json
import argparse
from pprint import pformat
import jmespath
from jmespath import exceptions
def main():
parser = argparse.ArgumentParser()
parser.add_argument('expression')
parser.add_argument('-f', '--filename',
help=('The filename containing the input data. '
'If a filename is not given then data is '
'read from stdin.'))
parser.add_argument('--ast', action='store_true',
help=('Pretty print the AST, do not search the data.'))
args = parser.parse_args()
expression = args.expression
if args.ast:
# Only print the AST
expression = jmespath.compile(args.expression)
sys.stdout.write(pformat(expression.parsed))
sys.stdout.write('\n')
return 0
if args.filename:
with open(args.filename, 'r') as f:
data = json.load(f)
else:
data = sys.stdin.read()
data = json.loads(data)
try:
sys.stdout.write(json.dumps(
jmespath.search(expression, data), indent=4))
sys.stdout.write('\n')
except exceptions.ArityError as e:
sys.stderr.write("invalid-arity: %s\n" % e)
return 1
except exceptions.JMESPathTypeError as e:
sys.stderr.write("invalid-type: %s\n" % e)
return 1
except exceptions.UnknownFunctionError as e:
sys.stderr.write("unknown-function: %s\n" % e)
return 1
except exceptions.ParseError as e:
sys.stderr.write("syntax-error: %s\n" % e)
return 1
if __name__ == '__main__':
sys.exit(main())
| [
"mabuaita@yahoo.com"
] | mabuaita@yahoo.com |
cd1890ec6608023db9a5812f79eb286dd3fea438 | da1fa6374c3cb4d1cdaf2fbc4918593c87941cb9 | /Ity/Tokenizers/WordTokenizer/WordBreaker.py | 224fd5fa0aa0128ee1124e31dc733b48e467171a | [
"BSD-2-Clause"
] | permissive | heatherfro/Ubiqu-Ity | 475ccda7fe16d527c487c360c359ddd16e3f6a40 | a576541eebc1a25a9e38d3b756be216a0ba13356 | refs/heads/master | 2023-07-06T07:03:47.017455 | 2021-08-08T04:30:36 | 2021-08-08T04:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,727 | py | # coding=utf-8
"""
Heads up: this is a refactored version of gleicher's WordBreaker.
Instead of returning strings, it returns dictionaries containing "word" and "startPos" keys.
Docucscope Jr - the Naive Way!
Utilities for breaking texts into words. based on lots of assumptions.
Note: The WordBreaker creates an iterator that lets you loop over the words in
a string. At present, there is no real way to connect it to a file, so you have
to read in the whole text.
This makes a vain attempt to mimic Docuscope's word breaking rules, which
may be a bit problematic. dashes are always part of words. single quotes are
part of words, except at the beginning and end
TODO:
- Make WordBreaker work from a file without reading the whole text
- Be smarter about quotes
- Be smarter about punctuation
- Deal with the mysteries of weird characters
Created on Sun Nov 27 11:46:49 2011
@author: gleicher
"""
import string
def myisspace(c):
if c==' ' or c=='\t':
return True
else:
return False
def validletter(c):
return c.isalnum() or c == '-' or c=="'"
class WordBreaker():
"""class for breaking a string into a sequence of words"""
def __init__(self, _str):
"""create a WordBreaker for a given string"""
self.str = _str
self.strl = len(_str)
self.pos = 0
def __iter__(self):
"""this is required so that python knows that it can be iterated over"""
return self
def peek(self):
"""return the current character. if it's something weird, then advance"""
c = self.str[self.pos]
if c=='|' or c=='_' or ord(c)>127:
self.pos = self.pos +1
return self.peek()
return c
def unpeek(self,char):
"""put the character back (or at least try) - no error checking!"""
if (self.pos > 0):
self.pos -= 1
def getchar(self):
c = self.peek()
self.pos = self.pos + 1
return c
def next(self):
"""This is the main thing that does the iteration"""
if self.pos >= self.strl:
raise StopIteration
strc = []
# catch IndexError (if we go off the end of the string)
try:
# skip any spaces
while myisspace(self.peek() ):
self.pos = self.pos+1
# the first character decides what "class" we are in
c = self.getchar()
strc.append(c)
# a linefeed is something all to itself
if c=='\n' or c=='\r':
# note - this turns multiple linefeeds into single linefeeds
# maybe a bad idea?
while self.peek() == c:
self.pos = self.pos+1
return [["\n"], self.pos - 1, 1]
# we need to be a little careful with the ampersand - it might be an
# HTML code, or it might be an ampersand
# so look ahead for the semicolon
if c=='&':
try:
for i in range(8):
if self.str[self.pos+i]==';':
raise KeyError
except KeyError:
while c!=';':
c=self.getchar()
strc.append(c)
return [["".join(strc)], self.pos - len(strc), len(strc)]
except IndexError:
pass
return [["&"], self.pos - 1, 1]
# a piece of punctuation goes by itself - a linebreak is a punctuation
# note: Docuscope treats dashes as part of a word
if c in string.punctuation and c!='-':
# eat up repetition (emdash, ellipsis, ...)
while self.peek() == c:
self.pos = self.pos+1
strc.append(c)
return [["".join(strc)], self.pos - len(strc), len(strc)]
# stop when you get to something fishy
c = self.peek()
while validletter(c):
strc.append(c)
self.pos += 1
c = self.peek()
# Docuscope says an apostrophe at the end is a separate token
if strc[-1] == "'":
strc.pop()
self.unpeek("'")
return [["".join(strc).lower()], self.pos - len(strc), len(strc)]
except IndexError:
if len(strc) > 0:
self.pos=self.strl
return [["".join(strc)], self.pos - len(strc), len(strc)]
else:
raise StopIteration
| [
"ealexand@cs.wisc.edu"
] | ealexand@cs.wisc.edu |
33a7a7621b037b3e0b1dcd9b23bca3b857ee8c29 | 8bf8ab29cb25de00c6a799d1f58610528b810592 | /파이썬 SW 문제해결 기본/4861. [파이썬 SW 문제해결 기본] 3일차 - 회문/main.py | 4c37bd74d29cd8d1697e936726dc4dd023cdfd8d | [] | no_license | mgh3326/sw_expert_academy_algorithm | fa93fb68862cabeba8f9f5fff00a87f26a014afc | 97cbd2a1845e42f142d189e9121c3cd5822fc8d8 | refs/heads/master | 2020-07-03T21:40:29.948233 | 2019-11-23T07:26:15 | 2019-11-23T07:26:15 | 202,058,567 | 0 | 0 | null | 2019-11-30T06:11:34 | 2019-08-13T03:40:18 | Python | UTF-8 | Python | false | false | 1,214 | py | import sys
sys.stdin = open("./input.txt")
def is_palindrome(input_str):
if len(input_str) < 2:
return False
for i in range(len(input_str) // 2):
if input_str[i] != input_str[len(input_str) - 1 - i]:
return False
return True
def generate_substr(input_str):
global result
global is_end
for i in range(len(input_str) - m + 1):
substr = input_str[i:i + m]
if is_palindrome(substr):
result = substr
is_end = True
return
test_case_num = int(input())
for test_case_index in range(test_case_num):
result = ""
is_end = False
n, m = map(int, input().split())
board_list = []
for _ in range(n):
temp_str = input()
board_list.append(temp_str)
# substring
for board in board_list:
generate_substr(board)
if is_end:
break
if not is_end:
for w in range(n):
temp_str = ""
for h in range(n):
temp_str += board_list[h][w]
generate_substr(temp_str)
if is_end:
break
# 회문인지 비교하는 함수
print("#%d %s" % (test_case_index + 1, result))
| [
"mgh3326@naver.com"
] | mgh3326@naver.com |
4326c6511570bf7efaaca7b19ebef6dc4804c688 | 2fa9ad10b7ea0e903fb2580ccd8684a2ef140064 | /scripts/deploy_erc20.py | 59c8d5cb31ef67df5da762e32207cd3fa7bd8dba | [] | no_license | pappas999/my-first-brownie-mix | 979521bfff25dd05072a6cacdcd6cd36e06fba58 | 85d69038aaab160e2d9d02a4f81e63e65c771cee | refs/heads/master | 2023-06-19T00:21:00.719493 | 2021-07-20T07:05:08 | 2021-07-20T07:05:08 | 387,702,680 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from brownie import ERC20Basic, config, accounts
def deployContract():
account = accounts.add(config["wallets"]["from_key"])
ERC20Basic.deploy(1000000,{'from': account})
def main():
deployContract() | [
"harry@genesisblockchain.com.au"
] | harry@genesisblockchain.com.au |
92bde864e53b300dfd67537ad03dc66547478f6b | e5b91fdb176051538b807fb351e2df7d70f3075e | /build/probot_g602/probot_g602_demo/catkin_generated/pkg.develspace.context.pc.py | d965566f423efcc391490cf9f44b4452a1b524d9 | [] | no_license | RenjieChiang/probot_g602_dual_dance | 74a827c4c7765a1c280e47076649337b49a077c2 | 6dcf2702361902a50d6b8c02ad9ce6d9dbc6fff5 | refs/heads/master | 2023-04-22T04:30:00.772989 | 2021-05-14T08:19:20 | 2021-05-14T08:19:20 | 366,649,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/tianbot/probot_g602_ws/devel/include".split(';') if "/home/tianbot/probot_g602_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "moveit_core;moveit_ros_planning_interface;probot_msgs;roscpp;rospy;message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "probot_g602_demo"
PROJECT_SPACE_DIR = "/home/tianbot/probot_g602_ws/devel"
PROJECT_VERSION = "0.0.0"
| [
"1037253670@qq.com"
] | 1037253670@qq.com |
afe1ff7d941c26b1091c800390340a09b4dbfa91 | b2750720aee1300f46fd8e21038719693f6f4204 | /gestao_RH/urls.py | 9f1d60bd53b755609a9aba765eb37223783d633c | [] | no_license | matheuskaio/ProjetoDjangoGestaoRH | 458393c9b39c8ebdf99e4fee206b3d0a1cdbad7f | 8a3541c60bd71bfa72eb2d1e0d14e9a24c8d1bbb | refs/heads/master | 2020-04-11T10:26:52.488685 | 2018-12-14T22:11:49 | 2018-12-14T22:11:49 | 161,713,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('', include('apps.core.urls')),
path('funcionarios/', include('apps.funcionarios.urls')),
path('empresas/', include('apps.empresas.urls')),
path('documentos/', include('apps.documentos.urls')),
path('departamentos/', include('apps.departamentos.urls')),
path('horas-extras/', include('apps.registro_hora_extra.urls')),
path('admin/', admin.site.urls),
path('accounts/', include('django.contrib.auth.urls')),
# ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | [
"m.k.m.p.2000@gmail.com"
] | m.k.m.p.2000@gmail.com |
b434ab99daa9cacd99aa338383490ef7dd24a6a5 | a198bbc71b23b9301424675ae4d3ee98afbfa6cf | /train_redis_stream.py | f3e236994163ac5e0f59ce0217104833dcb4c7fe | [] | no_license | GeorgeHulpoi/pytorch-emotions | 5c98b4565aca607fa770971854834cb722bc931f | f1eea596ad8380ef5879c3ae002eadc25122eb7e | refs/heads/master | 2023-06-12T15:07:06.360102 | 2021-07-07T09:23:42 | 2021-07-07T09:23:42 | 343,845,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | import gc
import os
import time
import queue
import argparse
import torch
import traceback
import redisstream
from pipes import Pipeline, Base64ToImagePipe, ImageToCV2Pipe, JsonParserPipe, DistributionToLabelPipe, CV2CropFacePipe, CV2ResizePipe, CV2ToTensorPipe
from model import Model, modelPath
parser = argparse.ArgumentParser(description='Train network model from the Redis stream')
parser.add_argument('--size', type=int, help='The number of images for training. It will end the execution (and save the model) after it.')
parser.add_argument('--shutdown', action='store', const='NoValue', nargs='?', help='Shutdown the Windows at the end of training.')
args = parser.parse_args()
stream = redisstream.RedisStream()
stream.startListening()
imagePipeline = Pipeline().pipe(Base64ToImagePipe) \
.pipe(ImageToCV2Pipe) \
.pipe(CV2CropFacePipe) \
.pipe(CV2ResizePipe) \
.pipe(CV2ToTensorPipe)
labelPipeline = Pipeline().pipe(JsonParserPipe) \
.pipe(DistributionToLabelPipe)
def main():
counter = 0
while True:
try:
key = stream.queue.get_nowait()
data = stream.getKeyData(key)
image = imagePipeline.execute(data[0])
label = labelPipeline.execute(data[1].decode())
if image is None:
del label
gc.collect()
stream.deleteKeyData(key)
continue
Model.train(image, label)
del image
del label
gc.collect()
stream.deleteKeyData(key)
counter += 1
if args.size is not None:
if counter == args.size:
if args.shutdown is not None:
torch.save(Model.state_dict(), modelPath)
stream.stopListening()
os.system("shutdown /s /t 1")
else:
raise Exception('Size reached')
elif counter != 0 and ((counter / args.size) * 100) % 10 == 0:
print(f'{((counter / args.size) * 100)}% done.')
except queue.Empty:
time.sleep(1)
if __name__ == '__main__':
print('Start listening...')
try:
main()
except:
print(traceback.format_exc())
print('Exit')
torch.save(Model.state_dict(), modelPath)
stream.stopListening() | [
"armywwpt@gmail.com"
] | armywwpt@gmail.com |
12aada418cbd6a0a6d7061705384a55a027d8136 | 0f9b8649d837c5fc1c3699778c714912c47ee01f | /leadmanager/leads/migrations/0001_initial.py | 9dae977cd63f35c804e20a3570ec68d7e4ff80e3 | [] | no_license | Ketibansapi/rest0-migrate | 16552d9993b1d088ae4fa4672b13732b85ee7d9f | c52702dd92e7352375d1de13d50bbd866679e5a7 | refs/heads/master | 2023-01-10T23:47:16.800055 | 2020-09-19T08:57:31 | 2020-09-19T08:57:31 | 229,927,540 | 0 | 0 | null | 2023-01-07T13:09:29 | 2019-12-24T11:13:33 | Python | UTF-8 | Python | false | false | 707 | py | # Generated by Django 3.0.1 on 2019-12-24 11:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Lead',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('email', models.EmailField(max_length=100, unique=True)),
('message', models.CharField(blank=True, max_length=500)),
('created_at', models.DateTimeField(auto_now_add=True)),
],
),
]
| [
"deary2706@gmail.com"
] | deary2706@gmail.com |
a9262dfcc6502a45195d2975087bd16ed3586f21 | 19d91b3fd0bc684a5024b08aea5c22c8af781d89 | /schoolbudget.py | 6b71f31b2d99b99be30d1128d450fa1e20798d1f | [] | no_license | bimalmaharjan/datacampschoolbudget | bfe4b1586530f7c6242218cd68f083c0bda4c81e | d54502fd47737abf77ac5ee1aaa141288727a2c8 | refs/heads/master | 2021-01-11T14:00:15.314262 | 2017-06-20T20:16:46 | 2017-06-20T20:16:46 | 94,917,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,449 | py | import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression
from sklearn.multiclass import OneVsRestClassifier
# Import CountVectorizer
from sklearn.feature_extraction.text import CountVectorizer
# Import Pipeline
from sklearn.pipeline import Pipeline
# Import other necessary modules
from sklearn.model_selection import train_test_split
# Import the Imputer object
from sklearn.preprocessing import Imputer
from sklearn.preprocessing import FunctionTransformer,MaxAbsScaler
from sklearn.pipeline import FeatureUnion
from sklearn.ensemble import RandomForestClassifier
from sklearn.feature_selection import chi2, SelectKBest
# Import HashingVectorizer
from sklearn.feature_extraction.text import HashingVectorizer
# Select 300 best features
chi_k = 300
# this section will just have code, I won't execute because I couldn't download
# TrainingData.csv
def import_file():
df = pd.read_csv('TrainingData.csv', index_col = 0)
return df
def eda(df):
print df.head()
print df.tail()
print df.describe()
print df.info()
# Create the histogram
plt.hist(df['FTE'].dropna())
# Add title and labels
plt.title('Distribution of %full-time \n employee works')
plt.xlabel('% of full-time')
plt.ylabel('num employees')
# Display the histogram
plt.show()
def exploring_datatypes(df):
print df.dtypes
print df.dtypes.value_counts()
def categorize_dataset(df):
LABELS = ['Function', 'Use', 'Sharing', 'Reporting', 'Student_Type',
'Position_Type', 'Object_Type', 'Pre_K', 'Operating_Status']
# Define the lambda function: categorize_label
categorize_label = lambda x: x.astype('category')
# Convert df[LABELS] to a categorical type
df[LABELS] = df[LABELS].apply(categorize_label, axis =0)
# Print the converted dtypes
print(df[LABELS].dtypes)
# Calculate number of unique values for each label: num_unique_labels
num_unique_labels = df[LABELS].apply(pd.Series.nunique)
# Plot number of unique values for each label
num_unique_labels.plot(kind='bar')
# Label the axes
plt.xlabel('Labels')
plt.ylabel('Number of unique values')
# Display the plot
plt.show()
return df
def simple_classifier(df):
NUMERIC_COLUMNS = ['FTE', 'Total']
# Create the new DataFrame: numeric_data_only
numeric_data_only = pd.DataFrame()
numeric_data_only = df[NUMERIC_COLUMNS].fillna(-1000)
# Get labels and convert to dummy variables: label_dummies
label_dummies = pd.get_dummies(df[LABELS])
# Create training and test sets
X_train, X_test, y_train, y_test = multilabel_train_test_split(numeric_data_only,
label_dummies,
size=0.2,
seed=123)
# Print the info
print("X_train info:")
print(X_train.info())
print("\nX_test info:")
print(X_test.info())
print("\ny_train info:")
print(y_train.info())
print("\ny_test info:")
print(y_test.info())
# Instantiate the classifier: clf
clf = OneVsRestClassifier(LogisticRegression())
# Fit the classifier to the training data
clf.fit(X_train,y_train)
# Print the accuracy
print("Accuracy: {}".format(clf.score(X_test, y_test)))
# Load the holdout data: holdout
holdout = pd.read_csv('HoldoutData.csv', index_col=0)
# Generate predictions: predictions
predictions = clf.predict_proba(holdout[NUMERIC_COLUMNS].fillna(-1000))
# Format predictions in DataFrame: prediction_df
prediction_df = pd.DataFrame(columns=pd.get_dummies(df[LABELS]).columns,
index=holdout.index,
data=predictions)
# Save prediction_df to csv
prediction_df.to_csv('predictions.csv')
# Submit the predictions for scoring: score
score = score_submission(pred_path='predictions.csv')
# Print score
print('Your model, trained with numeric data only, yields logloss score: {}'.format(score))
def bag_of_words(df):
# Create the token pattern: TOKENS_ALPHANUMERIC
TOKENS_ALPHANUMERIC = '[A-Za-z0-9]+(?=\\s+)'
# Fill missing values in df.Position_Extra
df.Position_Extra.fillna('',inplace=True)
# Instantiate the CountVectorizer: vec_alphanumeric
vec_alphanumeric = CountVectorizer(token_pattern = TOKENS_ALPHANUMERIC)
# Fit to the data
vec_alphanumeric.fit(df.Position_Extra)
# Print the number of tokens and first 15 tokens
msg = "There are {} tokens in Position_Extra if we split on non-alpha numeric"
print(msg.format(len(vec_alphanumeric.get_feature_names())))
print(vec_alphanumeric.get_feature_names()[:15])
# Define combine_text_columns()
def combine_text_columns(data_frame, to_drop=NUMERIC_COLUMNS + LABELS):
""" converts all text in each row of data_frame to single vector """
# Drop non-text columns that are in the df
to_drop = set(to_drop) & set(data_frame.columns.tolist())
text_data = data_frame.drop(to_drop,axis=1 )
# Replace nans with blanks
text_data.fillna('',inplace=True)
# Join all text items in a row that have a space in between
return text_data.apply(lambda x: " ".join(x), axis=1)
def Vectorizer(df):
# Create the basic token pattern
TOKENS_BASIC = '\\S+(?=\\s+)'
# Create the alphanumeric token pattern
TOKENS_ALPHANUMERIC = '[A-Za-z0-9]+(?=\\s+)'
# Instantiate basic CountVectorizer: vec_basic
vec_basic = CountVectorizer(token_pattern=TOKENS_BASIC)
# Instantiate alphanumeric CountVectorizer: vec_alphanumeric
vec_alphanumeric = CountVectorizer(token_pattern=TOKENS_ALPHANUMERIC)
# Create the text vector
text_vector = combine_text_columns(df)
# Fit and transform vec_basic
vec_basic.fit_transform(text_vector)
# Print number of tokens of vec_basic
print("There are {} tokens in the dataset".format(len(vec_basic.get_feature_names())))
# Fit and transform vec_alphanumeric
vec_alphanumeric.fit_transform(text_vector)
# Print number of tokens of vec_alphanumeric
print("There are {} alpha-numeric tokens in the dataset".format(len(vec_alphanumeric.get_feature_names())))
#using hashing vectorizer
# Instantiate the HashingVectorizer: hashing_vec
hashing_vec = HashingVectorizer(token_pattern= TOKENS_ALPHANUMERIC)
# Fit and transform the Hashing Vectorizer
hashed_text = hashing_vec.fit_transform(text_data)
# Create DataFrame and print the head
hashed_df = pd.DataFrame(hashed_text.data)
print(hashed_df.head())
def pipeline_numeric(sample_df):
# Split and select numeric data only, no nans
X_train, X_test, y_train, y_test = train_test_split(sample_df[['numeric']],
pd.get_dummies(sample_df['label']),
random_state=22)
# Instantiate Pipeline object: pl
pl = Pipeline([('imp', Imputer(),
('clf', OneVsRestClassifier(LogisticRegression()))
])
# Fit the pipeline to the training data
pl.fit(X_train, y_train)
# Compute and print accuracy
accuracy = pl.score(X_test, y_test)
print("\nAccuracy on sample data - numeric, no nans: ", accuracy)
def pipeline_text(sample_df):
# Split out only the text data
X_train, X_test, y_train, y_test = train_test_split(sample_df['text'],
pd.get_dummies(sample_df['label']),
random_state=456)
# Instantiate Pipeline object: pl
pl = Pipeline([
('vec', CountVectorizer()),
('clf', OneVsRestClassifier(LogisticRegression()))
])
# Fit to the training data
pl.fit(X_train, y_train)
# Compute and print accuracy
accuracy = pl.score(X_test, y_test)
print("\nAccuracy on sample data - just text data: ", accuracy)
def function_transfomer(sample_df):
# Obtain the text data: get_text_data
get_text_data = FunctionTransformer(lambda x: x['text'], validate=False)
# Obtain the numeric data: get_numeric_data
get_numeric_data = FunctionTransformer(lambda x: x[['numeric', 'with_missing']], validate=False)
# Fit and transform the text data: just_text_data
just_text_data = get_text_data.fit_transform(sample_df)
# Fit and transform the numeric data: just_numeric_data
just_numeric_data = get_numeric_data.fit_transform(sample_df)
# Print head to check results
print('Text Data')
print(just_text_data.head())
print('\nNumeric Data')
print(just_numeric_data.head())
def feature_union(sample_df):
# Obtain the text data: get_text_data
get_text_data = FunctionTransformer(lambda x: x['text'], validate=False)
# Obtain the numeric data: get_numeric_data
get_numeric_data = FunctionTransformer(lambda x: x[['numeric', 'with_missing']], validate=False)
# Split using ALL data in sample_df
X_train, X_test, y_train, y_test = train_test_split(sample_df[['numeric', 'with_missing', 'text']],
pd.get_dummies(sample_df['label']),
random_state=22)
# Create a FeatureUnion with nested pipeline: process_and_join_features
process_and_join_features = FeatureUnion(
transformer_list = [
('numeric_features', Pipeline([
('selector', get_numeric_data),
('imputer', Imputer())
])),
('text_features', Pipeline([
('selector', get_text_data),
('vectorizer', CountVectorizer())
]))
]
)
# Instantiate nested pipeline: pl
pl = Pipeline([
('union', process_and_join_features),
('clf', OneVsRestClassifier(LogisticRegression()))
])
# Fit pl to the training data
pl.fit(X_train, y_train)
# Compute and print accuracy
accuracy = pl.score(X_test, y_test)
print("\nAccuracy on sample data - all data: ", accuracy)
def main_function_transformer():
# Get the dummy encoding of the labels
dummy_labels = pd.get_dummies(df[LABELS])
# Get the columns that are features in the original df
NON_LABELS = [c for c in df.columns if c not in LABELS]
# Split into training and test sets
X_train, X_test, y_train, y_test = multilabel_train_test_split(df[NON_LABELS],
dummy_labels,
0.2,
seed=123)
# Preprocess the text data: get_text_data
get_text_data = FunctionTransformer(combine_text_columns,validate=False)
# Preprocess the numeric data: get_numeric_data
get_numeric_data = FunctionTransformer(lambda x: x[NUMERIC_COLUMNS], validate=False)
# Complete the pipeline: pl
pl = Pipeline([
('union', FeatureUnion(
transformer_list = [
('numeric_features', Pipeline([
('selector', get_numeric_data),
('imputer', Imputer())
])),
('text_features', Pipeline([
('selector', get_text_data),
('vectorizer', CountVectorizer())
]))
]
)),
# ('clf', OneVsRestClassifier(LogisticRegression()))
('clf', RandomForestClassifier(n_estimators=15)
])
# Fit to the training data
pl.fit(X_train,y_train)
# Compute and print accuracy
accuracy = pl.score(X_test, y_test)
print("\nAccuracy on budget dataset: ", accuracy)
def main_count_vectorizer(X_train):
# Create the text vector
text_vector = combine_text_columns(X_train)
# Create the token pattern: TOKENS_ALPHANUMERIC
TOKENS_ALPHANUMERIC = '[A-Za-z0-9]+(?=\\s+)'
# Instantiate the CountVectorizer: text_features
text_features = CountVectorizer(token_pattern=TOKENS_ALPHANUMERIC)
# Fit text_features to the text vector
text_features.fit(text_vector)
# Print the first 10 tokens
print(text_features.get_feature_names()[:10])
def pipeline_using_feature_selection(df):
# Perform preprocessing
get_text_data = FunctionTransformer(combine_text_columns, validate=False)
get_numeric_data = FunctionTransformer(lambda x: x[NUMERIC_COLUMNS], validate=False)
# Create the token pattern: TOKENS_ALPHANUMERIC
TOKENS_ALPHANUMERIC = '[A-Za-z0-9]+(?=\\s+)'
# Instantiate pipeline: pl
pl = Pipeline([
('union', FeatureUnion(
transformer_list = [
('numeric_features', Pipeline([
('selector', get_numeric_data),
('imputer', Imputer())
])),
('text_features', Pipeline([
('selector', get_text_data),
('vectorizer', CountVectorizer(token_pattern=TOKENS_ALPHANUMERIC,
ngram_range=(1, 2))),
('dim_red', SelectKBest(chi2, chi_k))
]))
]
)),
('int', SparseInteractions(degree=2)), #implementing interactions
('scale', MaxAbsScaler()),
('clf', OneVsRestClassifier(LogisticRegression()))
])
def winning_model(df):
# Instantiate the winning model pipeline: pl
pl = Pipeline([
('union', FeatureUnion(
transformer_list = [
('numeric_features', Pipeline([
('selector', get_numeric_data),
('imputer', Imputer())
])),
('text_features', Pipeline([
('selector', get_text_data),
('vectorizer', HashingVectorizer(token_pattern=TOKENS_ALPHANUMERIC,
non_negative=True, norm=None, binary=False,
ngram_range=(1, 2))),
('dim_red', SelectKBest(chi2, chi_k))
]))
]
)),
('int', SparseInteractions(degree=2)),
('scale', MaxAbsScaler()),
('clf', OneVsRestClassifier(LogisticRegression()))
])
if __name__ == '__main__':
df = import_file()
eda(df)
exploring_datatypes(df)
# change the object data type to categorize data type
# so that it is easy to convert to float data type
df = categorize_dataset(df)
# start by creating a simple model
simple_classifier(df)
# create a bag of words
bag_of_words(df)
Vectorizer(df)
pipeline_numeric(df)
pipeline_text(df)
feature_union(df)
| [
"hakubimal@gmail.com"
] | hakubimal@gmail.com |
4ad1469b4fe471c698bdcda85ae0fbb1b3171229 | 9909c57ef2faca1650c488f916821030f9163b67 | /test/magicyu/dianyingfm/testMovie.py | 77e1f48f39096b55ed49faca8de9b2ab9ddcd48d | [] | no_license | magicyuuu/Dianyingfm | dd0f6cb0f2fbcaeb6b621f82c734f8c4f112d068 | 17fa7027894818ed3acc5429c8113accd87e057b | refs/heads/master | 2016-09-06T09:55:11.932802 | 2015-07-28T00:24:35 | 2015-07-28T00:24:35 | 39,804,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | # -*- coding: utf-8 -*-
__author__ = 'yushiwei'
import unittest
from magicyu.dianyingfm import movie
class testMovie(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def testInNoneOutEmpty(self):
result = movie.search("")
self.assertTrue(result == [])
def testInHaliboteOut15(self):
result = movie.search("哈利波特")
self.assertTrue(result is not None)
self.assertTrue(len(result) is 17, "数量错误")
def testInSomeOut2(self):
self.assertTrue(len(movie.search("匆匆那年")) is 2, "返回数量有误")
def testInSomeOut20(self):
self.assertTrue(len(movie.search("H")) is 20, "返回数量有误")
def testRightData(self):
results = movie.search("纸牌屋")
find = False
name = u'纸牌屋 第一季 TV'
for result in results:
if result['name'] == name and result['time'] == 2013:
find = True
self.assertTrue(result['douban'] == 9.1)
self.assertTrue(result['imdb'] == 9.1)
self.assertTrue(result['types'] == [u'剧情'])
self.assertTrue(result['actors'] == [u'凯文·史派西', u'罗宾·怀特', u'凯特·玛拉'])
self.assertTrue(find, u"没有找到: " + name)
def testInUrlOutMagnet(self):
results = movie.movieDetail('http://dianying.fm/movie/the-godfather/')
self.assertTrue(results is not None)
self.assertTrue(len(results) > 10)
find = False
for result in results:
if result.name == u'教父三部曲1080p@圣城南宫 MKV 60.0 GB':
find = True
self.assertTrue(result.video == 'MKV')
self.assertTrue(result.size == '60.0 GB')
print result.seed
self.assertTrue(result.seed == 14)
self.assertTrue(result.magnet.find(u'magnet:?x') > -1)
self.assertTrue(result.update == '2012-09-05')
self.assertTrue(find)
| [
"magicyu1986@gmail.com"
] | magicyu1986@gmail.com |
d174feba10caf4afadcac27921d4f36fc6d5cf8c | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj9-10_014908.87+011342.6/sdB_SDSSJ910_014908.87+011342.6_lc.py | 805c78e017b0ef45b1ed827d291be153bd5923f0 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[27.286958,1.2285], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ910_014908.87+011342.6 /sdB_SDSSJ910_014908.87+011342.6_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ == "__main__":
main()
| [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
10ea4fdccd51714e07e1aa3182e92ef4a19ce74a | dbfdf43948fe77f9be3ad4f88d61c90d6f837f11 | /SmartWork/toCheckDatabaseExists.py | 35376d4c34fff15e92ce1399062abd58eb1be021 | [] | no_license | syamilisn/Python-Files-Repo | 48cbfe357fbd17e0d1ed06c9ebd66746108d34a4 | fc6b6bd787033d0cbd46d15b2dddb2c3669c4840 | refs/heads/main | 2023-04-20T14:36:54.944452 | 2021-05-25T12:39:12 | 2021-05-25T12:39:12 | 365,442,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 15 18:01:20 2020
@author: shyam
To check if DB exists
"""
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="root",
password="Shy@m1l1"
)
mycursor = mydb.cursor()
mycursor.execute("SHOW DATABASES")
for x in mycursor:
print(x) | [
"59735277+syamilisn@users.noreply.github.com"
] | 59735277+syamilisn@users.noreply.github.com |
724b27c531254185684c80877aed4de161914d3c | 5383d1e06e77d86e482313e071635559d2fca8bf | /count_character.py | 5fad9e20fc35d4eb5b80b7e30778b2a86c54fcae | [] | no_license | blafuente/SelfTaughtProgram_PartFour | 857f8997ab5324e1c56d1e63c56e09d305f5448c | 3b69a28736847e97a01f1fbb7895e5ce1a982fec | refs/heads/master | 2022-11-15T09:49:40.960557 | 2020-07-06T21:41:55 | 2020-07-06T21:41:55 | 275,922,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Another popular interview question is to count how many times each
# character occurs in a string
def count_characters(string):
count_dict = {}
# going thru each character in the string
for c in string:
# if its in your dictionary, increment its value
if c in count_dict:
count_dict[c] += 1
# otherwise it has a key of one
else:
count_dict[c] = 1
print(count_dict)
count_characters("hello")
count_characters("racecar") | [
"loulafuente@MacBook-Pro.attlocal.net"
] | loulafuente@MacBook-Pro.attlocal.net |
dfc8b18ad5bcd1dca8e8242f552913dbbdb15ebf | 58d68110e65e6888899d1a868b8e19e5e9e05c3b | /day6/part1.py | 2dcd78d68749dee7b83d17283cf14e27bb09cdf5 | [] | no_license | jeremyrans/aoc2017 | 024aa8c7470306173107e90c6a3caf35bfc94ef8 | 16567d334664ff4db6506c863cbf3bc6686a7e0d | refs/heads/master | 2021-08-30T19:23:39.904099 | 2017-12-19T05:33:23 | 2017-12-19T05:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | lines = [l.split() for l in open('input.txt').readlines()][0]
lines = [int(i) for i in lines]
prev_configs = []
count = 0
while lines not in prev_configs:
prev_configs.append(lines[:])
maxV = max(lines)
maxI = lines.index(maxV)
lines[maxI] = 0
for x in xrange(1, maxV+1):
t = (maxI + x) % len(lines)
lines[t] += 1
count += 1
print count
| [
"jrans@vendasta.com"
] | jrans@vendasta.com |
2ec998d98e1fe7fd656f310f8b2b22f355e7b9f3 | b891f38eb12eeafdbcec9deee2320acfaac3a7ad | /0x11-python-network_1/2-post_email.py | 8c341dd0f2a209939ee201a9cbc73cde4e7f02c1 | [] | no_license | davixcky/holbertonschool-higher_level_programming | bb112af3e18994a46584ac3e78385e46c3d918f6 | fe4cd0e95ee976b93bd47c85c2bc810049f568fa | refs/heads/master | 2023-01-11T00:41:03.145968 | 2020-09-22T22:55:53 | 2020-09-22T22:55:53 | 259,390,611 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/python3
""" Fetches https://intranet.hbtn.io/status"""
from urllib import request, parse
import sys
if __name__ == '__main__':
url, email = sys.argv[1:]
body = {'email': email}
data = parse.urlencode(body)
data = data.encode('ascii')
req = request.Request(url, data)
with request.urlopen(req) as response:
html = response.read()
print(html.decode('utf-8'))
| [
"dvdizcky@gmail.com"
] | dvdizcky@gmail.com |
328fe766830ed081ceaf0df646470ba614068b59 | 4476597f6af6b9cd4614bf558553a7eb57c9f993 | /tensorflow学习/tensorflow_learn.py | 28dbea053a72c051c37b9874fa968b88f2678813 | [] | no_license | zhengziqiang/mypython | 07dff974f475d1b9941b33518af67ece9703691a | 7a2b419ff59a31dc937666e515490295f6be8a08 | refs/heads/master | 2021-07-14T20:01:34.231842 | 2017-04-19T01:18:25 | 2017-04-19T01:18:25 | 56,583,430 | 3 | 1 | null | 2020-07-23T11:46:35 | 2016-04-19T09:26:39 | Python | UTF-8 | Python | false | false | 404 | py | #coding=utf-8
import tensorflow as tf
x=tf.placeholder(tf.float32,[None,784])
w=tf.Variable(tf.zeros([784,10]))
b=tf.Variable(tf.zeros([10]))
y=tf.nn.softmax(tf.matmul(x,w)+b)
y_=tf.placeholder("float",[None,10])
cross_entropy=-tf.reduce_sum(y_*tf.log(y))
train_step = tf.train.GradientDescentOptimizer(0.01).minimize(cross_entropy)
init = tf.initialize_all_variables()
sess=tf.Session()
sess.run(init)
| [
"1174986943@qq.com"
] | 1174986943@qq.com |
a137c6fab5f8ef383f84dc97e08c32081d6cc57a | 4716c1f8d0c42e49891e614aa87c77f48c0991b7 | /src/_zkapauthorizer/model.py | 7c62b8ff8e014b68c598822fb4a3b524fa83d38e | [
"Apache-2.0"
] | permissive | jehadbaeth/ZKAPAuthorizer | aa89fd833e9c034659494239c8eb109872633027 | 632d2cdc96bb2975d8aff573a3858f1a6aae9963 | refs/heads/master | 2023-03-06T00:37:37.740610 | 2021-02-18T15:37:19 | 2021-02-18T15:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,825 | py | # Copyright 2019 PrivateStorage.io, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
This module implements models (in the MVC sense) for the client side of
the storage plugin.
"""
from functools import (
wraps,
)
from json import (
loads,
dumps,
)
from datetime import (
datetime,
)
from zope.interface import (
Interface,
implementer,
)
from sqlite3 import (
OperationalError,
connect as _connect,
)
import attr
from aniso8601 import (
parse_datetime as _parse_datetime,
)
from twisted.logger import (
Logger,
)
from twisted.python.filepath import (
FilePath,
)
from ._base64 import (
urlsafe_b64decode,
)
from .validators import (
is_base64_encoded,
has_length,
greater_than,
)
from .storage_common import (
pass_value_attribute,
get_configured_pass_value,
required_passes,
)
from .schema import (
get_schema_version,
get_schema_upgrades,
run_schema_upgrades,
)
def parse_datetime(s, **kw):
"""
Like ``aniso8601.parse_datetime`` but accept unicode as well.
"""
if isinstance(s, unicode):
s = s.encode("utf-8")
assert isinstance(s, bytes)
if "delimiter" in kw and isinstance(kw["delimiter"], unicode):
kw["delimiter"] = kw["delimiter"].encode("utf-8")
return _parse_datetime(s, **kw)
class ILeaseMaintenanceObserver(Interface):
"""
An object which is interested in receiving events related to the progress
of lease maintenance activity.
"""
def observe(sizes):
"""
Observe some shares encountered during lease maintenance.
:param list[int] sizes: The sizes of the shares encountered.
"""
def finish():
"""
Observe that a run of lease maintenance has completed.
"""
class StoreOpenError(Exception):
"""
There was a problem opening the underlying data store.
"""
def __init__(self, reason):
self.reason = reason
class NotEnoughTokens(Exception):
"""
An attempt to extract tokens failed because the store does not contain as
many tokens as were requested.
"""
CONFIG_DB_NAME = u"privatestorageio-zkapauthz-v1.sqlite3"
def open_and_initialize(path, connect=None):
"""
Open a SQLite3 database for use as a voucher store.
Create the database and populate it with a schema, if it does not already
exist.
:param FilePath path: The location of the SQLite3 database file.
:return: A SQLite3 connection object for the database at the given path.
"""
if connect is None:
connect = _connect
try:
path.parent().makedirs(ignoreExistingDirectory=True)
except OSError as e:
raise StoreOpenError(e)
dbfile = path.asBytesMode().path
try:
conn = connect(
dbfile,
isolation_level="IMMEDIATE",
)
except OperationalError as e:
raise StoreOpenError(e)
# Enforcement of foreign key constraints is off by default. It must be
# enabled on a per-connection basis. This is a helpful feature to ensure
# consistency so we want it enforced and we use it in our schema.
conn.execute("PRAGMA foreign_keys = ON")
with conn:
cursor = conn.cursor()
actual_version = get_schema_version(cursor)
schema_upgrades = list(get_schema_upgrades(actual_version))
run_schema_upgrades(schema_upgrades, cursor)
# Create some tables that only exist (along with their contents) for
# this connection. These are outside of the schema because they are not
# persistent. We can change them any time we like without worrying about
# upgrade logic because we re-create them on every connection.
conn.execute(
"""
-- Track tokens in use by the process holding this connection.
CREATE TEMPORARY TABLE [in-use] (
[unblinded-token] text, -- The base64 encoded unblinded token.
PRIMARY KEY([unblinded-token])
-- A foreign key on unblinded-token to [unblinded-tokens]([token])
-- would be alright - however SQLite3 foreign key constraints
-- can't cross databases (and temporary tables are considered to
-- be in a different database than normal tables).
)
""",
)
conn.execute(
"""
-- Track tokens that we want to remove from the database. Mainly just
-- works around the awkward DB-API interface for dealing with deleting
-- many rows.
CREATE TEMPORARY TABLE [to-discard] (
[unblinded-token] text
)
""",
)
conn.execute(
"""
-- Track tokens that we want to remove from the [in-use] set. Similar
-- to [to-discard].
CREATE TEMPORARY TABLE [to-reset] (
[unblinded-token] text
)
""",
)
return conn
def with_cursor(f):
"""
Decorate a function so it is automatically passed a cursor with an active
transaction as the first positional argument. If the function returns
normally then the transaction will be committed. Otherwise, the
transaction will be rolled back.
"""
@wraps(f)
def with_cursor(self, *a, **kw):
with self._connection:
cursor = self._connection.cursor()
cursor.execute("BEGIN IMMEDIATE TRANSACTION")
return f(self, cursor, *a, **kw)
return with_cursor
def memory_connect(path, *a, **kw):
"""
Always connect to an in-memory SQLite3 database.
"""
return _connect(":memory:", *a, **kw)
# The largest integer SQLite3 can represent in an integer column. Larger than
# this an the representation loses precision as a floating point.
_SQLITE3_INTEGER_MAX = 2 ** 63 - 1
@attr.s(frozen=True)
class VoucherStore(object):
"""
This class implements persistence for vouchers.
:ivar allmydata.node._Config node_config: The Tahoe-LAFS node configuration object for
the node that owns the persisted vouchers.
:ivar now: A no-argument callable that returns the time of the call as a
``datetime`` instance.
"""
_log = Logger()
pass_value = pass_value_attribute()
database_path = attr.ib(validator=attr.validators.instance_of(FilePath))
now = attr.ib()
_connection = attr.ib()
@classmethod
def from_node_config(cls, node_config, now, connect=None):
"""
Create or open the ``VoucherStore`` for a given node.
:param allmydata.node._Config node_config: The Tahoe-LAFS
configuration object for the node for which we want to open a
store.
:param now: See ``VoucherStore.now``.
:param connect: An alternate database connection function. This is
primarily for the purposes of the test suite.
"""
db_path = FilePath(node_config.get_private_path(CONFIG_DB_NAME))
conn = open_and_initialize(
db_path,
connect=connect,
)
return cls(
get_configured_pass_value(node_config),
db_path,
now,
conn,
)
@with_cursor
def get(self, cursor, voucher):
"""
:param unicode voucher: The text value of a voucher to retrieve.
:return Voucher: The voucher object that matches the given value.
"""
cursor.execute(
"""
SELECT
[number], [created], [expected-tokens], [state], [finished], [token-count], [public-key], [counter]
FROM
[vouchers]
WHERE
[number] = ?
""",
(voucher,),
)
refs = cursor.fetchall()
if len(refs) == 0:
raise KeyError(voucher)
return Voucher.from_row(refs[0])
@with_cursor
def add(self, cursor, voucher, expected_tokens, counter, get_tokens):
"""
Add random tokens associated with a voucher (possibly new, possibly
existing) to the database. If the (voucher, counter) pair is already
present, do nothing.
:param unicode voucher: The text value of a voucher with which to
associate the tokens.
:param int expected_tokens: The total number of tokens for which this
voucher is expected to be redeemed. This is only respected the
first time a voucher is added. Subsequent calls with the same
voucher but a different count ignore the value because it is
already known (and the database knows better than the caller what
it should be).
This probably means ``add`` is a broken interface for doing these
two things. Maybe it should be fixed someday.
:param int counter: The redemption counter for the given voucher with
which to associate the tokens.
:param list[RandomToken]: The tokens to add alongside the voucher.
"""
now = self.now()
if not isinstance(now, datetime):
raise TypeError("{} returned {}, expected datetime".format(self.now, now))
cursor.execute(
"""
SELECT [text]
FROM [tokens]
WHERE [voucher] = ? AND [counter] = ?
""",
(voucher, counter),
)
rows = cursor.fetchall()
if len(rows) > 0:
self._log.info(
"Loaded {count} random tokens for a voucher ({voucher}[{counter}]).",
count=len(rows),
voucher=voucher,
counter=counter,
)
tokens = list(
RandomToken(token_value)
for (token_value,)
in rows
)
else:
tokens = get_tokens()
self._log.info(
"Persisting {count} random tokens for a voucher ({voucher}[{counter}]).",
count=len(tokens),
voucher=voucher,
counter=counter,
)
cursor.execute(
"""
INSERT OR IGNORE INTO [vouchers] ([number], [expected-tokens], [created]) VALUES (?, ?, ?)
""",
(voucher, expected_tokens, self.now())
)
cursor.executemany(
"""
INSERT INTO [tokens] ([voucher], [counter], [text]) VALUES (?, ?, ?)
""",
list(
(voucher, counter, token.token_value)
for token
in tokens
),
)
return tokens
@with_cursor
def list(self, cursor):
"""
Get all known vouchers.
:return list[Voucher]: All vouchers known to the store.
"""
cursor.execute(
"""
SELECT
[number], [created], [expected-tokens], [state], [finished], [token-count], [public-key], [counter]
FROM
[vouchers]
""",
)
refs = cursor.fetchall()
return list(
Voucher.from_row(row)
for row
in refs
)
def _insert_unblinded_tokens(self, cursor, unblinded_tokens):
"""
Helper function to really insert unblinded tokens into the database.
"""
cursor.executemany(
"""
INSERT INTO [unblinded-tokens] VALUES (?)
""",
list(
(token,)
for token
in unblinded_tokens
),
)
@with_cursor
def insert_unblinded_tokens(self, cursor, unblinded_tokens):
"""
Store some unblinded tokens, for example as part of a backup-restore
process.
:param list[unicode] unblinded_tokens: The unblinded tokens to store.
"""
self._insert_unblinded_tokens(cursor, unblinded_tokens)
@with_cursor
def insert_unblinded_tokens_for_voucher(self, cursor, voucher, public_key, unblinded_tokens, completed):
"""
Store some unblinded tokens received from redemption of a voucher.
:param unicode voucher: The voucher associated with the unblinded
tokens. This voucher will be marked as redeemed to indicate it
has fulfilled its purpose and has no further use for us.
:param unicode public_key: The encoded public key for the private key
which was used to sign these tokens.
:param list[UnblindedToken] unblinded_tokens: The unblinded tokens to
store.
:param bool completed: ``True`` if redemption of this voucher is now
complete, ``False`` otherwise.
"""
if completed:
voucher_state = u"redeemed"
else:
voucher_state = u"pending"
cursor.execute(
"""
UPDATE [vouchers]
SET [state] = ?
, [token-count] = COALESCE([token-count], 0) + ?
, [finished] = ?
, [public-key] = ?
, [counter] = [counter] + 1
WHERE [number] = ?
""",
(
voucher_state,
len(unblinded_tokens),
self.now(),
public_key,
voucher,
),
)
if cursor.rowcount == 0:
raise ValueError("Cannot insert tokens for unknown voucher; add voucher first")
self._insert_unblinded_tokens(
cursor,
list(
t.unblinded_token
for t
in unblinded_tokens
),
)
@with_cursor
def mark_voucher_double_spent(self, cursor, voucher):
"""
Mark a voucher as having failed redemption because it has already been
spent.
"""
cursor.execute(
"""
UPDATE [vouchers]
SET [state] = "double-spend"
, [finished] = ?
WHERE [number] = ?
AND [state] = "pending"
""",
(self.now(), voucher),
)
if cursor.rowcount == 0:
# Was there no matching voucher or was it in the wrong state?
cursor.execute(
"""
SELECT [state]
FROM [vouchers]
WHERE [number] = ?
""",
(voucher,)
)
rows = cursor.fetchall()
if len(rows) == 0:
raise ValueError("Voucher {} not found".format(voucher))
else:
raise ValueError(
"Voucher {} in state {} cannot transition to double-spend".format(
voucher,
rows[0][0],
),
)
@with_cursor
def get_unblinded_tokens(self, cursor, count):
"""
Get some unblinded tokens.
These tokens are not removed from the store but they will not be
returned from a future call to ``get_unblinded_tokens`` *on this
``VoucherStore`` instance* unless ``reset_unblinded_tokens`` is used
to reset their state.
If the underlying storage is access via another ``VoucherStore``
instance then the behavior of this method will be as if all tokens
which have not had their state changed to invalid or spent have been
reset.
:return list[UnblindedTokens]: The removed unblinded tokens.
"""
if count > _SQLITE3_INTEGER_MAX:
# An unreasonable number of tokens and also large enough to
# provoke undesirable behavior from the database.
raise NotEnoughTokens()
cursor.execute(
"""
SELECT [token]
FROM [unblinded-tokens]
WHERE [token] NOT IN [in-use]
LIMIT ?
""",
(count,),
)
texts = cursor.fetchall()
if len(texts) < count:
raise NotEnoughTokens()
cursor.executemany(
"""
INSERT INTO [in-use] VALUES (?)
""",
texts,
)
return list(
UnblindedToken(t)
for (t,)
in texts
)
@with_cursor
def discard_unblinded_tokens(self, cursor, unblinded_tokens):
"""
Get rid of some unblinded tokens. The tokens will be completely removed
from the system. This is useful when the tokens have been
successfully spent.
:param list[UnblindedToken] unblinded_tokens: The tokens to discard.
:return: ``None``
"""
cursor.executemany(
"""
INSERT INTO [to-discard] VALUES (?)
""",
list((token.unblinded_token,) for token in unblinded_tokens),
)
cursor.execute(
"""
DELETE FROM [in-use]
WHERE [unblinded-token] IN [to-discard]
""",
)
cursor.execute(
"""
DELETE FROM [unblinded-tokens]
WHERE [token] IN [to-discard]
""",
)
cursor.execute(
"""
DELETE FROM [to-discard]
""",
)
@with_cursor
def invalidate_unblinded_tokens(self, cursor, reason, unblinded_tokens):
"""
Mark some unblinded tokens as invalid and unusable. Some record of the
tokens may be retained for future inspection. These tokens will not
be returned by any future ``get_unblinded_tokens`` call. This is
useful when an attempt to spend a token has met with rejection by the
validator.
:param list[UnblindedToken] unblinded_tokens: The tokens to mark.
:return: ``None``
"""
cursor.executemany(
"""
INSERT INTO [invalid-unblinded-tokens] VALUES (?, ?)
""",
list(
(token.unblinded_token, reason)
for token
in unblinded_tokens
),
)
cursor.execute(
"""
DELETE FROM [in-use]
WHERE [unblinded-token] IN (SELECT [token] FROM [invalid-unblinded-tokens])
""",
)
cursor.execute(
"""
DELETE FROM [unblinded-tokens]
WHERE [token] IN (SELECT [token] FROM [invalid-unblinded-tokens])
""",
)
@with_cursor
def reset_unblinded_tokens(self, cursor, unblinded_tokens):
"""
Make some unblinded tokens available to be retrieved from the store again.
This is useful if a spending operation has failed with a transient
error.
"""
cursor.executemany(
"""
INSERT INTO [to-reset] VALUES (?)
""",
list((token.unblinded_token,) for token in unblinded_tokens),
)
cursor.execute(
"""
DELETE FROM [in-use]
WHERE [unblinded-token] IN [to-reset]
""",
)
cursor.execute(
"""
DELETE FROM [to-reset]
""",
)
@with_cursor
def backup(self, cursor):
"""
Read out all state necessary to recreate this database in the event it is
lost.
"""
cursor.execute(
"""
SELECT [token] FROM [unblinded-tokens]
""",
)
tokens = cursor.fetchall()
return {
u"unblinded-tokens": list(token for (token,) in tokens),
}
def start_lease_maintenance(self):
"""
Get an object which can track a newly started round of lease maintenance
activity.
:return LeaseMaintenance: A new, started lease maintenance object.
"""
m = LeaseMaintenance(self.pass_value, self.now, self._connection)
m.start()
return m
@with_cursor
def get_latest_lease_maintenance_activity(self, cursor):
"""
Get a description of the most recently completed lease maintenance
activity.
:return LeaseMaintenanceActivity|None: If any lease maintenance has
completed, an object describing its results. Otherwise, None.
"""
cursor.execute(
"""
SELECT [started], [count], [finished]
FROM [lease-maintenance-spending]
WHERE [finished] IS NOT NULL
ORDER BY [finished] DESC
LIMIT 1
""",
)
activity = cursor.fetchall()
if len(activity) == 0:
return None
[(started, count, finished)] = activity
return LeaseMaintenanceActivity(
parse_datetime(started, delimiter=u" "),
count,
parse_datetime(finished, delimiter=u" "),
)
@implementer(ILeaseMaintenanceObserver)
@attr.s
class LeaseMaintenance(object):
"""
A state-updating helper for recording pass usage during a lease
maintenance run.
Get one of these from ``VoucherStore.start_lease_maintenance``. Then use
the ``observe`` and ``finish`` methods to persist state about a lease
maintenance run.
:ivar int _pass_value: The value of a single ZKAP in byte-months.
:ivar _now: A no-argument callable which returns a datetime giving a time
to use as current.
:ivar _connection: A SQLite3 connection object to use to persist observed
information.
:ivar _rowid: None for unstarted lease maintenance objects. For started
objects, the database row id that corresponds to the started run.
This is used to make sure future updates go to the right row.
"""
_pass_value = pass_value_attribute()
_now = attr.ib()
_connection = attr.ib()
_rowid = attr.ib(default=None)
@with_cursor
def start(self, cursor):
"""
Record the start of a lease maintenance run.
"""
if self._rowid is not None:
raise Exception("Cannot re-start a particular _LeaseMaintenance.")
cursor.execute(
"""
INSERT INTO [lease-maintenance-spending] ([started], [finished], [count])
VALUES (?, ?, ?)
""",
(self._now(), None, 0),
)
self._rowid = cursor.lastrowid
@with_cursor
def observe(self, cursor, sizes):
"""
Record a storage shares of the given sizes.
"""
count = required_passes(self._pass_value, sizes)
cursor.execute(
"""
UPDATE [lease-maintenance-spending]
SET [count] = [count] + ?
WHERE [id] = ?
""",
(count, self._rowid),
)
@with_cursor
def finish(self, cursor):
"""
Record the completion of this lease maintenance run.
"""
cursor.execute(
"""
UPDATE [lease-maintenance-spending]
SET [finished] = ?
WHERE [id] = ?
""",
(self._now(), self._rowid),
)
self._rowid = None
@attr.s
class LeaseMaintenanceActivity(object):
started = attr.ib()
passes_required = attr.ib()
finished = attr.ib()
# store = ...
# x = store.start_lease_maintenance()
# x.observe(size=123)
# x.observe(size=456)
# ...
# x.finish()
#
# x = store.get_latest_lease_maintenance_activity()
# xs.started, xs.passes_required, xs.finished
@attr.s(frozen=True)
class UnblindedToken(object):
"""
An ``UnblindedToken`` instance represents cryptographic proof of a voucher
redemption. It is an intermediate artifact in the PrivacyPass protocol
and can be used to construct a privacy-preserving pass which can be
exchanged for service.
:ivar unicode unblinded_token: The base64 encoded serialized form of the
unblinded token. This can be used to reconstruct a
``challenge_bypass_ristretto.UnblindedToken`` using that class's
``decode_base64`` method.
"""
unblinded_token = attr.ib(
validator=attr.validators.and_(
attr.validators.instance_of(unicode),
is_base64_encoded(),
has_length(128),
),
)
@attr.s(frozen=True)
class Pass(object):
"""
A ``Pass`` instance completely represents a single Zero-Knowledge Access Pass.
:ivar unicode pass_text: The text value of the pass. This can be sent to
a service provider one time to anonymously prove a prior voucher
redemption. If it is sent more than once the service provider may
choose to reject it and the anonymity property is compromised. Pass
text should be kept secret. If pass text is divulged to third-parties
the anonymity property may be compromised.
"""
preimage = attr.ib(
validator=attr.validators.and_(
attr.validators.instance_of(unicode),
is_base64_encoded(),
has_length(88),
),
)
signature = attr.ib(
validator=attr.validators.and_(
attr.validators.instance_of(unicode),
is_base64_encoded(),
has_length(88),
),
)
@property
def pass_text(self):
return u"{} {}".format(self.preimage, self.signature)
@attr.s(frozen=True)
class RandomToken(object):
"""
:ivar unicode token_value: The base64-encoded representation of the random
token.
"""
token_value = attr.ib(
validator=attr.validators.and_(
attr.validators.instance_of(unicode),
is_base64_encoded(),
has_length(128),
),
)
def _counter_attribute():
return attr.ib(
validator=attr.validators.and_(
attr.validators.instance_of((int, long)),
greater_than(-1),
),
)
@attr.s(frozen=True)
class Pending(object):
"""
The voucher has not yet been completely redeemed for ZKAPs.
:ivar int counter: The number of partial redemptions which have been
successfully performed for the voucher.
"""
counter = _counter_attribute()
def should_start_redemption(self):
return True
def to_json_v1(self):
return {
u"name": u"pending",
u"counter": self.counter,
}
@attr.s(frozen=True)
class Redeeming(object):
"""
This is a non-persistent state in which a voucher exists when the database
state is **pending** but for which there is a redemption operation in
progress.
"""
started = attr.ib(validator=attr.validators.instance_of(datetime))
counter = _counter_attribute()
def should_start_redemption(self):
return False
def to_json_v1(self):
return {
u"name": u"redeeming",
u"started": self.started.isoformat(),
u"counter": self.counter,
}
@attr.s(frozen=True)
class Redeemed(object):
"""
The voucher was successfully redeemed. Associated tokens were retrieved
and stored locally.
:ivar datetime finished: The time when the redemption finished.
:ivar int token_count: The number of tokens the voucher was redeemed for.
:ivar unicode public_key: The public part of the key used to sign the
tokens for this voucher.
"""
finished = attr.ib(validator=attr.validators.instance_of(datetime))
token_count = attr.ib(validator=attr.validators.instance_of((int, long)))
public_key = attr.ib(validator=attr.validators.optional(attr.validators.instance_of(unicode)))
def should_start_redemption(self):
return False
def to_json_v1(self):
return {
u"name": u"redeemed",
u"finished": self.finished.isoformat(),
u"token-count": self.token_count,
u"public-key": self.public_key,
}
@attr.s(frozen=True)
class DoubleSpend(object):
finished = attr.ib(validator=attr.validators.instance_of(datetime))
def should_start_redemption(self):
return False
def to_json_v1(self):
return {
u"name": u"double-spend",
u"finished": self.finished.isoformat(),
}
@attr.s(frozen=True)
class Unpaid(object):
"""
This is a non-persistent state in which a voucher exists when the database
state is **pending** but the most recent redemption attempt has failed due
to lack of payment.
"""
finished = attr.ib(validator=attr.validators.instance_of(datetime))
def should_start_redemption(self):
return True
def to_json_v1(self):
return {
u"name": u"unpaid",
u"finished": self.finished.isoformat(),
}
@attr.s(frozen=True)
class Error(object):
"""
This is a non-persistent state in which a voucher exists when the database
state is **pending** but the most recent redemption attempt has failed due
to an error that is not handled by any other part of the system.
"""
finished = attr.ib(validator=attr.validators.instance_of(datetime))
details = attr.ib(validator=attr.validators.instance_of(unicode))
def should_start_redemption(self):
return True
def to_json_v1(self):
return {
u"name": u"error",
u"finished": self.finished.isoformat(),
u"details": self.details,
}
@attr.s(frozen=True)
class Voucher(object):
"""
:ivar unicode number: The text string which gives this voucher its
identity.
:ivar datetime created: The time at which this voucher was added to this
node.
:ivar expected_tokens: The total number of tokens for which we expect to
be able to redeem this voucher. Tokens are redeemed in smaller
groups, progress of which is tracked in ``state``. This only gives
the total we expect to reach at completion.
:ivar state: An indication of the current state of this voucher. This is
an instance of ``Pending``, ``Redeeming``, ``Redeemed``,
``DoubleSpend``, ``Unpaid``, or ``Error``.
"""
number = attr.ib(
validator=attr.validators.and_(
attr.validators.instance_of(unicode),
is_base64_encoded(urlsafe_b64decode),
has_length(44),
),
)
expected_tokens = attr.ib(
validator=attr.validators.optional(
attr.validators.and_(
attr.validators.instance_of((int, long)),
greater_than(0),
),
),
)
created = attr.ib(
default=None,
validator=attr.validators.optional(attr.validators.instance_of(datetime)),
)
state = attr.ib(
default=Pending(counter=0),
validator=attr.validators.instance_of((
Pending,
Redeeming,
Redeemed,
DoubleSpend,
Unpaid,
Error,
)),
)
@classmethod
def from_row(cls, row):
def state_from_row(state, row):
if state == u"pending":
return Pending(counter=row[3])
if state == u"double-spend":
return DoubleSpend(
parse_datetime(row[0], delimiter=u" "),
)
if state == u"redeemed":
return Redeemed(
parse_datetime(row[0], delimiter=u" "),
row[1],
row[2],
)
raise ValueError("Unknown voucher state {}".format(state))
number, created, expected_tokens, state = row[:4]
return cls(
number=number,
expected_tokens=expected_tokens,
# All Python datetime-based date/time libraries fail to handle
# leap seconds. This parse call might raise an exception of the
# value represents a leap second. However, since we also use
# Python to generate the data in the first place, it should never
# represent a leap second... I hope.
created=parse_datetime(created, delimiter=u" "),
state=state_from_row(state, row[4:]),
)
@classmethod
def from_json(cls, json):
values = loads(json)
version = values.pop(u"version")
return getattr(cls, "from_json_v{}".format(version))(values)
@classmethod
def from_json_v1(cls, values):
state_json = values[u"state"]
state_name = state_json[u"name"]
if state_name == u"pending":
state = Pending(counter=state_json[u"counter"])
elif state_name == u"redeeming":
state = Redeeming(
started=parse_datetime(state_json[u"started"]),
counter=state_json[u"counter"],
)
elif state_name == u"double-spend":
state = DoubleSpend(
finished=parse_datetime(state_json[u"finished"]),
)
elif state_name == u"redeemed":
state = Redeemed(
finished=parse_datetime(state_json[u"finished"]),
token_count=state_json[u"token-count"],
public_key=state_json[u"public-key"],
)
elif state_name == u"unpaid":
state = Unpaid(
finished=parse_datetime(state_json[u"finished"]),
)
elif state_name == u"error":
state = Error(
finished=parse_datetime(state_json[u"finished"]),
details=state_json[u"details"],
)
else:
raise ValueError("Unrecognized state {!r}".format(state_json))
return cls(
number=values[u"number"],
expected_tokens=values[u"expected-tokens"],
created=None if values[u"created"] is None else parse_datetime(values[u"created"]),
state=state,
)
def to_json(self):
return dumps(self.marshal())
def marshal(self):
return self.to_json_v1()
def to_json_v1(self):
state = self.state.to_json_v1()
return {
u"number": self.number,
u"expected-tokens": self.expected_tokens,
u"created": None if self.created is None else self.created.isoformat(),
u"state": state,
u"version": 1,
}
| [
"exarkun@twistedmatrix.com"
] | exarkun@twistedmatrix.com |
f1801958f4d5a32e395bd51f9c2b933ec173cec2 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /deskutils/treeline/files/patch-install.py | d94820fb60c902ffe01a832063c061ad2a0f9b28 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | Python | false | false | 460 | py | Only check for the default spelling engine
--- install.py.orig 2018-09-06 12:23:56 UTC
+++ install.py
@@ -251,7 +251,7 @@ def main():
sys.exit(3)
global testSpell
if testSpell:
- spellCheck(['aspell -a', 'ispell -a', 'hunspell -a'])
+ spellCheck(['%%SPELL_ENGINE%% -a'])
pythonPrefixDir = os.path.join(prefixDir, 'share', progName)
pythonBuildDir = os.path.join(buildRoot, pythonPrefixDir[1:])
| [
"jhale@FreeBSD.org"
] | jhale@FreeBSD.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.