hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79a3e65e81ed7dc72deaed6f3ea314bc9066e4d4
| 3,680
|
py
|
Python
|
tests/unit/test_serializer.py
|
StenAkeStrid/django-js-urls
|
1d8c015e83c898c0ff8068b8f577fb1983e287ed
|
[
"MIT"
] | 3
|
2019-06-12T13:23:12.000Z
|
2021-06-13T10:22:56.000Z
|
tests/unit/test_serializer.py
|
StenAkeStrid/django-js-urls
|
1d8c015e83c898c0ff8068b8f577fb1983e287ed
|
[
"MIT"
] | 2
|
2021-06-01T22:43:34.000Z
|
2022-02-10T00:17:19.000Z
|
tests/unit/test_serializer.py
|
StenAkeStrid/django-js-urls
|
1d8c015e83c898c0ff8068b8f577fb1983e287ed
|
[
"MIT"
] | 1
|
2021-12-09T07:46:11.000Z
|
2021-12-09T07:46:11.000Z
|
import json
import unittest.mock
import django
import pytest
from js_urls.serializer import get_urls_as_json
class TestGetUrlsAsJsonHelper:
@unittest.mock.patch('js_urls.conf.settings.URLS', ['dummy', ])
def test_can_serialize_specific_urls_that_do_not_have_arguments(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['dummy'] == '/dummy/'
@unittest.mock.patch('js_urls.conf.settings.URLS', ['dummy_with_args', ])
def test_can_serialize_specific_urls_that_have_unnamed_arguments(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['dummy_with_args'] == '/dummy/<>/foo/<>/bar/'
@unittest.mock.patch('js_urls.conf.settings.URLS', ['dummy_with_kwargs', ])
def test_can_serialize_specific_urls_that_have_named_arguments(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['dummy_with_kwargs'] == '/dummy/<pk1>/foo/<pk2>/bar/'
@unittest.mock.patch('js_urls.conf.settings.URLS', ['dummy_with_optional_character', ])
def test_can_serialize_specific_urls_that_have_optional_characters(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['dummy_with_optional_character'] == '/dummy/<>/foo/bar/'
@unittest.mock.patch('js_urls.conf.settings.URLS', ['dummy_with_optional_group', ])
def test_can_serialize_specific_urls_that_have_an_optional_group(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['dummy_with_optional_group'] == '/dummy/<>/foo/'
@unittest.mock.patch('js_urls.conf.settings.URLS', ['dummy_with_optional_kwarg', ])
def test_can_serialize_specific_urls_that_have_an_optional_kwarg(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['dummy_with_optional_kwarg'] == '/dummy/<>/'
@unittest.mock.patch('js_urls.conf.settings.URLS', ['included_test_with_args', ])
def test_can_serialize_specific_urls_that_have_been_included(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['included_test_with_args'] == '/included/<pk1>/test/<>/foo/<>/bar/'
@pytest.mark.skipif(django.VERSION < (2, 0), reason='requires Django >= 2.0')
@unittest.mock.patch('js_urls.conf.settings.URLS', ['articles_with_re_path', ])
def test_can_serialize_specific_urls_that_have_a_regex_path(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['articles_with_re_path'] == '/articles/<year>/'
@pytest.mark.skipif(django.VERSION < (2, 0), reason='requires Django >= 2.0')
@unittest.mock.patch('js_urls.conf.settings.URLS', ['articles_with_path', ])
def test_can_serialize_specific_urls_that_have_a_path_expression(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['articles_with_path'] == '/articles/<year>/'
@pytest.mark.skipif(django.VERSION < (2, 0), reason='requires Django >= 2.0')
@unittest.mock.patch('js_urls.conf.settings.URLS', ['articles_with_paths', ])
def test_can_serialize_specific_urls_that_have_multiple_path_expressions(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['articles_with_paths'] == '/articles/<year>/<month>/'
@pytest.mark.skipif(django.VERSION < (2, 0), reason='requires Django >= 2.0')
@unittest.mock.patch('js_urls.conf.settings.URLS', ['articles_with_path_without_converter', ])
def test_can_serialize_specific_urls_that_have_a_path_without_converter(self):
output_dict = json.loads(get_urls_as_json())
assert output_dict['articles_with_path_without_converter'] == '/articles/<slug>/'
| 53.333333
| 98
| 0.73288
| 511
| 3,680
| 4.847358
| 0.138943
| 0.088817
| 0.043601
| 0.062979
| 0.834477
| 0.821558
| 0.821558
| 0.807428
| 0.760194
| 0.722648
| 0
| 0.005923
| 0.128261
| 3,680
| 68
| 99
| 54.117647
| 0.766209
| 0
| 0
| 0.277778
| 0
| 0
| 0.284783
| 0.193478
| 0
| 0
| 0
| 0
| 0.203704
| 1
| 0.203704
| false
| 0
| 0.092593
| 0
| 0.314815
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
79b393d342ee8a628786979d1fedc5e0c53b65d9
| 62,172
|
py
|
Python
|
sdk/python/pulumi_signalfx/list_chart.py
|
pulumi/pulumi-signalfx
|
0b0701eda3b9e4c5c590f3547f8cfc5d1ff8b456
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2020-05-09T17:37:04.000Z
|
2021-10-08T06:43:07.000Z
|
sdk/python/pulumi_signalfx/list_chart.py
|
pulumi/pulumi-signalfx
|
0b0701eda3b9e4c5c590f3547f8cfc5d1ff8b456
|
[
"ECL-2.0",
"Apache-2.0"
] | 61
|
2019-11-25T17:04:45.000Z
|
2022-03-31T15:44:52.000Z
|
sdk/python/pulumi_signalfx/list_chart.py
|
pulumi/pulumi-signalfx
|
0b0701eda3b9e4c5c590f3547f8cfc5d1ff8b456
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2020-05-08T06:44:20.000Z
|
2020-11-24T12:22:55.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from . import outputs
from ._inputs import *
__all__ = ['ListChartArgs', 'ListChart']
@pulumi.input_type
class ListChartArgs:
def __init__(__self__, *,
program_text: pulumi.Input[str],
color_by: Optional[pulumi.Input[str]] = None,
color_scales: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartColorScaleArgs']]]] = None,
description: Optional[pulumi.Input[str]] = None,
disable_sampling: Optional[pulumi.Input[bool]] = None,
end_time: Optional[pulumi.Input[int]] = None,
hide_missing_values: Optional[pulumi.Input[bool]] = None,
legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartLegendOptionsFieldArgs']]]] = None,
max_delay: Optional[pulumi.Input[int]] = None,
max_precision: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
refresh_interval: Optional[pulumi.Input[int]] = None,
secondary_visualization: Optional[pulumi.Input[str]] = None,
sort_by: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[int]] = None,
time_range: Optional[pulumi.Input[int]] = None,
timezone: Optional[pulumi.Input[str]] = None,
unit_prefix: Optional[pulumi.Input[str]] = None,
viz_options: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartVizOptionArgs']]]] = None):
"""
The set of arguments for constructing a ListChart resource.
:param pulumi.Input[str] program_text: Signalflow program text for the chart. More info[in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
:param pulumi.Input[str] color_by: Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default.
:param pulumi.Input[Sequence[pulumi.Input['ListChartColorScaleArgs']]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html).
:param pulumi.Input[str] description: Description of the chart.
:param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default.
:param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`.
:param pulumi.Input[bool] hide_missing_values: Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default.
:param pulumi.Input[Sequence[pulumi.Input[str]]] legend_fields_to_hides: List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`.
:param pulumi.Input[Sequence[pulumi.Input['ListChartLegendOptionsFieldArgs']]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`.
:param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints.
:param pulumi.Input[int] max_precision: Maximum number of digits to display when rounding values up or down.
:param pulumi.Input[str] name: Name of the chart.
:param pulumi.Input[int] refresh_interval: How often (in seconds) to refresh the values of the list.
:param pulumi.Input[str] secondary_visualization: The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the SignalFx default is used (`Sparkline`).
:param pulumi.Input[str] sort_by: The property to use when sorting the elements. Use `value` if you want to sort by value. Must be prepended with `+` for ascending or `-` for descending (e.g. `-foo`). Note there are some special values for some of the options provided in the UX: `"value"` for Value, `"sf_originatingMetric"` for Metric, and `"sf_metric"` for plot.
:param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`.
:param pulumi.Input[int] time_range: How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`.
:param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (default UTC).
:param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary`". `"Metric"` by default.
:param pulumi.Input[Sequence[pulumi.Input['ListChartVizOptionArgs']]] viz_options: Plot-level customization options, associated with a publish statement.
"""
pulumi.set(__self__, "program_text", program_text)
if color_by is not None:
pulumi.set(__self__, "color_by", color_by)
if color_scales is not None:
pulumi.set(__self__, "color_scales", color_scales)
if description is not None:
pulumi.set(__self__, "description", description)
if disable_sampling is not None:
pulumi.set(__self__, "disable_sampling", disable_sampling)
if end_time is not None:
pulumi.set(__self__, "end_time", end_time)
if hide_missing_values is not None:
pulumi.set(__self__, "hide_missing_values", hide_missing_values)
if legend_fields_to_hides is not None:
warnings.warn("""Please use legend_options_fields""", DeprecationWarning)
pulumi.log.warn("""legend_fields_to_hides is deprecated: Please use legend_options_fields""")
if legend_fields_to_hides is not None:
pulumi.set(__self__, "legend_fields_to_hides", legend_fields_to_hides)
if legend_options_fields is not None:
pulumi.set(__self__, "legend_options_fields", legend_options_fields)
if max_delay is not None:
pulumi.set(__self__, "max_delay", max_delay)
if max_precision is not None:
pulumi.set(__self__, "max_precision", max_precision)
if name is not None:
pulumi.set(__self__, "name", name)
if refresh_interval is not None:
pulumi.set(__self__, "refresh_interval", refresh_interval)
if secondary_visualization is not None:
pulumi.set(__self__, "secondary_visualization", secondary_visualization)
if sort_by is not None:
pulumi.set(__self__, "sort_by", sort_by)
if start_time is not None:
pulumi.set(__self__, "start_time", start_time)
if time_range is not None:
pulumi.set(__self__, "time_range", time_range)
if timezone is not None:
pulumi.set(__self__, "timezone", timezone)
if unit_prefix is not None:
pulumi.set(__self__, "unit_prefix", unit_prefix)
if viz_options is not None:
pulumi.set(__self__, "viz_options", viz_options)
@property
@pulumi.getter(name="programText")
def program_text(self) -> pulumi.Input[str]:
"""
Signalflow program text for the chart. More info[in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
"""
return pulumi.get(self, "program_text")
@program_text.setter
def program_text(self, value: pulumi.Input[str]):
pulumi.set(self, "program_text", value)
@property
@pulumi.getter(name="colorBy")
def color_by(self) -> Optional[pulumi.Input[str]]:
"""
Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default.
"""
return pulumi.get(self, "color_by")
@color_by.setter
def color_by(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "color_by", value)
@property
@pulumi.getter(name="colorScales")
def color_scales(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ListChartColorScaleArgs']]]]:
"""
Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html).
"""
return pulumi.get(self, "color_scales")
@color_scales.setter
def color_scales(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartColorScaleArgs']]]]):
pulumi.set(self, "color_scales", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the chart.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="disableSampling")
def disable_sampling(self) -> Optional[pulumi.Input[bool]]:
"""
If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default.
"""
return pulumi.get(self, "disable_sampling")
@disable_sampling.setter
def disable_sampling(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "disable_sampling", value)
@property
@pulumi.getter(name="endTime")
def end_time(self) -> Optional[pulumi.Input[int]]:
"""
Seconds since epoch. Used for visualization. Conflicts with `time_range`.
"""
return pulumi.get(self, "end_time")
@end_time.setter
def end_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "end_time", value)
@property
@pulumi.getter(name="hideMissingValues")
def hide_missing_values(self) -> Optional[pulumi.Input[bool]]:
"""
Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default.
"""
return pulumi.get(self, "hide_missing_values")
@hide_missing_values.setter
def hide_missing_values(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "hide_missing_values", value)
@property
@pulumi.getter(name="legendFieldsToHides")
def legend_fields_to_hides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`.
"""
return pulumi.get(self, "legend_fields_to_hides")
@legend_fields_to_hides.setter
def legend_fields_to_hides(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "legend_fields_to_hides", value)
@property
@pulumi.getter(name="legendOptionsFields")
def legend_options_fields(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ListChartLegendOptionsFieldArgs']]]]:
"""
List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`.
"""
return pulumi.get(self, "legend_options_fields")
@legend_options_fields.setter
def legend_options_fields(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartLegendOptionsFieldArgs']]]]):
pulumi.set(self, "legend_options_fields", value)
@property
@pulumi.getter(name="maxDelay")
def max_delay(self) -> Optional[pulumi.Input[int]]:
"""
How long (in seconds) to wait for late datapoints.
"""
return pulumi.get(self, "max_delay")
@max_delay.setter
def max_delay(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_delay", value)
@property
@pulumi.getter(name="maxPrecision")
def max_precision(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of digits to display when rounding values up or down.
"""
return pulumi.get(self, "max_precision")
@max_precision.setter
def max_precision(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_precision", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the chart.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="refreshInterval")
def refresh_interval(self) -> Optional[pulumi.Input[int]]:
"""
How often (in seconds) to refresh the values of the list.
"""
return pulumi.get(self, "refresh_interval")
@refresh_interval.setter
def refresh_interval(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "refresh_interval", value)
@property
@pulumi.getter(name="secondaryVisualization")
def secondary_visualization(self) -> Optional[pulumi.Input[str]]:
"""
The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the SignalFx default is used (`Sparkline`).
"""
return pulumi.get(self, "secondary_visualization")
@secondary_visualization.setter
def secondary_visualization(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "secondary_visualization", value)
@property
@pulumi.getter(name="sortBy")
def sort_by(self) -> Optional[pulumi.Input[str]]:
"""
The property to use when sorting the elements. Use `value` if you want to sort by value. Must be prepended with `+` for ascending or `-` for descending (e.g. `-foo`). Note there are some special values for some of the options provided in the UX: `"value"` for Value, `"sf_originatingMetric"` for Metric, and `"sf_metric"` for plot.
"""
return pulumi.get(self, "sort_by")
@sort_by.setter
def sort_by(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sort_by", value)
@property
@pulumi.getter(name="startTime")
def start_time(self) -> Optional[pulumi.Input[int]]:
"""
Seconds since epoch. Used for visualization. Conflicts with `time_range`.
"""
return pulumi.get(self, "start_time")
@start_time.setter
def start_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "start_time", value)
@property
@pulumi.getter(name="timeRange")
def time_range(self) -> Optional[pulumi.Input[int]]:
"""
How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`.
"""
return pulumi.get(self, "time_range")
@time_range.setter
def time_range(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "time_range", value)
@property
@pulumi.getter
def timezone(self) -> Optional[pulumi.Input[str]]:
"""
The property value is a string that denotes the geographic region associated with the time zone, (default UTC).
"""
return pulumi.get(self, "timezone")
@timezone.setter
def timezone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "timezone", value)
@property
@pulumi.getter(name="unitPrefix")
def unit_prefix(self) -> Optional[pulumi.Input[str]]:
"""
Must be `"Metric"` or `"Binary`". `"Metric"` by default.
"""
return pulumi.get(self, "unit_prefix")
@unit_prefix.setter
def unit_prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "unit_prefix", value)
@property
@pulumi.getter(name="vizOptions")
def viz_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ListChartVizOptionArgs']]]]:
"""
Plot-level customization options, associated with a publish statement.
"""
return pulumi.get(self, "viz_options")
@viz_options.setter
def viz_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartVizOptionArgs']]]]):
pulumi.set(self, "viz_options", value)
@pulumi.input_type
class _ListChartState:
def __init__(__self__, *,
color_by: Optional[pulumi.Input[str]] = None,
color_scales: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartColorScaleArgs']]]] = None,
description: Optional[pulumi.Input[str]] = None,
disable_sampling: Optional[pulumi.Input[bool]] = None,
end_time: Optional[pulumi.Input[int]] = None,
hide_missing_values: Optional[pulumi.Input[bool]] = None,
legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartLegendOptionsFieldArgs']]]] = None,
max_delay: Optional[pulumi.Input[int]] = None,
max_precision: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
program_text: Optional[pulumi.Input[str]] = None,
refresh_interval: Optional[pulumi.Input[int]] = None,
secondary_visualization: Optional[pulumi.Input[str]] = None,
sort_by: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[int]] = None,
time_range: Optional[pulumi.Input[int]] = None,
timezone: Optional[pulumi.Input[str]] = None,
unit_prefix: Optional[pulumi.Input[str]] = None,
url: Optional[pulumi.Input[str]] = None,
viz_options: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartVizOptionArgs']]]] = None):
"""
Input properties used for looking up and filtering ListChart resources.
:param pulumi.Input[str] color_by: Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default.
:param pulumi.Input[Sequence[pulumi.Input['ListChartColorScaleArgs']]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html).
:param pulumi.Input[str] description: Description of the chart.
:param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default.
:param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`.
:param pulumi.Input[bool] hide_missing_values: Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default.
:param pulumi.Input[Sequence[pulumi.Input[str]]] legend_fields_to_hides: List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`.
:param pulumi.Input[Sequence[pulumi.Input['ListChartLegendOptionsFieldArgs']]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`.
:param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints.
:param pulumi.Input[int] max_precision: Maximum number of digits to display when rounding values up or down.
:param pulumi.Input[str] name: Name of the chart.
:param pulumi.Input[str] program_text: Signalflow program text for the chart. More info[in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
:param pulumi.Input[int] refresh_interval: How often (in seconds) to refresh the values of the list.
:param pulumi.Input[str] secondary_visualization: The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the SignalFx default is used (`Sparkline`).
:param pulumi.Input[str] sort_by: The property to use when sorting the elements. Use `value` if you want to sort by value. Must be prepended with `+` for ascending or `-` for descending (e.g. `-foo`). Note there are some special values for some of the options provided in the UX: `"value"` for Value, `"sf_originatingMetric"` for Metric, and `"sf_metric"` for plot.
:param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`.
:param pulumi.Input[int] time_range: How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`.
:param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (default UTC).
:param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary`". `"Metric"` by default.
:param pulumi.Input[str] url: The URL of the chart.
:param pulumi.Input[Sequence[pulumi.Input['ListChartVizOptionArgs']]] viz_options: Plot-level customization options, associated with a publish statement.
"""
if color_by is not None:
pulumi.set(__self__, "color_by", color_by)
if color_scales is not None:
pulumi.set(__self__, "color_scales", color_scales)
if description is not None:
pulumi.set(__self__, "description", description)
if disable_sampling is not None:
pulumi.set(__self__, "disable_sampling", disable_sampling)
if end_time is not None:
pulumi.set(__self__, "end_time", end_time)
if hide_missing_values is not None:
pulumi.set(__self__, "hide_missing_values", hide_missing_values)
if legend_fields_to_hides is not None:
warnings.warn("""Please use legend_options_fields""", DeprecationWarning)
pulumi.log.warn("""legend_fields_to_hides is deprecated: Please use legend_options_fields""")
if legend_fields_to_hides is not None:
pulumi.set(__self__, "legend_fields_to_hides", legend_fields_to_hides)
if legend_options_fields is not None:
pulumi.set(__self__, "legend_options_fields", legend_options_fields)
if max_delay is not None:
pulumi.set(__self__, "max_delay", max_delay)
if max_precision is not None:
pulumi.set(__self__, "max_precision", max_precision)
if name is not None:
pulumi.set(__self__, "name", name)
if program_text is not None:
pulumi.set(__self__, "program_text", program_text)
if refresh_interval is not None:
pulumi.set(__self__, "refresh_interval", refresh_interval)
if secondary_visualization is not None:
pulumi.set(__self__, "secondary_visualization", secondary_visualization)
if sort_by is not None:
pulumi.set(__self__, "sort_by", sort_by)
if start_time is not None:
pulumi.set(__self__, "start_time", start_time)
if time_range is not None:
pulumi.set(__self__, "time_range", time_range)
if timezone is not None:
pulumi.set(__self__, "timezone", timezone)
if unit_prefix is not None:
pulumi.set(__self__, "unit_prefix", unit_prefix)
if url is not None:
pulumi.set(__self__, "url", url)
if viz_options is not None:
pulumi.set(__self__, "viz_options", viz_options)
@property
@pulumi.getter(name="colorBy")
def color_by(self) -> Optional[pulumi.Input[str]]:
"""
Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default.
"""
return pulumi.get(self, "color_by")
@color_by.setter
def color_by(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "color_by", value)
@property
@pulumi.getter(name="colorScales")
def color_scales(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ListChartColorScaleArgs']]]]:
"""
Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html).
"""
return pulumi.get(self, "color_scales")
@color_scales.setter
def color_scales(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartColorScaleArgs']]]]):
pulumi.set(self, "color_scales", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the chart.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="disableSampling")
def disable_sampling(self) -> Optional[pulumi.Input[bool]]:
"""
If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default.
"""
return pulumi.get(self, "disable_sampling")
@disable_sampling.setter
def disable_sampling(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "disable_sampling", value)
@property
@pulumi.getter(name="endTime")
def end_time(self) -> Optional[pulumi.Input[int]]:
"""
Seconds since epoch. Used for visualization. Conflicts with `time_range`.
"""
return pulumi.get(self, "end_time")
@end_time.setter
def end_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "end_time", value)
@property
@pulumi.getter(name="hideMissingValues")
def hide_missing_values(self) -> Optional[pulumi.Input[bool]]:
"""
Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default.
"""
return pulumi.get(self, "hide_missing_values")
@hide_missing_values.setter
def hide_missing_values(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "hide_missing_values", value)
@property
@pulumi.getter(name="legendFieldsToHides")
def legend_fields_to_hides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`.
"""
return pulumi.get(self, "legend_fields_to_hides")
@legend_fields_to_hides.setter
def legend_fields_to_hides(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "legend_fields_to_hides", value)
@property
@pulumi.getter(name="legendOptionsFields")
def legend_options_fields(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ListChartLegendOptionsFieldArgs']]]]:
"""
List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`.
"""
return pulumi.get(self, "legend_options_fields")
@legend_options_fields.setter
def legend_options_fields(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartLegendOptionsFieldArgs']]]]):
pulumi.set(self, "legend_options_fields", value)
@property
@pulumi.getter(name="maxDelay")
def max_delay(self) -> Optional[pulumi.Input[int]]:
"""
How long (in seconds) to wait for late datapoints.
"""
return pulumi.get(self, "max_delay")
@max_delay.setter
def max_delay(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_delay", value)
@property
@pulumi.getter(name="maxPrecision")
def max_precision(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of digits to display when rounding values up or down.
"""
return pulumi.get(self, "max_precision")
@max_precision.setter
def max_precision(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_precision", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the chart.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="programText")
def program_text(self) -> Optional[pulumi.Input[str]]:
"""
Signalflow program text for the chart. More info[in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
"""
return pulumi.get(self, "program_text")
@program_text.setter
def program_text(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "program_text", value)
@property
@pulumi.getter(name="refreshInterval")
def refresh_interval(self) -> Optional[pulumi.Input[int]]:
"""
How often (in seconds) to refresh the values of the list.
"""
return pulumi.get(self, "refresh_interval")
@refresh_interval.setter
def refresh_interval(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "refresh_interval", value)
@property
@pulumi.getter(name="secondaryVisualization")
def secondary_visualization(self) -> Optional[pulumi.Input[str]]:
"""
The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the SignalFx default is used (`Sparkline`).
"""
return pulumi.get(self, "secondary_visualization")
@secondary_visualization.setter
def secondary_visualization(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "secondary_visualization", value)
@property
@pulumi.getter(name="sortBy")
def sort_by(self) -> Optional[pulumi.Input[str]]:
"""
The property to use when sorting the elements. Use `value` if you want to sort by value. Must be prepended with `+` for ascending or `-` for descending (e.g. `-foo`). Note there are some special values for some of the options provided in the UX: `"value"` for Value, `"sf_originatingMetric"` for Metric, and `"sf_metric"` for plot.
"""
return pulumi.get(self, "sort_by")
@sort_by.setter
def sort_by(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sort_by", value)
@property
@pulumi.getter(name="startTime")
def start_time(self) -> Optional[pulumi.Input[int]]:
"""
Seconds since epoch. Used for visualization. Conflicts with `time_range`.
"""
return pulumi.get(self, "start_time")
@start_time.setter
def start_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "start_time", value)
@property
@pulumi.getter(name="timeRange")
def time_range(self) -> Optional[pulumi.Input[int]]:
"""
How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`.
"""
return pulumi.get(self, "time_range")
@time_range.setter
def time_range(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "time_range", value)
@property
@pulumi.getter
def timezone(self) -> Optional[pulumi.Input[str]]:
"""
The property value is a string that denotes the geographic region associated with the time zone, (default UTC).
"""
return pulumi.get(self, "timezone")
@timezone.setter
def timezone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "timezone", value)
@property
@pulumi.getter(name="unitPrefix")
def unit_prefix(self) -> Optional[pulumi.Input[str]]:
"""
Must be `"Metric"` or `"Binary`". `"Metric"` by default.
"""
return pulumi.get(self, "unit_prefix")
@unit_prefix.setter
def unit_prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "unit_prefix", value)
@property
@pulumi.getter
def url(self) -> Optional[pulumi.Input[str]]:
"""
The URL of the chart.
"""
return pulumi.get(self, "url")
@url.setter
def url(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "url", value)
@property
@pulumi.getter(name="vizOptions")
def viz_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ListChartVizOptionArgs']]]]:
"""
Plot-level customization options, associated with a publish statement.
"""
return pulumi.get(self, "viz_options")
@viz_options.setter
def viz_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ListChartVizOptionArgs']]]]):
pulumi.set(self, "viz_options", value)
class ListChart(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
color_by: Optional[pulumi.Input[str]] = None,
color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]]] = None,
description: Optional[pulumi.Input[str]] = None,
disable_sampling: Optional[pulumi.Input[bool]] = None,
end_time: Optional[pulumi.Input[int]] = None,
hide_missing_values: Optional[pulumi.Input[bool]] = None,
legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]]] = None,
max_delay: Optional[pulumi.Input[int]] = None,
max_precision: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
program_text: Optional[pulumi.Input[str]] = None,
refresh_interval: Optional[pulumi.Input[int]] = None,
secondary_visualization: Optional[pulumi.Input[str]] = None,
sort_by: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[int]] = None,
time_range: Optional[pulumi.Input[int]] = None,
timezone: Optional[pulumi.Input[str]] = None,
unit_prefix: Optional[pulumi.Input[str]] = None,
viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]]] = None,
__props__=None):
"""
This chart type displays current data values in a list format.
The name of each value in the chart reflects the name of the plot and any associated dimensions. We recommend you click the Pencil icon and give the plot a meaningful name, as in plot B below. Otherwise, just the raw metric name will be displayed on the chart, as in plot A below.
## Example Usage
```python
import pulumi
import pulumi_signalfx as signalfx
mylistchart0 = signalfx.ListChart("mylistchart0",
color_by="Metric",
description="Very cool List Chart",
disable_sampling=True,
hide_missing_values=True,
legend_options_fields=[
signalfx.ListChartLegendOptionsFieldArgs(
enabled=False,
property="collector",
),
signalfx.ListChartLegendOptionsFieldArgs(
enabled=True,
property="cluster_name",
),
signalfx.ListChartLegendOptionsFieldArgs(
enabled=True,
property="role",
),
signalfx.ListChartLegendOptionsFieldArgs(
enabled=False,
property="collector",
),
signalfx.ListChartLegendOptionsFieldArgs(
enabled=False,
property="host",
),
],
max_delay=2,
max_precision=2,
program_text=\"\"\"myfilters = filter("cluster_name", "prod") and filter("role", "search")
data("cpu.total.idle", filter=myfilters).publish()
\"\"\",
refresh_interval=1,
sort_by="-value",
timezone="Europe/Paris")
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] color_by: Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html).
:param pulumi.Input[str] description: Description of the chart.
:param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default.
:param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`.
:param pulumi.Input[bool] hide_missing_values: Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default.
:param pulumi.Input[Sequence[pulumi.Input[str]]] legend_fields_to_hides: List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`.
:param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints.
:param pulumi.Input[int] max_precision: Maximum number of digits to display when rounding values up or down.
:param pulumi.Input[str] name: Name of the chart.
:param pulumi.Input[str] program_text: Signalflow program text for the chart. More info[in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
:param pulumi.Input[int] refresh_interval: How often (in seconds) to refresh the values of the list.
:param pulumi.Input[str] secondary_visualization: The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the SignalFx default is used (`Sparkline`).
:param pulumi.Input[str] sort_by: The property to use when sorting the elements. Use `value` if you want to sort by value. Must be prepended with `+` for ascending or `-` for descending (e.g. `-foo`). Note there are some special values for some of the options provided in the UX: `"value"` for Value, `"sf_originatingMetric"` for Metric, and `"sf_metric"` for plot.
:param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`.
:param pulumi.Input[int] time_range: How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`.
:param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (default UTC).
:param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary`". `"Metric"` by default.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: ListChartArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
This chart type displays current data values in a list format.
The name of each value in the chart reflects the name of the plot and any associated dimensions. We recommend you click the Pencil icon and give the plot a meaningful name, as in plot B below. Otherwise, just the raw metric name will be displayed on the chart, as in plot A below.
## Example Usage
```python
import pulumi
import pulumi_signalfx as signalfx
mylistchart0 = signalfx.ListChart("mylistchart0",
color_by="Metric",
description="Very cool List Chart",
disable_sampling=True,
hide_missing_values=True,
legend_options_fields=[
signalfx.ListChartLegendOptionsFieldArgs(
enabled=False,
property="collector",
),
signalfx.ListChartLegendOptionsFieldArgs(
enabled=True,
property="cluster_name",
),
signalfx.ListChartLegendOptionsFieldArgs(
enabled=True,
property="role",
),
signalfx.ListChartLegendOptionsFieldArgs(
enabled=False,
property="collector",
),
signalfx.ListChartLegendOptionsFieldArgs(
enabled=False,
property="host",
),
],
max_delay=2,
max_precision=2,
program_text=\"\"\"myfilters = filter("cluster_name", "prod") and filter("role", "search")
data("cpu.total.idle", filter=myfilters).publish()
\"\"\",
refresh_interval=1,
sort_by="-value",
timezone="Europe/Paris")
```
:param str resource_name: The name of the resource.
:param ListChartArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(ListChartArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
color_by: Optional[pulumi.Input[str]] = None,
color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]]] = None,
description: Optional[pulumi.Input[str]] = None,
disable_sampling: Optional[pulumi.Input[bool]] = None,
end_time: Optional[pulumi.Input[int]] = None,
hide_missing_values: Optional[pulumi.Input[bool]] = None,
legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]]] = None,
max_delay: Optional[pulumi.Input[int]] = None,
max_precision: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
program_text: Optional[pulumi.Input[str]] = None,
refresh_interval: Optional[pulumi.Input[int]] = None,
secondary_visualization: Optional[pulumi.Input[str]] = None,
sort_by: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[int]] = None,
time_range: Optional[pulumi.Input[int]] = None,
timezone: Optional[pulumi.Input[str]] = None,
unit_prefix: Optional[pulumi.Input[str]] = None,
viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ListChartArgs.__new__(ListChartArgs)
__props__.__dict__["color_by"] = color_by
__props__.__dict__["color_scales"] = color_scales
__props__.__dict__["description"] = description
__props__.__dict__["disable_sampling"] = disable_sampling
__props__.__dict__["end_time"] = end_time
__props__.__dict__["hide_missing_values"] = hide_missing_values
if legend_fields_to_hides is not None and not opts.urn:
warnings.warn("""Please use legend_options_fields""", DeprecationWarning)
pulumi.log.warn("""legend_fields_to_hides is deprecated: Please use legend_options_fields""")
__props__.__dict__["legend_fields_to_hides"] = legend_fields_to_hides
__props__.__dict__["legend_options_fields"] = legend_options_fields
__props__.__dict__["max_delay"] = max_delay
__props__.__dict__["max_precision"] = max_precision
__props__.__dict__["name"] = name
if program_text is None and not opts.urn:
raise TypeError("Missing required property 'program_text'")
__props__.__dict__["program_text"] = program_text
__props__.__dict__["refresh_interval"] = refresh_interval
__props__.__dict__["secondary_visualization"] = secondary_visualization
__props__.__dict__["sort_by"] = sort_by
__props__.__dict__["start_time"] = start_time
__props__.__dict__["time_range"] = time_range
__props__.__dict__["timezone"] = timezone
__props__.__dict__["unit_prefix"] = unit_prefix
__props__.__dict__["viz_options"] = viz_options
__props__.__dict__["url"] = None
super(ListChart, __self__).__init__(
'signalfx:index/listChart:ListChart',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
color_by: Optional[pulumi.Input[str]] = None,
color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]]] = None,
description: Optional[pulumi.Input[str]] = None,
disable_sampling: Optional[pulumi.Input[bool]] = None,
end_time: Optional[pulumi.Input[int]] = None,
hide_missing_values: Optional[pulumi.Input[bool]] = None,
legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]]] = None,
max_delay: Optional[pulumi.Input[int]] = None,
max_precision: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
program_text: Optional[pulumi.Input[str]] = None,
refresh_interval: Optional[pulumi.Input[int]] = None,
secondary_visualization: Optional[pulumi.Input[str]] = None,
sort_by: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[int]] = None,
time_range: Optional[pulumi.Input[int]] = None,
timezone: Optional[pulumi.Input[str]] = None,
unit_prefix: Optional[pulumi.Input[str]] = None,
url: Optional[pulumi.Input[str]] = None,
viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]]] = None) -> 'ListChart':
"""
Get an existing ListChart resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] color_by: Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html).
:param pulumi.Input[str] description: Description of the chart.
:param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default.
:param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`.
:param pulumi.Input[bool] hide_missing_values: Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default.
:param pulumi.Input[Sequence[pulumi.Input[str]]] legend_fields_to_hides: List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`.
:param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints.
:param pulumi.Input[int] max_precision: Maximum number of digits to display when rounding values up or down.
:param pulumi.Input[str] name: Name of the chart.
:param pulumi.Input[str] program_text: Signalflow program text for the chart. More info[in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
:param pulumi.Input[int] refresh_interval: How often (in seconds) to refresh the values of the list.
:param pulumi.Input[str] secondary_visualization: The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the SignalFx default is used (`Sparkline`).
:param pulumi.Input[str] sort_by: The property to use when sorting the elements. Use `value` if you want to sort by value. Must be prepended with `+` for ascending or `-` for descending (e.g. `-foo`). Note there are some special values for some of the options provided in the UX: `"value"` for Value, `"sf_originatingMetric"` for Metric, and `"sf_metric"` for plot.
:param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`.
:param pulumi.Input[int] time_range: How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`.
:param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (default UTC).
:param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary`". `"Metric"` by default.
:param pulumi.Input[str] url: The URL of the chart.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _ListChartState.__new__(_ListChartState)
__props__.__dict__["color_by"] = color_by
__props__.__dict__["color_scales"] = color_scales
__props__.__dict__["description"] = description
__props__.__dict__["disable_sampling"] = disable_sampling
__props__.__dict__["end_time"] = end_time
__props__.__dict__["hide_missing_values"] = hide_missing_values
__props__.__dict__["legend_fields_to_hides"] = legend_fields_to_hides
__props__.__dict__["legend_options_fields"] = legend_options_fields
__props__.__dict__["max_delay"] = max_delay
__props__.__dict__["max_precision"] = max_precision
__props__.__dict__["name"] = name
__props__.__dict__["program_text"] = program_text
__props__.__dict__["refresh_interval"] = refresh_interval
__props__.__dict__["secondary_visualization"] = secondary_visualization
__props__.__dict__["sort_by"] = sort_by
__props__.__dict__["start_time"] = start_time
__props__.__dict__["time_range"] = time_range
__props__.__dict__["timezone"] = timezone
__props__.__dict__["unit_prefix"] = unit_prefix
__props__.__dict__["url"] = url
__props__.__dict__["viz_options"] = viz_options
return ListChart(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="colorBy")
def color_by(self) -> pulumi.Output[Optional[str]]:
"""
Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default.
"""
return pulumi.get(self, "color_by")
@property
@pulumi.getter(name="colorScales")
def color_scales(self) -> pulumi.Output[Optional[Sequence['outputs.ListChartColorScale']]]:
"""
Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html).
"""
return pulumi.get(self, "color_scales")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
"""
Description of the chart.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter(name="disableSampling")
def disable_sampling(self) -> pulumi.Output[Optional[bool]]:
"""
If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default.
"""
return pulumi.get(self, "disable_sampling")
@property
@pulumi.getter(name="endTime")
def end_time(self) -> pulumi.Output[Optional[int]]:
"""
Seconds since epoch. Used for visualization. Conflicts with `time_range`.
"""
return pulumi.get(self, "end_time")
@property
@pulumi.getter(name="hideMissingValues")
def hide_missing_values(self) -> pulumi.Output[Optional[bool]]:
"""
Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default.
"""
return pulumi.get(self, "hide_missing_values")
@property
@pulumi.getter(name="legendFieldsToHides")
def legend_fields_to_hides(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`.
"""
return pulumi.get(self, "legend_fields_to_hides")
@property
@pulumi.getter(name="legendOptionsFields")
def legend_options_fields(self) -> pulumi.Output[Optional[Sequence['outputs.ListChartLegendOptionsField']]]:
"""
List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`.
"""
return pulumi.get(self, "legend_options_fields")
@property
@pulumi.getter(name="maxDelay")
def max_delay(self) -> pulumi.Output[Optional[int]]:
"""
How long (in seconds) to wait for late datapoints.
"""
return pulumi.get(self, "max_delay")
@property
@pulumi.getter(name="maxPrecision")
def max_precision(self) -> pulumi.Output[Optional[int]]:
"""
Maximum number of digits to display when rounding values up or down.
"""
return pulumi.get(self, "max_precision")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Name of the chart.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="programText")
def program_text(self) -> pulumi.Output[str]:
"""
Signalflow program text for the chart. More info[in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
"""
return pulumi.get(self, "program_text")
@property
@pulumi.getter(name="refreshInterval")
def refresh_interval(self) -> pulumi.Output[Optional[int]]:
"""
How often (in seconds) to refresh the values of the list.
"""
return pulumi.get(self, "refresh_interval")
@property
@pulumi.getter(name="secondaryVisualization")
def secondary_visualization(self) -> pulumi.Output[Optional[str]]:
"""
The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the SignalFx default is used (`Sparkline`).
"""
return pulumi.get(self, "secondary_visualization")
@property
@pulumi.getter(name="sortBy")
def sort_by(self) -> pulumi.Output[Optional[str]]:
"""
The property to use when sorting the elements. Use `value` if you want to sort by value. Must be prepended with `+` for ascending or `-` for descending (e.g. `-foo`). Note there are some special values for some of the options provided in the UX: `"value"` for Value, `"sf_originatingMetric"` for Metric, and `"sf_metric"` for plot.
"""
return pulumi.get(self, "sort_by")
@property
@pulumi.getter(name="startTime")
def start_time(self) -> pulumi.Output[Optional[int]]:
"""
Seconds since epoch. Used for visualization. Conflicts with `time_range`.
"""
return pulumi.get(self, "start_time")
@property
@pulumi.getter(name="timeRange")
def time_range(self) -> pulumi.Output[Optional[int]]:
"""
How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`.
"""
return pulumi.get(self, "time_range")
@property
@pulumi.getter
def timezone(self) -> pulumi.Output[Optional[str]]:
"""
The property value is a string that denotes the geographic region associated with the time zone, (default UTC).
"""
return pulumi.get(self, "timezone")
@property
@pulumi.getter(name="unitPrefix")
def unit_prefix(self) -> pulumi.Output[Optional[str]]:
"""
Must be `"Metric"` or `"Binary`". `"Metric"` by default.
"""
return pulumi.get(self, "unit_prefix")
@property
@pulumi.getter
def url(self) -> pulumi.Output[str]:
"""
The URL of the chart.
"""
return pulumi.get(self, "url")
@property
@pulumi.getter(name="vizOptions")
def viz_options(self) -> pulumi.Output[Optional[Sequence['outputs.ListChartVizOption']]]:
"""
Plot-level customization options, associated with a publish statement.
"""
return pulumi.get(self, "viz_options")
| 53.002558
| 373
| 0.661021
| 7,548
| 62,172
| 5.250265
| 0.046237
| 0.089379
| 0.08678
| 0.040526
| 0.955639
| 0.947892
| 0.936536
| 0.932423
| 0.92937
| 0.910444
| 0
| 0.001396
| 0.228013
| 62,172
| 1,172
| 374
| 53.047782
| 0.824277
| 0.395033
| 0
| 0.87988
| 1
| 0
| 0.122235
| 0.047821
| 0
| 0
| 0
| 0
| 0
| 1
| 0.165165
| false
| 0.001502
| 0.010511
| 0
| 0.274775
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
79d45afd1b4490d6b8941ca6b19d1c7d2b68fb9a
| 2,886
|
py
|
Python
|
tests/path/tsk_path_spec.py
|
Defense-Cyber-Crime-Center/dfvfs
|
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
|
[
"Apache-2.0"
] | 2
|
2016-02-18T12:46:26.000Z
|
2022-03-13T03:05:05.000Z
|
tests/path/tsk_path_spec.py
|
Defense-Cyber-Crime-Center/dfvfs
|
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
|
[
"Apache-2.0"
] | null | null | null |
tests/path/tsk_path_spec.py
|
Defense-Cyber-Crime-Center/dfvfs
|
da2ccbc4c989ced5ad651057bd8f5a4b18af6d37
|
[
"Apache-2.0"
] | 5
|
2016-12-18T08:05:39.000Z
|
2019-11-19T21:18:00.000Z
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the TSK path specification implementation."""
import unittest
from tests.path import test_lib
from dfvfs.path import tsk_path_spec
class TSKPathSpecTest(test_lib.PathSpecTestCase):
"""Tests for the TSK path specification implementation."""
def testInitialize(self):
"""Tests the path specification initialization."""
path_spec = tsk_path_spec.TSKPathSpec(
location=u'/test', parent=self._path_spec)
self.assertNotEqual(path_spec, None)
path_spec = tsk_path_spec.TSKPathSpec(
data_stream=u'test', location=u'/test', parent=self._path_spec)
self.assertNotEqual(path_spec, None)
path_spec = tsk_path_spec.TSKPathSpec(
inode=1, parent=self._path_spec)
self.assertNotEqual(path_spec, None)
path_spec = tsk_path_spec.TSKPathSpec(
location=u'/test', inode=1, parent=self._path_spec)
self.assertNotEqual(path_spec, None)
with self.assertRaises(ValueError):
_ = tsk_path_spec.TSKPathSpec(location=u'/test', parent=None)
with self.assertRaises(ValueError):
_ = tsk_path_spec.TSKPathSpec(location=None, parent=self._path_spec)
with self.assertRaises(ValueError):
_ = tsk_path_spec.TSKPathSpec(inode=None, parent=self._path_spec)
with self.assertRaises(ValueError):
_ = tsk_path_spec.TSKPathSpec(
location=u'/test', parent=self._path_spec, bogus=u'BOGUS')
def testComparable(self):
"""Tests the path specification comparable property."""
path_spec = tsk_path_spec.TSKPathSpec(
location=u'/test', parent=self._path_spec)
self.assertNotEqual(path_spec, None)
expected_comparable = u'\n'.join([
u'type: TEST',
u'type: TSK, location: /test',
u''])
self.assertEqual(path_spec.comparable, expected_comparable)
path_spec = tsk_path_spec.TSKPathSpec(
data_stream=u'test', location=u'/test', parent=self._path_spec)
self.assertNotEqual(path_spec, None)
expected_comparable = u'\n'.join([
u'type: TEST',
u'type: TSK, data stream: test, location: /test',
u''])
self.assertEqual(path_spec.comparable, expected_comparable)
path_spec = tsk_path_spec.TSKPathSpec(
inode=1, parent=self._path_spec)
self.assertNotEqual(path_spec, None)
expected_comparable = u'\n'.join([
u'type: TEST',
u'type: TSK, inode: 1',
u''])
self.assertEqual(path_spec.comparable, expected_comparable)
path_spec = tsk_path_spec.TSKPathSpec(
location=u'/test', inode=1, parent=self._path_spec)
self.assertNotEqual(path_spec, None)
expected_comparable = u'\n'.join([
u'type: TEST',
u'type: TSK, inode: 1, location: /test',
u''])
self.assertEqual(path_spec.comparable, expected_comparable)
if __name__ == '__main__':
unittest.main()
| 28.294118
| 74
| 0.68711
| 364
| 2,886
| 5.195055
| 0.142857
| 0.186145
| 0.075621
| 0.139609
| 0.868852
| 0.835537
| 0.835537
| 0.787943
| 0.787943
| 0.787943
| 0
| 0.002993
| 0.189536
| 2,886
| 101
| 75
| 28.574257
| 0.805472
| 0.082814
| 0
| 0.721311
| 0
| 0
| 0.089524
| 0
| 0
| 0
| 0
| 0
| 0.262295
| 1
| 0.032787
| false
| 0
| 0.04918
| 0
| 0.098361
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8dfee8fb4ff1193d6f75a9480034fa4d43b86fce
| 88,623
|
py
|
Python
|
nfv/nfv-tests/nfv_unit_tests/tests/test_fw_update_strategy.py
|
riddopic/nfv
|
e5ced4ade4916910646bcf8018dfabadef447fc2
|
[
"Apache-2.0"
] | 2
|
2020-02-07T19:01:36.000Z
|
2022-02-23T01:41:46.000Z
|
nfv/nfv-tests/nfv_unit_tests/tests/test_fw_update_strategy.py
|
riddopic/nfv
|
e5ced4ade4916910646bcf8018dfabadef447fc2
|
[
"Apache-2.0"
] | 1
|
2021-01-14T12:02:25.000Z
|
2021-01-14T12:02:25.000Z
|
nfv/nfv-tests/nfv_unit_tests/tests/test_fw_update_strategy.py
|
riddopic/nfv
|
e5ced4ade4916910646bcf8018dfabadef447fc2
|
[
"Apache-2.0"
] | 2
|
2021-01-13T08:39:21.000Z
|
2022-02-09T00:21:55.000Z
|
#
# Copyright (c) 2020 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
import mock
import uuid
from nfv_vim import nfvi
from nfv_vim.strategy._strategy import FwUpdateStrategy
from nfv_vim.objects import HOST_PERSONALITY
from nfv_vim.objects import SW_UPDATE_ALARM_RESTRICTION
from nfv_vim.objects import SW_UPDATE_APPLY_TYPE
from nfv_vim.objects import SW_UPDATE_INSTANCE_ACTION
from . import sw_update_testcase # noqa: H304
def create_fw_update_strategy(
controller_apply_type=SW_UPDATE_APPLY_TYPE.IGNORE,
storage_apply_type=SW_UPDATE_APPLY_TYPE.IGNORE,
worker_apply_type=SW_UPDATE_APPLY_TYPE.IGNORE,
max_parallel_worker_hosts=2,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.STOP_START,
alarm_restrictions=SW_UPDATE_ALARM_RESTRICTION.STRICT,
single_controller=False):
"""
Create a firmware update strategy
"""
return FwUpdateStrategy(
uuid=str(uuid.uuid4()),
controller_apply_type=controller_apply_type,
storage_apply_type=storage_apply_type,
worker_apply_type=worker_apply_type,
max_parallel_worker_hosts=max_parallel_worker_hosts,
default_instance_action=default_instance_action,
alarm_restrictions=alarm_restrictions,
ignore_alarms=[],
single_controller=single_controller
)
@mock.patch('nfv_vim.nfvi.nfvi_compute_plugin_disabled', sw_update_testcase.fake_nfvi_compute_plugin_disabled)
class TestFwUpdateStrategy(sw_update_testcase.SwUpdateStrategyTestCase):
"""
Firmware Update Strategy Unit Tests
"""
def test_fw_update_strategy_worker_stages_ignore(self):
"""
Test the fw_update strategy add worker strategy stages:
- ignore worker apply
Verify:
- stages not created ; fw update is only supported for worker nodes
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('storage-0')
self.create_host('storage-1')
self.create_host('compute-0')
self.create_host('compute-1')
# default apply type is 'ignore' for all node types.
# Only worker nodes support firmware upgrade.
strategy = create_fw_update_strategy()
worker_hosts = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
worker_hosts.append(host)
success, reason = strategy._add_worker_strategy_stages(
sorted(worker_hosts, key=lambda host: host.name),
reboot=True)
assert success is True, "Strategy creation failed"
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'completion_percentage': 100,
'total_stages': 0
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_storage_serial_no_instances(self):
"""
Test the fw_update strategy on a storage system:
- 2 controllers
- 2 storage hosts
- 4 worker hosts
options
- serial apply
- no instances
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('storage-0')
self.create_host('storage-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 4,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts'},
{'name': 'lock-hosts',
'entity_names': ['compute-0']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0']},
{'name': 'system-stabilize',
'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts'},
{'name': 'lock-hosts',
'entity_names': ['compute-1']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-1']},
{'name': 'system-stabilize',
'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts'},
{'name': 'lock-hosts',
'entity_names': ['compute-2']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-2']},
{'name': 'system-stabilize',
'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts'},
{'name': 'lock-hosts',
'entity_names': ['compute-3']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-3']},
{'name': 'system-stabilize',
'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_storage_parallel_no_instances(self):
"""
Test the fw_update strategy on a storage system:
- 2 controllers
- 2 storage hosts
- 4 worker hosts
options
- parallel apply ; max 3
- no instances
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('storage-0')
self.create_host('storage-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
max_parallel_worker_hosts=3)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 2,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-1', 'compute-2']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-1', 'compute-2']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-1', 'compute-2']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-3']},
{'name': 'lock-hosts',
'entity_names': ['compute-3']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-3']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_storage_serial_migrate(self):
"""
Test the fw_update strategy on a storage system:
- 2 controllers
- 2 storage hosts
- 4 worker hosts
options
- serial apply
- migrate 3 instances
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('storage-0')
self.create_host('storage-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_instance('small', "test_instance_0", 'compute-0')
self.create_instance('small', "test_instance_1", 'compute-1')
self.create_instance('small', "test_instance_2", 'compute-3')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 4,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-2']},
{'name': 'lock-hosts', 'entity_names': ['compute-2']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-2']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-0']},
{'name': 'migrate-instances',
'entity_names': ['test_instance_0']},
{'name': 'lock-hosts', 'entity_names': ['compute-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-1']},
{'name': 'migrate-instances',
'entity_names': ['test_instance_1']},
{'name': 'lock-hosts', 'entity_names': ['compute-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-1']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-3']},
{'name': 'migrate-instances',
'entity_names': ['test_instance_2']},
{'name': 'lock-hosts', 'entity_names': ['compute-3']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-3']},
{'name': 'system-stabilize', 'timeout': 60},
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_storage_parallel_migrate(self):
"""
Test the fw_update strategy on a storage system:
- 2 controllers
- 2 storage hosts
- 4 worker hosts
options
- parallel apply ; max 4
- migrate 4 instances
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('storage-0')
self.create_host('storage-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5')
self.create_instance('small', "test_instance_1", 'compute-1')
self.create_instance('small', "test_instance_2", 'compute-2')
self.create_instance('small', "test_instance_3", 'compute-3')
self.create_instance('small', "test_instance_4", 'compute-4')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE,
max_parallel_worker_hosts=4)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 2,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-5']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-5']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-5']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-1', 'compute-2',
'compute-3', 'compute-4']},
{'name': 'disable-host-services'},
{'name': 'migrate-instances',
'entity_names': ['test_instance_1',
'test_instance_2',
'test_instance_3',
'test_instance_4']},
{'name': 'lock-hosts',
'entity_names': ['compute-1', 'compute-2',
'compute-3', 'compute-4']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-1', 'compute-2',
'compute-3', 'compute-4']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_standard_serial_stop_start(self):
"""
Test the fw_update strategy on a storage system:
- 2 controllers
- 2 storage hosts
- 4 worker hosts
options
- serial apply
- stop start 4 instances
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5')
self.create_host('compute-6')
self.create_host('compute-7')
self.create_instance('small', "test_instance_0", 'compute-0')
self.create_instance('small', "test_instance_1", 'compute-2')
self.create_instance('small', "test_instance_2", 'compute-4')
self.create_instance('small', "test_instance_3", 'compute-6')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.STOP_START)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 8,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-1']},
{'name': 'lock-hosts', 'entity_names': ['compute-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-1']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-3']},
{'name': 'lock-hosts', 'entity_names': ['compute-3']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-3']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-5']},
{'name': 'lock-hosts', 'entity_names': ['compute-5']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-5']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-7']},
{'name': 'lock-hosts', 'entity_names': ['compute-7']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-7']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-0']},
{'name': 'stop-instances',
'entity_names': ['test_instance_0']},
{'name': 'lock-hosts', 'entity_names': ['compute-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-0']},
{'name': 'start-instances',
'entity_names': ['test_instance_0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-2']},
{'name': 'stop-instances',
'entity_names': ['test_instance_1']},
{'name': 'lock-hosts', 'entity_names': ['compute-2']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-2']},
{'name': 'start-instances',
'entity_names': ['test_instance_1']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-4']},
{'name': 'stop-instances',
'entity_names': ['test_instance_2']},
{'name': 'lock-hosts', 'entity_names': ['compute-4']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-4']},
{'name': 'start-instances',
'entity_names': ['test_instance_2']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts', 'entity_names': ['compute-6']},
{'name': 'stop-instances',
'entity_names': ['test_instance_3']},
{'name': 'lock-hosts', 'entity_names': ['compute-6']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts', 'entity_names': ['compute-6']},
{'name': 'start-instances',
'entity_names': ['test_instance_3']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_standard_parallel_stop_start(self):
"""
Test the fw_update strategy on a standard system:
- 2 controllers
- 8 worker hosts
options
- parallel apply ; max 10
- stop start 8 instances
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5')
self.create_host('compute-6')
self.create_host('compute-7')
self.create_instance('small', "test_instance_0", 'compute-0')
self.create_instance('small', "test_instance_1", 'compute-1')
self.create_instance('small', "test_instance_2", 'compute-2')
self.create_instance('small', "test_instance_3", 'compute-3')
self.create_instance('small', "test_instance_4", 'compute-4')
self.create_instance('small', "test_instance_5", 'compute-5')
self.create_instance('small', "test_instance_6", 'compute-6')
self.create_instance('small', "test_instance_7", 'compute-7')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.STOP_START,
max_parallel_worker_hosts=10)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 1,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3',
'compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'stop-instances',
'entity_names': ['test_instance_0', 'test_instance_1',
'test_instance_2', 'test_instance_3',
'test_instance_4', 'test_instance_5',
'test_instance_6', 'test_instance_7']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3',
'compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3',
'compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'start-instances',
'entity_names': ['test_instance_0', 'test_instance_1',
'test_instance_2', 'test_instance_3',
'test_instance_4', 'test_instance_5',
'test_instance_6', 'test_instance_7']},
{'name': 'system-stabilize', 'timeout': 60},
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_standard_parallel_migrate_host_aggregate(self):
"""
Test the fw_update strategy on a storage system:
- 2 controllers
- 10 worker hosts
options
- parallel apply ; max 10
- migrate instances ; 1 per host ; 1 locked
- hosts with no instances updated first
- host aggregate limits enforced
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5')
self.create_host('compute-6')
self.create_host('compute-7')
self.create_host('compute-8')
self.create_host('compute-9')
self.create_host_aggregate('aggregate-1', ['compute-0', 'compute-2',
'compute-4', 'compute-6'])
self.create_host_aggregate('aggregate-2', ['compute-1', 'compute-3',
'compute-5', 'compute-7'])
self.create_instance('small', "test_instance_0", 'compute-0')
self.create_instance('small', "test_instance_1", 'compute-1')
self.create_instance('small', "test_instance_2", 'compute-2')
self.create_instance('small', "test_instance_3", 'compute-3',
admin_state=nfvi.objects.v1.INSTANCE_ADMIN_STATE.LOCKED)
self.create_instance('small', "test_instance_4", 'compute-4')
self.create_instance('small', "test_instance_5", 'compute-5')
self.create_instance('small', "test_instance_6", 'compute-6')
self.create_instance('small', "test_instance_7", 'compute-7')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE,
max_parallel_worker_hosts=10)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 3,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-8', 'compute-9']},
{'name': 'lock-hosts',
'entity_names': ['compute-8', 'compute-9']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-8', 'compute-9']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3']},
{'name': 'disable-host-services',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3']},
{'name': 'migrate-instances',
'entity_names': ['test_instance_0', 'test_instance_1',
'test_instance_2']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'disable-host-services',
'entity_names': ['compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'migrate-instances',
'entity_names': ['test_instance_4', 'test_instance_5',
'test_instance_6', 'test_instance_7']},
{'name': 'lock-hosts',
'entity_names': ['compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_standard_parallel_stop_start_host_aggregate(self):
"""
Test the fw_update strategy on a standard system:
- 2 controllers
- 10 worker hosts
options
- parallel apply ; max 4
- stop start instances ; 1 per host ; 1 locked
- locked instances or hosts with no instances updated first
- 2x4 host aggregate groups
- hosts with locked instances or none at all are grouped
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5')
self.create_host('compute-6')
self.create_host('compute-7')
self.create_host('compute-8')
self.create_host('compute-9')
self.create_host_aggregate('aggregate-1', ['compute-0', 'compute-2',
'compute-4', 'compute-6'])
self.create_host_aggregate('aggregate-2', ['compute-1', 'compute-3',
'compute-5', 'compute-7'])
self.create_instance('small', "test_instance_0", 'compute-0', admin_state=nfvi.objects.v1.INSTANCE_ADMIN_STATE.LOCKED)
self.create_instance('small', "test_instance_1", 'compute-1', admin_state=nfvi.objects.v1.INSTANCE_ADMIN_STATE.LOCKED)
self.create_instance('small', "test_instance_2", 'compute-2')
self.create_instance('small', "test_instance_3", 'compute-3')
self.create_instance('small', "test_instance_4", 'compute-4')
self.create_instance('small', "test_instance_5", 'compute-5')
self.create_instance('small', "test_instance_6", 'compute-6')
self.create_instance('small', "test_instance_7", 'compute-7')
self.create_instance('small', "test_instance_8", 'compute-8')
self.create_instance('small', "test_instance_9", 'compute-9')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.STOP_START,
max_parallel_worker_hosts=4)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 4,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-8', 'compute-9']},
{'name': 'stop-instances',
'entity_names': ['test_instance_8', 'test_instance_9']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-8', 'compute-9']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-8', 'compute-9']},
{'name': 'start-instances',
'entity_names': ['test_instance_8', 'test_instance_9']},
{'name': 'system-stabilize', 'timeout': 60},
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-2', 'compute-3']},
{'name': 'stop-instances',
'entity_names': ['test_instance_2', 'test_instance_3']},
{'name': 'lock-hosts',
'entity_names': ['compute-2', 'compute-3']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-2', 'compute-3']},
{'name': 'start-instances',
'entity_names': ['test_instance_2', 'test_instance_3']},
{'name': 'system-stabilize', 'timeout': 60},
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-4', 'compute-5']},
{'name': 'stop-instances',
'entity_names': ['test_instance_4', 'test_instance_5']},
{'name': 'lock-hosts',
'entity_names': ['compute-4', 'compute-5']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-4', 'compute-5']},
{'name': 'start-instances',
'entity_names': ['test_instance_4', 'test_instance_5']},
{'name': 'system-stabilize', 'timeout': 60},
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-6', 'compute-7']},
{'name': 'stop-instances',
'entity_names': ['test_instance_6', 'test_instance_7']},
{'name': 'lock-hosts',
'entity_names': ['compute-6', 'compute-7']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-6', 'compute-7']},
{'name': 'start-instances',
'entity_names': ['test_instance_6', 'test_instance_7']},
{'name': 'system-stabilize', 'timeout': 60},
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_standard_parallel_migrate_overlap_host_aggregate(self):
"""
Test the fw_update strategy on a standard system:
- 2 controllers
- 10 worker hosts
options
- parallel apply ; max 2
- migrate 10 instances ; 1 per worker host
- locked instances or hosts with no instances updated first
- 3 host aggregate groups with overlap ; 4, 3, 10
- hosts with locked instances or none at all are grouped
"""
self.create_host('controller-0')
self.create_host('controller-1')
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5')
self.create_host('compute-6')
self.create_host('compute-7')
self.create_host('compute-8')
self.create_host('compute-9')
self.create_host_aggregate('aggregate-1', ['compute-0',
'compute-1',
'compute-2',
'compute-3',
'compute-4'])
self.create_host_aggregate('aggregate-2', ['compute-5',
'compute-6',
'compute-7',
'compute-8',
'compute-9'])
self.create_host_aggregate('aggregate-3', ['compute-0',
'compute-1',
'compute-2',
'compute-3',
'compute-4',
'compute-5',
'compute-6',
'compute-7',
'compute-8',
'compute-9'])
self.create_instance('small', "test_instance_0", 'compute-0')
self.create_instance('small', "test_instance_2", 'compute-2')
self.create_instance('small', "test_instance_3", 'compute-3')
self.create_instance('small', "test_instance_4", 'compute-4')
self.create_instance('small', "test_instance_6", 'compute-6')
self.create_instance('small', "test_instance_7", 'compute-7')
self.create_instance('small', "test_instance_8", 'compute-8')
self.create_instance('small', "test_instance_9", 'compute-9')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE,
max_parallel_worker_hosts=2)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 5,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-1', 'compute-5']},
{'name': 'lock-hosts',
'entity_names': ['compute-1', 'compute-5']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-1', 'compute-5']},
{'name': 'system-stabilize',
'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-6']},
{'name': 'disable-host-services'},
{'name': 'migrate-instances',
'entity_names': ['test_instance_0',
'test_instance_6']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-6']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-6']},
{'name': 'system-stabilize',
'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-2', 'compute-7']},
{'name': 'disable-host-services'},
{'name': 'migrate-instances',
'entity_names': ['test_instance_2',
'test_instance_7']},
{'name': 'lock-hosts',
'entity_names': ['compute-2', 'compute-7']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-2', 'compute-7']},
{'name': 'system-stabilize',
'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-3', 'compute-8']},
{'name': 'disable-host-services'},
{'name': 'migrate-instances',
'entity_names': ['test_instance_3',
'test_instance_8']},
{'name': 'lock-hosts',
'entity_names': ['compute-3', 'compute-8']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-3', 'compute-8']},
{'name': 'system-stabilize',
'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-4', 'compute-9']},
{'name': 'disable-host-services'},
{'name': 'migrate-instances',
'entity_names': ['test_instance_4',
'test_instance_9']},
{'name': 'lock-hosts',
'entity_names': ['compute-4', 'compute-9']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-4', 'compute-9']},
{'name': 'system-stabilize',
'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_sx(self):
"""
Test the fw_update strategy on an All-In-One system:
- 1 all-in-one controller
options
- serial apply
- no instances
"""
self.create_host('controller-0', aio=True)
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
single_controller=True)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 1,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 60},
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_sx_stop_start(self):
"""
Test the fw_update strategy on an All-In-One system:
- 1 all-in-one controller
options
- serial apply
- stop start 1 instance
"""
self.create_host('controller-0', aio=True)
self.create_instance('small', "test_instance_0", 'controller-0')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.STOP_START,
single_controller=True)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 1,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'stop-instances',
'entity_names': ['test_instance_0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'start-instances',
'entity_names': ['test_instance_0']},
{'name': 'system-stabilize', 'timeout': 60},
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_sx_migrate_reject(self):
"""
Test the fw_update strategy on an All-In-One system:
- 1 all-in-one controller
options
- serial apply
- migrate instances ; not possible in sx
"""
self.create_host('controller-0', aio=True)
self.create_instance('small', "test_instance_0", 'controller-0')
self.create_instance('small', "test_instance_1", 'controller-0')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE,
single_controller=True)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
success, reason = strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
assert success is False, "Strategy creation failed"
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'completion_percentage': 100,
'total_stages': 0
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_sx_serial_migrate_no_openstack(self):
"""
Test the sw_patch strategy add worker strategy stages:
- 1 all-in-one controller host
- no openstack
- serial apply
- migrate instance action with no instance
"""
self.create_host('controller-0', aio=True, openstack_installed=False)
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE,
single_controller=True)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 1,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize',
'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize',
'timeout': 60},
]
},
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_dx_no_instances(self):
"""
Test the fw_update strategy on an All-In-One system:
- 2 all-in-one controllers
options
- serial apply
- no instances
"""
self.create_host('controller-0', aio=True)
self.create_host('controller-1', aio=True)
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 2,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'swact-hosts',
'entity_names': ['controller-0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 60},
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-1']},
{'name': 'swact-hosts',
'entity_names': ['controller-1']},
{'name': 'lock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 60},
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_dx_migrate_instance(self):
"""
Test the fw_update strategy on an All-In-One system:
- 2 all-in-one controllers
options
- serial apply
- migrate 1 instance
"""
self.create_host('controller-0', aio=True)
self.create_host('controller-1', aio=True)
self.create_instance('small', "test_instance_0", 'controller-0')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE,
single_controller=False)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 2,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'swact-hosts',
'entity_names': ['controller-0']},
{'name': 'migrate-instances',
'entity_names': ['test_instance_0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-1']},
{'name': 'swact-hosts',
'entity_names': ['controller-1']},
{'name': 'lock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_dx_migrate_instances(self):
"""
Test the fw_update strategy on an All-In-One system:
- 2 all-in-one controllers
options
- serial apply
- migrate 2 instances which switches the controller update order
"""
self.create_host('controller-0', aio=True)
self.create_host('controller-1', aio=True)
self.create_instance('small', "test_instance_0", 'controller-0')
self.create_instance('small', "test_instance_1", 'controller-1')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE,
single_controller=False)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 2,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'swact-hosts',
'entity_names': ['controller-0']},
{'name': 'migrate-instances',
'entity_names': ['test_instance_0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-1']},
{'name': 'swact-hosts',
'entity_names': ['controller-1']},
{'name': 'migrate-instances',
'entity_names': ['test_instance_1']},
{'name': 'lock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_dx_stop_start_instance(self):
"""
Test the fw_update strategy on an All-In-One system:
- 2 all-in-one controllers
options
- serial
- stop start 1 instance
"""
self.create_host('controller-0', aio=True)
self.create_host('controller-1', aio=True)
self.create_instance('small', "test_instance_0", 'controller-0')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.STOP_START,
single_controller=False)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
# assert success is False, "Strategy creation failed"
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 2,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 9,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'swact-hosts',
'entity_names': ['controller-0']},
{'name': 'stop-instances',
'entity_names': ['test_instance_0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'start-instances',
'entity_names': ['test_instance_0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-1']},
{'name': 'swact-hosts',
'entity_names': ['controller-1']},
{'name': 'lock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_dx_stop_start_instances(self):
"""
Test the fw_update strategy on an All-In-One system:
- 2 all-in-one controllers
options
- serial
- stop start instances
"""
self.create_host('controller-0', aio=True)
self.create_host('controller-1', aio=True)
self.create_instance('small', "test_instance_0", 'controller-0')
self.create_instance('small', "test_instance_1", 'controller-1')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.SERIAL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.STOP_START,
single_controller=False)
fw_update_host_list = []
for host in list(self._host_table.values()):
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 2,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 9,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'swact-hosts',
'entity_names': ['controller-0']},
{'name': 'stop-instances',
'entity_names': ['test_instance_0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'start-instances',
'entity_names': ['test_instance_0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 9,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-1']},
{'name': 'swact-hosts',
'entity_names': ['controller-1']},
{'name': 'stop-instances',
'entity_names': ['test_instance_1']},
{'name': 'lock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-1']},
{'name': 'start-instances',
'entity_names': ['test_instance_1']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_dx_plus_parallel_locked_hosts(self):
"""
Test the fw_update strategy on an All-In-One system:
- 2 all-in-one controllers
- 6 computes ; 2 are locked
options
- parallel apply ; max 2
- no instances
"""
self.create_host('controller-0', aio=True)
self.create_host('controller-1', aio=True)
self.create_host('compute-0')
self.create_host('compute-1',
admin_state=nfvi.objects.v1.HOST_ADMIN_STATE.LOCKED,
oper_state=nfvi.objects.v1.HOST_OPER_STATE.DISABLED,
avail_status=nfvi.objects.v1.HOST_AVAIL_STATUS.ONLINE)
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5',
admin_state=nfvi.objects.v1.HOST_ADMIN_STATE.LOCKED,
oper_state=nfvi.objects.v1.HOST_OPER_STATE.DISABLED,
avail_status=nfvi.objects.v1.HOST_AVAIL_STATUS.ONLINE)
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
max_parallel_worker_hosts=2)
fw_update_worker_host_list = []
for host in list(self._host_table.values()):
if host._nfvi_host.admin_state == nfvi.objects.v1.HOST_ADMIN_STATE.UNLOCKED:
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_worker_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_worker_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 4,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'swact-hosts',
'entity_names': ['controller-0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-1']},
{'name': 'swact-hosts',
'entity_names': ['controller-1']},
{'name': 'lock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 60},
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-2']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-2']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-2']},
{'name': 'system-stabilize', 'timeout': 60},
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 6,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-3', 'compute-4']},
{'name': 'lock-hosts',
'entity_names': ['compute-3', 'compute-4']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-3', 'compute-4']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_plus_parallel_migrate_anti_affinity(self):
"""
Test the fw_update strategy on an All-In-One Plus system:
- 2 all-in-one controllers
- 6 worker hosts
options
- parallel apply ; max 2
- migrate instances with 2 anti affinity groups
"""
self.create_host('controller-0', aio=True)
self.create_host('controller-1', aio=True)
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5')
self.create_instance('small', "test_instance_0", 'compute-0')
self.create_instance('small', "test_instance_1", 'compute-1')
self.create_instance('small', "test_instance_2", 'compute-2')
self.create_instance('small', "test_instance_3", 'compute-3')
self.create_instance('small', "test_instance_4", 'compute-4')
self.create_instance('small', "test_instance_5", 'compute-5')
self.create_instance_group('instance_group_1',
['test_instance_0', 'test_instance_1'],
[nfvi.objects.v1.INSTANCE_GROUP_POLICY.ANTI_AFFINITY])
self.create_instance_group('instance_group_2',
['test_instance_3', 'test_instance_5'],
[nfvi.objects.v1.INSTANCE_GROUP_POLICY.ANTI_AFFINITY])
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.MIGRATE,
max_parallel_worker_hosts=2)
fw_update_worker_host_list = []
for host in list(self._host_table.values()):
if host._nfvi_host.admin_state == nfvi.objects.v1.HOST_ADMIN_STATE.UNLOCKED:
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_worker_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_worker_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 5,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'swact-hosts',
'entity_names': ['controller-0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-1']},
{'name': 'swact-hosts',
'entity_names': ['controller-1']},
{'name': 'lock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-2']},
{'name': 'disable-host-services'},
{'name': 'migrate-instances',
'entity_names': ['test_instance_0', 'test_instance_2']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-2']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-2']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-1', 'compute-3']},
{'name': 'disable-host-services'},
{'name': 'migrate-instances',
'entity_names': ['test_instance_1', 'test_instance_3']},
{'name': 'lock-hosts',
'entity_names': ['compute-1', 'compute-3']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-1', 'compute-3']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-4', 'compute-5']},
{'name': 'disable-host-services'},
{'name': 'migrate-instances',
'entity_names': ['test_instance_4', 'test_instance_5']},
{'name': 'lock-hosts',
'entity_names': ['compute-4', 'compute-5']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-4', 'compute-5']},
{'name': 'system-stabilize', 'timeout': 60}
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
def test_fw_update_strategy_aio_plus_parallel_stop_start(self):
"""
Test the fw_update strategy on an All-In-One Plus system:
- 2 all-in-one controllers
- 8 worker hosts
options
- parallel apply ; max 10
- stop start 8 instances
"""
self.create_host('controller-0', aio=True)
self.create_host('controller-1', aio=True)
self.create_host('compute-0')
self.create_host('compute-1')
self.create_host('compute-2')
self.create_host('compute-3')
self.create_host('compute-4')
self.create_host('compute-5')
self.create_host('compute-6')
self.create_host('compute-7')
self.create_instance('small', "test_instance_0", 'compute-0')
self.create_instance('small', "test_instance_1", 'compute-1')
self.create_instance('small', "test_instance_2", 'compute-2')
self.create_instance('small', "test_instance_3", 'compute-3')
self.create_instance('small', "test_instance_4", 'compute-4')
self.create_instance('small', "test_instance_5", 'compute-5')
self.create_instance('small', "test_instance_6", 'compute-6')
self.create_instance('small', "test_instance_7", 'compute-7')
strategy = create_fw_update_strategy(
worker_apply_type=SW_UPDATE_APPLY_TYPE.PARALLEL,
default_instance_action=SW_UPDATE_INSTANCE_ACTION.STOP_START,
max_parallel_worker_hosts=10)
fw_update_controller_host_list = []
fw_update_worker_host_list = []
for host in list(self._host_table.values()):
if host._nfvi_host.admin_state == nfvi.objects.v1.HOST_ADMIN_STATE.UNLOCKED:
if HOST_PERSONALITY.WORKER in host.personality:
fw_update_worker_host_list.append(host)
strategy._add_worker_strategy_stages(
sorted(fw_update_worker_host_list, key=lambda host: host.name),
reboot=True)
apply_phase = strategy.apply_phase.as_dict()
expected_results = {
'total_stages': 3,
'stages': [
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-0']},
{'name': 'swact-hosts',
'entity_names': ['controller-0']},
{'name': 'lock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-0']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 7,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['controller-1']},
{'name': 'swact-hosts',
'entity_names': ['controller-1']},
{'name': 'lock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['controller-1']},
{'name': 'system-stabilize', 'timeout': 60}
]
},
{'name': 'fw-update-worker-hosts',
'total_steps': 8,
'steps': [
{'name': 'query-alarms'},
{'name': 'fw-update-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3',
'compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'stop-instances',
'entity_names': ['test_instance_0', 'test_instance_1',
'test_instance_2', 'test_instance_3',
'test_instance_4', 'test_instance_5',
'test_instance_6', 'test_instance_7']},
{'name': 'lock-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3',
'compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'system-stabilize', 'timeout': 15},
{'name': 'unlock-hosts',
'entity_names': ['compute-0', 'compute-1',
'compute-2', 'compute-3',
'compute-4', 'compute-5',
'compute-6', 'compute-7']},
{'name': 'start-instances',
'entity_names': ['test_instance_0', 'test_instance_1',
'test_instance_2', 'test_instance_3',
'test_instance_4', 'test_instance_5',
'test_instance_6', 'test_instance_7']},
{'name': 'system-stabilize', 'timeout': 60},
]
}
]
}
sw_update_testcase.validate_strategy_persists(strategy)
sw_update_testcase.validate_phase(apply_phase, expected_results)
| 42.668753
| 126
| 0.481613
| 8,213
| 88,623
| 4.936808
| 0.023012
| 0.048735
| 0.073398
| 0.074385
| 0.963622
| 0.957258
| 0.951093
| 0.941671
| 0.931189
| 0.923889
| 0
| 0.021439
| 0.38314
| 88,623
| 2,076
| 127
| 42.689306
| 0.720239
| 0.044074
| 0
| 0.839074
| 0
| 0
| 0.268601
| 0.018841
| 0
| 0
| 0
| 0
| 0.001188
| 1
| 0.013658
| false
| 0
| 0.005344
| 0
| 0.02019
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5c20fff74848b5288bd615dbc4ecda28d1fd3560
| 10,754
|
py
|
Python
|
melodic/lib/python2.7/dist-packages/diagnostic_msgs/srv/_AddDiagnostics.py
|
Dieptranivsr/Ros_Diep
|
d790e75e6f5da916701b11a2fdf3e03b6a47086b
|
[
"MIT"
] | 1
|
2021-11-08T12:24:24.000Z
|
2021-11-08T12:24:24.000Z
|
devel/lib/python3/dist-packages/diagnostic_msgs/srv/_AddDiagnostics.py
|
hyu-nani/ydlidar_ws
|
56316db999c057c4315a20ba8277826d6a043120
|
[
"MIT"
] | 1
|
2021-07-08T10:26:06.000Z
|
2021-07-08T10:31:11.000Z
|
devel/lib/python3/dist-packages/diagnostic_msgs/srv/_AddDiagnostics.py
|
hyu-nani/ydlidar_ws
|
56316db999c057c4315a20ba8277826d6a043120
|
[
"MIT"
] | null | null | null |
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from diagnostic_msgs/AddDiagnosticsRequest.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class AddDiagnosticsRequest(genpy.Message):
_md5sum = "c26cf6e164288fbc6050d74f838bcdf0"
_type = "diagnostic_msgs/AddDiagnosticsRequest"
_has_header = False # flag to mark the presence of a Header object
_full_text = """# This service is used as part of the process for loading analyzers at runtime,
# and should be used by a loader script or program, not as a standalone service.
# Information about dynamic addition of analyzers can be found at
# http://wiki.ros.org/diagnostics/Tutorials/Adding%20Analyzers%20at%20Runtime
# The load_namespace parameter defines the namespace where parameters for the
# initialization of analyzers in the diagnostic aggregator have been loaded. The
# value should be a global name (i.e. /my/name/space), not a relative
# (my/name/space) or private (~my/name/space) name. Analyzers will not be added
# if a non-global name is used. The call will also fail if the namespace
# contains parameters that follow a namespace structure that does not conform to
# that expected by the analyzer definitions. See
# http://wiki.ros.org/diagnostics/Tutorials/Configuring%20Diagnostic%20Aggregators
# and http://wiki.ros.org/diagnostics/Tutorials/Using%20the%20GenericAnalyzer
# for examples of the structure of yaml files which are expected to have been
# loaded into the namespace.
string load_namespace
"""
__slots__ = ['load_namespace']
_slot_types = ['string']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
load_namespace
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(AddDiagnosticsRequest, self).__init__(*args, **kwds)
# message fields cannot be None, assign default values for those that are
if self.load_namespace is None:
self.load_namespace = ''
else:
self.load_namespace = ''
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self.load_namespace
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
codecs.lookup_error("rosmsg").msg_type = self._type
try:
end = 0
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.load_namespace = str[start:end].decode('utf-8', 'rosmsg')
else:
self.load_namespace = str[start:end]
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self.load_namespace
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
codecs.lookup_error("rosmsg").msg_type = self._type
try:
end = 0
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.load_namespace = str[start:end].decode('utf-8', 'rosmsg')
else:
self.load_namespace = str[start:end]
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from diagnostic_msgs/AddDiagnosticsResponse.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class AddDiagnosticsResponse(genpy.Message):
_md5sum = "937c9679a518e3a18d831e57125ea522"
_type = "diagnostic_msgs/AddDiagnosticsResponse"
_has_header = False # flag to mark the presence of a Header object
_full_text = """
# True if diagnostic aggregator was updated with new diagnostics, False
# otherwise. A false return value means that either there is a bond in the
# aggregator which already used the requested namespace, or the initialization
# of analyzers failed.
bool success
# Message with additional information about the success or failure
string message
"""
__slots__ = ['success','message']
_slot_types = ['bool','string']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
success,message
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(AddDiagnosticsResponse, self).__init__(*args, **kwds)
# message fields cannot be None, assign default values for those that are
if self.success is None:
self.success = False
if self.message is None:
self.message = ''
else:
self.success = False
self.message = ''
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self.success
buff.write(_get_struct_B().pack(_x))
_x = self.message
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
codecs.lookup_error("rosmsg").msg_type = self._type
try:
end = 0
start = end
end += 1
(self.success,) = _get_struct_B().unpack(str[start:end])
self.success = bool(self.success)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.message = str[start:end].decode('utf-8', 'rosmsg')
else:
self.message = str[start:end]
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self.success
buff.write(_get_struct_B().pack(_x))
_x = self.message
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
codecs.lookup_error("rosmsg").msg_type = self._type
try:
end = 0
start = end
end += 1
(self.success,) = _get_struct_B().unpack(str[start:end])
self.success = bool(self.success)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.message = str[start:end].decode('utf-8', 'rosmsg')
else:
self.message = str[start:end]
return self
except struct.error as e:
raise genpy.DeserializationError(e) # most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_B = None
def _get_struct_B():
global _struct_B
if _struct_B is None:
_struct_B = struct.Struct("<B")
return _struct_B
class AddDiagnostics(object):
_type = 'diagnostic_msgs/AddDiagnostics'
_md5sum = 'e6ac9bbde83d0d3186523c3687aecaee'
_request_class = AddDiagnosticsRequest
_response_class = AddDiagnosticsResponse
| 35.609272
| 145
| 0.66989
| 1,456
| 10,754
| 4.8125
| 0.168956
| 0.027401
| 0.021978
| 0.021693
| 0.736406
| 0.736406
| 0.72185
| 0.72185
| 0.72185
| 0.72185
| 0
| 0.014758
| 0.218709
| 10,754
| 301
| 146
| 35.727575
| 0.81921
| 0.226799
| 0
| 0.754902
| 1
| 0.009804
| 0.256883
| 0.025385
| 0
| 0
| 0.002526
| 0
| 0
| 1
| 0.073529
| false
| 0
| 0.039216
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
30b8d6dcf1eceff8d04ce40bb0fcd75a8c2176b8
| 390
|
py
|
Python
|
pytest_pgsql/__init__.py
|
mathiasose/pytest-pgsql
|
5e076db146699c3b683b49e4a31323c4c23054de
|
[
"BSD-3-Clause"
] | 61
|
2017-11-28T15:47:51.000Z
|
2022-01-26T11:35:44.000Z
|
pytest_pgsql/__init__.py
|
mathiasose/pytest-pgsql
|
5e076db146699c3b683b49e4a31323c4c23054de
|
[
"BSD-3-Clause"
] | 18
|
2017-11-29T21:59:38.000Z
|
2021-08-16T17:21:37.000Z
|
pytest_pgsql/__init__.py
|
mathiasose/pytest-pgsql
|
5e076db146699c3b683b49e4a31323c4c23054de
|
[
"BSD-3-Clause"
] | 7
|
2017-12-02T06:31:44.000Z
|
2021-03-15T03:20:57.000Z
|
"""pytest_pgsql"""
from pytest_pgsql.version import __version__ # flake8: noqa
from pytest_pgsql.time import SQLAlchemyFreezegun
from pytest_pgsql.time import freeze_time
from pytest_pgsql.database import PostgreSQLTestDBBase
from pytest_pgsql.database import PostgreSQLTestDB
from pytest_pgsql.database import TransactedPostgreSQLTestDB
from pytest_pgsql.ext import create_engine_fixture
| 43.333333
| 60
| 0.876923
| 49
| 390
| 6.673469
| 0.367347
| 0.269113
| 0.321101
| 0.211009
| 0.41896
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002801
| 0.084615
| 390
| 8
| 61
| 48.75
| 0.913165
| 0.066667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
a505e3a11be78f1247ba5a06125b4dafa233f289
| 132
|
py
|
Python
|
recommend/__init__.py
|
mythologic/recommend
|
91db79acb006e3060525dcf2eca6ecfa6b9c68a8
|
[
"MIT"
] | 3
|
2019-10-31T22:01:53.000Z
|
2019-11-30T19:18:57.000Z
|
recommend/__init__.py
|
mythologic/recommend
|
91db79acb006e3060525dcf2eca6ecfa6b9c68a8
|
[
"MIT"
] | null | null | null |
recommend/__init__.py
|
mythologic/recommend
|
91db79acb006e3060525dcf2eca6ecfa6b9c68a8
|
[
"MIT"
] | 5
|
2019-11-05T16:50:15.000Z
|
2019-11-05T16:52:49.000Z
|
from .utils import load_candy
from .utils import ItemVectorizer
from .utils import NearestNeighbors
from .main import NNRecommender
| 26.4
| 35
| 0.848485
| 17
| 132
| 6.529412
| 0.529412
| 0.243243
| 0.405405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 132
| 4
| 36
| 33
| 0.956897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
eb75b4705ce5da205beb91b13c699d5744b3cebb
| 3,281
|
py
|
Python
|
helpers/seq2seq.py
|
r-luo/QA-Summary
|
219dbbd306a85f73c126ad73ef7421c5450afbfc
|
[
"MIT"
] | null | null | null |
helpers/seq2seq.py
|
r-luo/QA-Summary
|
219dbbd306a85f73c126ad73ef7421c5450afbfc
|
[
"MIT"
] | null | null | null |
helpers/seq2seq.py
|
r-luo/QA-Summary
|
219dbbd306a85f73c126ad73ef7421c5450afbfc
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
class Seq2SeqEncoder(nn.Module):
def __init__(
self,
hidden_dim,
embedding_weights,
embedding_args={},
rnn_module='lstm',
rnn_module_args={},
batch_first=True,
embedding_padding_index=0,
):
vocab_size = embedding_weights.shape[0]
embedding_dim = embedding_weights.shape[1]
super().__init__()
if rnn_module == 'lstm':
self.rnn_module = nn.LSTM(
input_size=embedding_dim,
hidden_size=hidden_dim,
batch_first=batch_first,
**rnn_module_args
)
elif rnn_module == 'gru':
self.rnn_module = nn.GRU(
input_size=embedding_dim,
hidden_size=hidden_dim,
batch_first=batch_first,
**rnn_module_args
)
else:
self.rnn_module = rnn_module(**rnn_module_args)
self.embedding = nn.Embedding(
num_embeddings=vocab_size,
embedding_dim=embedding_dim,
padding_idx=embedding_padding_index,
_weight=embedding_weights,
**embedding_args
)
# Fix embedding layer weights
for param in self.embedding.parameters():
param.requires_grad = False
def forward(self, x, hidden):
x = self.embedding(x)
output, hidden = self.rnn_module(x, hidden)
return output, hidden
class Seq2SeqDecoder(nn.Module):
def __init__(
self,
hidden_dim,
embedding_weights,
embedding_args={},
rnn_module='lstm',
rnn_module_args={},
batch_first=True,
embedding_padding_index=0,
):
vocab_size = embedding_weights.shape[0]
embedding_dim = embedding_weights.shape[1]
super().__init__()
if rnn_module == 'lstm':
self.rnn_module = nn.LSTM(
input_size=embedding_dim,
hidden_size=hidden_dim,
batch_first=batch_first,
**rnn_module_args
)
elif rnn_module == 'gru':
self.rnn_module = nn.GRU(
input_size=embedding_dim,
hidden_size=hidden_dim,
batch_first=batch_first,
**rnn_module_args
)
else:
self.rnn_module = rnn_module(**rnn_module_args)
self.embedding = nn.Embedding(
num_embeddings=vocab_size,
embedding_dim=embedding_dim,
padding_idx=embedding_padding_index,
_weight=embedding_weights,
**embedding_args
)
# Fix embedding layer weights
for param in self.embedding.parameters():
param.requires_grad = False
self.linear = nn.Linear(
in_features=hidden_dim * 2 if self.rnn_module.bidirectional else hidden_dim,
out_features=embedding_weights.shape[0],
)
self.softmax = nn.Softmax(dim=-1)
def forward(self, x, hidden):
x = self.embedding(x)
output, hidden = self.rnn_module(x, hidden)
output = self.linear(output)
output = self.softmax(output)
return output, hidden
| 30.95283
| 88
| 0.567205
| 348
| 3,281
| 5.002874
| 0.163793
| 0.129236
| 0.067203
| 0.066628
| 0.83745
| 0.83745
| 0.83745
| 0.83745
| 0.83745
| 0.83745
| 0
| 0.005155
| 0.349589
| 3,281
| 105
| 89
| 31.247619
| 0.810684
| 0.016763
| 0
| 0.821053
| 0
| 0
| 0.006828
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.042105
| false
| 0
| 0.021053
| 0
| 0.105263
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
eb8c796903e890c42b4a2361b0b269215b1b01e3
| 1,538
|
py
|
Python
|
herbarium_data/migrations/0005_auto_20170622_1757.py
|
qubs/data-api
|
e85146409003b3725717829a0d72a8565683cc73
|
[
"Apache-2.0"
] | null | null | null |
herbarium_data/migrations/0005_auto_20170622_1757.py
|
qubs/data-api
|
e85146409003b3725717829a0d72a8565683cc73
|
[
"Apache-2.0"
] | 9
|
2020-06-05T17:26:19.000Z
|
2022-03-11T23:15:41.000Z
|
herbarium_data/migrations/0005_auto_20170622_1757.py
|
qubs/data-centre
|
e85146409003b3725717829a0d72a8565683cc73
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-22 17:57
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('herbarium_data', '0004_auto_20170622_1746'),
]
operations = [
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER dataset SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER genus SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER species SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER common_name SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER dth SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER collectors SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER map_reference SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER county SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER township SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER country SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER location SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER habitat SET DEFAULT ''"),
migrations.RunSQL("ALTER TABLE herbarium_data_specimen ALTER notes SET DEFAULT ''"),
]
| 53.034483
| 100
| 0.73472
| 182
| 1,538
| 6.005495
| 0.291209
| 0.166514
| 0.249771
| 0.309241
| 0.728271
| 0.728271
| 0.728271
| 0.728271
| 0.680695
| 0.680695
| 0
| 0.026025
| 0.175553
| 1,538
| 28
| 101
| 54.928571
| 0.835962
| 0.044213
| 0
| 0
| 1
| 0
| 0.596455
| 0.219496
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.095238
| 0
| 0.238095
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ccf23f4225435fe6903563205304a264e7b81b4d
| 11,690
|
py
|
Python
|
python/app/wechat_subscriptions/test.py
|
lsieun/web_scraping
|
ab69c2add7d8cec92d76529039dca7a067d4af9a
|
[
"Apache-2.0"
] | null | null | null |
python/app/wechat_subscriptions/test.py
|
lsieun/web_scraping
|
ab69c2add7d8cec92d76529039dca7a067d4af9a
|
[
"Apache-2.0"
] | null | null | null |
python/app/wechat_subscriptions/test.py
|
lsieun/web_scraping
|
ab69c2add7d8cec92d76529039dca7a067d4af9a
|
[
"Apache-2.0"
] | null | null | null |
target_url = "https://mp.weixin.qq.com/s?__biz=MjM5MDgzMDgwMw==&mid=2651745661&idx=1&sn=e8ee00203a44015f7072429b1e01db4a&chksm=bd4414c18a339dd711f0c0c69dfa41947a8091f79d529b4d2408db53f492accf6ae402771b58&scene=4&subscene=126&ascene=0&devicetype=iOS11.4&version=16070022&nettype=WIFI&abtest_cookie=AwABAAoACwAMAAcAPoseAGSVHgC5lR4AF5YeAIaWHgCMlh4AI5ceAAAA&lang=en&fontScale=100&pass_ticket=y3bD%2BACG5stP%2F%2B7ldcfAxgFPLWPs%2FbSViNfqmX%2F2eLieOxArs3%2FzzfmWbe1mlcGU&wx_header=1 "
target_url = "https://mp.weixin.qq.com/s?__biz=MjM5MDgzMDgwMw==&mid=2651745661&idx=2&sn=12895e852dbf70211acd29a77db34efa&chksm=bd4414c18a339dd702a0bb96203cc063ad4652859100b362f6af421a967cb8b6eb244a4d6390&scene=4&ascene=0&devicetype=iOS11.4&version=16070022&nettype=WIFI&abtest_cookie=AwABAAoACwAMAAcAPoseAGSVHgC5lR4AF5YeAIaWHgCMlh4AI5ceAAAA&lang=en&fontScale=100&pass_ticket=y3bD%2BACG5stP%2F%2B7ldcfAxgFPLWPs%2FbSViNfqmX%2F2eLieOxArs3%2FzzfmWbe1mlcGU&wx_header=1"
target_url = "http://mp.weixin.qq.com/s?__biz=MjM5MDgzMDgwMw==&mid=2651745645&idx=1&sn=4f987c93d282ed59f533d534a9ef63b6&chksm=bd4414d18a339dc7d325a65f63d8bf0fa91d8155820c601258ee77d9a3f1db260efa4b319be8&scene=27#wechat_redirect"
# Host : mp.weixin.qq.com
# Cookie : devicetype=iOS11.4; lang=en; pass_ticket=y3bD+ACG5stP/+7ldcfAxgFPLWPs/bSViNfqmX/2eLieOxArs3/zzfmWbe1mlcGU; version=16070022; wap_sid2=CLGRu+8IElx4QmVDdmVFYm5sODcwVmdpOG9vT2FqSnlQckNoSFFseE52aERDLVRKYi0tdUQ4R09MTlBKYm55QVhUdEptdTlMS3BiUWtqQ2s4UXR5M0lKTzlBQzBWTVFEQUFBfjCJuvbZBTgNQJVO; wxuin=2381236401; pgv_pvi=4536995840; pgv_pvid=3605134098; g_ut=3; 3g_guest_id=-8753408813035397120; ua_id=BQxE8DAZPJt2IhLFAAAAACAKXThVP6WI4b8zwvEvmIU=; sd_cookie_crttime=1510970054194; sd_userid=45381510970054194
# X-WECHAT-KEY : ecdd57907ca7e547709dee8be4b7f8de68c69fd751b7a4da3948d1c5e3db865a242216fb8cf31d0ed91cebca7f939e38fddc9b4fa5fe77ad90ac9c7ab2932e04ac31d962af916a1c4ae1390db3c132f7
# X-WECHAT-UIN : MjM4MTIzNjQwMQ%3D%3D
# Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
# User-Agent : Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15F79 MicroMessenger/6.7.0 NetType/WIFI Language/en
# Accept-Language : en-us
# Accept-Encoding : br, gzip, deflate
# Connection : keep-alive
host = "mp.weixin.qq.com"
cookie = "devicetype=iOS11.4; lang=en; pass_ticket=y3bD+ACG5stP/+7ldcfAxgFPLWPs/bSViNfqmX/2eLieOxArs3/zzfmWbe1mlcGU; version=16070022; wap_sid2=CLGRu+8IElx4QmVDdmVFYm5sODcwVmdpOG9vT2FqSnlQckNoSFFseE52aERDLVRKYi0tdUQ4R09MTlBKYm55QVhUdEptdTlMS3BiUWtqQ2s4UXR5M0lKTzlBQzBWTVFEQUFBfjCJuvbZBTgNQJVO; wxuin=2381236401; pgv_pvi=4536995840; pgv_pvid=3605134098; g_ut=3; 3g_guest_id=-8753408813035397120; ua_id=BQxE8DAZPJt2IhLFAAAAACAKXThVP6WI4b8zwvEvmIU=; sd_cookie_crttime=1510970054194; sd_userid=45381510970054194"
wechat_key = "ecdd57907ca7e547709dee8be4b7f8de68c69fd751b7a4da3948d1c5e3db865a242216fb8cf31d0ed91cebca7f939e38fddc9b4fa5fe77ad90ac9c7ab2932e04ac31d962af916a1c4ae1390db3c132f7"
wechat_uin = "MjM4MTIzNjQwMQ%3D%3D"
accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
user_agent = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15F79 MicroMessenger/6.7.0 NetType/WIFI Language/en"
accept_languge = "Accept-Language : en-us"
accept_encoding = "br, gzip, deflate"
connection = "keep-alive"
headers = {
"Host" : host,
"Cookie" : cookie,
"X-WECHAT-KEY" : wechat_key,
"X-WECHAT-UIN" : wechat_uin,
"Accept" : accept,
"User-Agent" : user_agent,
"Accept-Language" : accept_languge,
"Accept-Encoding" : accept_encoding,
"Connection" : connection
}
# import requests
#
# r = requests.get(url=target_url, headers=headers)
# html_str = r.text
# print(html_str)
#
#
# from lxml import etree
#
# html = etree.HTML(html_str)
# pretty_str = etree.tostring(html, encoding="unicode", pretty_print=True)
#
# with open("temp.html", "wb") as f:
# f.write(pretty_str.encode("UTF8"))
from webchat_any_proxy import WeChatAnyProxy
proxy = WeChatAnyProxy(host="192.168.0.105", port=8002)
req = proxy.get_latest_request()
reqHeader = req.get("reqHeader")
import requests
target_url = "https://mp.weixin.qq.com/s?__biz=MjM5MDgzMDgwMw==&mid=2651745517&idx=1&sn=5155c7eb17744ef157a6549b0bd8f416&chksm=bd4415518a339c47c91016a11f6d27f718ae38c39f572ba5d6b12cc69bfd6f973c3542736868&scene=4&subscene=126&ascene=0&devicetype=iOS11.4&version=16070022&nettype=WIFI&abtest_cookie=AwABAAoACwAMAAcAPoseAGSVHgC5lR4AF5YeAIaWHgCMlh4AI5ceAAAA&lang=en&fontScale=100&pass_ticket=y3bD%2BACG5stP%2F%2B7ldcfAxgFPLWPs%2FbSViNfqmX%2F2eLieOxArs3%2FzzfmWbe1mlcGU&wx_header=1"
target_url = "https://mp.weixin.qq.com/s?__biz=MjM5MDgzMDgwMw==&mid=2651745517&idx=2&sn=ba1550b3f4a4d6a242e356948fadf759&chksm=bd4415518a339c47de1b73830c48a5aca7a7932beb59c992a10692fd61588992d7abc8d0d7c1&scene=4&ascene=0&devicetype=iOS11.4&version=16070022&nettype=WIFI&abtest_cookie=AwABAAoACwAMAAcAPoseAGSVHgC5lR4AF5YeAIaWHgCMlh4AI5ceAAAA&lang=en&fontScale=100&pass_ticket=y3bD%2BACG5stP%2F%2B7ldcfAxgFPLWPs%2FbSViNfqmX%2F2eLieOxArs3%2FzzfmWbe1mlcGU&wx_header=1"
r = requests.get(url=target_url, headers=headers)
html_str = r.text
# print(html_str)
from lxml import etree
html = etree.HTML(html_str)
pretty_str = etree.tostring(html, encoding="unicode", pretty_print=True)
with open("temp.html", "wb") as f:
f.write(pretty_str.encode("UTF8"))
print("\r\n\r\n")
target_url = "https://mp.weixin.qq.com/mp/getappmsgext?f=json&mock=&uin=777&key=777&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&wxtoken=777&devicetype=iOS11.4&clientversion=16070022&appmsg_token=964_IK9odEotcV1Lv9TI7JnRAsSzkHKqLvCtp6ORh_7UHi1yQYG9YHX5x5TYb6JLHGSJUNBSJ0_Rerp_A5YO&x5=0&f=json "
target_url = "https://mp.weixin.qq.com/mp/getappmsgext?f=json&mock=&uin=777&key=777&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&wxtoken=777&devicetype=iOS11.4&clientversion=16070022&appmsg_token=964_w9x6PBkqMoicMV5bN7pPC562TEQpwhx59LWcU-8Op4iG9a1s5KPF8oJaKdPUFzkAtCwrYAYZzXwzuCwU&x5=0&f=json "
target_url = "https://mp.weixin.qq.com/mp/getappmsgext?f=json&mock=&uin=777&key=777&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&wxtoken=777&devicetype=iOS11.4&clientversion=16070022&appmsg_token=964_6aqMjr4zZRwnEhsHN7pPC562TEQpwhx59LWcUxhYJtCSaPb8Y0uJTTjDnqpdUnOpBoG43edaqPQnDorj&x5=0&f=json"
target_url = "https://mp.weixin.qq.com/mp/getappmsgext?f=json&mock=&uin=777&key=777&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&wxtoken=777&devicetype=iOS11.4&clientversion=16070022&appmsg_token=964_6aqMjr4zZRwnEhsHN7pPC562TEQpwhx59LWcUxhYJtCSaPb8Y0uJTTjDnqpdUnOpBoG43edaqPQnDorj&x5=0&f=json"
body = "r=0.039641611215266326&__biz=MjM5MDgzMDgwMw%3D%3D&appmsg_type=9&mid=2651745517&sn=5155c7eb17744ef157a6549b0bd8f416&idx=1&scene=4&title=%25E4%25BD%25A0%25E6%2595%2588%25E7%258E%2587%25E4%25BD%258E%25E4%25B8%258B%25EF%25BC%258C%25E6%2598%25AF%25E5%259B%25A0%25E4%25B8%25BA%25E4%25BD%25A0%25E6%25A0%25B9%25E6%259C%25AC%25E4%25B8%258D%25E4%25BC%259A%25E7%25AE%25A1%25E7%2590%2586%25E6%2597%25B6%25E9%2597%25B4&ct=1530062220&abtest_cookie=AwABAAoACwAMAAcAPoseAGSVHgC5lR4AF5YeAIaWHgCMlh4AI5ceAAAA&devicetype=iOS11.4&version=16070022&is_need_ticket=0&is_need_ad=1&comment_id=343425027632594946&is_need_reward=0&both_ad=0&reward_uin_count=0&send_time=&msg_daily_idx=1&is_original=0&is_only_read=1&req_id=0513gcTyHNqbW08UUascxsAq&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&is_temp_url=0&item_show_type=undefined&tmp_version=1"
body = "r=0.9297181952278669&__biz=MjM5MDgzMDgwMw%3D%3D&appmsg_type=9&mid=2651745517&sn=ba1550b3f4a4d6a242e356948fadf759&idx=2&scene=4&title=%25E5%25BD%2592%25E5%25B1%259E%25E6%2584%259F%25E7%25BC%25BA%25E5%25A4%25B1%25E4%25B8%258B%25E7%259A%2584%25E4%25BA%25BA%25E6%2589%258D%25E5%259F%25B9%25E5%2585%25BB%25EF%25BC%259A%25E5%259F%25BA%25E5%25B1%2582%25E7%2594%25A8%25E2%2580%259C%25E6%25B5%2581%25E7%25A8%258B%25E2%2580%259D%25E3%2580%2581%25E4%25B8%25AD%25E5%25B1%2582%25E7%2594%25A8%25E2%2580%259C%25E8%2580%2583%25E6%25A0%25B8%25E2%2580%259D%25E3%2580%2581%25E9%25AB%2598%25E5%25B1%2582%25E7%2594%25A8%25E2%2580%259C%25E7%259B%2591%25E7%259D%25A3%25E2%2580%259D&ct=1530062220&abtest_cookie=AwABAAoACwAMAAcAPoseAGSVHgC5lR4AF5YeAIaWHgCMlh4AI5ceAAAA&devicetype=iOS11.4&version=16070022&is_need_ticket=0&is_need_ad=1&comment_id=343425028588896257&is_need_reward=1&both_ad=0&reward_uin_count=21&send_time=&msg_daily_idx=1&is_original=0&is_only_read=1&req_id=0514irhauCiFBwuz6JjTWa7E&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&is_temp_url=0&item_show_type=undefined&tmp_version=1"
body = "r=0.07513887868461844&__biz=MjM5MDgzMDgwMw%3D%3D&appmsg_type=9&mid=2651745517&sn=ba1550b3f4a4d6a242e356948fadf759&idx=2&scene=4&title=%25E5%25BD%2592%25E5%25B1%259E%25E6%2584%259F%25E7%25BC%25BA%25E5%25A4%25B1%25E4%25B8%258B%25E7%259A%2584%25E4%25BA%25BA%25E6%2589%258D%25E5%259F%25B9%25E5%2585%25BB%25EF%25BC%259A%25E5%259F%25BA%25E5%25B1%2582%25E7%2594%25A8%25E2%2580%259C%25E6%25B5%2581%25E7%25A8%258B%25E2%2580%259D%25E3%2580%2581%25E4%25B8%25AD%25E5%25B1%2582%25E7%2594%25A8%25E2%2580%259C%25E8%2580%2583%25E6%25A0%25B8%25E2%2580%259D%25E3%2580%2581%25E9%25AB%2598%25E5%25B1%2582%25E7%2594%25A8%25E2%2580%259C%25E7%259B%2591%25E7%259D%25A3%25E2%2580%259D&ct=1530062220&abtest_cookie=AwABAAoACwAMAAcAPoseAGSVHgC5lR4AF5YeAIaWHgCMlh4AI5ceAAAA&devicetype=iOS11.4&version=16070022&is_need_ticket=0&is_need_ad=1&comment_id=343425028588896257&is_need_reward=1&both_ad=0&reward_uin_count=21&send_time=&msg_daily_idx=1&is_original=0&is_only_read=1&req_id=0514Li4bcm6XDTri4na5o2bW&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&is_temp_url=0&item_show_type=undefined&tmp_version=1"
r = requests.post(url=target_url, data=body, headers=reqHeader)
print("SOCIAL:")
print(r.text)
print("\r\n\r\n")
comment_url = "https://mp.weixin.qq.com/mp/appmsg_comment?action=getcomment&scene=0&__biz=MjM5MDgzMDgwMw==&appmsgid=2651745517&idx=1&comment_id=343425027632594946&offset=0&limit=100&uin=777&key=777&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&wxtoken=777&devicetype=iOS11.4&clientversion=16070022&appmsg_token=964_IK9odEotcV1Lv9TI7JnRAsSzkHKqLvCtp6ORh_7UHi1yQYG9YHX5x5TYb6JLHGSJUNBSJ0_Rerp_A5YO&x5=0&f=json"
comment_url = "https://mp.weixin.qq.com/mp/appmsg_comment?action=getcomment&scene=0&__biz=MjM5MDgzMDgwMw==&appmsgid=2651745517&idx=2&comment_id=343425028588896257&offset=0&limit=100&uin=777&key=777&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&wxtoken=777&devicetype=iOS11.4&clientversion=16070022&appmsg_token=964_w9x6PBkqMoicMV5bN7pPC562TEQpwhx59LWcU-8Op4iG9a1s5KPF8oJaKdPUFzkAtCwrYAYZzXwzuCwU&x5=0&f=json "
comment_url = "https://mp.weixin.qq.com/mp/appmsg_comment?action=getcomment&scene=0&__biz=MjM5MDgzMDgwMw==&appmsgid=2651745517&idx=2&comment_id=343425028588896257&offset=0&limit=100&uin=777&key=777&pass_ticket=y3bD%25252BACG5stP%25252F%25252B7ldcfAxgFPLWPs%25252FbSViNfqmX%25252F2eLieOxArs3%25252FzzfmWbe1mlcGU&wxtoken=777&devicetype=iOS11.4&clientversion=16070022&appmsg_token=964_6aqMjr4zZRwnEhsHN7pPC562TEQpwhx59LWcUxhYJtCSaPb8Y0uJTTjDnqpdUnOpBoG43edaqPQnDorj&x5=0&f=json "
r = requests.post(url=comment_url, headers=reqHeader)
print("COMMENT:")
print(r.text)
| 123.052632
| 1,150
| 0.846108
| 1,506
| 11,690
| 6.428951
| 0.195883
| 0.024788
| 0.026441
| 0.018798
| 0.806135
| 0.804276
| 0.802107
| 0.802107
| 0.798595
| 0.798595
| 0
| 0.259737
| 0.031394
| 11,690
| 95
| 1,151
| 123.052632
| 0.595337
| 0.118135
| 0
| 0.109091
| 0
| 0.327273
| 0.884189
| 0.366394
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.272727
| 0.054545
| 0
| 0.054545
| 0.127273
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 12
|
15defa7948910af6336ef4825cc780244dc83d08
| 2,318
|
py
|
Python
|
src/simulation_study/test_sim_study.py
|
maxschae/prog-econ-project
|
d5aa7e2ba093242054996933c025aa64dca5e286
|
[
"MIT"
] | null | null | null |
src/simulation_study/test_sim_study.py
|
maxschae/prog-econ-project
|
d5aa7e2ba093242054996933c025aa64dca5e286
|
[
"MIT"
] | null | null | null |
src/simulation_study/test_sim_study.py
|
maxschae/prog-econ-project
|
d5aa7e2ba093242054996933c025aa64dca5e286
|
[
"MIT"
] | null | null | null |
import pytest
from sim_study import fix_simulation_params
@pytest.fixture
def setup_fix_simulation_params():
out = {}
out["n"] = 500
out["M"] = 100
out["model"] = "linear"
out["discrete"] = False
out["cutoff"] = 0
out["tau"] = 0.75
out["noise_var"] = 1
return out
def test_fix_simulation_params_n(setup_fix_simulation_params):
with pytest.raises(TypeError):
fix_simulation_params(
n=100.1,
M=setup_fix_simulation_params["M"],
model=setup_fix_simulation_params["model"],
discrete=setup_fix_simulation_params["discrete"],
cutoff=setup_fix_simulation_params["cutoff"],
tau=setup_fix_simulation_params["tau"],
noise_var=setup_fix_simulation_params["noise_var"],
)
def test_fix_simulation_params_M(setup_fix_simulation_params):
with pytest.raises(TypeError):
fix_simulation_params(
n=setup_fix_simulation_params["n"],
M=(-1.5),
model=setup_fix_simulation_params["model"],
discrete=setup_fix_simulation_params["discrete"],
cutoff=setup_fix_simulation_params["cutoff"],
tau=setup_fix_simulation_params["tau"],
noise_var=setup_fix_simulation_params["noise_var"],
)
def test_fix_simulation_params_model(setup_fix_simulation_params):
with pytest.raises(ValueError):
fix_simulation_params(
n=setup_fix_simulation_params["n"],
M=setup_fix_simulation_params["M"],
model="Gaussian",
discrete=setup_fix_simulation_params["discrete"],
cutoff=setup_fix_simulation_params["cutoff"],
tau=setup_fix_simulation_params["tau"],
noise_var=setup_fix_simulation_params["noise_var"],
)
def test_fix_simulation_params_discrete(setup_fix_simulation_params):
with pytest.raises(TypeError):
fix_simulation_params(
n=setup_fix_simulation_params["n"],
M=setup_fix_simulation_params["M"],
model=setup_fix_simulation_params["model"],
discrete="Yes",
cutoff=setup_fix_simulation_params["cutoff"],
tau=setup_fix_simulation_params["tau"],
noise_var=setup_fix_simulation_params["noise_var"],
)
| 33.594203
| 69
| 0.657895
| 272
| 2,318
| 5.154412
| 0.132353
| 0.352354
| 0.514979
| 0.496434
| 0.855207
| 0.840228
| 0.840228
| 0.811698
| 0.797432
| 0.797432
| 0
| 0.009615
| 0.237274
| 2,318
| 68
| 70
| 34.088235
| 0.783371
| 0
| 0
| 0.54386
| 0
| 0
| 0.072045
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.087719
| false
| 0
| 0.035088
| 0
| 0.140351
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
c6538897053ed3aeacfa9ac8fcde5f1e82ede46d
| 5,513
|
py
|
Python
|
Taller_Algoritmos_07/Stiven.py
|
Angelio01/algoritmos_programacion-
|
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
|
[
"MIT"
] | null | null | null |
Taller_Algoritmos_07/Stiven.py
|
Angelio01/algoritmos_programacion-
|
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
|
[
"MIT"
] | null | null | null |
Taller_Algoritmos_07/Stiven.py
|
Angelio01/algoritmos_programacion-
|
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
|
[
"MIT"
] | 1
|
2021-10-29T19:40:32.000Z
|
2021-10-29T19:40:32.000Z
|
import turtle
stiven=turtle.Turtle()
stiven.ht()
stiven.pensize(1)
stiven.speed(100)
stiven.pu()
stiven.setposition(-600,-150)
stiven.pd()
#Letra s
stiven.begin_fill()
stiven.color("black")
stiven.right(90)
stiven.forward(75)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(95)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(35)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(35)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(35)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(45)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(45)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(35)
stiven.left(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(45)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(90)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(45)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(35)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(35)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(25)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(55)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(55)
stiven.right(90)
stiven.forward(15)
stiven.left(90)
stiven.forward(35)
stiven.right(90)
stiven.forward(25)
stiven.left(90)
stiven.forward(15)
stiven.right(90)
stiven.forward(35)
stiven.left(90)
stiven.forward(15)
stiven.end_fill()
#letras:TIVEN
stiven.speed(5)
stiven.pu()
stiven.setposition(-450,-250)
stiven.pensize(3)
stiven.pd()
stiven.penup()
stiven.backward(175)
stiven.pendown()
stiven.right(90)
stiven.forward(140)
stiven.right(90)
stiven.forward(50)
stiven.backward(100)
stiven.penup()
stiven.forward(125)
stiven.pendown()
stiven.forward(100)
stiven.backward(50)
stiven.right(90)
stiven.forward(140)
stiven.right(90)
stiven.forward(50)
stiven.backward(100)
stiven.penup()
stiven.backward(25)
stiven.right(90)
stiven.forward(140)
stiven.right(90)
stiven.right(70)
stiven.pendown()
stiven.forward(148.6606875)
stiven.left(142)
stiven.forward(148.6606875)
stiven.right(72)
stiven.penup()
stiven.forward(25)
stiven.pendown()
stiven.forward(100)
stiven.backward(100)
stiven.right(90)
stiven.forward(70)
stiven.left(90)
stiven.forward(100)
stiven.backward(100)
stiven.right(90)
stiven.forward(70)
stiven.left(90)
stiven.forward(100)
stiven.penup()
stiven.forward(25)
stiven.left(90)
stiven.pendown()
stiven.forward(140)
stiven.right(90)
stiven.right(45)
stiven.forward(198)
stiven.left(135)
stiven.forward(140)
stiven.penup()
stiven.setposition(-620,-270)
stiven.pendown()
stiven.pensize(5)
stiven.right(90)
stiven.forward(1200)
stiven.penup()
stiven.setposition(-620,-280)
stiven.pendown()
stiven.forward(800)
stiven.speed(100)
stiven.penup()
stiven.setposition(450,-100)
stiven.pendown()
stiven.pensize(1)
z = 0
f = 0
stiven.speed(10)
stiven.speed(10000000)
while True:
for i in range(4):
stiven.forward (40)
stiven.right(90)
stiven.right(15)
z += 1
if z >= 390/15:
stiven.forward(25)
z = 0
f += 1
if f >= 12:
break
turtle.done()
| 17.669872
| 29
| 0.758208
| 898
| 5,513
| 4.652561
| 0.082405
| 0.388942
| 0.402106
| 0.277405
| 0.848731
| 0.800144
| 0.792245
| 0.770943
| 0.760172
| 0.760172
| 0
| 0.119365
| 0.074551
| 5,513
| 312
| 30
| 17.669872
| 0.69953
| 0.003446
| 0
| 0.862295
| 0
| 0
| 0.00091
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.003279
| 0
| 0.003279
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
d68805f227907d43a1d81b70d9792b8cfb5baa4e
| 100
|
py
|
Python
|
sdcdup/models/__init__.py
|
WillieMaddox/Airbus_SDC_dup
|
09be904cf3c8050086f07538f5e2954282de5d62
|
[
"MIT"
] | null | null | null |
sdcdup/models/__init__.py
|
WillieMaddox/Airbus_SDC_dup
|
09be904cf3c8050086f07538f5e2954282de5d62
|
[
"MIT"
] | null | null | null |
sdcdup/models/__init__.py
|
WillieMaddox/Airbus_SDC_dup
|
09be904cf3c8050086f07538f5e2954282de5d62
|
[
"MIT"
] | null | null | null |
from .dupnet import load_checkpoint
from .dupnet import save_checkpoint
from .dupnet import DupCNN
| 20
| 35
| 0.84
| 14
| 100
| 5.857143
| 0.5
| 0.365854
| 0.585366
| 0.634146
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13
| 100
| 4
| 36
| 25
| 0.942529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
d6cc6a65f7290beb87dcb8e953b6e8e06f4d2c7d
| 7,746
|
py
|
Python
|
software/analyzerGUI/icons.py
|
MarcelMG/F373_recording_device
|
f174a7be2616f81b03a5404ef0d7a2891205c478
|
[
"BSD-3-Clause"
] | 1
|
2022-01-21T13:43:14.000Z
|
2022-01-21T13:43:14.000Z
|
software/analyzerGUI/icons.py
|
MarcelMG/F373_recording_device
|
f174a7be2616f81b03a5404ef0d7a2891205c478
|
[
"BSD-3-Clause"
] | null | null | null |
software/analyzerGUI/icons.py
|
MarcelMG/F373_recording_device
|
f174a7be2616f81b03a5404ef0d7a2891205c478
|
[
"BSD-3-Clause"
] | null | null | null |
## GUI icons ##
arrow_right_base64 = b'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'
arrow_left_base64 = b'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'
| 1,936.5
| 3,881
| 0.966822
| 234
| 7,746
| 31.987179
| 0.978632
| 0.00187
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156432
| 0.00142
| 7,746
| 3
| 3,882
| 2,582
| 0.811248
| 0.001162
| 0
| 0
| 0
| 1
| 0.993403
| 0.993403
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ba49857387b3fbb0efca961468315e8f39334c4c
| 137
|
py
|
Python
|
tests/test_nihao.py
|
TechOpsX/nihao-pypi
|
98a4e9a11a8a0f62fba41943e76e57e5c17a1472
|
[
"MIT"
] | null | null | null |
tests/test_nihao.py
|
TechOpsX/nihao-pypi
|
98a4e9a11a8a0f62fba41943e76e57e5c17a1472
|
[
"MIT"
] | null | null | null |
tests/test_nihao.py
|
TechOpsX/nihao-pypi
|
98a4e9a11a8a0f62fba41943e76e57e5c17a1472
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Test ApiGW"""
from nihao_pypi.nihao import nihao_pypi
def test_nihao():
assert nihao_pypi() == '你好Pypi'
| 17.125
| 39
| 0.649635
| 19
| 137
| 4.473684
| 0.631579
| 0.317647
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008772
| 0.167883
| 137
| 7
| 40
| 19.571429
| 0.736842
| 0.240876
| 0
| 0
| 0
| 0
| 0.061224
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
bab8b799cb0a65f77a67180bf81437c9b38a7830
| 169
|
py
|
Python
|
pcap3103/using_modules/helpers.py
|
owaishanif786/python
|
212d626e10bebf161ee123459dc5f0384d9540ac
|
[
"MIT"
] | null | null | null |
pcap3103/using_modules/helpers.py
|
owaishanif786/python
|
212d626e10bebf161ee123459dc5f0384d9540ac
|
[
"MIT"
] | null | null | null |
pcap3103/using_modules/helpers.py
|
owaishanif786/python
|
212d626e10bebf161ee123459dc5f0384d9540ac
|
[
"MIT"
] | null | null | null |
NAME = 'Little Wolf'
def extract_upper(phrase):
return list(filter(str.isupper, phrase))
def extract_lower(phrase):
return list(filter(str.islower, phrase))
| 16.9
| 44
| 0.721893
| 23
| 169
| 5.217391
| 0.608696
| 0.166667
| 0.266667
| 0.366667
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 169
| 9
| 45
| 18.777778
| 0.839161
| 0
| 0
| 0
| 0
| 0
| 0.065868
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0.4
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
bad23be7c78b7bc60d217f9df437414deb7741d6
| 4,434
|
py
|
Python
|
tests/test_logger.py
|
tack41/programs-python-utilities
|
6fd6d9de456f2758d74e8335d1c7a6d792215031
|
[
"MIT"
] | null | null | null |
tests/test_logger.py
|
tack41/programs-python-utilities
|
6fd6d9de456f2758d74e8335d1c7a6d792215031
|
[
"MIT"
] | null | null | null |
tests/test_logger.py
|
tack41/programs-python-utilities
|
6fd6d9de456f2758d74e8335d1c7a6d792215031
|
[
"MIT"
] | null | null | null |
import sys,os,subprocess
import pathlib
import unittest
script_dir = pathlib.Path(__file__).parent.resolve()
script_name = pathlib.Path(__file__).name
script_name_stem = pathlib.Path(__file__).stem
parent_dir = script_dir.parent.resolve()
sys.path.append(str(parent_dir))
from logger import Logger
class TestLogger(unittest.TestCase):
def test_without_file_no_verbose(self):
"""ファイル出力なし,冗長出力なし"""
logger = Logger(sys._getframe().f_code.co_name)
print("")
logger.debug("test debug")
logger.info("test info")
logger.warning("test warning")
logger.error("test error")
logger.critical("test critical")
try:
zde = 1 / 0
except ZeroDivisionError as e:
logger.exception(e)
print("---Check the 5 lines 'info','warning','error','critical','error' and stack traces are displayed")
self.assertTrue(True)
return 0
def test_without_file_verbose(self):
"""ファイル出力なし,冗長出力あり"""
logger = Logger(sys._getframe().f_code.co_name,True)
print("")
logger.debug("test debug")
logger.info("test info")
logger.warning("test warning")
logger.error("test error")
logger.critical("test critical")
try:
zde = 1 / 0
except ZeroDivisionError as e:
logger.exception(e)
print("---Check the 6 lines 'debug','info','warning','error','critical','error' and stack traces are displayed")
self.assertTrue(True)
def test_with_file_no_verbose(self):
"""ファイル出力あり,冗長出力なし"""
log_file = script_dir.joinpath("result1.log")
if log_file.exists():
os.remove(log_file)
logger = Logger(sys._getframe().f_code.co_name, False, log_file)
print("")
logger.debug("test debug")
logger.info("test info")
logger.warning("test warning")
logger.error("test error")
logger.critical("test critical")
try:
zde = 1 / 0
except ZeroDivisionError as e:
logger.exception(e)
rc = subprocess.call(f"grep -c debug {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c info {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c warning {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c error {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c critical {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c Traceback {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
print("---Check the 5 lines 'info','warning','error','critical','error' and stack traces are displayed")
self.assertTrue(True)
def test_with_file_verbose(self):
"""ファイル出力あり,冗長出力あり"""
log_file = script_dir.joinpath("result2.log")
if log_file.exists():
os.remove(log_file)
logger = Logger(sys._getframe().f_code.co_name, True, log_file)
print("")
logger.debug("test debug")
logger.info("test info")
logger.warning("test warning")
logger.error("test error")
logger.critical("test critical")
try:
zde = 1 / 0
except ZeroDivisionError as e:
logger.exception(e)
rc = subprocess.call(f"grep -c debug {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c info {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c warning {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c error {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c critical {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
rc = subprocess.call(f"grep -c Traceback {log_file} | grep -E '^1$'", shell=True, stdout=subprocess.DEVNULL)
self.assertEqual(0, rc)
print("---Check the 6 lines 'debug','info','warning','error','critical','error' and stack traces are displayed")
self.assertTrue(True)
if __name__ == '__main__':
unittest.main(verbosity=2)
| 31.671429
| 116
| 0.666892
| 614
| 4,434
| 4.693811
| 0.136808
| 0.048577
| 0.06662
| 0.070784
| 0.842471
| 0.825815
| 0.825815
| 0.825815
| 0.814018
| 0.799445
| 0
| 0.010989
| 0.179071
| 4,434
| 140
| 117
| 31.671429
| 0.780769
| 0.014208
| 0
| 0.767677
| 0
| 0.040404
| 0.261549
| 0.043208
| 0
| 0
| 0
| 0
| 0.161616
| 1
| 0.040404
| false
| 0
| 0.040404
| 0
| 0.10101
| 0.080808
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bad4c09dc71e7c72e12ed91658c7c25578105e99
| 158
|
py
|
Python
|
model/__init__.py
|
genwch/jmapp
|
760fef05286a31b1f8216b4f5af9ed6941a35106
|
[
"MIT"
] | null | null | null |
model/__init__.py
|
genwch/jmapp
|
760fef05286a31b1f8216b4f5af9ed6941a35106
|
[
"MIT"
] | null | null | null |
model/__init__.py
|
genwch/jmapp
|
760fef05286a31b1f8216b4f5af9ed6941a35106
|
[
"MIT"
] | null | null | null |
from .login import *
from .register import *
from .job import *
from .apply import *
from .offer import *
from .profile import *
from .apply_profile import *
| 19.75
| 28
| 0.734177
| 22
| 158
| 5.227273
| 0.363636
| 0.521739
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177215
| 158
| 7
| 29
| 22.571429
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
2406c9b0f6c20484091c596d2d44732a5a0f157f
| 173
|
py
|
Python
|
orbitkit/util/util_str.py
|
clown-0726/orbitkit
|
233c4a8a7b4fda3bbdb1631de4fd4fbdf79c7b6f
|
[
"MIT"
] | 3
|
2021-07-27T10:39:56.000Z
|
2021-07-28T00:09:03.000Z
|
orbitkit/util/util_str.py
|
clown-0726/orbitkit
|
233c4a8a7b4fda3bbdb1631de4fd4fbdf79c7b6f
|
[
"MIT"
] | null | null | null |
orbitkit/util/util_str.py
|
clown-0726/orbitkit
|
233c4a8a7b4fda3bbdb1631de4fd4fbdf79c7b6f
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
EMPTY_STR = ""
def is_empty(word):
return bool(word == EMPTY_STR)
def is_empty_strip(word):
return bool(str(word).strip() == EMPTY_STR)
| 14.416667
| 47
| 0.630058
| 26
| 173
| 3.961538
| 0.423077
| 0.23301
| 0.213592
| 0.252427
| 0.349515
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007143
| 0.190751
| 173
| 11
| 48
| 15.727273
| 0.728571
| 0.121387
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0.4
| 0.8
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
241081ad065d76de7e767bacfc72fd0d146e390b
| 9,374
|
py
|
Python
|
mono-chain/gaussian.py
|
robineriksson/bnn-regression
|
1efd1e6e87feb468ab65e4c786412a9d02f45e71
|
[
"Apache-2.0"
] | null | null | null |
mono-chain/gaussian.py
|
robineriksson/bnn-regression
|
1efd1e6e87feb468ab65e4c786412a9d02f45e71
|
[
"Apache-2.0"
] | null | null | null |
mono-chain/gaussian.py
|
robineriksson/bnn-regression
|
1efd1e6e87feb468ab65e4c786412a9d02f45e71
|
[
"Apache-2.0"
] | 1
|
2021-03-29T12:42:17.000Z
|
2021-03-29T12:42:17.000Z
|
import numpy as np
import numpy.random as rng
import scipy.stats
import scipy.misc
#from itertools import izip
#import helper
class Gaussian:
"""Implements a gaussian pdf. Focus is on efficient multiplication, division and sampling."""
def __init__(self, m=None, P=None, U=None, S=None, Pm=None):
"""
Initialize a gaussian pdf given a valid combination of its parameters. Valid combinations are:
m-P, m-U, m-S, Pm-P, Pm-U, Pm-S
:param m: mean
:param P: precision =
:param U: upper triangular precision factor such that U'U = P
:param S: covariance
:param Pm: precision times mean such that P*m = Pm
"""
if m is not None:
m = np.asarray(m)
self.m = m
self.ndim = m.size
if P is not None:
P = np.asarray(P)
L = np.linalg.cholesky(P)
self.P = P
self.C = np.linalg.inv(L)
self.S = np.dot(self.C.T, self.C)
self.Pm = np.dot(P, m)
self.logdetP = 2.0 * np.sum(np.log(np.diagonal(L)))
elif U is not None:
U = np.asarray(U)
self.P = np.dot(U.T, U)
self.C = np.linalg.inv(U.T)
self.S = np.dot(self.C.T, self.C)
self.Pm = np.dot(self.P, m)
self.logdetP = 2.0 * np.sum(np.log(np.diagonal(U)))
elif S is not None:
S = np.asarray(S)
self.P = np.linalg.inv(S)
self.C = np.linalg.cholesky(S).T
self.S = S
self.Pm = np.dot(self.P, m)
self.logdetP = -2.0 * np.sum(np.log(np.diagonal(self.C)))
else:
raise ValueError('Precision information missing.')
elif Pm is not None:
Pm = np.asarray(Pm)
self.Pm = Pm
self.ndim = Pm.size
if P is not None:
P = np.asarray(P)
L = np.linalg.cholesky(P)
self.P = P
self.C = np.linalg.inv(L)
self.S = np.dot(self.C.T, self.C)
self.m = np.linalg.solve(P, Pm)
self.logdetP = 2.0 * np.sum(np.log(np.diagonal(L)))
elif U is not None:
U = np.asarray(U)
self.P = np.dot(U.T, U)
self.C = np.linalg.inv(U.T)
self.S = np.dot(self.C.T, self.C)
self.m = np.linalg.solve(self.P, Pm)
self.logdetP = 2.0 * np.sum(np.log(np.diagonal(U)))
elif S is not None:
S = np.asarray(S)
self.P = np.linalg.inv(S)
self.C = np.linalg.cholesky(S).T
self.S = S
self.m = np.dot(S, Pm)
self.logdetP = -2.0 * np.sum(np.log(np.diagonal(self.C)))
else:
raise ValueError('Precision information missing.')
else:
raise ValueError('Mean information missing.')
def gen(self, n_samples=1):
"""Returns independent samples from the gaussian."""
z = rng.randn(n_samples, self.ndim)
samples = np.dot(z, self.C) + self.m
return samples
def eval(self, x, ii=None, log=True):
"""
Evaluates the gaussian pdf.
:param x: rows are inputs to evaluate at
:param ii: a list of indices specifying which marginal to evaluate. if None, the joint pdf is evaluated
:param log: if True, the log pdf is evaluated
:return: pdf or log pdf
"""
if ii is None:
xm = x - self.m
lp = -np.sum(np.dot(xm, self.P) * xm, axis=1)
lp += self.logdetP - self.ndim * np.log(2.0 * np.pi)
lp *= 0.5
else:
m = self.m[ii]
S = self.S[ii][:, ii]
lp = scipy.stats.multivariate_normal.logpdf(x, m, S)
lp = np.array([lp]) if x.shape[0] == 1 else lp
res = lp if log else np.exp(lp)
return res
def __mul__(self, other):
"""Multiply with another gaussian."""
assert isinstance(other, Gaussian)
P = self.P + other.P
Pm = self.Pm + other.Pm
return Gaussian(P=P, Pm=Pm)
def __imul__(self, other):
"""Incrementally multiply with another gaussian."""
assert isinstance(other, Gaussian)
res = self * other
self.m = res.m
self.P = res.P
self.C = res.C
self.S = res.S
self.Pm = res.Pm
self.logdetP = res.logdetP
return res
def __div__(self, other):
"""Divide by another gaussian. Note that the resulting gaussian might be improper."""
assert isinstance(other, Gaussian)
P = self.P - other.P
Pm = self.Pm - other.Pm
return Gaussian(P=P, Pm=Pm)
def __idiv__(self, other):
"""Incrementally divide by another gaussian. Note that the resulting gaussian might be improper."""
assert isinstance(other, Gaussian)
res = self / other
self.m = res.m
self.P = res.P
self.C = res.C
self.S = res.S
self.Pm = res.Pm
self.logdetP = res.logdetP
return res
def __pow__(self, power, modulo=None):
"""Raise gaussian to a power and get another gaussian."""
P = power * self.P
Pm = power * self.Pm
return Gaussian(P=P, Pm=Pm)
def __ipow__(self, power):
"""Incrementally raise gaussian to a power."""
res = self ** power
self.m = res.m
self.P = res.P
self.C = res.C
self.S = res.S
self.Pm = res.Pm
self.logdetP = res.logdetP
return res
def kl(self, other):
"""Calculates the kl divergence from this to another gaussian, i.e. KL(this | other)."""
assert isinstance(other, Gaussian)
assert self.ndim == other.ndim
t1 = np.sum(other.P * self.S)
m = other.m - self.m
t2 = np.dot(m, np.dot(other.P, m))
t3 = self.logdetP - other.logdetP
t = 0.5 * (t1 + t2 + t3 - self.ndim)
return tray(P)
def gen(self, n_samples=1):
"""Returns independent samples from the gaussian."""
z = rng.randn(n_samples, self.ndim)
samples = np.dot(z, self.C) + self.m
return samples
def eval(self, x, ii=None, log=True):
"""
Evaluates the gaussian pdf.
:param x: rows are inputs to evaluate at
:param ii: a list of indices specifying which marginal to evaluate. if None, the joint pdf is evaluated
:param log: if True, the log pdf is evaluated
:return: pdf or log pdf
"""
if ii is None:
xm = x - self.m
lp = -np.sum(np.dot(xm, self.P) * xm, axis=1)
lp += self.logdetP - self.ndim * np.log(2.0 * np.pi)
lp *= 0.5
else:
m = self.m[ii]
S = self.S[ii][:, ii]
lp = scipy.stats.multivariate_normal.logpdf(x, m, S)
lp = np.array([lp]) if x.shape[0] == 1 else lp
res = lp if log else np.exp(lp)
return res
def __mul__(self, other):
"""Multiply with another gaussian."""
assert isinstance(other, Gaussian)
P = self.P + other.P
Pm = self.Pm + other.Pm
return Gaussian(P=P, Pm=Pm)
def __imul__(self, other):
"""Incrementally multiply with another gaussian."""
assert isinstance(other, Gaussian)
res = self * other
self.m = res.m
self.P = res.P
self.C = res.C
self.S = res.S
self.Pm = res.Pm
self.logdetP = res.logdetP
return res
def __div__(self, other):
"""Divide by another gaussian. Note that the resulting gaussian might be improper."""
assert isinstance(other, Gaussian)
P = self.P - other.P
Pm = self.Pm - other.Pm
return Gaussian(P=P, Pm=Pm)
def __idiv__(self, other):
"""Incrementally divide by another gaussian. Note that the resulting gaussian might be improper."""
assert isinstance(other, Gaussian)
res = self / other
self.m = res.m
self.P = res.P
self.C = res.C
self.S = res.S
self.Pm = res.Pm
self.logdetP = res.logdetP
return res
def __pow__(self, power, modulo=None):
"""Raise gaussian to a power and get another gaussian."""
P = power * self.P
Pm = power * self.Pm
return Gaussian(P=P, Pm=Pm)
def __ipow__(self, power):
"""Incrementally raise gaussian to a power."""
res = self ** power
self.m = res.m
self.P = res.P
self.C = res.C
self.S = res.S
self.Pm = res.Pm
self.logdetP = res.logdetP
return res
def kl(self, other):
"""Calculates the kl divergence from this to another gaussian, i.e. KL(this | other)."""
assert isinstance(other, Gaussian)
assert self.ndim == other.ndim
t1 = np.sum(other.P * self.S)
m = other.m - self.m
t2 = np.dot(m, np.dot(other.P, m))
t3 = self.logdetP - other.logdetP
t = 0.5 * (t1 + t2 + t3 - self.ndim)
return t
| 27.816024
| 111
| 0.518029
| 1,324
| 9,374
| 3.623867
| 0.114804
| 0.02501
| 0.043768
| 0.060442
| 0.877657
| 0.877657
| 0.877657
| 0.877657
| 0.877657
| 0.877657
| 0
| 0.007399
| 0.365586
| 9,374
| 337
| 112
| 27.816024
| 0.799395
| 0.198528
| 0
| 0.89604
| 0
| 0
| 0.011731
| 0
| 0
| 0
| 0
| 0
| 0.059406
| 1
| 0.094059
| false
| 0
| 0.019802
| 0
| 0.207921
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
24292f42305a06b398aebeef08057bd1d953f81e
| 10,027
|
py
|
Python
|
ontask/connection/views/admin.py
|
pinheiroo27/ontask_b
|
23fee8caf4e1c5694a710a77f3004ca5d9effeac
|
[
"MIT"
] | 33
|
2017-12-02T04:09:24.000Z
|
2021-11-07T08:41:57.000Z
|
ontask/connection/views/admin.py
|
pinheiroo27/ontask_b
|
23fee8caf4e1c5694a710a77f3004ca5d9effeac
|
[
"MIT"
] | 189
|
2017-11-16T04:06:29.000Z
|
2022-03-11T23:35:59.000Z
|
ontask/connection/views/admin.py
|
pinheiroo27/ontask_b
|
23fee8caf4e1c5694a710a77f3004ca5d9effeac
|
[
"MIT"
] | 30
|
2017-11-30T03:35:44.000Z
|
2022-01-31T03:08:08.000Z
|
# -*- coding: utf-8 -*-
"""Common functions to handle connections."""
from typing import Optional
from django import http
from django.contrib.auth.decorators import user_passes_test
from django.shortcuts import render
from django.template.loader import render_to_string
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from ontask import models
from ontask.connection import forms, services
from ontask.core import ajax_required, is_admin, is_instructor
from ontask.core.session_ops import remove_workflow_from_session
@user_passes_test(is_admin)
def sql_connection_admin_index(request: http.HttpRequest) -> http.HttpResponse:
"""Show and handle the SQL connections.
:param request: Request
:return: Render the appropriate page.
"""
remove_workflow_from_session(request)
return render(
request,
'connection/index_admin.html',
{
'table': services.create_sql_connection_admintable(),
'title': _('SQL Connections'),
'data_url': reverse('connection:sqlconn_add')})
@user_passes_test(is_admin)
def athena_connection_admin_index(
request: http.HttpRequest,
) -> http.HttpResponse:
"""Show and handle the connections.
:param request: Request
:return: Render the appropriate page.
"""
remove_workflow_from_session(request)
return render(
request,
'connection/index_admin.html',
{
'table': services.create_athena_connection_admintable(),
'title': _('Athena Connections'),
'data_url': reverse('dataops:athenaconn_add')})
@user_passes_test(is_instructor)
@ajax_required
def sql_connection_view(
request: http.HttpRequest,
pk: int,
) -> http.JsonResponse:
"""Show the SQL connection in a modal.
:param request: Request object
:param pk: Primary key of the connection element
:return: AJAX response
"""
c_obj = models.SQLConnection.objects.filter(pk=pk).first()
if not c_obj:
# Connection object not found, go to table of Athena connections
return http.JsonResponse({
'html_redirect': reverse('connection:sqlconns_admin_index')})
return http.JsonResponse({
'html_form': render_to_string(
'connection/includes/partial_show.html',
{'c_vals': c_obj.get_display_dict(), 'id': c_obj.id},
request=request)})
@user_passes_test(is_instructor)
@ajax_required
def athena_connection_view(
request: http.HttpRequest,
pk: int
) -> http.JsonResponse:
"""Show the Athena connection in a modal.
:param request: Request object
:param pk: Primary key of the connection element
:return: AJAX response
"""
c_obj = models.AthenaConnection.objects.filter(pk=pk).first()
if not c_obj:
# Connection object not found, go to table of Athena connections
return http.JsonResponse({
'html_redirect': reverse('connnection:athenaconns_admin_index')})
return http.JsonResponse({
'html_form': render_to_string(
'connection/includes/partial_show.html',
{'c_vals': c_obj.get_display_dict(), 'id': c_obj.id},
request=request)})
@user_passes_test(is_admin)
@ajax_required
def sql_connection_edit(
request: http.HttpRequest,
pk: Optional[int] = None,
) -> http.JsonResponse:
"""Respond to the request to create/edit an SQL connection object.
:param request: HTML request
:param pk: Primary key
:return:
"""
conn = None
is_add = pk is None
form_class = forms.SQLConnectionForm
if is_add:
action_url = reverse('connection:sqlconn_add')
else:
action_url = reverse('connection:sqlconn_edit', kwargs={'pk': pk})
conn = models.SQLConnection.objects.filter(pk=pk).first()
if not conn:
return http.JsonResponse({'html_redirect': reverse('home')})
form = form_class(request.POST or None, instance=conn)
# If it is a POST and it is correct
if request.method == 'POST' and form.is_valid():
if not form.has_changed():
return http.JsonResponse({'html_redirect': None})
conn = form.save()
if is_add:
conn.log(request.user, conn.create_event)
else:
conn.log(request.user, conn.edit_event)
return http.JsonResponse({'html_redirect': ''})
# Request is a GET
return http.JsonResponse({
'html_form': render_to_string(
'connection/includes/partial_addedit.html',
{
'form': form,
'id': form.instance.id,
'add': is_add,
'action_url': action_url},
request=request)})
@user_passes_test(is_admin)
@ajax_required
def athena_connection_edit(
request: http.HttpRequest,
pk: Optional[int] = None,
) -> http.JsonResponse:
"""Respond to the request to create/edit an Athena connection object.
:param request: HTML request
:param pk: Primary key
:return: JSON Response
"""
conn = None
is_add = pk is None
form_class = forms.AthenaConnectionForm
if is_add:
action_url = reverse('dataops:athenaconn_add')
else:
action_url = reverse('dataops:athenaconn_edit', kwargs={'pk': pk})
conn = models.AthenaConnection.objects.filter(pk=pk).first()
if not conn:
return http.JsonResponse({'html_redirect': reverse('home')})
form = form_class(request.POST or None, instance=conn)
if request.method == 'POST' and form.is_valid():
if not form.has_changed():
return http.JsonResponse({'html_redirect': None})
conn = form.save()
if is_add:
conn.log(request.user, conn.create_event)
else:
conn.log(request.user, conn.edit_event)
return http.JsonResponse({'html_redirect': ''})
# Request is a GET
return http.JsonResponse({
'html_form': render_to_string(
'connection/includes/partial_addedit.html',
{
'form': form,
'id': form.instance.id,
'add': is_add,
'action_url': action_url},
request=request)})
@user_passes_test(is_admin)
@ajax_required
def sql_connection_clone(
request: http.HttpRequest,
pk: int
) -> http.JsonResponse:
"""AJAX handshake to clone an SQL connection.
:param request: HTTP request
:param pk: ID of the connection to clone.
:return: AJAX response
"""
conn = models.SQLConnection.objects.filter(pk=pk).first()
if not conn:
# The view is not there. Redirect to workflow detail
return http.JsonResponse({'html_redirect': reverse('home')})
return services.clone_connection(
request,
conn,
models.SQLConnection.objects,
reverse('connection:sqlconn_clone', kwargs={'pk': conn.id}))
@user_passes_test(is_admin)
@ajax_required
def athena_connection_clone(
request: http.HttpRequest,
pk: int
) -> http.JsonResponse:
"""AJAX handshake to clone an Athena connection.
:param request: HTTP request
:param pk: ID of the connection to clone.
:return: AJAX response
"""
conn = models.AthenaConnection.objects.filter(pk=pk).first()
if not conn:
# The view is not there. Redirect to workflow detail
return http.JsonResponse({'html_redirect': reverse('home')})
return services.clone_connection(
request,
conn,
models.AthenaConnection.objects,
reverse('dataops:athenaconn_clone', kwargs={'pk': conn.id}))
@user_passes_test(is_admin)
@ajax_required
def sql_connection_delete(
request: http.HttpRequest,
pk: int
) -> http.JsonResponse:
"""AJAX processor for the delete SQL connection operation.
:param request: AJAX request
:param pk: primary key for the connection
:return: AJAX response to handle the form
"""
conn = models.SQLConnection.objects.filter(pk=pk).first()
if not conn:
# The view is not there. Redirect to workflow detail
return http.JsonResponse({'html_redirect': reverse('home')})
return services.delete(
request,
conn,
reverse('connection:sqlconn_delete', kwargs={'pk': conn.id}))
@user_passes_test(is_admin)
@ajax_required
def athena_connection_delete(
request: http.HttpRequest,
pk: int
) -> http.JsonResponse:
"""AJAX processor for the delete an Athena connection operation.
:param request: AJAX request
:param pk: primary key for the connection
:return: AJAX response to handle the form
"""
conn = models.AthenaConnection.objects.filter(pk=pk).first()
if not conn:
# The view is not there. Redirect to workflow detail
return http.JsonResponse({'html_redirect': reverse('home')})
return services.delete(
request,
conn,
reverse('dataops:athenaconn_delete', kwargs={'pk': conn.id}))
@user_passes_test(is_instructor)
@ajax_required
def sqlconn_toggle(
request: http.HttpRequest,
pk: int,
) -> http.JsonResponse:
"""Enable/Disable an SQL connection.
:param request: Request object
:param pk: Connection PK
:return: HTML response
"""
# Check if the workflow is locked
conn = models.SQLConnection.objects.filter(pk=pk).first()
return services.toggle(
request,
conn,
reverse('connection:sqlconn_toggle', kwargs={'pk': conn.id}))
@user_passes_test(is_instructor)
@ajax_required
def athenaconn_toggle(
request: http.HttpRequest,
pk: int,
) -> http.JsonResponse:
"""Enable/Disable an Athena connection.
:param request: Request object
:param pk: Connection PK
:return: HTML response
"""
# Check if the workflow is locked
conn = models.AthenaConnection.objects.filter(pk=pk).first()
return services.toggle(
request,
conn,
reverse('dataops:athenaconn_toggle', kwargs={'pk': conn.id}))
| 30.201807
| 79
| 0.660118
| 1,206
| 10,027
| 5.331675
| 0.121891
| 0.064697
| 0.054743
| 0.064697
| 0.873561
| 0.827683
| 0.808709
| 0.808709
| 0.793935
| 0.787558
| 0
| 0.00013
| 0.23327
| 10,027
| 331
| 80
| 30.293051
| 0.836238
| 0.212227
| 0
| 0.751196
| 0
| 0
| 0.120509
| 0.072908
| 0
| 0
| 0
| 0
| 0
| 1
| 0.057416
| false
| 0.062201
| 0.052632
| 0
| 0.22488
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
2456f4c79b6a70488c3aa64598ba012db75acc6c
| 3,634
|
py
|
Python
|
pushEngine/views.py
|
dhdiagram4011/reservation-aoo-project
|
17845dbd8c7d24294b235190fc00d724445d846f
|
[
"MIT"
] | 1
|
2020-05-24T07:01:12.000Z
|
2020-05-24T07:01:12.000Z
|
pushEngine/views.py
|
dhdiagram4011/reservation-aoo-project
|
17845dbd8c7d24294b235190fc00d724445d846f
|
[
"MIT"
] | 4
|
2020-05-24T06:51:54.000Z
|
2021-01-24T05:33:47.000Z
|
pushEngine/views.py
|
dhdiagram4011/reservation-aoo-project
|
17845dbd8c7d24294b235190fc00d724445d846f
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
from django.http import HttpResponse
from .models import MsgPush
from .forms import *
from django.views.generic import ListView, View
## Class Type View
class MsgPushRepage(View): #web browser url path /push/sendev/
def get(self,request):
form = MsgPushForm(request.GET)
return render(request, 'pushEngine/send.html', {'form':form})
def post(self,request):
form = MsgPushForm(request.POST)
if form.is_valid():
EKS_HOST = 'http://a8bdd5f7b96aa473ab24d95145037461-1710871681.ap-northeast-2.elb.amazonaws.com'
STREAMING_HOST = 'http://a35f02dcb552449a3b4c0d0f708075b2-507238096.ap-northeast-2.elb.amazonaws.com:9000'
STM_PATH = [
"/auth/login",
"/auth/register",
]
for i in STM_PATH:
URL_ALL = STREAMING_HOST + str(i.split(',')).replace('[','').replace(']','').replace('\'','')
response = requests.get(URL_ALL)
health_check = response.status_code ,':', URL_ALL.split(',')
print(health_check)
WEB_HOOK_URL = 'http://apis.aligo.in/send/'
headers = {'Content-type':'application/x-www-form-urlencoded'}
data = {
'key' : 'ubkm32s9fllu6ui96cq7uegwdk0oxhnc',
'user_id' : 'dhdiagram',
'sender' : request.POST['sender'],
'receiver' : request.POST['receiver'],
'destination' : request.POST['sender']|request.POST['sender'],
'msg' : health_check,
'title' : request.POST['title'],
'rdate' : '20201021',
'rtime' : '1300',
'testmode_yn' : 'n'
}
requests.post(WEB_HOOK_URL, headers=headers, data=data)
return HttpResponse("SUCCESS!!!")
### Function Case View
def MsgSend(request):
if request.method == 'GET':
form = MsgPushForm(request.GET)
return render(request, 'pushEngine/send.html', {'form':form})
elif request.method == 'POST':
form = sendForm(request.POST)
if form.is_valid():
EKS_HOST = 'http://a8bdd5f7b96aa473ab24d95145037461-1710871681.ap-northeast-2.elb.amazonaws.com'
STREAMING_HOST = 'http://a35f02dcb552449a3b4c0d0f708075b2-507238096.ap-northeast-2.elb.amazonaws.com:9000'
STM_PATH = [
"/auth/login",
"/auth/register",
]
for i in STM_PATH:
URL_ALL = STREAMING_HOST + str(i.split(',')).replace('[','').replace(']','').replace('\'','')
response = requests.get(URL_ALL)
health_check = response.status_code ,':', URL_ALL.split(',')
print(health_check)
WEB_HOOK_URL = 'http://apis.aligo.in/send/'
headers = {'Content-type':'application/x-www-form-urlencoded'}
data = {
'key' : 'ubkm32s9fllu6ui96cq7uegwdk0oxhnc',
'user_id' : 'dhdiagram',
'sender' : request.POST['sender'],
'receiver' : request.POST['receiver'],
'destination' : request.POST['sender']|request.POST['sender'],
'msg' : health_check,
'title' : request.POST['title'],
'rdate' : '20201011',
'rtime' : '1300',
'testmode_yn' : 'n'
}
requests.post(WEB_HOOK_URL, headers=headers, data=data)
return render(request, 'pushEngine/send_success.html')
| 42.752941
| 118
| 0.54678
| 348
| 3,634
| 5.597701
| 0.298851
| 0.067762
| 0.052361
| 0.030801
| 0.822382
| 0.789528
| 0.789528
| 0.789528
| 0.789528
| 0.789528
| 0
| 0.069433
| 0.310402
| 3,634
| 84
| 119
| 43.261905
| 0.707901
| 0.018712
| 0
| 0.712329
| 0
| 0
| 0.263276
| 0.044394
| 0
| 0
| 0
| 0
| 0
| 1
| 0.041096
| false
| 0
| 0.068493
| 0
| 0.178082
| 0.027397
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
79fba1fa5172499382bf19fd3d8feef8bf3ebafa
| 105
|
py
|
Python
|
tests/parser/anon_vars_in_plan_query.1.bk.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/anon_vars_in_plan_query.1.bk.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/anon_vars_in_plan_query.1.bk.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
input = """
bk(a,b).
bk(b,c).
bk(m,m).
bk(x,y).
"""
output = """
bk(a,b).
bk(b,c).
bk(m,m).
bk(x,y).
"""
| 8.076923
| 12
| 0.409524
| 26
| 105
| 1.653846
| 0.346154
| 0.139535
| 0.186047
| 0.27907
| 0.744186
| 0.744186
| 0.744186
| 0.744186
| 0.744186
| 0.744186
| 0
| 0
| 0.152381
| 105
| 12
| 13
| 8.75
| 0.483146
| 0
| 0
| 0.833333
| 0
| 0
| 0.704762
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
0320a7a18797936d082b135c6fe7c7528e86dc57
| 22,034
|
py
|
Python
|
bombbomb/api/integrations_api.py
|
bombbomb/bombbomb-python-openapi
|
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
|
[
"Apache-2.0"
] | null | null | null |
bombbomb/api/integrations_api.py
|
bombbomb/bombbomb-python-openapi
|
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
|
[
"Apache-2.0"
] | null | null | null |
bombbomb/api/integrations_api.py
|
bombbomb/bombbomb-python-openapi
|
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
BombBomb
We make it easy to build relationships using simple videos. # noqa: E501
OpenAPI spec version: 2.0.831
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from bombbomb.api_client import ApiClient
class IntegrationsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def connect_integration(self, code, **kwargs): # noqa: E501
"""Activate an integration for a user. # noqa: E501
Provide the correct parameters to enable an integration. Required Parameters vary based on the desired integration. Integrations requiring OAuth will provide the OAuth link that the user must be presented. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.connect_integration(code, async=True)
>>> result = thread.get()
:param async bool
:param str code: The identifier of the integration. (required)
:param str key: The key value.
:param str secret: The secret value.
:param str token: The token value.
:param str data: The data value as JSON.
:param str overwrite: Boolean value to know whether or not to delete the integration if it already exists
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.connect_integration_with_http_info(code, **kwargs) # noqa: E501
else:
(data) = self.connect_integration_with_http_info(code, **kwargs) # noqa: E501
return data
def connect_integration_with_http_info(self, code, **kwargs): # noqa: E501
"""Activate an integration for a user. # noqa: E501
Provide the correct parameters to enable an integration. Required Parameters vary based on the desired integration. Integrations requiring OAuth will provide the OAuth link that the user must be presented. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.connect_integration_with_http_info(code, async=True)
>>> result = thread.get()
:param async bool
:param str code: The identifier of the integration. (required)
:param str key: The key value.
:param str secret: The secret value.
:param str token: The token value.
:param str data: The data value as JSON.
:param str overwrite: Boolean value to know whether or not to delete the integration if it already exists
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['code', 'key', 'secret', 'token', 'data', 'overwrite'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method connect_integration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'code' is set
if ('code' not in params or
params['code'] is None):
raise ValueError("Missing the required parameter `code` when calling `connect_integration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'code' in params:
form_params.append(('code', params['code'])) # noqa: E501
if 'key' in params:
form_params.append(('key', params['key'])) # noqa: E501
if 'secret' in params:
form_params.append(('secret', params['secret'])) # noqa: E501
if 'token' in params:
form_params.append(('token', params['token'])) # noqa: E501
if 'data' in params:
form_params.append(('data', params['data'])) # noqa: E501
if 'overwrite' in params:
form_params.append(('overwrite', params['overwrite'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['BBOAuth2'] # noqa: E501
return self.api_client.call_api(
'/integrations', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_integration(self, **kwargs): # noqa: E501
"""Remove an integration for a user. # noqa: E501
Remove an integration by providing the integration id or integration code. Only provide one of the parameters. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.delete_integration(async=True)
>>> result = thread.get()
:param async bool
:param str id: Integration ID
:param str code: Integration Code
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.delete_integration_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.delete_integration_with_http_info(**kwargs) # noqa: E501
return data
def delete_integration_with_http_info(self, **kwargs): # noqa: E501
"""Remove an integration for a user. # noqa: E501
Remove an integration by providing the integration id or integration code. Only provide one of the parameters. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.delete_integration_with_http_info(async=True)
>>> result = thread.get()
:param async bool
:param str id: Integration ID
:param str code: Integration Code
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'code'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_integration" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'id' in params:
form_params.append(('id', params['id'])) # noqa: E501
if 'code' in params:
form_params.append(('code', params['code'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['BBOAuth2'] # noqa: E501
return self.api_client.call_api(
'/integrations', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_integration_health(self, code, **kwargs): # noqa: E501
"""Get health for a given integration # noqa: E501
Get health for an integration. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_integration_health(code, async=True)
>>> result = thread.get()
:param async bool
:param str code: The integration code for which to retrieve the information from (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.get_integration_health_with_http_info(code, **kwargs) # noqa: E501
else:
(data) = self.get_integration_health_with_http_info(code, **kwargs) # noqa: E501
return data
def get_integration_health_with_http_info(self, code, **kwargs): # noqa: E501
"""Get health for a given integration # noqa: E501
Get health for an integration. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_integration_health_with_http_info(code, async=True)
>>> result = thread.get()
:param async bool
:param str code: The integration code for which to retrieve the information from (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['code'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_integration_health" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'code' is set
if ('code' not in params or
params['code'] is None):
raise ValueError("Missing the required parameter `code` when calling `get_integration_health`") # noqa: E501
collection_formats = {}
path_params = {}
if 'code' in params:
path_params['code'] = params['code'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['BBOAuth2'] # noqa: E501
return self.api_client.call_api(
'/integrations/health/{code}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_integration_page_components(self, integration_name, **kwargs): # noqa: E501
"""Get page components for a given integration # noqa: E501
Get all page components for an integration. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_integration_page_components(integration_name, async=True)
>>> result = thread.get()
:param async bool
:param str integration_name: The integration for which to retrieve HTML page components. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.get_integration_page_components_with_http_info(integration_name, **kwargs) # noqa: E501
else:
(data) = self.get_integration_page_components_with_http_info(integration_name, **kwargs) # noqa: E501
return data
def get_integration_page_components_with_http_info(self, integration_name, **kwargs): # noqa: E501
"""Get page components for a given integration # noqa: E501
Get all page components for an integration. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_integration_page_components_with_http_info(integration_name, async=True)
>>> result = thread.get()
:param async bool
:param str integration_name: The integration for which to retrieve HTML page components. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['integration_name'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_integration_page_components" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'integration_name' is set
if ('integration_name' not in params or
params['integration_name'] is None):
raise ValueError("Missing the required parameter `integration_name` when calling `get_integration_page_components`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
if 'integration_name' in params:
query_params.append(('integration_name', params['integration_name'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['BBOAuth2'] # noqa: E501
return self.api_client.call_api(
'/integrations/pageComponents', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def sync_users_integrated_lists(self, **kwargs): # noqa: E501
"""Synchronize your integration list or lists. # noqa: E501
Synchronize your integration contact list with the service you are integrated with. If no integration code is provided, all integrations will be synchronized. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.sync_users_integrated_lists(async=True)
>>> result = thread.get()
:param async bool
:param str integration_id: The integration to sync lists for. All integrations will sync if nothing is provided.
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.sync_users_integrated_lists_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.sync_users_integrated_lists_with_http_info(**kwargs) # noqa: E501
return data
def sync_users_integrated_lists_with_http_info(self, **kwargs): # noqa: E501
"""Synchronize your integration list or lists. # noqa: E501
Synchronize your integration contact list with the service you are integrated with. If no integration code is provided, all integrations will be synchronized. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.sync_users_integrated_lists_with_http_info(async=True)
>>> result = thread.get()
:param async bool
:param str integration_id: The integration to sync lists for. All integrations will sync if nothing is provided.
:return: str
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['integration_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method sync_users_integrated_lists" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'integration_id' in params:
query_params.append(('integration_id', params['integration_id'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['BBOAuth2'] # noqa: E501
return self.api_client.call_api(
'/integrations/sync', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 40.355311
| 236
| 0.61691
| 2,533
| 22,034
| 5.161469
| 0.08409
| 0.052012
| 0.021417
| 0.027536
| 0.928943
| 0.903396
| 0.894753
| 0.88328
| 0.866223
| 0.854367
| 0
| 0.017455
| 0.295362
| 22,034
| 545
| 237
| 40.429358
| 0.824617
| 0.057684
| 0
| 0.747368
| 1
| 0
| 0.174012
| 0.055421
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.014035
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
cef813cc27e17bb08d6cab2a2e4da49e79dc4c4a
| 143
|
py
|
Python
|
gym_kafka/util/__init__.py
|
constant-c/gym-kafka
|
32cb58a4a37acc9444ad8700d1c6ff124e8a98a8
|
[
"MIT"
] | null | null | null |
gym_kafka/util/__init__.py
|
constant-c/gym-kafka
|
32cb58a4a37acc9444ad8700d1c6ff124e8a98a8
|
[
"MIT"
] | null | null | null |
gym_kafka/util/__init__.py
|
constant-c/gym-kafka
|
32cb58a4a37acc9444ad8700d1c6ff124e8a98a8
|
[
"MIT"
] | 1
|
2020-03-03T13:10:46.000Z
|
2020-03-03T13:10:46.000Z
|
from gym_kafka.util.gym_factory import GymFactory
from gym_kafka.util.kafka_api import KafkaAPI, MSGStore
from gym_kafka.util.parsers import *
| 35.75
| 55
| 0.853147
| 23
| 143
| 5.086957
| 0.478261
| 0.179487
| 0.307692
| 0.410256
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 143
| 3
| 56
| 47.666667
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
88dfeeefab867540d180df5ca10ebcdf83e9a15c
| 72
|
py
|
Python
|
Term2/Session 12/3-while-loop.py
|
theseana/apondaone
|
7cbf3572a86c73220329804fee1f3d03842ae902
|
[
"MIT"
] | null | null | null |
Term2/Session 12/3-while-loop.py
|
theseana/apondaone
|
7cbf3572a86c73220329804fee1f3d03842ae902
|
[
"MIT"
] | null | null | null |
Term2/Session 12/3-while-loop.py
|
theseana/apondaone
|
7cbf3572a86c73220329804fee1f3d03842ae902
|
[
"MIT"
] | null | null | null |
if True:
print("It's IF!!!")
while True:
print("It's WHILE!!!")
| 14.4
| 26
| 0.527778
| 12
| 72
| 3.166667
| 0.5
| 0.473684
| 0.578947
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 72
| 5
| 26
| 14.4
| 0.678571
| 0
| 0
| 0
| 0
| 0
| 0.315068
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
003772710e305465cb412e6b0aef197a5d4aa2f3
| 381
|
py
|
Python
|
Modulo_5/semana_1/rebanar/vs.py
|
AutodidactaMx/cocid_python
|
11628f465ff362807a692c79ede26bf30dd8e26a
|
[
"MIT"
] | null | null | null |
Modulo_5/semana_1/rebanar/vs.py
|
AutodidactaMx/cocid_python
|
11628f465ff362807a692c79ede26bf30dd8e26a
|
[
"MIT"
] | null | null | null |
Modulo_5/semana_1/rebanar/vs.py
|
AutodidactaMx/cocid_python
|
11628f465ff362807a692c79ede26bf30dd8e26a
|
[
"MIT"
] | 1
|
2022-03-04T00:57:18.000Z
|
2022-03-04T00:57:18.000Z
|
import numpy as np
a1 = np.array([[10, 11, 12, 13, 14],
[15, 16, 17, 18, 19],
[20, 21, 22, 23, 24],
[25, 26, 27, 28, 29]])
print(a1[1,2:4]) # [17 18]
a2 = np.array([[10, 11, 12, 13, 14],
[15, 16, 17, 18, 19],
[20, 21, 22, 23, 24],
[25, 26, 27, 28, 29]])
print(a2[1:2,2:4]) # [[17 18]]
| 23.8125
| 37
| 0.372703
| 65
| 381
| 2.184615
| 0.476923
| 0.112676
| 0.126761
| 0.15493
| 0.732394
| 0.732394
| 0.732394
| 0.732394
| 0.732394
| 0.732394
| 0
| 0.432314
| 0.39895
| 381
| 15
| 38
| 25.4
| 0.187773
| 0.044619
| 0
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.090909
| 0
| 0.090909
| 0.181818
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
cca15fa9652c77bb81c8b6a788b80f1216f1375d
| 71
|
py
|
Python
|
patch_classification/get_batches_from_image.py
|
annusgit/forestcoverUnet
|
8ba4eafc6e5d637d3b08fa20d029e25173f96074
|
[
"MIT"
] | 25
|
2018-09-13T09:37:14.000Z
|
2021-12-07T07:12:56.000Z
|
patch_classification/get_batches_from_image.py
|
annusgit/forestcoverUnet
|
8ba4eafc6e5d637d3b08fa20d029e25173f96074
|
[
"MIT"
] | null | null | null |
patch_classification/get_batches_from_image.py
|
annusgit/forestcoverUnet
|
8ba4eafc6e5d637d3b08fa20d029e25173f96074
|
[
"MIT"
] | 6
|
2018-09-04T15:26:26.000Z
|
2021-09-14T12:42:43.000Z
|
from __future__ import print_function
from __future__ import division
| 17.75
| 37
| 0.873239
| 9
| 71
| 5.888889
| 0.666667
| 0.377358
| 0.603774
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126761
| 71
| 4
| 38
| 17.75
| 0.854839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 8
|
ccbd3044b4418ad8c5b61a9b861187c1d928483b
| 8,855
|
py
|
Python
|
bandipy/experiment.py
|
PenelopeCorsica/privacy-preserving-bandits
|
b62f99a0871698375b092a9c548b1fa0210bdbb2
|
[
"MIT"
] | 19
|
2019-09-11T09:32:18.000Z
|
2022-01-31T14:50:28.000Z
|
bandipy/experiment.py
|
mmalekzadeh/privacy-preserving-bandits
|
3b1c797094ca73315ec0c950bdc9c3f7dc37500b
|
[
"MIT"
] | 4
|
2020-11-13T18:37:33.000Z
|
2022-02-10T01:46:34.000Z
|
bandipy/experiment.py
|
PenelopeCorsica/privacy-preserving-bandits
|
b62f99a0871698375b092a9c548b1fa0210bdbb2
|
[
"MIT"
] | 4
|
2019-10-04T11:25:59.000Z
|
2022-03-01T19:07:18.000Z
|
import numpy as np
###____________ Experiment Interface ____________###
class Experiment():
def __init__(self, env, agent):
self.env = env
self.agent = agent
self.con_act_rew_hist = list()
self.cumulative_reward = 0.0
self.cumulative_regret = 0.0
def run_bandit(self, max_number_of_trials=1000):
pass
###____________ RandomExperiment ____________###
class RandomExperiment(Experiment):
"""
Experiment on synthesised random datasets with simple MAB algorithms
"""
def __init__(self, env, agent):
Experiment.__init__(self, env, agent)
def run_bandit(self, max_number_of_trials=1000):
for t in range(max_number_of_trials):
context = self.env.get_context()
contex_code = 0
if self.env.context_space.context_type == "binary":
contex_code = int("".join(str(x) for x in context), 2)
action = self.agent.act(context, contex_code)
reward = self.env.step(action, context)
self.agent.feedback(action, reward, context)
self.con_act_rew_hist.append([contex_code, action, reward])
self.cumulative_reward += reward
gap = self.env.compute_gap(action)
if action != self.env.reward_space.optimal_arm:
self.cumulative_regret += gap
hist = np.array(self.con_act_rew_hist)
return hist
###____________ ExperimentOnData ____________###
class ExperimentOnData(Experiment):
"""
Experiments on prepared datasets with contextual MAB algorithms
"""
def __init__(self, env, agent):
Experiment.__init__(self, env, agent)
def run_bandit(self, max_number_of_trials=1000, alph = 0.2, return_model = False):
for t in range(max_number_of_trials):
context = self.env.get_context(trial=t)
action = self.agent.act(context)
reward = self.env.step(action, context, trial=t)
self.agent.feedback(context, action, reward)
self.cumulative_reward += reward
if reward == 0:
self.cumulative_regret += 1
self.con_act_rew_hist.append([context, action, reward])
hist = np.array(self.con_act_rew_hist)
return hist
###____________ ExperimentWithSampling ____________###
class ExperimentWithSampling(Experiment):
"""
Experiments on prepared datasets with contextual MAB algorithms with data sharing
"""
def __init__(self, env, agent):
Experiment.__init__(self, env, agent)
self.shared_data = list()
def run_bandit(self, number_of_trials, alpha, sampling_prob=0.0, neg_rew_sam_rate = 0.0):
data_tuple_1 = list()
data_tuple_0 = list()
for t in range(number_of_trials):
context = self.env.get_context(trial=t)
action = self.agent.act(context, alpha)
reward = self.env.step(action, context, trial=t)
self.agent.feedback(context, action, reward)
self.con_act_rew_hist.append([context, action, reward])
if reward == 1:
data_tuple_1.append(np.concatenate((context, [action, reward])))
else:
data_tuple_0.append(np.concatenate((context, [action, reward])))
# Sampling
rnd_samp = np.random.rand()
if rnd_samp < sampling_prob:
rnd_neg = np.random.rand()
if rnd_neg < neg_rew_sam_rate:
if len(data_tuple_0) != 0:
shared_indx = np.random.randint(len(data_tuple_0))
self.shared_data = [data_tuple_0[shared_indx]]
else:
if len(data_tuple_1) != 0:
shared_indx = np.random.randint(len(data_tuple_1))
self.shared_data = [data_tuple_1[shared_indx]]
elif len(data_tuple_0) != 0:
shared_indx = np.random.randint(len(data_tuple_0))
self.shared_data = [data_tuple_0[shared_indx]]
else:
self.shared_data = []
def run_bandit_on_data(self, shared_contexts, shared_actions, shared_responses):
for t in range(len(shared_contexts)):
context = shared_contexts[t]
action = shared_actions[t].astype(int)
reward = shared_responses[t].astype(int)
self.agent.feedback(context, action, reward)
self.con_act_rew_hist.append([context, action, reward])
###____________ ExperimentWithSampling ____________###
class ExperimentWithSampling2(Experiment):
"""
Experiments on prepared datasets with contextual MAB algorithms with data sharing
"""
def __init__(self, env, agent):
Experiment.__init__(self, env, agent)
self.shared_data = list()
def run_bandit(self, number_of_trials, alpha, sampling_prob=0.0, neg_rew_sam_rate = 0.0, private=True):
data_tuple_1 = list()
data_tuple_0 = list()
for t in range(number_of_trials):
context = self.env.get_context(trial=t)
action = self.agent.act(context, alpha)
reward = self.env.step(action, context, trial=t)
self.agent.feedback(context, action, reward)
self.con_act_rew_hist.append([context, action, reward])
if reward == 1:
data_tuple_1.append(np.concatenate((context, [action, reward])))
else:
data_tuple_0.append(np.concatenate((context, [action, reward])))
# Sampling
if private:
rnd_samp = np.random.rand()
if rnd_samp < sampling_prob:
rnd_neg = np.random.rand()
if rnd_neg < neg_rew_sam_rate:
if len(data_tuple_0) != 0:
shared_indx = np.random.randint(len(data_tuple_0))
self.shared_data = [data_tuple_0[shared_indx]]
else:
if len(data_tuple_1) != 0:
shared_indx = np.random.randint(len(data_tuple_1))
self.shared_data = [data_tuple_1[shared_indx]]
elif len(data_tuple_0) != 0:
shared_indx = np.random.randint(len(data_tuple_0))
self.shared_data = [data_tuple_0[shared_indx]]
else:
self.shared_data = []
else:
if len(data_tuple_1) != 0:
self.shared_data = data_tuple_1
elif len(data_tuple_0) != 0:
shared_indx = (int)(len(data_tuple_0)/(len(data_tuple_0)*neg_rew_sam_rate))
if len(self.shared_data) != 0:
self.shared_data = np.append(self.shared_data, data_tuple_0[::shared_indx], axis =0)
else:
self.shared_data = data_tuple_0[::shared_indx]
def run_bandit_on_data(self, shared_contexts, shared_actions, shared_responses):
for t in range(len(shared_contexts)):
context = shared_contexts[t]
action = shared_actions[t].astype(int)
reward = shared_responses[t].astype(int)
self.agent.feedback(context, action, reward)
self.con_act_rew_hist.append([context, action, reward])
###____________ ExperimentOnPrivateData ____________###
class ExperimentOnPrivateData(Experiment):
"""
Experiments on prepared datasets with contextual MAB algorithms
"""
def __init__(self, env, agent):
Experiment.__init__(self, env, agent)
self.shared_data = list()
def run_bandit(self, max_number_of_trials=1000,
alph = 0.2, epsilon = 1., fed_rate = 10,
return_model = False):
fed = 0
for t in range(max_number_of_trials):
context = self.env.get_context(trial=t)
action = self.agent.act(context)
reward = self.env.step(action, context, trial=t)
self.agent.feedback(context, action, reward)
### Privacy ###
if reward == 1 and fed%fed_rate==0:
#noise = np.random.laplace(0, 1./((t+1)*epsilon), 1)
#context += noise
#context = np.clip(context, 0, 1)
self.shared_data.append(np.concatenate((context, [action])))
fed += 1
elif reward == 1:
fed += 1
### Privacy ###
self.cumulative_reward += reward
if reward == 0:
self.cumulative_regret += 1
self.con_act_rew_hist.append([context, action, reward])
hist = np.array(self.con_act_rew_hist)
return hist
| 38.837719
| 107
| 0.58227
| 1,031
| 8,855
| 4.586809
| 0.107662
| 0.062804
| 0.044407
| 0.037217
| 0.80757
| 0.786847
| 0.758723
| 0.754494
| 0.734193
| 0.726369
| 0
| 0.016377
| 0.317335
| 8,855
| 227
| 108
| 39.008811
| 0.765922
| 0.08786
| 0
| 0.746835
| 0
| 0
| 0.000755
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.088608
| false
| 0.006329
| 0.006329
| 0
| 0.151899
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ccc552fd874deb45adce2de0012c8df36e122205
| 217
|
py
|
Python
|
docs/multiple-tests/capitalized/src/example.py
|
codacy/codacy-prospector
|
85272adaf8022c0270ddaa826433343bc53e1376
|
[
"Apache-2.0"
] | null | null | null |
docs/multiple-tests/capitalized/src/example.py
|
codacy/codacy-prospector
|
85272adaf8022c0270ddaa826433343bc53e1376
|
[
"Apache-2.0"
] | 41
|
2019-12-18T07:17:52.000Z
|
2022-03-25T06:13:16.000Z
|
docs/multiple-tests/capitalized/src/example.py
|
codacy/codacy-prospector
|
85272adaf8022c0270ddaa826433343bc53e1376
|
[
"Apache-2.0"
] | null | null | null |
def non_capitalized():
"""
compute the MACD (Moving Average Convergence/Divergence) using ...
"""
def capitalized():
"""
Compute the MACD (Moving Average Convergence/Divergence) using ...
"""
| 21.7
| 70
| 0.635945
| 21
| 217
| 6.52381
| 0.52381
| 0.262774
| 0.306569
| 0.364964
| 0.934307
| 0.934307
| 0.934307
| 0.934307
| 0.934307
| 0
| 0
| 0
| 0.225806
| 217
| 9
| 71
| 24.111111
| 0.815476
| 0.612903
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| true
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
aeed02724e7122b4082f0783a3b2fb1e9f967641
| 4,181
|
py
|
Python
|
worldloader/example_empty_world/worlddata/models.py
|
luyijun/evennia_worldloader
|
79f3618a12265101ef5ff8c9182780874cfeb534
|
[
"BSD-3-Clause"
] | 1
|
2016-04-03T02:26:21.000Z
|
2016-04-03T02:26:21.000Z
|
worldloader/example_empty_world/worlddata/models.py
|
luyijun/evennia_worldloader
|
79f3618a12265101ef5ff8c9182780874cfeb534
|
[
"BSD-3-Clause"
] | null | null | null |
worldloader/example_empty_world/worlddata/models.py
|
luyijun/evennia_worldloader
|
79f3618a12265101ef5ff8c9182780874cfeb534
|
[
"BSD-3-Clause"
] | null | null | null |
from django.db import models
#------------------------------------------------------------
#
# store all rooms
#
#------------------------------------------------------------
class world_rooms(models.Model):
"Store all unique rooms."
key = models.CharField(max_length=255, primary_key=True)
name = models.CharField(max_length=255)
alias = models.CharField(max_length=255, blank=True)
typeclass = models.CharField(max_length=255)
desc = models.TextField(blank=True)
location = models.CharField(max_length=255, blank=True)
home = models.CharField(max_length=255, blank=True)
lock = models.CharField(max_length=255, blank=True)
attributes = models.TextField(blank=True)
destination = models.CharField(max_length=255, blank=True)
class Meta:
"Define Django meta options"
verbose_name = "World Room List"
verbose_name_plural = "World Room List"
#------------------------------------------------------------
#
# store all exits
#
#------------------------------------------------------------
class world_exits(models.Model):
"Store all unique exits."
key = models.CharField(max_length=255, primary_key=True)
name = models.CharField(max_length=255)
alias = models.CharField(max_length=255, blank=True)
typeclass = models.CharField(max_length=255)
desc = models.TextField(blank=True)
location = models.CharField(max_length=255, blank=True)
home = models.CharField(max_length=255, blank=True)
lock = models.CharField(max_length=255, blank=True)
attributes = models.TextField(blank=True)
destination = models.CharField(max_length=255, blank=True)
class Meta:
"Define Django meta options"
verbose_name = "World Exit List"
verbose_name_plural = "World Exit List"
#------------------------------------------------------------
#
# store all objects
#
#------------------------------------------------------------
class world_objects(models.Model):
"Store all unique objects."
key = models.CharField(max_length=255, primary_key=True)
name = models.CharField(max_length=255)
alias = models.CharField(max_length=255, blank=True)
typeclass = models.CharField(max_length=255)
desc = models.TextField(blank=True)
location = models.CharField(max_length=255, blank=True)
home = models.CharField(max_length=255, blank=True)
lock = models.CharField(max_length=255, blank=True)
attributes = models.TextField(blank=True)
destination = models.CharField(max_length=255, blank=True)
class Meta:
"Define Django meta options"
verbose_name = "World Object List"
verbose_name_plural = "World Object List"
#------------------------------------------------------------
#
# store all details
#
#------------------------------------------------------------
class world_details(models.Model):
"Store all details."
key = models.CharField(max_length=255, primary_key=True)
name = models.CharField(max_length=255)
desc = models.TextField(blank=True)
location = models.CharField(max_length=255, blank=True)
class Meta:
"Define Django meta options"
verbose_name = "World Detail List"
verbose_name_plural = "World Detail List"
#------------------------------------------------------------
#
# store all personal objects
#
#------------------------------------------------------------
class personal_objects(models.Model):
"Store all personal objects."
key = models.CharField(max_length=255, primary_key=True)
name = models.CharField(max_length=255)
alias = models.CharField(max_length=255, blank=True)
typeclass = models.CharField(max_length=255)
desc = models.TextField(blank=True)
location = models.CharField(max_length=255, blank=True)
home = models.CharField(max_length=255, blank=True)
lock = models.CharField(max_length=255, blank=True)
attributes = models.TextField(blank=True)
destination = models.CharField(max_length=255, blank=True)
class Meta:
"Define Django meta options"
verbose_name = "Personal Object List"
verbose_name_plural = "Personal Object List"
| 34.270492
| 62
| 0.606075
| 462
| 4,181
| 5.354978
| 0.095238
| 0.212207
| 0.254648
| 0.339531
| 0.881568
| 0.782538
| 0.782538
| 0.782538
| 0.782538
| 0.782538
| 0
| 0.029897
| 0.16001
| 4,181
| 121
| 63
| 34.553719
| 0.674544
| 0.227458
| 0
| 0.72
| 0
| 0
| 0.119653
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.013333
| 0
| 0.733333
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 11
|
4e0a44e04b805f97109641170c79a3ab55bb8a45
| 5,529
|
py
|
Python
|
tests/test_password_hasher.py
|
ethanwtai/ukbrest
|
c7303e57659ed787f002d2a53a54ca3a3f631a9b
|
[
"MIT"
] | 34
|
2018-04-17T03:02:38.000Z
|
2022-03-22T18:38:46.000Z
|
tests/test_password_hasher.py
|
ethanwtai/ukbrest
|
c7303e57659ed787f002d2a53a54ca3a3f631a9b
|
[
"MIT"
] | 7
|
2019-08-07T10:46:34.000Z
|
2021-06-23T13:30:59.000Z
|
tests/test_password_hasher.py
|
ethanwtai/ukbrest
|
c7303e57659ed787f002d2a53a54ca3a3f631a9b
|
[
"MIT"
] | 16
|
2018-08-26T08:08:05.000Z
|
2021-09-08T22:30:06.000Z
|
import os
import unittest
from shutil import copyfile
from ruamel.yaml import YAML
from ukbrest.common.utils.auth import PasswordHasher
from tests.utils import get_repository_path
class WSGIFunctions(unittest.TestCase):
def load_data(self, filepath):
yaml = YAML()
with open(filepath, 'r') as f:
return yaml.load(f)
def test_process_users_file_test00(self):
# prepare
orig_user_file = get_repository_path('wsgi/test00/users.txt')
users_file = orig_user_file + '.bak'
copyfile(orig_user_file, users_file)
orig_users = self.load_data(orig_user_file)
# run
ph = PasswordHasher(users_file, method='pbkdf2:sha256')
ph.process_users_file()
# evaluate
assert os.path.isfile(users_file)
users = self.load_data(users_file)
assert len(users) == 3
for user, password in users.items():
assert user in orig_users.keys(), user
assert password != orig_users[user], password + ' / ' + orig_users[user]
assert 90 < len(password) < 96, (len(password), password)
os.remove(users_file)
def test_process_users_file_file_does_not_exist_test00(self):
# prepare
users_file = get_repository_path('no/existing/file/here.txt')
# run
ph = PasswordHasher(users_file, method='pbkdf2:sha256')
ph.process_users_file()
def test_process_users_file_already_hashed_test00(self):
# prepare
orig_user_file = get_repository_path('wsgi/test00/users.txt')
users_file = orig_user_file + '.bak'
copyfile(orig_user_file, users_file)
orig_users = self.load_data(orig_user_file)
ph = PasswordHasher(users_file, method='pbkdf2:sha256')
ph.process_users_file()
users = self.load_data(users_file)
# run
ph = PasswordHasher(users_file, method='pbkdf2:sha256')
ph.process_users_file()
# evaluate
assert os.path.isfile(users_file)
new_users = self.load_data(users_file)
assert len(users) == 3
for user, password in new_users.items():
assert user in orig_users.keys(), user
assert password == users[user], password + ' / ' + users[user]
assert 90 < len(password) < 96, (len(password), password)
os.remove(users_file)
def test_process_users_file_one_password_hashed_rest_not_test01(self):
# prepare
orig_user_file = get_repository_path('wsgi/test01/users.txt')
users_file = orig_user_file + '.bak'
copyfile(orig_user_file, users_file)
orig_users = self.load_data(orig_user_file)
# run
ph = PasswordHasher(users_file, method='pbkdf2:sha256')
ph.process_users_file()
# evaluate
assert os.path.isfile(users_file)
users = self.load_data(users_file)
assert len(users) == 3
for user, password in users.items():
assert user in orig_users.keys(), user
if user != 'adams':
assert password != orig_users[user], user + ' / ' + password + ' / ' + orig_users[user]
else:
assert password == users[user], user + password + ' / ' + users[user]
assert 90 < len(password) < 96, (len(password), password)
os.remove(users_file)
def test_verify_password_test01(self):
# prepare
orig_user_file = get_repository_path('wsgi/test01/users.txt')
users_file = orig_user_file + '.bak'
copyfile(orig_user_file, users_file)
ph = PasswordHasher(users_file, method='pbkdf2:sha256')
ph.process_users_file()
# evaluate
assert os.path.isfile(users_file)
assert not ph.verify_password('milton', 'whatever')
assert ph.verify_password('john', 'mypassword')
assert ph.verify_password('adams', 'anotherpassword')
assert ph.verify_password('james', 'mypassword')
os.remove(users_file)
def test_verify_password_users_file_does_not_exist_test01(self):
# prepare
users_file = get_repository_path('no/existing/file/here.txt')
ph = PasswordHasher(users_file, method='pbkdf2:sha256')
ph.process_users_file()
# evaluate
assert not ph.verify_password('milton', 'whatever')
assert not ph.verify_password('john', 'mypassword')
assert not ph.verify_password('adams', 'anotherpassword')
assert not ph.verify_password('james', 'mypassword')
def test_verify_password_users_file_empty_test01(self):
# prepare
orig_user_file = get_repository_path('wsgi/test02/users.txt')
users_file = orig_user_file + '.bak'
ph = PasswordHasher(users_file, method='pbkdf2:sha256')
ph.process_users_file()
# evaluate
assert not ph.verify_password('milton', 'whatever')
assert not ph.verify_password('john', 'mypassword')
assert not ph.verify_password('adams', 'anotherpassword')
assert not ph.verify_password('james', 'mypassword')
def test_verify_password_users_file_none_test01(self):
# prepare
ph = PasswordHasher(None, method='pbkdf2:sha256')
ph.process_users_file()
# evaluate
assert ph.verify_password('milton', 'whatever')
assert ph.verify_password('john', 'mypassword')
assert ph.verify_password('adams', 'anotherpassword')
assert ph.verify_password('james', 'mypassword')
| 34.12963
| 103
| 0.646772
| 671
| 5,529
| 5.053651
| 0.126677
| 0.124742
| 0.060159
| 0.053082
| 0.872899
| 0.843409
| 0.840755
| 0.833972
| 0.800059
| 0.785314
| 0
| 0.01855
| 0.249231
| 5,529
| 161
| 104
| 34.341615
| 0.798362
| 0.025683
| 0
| 0.705882
| 0
| 0
| 0.105273
| 0.02888
| 0
| 0
| 0
| 0
| 0.323529
| 1
| 0.088235
| false
| 0.401961
| 0.058824
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
9da43d1fd70f000fb20a9fced0ffebc5bd45e8ad
| 3,531
|
py
|
Python
|
tests/integration/cartography/intel/azure/test_tag.py
|
Cloudanix/cartography
|
653d3cccbb9318e876fd558d386593e3612f4f78
|
[
"Apache-2.0"
] | null | null | null |
tests/integration/cartography/intel/azure/test_tag.py
|
Cloudanix/cartography
|
653d3cccbb9318e876fd558d386593e3612f4f78
|
[
"Apache-2.0"
] | 11
|
2020-12-21T02:51:11.000Z
|
2022-03-15T14:30:43.000Z
|
tests/integration/cartography/intel/azure/test_tag.py
|
Cloudanix/cartography
|
653d3cccbb9318e876fd558d386593e3612f4f78
|
[
"Apache-2.0"
] | 1
|
2021-02-05T08:08:47.000Z
|
2021-02-05T08:08:47.000Z
|
from cartography.intel.azure import tag
from tests.data.azure.tag import DESCRIBE_RESOURCE_GROUPS
from tests.data.azure.tag import DESCRIBE_TAGS
TEST_SUBSCRIPTION_ID = '00-00-00-00'
TEST_UPDATE_TAG = 123456789
def test_load_resource_groups(neo4j_session):
tag.load_resource_groups(
neo4j_session,
TEST_SUBSCRIPTION_ID,
DESCRIBE_RESOURCE_GROUPS,
TEST_UPDATE_TAG,
)
expected_nodes = {
"/subscriptions/00-00-00-00/resourceGroups/TestRG",
"/subscriptions/00-00-00-00/resourceGroups/TestRG1",
}
nodes = neo4j_session.run(
"""
MATCH (r:AzureResourceGroup) RETURN r.id;
""", )
actual_nodes = {n['r.id'] for n in nodes}
assert actual_nodes == expected_nodes
def test_load_resource_group_relationships(neo4j_session):
neo4j_session.run(
"""
MERGE (as:AzureSubscription{id: {subscription_id}})
ON CREATE SET as.firstseen = timestamp()
SET as.lastupdated = {update_tag}
""",
subscription_id=TEST_SUBSCRIPTION_ID,
update_tag=TEST_UPDATE_TAG,
)
tag.load_resource_groups(
neo4j_session,
TEST_SUBSCRIPTION_ID,
DESCRIBE_RESOURCE_GROUPS,
TEST_UPDATE_TAG,
)
expected = {
(
TEST_SUBSCRIPTION_ID,
"/subscriptions/00-00-00-00/resourceGroups/TestRG",
),
(
TEST_SUBSCRIPTION_ID,
"/subscriptions/00-00-00-00/resourceGroups/TestRG1",
),
}
result = neo4j_session.run(
"""
MATCH (n1:AzureSubscription)-[:RESOURCE]->(n2:AzureResourceGroup) RETURN n1.id, n2.id;
""", )
actual = {(r['n1.id'], r['n2.id']) for r in result}
assert actual == expected
def test_load_tags(neo4j_session):
tag.load_tags(
neo4j_session,
DESCRIBE_TAGS,
TEST_UPDATE_TAG,
)
expected_nodes = {
"/subscriptions/00-00-00-00/resourceGroups/TestRG/providers/Microsoft.Resources/tags/tag1",
"/subscriptions/00-00-00-00/resourceGroups/TestRG1/providers/Microsoft.Resources/tags/tag2",
}
nodes = neo4j_session.run(
"""
MATCH (r:AzureTag) RETURN r.id;
""", )
actual_nodes = {n['r.id'] for n in nodes}
assert actual_nodes == expected_nodes
def test_load_tags_relationships(neo4j_session):
neo4j_session.run(
"""
MERGE (as:AzureSubscription{id: {subscription_id}})
ON CREATE SET as.firstseen = timestamp()
SET as.lastupdated = {update_tag}
""",
subscription_id=TEST_SUBSCRIPTION_ID,
update_tag=TEST_UPDATE_TAG,
)
tag.load_resource_groups(
neo4j_session,
TEST_SUBSCRIPTION_ID,
DESCRIBE_RESOURCE_GROUPS,
TEST_UPDATE_TAG,
)
tag.load_tags(
neo4j_session,
DESCRIBE_TAGS,
TEST_UPDATE_TAG,
)
expected = {
(
"/subscriptions/00-00-00-00/resourceGroups/TestRG",
"/subscriptions/00-00-00-00/resourceGroups/TestRG/providers/Microsoft.Resources/tags/tag1",
),
(
"/subscriptions/00-00-00-00/resourceGroups/TestRG1",
"/subscriptions/00-00-00-00/resourceGroups/TestRG1/providers/Microsoft.Resources/tags/tag2",
),
}
result = neo4j_session.run(
"""
MATCH (n1:AzureResourceGroup)-[:TAGGED]->(n2:AzureTag) RETURN n1.id, n2.id;
""", )
actual = {(r['n1.id'], r['n2.id']) for r in result}
assert actual == expected
| 26.350746
| 104
| 0.623336
| 395
| 3,531
| 5.334177
| 0.149367
| 0.062648
| 0.062648
| 0.041766
| 0.8785
| 0.864262
| 0.813004
| 0.77029
| 0.77029
| 0.719981
| 0
| 0.050977
| 0.261116
| 3,531
| 133
| 105
| 26.548872
| 0.756612
| 0
| 0
| 0.714286
| 0
| 0.043956
| 0.238328
| 0.224739
| 0
| 0
| 0
| 0
| 0.043956
| 1
| 0.043956
| false
| 0
| 0.032967
| 0
| 0.076923
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9daf3da1b961a63a63a100f5278e1e30074a67db
| 42
|
py
|
Python
|
mcp2515/__init__.py
|
JonETJakobsson/mcp2515-micropython
|
25cc375f49d8938dd1010e7c91b9bbb763067e12
|
[
"MIT"
] | null | null | null |
mcp2515/__init__.py
|
JonETJakobsson/mcp2515-micropython
|
25cc375f49d8938dd1010e7c91b9bbb763067e12
|
[
"MIT"
] | null | null | null |
mcp2515/__init__.py
|
JonETJakobsson/mcp2515-micropython
|
25cc375f49d8938dd1010e7c91b9bbb763067e12
|
[
"MIT"
] | null | null | null |
from . import can
from . import address
| 14
| 22
| 0.714286
| 6
| 42
| 5
| 0.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.238095
| 42
| 2
| 23
| 21
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
9dc4f886184611b36238b95dae66a2c915b4ca04
| 187
|
py
|
Python
|
tests/parser/functions.3.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/functions.3.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/functions.3.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
input = """
ok(X) :- p(f(X)), q(f(X)).
q(X) :- p(X).
p(f(a)).
p(f(b,a)).
p(g(c)).
"""
output = """
ok(X) :- p(f(X)), q(f(X)).
q(X) :- p(X).
p(f(a)).
p(f(b,a)).
p(g(c)).
"""
| 11
| 27
| 0.304813
| 46
| 187
| 1.23913
| 0.23913
| 0.210526
| 0.210526
| 0.175439
| 0.807018
| 0.807018
| 0.807018
| 0.807018
| 0.807018
| 0.807018
| 0
| 0
| 0.224599
| 187
| 16
| 28
| 11.6875
| 0.393103
| 0
| 0
| 0.857143
| 0
| 0
| 0.822857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
9dfb9aa57da5685792d998c9a67307a52530075f
| 25,705
|
py
|
Python
|
sandbox/lib/jumpscale/JumpscaleLibs/clients/goldchain/tests/14_atomicswap_redeem.py
|
threefoldtech/threebot_prebuilt
|
1f0e1c65c14cef079cd80f73927d7c8318755c48
|
[
"Apache-2.0"
] | null | null | null |
sandbox/lib/jumpscale/JumpscaleLibs/clients/goldchain/tests/14_atomicswap_redeem.py
|
threefoldtech/threebot_prebuilt
|
1f0e1c65c14cef079cd80f73927d7c8318755c48
|
[
"Apache-2.0"
] | null | null | null |
sandbox/lib/jumpscale/JumpscaleLibs/clients/goldchain/tests/14_atomicswap_redeem.py
|
threefoldtech/threebot_prebuilt
|
1f0e1c65c14cef079cd80f73927d7c8318755c48
|
[
"Apache-2.0"
] | null | null | null |
from Jumpscale import j
import pytest
from JumpscaleLibs.clients.goldchain.stub.ExplorerClientStub import GoldChainExplorerGetClientStub
from JumpscaleLibs.clients.goldchain.test_utils import cleanup
def main(self):
"""
to run:
kosmos 'j.clients.goldchain.test(name="atomicswap_redeem")'
"""
cleanup("testnet_unittest_client")
# create a goldchain client for devnet
c = j.clients.goldchain.new("testnet_unittest_client", network_type="DEV")
# (we replace internal client logic with custom logic as to ensure we can test without requiring an active network)
explorer_client = GoldChainExplorerGetClientStub()
# add the blockchain info
explorer_client.chain_info = '{"blockid":"5c180121d6dbbbc8480ee63d58933a4e0d9eae664c0b8662c3ef81102c3fe82c","difficulty":"23546","estimatedactivebs":"146","height":17384,"maturitytimestamp":1549705634,"target":[0,2,200,131,232,66,109,128,132,97,252,155,147,77,241,96,113,131,22,176,230,53,191,80,170,156,189,0,160,84,41,168],"totalcoins":"0","arbitrarydatatotalsize":4351,"minerpayoutcount":17470,"transactioncount":18011,"coininputcount":637,"coinoutputcount":1231,"blockstakeinputcount":17384,"blockstakeoutputcount":17385,"minerfeecount":626,"arbitrarydatacount":573}'
explorer_client.hash_add(
"5c180121d6dbbbc8480ee63d58933a4e0d9eae664c0b8662c3ef81102c3fe82c",
'{"hashtype":"blockid","block":{"minerpayoutids":["c8f3f82e4c5be07c667f140456e188336dc5c86319260ad9964c1b2a553d7031"],"transactions":[{"id":"9d8823855c59ac903238849e2f31600a9bec2c27d36071402815046dbf8000e7","height":17384,"parent":"5c180121d6dbbbc8480ee63d58933a4e0d9eae664c0b8662c3ef81102c3fe82c","rawtransaction":{"version":1,"data":{"coininputs":null,"blockstakeinputs":[{"parentid":"7c111a656be26b42215d13df330aa46c30d9f84d8b47ca5f41c4a5a1f89c782d","fulfillment":{"type":1,"data":{"publickey":"ed25519:d285f92d6d449d9abb27f4c6cf82713cec0696d62b8c123f1627e054dc6d7780","signature":"8de764af61c2e404f246482a70e29881929a71e4644a4c6f3a620889b1339a3eb789b0e2b5dad4ba26d1862bbee3a62a6f42be8106867722488aed352b414d00"}}}],"blockstakeoutputs":[{"value":"3000","condition":{"type":1,"data":{"unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}}}],"minerfees":null}},"coininputoutputs":null,"coinoutputids":null,"coinoutputunlockhashes":null,"blockstakeinputoutputs":[{"value":"3000","condition":{"type":1,"data":{"unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}},"unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}],"blockstakeoutputids":["be4408fecfa7fb88831d6ff1ff2d32377c25ac6cdafcdec1a16644ef3540d0ea"],"blockstakeunlockhashes":["015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"],"unconfirmed":false}],"rawblock":{"parentid":"d329ebc493b75521db55b6595a7bfcbe5c1f94eb0ab1f7646bf39a42a8f7dddf","timestamp":1549705757,"pobsindexes":{"BlockHeight":17383,"TransactionIndex":0,"OutputIndex":0},"minerpayouts":[{"value":"10000000000","unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}],"transactions":[{"version":1,"data":{"coininputs":null,"blockstakeinputs":[{"parentid":"7c111a656be26b42215d13df330aa46c30d9f84d8b47ca5f41c4a5a1f89c782d","fulfillment":{"type":1,"data":{"publickey":"ed25519:d285f92d6d449d9abb27f4c6cf82713cec0696d62b8c123f1627e054dc6d7780","signature":"8de764af61c2e404f246482a70e29881929a71e4644a4c6f3a620889b1339a3eb789b0e2b5dad4ba26d1862bbee3a62a6f42be8106867722488aed352b414d00"}}}],"blockstakeoutputs":[{"value":"3000","condition":{"type":1,"data":{"unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}}}],"minerfees":null}}]},"blockid":"5c180121d6dbbbc8480ee63d58933a4e0d9eae664c0b8662c3ef81102c3fe82c","difficulty":"23546","estimatedactivebs":"146","height":17384,"maturitytimestamp":1549705634,"target":[0,2,200,131,232,66,109,128,132,97,252,155,147,77,241,96,113,131,22,176,230,53,191,80,170,156,189,0,160,84,41,168],"totalcoins":"0","arbitrarydatatotalsize":4351,"minerpayoutcount":17470,"transactioncount":18011,"coininputcount":637,"coinoutputcount":1231,"blockstakeinputcount":17384,"blockstakeoutputcount":17385,"minerfeecount":626,"arbitrarydatacount":573},"blocks":null,"transaction":{"id":"0000000000000000000000000000000000000000000000000000000000000000","height":0,"parent":"0000000000000000000000000000000000000000000000000000000000000000","rawtransaction":{"version":0,"data":{"coininputs":[],"minerfees":null}},"coininputoutputs":null,"coinoutputids":null,"coinoutputunlockhashes":null,"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false},"transactions":null,"multisigaddresses":null,"unconfirmed":false}',
)
# add the coin output info of the submitted atomic swap contract
explorer_client.hash_add(
"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486",
'{"hashtype":"coinoutputid","block":{"minerpayoutids":null,"transactions":null,"rawblock":{"parentid":"0000000000000000000000000000000000000000000000000000000000000000","timestamp":0,"pobsindexes":{"BlockHeight":0,"TransactionIndex":0,"OutputIndex":0},"minerpayouts":null,"transactions":null},"blockid":"0000000000000000000000000000000000000000000000000000000000000000","difficulty":"0","estimatedactivebs":"0","height":0,"maturitytimestamp":0,"target":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"totalcoins":"0","arbitrarydatatotalsize":0,"minerpayoutcount":0,"transactioncount":0,"coininputcount":0,"coinoutputcount":0,"blockstakeinputcount":0,"blockstakeoutputcount":0,"minerfeecount":0,"arbitrarydatacount":0},"blocks":null,"transaction":{"id":"0000000000000000000000000000000000000000000000000000000000000000","height":0,"parent":"0000000000000000000000000000000000000000000000000000000000000000","rawtransaction":{"version":0,"data":{"coininputs":[],"minerfees":null}},"coininputoutputs":null,"coinoutputids":null,"coinoutputunlockhashes":null,"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false},"transactions":[{"id":"fd583a124677a3ea7ed7981d008ca79bd9f93cedbee97af2bcfd28b3f31093cc","height":17383,"parent":"d329ebc493b75521db55b6595a7bfcbe5c1f94eb0ab1f7646bf39a42a8f7dddf","rawtransaction":{"version":1,"data":{"coininputs":[{"parentid":"8c8dbd70c6eb2d5d181aa5ae430f2cc86e038b92e45dd6f6d5a28400efad4511","fulfillment":{"type":1,"data":{"publickey":"ed25519:cf87843f9c9014700eaa2dc28a80e4a54587d8cca0baa717805ce117cecd9bb4","signature":"b9ce44b1e0f9e3fae9f21111ddc08333f6ba32675fc971893f6ab7ca3e5ab664883794fd3a35aef59ba54242d9be92fbcf65cefb5eede3709dd57226203b6601"}}}],"coinoutputs":[{"value":"50000000000","condition":{"type":2,"data":{"sender":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","receiver":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","hashedsecret":"e24b6b609b351a958982ba91de7624d3503f428620f5586fbea1f71807b545c1","timelock":1549878527}}},{"value":"99994136000000000","condition":{"type":1,"data":{"unlockhash":"017cb06fa6f44828617b92603e95171044d9dc7c4966ffa0d8f6f97171558735974e7ecc623ff7"}}}],"minerfees":["1000000000"]}},"coininputoutputs":[{"value":"99994187000000000","condition":{"type":1,"data":{"unlockhash":"0183841ae8952a2ba72db0d6fce6208df70f2a936ee589ff852e06b20af48b40489572b1a69b2a"}},"unlockhash":"0183841ae8952a2ba72db0d6fce6208df70f2a936ee589ff852e06b20af48b40489572b1a69b2a"}],"coinoutputids":["dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486","75bbe54aca26d5a5afbc442c0e033a3ad18efa1e130f0776a9e4b68cdbe24fb7"],"coinoutputunlockhashes":["02f6d25603d232512ade46cdec3160301d8bd4880f2d4e8e20f54aff24f94dac5792ab1b325c3d","017cb06fa6f44828617b92603e95171044d9dc7c4966ffa0d8f6f97171558735974e7ecc623ff7"],"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false}],"multisigaddresses":null,"unconfirmed":false}',
)
# override internal functionality, as to use our stub client
c._explorer_get = explorer_client.explorer_get
c._explorer_post = explorer_client.explorer_post
# a wallet is required to redeem a contract
w = c.wallets.new(
"mytestwallet",
seed="remain solar kangaroo welcome clean object friend later bounce strong ship lift hamster afraid you super dolphin warm emotion curve smooth kiss stem diet",
)
# balance should be 0 at this point
assert w.balance.available == "0 GFT"
# if the output identifier is wrong, the redemption will fail
with pytest.raises(j.clients.goldchain.errors.AtomicSwapContractNotFound):
w.atomicswap.redeem(
"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb483",
secret="f68d8b238c193bc6765b8e355c53e4f574a2c9da458e55d4402edca621e53756",
)
# if the secret is wrong, the redemption will fail as well
with pytest.raises(j.clients.goldchain.errors.AtomicSwapInvalidSecret):
w.atomicswap.redeem(
"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486",
secret="f68d8b238c193bc6765b8e355c53e4f574a2c9da458e55d4402edca621e53754",
)
# if not authorized, redemption will also fail
fw = c.wallets.new("foobar")
with pytest.raises(j.clients.goldchain.errors.AtomicSwapForbidden):
fw.atomicswap.redeem(
"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486",
secret="f68d8b238c193bc6765b8e355c53e4f574a2c9da458e55d4402edca621e53756",
)
# once you know the secret, and you are authorized to receive the contract,
# you can redeem the atomic swap contract as follows:
w.atomicswap.redeem(
"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486",
secret="f68d8b238c193bc6765b8e355c53e4f574a2c9da458e55d4402edca621e53756",
)
# once it becomes registered on the chain
explorer_client.hash_add(
"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0",
'{"hashtype":"unlockhash","block":{"minerpayoutids":null,"transactions":null,"rawblock":{"parentid":"0000000000000000000000000000000000000000000000000000000000000000","timestamp":0,"pobsindexes":{"BlockHeight":0,"TransactionIndex":0,"OutputIndex":0},"minerpayouts":null,"transactions":null},"blockid":"0000000000000000000000000000000000000000000000000000000000000000","difficulty":"0","estimatedactivebs":"0","height":0,"maturitytimestamp":0,"target":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"totalcoins":"0","arbitrarydatatotalsize":0,"minerpayoutcount":0,"transactioncount":0,"coininputcount":0,"coinoutputcount":0,"blockstakeinputcount":0,"blockstakeoutputcount":0,"minerfeecount":0,"arbitrarydatacount":0},"blocks":null,"transaction":{"id":"0000000000000000000000000000000000000000000000000000000000000000","height":0,"parent":"0000000000000000000000000000000000000000000000000000000000000000","rawtransaction":{"version":0,"data":{"coininputs":[],"minerfees":null}},"coininputoutputs":null,"coinoutputids":null,"coinoutputunlockhashes":null,"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false},"transactions":[{"id":"4a7ac7930379675c82d0462a86e6d6f4018bdb2bdabaf49f4c177b8de19b4e7c","height":16930,"parent":"c25f345403080b8372a38f66608aa5a2287bdc61b82efe5ee6503ce85e8bcd35","rawtransaction":{"version":1,"data":{"coininputs":[{"parentid":"753aaeaa0c9e6c9f1f8da1974c83d8ca067ad536f464a2e2fc038bbd0404d084","fulfillment":{"type":1,"data":{"publickey":"ed25519:e4f55bc46b5feb37c03a0faa2d624a9ee1d0deb5059aaa9625d8b4f60f29bcab","signature":"b5081e41797f53233c727c344698400a73f2cdd364e241df915df413d3eeafb425ce9b51de3731bcbf830c399a706f4d24ae7066f947a4a36ae1b25415bcde00"}}}],"coinoutputs":[{"value":"50000000000","condition":{"type":2,"data":{"sender":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","receiver":"01746b199781ea316a44183726f81e0734d93e7cefc18e9a913989821100aafa33e6eb7343fa8c","hashedsecret":"4163d4b31a1708cd3bb95a0a8117417bdde69fd1132909f92a8ec1e3fe2ccdba","timelock":1549736249}}}],"minerfees":["1000000000"]}},"coininputoutputs":[{"value":"51000000000","condition":{"type":1,"data":{"unlockhash":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0"}},"unlockhash":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0"}],"coinoutputids":["023b1c17a01945573933e62ca7a1297057681622aaea52c4c4e198077a263890"],"coinoutputunlockhashes":["02fb27c67c373c2f30611e0b98bf92ed6e6eb0a69b471457b282903945180cd5c5b8068731f767"],"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false},{"id":"b147985d381bc626ef79219ca988b5b1e2d328ade10cd7f3d48b96ca67928155","height":17698,"parent":"e8656ff72f9288c9ece3f85e489389f3c77e84052db13702b03dcff266a4d844","rawtransaction":{"version":1,"data":{"coininputs":[{"parentid":"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486","fulfillment":{"type":2,"data":{"publickey":"ed25519:e4f55bc46b5feb37c03a0faa2d624a9ee1d0deb5059aaa9625d8b4f60f29bcab","signature":"4a7a15125f4e8819b4cf57dfe5f0389f45b0779b2a4bf27d885b4de8659ad363eb5be8c38ec88b33fc6fe1d18c55a9c0220f21977d36d1c8f63d582c8c126b0d","secret":"f68d8b238c193bc6765b8e355c53e4f574a2c9da458e55d4402edca621e53756"}}}],"coinoutputs":[{"value":"49000000000","condition":{"type":1,"data":{"unlockhash":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0"}}}],"minerfees":["1000000000"]}},"coininputoutputs":[{"value":"50000000000","condition":{"type":2,"data":{"sender":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","receiver":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","hashedsecret":"e24b6b609b351a958982ba91de7624d3503f428620f5586fbea1f71807b545c1","timelock":1549878527}},"unlockhash":"02f6d25603d232512ade46cdec3160301d8bd4880f2d4e8e20f54aff24f94dac5792ab1b325c3d"}],"coinoutputids":["b0e64c6e9d0d6d515856e15fcdfd869721f5b14ffc7599204f1e6ec174fb3631"],"coinoutputunlockhashes":["01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0"],"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false},{"id":"bca044302e018e67600bd0bd3223ae8dbb702eb528e73d6cfa9d057d4f73b03a","height":16911,"parent":"b4882a0b8632396a9c5d83a5c8684ab76736f4bff6d971795ed7334fac8aa339","rawtransaction":{"version":1,"data":{"coininputs":[{"parentid":"357451c3f3a15f6150aedede9d5228ec5dfc2d32c9b62c2a46128533a7845c72","fulfillment":{"type":1,"data":{"publickey":"ed25519:fdb2e1b898dda304f748c0ff812a24729b2aafd344512079ab778eb368b18645","signature":"bd9dd36e86c08a5990ad5282d1079705c3a4b1cf3896e96791aa7db97002d5eb002c50467f45bd3ac1086292932cd2ab53c91b2e8bb74b9d9c9c0d558082ef08"}}}],"coinoutputs":[{"value":"51000000000","condition":{"type":1,"data":{"unlockhash":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0"}}},{"value":"99994187000000000","condition":{"type":1,"data":{"unlockhash":"0183841ae8952a2ba72db0d6fce6208df70f2a936ee589ff852e06b20af48b40489572b1a69b2a"}}}],"minerfees":["1000000000"]}},"coininputoutputs":[{"value":"99994239000000000","condition":{"type":1,"data":{"unlockhash":"019bb005b78a47fd084f4f3a088d83da4fadfc8e494ce4dae0d6f70a048a0a745d88ace6ce6f1c"}},"unlockhash":"019bb005b78a47fd084f4f3a088d83da4fadfc8e494ce4dae0d6f70a048a0a745d88ace6ce6f1c"}],"coinoutputids":["753aaeaa0c9e6c9f1f8da1974c83d8ca067ad536f464a2e2fc038bbd0404d084","8c8dbd70c6eb2d5d181aa5ae430f2cc86e038b92e45dd6f6d5a28400efad4511"],"coinoutputunlockhashes":["01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","0183841ae8952a2ba72db0d6fce6208df70f2a936ee589ff852e06b20af48b40489572b1a69b2a"],"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false}],"multisigaddresses":null,"unconfirmed":false}',
)
explorer_client.hash_add(
"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486",
'{"hashtype":"coinoutputid","block":{"minerpayoutids":null,"transactions":null,"rawblock":{"parentid":"0000000000000000000000000000000000000000000000000000000000000000","timestamp":0,"pobsindexes":{"BlockHeight":0,"TransactionIndex":0,"OutputIndex":0},"minerpayouts":null,"transactions":null},"blockid":"0000000000000000000000000000000000000000000000000000000000000000","difficulty":"0","estimatedactivebs":"0","height":0,"maturitytimestamp":0,"target":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"totalcoins":"0","arbitrarydatatotalsize":0,"minerpayoutcount":0,"transactioncount":0,"coininputcount":0,"coinoutputcount":0,"blockstakeinputcount":0,"blockstakeoutputcount":0,"minerfeecount":0,"arbitrarydatacount":0},"blocks":null,"transaction":{"id":"0000000000000000000000000000000000000000000000000000000000000000","height":0,"parent":"0000000000000000000000000000000000000000000000000000000000000000","rawtransaction":{"version":0,"data":{"coininputs":[],"minerfees":null}},"coininputoutputs":null,"coinoutputids":null,"coinoutputunlockhashes":null,"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false},"transactions":[{"id":"b147985d381bc626ef79219ca988b5b1e2d328ade10cd7f3d48b96ca67928155","height":17698,"parent":"e8656ff72f9288c9ece3f85e489389f3c77e84052db13702b03dcff266a4d844","rawtransaction":{"version":1,"data":{"coininputs":[{"parentid":"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486","fulfillment":{"type":2,"data":{"publickey":"ed25519:e4f55bc46b5feb37c03a0faa2d624a9ee1d0deb5059aaa9625d8b4f60f29bcab","signature":"4a7a15125f4e8819b4cf57dfe5f0389f45b0779b2a4bf27d885b4de8659ad363eb5be8c38ec88b33fc6fe1d18c55a9c0220f21977d36d1c8f63d582c8c126b0d","secret":"f68d8b238c193bc6765b8e355c53e4f574a2c9da458e55d4402edca621e53756"}}}],"coinoutputs":[{"value":"49000000000","condition":{"type":1,"data":{"unlockhash":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0"}}}],"minerfees":["1000000000"]}},"coininputoutputs":[{"value":"50000000000","condition":{"type":2,"data":{"sender":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","receiver":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","hashedsecret":"e24b6b609b351a958982ba91de7624d3503f428620f5586fbea1f71807b545c1","timelock":1549878527}},"unlockhash":"02f6d25603d232512ade46cdec3160301d8bd4880f2d4e8e20f54aff24f94dac5792ab1b325c3d"}],"coinoutputids":["b0e64c6e9d0d6d515856e15fcdfd869721f5b14ffc7599204f1e6ec174fb3631"],"coinoutputunlockhashes":["01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0"],"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false},{"id":"fd583a124677a3ea7ed7981d008ca79bd9f93cedbee97af2bcfd28b3f31093cc","height":17383,"parent":"d329ebc493b75521db55b6595a7bfcbe5c1f94eb0ab1f7646bf39a42a8f7dddf","rawtransaction":{"version":1,"data":{"coininputs":[{"parentid":"8c8dbd70c6eb2d5d181aa5ae430f2cc86e038b92e45dd6f6d5a28400efad4511","fulfillment":{"type":1,"data":{"publickey":"ed25519:cf87843f9c9014700eaa2dc28a80e4a54587d8cca0baa717805ce117cecd9bb4","signature":"b9ce44b1e0f9e3fae9f21111ddc08333f6ba32675fc971893f6ab7ca3e5ab664883794fd3a35aef59ba54242d9be92fbcf65cefb5eede3709dd57226203b6601"}}}],"coinoutputs":[{"value":"50000000000","condition":{"type":2,"data":{"sender":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","receiver":"01b73c4e869b6167abe6180ebe7a907f56e0357b4a2f65eb53d22baad84650eb62fce66ba036d0","hashedsecret":"e24b6b609b351a958982ba91de7624d3503f428620f5586fbea1f71807b545c1","timelock":1549878527}}},{"value":"99994136000000000","condition":{"type":1,"data":{"unlockhash":"017cb06fa6f44828617b92603e95171044d9dc7c4966ffa0d8f6f97171558735974e7ecc623ff7"}}}],"minerfees":["1000000000"]}},"coininputoutputs":[{"value":"99994187000000000","condition":{"type":1,"data":{"unlockhash":"0183841ae8952a2ba72db0d6fce6208df70f2a936ee589ff852e06b20af48b40489572b1a69b2a"}},"unlockhash":"0183841ae8952a2ba72db0d6fce6208df70f2a936ee589ff852e06b20af48b40489572b1a69b2a"}],"coinoutputids":["dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486","75bbe54aca26d5a5afbc442c0e033a3ad18efa1e130f0776a9e4b68cdbe24fb7"],"coinoutputunlockhashes":["02f6d25603d232512ade46cdec3160301d8bd4880f2d4e8e20f54aff24f94dac5792ab1b325c3d","017cb06fa6f44828617b92603e95171044d9dc7c4966ffa0d8f6f97171558735974e7ecc623ff7"],"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false}],"multisigaddresses":null,"unconfirmed":false}',
force=True,
)
explorer_client.chain_info = '{"blockid":"5de1f56636bde6d724c717a3eda954117ad647930a55125a210cd7da8986c365","difficulty":"33956","estimatedactivebs":"2680","height":17712,"maturitytimestamp":1549709563,"target":[0,1,238,19,74,206,147,40,0,177,159,111,31,15,189,145,26,160,171,28,217,59,25,165,140,61,86,216,188,238,159,35],"totalcoins":"0","arbitrarydatatotalsize":4351,"minerpayoutcount":17799,"transactioncount":18340,"coininputcount":638,"coinoutputcount":1232,"blockstakeinputcount":17712,"blockstakeoutputcount":17713,"minerfeecount":627,"arbitrarydatacount":573}'
explorer_client.hash_add(
"5de1f56636bde6d724c717a3eda954117ad647930a55125a210cd7da8986c365",
'{"hashtype":"blockid","block":{"minerpayoutids":["f66f6bde0f026d68f7ce64cbb0ce0169a48e7abd636536ade754d152dbe64e5c"],"transactions":[{"id":"c7b2f558cd8e6ac0d94e2f0c0b025682d142b78457acfed3b89dca493451f15a","height":17712,"parent":"5de1f56636bde6d724c717a3eda954117ad647930a55125a210cd7da8986c365","rawtransaction":{"version":1,"data":{"coininputs":null,"blockstakeinputs":[{"parentid":"2bbf77cb889cafc8df69293c016c03c0b10420e6ed1d83bbe6e79529ed49ba00","fulfillment":{"type":1,"data":{"publickey":"ed25519:d285f92d6d449d9abb27f4c6cf82713cec0696d62b8c123f1627e054dc6d7780","signature":"b3c41e1964f055c027437576943bce92808ff24411a0bf19a56e81b74e6f5fd5d027f8aabe836a56cc2a81837fd73cfc09473a97ac0746b319f4a906f7bc7c02"}}}],"blockstakeoutputs":[{"value":"3000","condition":{"type":1,"data":{"unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}}}],"minerfees":null}},"coininputoutputs":null,"coinoutputids":null,"coinoutputunlockhashes":null,"blockstakeinputoutputs":[{"value":"3000","condition":{"type":1,"data":{"unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}},"unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}],"blockstakeoutputids":["9830f9a00955c797289a9ab17211a05f3e393c2d8728e7fcc6c25b9fe7afce74"],"blockstakeunlockhashes":["015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"],"unconfirmed":false}],"rawblock":{"parentid":"a32ed0392681c2faccffb818dd14aa92c405315f9b538500d9d4d840834d3438","timestamp":1549709657,"pobsindexes":{"BlockHeight":17711,"TransactionIndex":0,"OutputIndex":0},"minerpayouts":[{"value":"10000000000","unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}],"transactions":[{"version":1,"data":{"coininputs":null,"blockstakeinputs":[{"parentid":"2bbf77cb889cafc8df69293c016c03c0b10420e6ed1d83bbe6e79529ed49ba00","fulfillment":{"type":1,"data":{"publickey":"ed25519:d285f92d6d449d9abb27f4c6cf82713cec0696d62b8c123f1627e054dc6d7780","signature":"b3c41e1964f055c027437576943bce92808ff24411a0bf19a56e81b74e6f5fd5d027f8aabe836a56cc2a81837fd73cfc09473a97ac0746b319f4a906f7bc7c02"}}}],"blockstakeoutputs":[{"value":"3000","condition":{"type":1,"data":{"unlockhash":"015a080a9259b9d4aaa550e2156f49b1a79a64c7ea463d810d4493e8242e6791584fbdac553e6f"}}}],"minerfees":null}}]},"blockid":"5de1f56636bde6d724c717a3eda954117ad647930a55125a210cd7da8986c365","difficulty":"33956","estimatedactivebs":"2680","height":17712,"maturitytimestamp":1549709563,"target":[0,1,238,19,74,206,147,40,0,177,159,111,31,15,189,145,26,160,171,28,217,59,25,165,140,61,86,216,188,238,159,35],"totalcoins":"0","arbitrarydatatotalsize":4351,"minerpayoutcount":17799,"transactioncount":18340,"coininputcount":638,"coinoutputcount":1232,"blockstakeinputcount":17712,"blockstakeoutputcount":17713,"minerfeecount":627,"arbitrarydatacount":573},"blocks":null,"transaction":{"id":"0000000000000000000000000000000000000000000000000000000000000000","height":0,"parent":"0000000000000000000000000000000000000000000000000000000000000000","rawtransaction":{"version":0,"data":{"coininputs":[],"minerfees":null}},"coininputoutputs":null,"coinoutputids":null,"coinoutputunlockhashes":null,"blockstakeinputoutputs":null,"blockstakeoutputids":null,"blockstakeunlockhashes":null,"unconfirmed":false},"transactions":null,"multisigaddresses":null,"unconfirmed":false}',
)
# and the contract can no longer be redeemed
with pytest.raises(j.clients.goldchain.errors.AtomicSwapContractSpent):
w.atomicswap.redeem(
"dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486",
secret="f68d8b238c193bc6765b8e355c53e4f574a2c9da458e55d4402edca621e53756",
)
# should you verify it at this point, you'll get the same exception
with pytest.raises(j.clients.goldchain.errors.AtomicSwapContractSpent):
w.atomicswap.verify("dd1babcbab492c742983b887a7408742ad0054ec8586541dd6ee6202877cb486")
c.wallets.delete()
c.delete()
| 244.809524
| 5,987
| 0.827504
| 1,671
| 25,705
| 12.71155
| 0.211849
| 0.008757
| 0.012711
| 0.016383
| 0.787816
| 0.7768
| 0.731086
| 0.725578
| 0.706746
| 0.702462
| 0
| 0.342217
| 0.030772
| 25,705
| 104
| 5,988
| 247.163462
| 0.510356
| 0.034196
| 0
| 0.313433
| 0
| 0.119403
| 0.924209
| 0.916989
| 0
| 0
| 0
| 0
| 0.014925
| 1
| 0.014925
| false
| 0
| 0.059701
| 0
| 0.074627
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
d1897d4875a27bd001bc824ba7c89e67303cec0c
| 659,225
|
py
|
Python
|
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_mpls_te_cfg.py
|
tkamata-test/ydk-py
|
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_mpls_te_cfg.py
|
tkamata-test/ydk-py
|
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_mpls_te_cfg.py
|
tkamata-test/ydk-py
|
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
import re
import collections
from enum import Enum
from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum
from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLIST, REFERENCE_IDENTITY_CLASS, REFERENCE_ENUM_CLASS, REFERENCE_BITS, REFERENCE_UNION
from ydk.errors import YPYError, YPYModelError
from ydk.providers._importer import _yang_ns
_meta_table = {
'MplsTeBackupBandwidthClassEnum' : _MetaInfoEnum('MplsTeBackupBandwidthClassEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'class0':'class0',
'class1':'class1',
'any-class':'any_class',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'SrPrependEnum' : _MetaInfoEnum('SrPrependEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'none-type':'none_type',
'next-label':'next_label',
'bgp-n-hop':'bgp_n_hop',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathComputationMethodEnum' : _MetaInfoEnum('MplsTePathComputationMethodEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'not-set':'not_set',
'dynamic':'dynamic',
'pce':'pce',
'explicit':'explicit',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeSwitchingCapEnum' : _MetaInfoEnum('MplsTeSwitchingCapEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'psc1':'psc1',
'lsc':'lsc',
'fsc':'fsc',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeBfdSessionDownActionEnum' : _MetaInfoEnum('MplsTeBfdSessionDownActionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
're-setup':'re_setup',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'RoutePriorityRoleEnum' : _MetaInfoEnum('RoutePriorityRoleEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'route-priority-role-head-back-up':'route_priority_role_head_back_up',
'route-priority-role-head-primary':'route_priority_role_head_primary',
'route-priority-role-middle':'route_priority_role_middle',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTebfdSessionEnum' : _MetaInfoEnum('MplsTebfdSessionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'regular-bfd':'regular_bfd',
'sbfd':'sbfd',
'redundant-sbfd':'redundant_sbfd',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeLogFrrProtectionEnum' : _MetaInfoEnum('MplsTeLogFrrProtectionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'frr-active-primary':'frr_active_primary',
'backup':'backup',
'frr-ready-primary':'frr_ready_primary',
'primary':'primary',
'all':'all',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeTunnelAffinityEnum' : _MetaInfoEnum('MplsTeTunnelAffinityEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'include':'include',
'include-strict':'include_strict',
'exclude':'exclude',
'exclude-all':'exclude_all',
'ignore':'ignore',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'IetfModeEnum' : _MetaInfoEnum('IetfModeEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'standard':'standard',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathOptionPropertyEnum' : _MetaInfoEnum('MplsTePathOptionPropertyEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'none':'none',
'lockdown':'lockdown',
'verbatim':'verbatim',
'pce':'pce',
'segment-routing':'segment_routing',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'GmplsttiModeEnum' : _MetaInfoEnum('GmplsttiModeEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'sm':'sm',
'pm':'pm',
'tcm':'tcm',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathSelectionInvalidationTimerExpireEnum' : _MetaInfoEnum('MplsTePathSelectionInvalidationTimerExpireEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'tunnel-action-tear':'tunnel_action_tear',
'tunnel-action-drop':'tunnel_action_drop',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeOtnApsProtectionEnum' : _MetaInfoEnum('MplsTeOtnApsProtectionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'1plus1-unidir-no-aps':'Y_1plus1_unidir_no_aps',
'1plus1-unidir-aps':'Y_1plus1_unidir_aps',
'1plus1-bdir-aps':'Y_1plus1_bdir_aps',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeSwitchingEncodingEnum' : _MetaInfoEnum('MplsTeSwitchingEncodingEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'packet':'packet',
'ethernet':'ethernet',
'sondet-sdh':'sondet_sdh',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeSigNameOptionEnum' : _MetaInfoEnum('MplsTeSigNameOptionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'none':'none',
'address':'address',
'name':'name',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'OtnProtectionSwitchLockoutEnum' : _MetaInfoEnum('OtnProtectionSwitchLockoutEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'none':'none',
'working':'working',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeTunnelIdEnum' : _MetaInfoEnum('MplsTeTunnelIdEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'auto':'auto',
'explicit':'explicit',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeAffinityValueEnum' : _MetaInfoEnum('MplsTeAffinityValueEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'hex-value':'hex_value',
'bit-position':'bit_position',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeOtnSncModeEnum' : _MetaInfoEnum('MplsTeOtnSncModeEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'snc-n':'snc_n',
'snc-i':'snc_i',
'snc-s':'snc_s',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'OtnPayloadEnum' : _MetaInfoEnum('OtnPayloadEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'unknown':'unknown',
'bmp':'bmp',
'gfp-f':'gfp_f',
'gmp':'gmp',
'gfp-f-ext':'gfp_f_ext',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'OspfAreaModeEnum' : _MetaInfoEnum('OspfAreaModeEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'ospf-int':'ospf_int',
'ospfip-addr':'ospfip_addr',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeIgpProtocolEnum' : _MetaInfoEnum('MplsTeIgpProtocolEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'none':'none',
'isis':'isis',
'ospf':'ospf',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathSelectionTiebreakerEnum' : _MetaInfoEnum('MplsTePathSelectionTiebreakerEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'min-fill':'min_fill',
'max-fill':'max_fill',
'random':'random',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathOptionEnum' : _MetaInfoEnum('MplsTePathOptionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'not-set':'not_set',
'dynamic':'dynamic',
'explicit-name':'explicit_name',
'explicit-number':'explicit_number',
'no-ero':'no_ero',
'sr':'sr',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'PathInvalidationActionEnum' : _MetaInfoEnum('PathInvalidationActionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'tear':'tear',
'drop':'drop',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'OtnSignaledBandwidthEnum' : _MetaInfoEnum('OtnSignaledBandwidthEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'odu1':'odu1',
'odu2':'odu2',
'odu3':'odu3',
'odu4':'odu4',
'odu0':'odu0',
'odu2e':'odu2e',
'od-uflex-cbr':'od_uflex_cbr',
'od-uflex-gfp-resize':'od_uflex_gfp_resize',
'od-uflex-gfp-not-resize':'od_uflex_gfp_not_resize',
'odu1e':'odu1e',
'odu1f':'odu1f',
'odu2f':'odu2f',
'odu3e1':'odu3e1',
'odu3e2':'odu3e2',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeAutorouteMetricEnum' : _MetaInfoEnum('MplsTeAutorouteMetricEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'relative':'relative',
'absolute':'absolute',
'constant':'constant',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'BindingSegmentIdEnum' : _MetaInfoEnum('BindingSegmentIdEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'any-label':'any_label',
'specified-label':'specified_label',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTesrlgExcludeEnum' : _MetaInfoEnum('MplsTesrlgExcludeEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'mandatory':'mandatory',
'preferred':'preferred',
'weighted':'weighted',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeSignaledLabelEnum' : _MetaInfoEnum('MplsTeSignaledLabelEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'not-set':'not_set',
'dwdm':'dwdm',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'BandwidthConstraintEnum' : _MetaInfoEnum('BandwidthConstraintEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'bandwidth-constraint-maximum-allocation-model':'bandwidth_constraint_maximum_allocation_model',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeSwitchingEncodeEnum' : _MetaInfoEnum('MplsTeSwitchingEncodeEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'none':'none',
'packet':'packet',
'ethernet':'ethernet',
'sondet-sdh':'sondet_sdh',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathSelectionMetricEnum' : _MetaInfoEnum('MplsTePathSelectionMetricEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'igp':'igp',
'te':'te',
'delay':'delay',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathOptionProtectionEnum' : _MetaInfoEnum('MplsTePathOptionProtectionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'active':'active',
'protecting':'protecting',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'OtnSignaledBandwidthFlexFramingEnum' : _MetaInfoEnum('OtnSignaledBandwidthFlexFramingEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'cbr':'cbr',
'framed-gfp-fixed':'framed_gfp_fixed',
'framed-gfp-resize':'framed_gfp_resize',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeBandwidthLimitEnum' : _MetaInfoEnum('MplsTeBandwidthLimitEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'unlimited':'unlimited',
'limited':'limited',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathSelectionSegmentRoutingAdjacencyProtectionEnum' : _MetaInfoEnum('MplsTePathSelectionSegmentRoutingAdjacencyProtectionEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'not-set':'not_set',
'adj-unprotected':'adj_unprotected',
'adj-protected':'adj_protected',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'LinkNextHopEnum' : _MetaInfoEnum('LinkNextHopEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'none':'none',
'ipv4-address':'ipv4_address',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsLcacFloodingIgpEnum' : _MetaInfoEnum('MplsLcacFloodingIgpEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'ospf':'ospf',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'BfdReversePathEnum' : _MetaInfoEnum('BfdReversePathEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'bfd-reverse-path-binding-label':'bfd_reverse_path_binding_label',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeOtnApsRestorationStyleEnum' : _MetaInfoEnum('MplsTeOtnApsRestorationStyleEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'keep-failed-lsp':'keep_failed_lsp',
'delete-failed-lsp':'delete_failed_lsp',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeBandwidthDsteEnum' : _MetaInfoEnum('MplsTeBandwidthDsteEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'standard-dste':'standard_dste',
'pre-standard-dste':'pre_standard_dste',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTePathDiversityConformanceEnum' : _MetaInfoEnum('MplsTePathDiversityConformanceEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'strict':'strict',
'best-effort':'best_effort',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeBackupBandwidthPoolEnum' : _MetaInfoEnum('MplsTeBackupBandwidthPoolEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'any-pool':'any_pool',
'global-pool':'global_pool',
'sub-pool':'sub_pool',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeOtnApsProtectionModeEnum' : _MetaInfoEnum('MplsTeOtnApsProtectionModeEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'revertive':'revertive',
'non-revertive':'non_revertive',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeSwitchingIndexEnum' : _MetaInfoEnum('MplsTeSwitchingIndexEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'link':'link',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTeConfigTunnelEnum' : _MetaInfoEnum('MplsTeConfigTunnelEnum', 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg',
{
'p2p':'p2p',
'p2mp':'p2mp',
}, 'Cisco-IOS-XR-mpls-te-cfg', _yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg']),
'MplsTe.DiffServTrafficEngineering.Classes.Class_' : {
'meta_info' : _MetaInfoClass('MplsTe.DiffServTrafficEngineering.Classes.Class_',
False,
[
_MetaInfoClassMember('class-number', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' DS-TE class number
''',
'class_number',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('class-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Class-type priority
''',
'class_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('class-type', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Class type number
''',
'class_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('unused', ATTRIBUTE, 'bool' , None, None,
[], [],
''' TRUE to skip classtype and class priority
provisioning FALSE to provision them
''',
'unused',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'class',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.DiffServTrafficEngineering.Classes' : {
'meta_info' : _MetaInfoClass('MplsTe.DiffServTrafficEngineering.Classes',
False,
[
_MetaInfoClassMember('class', REFERENCE_LIST, 'Class_' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.DiffServTrafficEngineering.Classes.Class_',
[], [],
''' DSTE class number
''',
'class_',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'classes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.DiffServTrafficEngineering' : {
'meta_info' : _MetaInfoClass('MplsTe.DiffServTrafficEngineering',
False,
[
_MetaInfoClassMember('bandwidth-constraint-model', REFERENCE_ENUM_CLASS, 'BandwidthConstraintEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'BandwidthConstraintEnum',
[], [],
''' Diff-Serv Traffic-Engineering Bandwidth
Constraint Model
''',
'bandwidth_constraint_model',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('classes', REFERENCE_CLASS, 'Classes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.DiffServTrafficEngineering.Classes',
[], [],
''' Configure Diff-Serv Traffic-Engineering Classes
''',
'classes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mode-ietf', REFERENCE_ENUM_CLASS, 'IetfModeEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'IetfModeEnum',
[], [],
''' Diff-Serv Traffic-Engineering IETF mode
''',
'mode_ietf',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'diff-serv-traffic-engineering',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup.PathComputation' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup.PathComputation',
False,
[
_MetaInfoClassMember('explicit-path-name', ATTRIBUTE, 'str' , None, None,
[], [],
''' Explicit Path Name
''',
'explicit_path_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-computation-method', REFERENCE_ENUM_CLASS, 'MplsTePathComputationMethodEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathComputationMethodEnum',
[], [],
''' Path computation method
''',
'path_computation_method',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-computation-server', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Path Computation Server Address
''',
'path_computation_server',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-computation',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup',
False,
[
_MetaInfoClassMember('path-setup-name', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' Path Name
''',
'path_setup_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Always set to true
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-computation', REFERENCE_CLASS, 'PathComputation' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup.PathComputation',
[], [],
''' Path computation method
''',
'path_computation',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('preference', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Path preference level
''',
'preference',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-setup',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups',
False,
[
_MetaInfoClassMember('path-setup', REFERENCE_LIST, 'PathSetup' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup',
[], [],
''' Tunnel path setup
''',
'path_setup',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-setups',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection.Invalidation' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection.Invalidation',
False,
[
_MetaInfoClassMember('path-invalidation-action', REFERENCE_ENUM_CLASS, 'PathInvalidationActionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'PathInvalidationActionEnum',
[], [],
''' Path Invalidation Action
''',
'path_invalidation_action',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-invalidation-timeout', ATTRIBUTE, 'int' , None, None,
[('0', '60000')], [],
''' Path Invalidation Timeout
''',
'path_invalidation_timeout',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'invalidation',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection',
False,
[
_MetaInfoClassMember('invalidation', REFERENCE_CLASS, 'Invalidation' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection.Invalidation',
[], [],
''' Path invalidation configuration for this
specific tunnel
''',
'invalidation',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-cost-limit', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Path selection cost limit configuration for this
specific tunnel
''',
'path_selection_cost_limit',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-hop-limit', ATTRIBUTE, 'int' , None, None,
[('1', '255')], [],
''' Path selection hop limit configuration for this
specific tunnel
''',
'path_selection_hop_limit',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tiebreaker', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionTiebreakerEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionTiebreakerEnum',
[], [],
''' CSPF tiebreaker to use in path calculation
''',
'tiebreaker',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.Underflow' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.Underflow',
False,
[
_MetaInfoClassMember('underflow-threshold-limit', ATTRIBUTE, 'int' , None, None,
[('1', '10')], [],
''' Number of consecutive collections exceeding
threshold
''',
'underflow_threshold_limit',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('underflow-threshold-percent', ATTRIBUTE, 'int' , None, None,
[('1', '100')], [],
''' Bandwidth change percent to trigger an
underflow
''',
'underflow_threshold_percent',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('underflow-threshold-value', ATTRIBUTE, 'int' , None, None,
[('10', '4294967295')], [],
''' Bandwidth change value to trigger an underflow
(kbps)
''',
'underflow_threshold_value',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'underflow',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.Overflow' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.Overflow',
False,
[
_MetaInfoClassMember('overflow-threshold-limit', ATTRIBUTE, 'int' , None, None,
[('1', '10')], [],
''' Number of consecutive collections exceeding
threshold
''',
'overflow_threshold_limit',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('overflow-threshold-percent', ATTRIBUTE, 'int' , None, None,
[('1', '100')], [],
''' Bandwidth change percent to trigger an
overflow
''',
'overflow_threshold_percent',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('overflow-threshold-value', ATTRIBUTE, 'int' , None, None,
[('10', '4294967295')], [],
''' Bandwidth change value to trigger an overflow
(kbps)
''',
'overflow_threshold_value',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'overflow',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.BandwidthLimits' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.BandwidthLimits',
False,
[
_MetaInfoClassMember('bandwidth-max-limit', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' Set maximum bandwidth auto-bw can apply on a
tunnel
''',
'bandwidth_max_limit',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth-min-limit', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' Set minimum bandwidth auto-bw can apply on a
tunnel
''',
'bandwidth_min_limit',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bandwidth-limits',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.AdjustmentThreshold' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.AdjustmentThreshold',
False,
[
_MetaInfoClassMember('adjustment-threshold-percent', ATTRIBUTE, 'int' , None, None,
[('1', '100')], [],
''' Bandwidth change percent to trigger adjustment
''',
'adjustment_threshold_percent',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('adjustment-threshold-value', ATTRIBUTE, 'int' , None, None,
[('10', '4294967295')], [],
''' Bandwidth change value to trigger adjustment
(kbps)
''',
'adjustment_threshold_value',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'adjustment-threshold',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth',
False,
[
_MetaInfoClassMember('adjustment-threshold', REFERENCE_CLASS, 'AdjustmentThreshold' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.AdjustmentThreshold',
[], [],
''' Set the bandwidth change threshold to trigger
adjustment
''',
'adjustment_threshold',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('application-frequency', ATTRIBUTE, 'int' , None, None,
[('5', '10080')], [],
''' Set the tunnel auto-bw application frequency in
minutes
''',
'application_frequency',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth-limits', REFERENCE_CLASS, 'BandwidthLimits' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.BandwidthLimits',
[], [],
''' Set min/max bandwidth auto-bw can apply on a
tunnel
''',
'bandwidth_limits',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('collection-only', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable bandwidth collection only, no auto-bw
adjustment
''',
'collection_only',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enabled', ATTRIBUTE, 'bool' , None, None,
[], [],
''' This object is only valid for tunnel interfaces
and it controls whether that interface has
auto-bw enabled on it or not.The object must be
set before any other auto-bw configuration is
supplied for the interface, and must be the
last auto-bw configuration object to be removed
.
''',
'enabled',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('overflow', REFERENCE_CLASS, 'Overflow' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.Overflow',
[], [],
''' Configuring the tunnel overflow detection
''',
'overflow',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('overflow-enable', ATTRIBUTE, 'bool' , None, None,
[], [],
''' Enable auto bandwidth overflow detection
''',
'overflow_enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('underflow', REFERENCE_CLASS, 'Underflow' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.Underflow',
[], [],
''' Configuring the tunnel underflow detection
''',
'underflow',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('underflow-enable', ATTRIBUTE, 'bool' , None, None,
[], [],
''' Enable auto bandwidth underflow detection
''',
'underflow_enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-bandwidth',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Priority' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Priority',
False,
[
_MetaInfoClassMember('hold-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Hold Priority
''',
'hold_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('setup-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Setup Priority
''',
'setup_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'priority',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Logging' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Logging',
False,
[
_MetaInfoClassMember('all', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all events for a tunnel
''',
'all',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth-change-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for bandwidth change
''',
'bandwidth_change_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bfd-state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable BFD session state change alarm
''',
'bfd_state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('insufficient-bw-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for insufficient bandwidth
''',
'insufficient_bw_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('lsp-switch-over-change-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for bandwidth change
''',
'lsp_switch_over_change_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pcalc-failure-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable logging for path-calculation failures
''',
'pcalc_failure_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('record-route-messsage', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel record-route messages
''',
'record_route_messsage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-attempts-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimization attempts messages
''',
'reoptimize_attempts_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimized-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimized messages
''',
'reoptimized_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reroute-messsage', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel rereoute messages
''',
'reroute_messsage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel state messages
''',
'state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Bandwidth' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Bandwidth',
False,
[
_MetaInfoClassMember('bandwidth', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' The value of the bandwidth reserved by this
tunnel in kbps
''',
'bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('class-or-pool-type', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Class type for the bandwidth allocation
''',
'class_or_pool_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('dste-type', REFERENCE_ENUM_CLASS, 'MplsTeBandwidthDsteEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeBandwidthDsteEnum',
[], [],
''' DSTE-standard flag
''',
'dste_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bandwidth',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.Metric' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.Metric',
False,
[
_MetaInfoClassMember('absolute-metric', ATTRIBUTE, 'int' , None, None,
[('1', '2147483647')], [],
''' The absolute metric value
''',
'absolute_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('constant-metric', ATTRIBUTE, 'int' , None, None,
[('1', '2147483647')], [],
''' The constant metric value
''',
'constant_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('metric-type', REFERENCE_ENUM_CLASS, 'MplsTeAutorouteMetricEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeAutorouteMetricEnum',
[], [],
''' Autoroute tunnel metric type
''',
'metric_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('relative-metric', ATTRIBUTE, 'int' , None, None,
[('-10', '10')], [],
''' The value of the adjustment
''',
'relative_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'metric',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce.Metric' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce.Metric',
False,
[
_MetaInfoClassMember('absolute-metric', ATTRIBUTE, 'int' , None, None,
[('1', '2147483647')], [],
''' The absolute metric value
''',
'absolute_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('constant-metric', ATTRIBUTE, 'int' , None, None,
[('1', '2147483647')], [],
''' The constant metric value
''',
'constant_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('metric-type', REFERENCE_ENUM_CLASS, 'MplsTeAutorouteMetricEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeAutorouteMetricEnum',
[], [],
''' Autoroute tunnel metric type
''',
'metric_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('relative-metric', ATTRIBUTE, 'int' , None, None,
[('-10', '10')], [],
''' The value of the adjustment
''',
'relative_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'metric',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable autoroute announce
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('include-ipv6', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Specify that the tunnel should be an IPv6
autoroute announce also
''',
'include_ipv6',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('metric', REFERENCE_CLASS, 'Metric' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce.Metric',
[], [],
''' Specify MPLS tunnel metric
''',
'metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'autoroute-announce',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr.Destination' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr.Destination',
False,
[
_MetaInfoClassMember('destination-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' IP address of destination
''',
'destination_address',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'destination',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr',
False,
[
_MetaInfoClassMember('destination', REFERENCE_LIST, 'Destination' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr.Destination',
[], [],
''' Destination address to add in RIB
''',
'destination',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'destination-xr',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute',
False,
[
_MetaInfoClassMember('autoroute-announce', REFERENCE_CLASS, 'AutorouteAnnounce' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce',
[], [],
''' Announce tunnel to IGP
''',
'autoroute_announce',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('destination', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Deprecated: do NOT use
''',
'destination',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('destination-xr', REFERENCE_CLASS, 'DestinationXr' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr',
[], [],
''' Tunnel Autoroute Destination(s)
''',
'destination_xr',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('metric', REFERENCE_CLASS, 'Metric' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.Metric',
[], [],
''' Specify MPLS tunnel metric
''',
'metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'autoroute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
False,
[
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity10', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the tenth affinity
''',
'affinity10',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes',
False,
[
_MetaInfoClassMember('new-style-affinity-affinity-type', REFERENCE_LIST, 'NewStyleAffinityAffinityType' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9_affinity10',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-types',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.FastReroute' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.FastReroute',
False,
[
_MetaInfoClassMember('bandwidth-protection', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Bandwidth Protection
''',
'bandwidth_protection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('node-protection', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Node Protection
''',
'node_protection',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'fast-reroute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes',
False,
[
_MetaInfoClassMember('auto-bandwidth', REFERENCE_CLASS, 'AutoBandwidth' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth',
[], [],
''' Tunnel Interface Auto-bandwidth configuration
data
''',
'auto_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('autoroute', REFERENCE_CLASS, 'Autoroute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute',
[], [],
''' Parameters for IGP routing over tunnel
''',
'autoroute',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth', REFERENCE_CLASS, 'Bandwidth' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Bandwidth',
[], [],
''' Tunnel bandwidth requirement
''',
'bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('destination', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Set the destination of the tunnel
''',
'destination',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('fast-reroute', REFERENCE_CLASS, 'FastReroute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.FastReroute',
[], [],
''' Specify MPLS tunnel can be fast-rerouted
''',
'fast_reroute',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('forward-class', ATTRIBUTE, 'int' , None, None,
[('1', '7')], [],
''' Forward class value
''',
'forward_class',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('load-share', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Tunnel loadsharing metric
''',
'load_share',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('logging', REFERENCE_CLASS, 'Logging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Logging',
[], [],
''' Log tunnel LSP messages
''',
'logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-types', REFERENCE_CLASS, 'NewStyleAffinityAffinityTypes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes',
[], [],
''' Tunnel new style affinity attributes table
''',
'new_style_affinity_affinity_types',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-metric', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionMetricEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionMetricEnum',
[], [],
''' Path selection metric to use in path calculation
''',
'path_selection_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-setups', REFERENCE_CLASS, 'PathSetups' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups',
[], [],
''' Tunnel path setup table
''',
'path_setups',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('priority', REFERENCE_CLASS, 'Priority' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Priority',
[], [],
''' Tunnel Setup and Hold Priorities
''',
'priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('record-route', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Record the route used by the tunnel
''',
'record_route',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('shutdown', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' shutdown the tunnel
''',
'shutdown',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('soft-preemption', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable the soft-preemption feature on the tunnel
''',
'soft_preemption',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-path-selection', REFERENCE_CLASS, 'TunnelPathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection',
[], [],
''' Configure path selection properties
''',
'tunnel_path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelId' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelId',
False,
[
_MetaInfoClassMember('tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Tunnel ID
''',
'tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-id-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelIdEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelIdEnum',
[], [],
''' Tunnel ID Type
''',
'tunnel_id_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-id',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels.Tunnel' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels.Tunnel',
False,
[
_MetaInfoClassMember('tunnel-name', ATTRIBUTE, 'str' , None, None,
[(0, 59)], [],
''' Tunnel name
''',
'tunnel_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('tunnel-type', REFERENCE_ENUM_CLASS, 'MplsTeConfigTunnelEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeConfigTunnelEnum',
[], [],
''' Tunnel Type
''',
'tunnel_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Always set to true
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-attributes', REFERENCE_CLASS, 'TunnelAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes',
[], [],
''' MPLS tunnel attributes
''',
'tunnel_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-id', REFERENCE_CLASS, 'TunnelId' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelId',
[], [],
''' Set the tunnel ID
''',
'tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels.Tunnels' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels.Tunnels',
False,
[
_MetaInfoClassMember('tunnel', REFERENCE_LIST, 'Tunnel' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels.Tunnel',
[], [],
''' Configure a MPLS TE tunnel
''',
'tunnel',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnels',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.NamedTunnels' : {
'meta_info' : _MetaInfoClass('MplsTe.NamedTunnels',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable Named Tunnels
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnels', REFERENCE_CLASS, 'Tunnels' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels.Tunnels',
[], [],
''' Configure MPLS TE tunnel
''',
'tunnels',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'named-tunnels',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Timers.PathOptionTimers.Holddown' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Timers.PathOptionTimers.Holddown',
False,
[
_MetaInfoClassMember('maximum', ATTRIBUTE, 'int' , None, None,
[('5', '3600')], [],
''' Maximum holddown (seconds)
''',
'maximum',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('minimum', ATTRIBUTE, 'int' , None, None,
[('5', '3600')], [],
''' Minimum holddown (seconds)
''',
'minimum',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'holddown',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Timers.PathOptionTimers' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Timers.PathOptionTimers',
False,
[
_MetaInfoClassMember('holddown', REFERENCE_CLASS, 'Holddown' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Timers.PathOptionTimers.Holddown',
[], [],
''' GMPLS-UNI path-option holddown timer
configuration
''',
'holddown',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-option-timers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Timers' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Timers',
False,
[
_MetaInfoClassMember('path-option-timers', REFERENCE_CLASS, 'PathOptionTimers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Timers.PathOptionTimers',
[], [],
''' GMPLS-UNI path-option timer configuration
''',
'path_option_timers',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'timers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller.Announce' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller.Announce',
False,
[
_MetaInfoClassMember('srl-gs', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable announcement of discovered SRLGs
''',
'srl_gs',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'announce',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller.ControllerLogging' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller.ControllerLogging',
False,
[
_MetaInfoClassMember('discovered-srlg-change-logging', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable logging of changes to of discovered
SRLGs
''',
'discovered_srlg_change_logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'controller-logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions.PathOption' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions.PathOption',
False,
[
_MetaInfoClassMember('preference-level', ATTRIBUTE, 'int' , None, None,
[('1', '1000')], [],
''' Preference level for this path option
''',
'preference_level',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('dwdm-channel', ATTRIBUTE, 'int' , None, None,
[('1', '89')], [],
''' DWDM channel number
''',
'dwdm_channel',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('lockdown', REFERENCE_ENUM_CLASS, 'MplsTePathOptionPropertyEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathOptionPropertyEnum',
[], [],
''' Path option properties: must be Lockdown
''',
'lockdown',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-id', ATTRIBUTE, 'int' , None, None,
[('1', '65535')], [],
''' The ID of the explicit path associated
with this option
''',
'path_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-name', ATTRIBUTE, 'str' , None, None,
[], [],
''' The name of the explicit path associated
with this option
''',
'path_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-type', REFERENCE_ENUM_CLASS, 'MplsTePathOptionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathOptionEnum',
[], [],
''' The type of the path option
''',
'path_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('signaled-label', REFERENCE_ENUM_CLASS, 'MplsTeSignaledLabelEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeSignaledLabelEnum',
[], [],
''' Signaled label type
''',
'signaled_label',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('verbatim', REFERENCE_ENUM_CLASS, 'MplsTePathOptionPropertyEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathOptionPropertyEnum',
[], [],
''' Path option properties: must be verbatim
if set
''',
'verbatim',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('xro-attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' The name of the XRO attribute set to be
used for this path-option
''',
'xro_attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('xro-type', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' The route-exclusion type
''',
'xro_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-option',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions',
False,
[
_MetaInfoClassMember('path-option', REFERENCE_LIST, 'PathOption' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions.PathOption',
[], [],
''' A Path-option
''',
'path_option',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-options',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Recording' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Recording',
False,
[
_MetaInfoClassMember('srlg', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable SRLG-recording during signaling
''',
'srlg',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'recording',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Logging' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Logging',
False,
[
_MetaInfoClassMember('state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel state messages
''',
'state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Priority' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Priority',
False,
[
_MetaInfoClassMember('hold-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Hold Priority
''',
'hold_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('setup-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Setup Priority
''',
'setup_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'priority',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead',
False,
[
_MetaInfoClassMember('destination', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Set the destination of the tunnel
''',
'destination',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Set link as a GMPLS tunnel head
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('logging', REFERENCE_CLASS, 'Logging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Logging',
[], [],
''' Tunnel event logging
''',
'logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-options', REFERENCE_CLASS, 'PathOptions' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions',
[], [],
''' Path-option configuration
''',
'path_options',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('priority', REFERENCE_CLASS, 'Priority' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Priority',
[], [],
''' Tunnel Setup and Hold Priorities
''',
'priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('record-route', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Record the route used by the tunnel
''',
'record_route',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('recording', REFERENCE_CLASS, 'Recording' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Recording',
[], [],
''' Tunnel property recording
''',
'recording',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('signalled-name', ATTRIBUTE, 'str' , None, None,
[(0, 254)], [],
''' The name of the tunnel to be included in
signalling messages
''',
'signalled_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' GMPLS-UNI head tunnel-id
''',
'tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'gmpls-unitunnel-head',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers.Controller' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers.Controller',
False,
[
_MetaInfoClassMember('controller-name', ATTRIBUTE, 'str' , None, None,
[], ['(([a-zA-Z0-9_]*\\d+/){3,4}\\d+)|(([a-zA-Z0-9_]*\\d+/){3,4}\\d+\\.\\d+)|(([a-zA-Z0-9_]*\\d+/){2}([a-zA-Z0-9_]*\\d+))|(([a-zA-Z0-9_]*\\d+/){2}([a-zA-Z0-9_]+))|([a-zA-Z0-9_-]*\\d+)|([a-zA-Z0-9_-]*\\d+\\.\\d+)|(mpls)|(dwdm)'],
''' Controller name
''',
'controller_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('announce', REFERENCE_CLASS, 'Announce' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller.Announce',
[], [],
''' Announce discovered tunnel properties to
system
''',
'announce',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('controller-logging', REFERENCE_CLASS, 'ControllerLogging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller.ControllerLogging',
[], [],
''' Controller logging
''',
'controller_logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable GMPLS-UNI on the link
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('gmpls-unitunnel-head', REFERENCE_CLASS, 'GmplsUnitunnelHead' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead',
[], [],
''' GMPLS-UNI tunnel-head properties
''',
'gmpls_unitunnel_head',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'controller',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni.Controllers' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni.Controllers',
False,
[
_MetaInfoClassMember('controller', REFERENCE_LIST, 'Controller' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers.Controller',
[], [],
''' Configure a GMPLS controller
''',
'controller',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'controllers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsUni' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsUni',
False,
[
_MetaInfoClassMember('controllers', REFERENCE_CLASS, 'Controllers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Controllers',
[], [],
''' GMPLS-UNI controllers
''',
'controllers',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('timers', REFERENCE_CLASS, 'Timers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni.Timers',
[], [],
''' GMPLS-UNI timer configuration
''',
'timers',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'gmpls-uni',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Pcc.TunnelRange' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Pcc.TunnelRange',
False,
[
_MetaInfoClassMember('max-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Maximum tunnel ID for auto-tunnels
''',
'max_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('min-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Minimum tunnel ID for auto-tunnels
''',
'min_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-range',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Pcc' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Pcc',
False,
[
_MetaInfoClassMember('tunnel-range', REFERENCE_CLASS, 'TunnelRange' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Pcc.TunnelRange',
[], [],
''' Configure tunnel ID range for auto-tunnel
features
''',
'tunnel_range',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'pcc',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel.TunnelRange' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel.TunnelRange',
False,
[
_MetaInfoClassMember('max-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Maximum tunnel ID for auto-tunnels
''',
'max_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('min-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Minimum tunnel ID for auto-tunnels
''',
'min_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-range',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel',
False,
[
_MetaInfoClassMember('tunnel-range', REFERENCE_CLASS, 'TunnelRange' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel.TunnelRange',
[], [],
''' Configure tunnel ID range for auto-tunnel
features
''',
'tunnel_range',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'p2p-auto-tunnel',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers.Removal' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers.Removal',
False,
[
_MetaInfoClassMember('unused', ATTRIBUTE, 'int' , None, None,
[('0', '10080')], [],
''' Auto-tunnel backup unused timeout in minutes
(0=never timeout)
''',
'unused',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'removal',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers',
False,
[
_MetaInfoClassMember('removal', REFERENCE_CLASS, 'Removal' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers.Removal',
[], [],
''' Configure auto-tunnel backup removal timers
value
''',
'removal',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'timers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Backup.TunnelRange' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Backup.TunnelRange',
False,
[
_MetaInfoClassMember('max-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Maximum tunnel ID for auto-tunnels
''',
'max_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('min-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Minimum tunnel ID for auto-tunnels
''',
'min_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-range',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Backup' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Backup',
False,
[
_MetaInfoClassMember('affinity-ignore', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Ignore affinity during CSPF for auto backup
tunnels
''',
'affinity_ignore',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('timers', REFERENCE_CLASS, 'Timers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers',
[], [],
''' Configure auto-tunnel backup timers value
''',
'timers',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-range', REFERENCE_CLASS, 'TunnelRange' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Backup.TunnelRange',
[], [],
''' Configure tunnel ID range for auto-tunnel
features
''',
'tunnel_range',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'backup',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups.MeshGroup' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups.MeshGroup',
False,
[
_MetaInfoClassMember('mesh-group-id', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' Mesh group ID
''',
'mesh_group_id',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('attribute-set', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' The name of auto-mesh attribute set to be
applied to this group
''',
'attribute_set',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('create', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Auto-mesh group enable object that controls
whether this group is configured or not
.This object must be set before other
configuration supplied for this group
''',
'create',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('destination-list', ATTRIBUTE, 'str' , None, None,
[(0, 32)], [],
''' The name of prefix-list to be applied to
this destination-list
''',
'destination_list',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('disable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disables mesh group
''',
'disable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('one-hop', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Automatically create tunnel to all
next-hops
''',
'one_hop',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'mesh-group',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups',
False,
[
_MetaInfoClassMember('mesh-group', REFERENCE_LIST, 'MeshGroup' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups.MeshGroup',
[], [],
''' Auto-mesh group identifier
''',
'mesh_group',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'mesh-groups',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers.Removal' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers.Removal',
False,
[
_MetaInfoClassMember('unused', ATTRIBUTE, 'int' , None, None,
[('0', '10080')], [],
''' Auto-tunnel backup unused timeout in minutes
(0=never timeout)
''',
'unused',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'removal',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers',
False,
[
_MetaInfoClassMember('removal', REFERENCE_CLASS, 'Removal' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers.Removal',
[], [],
''' Configure auto-tunnel backup removal timers
value
''',
'removal',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'timers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Mesh.TunnelRange' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Mesh.TunnelRange',
False,
[
_MetaInfoClassMember('max-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Maximum tunnel ID for auto-tunnels
''',
'max_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('min-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Minimum tunnel ID for auto-tunnels
''',
'min_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-range',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.Mesh' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.Mesh',
False,
[
_MetaInfoClassMember('mesh-groups', REFERENCE_CLASS, 'MeshGroups' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups',
[], [],
''' Configure auto-tunnel mesh group
''',
'mesh_groups',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('timers', REFERENCE_CLASS, 'Timers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers',
[], [],
''' Configure auto-tunnel backup timers value
''',
'timers',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-range', REFERENCE_CLASS, 'TunnelRange' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Mesh.TunnelRange',
[], [],
''' Configure tunnel ID range for auto-tunnel
features
''',
'tunnel_range',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'mesh',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel.TunnelRange' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel.TunnelRange',
False,
[
_MetaInfoClassMember('max-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Maximum tunnel ID for auto-tunnels
''',
'max_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('min-tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Minimum tunnel ID for auto-tunnels
''',
'min_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-range',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel',
False,
[
_MetaInfoClassMember('tunnel-range', REFERENCE_CLASS, 'TunnelRange' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel.TunnelRange',
[], [],
''' Configure tunnel ID range for auto-tunnel
features
''',
'tunnel_range',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'p2mp-auto-tunnel',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AutoTunnel' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AutoTunnel',
False,
[
_MetaInfoClassMember('backup', REFERENCE_CLASS, 'Backup' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Backup',
[], [],
''' Configure auto-tunnel backup feature
''',
'backup',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mesh', REFERENCE_CLASS, 'Mesh' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Mesh',
[], [],
''' Configure auto-tunnel mesh feature
''',
'mesh',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('p2mp-auto-tunnel', REFERENCE_CLASS, 'P2MpAutoTunnel' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel',
[], [],
''' Configure P2MP auto-tunnel feature
''',
'p2mp_auto_tunnel',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('p2p-auto-tunnel', REFERENCE_CLASS, 'P2PAutoTunnel' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel',
[], [],
''' Configure P2P auto-tunnel feature
''',
'p2p_auto_tunnel',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pcc', REFERENCE_CLASS, 'Pcc' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel.Pcc',
[], [],
''' Configure auto-tunnel PCC (Path Computation
Client) feature
''',
'pcc',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-tunnel',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.HardwareOutOfResource.OorRedState' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.HardwareOutOfResource.OorRedState',
False,
[
_MetaInfoClassMember('oor-accept-lsp-min-bandwidth', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Only accept LSPs with at least the specified
bandwidth (in kbps).
''',
'oor_accept_lsp_min_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-accept-reopt-lsp', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Allow the setup of reoptimized LSPs over the
link in this OOR State
''',
'oor_accept_reopt_lsp',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-available-bandwidth-percentage', ATTRIBUTE, 'int' , None, None,
[('0', '100')], [],
''' Flood a specific percentage of the available
bandwidth
''',
'oor_available_bandwidth_percentage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-metric-te-penalty', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Penalty applied to the TE metric of a link in
OOR state
''',
'oor_metric_te_penalty',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-node-protection-disable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disable FRR node-protection when the link is in
this OOR State
''',
'oor_node_protection_disable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'oor-red-state',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.HardwareOutOfResource.OorYellowState' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.HardwareOutOfResource.OorYellowState',
False,
[
_MetaInfoClassMember('oor-accept-lsp-min-bandwidth', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Only accept LSPs with at least the specified
bandwidth (in kbps).
''',
'oor_accept_lsp_min_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-accept-reopt-lsp', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Allow the setup of reoptimized LSPs over the
link in this OOR State
''',
'oor_accept_reopt_lsp',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-available-bandwidth-percentage', ATTRIBUTE, 'int' , None, None,
[('0', '100')], [],
''' Flood a specific percentage of the available
bandwidth
''',
'oor_available_bandwidth_percentage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-metric-te-penalty', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Penalty applied to the TE metric of a link in
OOR state
''',
'oor_metric_te_penalty',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-node-protection-disable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disable FRR node-protection when the link is in
this OOR State
''',
'oor_node_protection_disable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'oor-yellow-state',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.HardwareOutOfResource.OorGreenState' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.HardwareOutOfResource.OorGreenState',
False,
[
_MetaInfoClassMember('oor-accept-lsp-min-bandwidth', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Only accept LSPs with at least the specified
bandwidth (in kbps).
''',
'oor_accept_lsp_min_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-accept-reopt-lsp', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Allow the setup of reoptimized LSPs over the
link in this OOR State
''',
'oor_accept_reopt_lsp',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-available-bandwidth-percentage', ATTRIBUTE, 'int' , None, None,
[('0', '100')], [],
''' Flood a specific percentage of the available
bandwidth
''',
'oor_available_bandwidth_percentage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-metric-te-penalty', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Penalty applied to the TE metric of a link in
OOR state
''',
'oor_metric_te_penalty',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-node-protection-disable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disable FRR node-protection when the link is in
this OOR State
''',
'oor_node_protection_disable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-recovery-duration', ATTRIBUTE, 'int' , None, None,
[('0', '10080')], [],
''' Period of time (minutes) during which the
action in Green state are applied. After this
period, the processing in TE goes back to
normal state
''',
'oor_recovery_duration',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'oor-green-state',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.HardwareOutOfResource' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.HardwareOutOfResource',
False,
[
_MetaInfoClassMember('oor-green-state', REFERENCE_CLASS, 'OorGreenState' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.HardwareOutOfResource.OorGreenState',
[], [],
''' Configuration for HW OOR Green State
''',
'oor_green_state',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-red-state', REFERENCE_CLASS, 'OorRedState' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.HardwareOutOfResource.OorRedState',
[], [],
''' Configuration for HW OOR Red State
''',
'oor_red_state',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('oor-yellow-state', REFERENCE_CLASS, 'OorYellowState' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.HardwareOutOfResource.OorYellowState',
[], [],
''' Configuration for HW OOR Yellow State
''',
'oor_yellow_state',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'hardware-out-of-resource',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.SecondaryRouterIds.SecondaryRouterId' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.SecondaryRouterIds.SecondaryRouterId',
False,
[
_MetaInfoClassMember('secondary-router-id-value', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Secondary TE Router ID
''',
'secondary_router_id_value',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'secondary-router-id',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.SecondaryRouterIds' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.SecondaryRouterIds',
False,
[
_MetaInfoClassMember('secondary-router-id', REFERENCE_LIST, 'SecondaryRouterId' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.SecondaryRouterIds.SecondaryRouterId',
[], [],
''' Secondary Router ID
''',
'secondary_router_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'secondary-router-ids',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers.StaticSrlgMember' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers.StaticSrlgMember',
False,
[
_MetaInfoClassMember('from-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' From address
''',
'from_address',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('to-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' To Addres
''',
'to_address',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'static-srlg-member',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers',
False,
[
_MetaInfoClassMember('static-srlg-member', REFERENCE_LIST, 'StaticSrlgMember' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers.StaticSrlgMember',
[], [],
''' A mapping of the local static SRLG member
''',
'static_srlg_member',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'static-srlg-members',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg.Names.Name' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg.Names.Name',
False,
[
_MetaInfoClassMember('srlg-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' SRLG membership name
''',
'srlg_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('admin-weight', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Administrative weight for the SRLG value
''',
'admin_weight',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('static-srlg-members', REFERENCE_CLASS, 'StaticSrlgMembers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers',
[], [],
''' Configure static SRLG members list
''',
'static_srlg_members',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'name',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg.Names' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg.Names',
False,
[
_MetaInfoClassMember('name', REFERENCE_LIST, 'Name' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg.Names.Name',
[], [],
''' SRLG name and its MPLS-TE properties
''',
'name',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'names',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps.Ipv4AddressMap' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps.Ipv4AddressMap',
False,
[
_MetaInfoClassMember('outgoing-ipv4-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Outgoing v4 address
''',
'outgoing_ipv4_address',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('remote-ipv4-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Remote v4 address
''',
'remote_ipv4_address',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'ipv4-address-map',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps',
False,
[
_MetaInfoClassMember('ipv4-address-map', REFERENCE_LIST, 'Ipv4AddressMap' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps.Ipv4AddressMap',
[], [],
''' A mapping of the remote and local addresses
of a link to an SRLG value
''',
'ipv4_address_map',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'ipv4-address-maps',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg.Values.Value' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg.Values.Value',
False,
[
_MetaInfoClassMember('srlg-number', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' SRLG membership number
''',
'srlg_number',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('admin-weight', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Administrative weight for the SRLG value
''',
'admin_weight',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('ipv4-address-maps', REFERENCE_CLASS, 'Ipv4AddressMaps' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps',
[], [],
''' Configure outgoing and remote link addresses
for a given SRLG value
''',
'ipv4_address_maps',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'value',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg.Values' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg.Values',
False,
[
_MetaInfoClassMember('value', REFERENCE_LIST, 'Value' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg.Values.Value',
[], [],
''' SRLG value and its MPLS-TE properties
''',
'value',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'values',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Srlg' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Srlg',
False,
[
_MetaInfoClassMember('default-admin-weight', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Default Admin weight any SRLG value that does
not have one
''',
'default_admin_weight',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enter SRLG property configuration
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('names', REFERENCE_CLASS, 'Names' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg.Names',
[], [],
''' Configure SRLG identified by names
''',
'names',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('values', REFERENCE_CLASS, 'Values' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg.Values',
[], [],
''' Configure SRLG values and MPLS-TE properties
''',
'values',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'srlg',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Queues.Queue' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Queues.Queue',
False,
[
_MetaInfoClassMember('role', REFERENCE_ENUM_CLASS, 'RoutePriorityRoleEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'RoutePriorityRoleEnum',
[], [],
''' Route Priority Tunnel Role
''',
'role',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('value', ATTRIBUTE, 'int' , None, None,
[('0', '12')], [],
''' Route priority queue value
''',
'value',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'queue',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Queues' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Queues',
False,
[
_MetaInfoClassMember('queue', REFERENCE_LIST, 'Queue' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Queues.Queue',
[], [],
''' Configure route priority queue value
''',
'queue',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'queues',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.Mib' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.Mib',
False,
[
_MetaInfoClassMember('midpoint-lsp-stats-collection-disable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disables mib midpoint LSP traffic stats
collection
''',
'midpoint_lsp_stats_collection_disable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'mib',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.BfdReversePath' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.BfdReversePath',
False,
[
_MetaInfoClassMember('bfd-reverse-path-type', REFERENCE_ENUM_CLASS, 'BfdReversePathEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'BfdReversePathEnum',
[], [],
''' BFD reverse path type
''',
'bfd_reverse_path_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('binding-label', ATTRIBUTE, 'int' , None, None,
[('0', '1048575')], [],
''' BFD reverse path binding label
''',
'binding_label',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bfd-reverse-path',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection.Invalidation' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection.Invalidation',
False,
[
_MetaInfoClassMember('path-invalidation-action', REFERENCE_ENUM_CLASS, 'PathInvalidationActionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'PathInvalidationActionEnum',
[], [],
''' Path Invalidation Action
''',
'path_invalidation_action',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-invalidation-timeout', ATTRIBUTE, 'int' , None, None,
[('0', '60000')], [],
''' Path Invalidation Timeout
''',
'path_invalidation_timeout',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'invalidation',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enter path selection configuration
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('invalidation', REFERENCE_CLASS, 'Invalidation' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection.Invalidation',
[], [],
''' Path invalidation configuration for this
specific tunnel
''',
'invalidation',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-cost-limit', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Path selection cost limit configuration for this
specific tunnel
''',
'path_selection_cost_limit',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-exclude-list', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Path selection exclude list name
configuration
''',
'path_selection_exclude_list',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'att-path-option-path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce.Bidirectional' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce.Bidirectional',
False,
[
_MetaInfoClassMember('bd-group-id', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Bidirectional Group ID
''',
'bd_group_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bd-source-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Bidirectional Source IP Address
''',
'bd_source_address',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bidirectional',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce.DisjointPath' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce.DisjointPath',
False,
[
_MetaInfoClassMember('dp-group-id', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Disjoint Path Group ID
''',
'dp_group_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('dp-source-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Disjoint Path Source IP Address
''',
'dp_source_address',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('dp-type', ATTRIBUTE, 'int' , None, None,
[('1', '3')], [],
''' Disjoint Path Type
''',
'dp_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'disjoint-path',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce',
False,
[
_MetaInfoClassMember('bidirectional', REFERENCE_CLASS, 'Bidirectional' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce.Bidirectional',
[], [],
''' Bidirectional parameters
''',
'bidirectional',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('disjoint-path', REFERENCE_CLASS, 'DisjointPath' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce.DisjointPath',
[], [],
''' Disjoint path parameters
''',
'disjoint_path',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Always set to true
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'pce',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AffinityMask' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AffinityMask',
False,
[
_MetaInfoClassMember('affinity', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity flags
''',
'affinity',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mask', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity mask
''',
'mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'affinity-mask',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Bandwidth' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Bandwidth',
False,
[
_MetaInfoClassMember('bandwidth', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' The value of the bandwidth reserved by this
tunnel in kbps
''',
'bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('class-or-pool-type', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Class type for the bandwidth allocation
''',
'class_or_pool_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('dste-type', REFERENCE_ENUM_CLASS, 'MplsTeBandwidthDsteEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeBandwidthDsteEnum',
[], [],
''' DSTE-standard flag
''',
'dste_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bandwidth',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
False,
[
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity10', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the tenth affinity
''',
'affinity10',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes',
False,
[
_MetaInfoClassMember('new-style-affinity-affinity-type', REFERENCE_LIST, 'NewStyleAffinityAffinityType' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9_affinity10',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-types',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute',
False,
[
_MetaInfoClassMember('attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Attribute Set Name
''',
'attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-mask', REFERENCE_CLASS, 'AffinityMask' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AffinityMask',
[], [],
''' Set the affinity flags and mask
''',
'affinity_mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('att-path-option-path-selection', REFERENCE_CLASS, 'AttPathOptionPathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection',
[], [],
''' Configure path selection properties
''',
'att_path_option_path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth', REFERENCE_CLASS, 'Bandwidth' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Bandwidth',
[], [],
''' Tunnel bandwidth requirement
''',
'bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bfd-reverse-path', REFERENCE_CLASS, 'BfdReversePath' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.BfdReversePath',
[], [],
''' Configure BFD reverse path
''',
'bfd_reverse_path',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Attribute-set enable object that controls
whether this attribute-set is configured or not
.This object must be set before other
configuration supplied for this attribute-set
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-types', REFERENCE_CLASS, 'NewStyleAffinityAffinityTypes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes',
[], [],
''' Tunnel new style affinity attributes table
''',
'new_style_affinity_affinity_types',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pce', REFERENCE_CLASS, 'Pce' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce',
[], [],
''' Configure pce properties
''',
'pce',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-option-attribute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes',
False,
[
_MetaInfoClassMember('path-option-attribute', REFERENCE_LIST, 'PathOptionAttribute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute',
[], [],
''' Path Option Attribute
''',
'path_option_attribute',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-option-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Priority' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Priority',
False,
[
_MetaInfoClassMember('hold-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Hold Priority
''',
'hold_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('setup-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Setup Priority
''',
'setup_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'priority',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.AffinityMask' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.AffinityMask',
False,
[
_MetaInfoClassMember('affinity', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity flags
''',
'affinity',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mask', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity mask
''',
'mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'affinity-mask',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Bandwidth' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Bandwidth',
False,
[
_MetaInfoClassMember('bandwidth', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' The value of the bandwidth reserved by this
tunnel in kbps
''',
'bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('class-or-pool-type', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Class type for the bandwidth allocation
''',
'class_or_pool_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('dste-type', REFERENCE_ENUM_CLASS, 'MplsTeBandwidthDsteEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeBandwidthDsteEnum',
[], [],
''' DSTE-standard flag
''',
'dste_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bandwidth',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.PathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.PathSelection',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable path selection
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
False,
[
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity10', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the tenth affinity
''',
'affinity10',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes',
False,
[
_MetaInfoClassMember('new-style-affinity-affinity-type', REFERENCE_LIST, 'NewStyleAffinityAffinityType' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9_affinity10',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-types',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.FastReroute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.FastReroute',
False,
[
_MetaInfoClassMember('bandwidth-protection', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Bandwidth Protection
''',
'bandwidth_protection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('node-protection', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Node Protection
''',
'node_protection',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'fast-reroute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Logging' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Logging',
False,
[
_MetaInfoClassMember('all', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all events for a tunnel
''',
'all',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth-change-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel bandwidth change messages
''',
'bandwidth_change_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('insufficient-bw-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for insufficient bandwidth
''',
'insufficient_bw_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pcalc-failure-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable logging for path-calculation failures
''',
'pcalc_failure_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-attempts-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimization attempts messages
''',
'reoptimize_attempts_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimized-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimized messages
''',
'reoptimized_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reroute-messsage', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel rereoute messages
''',
'reroute_messsage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel state messages
''',
'state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('sub-lsp-state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all tunnel sub-LSP state messages
''',
'sub_lsp_state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute',
False,
[
_MetaInfoClassMember('attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Attribute Set Name
''',
'attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-mask', REFERENCE_CLASS, 'AffinityMask' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.AffinityMask',
[], [],
''' Set the affinity flags and mask
''',
'affinity_mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth', REFERENCE_CLASS, 'Bandwidth' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Bandwidth',
[], [],
''' Tunnel bandwidth requirement
''',
'bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Attribute-set enable object that controls
whether this attribute-set is configured or not
.This object must be set before other
configuration supplied for this attribute-set
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('fast-reroute', REFERENCE_CLASS, 'FastReroute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.FastReroute',
[], [],
''' Specify MPLS tunnel can be fast-rerouted
''',
'fast_reroute',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('interface-bandwidth', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' The bandwidth of the interface in kbps
''',
'interface_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('logging', REFERENCE_CLASS, 'Logging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Logging',
[], [],
''' Log tunnel LSP messages
''',
'logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-types', REFERENCE_CLASS, 'NewStyleAffinityAffinityTypes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes',
[], [],
''' Tunnel new style affinity attributes table
''',
'new_style_affinity_affinity_types',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection', REFERENCE_CLASS, 'PathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.PathSelection',
[], [],
''' Configure path selection properties
''',
'path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('priority', REFERENCE_CLASS, 'Priority' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Priority',
[], [],
''' Tunnel Setup and Hold Priorities
''',
'priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('record-route', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Record the route used by the tunnel
''',
'record_route',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'p2mpte-attribute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes',
False,
[
_MetaInfoClassMember('p2mpte-attribute', REFERENCE_LIST, 'P2MpteAttribute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute',
[], [],
''' P2MP-TE Tunnel Attribute
''',
'p2mpte_attribute',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'p2mpte-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes.Index' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes.Index',
False,
[
_MetaInfoClassMember('index-number', ATTRIBUTE, 'int' , None, None,
[('1', '10')], [],
''' Index number
''',
'index_number',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('mpls-label', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' MPLS Label
''',
'mpls_label',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('prepend-type', REFERENCE_ENUM_CLASS, 'SrPrependEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'SrPrependEnum',
[], [],
''' Prepend type
''',
'prepend_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'index',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes',
False,
[
_MetaInfoClassMember('index', REFERENCE_LIST, 'Index' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes.Index',
[], [],
''' Prepend index information
''',
'index',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'indexes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enter path selection segment routing
prepend submode
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('indexes', REFERENCE_CLASS, 'Indexes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes',
[], [],
''' Segment routing prepend index table
''',
'indexes',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'segment-routing-prepend',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.Invalidation' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.Invalidation',
False,
[
_MetaInfoClassMember('invalidation-timer', ATTRIBUTE, 'int' , None, None,
[('0', '60000')], [],
''' Path selection invalidation timer value
(milliseconds)
''',
'invalidation_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('invalidation-timer-expire-type', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionInvalidationTimerExpireEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionInvalidationTimerExpireEnum',
[], [],
''' Path selection invalidation timer expire
type
''',
'invalidation_timer_expire_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'invalidation',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enter path selection configuration
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('invalidation', REFERENCE_CLASS, 'Invalidation' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.Invalidation',
[], [],
''' Path selection invalidation configuration
''',
'invalidation',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-metric', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionMetricEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionMetricEnum',
[], [],
''' Path selection metric to use in path
calculation
''',
'path_selection_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-segment-routing-adjacency-protection', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionSegmentRoutingAdjacencyProtectionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionSegmentRoutingAdjacencyProtectionEnum',
[], [],
''' Segment routing adjacency protection type
to use in path calculation
''',
'path_selection_segment_routing_adjacency_protection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('segment-routing-prepend', REFERENCE_CLASS, 'SegmentRoutingPrepend' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend',
[], [],
''' Path selection segment routing prepend
configuration
''',
'segment_routing_prepend',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce.Bidirectional' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce.Bidirectional',
False,
[
_MetaInfoClassMember('bd-group-id', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Bidirectional Group ID
''',
'bd_group_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bd-source-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Bidirectional Source IP Address
''',
'bd_source_address',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bidirectional',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce.DisjointPath' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce.DisjointPath',
False,
[
_MetaInfoClassMember('dp-group-id', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Disjoint Path Group ID
''',
'dp_group_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('dp-source-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Disjoint Path Source IP Address
''',
'dp_source_address',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('dp-type', ATTRIBUTE, 'int' , None, None,
[('1', '3')], [],
''' Disjoint Path Type
''',
'dp_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'disjoint-path',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce',
False,
[
_MetaInfoClassMember('bidirectional', REFERENCE_CLASS, 'Bidirectional' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce.Bidirectional',
[], [],
''' Bidirectional parameters
''',
'bidirectional',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('disjoint-path', REFERENCE_CLASS, 'DisjointPath' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce.DisjointPath',
[], [],
''' Disjoint path parameters
''',
'disjoint_path',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Always set to true
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'pce',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.AffinityMask' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.AffinityMask',
False,
[
_MetaInfoClassMember('affinity', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity flags
''',
'affinity',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mask', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity mask
''',
'mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'affinity-mask',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Logging' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Logging',
False,
[
_MetaInfoClassMember('all', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all events for a tunnel
''',
'all',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth-change-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for bandwidth change
''',
'bandwidth_change_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bfd-state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable BFD session state change alarm
''',
'bfd_state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('insufficient-bw-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for insufficient bandwidth
''',
'insufficient_bw_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('lsp-switch-over-change-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for bandwidth change
''',
'lsp_switch_over_change_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pcalc-failure-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable logging for path-calculation failures
''',
'pcalc_failure_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('record-route-messsage', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel record-route messages
''',
'record_route_messsage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-attempts-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimization attempts messages
''',
'reoptimize_attempts_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimized-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimized messages
''',
'reoptimized_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reroute-messsage', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel rereoute messages
''',
'reroute_messsage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel state messages
''',
'state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
False,
[
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity10', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the tenth affinity
''',
'affinity10',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes',
False,
[
_MetaInfoClassMember('new-style-affinity-affinity-type', REFERENCE_LIST, 'NewStyleAffinityAffinityType' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9_affinity10',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-types',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute',
False,
[
_MetaInfoClassMember('attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Attribute Set Name
''',
'attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-mask', REFERENCE_CLASS, 'AffinityMask' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.AffinityMask',
[], [],
''' Set the affinity flags and mask
''',
'affinity_mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Attribute-set enable object that controls
whether this attribute-set is configured or not
.This object must be set before other
configuration supplied for this attribute-set
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('logging', REFERENCE_CLASS, 'Logging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Logging',
[], [],
''' Log tunnel LSP messages
''',
'logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-types', REFERENCE_CLASS, 'NewStyleAffinityAffinityTypes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes',
[], [],
''' Tunnel new style affinity attributes table
''',
'new_style_affinity_affinity_types',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection', REFERENCE_CLASS, 'PathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection',
[], [],
''' Configure path selection properties
''',
'path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pce', REFERENCE_CLASS, 'Pce' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce',
[], [],
''' Configure pce properties
''',
'pce',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'p2p-te-attribute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes',
False,
[
_MetaInfoClassMember('p2p-te-attribute', REFERENCE_LIST, 'P2PTeAttribute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute',
[], [],
''' P2P-TE Tunnel Attribute
''',
'p2p_te_attribute',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'p2p-te-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.SignalledName' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.SignalledName',
False,
[
_MetaInfoClassMember('mp-address', ATTRIBUTE, 'bool' , None, None,
[], [],
''' Set if merge-point address is to be
appended
''',
'mp_address',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('name', ATTRIBUTE, 'str' , None, None,
[], [],
''' Signalled name
''',
'name',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('protected-interface-type', REFERENCE_ENUM_CLASS, 'MplsTeSigNameOptionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeSigNameOptionEnum',
[], [],
''' Protected-interface address or name
''',
'protected_interface_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('source-type', REFERENCE_ENUM_CLASS, 'MplsTeSigNameOptionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeSigNameOptionEnum',
[], [],
''' Source address or name
''',
'source_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'signalled-name',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.AutoBackupLogging' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.AutoBackupLogging',
False,
[
_MetaInfoClassMember('bandwidth-change-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for bandwidth change
''',
'bandwidth_change_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-attempts-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimization attempts messages
''',
'reoptimize_attempts_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimized-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimized messages
''',
'reoptimized_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel state messages
''',
'state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-backup-logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.Priority' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.Priority',
False,
[
_MetaInfoClassMember('hold-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Hold Priority
''',
'hold_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('setup-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Setup Priority
''',
'setup_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'priority',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.AffinityMask' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.AffinityMask',
False,
[
_MetaInfoClassMember('affinity', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity flags
''',
'affinity',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mask', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity mask
''',
'mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'affinity-mask',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.PathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.PathSelection',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable path selection
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.PolicyClasses' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.PolicyClasses',
False,
[
_MetaInfoClassMember('policy-class', REFERENCE_LEAFLIST, 'int' , None, None,
[('1', '8')], [],
''' Array of Policy class
''',
'policy_class',
'Cisco-IOS-XR-mpls-te-cfg', False, max_elements=7),
],
'Cisco-IOS-XR-mpls-te-cfg',
'policy-classes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
False,
[
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity10', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the tenth affinity
''',
'affinity10',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes',
False,
[
_MetaInfoClassMember('new-style-affinity-affinity-type', REFERENCE_LIST, 'NewStyleAffinityAffinityType' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9_affinity10',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-types',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute',
False,
[
_MetaInfoClassMember('attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Attribute Set Name
''',
'attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-mask', REFERENCE_CLASS, 'AffinityMask' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.AffinityMask',
[], [],
''' Set the affinity flags and mask
''',
'affinity_mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('auto-backup-logging', REFERENCE_CLASS, 'AutoBackupLogging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.AutoBackupLogging',
[], [],
''' Log tunnel LSP messages
''',
'auto_backup_logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Attribute-set enable object that controls
whether this attribute-set is configured or not
.This object must be set before other
configuration supplied for this attribute-set
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-types', REFERENCE_CLASS, 'NewStyleAffinityAffinityTypes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes',
[], [],
''' Tunnel new style affinity attributes table
''',
'new_style_affinity_affinity_types',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection', REFERENCE_CLASS, 'PathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.PathSelection',
[], [],
''' Configure path selection properties
''',
'path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('policy-classes', REFERENCE_CLASS, 'PolicyClasses' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.PolicyClasses',
[], [],
''' Policy classes for PBTS
''',
'policy_classes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('priority', REFERENCE_CLASS, 'Priority' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.Priority',
[], [],
''' Tunnel Setup and Hold Priorities
''',
'priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('record-route', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Record the route used by the tunnel
''',
'record_route',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('signalled-name', REFERENCE_CLASS, 'SignalledName' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.SignalledName',
[], [],
''' Signalled name
''',
'signalled_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-backup-attribute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes',
False,
[
_MetaInfoClassMember('auto-backup-attribute', REFERENCE_LIST, 'AutoBackupAttribute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute',
[], [],
''' Auto-backup Tunnel Attribute
''',
'auto_backup_attribute',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-backup-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName.ScheduleDuration' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName.ScheduleDuration',
False,
[
_MetaInfoClassMember('hour', ATTRIBUTE, 'int' , None, None,
[('0', '167')], [],
''' Hour of day
''',
'hour',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('minutes', ATTRIBUTE, 'int' , None, None,
[('0', '59')], [],
''' Minute of the hour
''',
'minutes',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'schedule-duration',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName.ScheduleDate' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName.ScheduleDate',
False,
[
_MetaInfoClassMember('day', ATTRIBUTE, 'int' , None, None,
[('1', '31')], [],
''' Day of the month
''',
'day',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('hour', ATTRIBUTE, 'int' , None, None,
[('0', '23')], [],
''' Hour of day
''',
'hour',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('minutes', ATTRIBUTE, 'int' , None, None,
[('0', '59')], [],
''' Minute of the hour
''',
'minutes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('month', ATTRIBUTE, 'int' , None, None,
[('0', '11')], [],
''' Month of the year
''',
'month',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('year', ATTRIBUTE, 'int' , None, None,
[('2015', '2035')], [],
''' Year
''',
'year',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'schedule-date',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName',
False,
[
_MetaInfoClassMember('schedule-name', ATTRIBUTE, 'str' , None, None,
[(0, 254)], [],
''' Enter 64 characters for revert schedule
name
''',
'schedule_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('revert-schedule-frequency', ATTRIBUTE, 'int' , None, None,
[('1', '3')], [],
''' Frequency set as Once, Daily, Weekly
''',
'revert_schedule_frequency',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('revert-schedule-max-tries', ATTRIBUTE, 'int' , None, None,
[('1', '2016')], [],
''' Revert Schedule Max tries
''',
'revert_schedule_max_tries',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('sch-name-enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Schedule name enable object
''',
'sch_name_enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('schedule-date', REFERENCE_CLASS, 'ScheduleDate' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName.ScheduleDate',
[], [],
''' Set date in format hh:mm MMM DD YYYY
''',
'schedule_date',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('schedule-duration', REFERENCE_CLASS, 'ScheduleDuration' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName.ScheduleDuration',
[], [],
''' Set duration in format hh:mm
''',
'schedule_duration',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'revert-schedule-name',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames',
False,
[
_MetaInfoClassMember('revert-schedule-name', REFERENCE_LIST, 'RevertScheduleName' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName',
[], [],
''' Name Identifier for revert schedule
''',
'revert_schedule_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'revert-schedule-names',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.SubNetworkConnectionMode' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.SubNetworkConnectionMode',
False,
[
_MetaInfoClassMember('connection-mode', REFERENCE_ENUM_CLASS, 'MplsTeOtnSncModeEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeOtnSncModeEnum',
[], [],
''' The sub-network connection mode
''',
'connection_mode',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('connection-monitoring-mode', ATTRIBUTE, 'int' , None, None,
[('1', '6')], [],
''' Tandem Connection Monitoring ID for the
interface
''',
'connection_monitoring_mode',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'sub-network-connection-mode',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.Timers' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.Timers',
False,
[
_MetaInfoClassMember('aps-hold-off', ATTRIBUTE, 'int' , None, None,
[('100', '10000')], [],
''' G.709 OTN path protection hold-off timer in
milliseconds
''',
'aps_hold_off',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('aps-wait-to-restore', ATTRIBUTE, 'int' , None, None,
[('0', '720')], [],
''' G.709 OTN path protection wait to restore
timer in seconds
''',
'aps_wait_to_restore',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'timers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.PathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.PathSelection',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable path selection
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute',
False,
[
_MetaInfoClassMember('attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Attribute Set Name
''',
'attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('aps-protection-mode', REFERENCE_ENUM_CLASS, 'MplsTeOtnApsProtectionModeEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeOtnApsProtectionModeEnum',
[], [],
''' The APS protecion mode
''',
'aps_protection_mode',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('aps-protection-type', REFERENCE_ENUM_CLASS, 'MplsTeOtnApsProtectionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeOtnApsProtectionEnum',
[], [],
''' The APS protecion type
''',
'aps_protection_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('aps-restoration-style', REFERENCE_ENUM_CLASS, 'MplsTeOtnApsRestorationStyleEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeOtnApsRestorationStyleEnum',
[], [],
''' The APS restoration style
''',
'aps_restoration_style',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Attribute-set enable object that controls
whether this attribute-set is configured or not
.This object must be set before other
configuration supplied for this attribute-set
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection', REFERENCE_CLASS, 'PathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.PathSelection',
[], [],
''' Configure path selection properties
''',
'path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('revert-schedule-names', REFERENCE_CLASS, 'RevertScheduleNames' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames',
[], [],
''' Specify APS revert schedule
''',
'revert_schedule_names',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('sub-network-connection-mode', REFERENCE_CLASS, 'SubNetworkConnectionMode' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.SubNetworkConnectionMode',
[], [],
''' Sub-network connection mode
''',
'sub_network_connection_mode',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('timers', REFERENCE_CLASS, 'Timers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.Timers',
[], [],
''' Timers
''',
'timers',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'otn-pp-attribute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes',
False,
[
_MetaInfoClassMember('otn-pp-attribute', REFERENCE_LIST, 'OtnPpAttribute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute',
[], [],
''' OTN Path Protection Attribute
''',
'otn_pp_attribute',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'otn-pp-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.AutoMeshLogging' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.AutoMeshLogging',
False,
[
_MetaInfoClassMember('bandwidth-change-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for bandwidth change
''',
'bandwidth_change_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('insufficient-bw-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for insufficient bandwidth
''',
'insufficient_bw_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pcalc-failure-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable logging for path-calculation failures
''',
'pcalc_failure_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-attempts-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimization attempts messages
''',
'reoptimize_attempts_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimized-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel reoptimized messages
''',
'reoptimized_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reroute-messsage', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel rereoute messages
''',
'reroute_messsage',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel state messages
''',
'state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-mesh-logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.Priority' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.Priority',
False,
[
_MetaInfoClassMember('hold-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Hold Priority
''',
'hold_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('setup-priority', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Setup Priority
''',
'setup_priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'priority',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.AffinityMask' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.AffinityMask',
False,
[
_MetaInfoClassMember('affinity', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity flags
''',
'affinity',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mask', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity mask
''',
'mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'affinity-mask',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.Bandwidth' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.Bandwidth',
False,
[
_MetaInfoClassMember('bandwidth', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' The value of the bandwidth reserved by this
tunnel in kbps
''',
'bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('class-or-pool-type', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Class type for the bandwidth allocation
''',
'class_or_pool_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('dste-type', REFERENCE_ENUM_CLASS, 'MplsTeBandwidthDsteEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeBandwidthDsteEnum',
[], [],
''' DSTE-standard flag
''',
'dste_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bandwidth',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.PathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.PathSelection',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable path selection
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.PolicyClasses' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.PolicyClasses',
False,
[
_MetaInfoClassMember('policy-class', REFERENCE_LEAFLIST, 'int' , None, None,
[('1', '8')], [],
''' Array of Policy class
''',
'policy_class',
'Cisco-IOS-XR-mpls-te-cfg', False, max_elements=7),
],
'Cisco-IOS-XR-mpls-te-cfg',
'policy-classes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
False,
[
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
False,
[
_MetaInfoClassMember('affinity1', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the first affinity
''',
'affinity1',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity10', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the tenth affinity
''',
'affinity10',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity2', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the second affinity
''',
'affinity2',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity3', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the third affinity
''',
'affinity3',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity4', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fourth affinity
''',
'affinity4',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity5', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the fifth affinity
''',
'affinity5',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity6', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the sixth affinity
''',
'affinity6',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity7', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the seventh affinity
''',
'affinity7',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity8', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the eighth affinity
''',
'affinity8',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity9', ATTRIBUTE, 'str' , None, None,
[], ['[\\w\\-\\.:,_@#%$\\+=\\|;]+'],
''' The name of the nineth affinity
''',
'affinity9',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-type', REFERENCE_ENUM_CLASS, 'MplsTeTunnelAffinityEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeTunnelAffinityEnum',
[], [],
''' The type of the affinity entry
''',
'affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes',
False,
[
_MetaInfoClassMember('new-style-affinity-affinity-type', REFERENCE_LIST, 'NewStyleAffinityAffinityType' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-type-affinity1-affinity2-affinity3-affinity4-affinity5-affinity6-affinity7-affinity8-affinity9-affinity10', REFERENCE_LIST, 'NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10',
[], [],
''' Tunnel new style affinity attribute
''',
'new_style_affinity_affinity_type_affinity1_affinity2_affinity3_affinity4_affinity5_affinity6_affinity7_affinity8_affinity9_affinity10',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'new-style-affinity-affinity-types',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.FastReroute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.FastReroute',
False,
[
_MetaInfoClassMember('bandwidth-protection', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Bandwidth Protection
''',
'bandwidth_protection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('node-protection', ATTRIBUTE, 'int' , None, None,
[('0', '1')], [],
''' Node Protection
''',
'node_protection',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'fast-reroute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute',
False,
[
_MetaInfoClassMember('attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Attribute Set Name
''',
'attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity-mask', REFERENCE_CLASS, 'AffinityMask' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.AffinityMask',
[], [],
''' Set the affinity flags and mask
''',
'affinity_mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('auto-mesh-logging', REFERENCE_CLASS, 'AutoMeshLogging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.AutoMeshLogging',
[], [],
''' Log tunnel LSP messages
''',
'auto_mesh_logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('autoroute-announce', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable autoroute announce
''',
'autoroute_announce',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bandwidth', REFERENCE_CLASS, 'Bandwidth' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.Bandwidth',
[], [],
''' Tunnel bandwidth requirement
''',
'bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('collection-only', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable bandwidth collection only, no auto-bw
adjustment
''',
'collection_only',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Attribute-set enable object that controls
whether this attribute-set is configured or not
.This object must be set before other
configuration supplied for this attribute-set
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('fast-reroute', REFERENCE_CLASS, 'FastReroute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.FastReroute',
[], [],
''' Specify MPLS tunnel can be fast-rerouted
''',
'fast_reroute',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('forward-class', ATTRIBUTE, 'int' , None, None,
[('1', '7')], [],
''' Forward class value
''',
'forward_class',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('interface-bandwidth', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' The bandwidth of the interface in kbps
''',
'interface_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('load-share', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Tunnel loadsharing metric
''',
'load_share',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('new-style-affinity-affinity-types', REFERENCE_CLASS, 'NewStyleAffinityAffinityTypes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes',
[], [],
''' Tunnel new style affinity attributes table
''',
'new_style_affinity_affinity_types',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection', REFERENCE_CLASS, 'PathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.PathSelection',
[], [],
''' Configure path selection properties
''',
'path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('policy-classes', REFERENCE_CLASS, 'PolicyClasses' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.PolicyClasses',
[], [],
''' Policy classes for PBTS
''',
'policy_classes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('priority', REFERENCE_CLASS, 'Priority' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.Priority',
[], [],
''' Tunnel Setup and Hold Priorities
''',
'priority',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('record-route', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Record the route used by the tunnel
''',
'record_route',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('soft-preemption', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable the soft-preemption feature on the tunnel
''',
'soft_preemption',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-mesh-attribute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes',
False,
[
_MetaInfoClassMember('auto-mesh-attribute', REFERENCE_LIST, 'AutoMeshAttribute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute',
[], [],
''' Auto-mesh Tunnel Attribute
''',
'auto_mesh_attribute',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-mesh-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs.Srlg' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs.Srlg',
False,
[
_MetaInfoClassMember('srlg', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' SRLG
''',
'srlg',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('conformance', REFERENCE_ENUM_CLASS, 'MplsTePathDiversityConformanceEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathDiversityConformanceEnum',
[], [],
''' The diversity conformance requirements
''',
'conformance',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'srlg',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs',
False,
[
_MetaInfoClassMember('srlg', REFERENCE_LIST, 'Srlg' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs.Srlg',
[], [],
''' SRLG-based path-diversity element
''',
'srlg',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'srlgs',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs.Fec' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs.Fec',
False,
[
_MetaInfoClassMember('destination', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Destination address
''',
'destination',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('extended-tunnel-id', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Extended tunnel-id
''',
'extended_tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('lsp-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' LSP id
''',
'lsp_id',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('source', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Source address
''',
'source',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Tunnel id
''',
'tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('conformance', REFERENCE_ENUM_CLASS, 'MplsTePathDiversityConformanceEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathDiversityConformanceEnum',
[], [],
''' The diversity conformance requirements
''',
'conformance',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'fec',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs',
False,
[
_MetaInfoClassMember('fec', REFERENCE_LIST, 'Fec' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs.Fec',
[], [],
''' LSP-based path-diversity, referenced by
FEC
''',
'fec',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'fecs',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp',
False,
[
_MetaInfoClassMember('fecs', REFERENCE_CLASS, 'Fecs' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs',
[], [],
''' FEC LSP-based path diversity
''',
'fecs',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'lsp',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity',
False,
[
_MetaInfoClassMember('lsp', REFERENCE_CLASS, 'Lsp' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp',
[], [],
''' LSP-based path diversity
''',
'lsp',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('srlgs', REFERENCE_CLASS, 'Srlgs' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs',
[], [],
''' SRLG-based path diversity
''',
'srlgs',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-diversity',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathSelection',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable path selection
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute',
False,
[
_MetaInfoClassMember('attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Attribute Set Name
''',
'attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Attribute-set enable object that controls
whether this attribute-set is configured or not
.This object must be set before other
configuration supplied for this attribute-set
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-diversity', REFERENCE_CLASS, 'PathDiversity' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity',
[], [],
''' Path diversity
''',
'path_diversity',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection', REFERENCE_CLASS, 'PathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathSelection',
[], [],
''' Configure path selection properties
''',
'path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'xro-attribute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet.XroAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet.XroAttributes',
False,
[
_MetaInfoClassMember('xro-attribute', REFERENCE_LIST, 'XroAttribute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute',
[], [],
''' XRO Attribute
''',
'xro_attribute',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'xro-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AttributeSet' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AttributeSet',
False,
[
_MetaInfoClassMember('auto-backup-attributes', REFERENCE_CLASS, 'AutoBackupAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes',
[], [],
''' Auto-backup Tunnel Attribute Table
''',
'auto_backup_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('auto-mesh-attributes', REFERENCE_CLASS, 'AutoMeshAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes',
[], [],
''' Auto-mesh Tunnel AttributeSets Table
''',
'auto_mesh_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('otn-pp-attributes', REFERENCE_CLASS, 'OtnPpAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes',
[], [],
''' OTN Path Protection Attributes table
''',
'otn_pp_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('p2mpte-attributes', REFERENCE_CLASS, 'P2MpteAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes',
[], [],
''' P2MP-TE Tunnel AttributeSets Table
''',
'p2mpte_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('p2p-te-attributes', REFERENCE_CLASS, 'P2PTeAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes',
[], [],
''' P2P-TE Tunnel AttributeSets Table
''',
'p2p_te_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-option-attributes', REFERENCE_CLASS, 'PathOptionAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes',
[], [],
''' Path Option Attribute-Set Table
''',
'path_option_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('xro-attributes', REFERENCE_CLASS, 'XroAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet.XroAttributes',
[], [],
''' XRO Tunnel Attributes table
''',
'xro_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'attribute-set',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.BfdOverLsp.Tail' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.BfdOverLsp.Tail',
False,
[
_MetaInfoClassMember('minimum-interval', ATTRIBUTE, 'int' , None, None,
[('50', '30000')], [],
''' Specify BFD over LSP tail minimum interval
''',
'minimum_interval',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('multiplier', ATTRIBUTE, 'int' , None, None,
[('3', '10')], [],
''' Specify BFD over LSP tail multiplier
''',
'multiplier',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tail',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.BfdOverLsp.Head' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.BfdOverLsp.Head',
False,
[
_MetaInfoClassMember('down-action', REFERENCE_ENUM_CLASS, 'MplsTeBfdSessionDownActionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeBfdSessionDownActionEnum',
[], [],
''' Specify BFD session down action
''',
'down_action',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reopt-timeout', ATTRIBUTE, 'int' , None, None,
[('120', '4294967295')], [],
''' BFD session down reopt timeout
''',
'reopt_timeout',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'head',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.BfdOverLsp' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.BfdOverLsp',
False,
[
_MetaInfoClassMember('head', REFERENCE_CLASS, 'Head' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.BfdOverLsp.Head',
[], [],
''' BFD over LSP Head Global Configurations
''',
'head',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tail', REFERENCE_CLASS, 'Tail' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.BfdOverLsp.Tail',
[], [],
''' BFD over LSP Tail Global Configurations
''',
'tail',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bfd-over-lsp',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PceAttributes.PceStateful.StatefulTimers' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PceAttributes.PceStateful.StatefulTimers',
False,
[
_MetaInfoClassMember('redelegation-timeout', ATTRIBUTE, 'int' , None, None,
[('0', '3600')], [],
''' Timer for static tunnel redelegation in
seconds, default is 180 seconds
''',
'redelegation_timeout',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('state-timeout', ATTRIBUTE, 'int' , None, None,
[('0', '3600')], [],
''' State timeout for LSPs without delegation in
seconds, zero means immediate removal,
default is 180 seconds
''',
'state_timeout',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'stateful-timers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PceAttributes.PceStateful' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PceAttributes.PceStateful',
False,
[
_MetaInfoClassMember('cisco-extension', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable processing of PCEP Cisco extension
''',
'cisco_extension',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('delegation', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Delegate all statically configured tunnels
''',
'delegation',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' PCE stateful capability
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('fast-repair', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable reoptimization by PCC after path
failures
''',
'fast_repair',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('instantiation', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' PCE stateful instantiation capability
''',
'instantiation',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('report', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Report all statically configured tunnels
''',
'report',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('stateful-timers', REFERENCE_CLASS, 'StatefulTimers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PceAttributes.PceStateful.StatefulTimers',
[], [],
''' Configure Stateful PCE (Path Computation
Element) timers
''',
'stateful_timers',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'pce-stateful',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PceAttributes.Timer' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PceAttributes.Timer',
False,
[
],
'Cisco-IOS-XR-mpls-te-cfg',
'timer',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PceAttributes.Peers.Peer' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PceAttributes.Peers.Peer',
False,
[
_MetaInfoClassMember('pce-peer-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Address of PCE Peer
''',
'pce_peer_address',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enabled PCE peer (default source address
uses local)
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('keychain', ATTRIBUTE, 'str' , None, None,
[(0, 32)], [],
''' Keychain based authentication
''',
'keychain',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('password', ATTRIBUTE, 'str' , None, None,
[], ['(!.+)|([^!].+)'],
''' MD5 password
''',
'password',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('precedence', ATTRIBUTE, 'int' , None, None,
[('0', '255')], [],
''' Precedence order
''',
'precedence',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'peer',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PceAttributes.Peers' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PceAttributes.Peers',
False,
[
_MetaInfoClassMember('peer', REFERENCE_LIST, 'Peer' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PceAttributes.Peers.Peer',
[], [],
''' PCE peer
''',
'peer',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'peers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PceAttributes.Logging.Events' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PceAttributes.Logging.Events',
False,
[
_MetaInfoClassMember('peer-status', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Peer status changes logging
''',
'peer_status',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'events',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PceAttributes.Logging' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PceAttributes.Logging',
False,
[
_MetaInfoClassMember('events', REFERENCE_CLASS, 'Events' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PceAttributes.Logging.Events',
[], [],
''' Configure logging events
''',
'events',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PceAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PceAttributes',
False,
[
_MetaInfoClassMember('address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Address of this PCE
''',
'address',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('deadtimer', ATTRIBUTE, 'int' , None, None,
[('0', '255')], [],
''' Deadtimer interval in seconds
''',
'deadtimer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('keepalive', ATTRIBUTE, 'int' , None, None,
[('0', '255')], [],
''' Keepalive interval in seconds
''',
'keepalive',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('keepalive-tolerance', ATTRIBUTE, 'int' , None, None,
[('0', '255')], [],
''' Keepalive interval tolerance in seconds
''',
'keepalive_tolerance',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('keychain', ATTRIBUTE, 'str' , None, None,
[(0, 32)], [],
''' Keychain based authentication
''',
'keychain',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('logging', REFERENCE_CLASS, 'Logging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PceAttributes.Logging',
[], [],
''' Configure PCE (Path Computation Element)
logging feature
''',
'logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('password', ATTRIBUTE, 'str' , None, None,
[], ['(!.+)|([^!].+)'],
''' MD5 password
''',
'password',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pce-stateful', REFERENCE_CLASS, 'PceStateful' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PceAttributes.PceStateful',
[], [],
''' PCE Stateful
''',
'pce_stateful',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('peer-source-addr', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' PCE Peer Source Address
''',
'peer_source_addr',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('peers', REFERENCE_CLASS, 'Peers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PceAttributes.Peers',
[], [],
''' Configure PCE peers
''',
'peers',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('precedence', ATTRIBUTE, 'int' , None, None,
[('0', '255')], [],
''' Precedence order
''',
'precedence',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-period', ATTRIBUTE, 'int' , None, None,
[('60', '604800')], [],
''' PCE reoptimization period for PCE-based paths
''',
'reoptimize_period',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('request-timeout', ATTRIBUTE, 'int' , None, None,
[('5', '100')], [],
''' Request timeout value in seconds
''',
'request_timeout',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('segment-routing', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' PCE segment routing capability
''',
'segment_routing',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('speaker-entity-id', ATTRIBUTE, 'str' , None, None,
[(0, 256)], [],
''' PCE speaker entity identifier
''',
'speaker_entity_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('timer', REFERENCE_CLASS, 'Timer' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PceAttributes.Timer',
[], [],
''' Configure PCE (Path Computation Element)
timers
''',
'timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'pce-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.SoftPreemption' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.SoftPreemption',
False,
[
_MetaInfoClassMember('enable', ATTRIBUTE, 'bool' , None, None,
[], [],
''' This object controls whether soft preemption
is enabled. This object must be set before
setting any other objects under the
SoftPreemption class.
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('frr-rewrite', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' This object controls whether FRR rewrite
during soft preemption is enabled.
''',
'frr_rewrite',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('timeout', ATTRIBUTE, 'int' , None, None,
[('1', '300')], [],
''' This object sets the timeout in seconds before
hard preemption is triggered.
''',
'timeout',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'soft-preemption',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.FastReroute.Timers' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.FastReroute.Timers',
False,
[
_MetaInfoClassMember('hold-backup', ATTRIBUTE, 'int' , None, None,
[('0', '604800')], [],
''' Seconds before backup declared UP (0 disables
hold-timer)
''',
'hold_backup',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('promotion', ATTRIBUTE, 'int' , None, None,
[('0', '604800')], [],
''' The value of the promotion timer in seconds
''',
'promotion',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'timers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.FastReroute' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.FastReroute',
False,
[
_MetaInfoClassMember('timers', REFERENCE_CLASS, 'Timers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.FastReroute.Timers',
[], [],
''' Configure fast reroute timers
''',
'timers',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'fast-reroute',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PathSelection.LooseMetrics.LooseMetric' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PathSelection.LooseMetrics.LooseMetric',
False,
[
_MetaInfoClassMember('class-type', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Path Selection class Type
''',
'class_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('metric-type', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionMetricEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionMetricEnum',
[], [],
''' Metric to use for ERO Expansion
''',
'metric_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'loose-metric',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PathSelection.LooseMetrics' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PathSelection.LooseMetrics',
False,
[
_MetaInfoClassMember('loose-metric', REFERENCE_LIST, 'LooseMetric' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PathSelection.LooseMetrics.LooseMetric',
[], [],
''' Path selection Loose ERO Metric configuration
''',
'loose_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'loose-metrics',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PathSelection.Invalidation' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PathSelection.Invalidation',
False,
[
_MetaInfoClassMember('path-invalidation-action', REFERENCE_ENUM_CLASS, 'PathInvalidationActionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'PathInvalidationActionEnum',
[], [],
''' Path Invalidation Action
''',
'path_invalidation_action',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-invalidation-timeout', ATTRIBUTE, 'int' , None, None,
[('0', '60000')], [],
''' Path Invalidation Timeout
''',
'path_invalidation_timeout',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'invalidation',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PathSelection.IgnoreOverloadRole' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PathSelection.IgnoreOverloadRole',
False,
[
_MetaInfoClassMember('head', ATTRIBUTE, 'bool' , None, None,
[], [],
''' Set if the OL-bit is to be applied to tunnel
heads
''',
'head',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mid', ATTRIBUTE, 'bool' , None, None,
[], [],
''' Set if the OL-bit is to be applied to tunnel
midpoints
''',
'mid',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tail', ATTRIBUTE, 'bool' , None, None,
[], [],
''' Set if the OL-bit is to be applied to tunnel
tails
''',
'tail',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'ignore-overload-role',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PathSelection.LooseAffinities.LooseAffinity' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PathSelection.LooseAffinities.LooseAffinity',
False,
[
_MetaInfoClassMember('class-type', ATTRIBUTE, 'int' , None, None,
[('0', '7')], [],
''' Path Selection class Type
''',
'class_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('affinity', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity flags
''',
'affinity',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mask', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity mask
''',
'mask',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'loose-affinity',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PathSelection.LooseAffinities' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PathSelection.LooseAffinities',
False,
[
_MetaInfoClassMember('loose-affinity', REFERENCE_LIST, 'LooseAffinity' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PathSelection.LooseAffinities.LooseAffinity',
[], [],
''' Path selection Loose ERO Affinity
configuration
''',
'loose_affinity',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'loose-affinities',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.PathSelection' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.PathSelection',
False,
[
_MetaInfoClassMember('cost-limit', ATTRIBUTE, 'int' , None, None,
[('1', '4294967295')], [],
''' Path selection cost limit configuration for
all tunnels
''',
'cost_limit',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('ignore-overload-role', REFERENCE_CLASS, 'IgnoreOverloadRole' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PathSelection.IgnoreOverloadRole',
[], [],
''' Path selection to ignore overload node during
CSPF
''',
'ignore_overload_role',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('invalidation', REFERENCE_CLASS, 'Invalidation' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PathSelection.Invalidation',
[], [],
''' Path invalidation configuration for all
tunnels
''',
'invalidation',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('loose-affinities', REFERENCE_CLASS, 'LooseAffinities' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PathSelection.LooseAffinities',
[], [],
''' Path selection Loose ERO Affinity Class
configuration
''',
'loose_affinities',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('loose-domain-match', ATTRIBUTE, 'bool' , None, None,
[], [],
''' Use only the IGP instance of the incoming
interface
''',
'loose_domain_match',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('loose-metrics', REFERENCE_CLASS, 'LooseMetrics' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PathSelection.LooseMetrics',
[], [],
''' Path selection Loose ERO Metric Class
configuration
''',
'loose_metrics',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('metric', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionMetricEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionMetricEnum',
[], [],
''' Metric to use in path calculation
''',
'metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tiebreaker', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionTiebreakerEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionTiebreakerEnum',
[], [],
''' CSPF tiebreaker to use in path calculation
''',
'tiebreaker',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-selection',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AffinityMappings.AffinityMapping' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AffinityMappings.AffinityMapping',
False,
[
_MetaInfoClassMember('affinity-name', ATTRIBUTE, 'str' , None, None,
[(0, 32)], [],
''' Affinity Name
''',
'affinity_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('value', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Affinity Value in Hex number or by Bit
position
''',
'value',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('value-type', REFERENCE_ENUM_CLASS, 'MplsTeAffinityValueEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeAffinityValueEnum',
[], [],
''' Affinity value type
''',
'value_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'affinity-mapping',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes.AffinityMappings' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes.AffinityMappings',
False,
[
_MetaInfoClassMember('affinity-mapping', REFERENCE_LIST, 'AffinityMapping' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AffinityMappings.AffinityMapping',
[], [],
''' Affinity Mapping configuration
''',
'affinity_mapping',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'affinity-mappings',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GlobalAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.GlobalAttributes',
False,
[
_MetaInfoClassMember('advertise-explicit-nulls', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable explicit-null advertising to PHOP
''',
'advertise_explicit_nulls',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('affinity-mappings', REFERENCE_CLASS, 'AffinityMappings' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AffinityMappings',
[], [],
''' Affinity Mapping Table configuration
''',
'affinity_mappings',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('attribute-set', REFERENCE_CLASS, 'AttributeSet' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AttributeSet',
[], [],
''' Attribute AttributeSets
''',
'attribute_set',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('auto-bandwidth-collect-frequency', ATTRIBUTE, 'int' , None, None,
[('1', '10080')], [],
''' Auto-bandwidth global collection frequency in
minutes
''',
'auto_bandwidth_collect_frequency',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('auto-tunnel', REFERENCE_CLASS, 'AutoTunnel' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.AutoTunnel',
[], [],
''' Configure auto-tunnels feature
''',
'auto_tunnel',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bfd-over-lsp', REFERENCE_CLASS, 'BfdOverLsp' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.BfdOverLsp',
[], [],
''' BFD over MPLS TE Global Configurations
''',
'bfd_over_lsp',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('disable-reoptimize-affinity-failure', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disable reoptimization after affinity failures
''',
'disable_reoptimize_affinity_failure',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable-unequal-load-balancing', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable unequal load-balancing over tunnels to
the same destination
''',
'enable_unequal_load_balancing',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('fast-reroute', REFERENCE_CLASS, 'FastReroute' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.FastReroute',
[], [],
''' Configure fast reroute attributes
''',
'fast_reroute',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('fault-oam', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable Fault-OAM functionality for
bidirectional tunnels
''',
'fault_oam',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('graceful-preemption-on-bandwidth-reduction', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable graceful preemption when there is a
bandwidth reduction
''',
'graceful_preemption_on_bandwidth_reduction',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('hardware-out-of-resource', REFERENCE_CLASS, 'HardwareOutOfResource' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.HardwareOutOfResource',
[], [],
''' Configure HW OOR processing in MPLS-TE
''',
'hardware_out_of_resource',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('link-holddown-timer', ATTRIBUTE, 'int' , None, None,
[('0', '300')], [],
''' Holddown time for links which had Path Errors
in seconds
''',
'link_holddown_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('log-all', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Always set to true
''',
'log_all',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('log-frr-protection', REFERENCE_ENUM_CLASS, 'MplsTeLogFrrProtectionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeLogFrrProtectionEnum',
[], [],
''' Log FRR Protection messages
''',
'log_frr_protection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('log-head', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all head tunnel events
''',
'log_head',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('log-issu-status', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log ISSU status messages
''',
'log_issu_status',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('log-mid', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all mid tunnel events
''',
'log_mid',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('log-nsr-status', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log NSR status messages
''',
'log_nsr_status',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('log-preemption', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel preemption messages
''',
'log_preemption',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('log-tail', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all tail tunnel events
''',
'log_tail',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('loose-path-retry-period', ATTRIBUTE, 'int' , None, None,
[('30', '600')], [],
''' Signalling retry for tunnels terminating
outside the headend area
''',
'loose_path_retry_period',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('maximum-tunnels', ATTRIBUTE, 'int' , None, None,
[('1', '65536')], [],
''' The maximum number of tunnel heads that will be
allowed.
''',
'maximum_tunnels',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('mib', REFERENCE_CLASS, 'Mib' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Mib',
[], [],
''' MPLS-TE MIB properties
''',
'mib',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection', REFERENCE_CLASS, 'PathSelection' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PathSelection',
[], [],
''' Path selection configuration
''',
'path_selection',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-ignore-overload', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Deprecated - do not use
''',
'path_selection_ignore_overload',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('pce-attributes', REFERENCE_CLASS, 'PceAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.PceAttributes',
[], [],
''' Configuration MPLS TE PCE attributes
''',
'pce_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('queues', REFERENCE_CLASS, 'Queues' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Queues',
[], [],
''' Configure MPLS TE route priority
''',
'queues',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reopt-delay-path-protect-switchover-timer', ATTRIBUTE, 'int' , None, None,
[('0', '604800')], [],
''' Seconds between path protect switchover and
tunnel re-optimization. Set to 0 to disable
''',
'reopt_delay_path_protect_switchover_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-delay-after-affinity-failure-timer', ATTRIBUTE, 'int' , None, None,
[('1', '604800')], [],
''' Delay reoptimizing current LSP after affinity
failures
''',
'reoptimize_delay_after_affinity_failure_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-delay-after-frr-timer', ATTRIBUTE, 'int' , None, None,
[('0', '120')], [],
''' Reoptimization Delay After FRR Value (seconds)
''',
'reoptimize_delay_after_frr_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-delay-cleanup-timer', ATTRIBUTE, 'int' , None, None,
[('0', '300')], [],
''' Reoptimization Delay Cleanup Value (seconds)
''',
'reoptimize_delay_cleanup_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-delay-install-timer', ATTRIBUTE, 'int' , None, None,
[('0', '3600')], [],
''' Reoptimization Delay Install Value (seconds)
''',
'reoptimize_delay_install_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-link-up', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable reoptimization based on link-up events
''',
'reoptimize_link_up',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-load-balancing', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Load balance bandwidth during reoptimization
''',
'reoptimize_load_balancing',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reoptimize-timer-frequency', ATTRIBUTE, 'int' , None, None,
[('0', '604800')], [],
''' Reoptimize timers period in seconds
''',
'reoptimize_timer_frequency',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('secondary-router-ids', REFERENCE_CLASS, 'SecondaryRouterIds' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.SecondaryRouterIds',
[], [],
''' Configure MPLS TE Secondary Router ID
''',
'secondary_router_ids',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('soft-preemption', REFERENCE_CLASS, 'SoftPreemption' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.SoftPreemption',
[], [],
''' Soft preemption configuration data
''',
'soft_preemption',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('srlg', REFERENCE_CLASS, 'Srlg' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes.Srlg',
[], [],
''' Configure SRLG values and MPLS-TE properties
''',
'srlg',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'global-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Fault.ProtectionTrigger.Ldi' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Fault.ProtectionTrigger.Ldi',
False,
[
_MetaInfoClassMember('disable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disable protection switching due to LDI
event
''',
'disable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'ldi',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Fault.ProtectionTrigger.Lkr' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Fault.ProtectionTrigger.Lkr',
False,
[
_MetaInfoClassMember('disable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disable protection switching due to LKR
event
''',
'disable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'lkr',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Fault.ProtectionTrigger' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Fault.ProtectionTrigger',
False,
[
_MetaInfoClassMember('ais', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable protection switching due to AIS event
''',
'ais',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('ldi', REFERENCE_CLASS, 'Ldi' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Fault.ProtectionTrigger.Ldi',
[], [],
''' Protection switching due to LDI event
''',
'ldi',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('lkr', REFERENCE_CLASS, 'Lkr' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Fault.ProtectionTrigger.Lkr',
[], [],
''' Protection switching due to LKR event
''',
'lkr',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'protection-trigger',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Fault' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Fault',
False,
[
_MetaInfoClassMember('protection-trigger', REFERENCE_CLASS, 'ProtectionTrigger' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Fault.ProtectionTrigger',
[], [],
''' OAM events that trigger protection switching
''',
'protection_trigger',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('refresh-interval', ATTRIBUTE, 'int' , None, None,
[('1', '20')], [],
''' Periodic refresh interval for fault OAM
messages
''',
'refresh_interval',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('wait-to-restore-interval', ATTRIBUTE, 'int' , None, None,
[('0', '2147483647')], [],
''' Waiting time before restoring working LSP
''',
'wait_to_restore_interval',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'fault',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Alarm.SuppressEvent' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Alarm.SuppressEvent',
False,
[
_MetaInfoClassMember('disable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Disable alarm suppression
''',
'disable',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'suppress-event',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Alarm' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Alarm',
False,
[
_MetaInfoClassMember('enable-alarm', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable Transport Profile Alarm
''',
'enable_alarm',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('soak-time', ATTRIBUTE, 'int' , None, None,
[('0', '10')], [],
''' Duration of soaking alarms
''',
'soak_time',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('suppress-event', REFERENCE_CLASS, 'SuppressEvent' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Alarm.SuppressEvent',
[], [],
''' Suppress all tunnel/LSP alarms
''',
'suppress_event',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'alarm',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Bfd.MinIntervalStandby' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Bfd.MinIntervalStandby',
False,
[
_MetaInfoClassMember('interval-standby-ms', ATTRIBUTE, 'int' , None, None,
[('3', '5000')], [],
''' Hello interval in milli-seconds
''',
'interval_standby_ms',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('interval-standby-us', ATTRIBUTE, 'int' , None, None,
[('3000', '5000000')], [],
''' Hello interval in micro-seconds
''',
'interval_standby_us',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'min-interval-standby',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Bfd.MinInterval' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Bfd.MinInterval',
False,
[
_MetaInfoClassMember('interval-ms', ATTRIBUTE, 'int' , None, None,
[('3', '5000')], [],
''' Hello interval in milli-seconds
''',
'interval_ms',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('interval-us', ATTRIBUTE, 'int' , None, None,
[('3000', '5000000')], [],
''' Hello interval in micro-seconds
''',
'interval_us',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'min-interval',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Bfd' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Bfd',
False,
[
_MetaInfoClassMember('detection-multiplier', ATTRIBUTE, 'int' , None, None,
[('2', '10')], [],
''' Detect multiplier
''',
'detection_multiplier',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('detection-multiplier-standby', ATTRIBUTE, 'int' , None, None,
[('2', '10')], [],
''' Detect multiplier for standby transport
profile LSP
''',
'detection_multiplier_standby',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('min-interval', REFERENCE_CLASS, 'MinInterval' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Bfd.MinInterval',
[], [],
''' Hello interval, either in milli-seconds or in
micro-seconds
''',
'min_interval',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('min-interval-standby', REFERENCE_CLASS, 'MinIntervalStandby' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Bfd.MinIntervalStandby',
[], [],
''' Hello interval for standby transport profile
LSPs, either in milli-seconds or in
micro-seconds
''',
'min_interval_standby',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bfd',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Midpoints.Midpoint.Source' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Midpoints.Midpoint.Source',
False,
[
_MetaInfoClassMember('global-id', ATTRIBUTE, 'int' , None, None,
[('1', '65535')], [],
''' Global identifier in numeric value
''',
'global_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('node-id', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Node identifier in IPv4 address format
''',
'node_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Tunnel identifier in numeric value
''',
'tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'source',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Midpoints.Midpoint.Destination' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Midpoints.Midpoint.Destination',
False,
[
_MetaInfoClassMember('global-id', ATTRIBUTE, 'int' , None, None,
[('1', '65535')], [],
''' Global identifier in numeric value
''',
'global_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('node-id', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Node identifier in IPv4 address format
''',
'node_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Tunnel identifier in numeric value
''',
'tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'destination',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp.ForwardIoMap' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp.ForwardIoMap',
False,
[
_MetaInfoClassMember('in-label', ATTRIBUTE, 'int' , None, None,
[('16', '4015')], [],
''' MPLS label
''',
'in_label',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('out-label', ATTRIBUTE, 'int' , None, None,
[('16', '1048575')], [],
''' Outgoing MPLS label
''',
'out_label',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('out-link', ATTRIBUTE, 'int' , None, None,
[('1', '65535')], [],
''' Transport profile identifier of outgoing
link
''',
'out_link',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'forward-io-map',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp',
False,
[
_MetaInfoClassMember('forward-bandwidth', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' Bandwidth of forward transport profile LSP
''',
'forward_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('forward-io-map', REFERENCE_CLASS, 'ForwardIoMap' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp.ForwardIoMap',
[], [],
''' Label cross-connect of forward transport
profile LSP
''',
'forward_io_map',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'forward-lsp',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp.ReverseIoMap' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp.ReverseIoMap',
False,
[
_MetaInfoClassMember('in-label', ATTRIBUTE, 'int' , None, None,
[('16', '4015')], [],
''' MPLS label
''',
'in_label',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('out-label', ATTRIBUTE, 'int' , None, None,
[('16', '1048575')], [],
''' Outgoing MPLS label
''',
'out_label',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('out-link', ATTRIBUTE, 'int' , None, None,
[('1', '65535')], [],
''' Transport profile identifier of outgoing
link
''',
'out_link',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'reverse-io-map',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp',
False,
[
_MetaInfoClassMember('reverse-bandwidth', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' Bandwidth of reverse transport profile LSP
''',
'reverse_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reverse-io-map', REFERENCE_CLASS, 'ReverseIoMap' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp.ReverseIoMap',
[], [],
''' Label cross-connect of reverse transport
profile LSP
''',
'reverse_io_map',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'reverse-lsp',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Midpoints.Midpoint' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Midpoints.Midpoint',
False,
[
_MetaInfoClassMember('midpoint-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' Name of mid-point
''',
'midpoint_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('destination', REFERENCE_CLASS, 'Destination' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Midpoints.Midpoint.Destination',
[], [],
''' Node identifier, tunnel identifier and
optional global identifier of the destination
of the LSP
''',
'destination',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('forward-lsp', REFERENCE_CLASS, 'ForwardLsp' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp',
[], [],
''' Forward transport profile LSP
''',
'forward_lsp',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('lsp-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Numeric identifier
''',
'lsp_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('lsp-protect', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable LSP protection
''',
'lsp_protect',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('reverse-lsp', REFERENCE_CLASS, 'ReverseLsp' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp',
[], [],
''' none
''',
'reverse_lsp',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('source', REFERENCE_CLASS, 'Source' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Midpoints.Midpoint.Source',
[], [],
''' Node identifier, tunnel identifier and
optional global identifier of the source of
the LSP
''',
'source',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-name', ATTRIBUTE, 'str' , None, None,
[], [],
''' Tunnel Name
''',
'tunnel_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'midpoint',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile.Midpoints' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile.Midpoints',
False,
[
_MetaInfoClassMember('midpoint', REFERENCE_LIST, 'Midpoint' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Midpoints.Midpoint',
[], [],
''' Transport profile mid-point identifier
''',
'midpoint',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'midpoints',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.TransportProfile' : {
'meta_info' : _MetaInfoClass('MplsTe.TransportProfile',
False,
[
_MetaInfoClassMember('alarm', REFERENCE_CLASS, 'Alarm' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Alarm',
[], [],
''' Alarm management
''',
'alarm',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bfd', REFERENCE_CLASS, 'Bfd' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Bfd',
[], [],
''' Configure BFD parameters
''',
'bfd',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('fault', REFERENCE_CLASS, 'Fault' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Fault',
[], [],
''' Fault management
''',
'fault',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('global-id', ATTRIBUTE, 'int' , None, None,
[('1', '65535')], [],
''' Transport profile global identifier
''',
'global_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('midpoints', REFERENCE_CLASS, 'Midpoints' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile.Midpoints',
[], [],
''' MPLS-TP tunnel mid-point table
''',
'midpoints',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('node-id', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Node identifier in IPv4 address format
''',
'node_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'transport-profile',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.TransportProfileLink.Links.Link' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.TransportProfileLink.Links.Link',
False,
[
_MetaInfoClassMember('link-id', ATTRIBUTE, 'int' , None, None,
[('1', '65535')], [],
''' Numeric link identifier
''',
'link_id',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('next-hop-address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Next-hop address in IPv4 format
''',
'next_hop_address',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('next-hop-type', REFERENCE_ENUM_CLASS, 'LinkNextHopEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'LinkNextHopEnum',
[], [],
''' Next hop type
''',
'next_hop_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'link',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.TransportProfileLink.Links' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.TransportProfileLink.Links',
False,
[
_MetaInfoClassMember('link', REFERENCE_LIST, 'Link' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.TransportProfileLink.Links.Link',
[], [],
''' Transport profile link
''',
'link',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'links',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.TransportProfileLink' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.TransportProfileLink',
False,
[
_MetaInfoClassMember('links', REFERENCE_CLASS, 'Links' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.TransportProfileLink.Links',
[], [],
''' Transport profile link table
''',
'links',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'transport-profile-link',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.Switchings.Switching' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.Switchings.Switching',
False,
[
_MetaInfoClassMember('switching-id', REFERENCE_UNION, 'str' , None, None,
[], [],
''' Switching index
''',
'switching_id',
'Cisco-IOS-XR-mpls-te-cfg', True, [
_MetaInfoClassMember('switching-id', REFERENCE_ENUM_CLASS, 'MplsTeSwitchingIndexEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeSwitchingIndexEnum',
[], [],
''' Switching index
''',
'switching_id',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('switching-id', ATTRIBUTE, 'int' , None, None,
[('1', '255')], [],
''' Switching index
''',
'switching_id',
'Cisco-IOS-XR-mpls-te-cfg', True),
]),
_MetaInfoClassMember('capability', REFERENCE_ENUM_CLASS, 'MplsTeSwitchingCapEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeSwitchingCapEnum',
[], [],
''' Set the local switching capability
''',
'capability',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('encoding', REFERENCE_ENUM_CLASS, 'MplsTeSwitchingEncodingEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeSwitchingEncodingEnum',
[], [],
''' Set the local encoding type
''',
'encoding',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'switching',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.Switchings' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.Switchings',
False,
[
_MetaInfoClassMember('switching', REFERENCE_LIST, 'Switching' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.Switchings.Switching',
[], [],
''' The te-link switching attributes
''',
'switching',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'switchings',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.FloodArea' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.FloodArea',
False,
[
_MetaInfoClassMember('area-id', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Area ID
''',
'area_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('igp-type', REFERENCE_ENUM_CLASS, 'MplsLcacFloodingIgpEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsLcacFloodingIgpEnum',
[], [],
''' IGP type
''',
'igp_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('process-name', ATTRIBUTE, 'str' , None, None,
[(0, 32)], [],
''' Process name
''',
'process_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'flood-area',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.AttributeNameXr' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.AttributeNameXr',
False,
[
_MetaInfoClassMember('attribute-name', REFERENCE_LEAFLIST, 'str' , None, None,
[], [],
''' Array of Attribute Names
''',
'attribute_name',
'Cisco-IOS-XR-mpls-te-cfg', False, max_elements=32),
],
'Cisco-IOS-XR-mpls-te-cfg',
'attribute-name-xr',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.AttributeNames.AttributeName' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.AttributeNames.AttributeName',
False,
[
_MetaInfoClassMember('affinity-index', ATTRIBUTE, 'int' , None, None,
[('1', '9')], [],
''' Specify the entry index
''',
'affinity_index',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('value', REFERENCE_LEAFLIST, 'str' , None, None,
[], [],
''' Array of Attribute Names
''',
'value',
'Cisco-IOS-XR-mpls-te-cfg', False, max_elements=32, min_elements=1),
],
'Cisco-IOS-XR-mpls-te-cfg',
'attribute-name',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.AttributeNames' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.AttributeNames',
False,
[
_MetaInfoClassMember('attribute-name', REFERENCE_LIST, 'AttributeName' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.AttributeNames.AttributeName',
[], [],
''' Set the interface attribute names
''',
'attribute_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'attribute-names',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.Srlgs.Srlg' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.Srlgs.Srlg',
False,
[
_MetaInfoClassMember('srlg-number', ATTRIBUTE, 'int' , None, None,
[('0', '4294967295')], [],
''' SRLG membership number
''',
'srlg_number',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'srlg',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.Srlgs' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.Srlgs',
False,
[
_MetaInfoClassMember('srlg', REFERENCE_LIST, 'Srlg' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.Srlgs.Srlg',
[], [],
''' SRLG membership number
''',
'srlg',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'srlgs',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.UpThresholds' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.UpThresholds',
False,
[
_MetaInfoClassMember('up-threshold', REFERENCE_LEAFLIST, 'int' , None, None,
[('0', '100')], [],
''' Array of up threshold percentage
''',
'up_threshold',
'Cisco-IOS-XR-mpls-te-cfg', False, max_elements=14),
],
'Cisco-IOS-XR-mpls-te-cfg',
'up-thresholds',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac.DownThresholds' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac.DownThresholds',
False,
[
_MetaInfoClassMember('down-threshold', REFERENCE_LEAFLIST, 'int' , None, None,
[('0', '100')], [],
''' Array of down threshold percentage
''',
'down_threshold',
'Cisco-IOS-XR-mpls-te-cfg', False, max_elements=14),
],
'Cisco-IOS-XR-mpls-te-cfg',
'down-thresholds',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.Lcac' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.Lcac',
False,
[
_MetaInfoClassMember('admin-weight', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Set administrative weight for the interface
''',
'admin_weight',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('attribute-flags', ATTRIBUTE, 'str' , None, None,
[], ['[0-9a-fA-F]{1,8}'],
''' Set user defined interface attribute flags
''',
'attribute_flags',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('attribute-name-xr', REFERENCE_CLASS, 'AttributeNameXr' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.AttributeNameXr',
[], [],
''' Set the interface attribute names
''',
'attribute_name_xr',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('attribute-names', REFERENCE_CLASS, 'AttributeNames' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.AttributeNames',
[], [],
''' Attribute name table
''',
'attribute_names',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bfd', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable use of Bidirectional Forwarding
Detection
''',
'bfd',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('down-thresholds', REFERENCE_CLASS, 'DownThresholds' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.DownThresholds',
[], [],
''' Set thresholds for decreased resource
availability in %
''',
'down_thresholds',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable MPLS-TE on the link
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('fault-oam-lockout', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Lockout protection on the interface for Flex
LSP
''',
'fault_oam_lockout',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('flood-area', REFERENCE_CLASS, 'FloodArea' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.FloodArea',
[], [],
''' Set the IGP instance into which this
interface is to be flooded (GMPLS only)
''',
'flood_area',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('srlgs', REFERENCE_CLASS, 'Srlgs' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.Srlgs',
[], [],
''' Configure SRLG membership for the interface
''',
'srlgs',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('switchings', REFERENCE_CLASS, 'Switchings' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.Switchings',
[], [],
''' Set the te-link switching attributes
''',
'switchings',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('up-thresholds', REFERENCE_CLASS, 'UpThresholds' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac.UpThresholds',
[], [],
''' Set thresholds for increased resource
availability in %
''',
'up_thresholds',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'lcac',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels.BackupTunnel' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels.BackupTunnel',
False,
[
_MetaInfoClassMember('tunnel-name', ATTRIBUTE, 'str' , None, None,
[(0, 59)], [],
''' Tunnel name
''',
'tunnel_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'backup-tunnel',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels',
False,
[
_MetaInfoClassMember('backup-tunnel', REFERENCE_LIST, 'BackupTunnel' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels.BackupTunnel',
[], [],
''' Tunnel name
''',
'backup_tunnel',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'backup-tunnels',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup.Exclude' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup.Exclude',
False,
[
_MetaInfoClassMember('srlg-mode', REFERENCE_ENUM_CLASS, 'MplsTesrlgExcludeEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTesrlgExcludeEnum',
[], [],
''' Set exclude SRLG mode for auto-tunnel
backup on this TE link
''',
'srlg_mode',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'exclude',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup',
False,
[
_MetaInfoClassMember('attribute-set', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' The name of attribute set to be applied to
this auto backup lsp
''',
'attribute_set',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable auto-tunnel backup on this TE link
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('exclude', REFERENCE_CLASS, 'Exclude' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup.Exclude',
[], [],
''' Auto-tunnel backup exclusion criteria
''',
'exclude',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('next-hop-only', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable NHOP-only mode for auto-tunnel
backup on this TE link
''',
'next_hop_only',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'backup',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel',
False,
[
_MetaInfoClassMember('backup', REFERENCE_CLASS, 'Backup' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup',
[], [],
''' Auto tunnel backup configuration
''',
'backup',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'auto-tunnel',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths.BackupPath' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths.BackupPath',
False,
[
_MetaInfoClassMember('tunnel-number', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Tunnel interface number
''',
'tunnel_number',
'Cisco-IOS-XR-mpls-te-cfg', True),
],
'Cisco-IOS-XR-mpls-te-cfg',
'backup-path',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths',
False,
[
_MetaInfoClassMember('backup-path', REFERENCE_LIST, 'BackupPath' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths.BackupPath',
[], [],
''' Tunnel interface number
''',
'backup_path',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'backup-paths',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface.GlobalAttributes' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface.GlobalAttributes',
False,
[
_MetaInfoClassMember('auto-tunnel', REFERENCE_CLASS, 'AutoTunnel' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel',
[], [],
''' Auto tunnel configuration
''',
'auto_tunnel',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('backup-paths', REFERENCE_CLASS, 'BackupPaths' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths',
[], [],
''' Configure MPLS TE backup tunnels for this
interface
''',
'backup_paths',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('backup-tunnels', REFERENCE_CLASS, 'BackupTunnels' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels',
[], [],
''' Configure MPLS TE backup tunnels for this
interface
''',
'backup_tunnels',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'global-attributes',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces.Interface' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces.Interface',
False,
[
_MetaInfoClassMember('interface-name', ATTRIBUTE, 'str' , None, None,
[], ['(([a-zA-Z0-9_]*\\d+/){3,4}\\d+)|(([a-zA-Z0-9_]*\\d+/){3,4}\\d+\\.\\d+)|(([a-zA-Z0-9_]*\\d+/){2}([a-zA-Z0-9_]*\\d+))|(([a-zA-Z0-9_]*\\d+/){2}([a-zA-Z0-9_]+))|([a-zA-Z0-9_-]*\\d+)|([a-zA-Z0-9_-]*\\d+\\.\\d+)|(mpls)|(dwdm)'],
''' Interface name
''',
'interface_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('global-attributes', REFERENCE_CLASS, 'GlobalAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.GlobalAttributes',
[], [],
''' MPLS TE global interface configuration
''',
'global_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('lcac', REFERENCE_CLASS, 'Lcac' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.Lcac',
[], [],
''' LCAC specific MPLS interface configuration
''',
'lcac',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('transport-profile-link', REFERENCE_CLASS, 'TransportProfileLink' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface.TransportProfileLink',
[], [],
''' MPLS transport profile capable link
''',
'transport_profile_link',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'interface',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Interfaces' : {
'meta_info' : _MetaInfoClass('MplsTe.Interfaces',
False,
[
_MetaInfoClassMember('interface', REFERENCE_LIST, 'Interface' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces.Interface',
[], [],
''' Configure an MPLS TE interface
''',
'interface',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'interfaces',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller.TtiMode' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller.TtiMode',
False,
[
_MetaInfoClassMember('tcmid', ATTRIBUTE, 'int' , None, None,
[('1', '6')], [],
''' Tandem Connection Monitoring ID for the
interface
''',
'tcmid',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tti-mode-type', REFERENCE_ENUM_CLASS, 'GmplsttiModeEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'GmplsttiModeEnum',
[], [],
''' Type of Trail Trace Identifier
''',
'tti_mode_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tti-mode',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller',
False,
[
_MetaInfoClassMember('controller-name', ATTRIBUTE, 'str' , None, None,
[], ['(([a-zA-Z0-9_]*\\d+/){3,4}\\d+)|(([a-zA-Z0-9_]*\\d+/){3,4}\\d+\\.\\d+)|(([a-zA-Z0-9_]*\\d+/){2}([a-zA-Z0-9_]*\\d+))|(([a-zA-Z0-9_]*\\d+/){2}([a-zA-Z0-9_]+))|([a-zA-Z0-9_-]*\\d+)|([a-zA-Z0-9_-]*\\d+\\.\\d+)|(mpls)|(dwdm)'],
''' Controller name
''',
'controller_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('admin-weight', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Set administrative weight for the
interface
''',
'admin_weight',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('delay', ATTRIBUTE, 'int' , None, None,
[('1', '16777215')], [],
''' Set link delay for the interface
''',
'delay',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable GMPLS-NNI on the link
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tti-mode', REFERENCE_CLASS, 'TtiMode' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller.TtiMode',
[], [],
''' Set tandem connection monitoring for the
interface
''',
'tti_mode',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'controller',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers',
False,
[
_MetaInfoClassMember('controller', REFERENCE_LIST, 'Controller' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller',
[], [],
''' Configure a GMPLS NNI controller
''',
'controller',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'controllers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt',
False,
[
_MetaInfoClassMember('igp-area', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' IGP area
''',
'igp_area',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('controllers', REFERENCE_CLASS, 'Controllers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers',
[], [],
''' GMPLS-NNI controllers
''',
'controllers',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'ospf-int',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller.TtiMode' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller.TtiMode',
False,
[
_MetaInfoClassMember('tcmid', ATTRIBUTE, 'int' , None, None,
[('1', '6')], [],
''' Tandem Connection Monitoring ID for the
interface
''',
'tcmid',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tti-mode-type', REFERENCE_ENUM_CLASS, 'GmplsttiModeEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'GmplsttiModeEnum',
[], [],
''' Type of Trail Trace Identifier
''',
'tti_mode_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tti-mode',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller',
False,
[
_MetaInfoClassMember('controller-name', ATTRIBUTE, 'str' , None, None,
[], ['(([a-zA-Z0-9_]*\\d+/){3,4}\\d+)|(([a-zA-Z0-9_]*\\d+/){3,4}\\d+\\.\\d+)|(([a-zA-Z0-9_]*\\d+/){2}([a-zA-Z0-9_]*\\d+))|(([a-zA-Z0-9_]*\\d+/){2}([a-zA-Z0-9_]+))|([a-zA-Z0-9_-]*\\d+)|([a-zA-Z0-9_-]*\\d+\\.\\d+)|(mpls)|(dwdm)'],
''' Controller name
''',
'controller_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('admin-weight', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Set administrative weight for the
interface
''',
'admin_weight',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('delay', ATTRIBUTE, 'int' , None, None,
[('1', '16777215')], [],
''' Set link delay for the interface
''',
'delay',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable GMPLS-NNI on the link
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tti-mode', REFERENCE_CLASS, 'TtiMode' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller.TtiMode',
[], [],
''' Set tandem connection monitoring for the
interface
''',
'tti_mode',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'controller',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers',
False,
[
_MetaInfoClassMember('controller', REFERENCE_LIST, 'Controller' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller',
[], [],
''' Configure a GMPLS NNI controller
''',
'controller',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'controllers',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr',
False,
[
_MetaInfoClassMember('address', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' Area ID if in IP address format
''',
'address',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('controllers', REFERENCE_CLASS, 'Controllers' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers',
[], [],
''' GMPLS-NNI controllers
''',
'controllers',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'ospfip-addr',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances.TopologyInstance' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances.TopologyInstance',
False,
[
_MetaInfoClassMember('igp-instance-name', ATTRIBUTE, 'str' , None, None,
[(0, 40)], [],
''' Name of IGP instance
''',
'igp_instance_name',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('igp-type', REFERENCE_ENUM_CLASS, 'MplsTeIgpProtocolEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTeIgpProtocolEnum',
[], [],
''' IGP type
''',
'igp_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('ospf-area-type', REFERENCE_ENUM_CLASS, 'OspfAreaModeEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'OspfAreaModeEnum',
[], [],
''' OSPF area format
''',
'ospf_area_type',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('ospf-int', REFERENCE_LIST, 'OspfInt' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt',
[], [],
''' ospf int
''',
'ospf_int',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('ospfip-addr', REFERENCE_LIST, 'OspfipAddr' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr',
[], [],
''' ospfip addr
''',
'ospfip_addr',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'topology-instance',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TopologyInstances' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TopologyInstances',
False,
[
_MetaInfoClassMember('topology-instance', REFERENCE_LIST, 'TopologyInstance' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances.TopologyInstance',
[], [],
''' GMPLS-NNI topology instance configuration
''',
'topology_instance',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'topology-instances',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TunnelHeads.TunnelHead.SignalledBandwidth' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TunnelHeads.TunnelHead.SignalledBandwidth',
False,
[
_MetaInfoClassMember('bitrate', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Bitrate value in Kbps for ODUflex framing
type
''',
'bitrate',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('od-uflex-framing-type', REFERENCE_ENUM_CLASS, 'OtnSignaledBandwidthFlexFramingEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'OtnSignaledBandwidthFlexFramingEnum',
[], [],
''' Framing type in case of ODUflex signal type
''',
'od_uflex_framing_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('signalled-bandwidth-type', REFERENCE_ENUM_CLASS, 'OtnSignaledBandwidthEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'OtnSignaledBandwidthEnum',
[], [],
''' The g.709 signal type requested
''',
'signalled_bandwidth_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'signalled-bandwidth',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TunnelHeads.TunnelHead.ProtectionSwitching' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TunnelHeads.TunnelHead.ProtectionSwitching',
False,
[
_MetaInfoClassMember('lockout', REFERENCE_ENUM_CLASS, 'OtnProtectionSwitchLockoutEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'OtnProtectionSwitchLockoutEnum',
[], [],
''' The configuration is used to prevent switch
over for a particular path type in tunnel
''',
'lockout',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'protection-switching',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TunnelHeads.TunnelHead.Logging' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TunnelHeads.TunnelHead.Logging',
False,
[
_MetaInfoClassMember('active-lsp-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all tunnel messages for changes in
Active LSP
''',
'active_lsp_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('homepath-state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all messages for changes in state of
Homepath of Working LSP
''',
'homepath_state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('insufficient-bw-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log tunnel messages for insufficient
bandwidth
''',
'insufficient_bw_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-change-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all tunnel messages for changes in
path-change
''',
'path_change_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('signalling-state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all tunnel sub-LSP state messages
''',
'signalling_state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('static-cross-connect-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all tunnel messages for static
cross-connect messages
''',
'static_cross_connect_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-state-message', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Log all tunnel messages for changes in
tunnel-state
''',
'tunnel_state_message',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'logging',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions.PathOption' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions.PathOption',
False,
[
_MetaInfoClassMember('preference-level', ATTRIBUTE, 'int' , None, None,
[('1', '1000')], [],
''' Preference level for this path option
''',
'preference_level',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('lockdown', REFERENCE_ENUM_CLASS, 'MplsTePathOptionPropertyEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathOptionPropertyEnum',
[], [],
''' Lockdown properties
''',
'lockdown',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-id', ATTRIBUTE, 'int' , None, None,
[('1', '65535')], [],
''' The ID of the IP explicit path associated
with this option
''',
'path_id',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-name', ATTRIBUTE, 'str' , None, None,
[], [],
''' The name of the IP explicit path associated
with this option
''',
'path_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-type', REFERENCE_ENUM_CLASS, 'MplsTePathOptionEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathOptionEnum',
[], [],
''' The type of the path option
''',
'path_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('protected-by-preference-level', ATTRIBUTE, 'int' , None, None,
[('1', '1001')], [],
''' Preference level of the protecting explicit
path.
''',
'protected_by_preference_level',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('restore-by-preference-level', ATTRIBUTE, 'int' , None, None,
[('1', '1000')], [],
''' Preference level of the restore path.
''',
'restore_by_preference_level',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('xro-attribute-set-name', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' The name of the XRO attribute set to be
used for this path-option
''',
'xro_attribute_set_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('xro-type', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' The route-exclusion type
''',
'xro_type',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-option',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions',
False,
[
_MetaInfoClassMember('path-option', REFERENCE_LIST, 'PathOption' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions.PathOption',
[], [],
''' The existence of this configuration
indicates the path options have been set for
the tunnel
''',
'path_option',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'path-options',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TunnelHeads.TunnelHead.StaticUni' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TunnelHeads.TunnelHead.StaticUni',
False,
[
_MetaInfoClassMember('egress-controller-if-index', ATTRIBUTE, 'int' , None, None,
[('-2147483648', '2147483647')], [],
''' Interface index of Egress controller
''',
'egress_controller_if_index',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('ingress-controller-name', ATTRIBUTE, 'str' , None, None,
[(0, 255)], [],
''' Name of ingress controller
''',
'ingress_controller_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'static-uni',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TunnelHeads.TunnelHead' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TunnelHeads.TunnelHead',
False,
[
_MetaInfoClassMember('tunnel-id', ATTRIBUTE, 'int' , None, None,
[('0', '65535')], [],
''' Tunnel ID
''',
'tunnel_id',
'Cisco-IOS-XR-mpls-te-cfg', True),
_MetaInfoClassMember('current-lsp-shutdown', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' The existence of this configuration indicates
the current/working LSP of tunnel is shutdown
''',
'current_lsp_shutdown',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('destination', ATTRIBUTE, 'str' , None, None,
[], ['(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'],
''' The existence of this configuration indicates
the destination has been set for the tunnel
''',
'destination',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' The existence of this configuration indicates
the a new GMPLS NNI tunnel has been enabled
''',
'enable',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('logging', REFERENCE_CLASS, 'Logging' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TunnelHeads.TunnelHead.Logging',
[], [],
''' Tunnel event logging
''',
'logging',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-options', REFERENCE_CLASS, 'PathOptions' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions',
[], [],
''' GMPLS NNI path options
''',
'path_options',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-protection-attribute-set-profile', ATTRIBUTE, 'str' , None, None,
[(0, 64)], [],
''' The name of the path-protection profile to be
included in signalling messages
''',
'path_protection_attribute_set_profile',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-metric', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionMetricEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionMetricEnum',
[], [],
''' Path selection configuration for this
specific tunnel
''',
'path_selection_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('payload', REFERENCE_ENUM_CLASS, 'OtnPayloadEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'OtnPayloadEnum',
[], [],
''' The existence of this configuration indicates
the Payload type have been set for the tunnel
''',
'payload',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('protection-switching', REFERENCE_CLASS, 'ProtectionSwitching' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TunnelHeads.TunnelHead.ProtectionSwitching',
[], [],
''' The configuration for a GMPLS NNI tunnel
protection switch
''',
'protection_switching',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('record-route', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Record the route used by the tunnel
''',
'record_route',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('restore-lsp-shutdown', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' The existence of this configuration indicates
the restore LSP of tunnel is shutdown
''',
'restore_lsp_shutdown',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('shutdown', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' The existence of this configuration indicates
the tunnel is shutdown
''',
'shutdown',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('signalled-bandwidth', REFERENCE_CLASS, 'SignalledBandwidth' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TunnelHeads.TunnelHead.SignalledBandwidth',
[], [],
''' The existence of this configuration indicates
the signalled bandwidth has been set for the
tunnel
''',
'signalled_bandwidth',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('signalled-name', ATTRIBUTE, 'str' , None, None,
[(0, 254)], [],
''' The name of the tunnel to be included in
signalling messages
''',
'signalled_name',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('standby-lsp-shutdown', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' The existence of this configuration indicates
the standby/protect LSP of tunnel is shutdown
''',
'standby_lsp_shutdown',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('static-uni', REFERENCE_CLASS, 'StaticUni' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TunnelHeads.TunnelHead.StaticUni',
[], [],
''' The existence of this configuration indicates
the static UNI endpoints have been set for
the tunnel
''',
'static_uni',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-head',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni.TunnelHeads' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni.TunnelHeads',
False,
[
_MetaInfoClassMember('tunnel-head', REFERENCE_LIST, 'TunnelHead' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TunnelHeads.TunnelHead',
[], [],
''' The configuration for a GMPLS NNI tunnel
head-end
''',
'tunnel_head',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'tunnel-heads',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.GmplsNni' : {
'meta_info' : _MetaInfoClass('MplsTe.GmplsNni',
False,
[
_MetaInfoClassMember('enable-gmpls-nni', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable MPLS Traffic Engineering GMPLS-NNI
''',
'enable_gmpls_nni',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('path-selection-metric', REFERENCE_ENUM_CLASS, 'MplsTePathSelectionMetricEnum' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTePathSelectionMetricEnum',
[], [],
''' Path selection configuration for all gmpls nni
tunnels
''',
'path_selection_metric',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('topology-instances', REFERENCE_CLASS, 'TopologyInstances' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TopologyInstances',
[], [],
''' GMPLS-NNI topology instance table
''',
'topology_instances',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('tunnel-heads', REFERENCE_CLASS, 'TunnelHeads' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni.TunnelHeads',
[], [],
''' GMPLS-NNI tunnel-head table
''',
'tunnel_heads',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'gmpls-nni',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Lcac.Bfd' : {
'meta_info' : _MetaInfoClass('MplsTe.Lcac.Bfd',
False,
[
_MetaInfoClassMember('detection-multiplier', ATTRIBUTE, 'int' , None, None,
[('2', '10')], [],
''' Detection multiplier for BFD sessions created
by TE
''',
'detection_multiplier',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('interval', ATTRIBUTE, 'int' , None, None,
[('15', '200')], [],
''' Hello interval for BFD sessions created by TE
''',
'interval',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'bfd',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Lcac.FloodingThreshold' : {
'meta_info' : _MetaInfoClass('MplsTe.Lcac.FloodingThreshold',
False,
[
_MetaInfoClassMember('down-stream', ATTRIBUTE, 'int' , None, None,
[('0', '100')], [],
''' Downward flooding Threshold in percentages of
total bandwidth
''',
'down_stream',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('up-stream', ATTRIBUTE, 'int' , None, None,
[('0', '100')], [],
''' Upward flooding Threshold in percentages of
total bandwidth
''',
'up_stream',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'flooding-threshold',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe.Lcac' : {
'meta_info' : _MetaInfoClass('MplsTe.Lcac',
False,
[
_MetaInfoClassMember('bandwidth-hold-timer', ATTRIBUTE, 'int' , None, None,
[('1', '300')], [],
''' Bandwidth hold timer value (seconds)
''',
'bandwidth_hold_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('bfd', REFERENCE_CLASS, 'Bfd' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Lcac.Bfd',
[], [],
''' BFD configuration
''',
'bfd',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('delay-preempt-bundle-capacity-timer', ATTRIBUTE, 'int' , None, None,
[('0', '300')], [],
''' Bundle capacity preemption timer value
(seconds)
''',
'delay_preempt_bundle_capacity_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('flooding-threshold', REFERENCE_CLASS, 'FloodingThreshold' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Lcac.FloodingThreshold',
[], [],
''' Configure flooding threshold as percentage of
total link bandwidth.
''',
'flooding_threshold',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('periodic-flooding-timer', ATTRIBUTE, 'int' , None, None,
[('0', '3600')], [],
''' Periodic flooding value (seconds)
''',
'periodic_flooding_timer',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'lcac',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
'MplsTe' : {
'meta_info' : _MetaInfoClass('MplsTe',
False,
[
_MetaInfoClassMember('diff-serv-traffic-engineering', REFERENCE_CLASS, 'DiffServTrafficEngineering' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.DiffServTrafficEngineering',
[], [],
''' Configure Diff-Serv Traffic-Engineering
''',
'diff_serv_traffic_engineering',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('enable-traffic-engineering', ATTRIBUTE, 'Empty' , None, None,
[], [],
''' Enable MPLS Traffic Engineering
''',
'enable_traffic_engineering',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('global-attributes', REFERENCE_CLASS, 'GlobalAttributes' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GlobalAttributes',
[], [],
''' Configure MPLS TE global attributes
''',
'global_attributes',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('gmpls-nni', REFERENCE_CLASS, 'GmplsNni' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsNni',
[], [],
''' GMPLS-NNI configuration
''',
'gmpls_nni',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('gmpls-uni', REFERENCE_CLASS, 'GmplsUni' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.GmplsUni',
[], [],
''' GMPLS-UNI configuration
''',
'gmpls_uni',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('interfaces', REFERENCE_CLASS, 'Interfaces' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Interfaces',
[], [],
''' Configure MPLS TE interfaces
''',
'interfaces',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('lcac', REFERENCE_CLASS, 'Lcac' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.Lcac',
[], [],
''' LCAC specific MPLS global configuration
''',
'lcac',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('named-tunnels', REFERENCE_CLASS, 'NamedTunnels' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.NamedTunnels',
[], [],
''' Configure MPLS TE tunnel
''',
'named_tunnels',
'Cisco-IOS-XR-mpls-te-cfg', False),
_MetaInfoClassMember('transport-profile', REFERENCE_CLASS, 'TransportProfile' , 'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg', 'MplsTe.TransportProfile',
[], [],
''' MPLS transport profile configuration data
''',
'transport_profile',
'Cisco-IOS-XR-mpls-te-cfg', False),
],
'Cisco-IOS-XR-mpls-te-cfg',
'mpls-te',
_yang_ns._namespaces['Cisco-IOS-XR-mpls-te-cfg'],
'ydk.models.cisco_ios_xr.Cisco_IOS_XR_mpls_te_cfg'
),
},
}
_meta_table['MplsTe.DiffServTrafficEngineering.Classes.Class_']['meta_info'].parent =_meta_table['MplsTe.DiffServTrafficEngineering.Classes']['meta_info']
_meta_table['MplsTe.DiffServTrafficEngineering.Classes']['meta_info'].parent =_meta_table['MplsTe.DiffServTrafficEngineering']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup.PathComputation']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups.PathSetup']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection.Invalidation']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.Underflow']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.Overflow']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.BandwidthLimits']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth.AdjustmentThreshold']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce.Metric']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr.Destination']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.Metric']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.AutorouteAnnounce']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute.DestinationXr']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.PathSetups']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.TunnelPathSelection']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.AutoBandwidth']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Priority']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Logging']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Bandwidth']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.Autoroute']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.NewStyleAffinityAffinityTypes']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes.FastReroute']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelAttributes']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel.TunnelId']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels.Tunnel']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels.Tunnels']['meta_info']
_meta_table['MplsTe.NamedTunnels.Tunnels']['meta_info'].parent =_meta_table['MplsTe.NamedTunnels']['meta_info']
_meta_table['MplsTe.GmplsUni.Timers.PathOptionTimers.Holddown']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Timers.PathOptionTimers']['meta_info']
_meta_table['MplsTe.GmplsUni.Timers.PathOptionTimers']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Timers']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions.PathOption']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.PathOptions']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Recording']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Logging']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead.Priority']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller.Announce']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers.Controller']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller.ControllerLogging']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers.Controller']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller.GmplsUnitunnelHead']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers.Controller']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers.Controller']['meta_info'].parent =_meta_table['MplsTe.GmplsUni.Controllers']['meta_info']
_meta_table['MplsTe.GmplsUni.Timers']['meta_info'].parent =_meta_table['MplsTe.GmplsUni']['meta_info']
_meta_table['MplsTe.GmplsUni.Controllers']['meta_info'].parent =_meta_table['MplsTe.GmplsUni']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Pcc.TunnelRange']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Pcc']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel.TunnelRange']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers.Removal']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Backup.Timers']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Backup']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Backup.TunnelRange']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Backup']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups.MeshGroup']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers.Removal']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh.MeshGroups']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh.Timers']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh.TunnelRange']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel.TunnelRange']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Pcc']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.P2PAutoTunnel']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Backup']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.Mesh']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel.P2MpAutoTunnel']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AutoTunnel']['meta_info']
_meta_table['MplsTe.GlobalAttributes.HardwareOutOfResource.OorRedState']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.HardwareOutOfResource']['meta_info']
_meta_table['MplsTe.GlobalAttributes.HardwareOutOfResource.OorYellowState']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.HardwareOutOfResource']['meta_info']
_meta_table['MplsTe.GlobalAttributes.HardwareOutOfResource.OorGreenState']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.HardwareOutOfResource']['meta_info']
_meta_table['MplsTe.GlobalAttributes.SecondaryRouterIds.SecondaryRouterId']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.SecondaryRouterIds']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers.StaticSrlgMember']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg.Names.Name.StaticSrlgMembers']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Srlg.Names.Name']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg.Names.Name']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Srlg.Names']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps.Ipv4AddressMap']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg.Values.Value.Ipv4AddressMaps']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Srlg.Values.Value']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg.Values.Value']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Srlg.Values']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg.Names']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Srlg']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg.Values']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Srlg']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Queues.Queue']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.Queues']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection.Invalidation']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce.Bidirectional']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce.DisjointPath']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.BfdReversePath']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AttPathOptionPathSelection']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Pce']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.AffinityMask']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.Bandwidth']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute.NewStyleAffinityAffinityTypes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes.PathOptionAttribute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Priority']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.AffinityMask']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Bandwidth']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.PathSelection']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.NewStyleAffinityAffinityTypes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.FastReroute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute.Logging']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes.P2MpteAttribute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes.Index']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend.Indexes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.SegmentRoutingPrepend']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection.Invalidation']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce.Bidirectional']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce.DisjointPath']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.PathSelection']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Pce']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.AffinityMask']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.Logging']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute.NewStyleAffinityAffinityTypes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes.P2PTeAttribute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.SignalledName']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.AutoBackupLogging']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.Priority']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.AffinityMask']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.PathSelection']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.PolicyClasses']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute.NewStyleAffinityAffinityTypes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes.AutoBackupAttribute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName.ScheduleDuration']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName.ScheduleDate']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames.RevertScheduleName']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.RevertScheduleNames']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.SubNetworkConnectionMode']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.Timers']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute.PathSelection']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes.OtnPpAttribute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityType']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes.NewStyleAffinityAffinityTypeAffinity1Affinity2Affinity3Affinity4Affinity5Affinity6Affinity7Affinity8Affinity9Affinity10']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.AutoMeshLogging']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.Priority']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.AffinityMask']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.Bandwidth']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.PathSelection']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.PolicyClasses']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.NewStyleAffinityAffinityTypes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute.FastReroute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes.AutoMeshAttribute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs.Srlg']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs.Fec']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp.Fecs']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Srlgs']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity.Lsp']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathDiversity']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute.PathSelection']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes.XroAttribute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.PathOptionAttributes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2MpteAttributes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.P2PTeAttributes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoBackupAttributes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.OtnPpAttributes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.AutoMeshAttributes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet.XroAttributes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AttributeSet']['meta_info']
_meta_table['MplsTe.GlobalAttributes.BfdOverLsp.Tail']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.BfdOverLsp']['meta_info']
_meta_table['MplsTe.GlobalAttributes.BfdOverLsp.Head']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.BfdOverLsp']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PceAttributes.PceStateful.StatefulTimers']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PceAttributes.PceStateful']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PceAttributes.Peers.Peer']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PceAttributes.Peers']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PceAttributes.Logging.Events']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PceAttributes.Logging']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PceAttributes.PceStateful']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PceAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PceAttributes.Timer']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PceAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PceAttributes.Peers']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PceAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PceAttributes.Logging']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PceAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.FastReroute.Timers']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.FastReroute']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PathSelection.LooseMetrics.LooseMetric']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PathSelection.LooseMetrics']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PathSelection.LooseAffinities.LooseAffinity']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PathSelection.LooseAffinities']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PathSelection.LooseMetrics']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PathSelection']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PathSelection.Invalidation']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PathSelection']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PathSelection.IgnoreOverloadRole']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PathSelection']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PathSelection.LooseAffinities']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.PathSelection']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AffinityMappings.AffinityMapping']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes.AffinityMappings']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AutoTunnel']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.HardwareOutOfResource']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.SecondaryRouterIds']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Srlg']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Queues']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.Mib']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AttributeSet']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.BfdOverLsp']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PceAttributes']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.SoftPreemption']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.FastReroute']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.PathSelection']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.GlobalAttributes.AffinityMappings']['meta_info'].parent =_meta_table['MplsTe.GlobalAttributes']['meta_info']
_meta_table['MplsTe.TransportProfile.Fault.ProtectionTrigger.Ldi']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Fault.ProtectionTrigger']['meta_info']
_meta_table['MplsTe.TransportProfile.Fault.ProtectionTrigger.Lkr']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Fault.ProtectionTrigger']['meta_info']
_meta_table['MplsTe.TransportProfile.Fault.ProtectionTrigger']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Fault']['meta_info']
_meta_table['MplsTe.TransportProfile.Alarm.SuppressEvent']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Alarm']['meta_info']
_meta_table['MplsTe.TransportProfile.Bfd.MinIntervalStandby']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Bfd']['meta_info']
_meta_table['MplsTe.TransportProfile.Bfd.MinInterval']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Bfd']['meta_info']
_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp.ForwardIoMap']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp']['meta_info']
_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp.ReverseIoMap']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp']['meta_info']
_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint.Source']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint']['meta_info']
_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint.Destination']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint']['meta_info']
_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint.ForwardLsp']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint']['meta_info']
_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint.ReverseLsp']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint']['meta_info']
_meta_table['MplsTe.TransportProfile.Midpoints.Midpoint']['meta_info'].parent =_meta_table['MplsTe.TransportProfile.Midpoints']['meta_info']
_meta_table['MplsTe.TransportProfile.Fault']['meta_info'].parent =_meta_table['MplsTe.TransportProfile']['meta_info']
_meta_table['MplsTe.TransportProfile.Alarm']['meta_info'].parent =_meta_table['MplsTe.TransportProfile']['meta_info']
_meta_table['MplsTe.TransportProfile.Bfd']['meta_info'].parent =_meta_table['MplsTe.TransportProfile']['meta_info']
_meta_table['MplsTe.TransportProfile.Midpoints']['meta_info'].parent =_meta_table['MplsTe.TransportProfile']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.TransportProfileLink.Links.Link']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.TransportProfileLink.Links']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.TransportProfileLink.Links']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.TransportProfileLink']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.Switchings.Switching']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac.Switchings']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.AttributeNames.AttributeName']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac.AttributeNames']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.Srlgs.Srlg']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac.Srlgs']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.Switchings']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.FloodArea']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.AttributeNameXr']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.AttributeNames']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.Srlgs']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.UpThresholds']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac.DownThresholds']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.Lcac']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels.BackupTunnel']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup.Exclude']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel.Backup']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths.BackupPath']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.BackupTunnels']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.AutoTunnel']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes.BackupPaths']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.TransportProfileLink']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.Lcac']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface']['meta_info']
_meta_table['MplsTe.Interfaces.Interface.GlobalAttributes']['meta_info'].parent =_meta_table['MplsTe.Interfaces.Interface']['meta_info']
_meta_table['MplsTe.Interfaces.Interface']['meta_info'].parent =_meta_table['MplsTe.Interfaces']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller.TtiMode']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers.Controller']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt.Controllers']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller.TtiMode']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers.Controller']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr.Controllers']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfInt']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance.OspfipAddr']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances.TopologyInstance']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TopologyInstances']['meta_info']
_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions.PathOption']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions']['meta_info']
_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead.SignalledBandwidth']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead']['meta_info']
_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead.ProtectionSwitching']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead']['meta_info']
_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead.Logging']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead']['meta_info']
_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead.PathOptions']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead']['meta_info']
_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead.StaticUni']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead']['meta_info']
_meta_table['MplsTe.GmplsNni.TunnelHeads.TunnelHead']['meta_info'].parent =_meta_table['MplsTe.GmplsNni.TunnelHeads']['meta_info']
_meta_table['MplsTe.GmplsNni.TopologyInstances']['meta_info'].parent =_meta_table['MplsTe.GmplsNni']['meta_info']
_meta_table['MplsTe.GmplsNni.TunnelHeads']['meta_info'].parent =_meta_table['MplsTe.GmplsNni']['meta_info']
_meta_table['MplsTe.Lcac.Bfd']['meta_info'].parent =_meta_table['MplsTe.Lcac']['meta_info']
_meta_table['MplsTe.Lcac.FloodingThreshold']['meta_info'].parent =_meta_table['MplsTe.Lcac']['meta_info']
_meta_table['MplsTe.DiffServTrafficEngineering']['meta_info'].parent =_meta_table['MplsTe']['meta_info']
_meta_table['MplsTe.NamedTunnels']['meta_info'].parent =_meta_table['MplsTe']['meta_info']
_meta_table['MplsTe.GmplsUni']['meta_info'].parent =_meta_table['MplsTe']['meta_info']
_meta_table['MplsTe.GlobalAttributes']['meta_info'].parent =_meta_table['MplsTe']['meta_info']
_meta_table['MplsTe.TransportProfile']['meta_info'].parent =_meta_table['MplsTe']['meta_info']
_meta_table['MplsTe.Interfaces']['meta_info'].parent =_meta_table['MplsTe']['meta_info']
_meta_table['MplsTe.GmplsNni']['meta_info'].parent =_meta_table['MplsTe']['meta_info']
_meta_table['MplsTe.Lcac']['meta_info'].parent =_meta_table['MplsTe']['meta_info']
| 58.035478
| 593
| 0.563214
| 56,458
| 659,225
| 6.350756
| 0.017234
| 0.077222
| 0.096527
| 0.104722
| 0.929251
| 0.919311
| 0.906345
| 0.883701
| 0.853254
| 0.798684
| 0
| 0.014228
| 0.299112
| 659,225
| 11,358
| 594
| 58.040588
| 0.761784
| 0
| 0
| 0.608836
| 0
| 0.008956
| 0.520993
| 0.446663
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.000403
| 0.000805
| 0
| 0.000805
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d1d82b864cfb192cf0fff8eab19bf7de0072b126
| 148
|
py
|
Python
|
src/ltkit/__init__.py
|
ptr-yudai/ltkit
|
a0f82712c7391a2ed2d06d2a80be982256cae5fa
|
[
"MIT"
] | 1
|
2016-05-05T17:05:54.000Z
|
2016-05-05T17:05:54.000Z
|
src/ltkit/__init__.py
|
ptr-yudai/ltkit
|
a0f82712c7391a2ed2d06d2a80be982256cae5fa
|
[
"MIT"
] | 1
|
2016-05-05T17:31:35.000Z
|
2016-05-06T08:37:32.000Z
|
src/ltkit/__init__.py
|
ptr-yudai/ltkit
|
a0f82712c7391a2ed2d06d2a80be982256cae5fa
|
[
"MIT"
] | null | null | null |
import module.message
import mod_screenshot
import network.server
import network.client
import panel.client.post
import panel.client.questionnaire
| 18.5
| 33
| 0.864865
| 20
| 148
| 6.35
| 0.55
| 0.204724
| 0.267717
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087838
| 148
| 7
| 34
| 21.142857
| 0.940741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
ae5cfd61ac03d51b4c5a1366eeecabf71f3e7593
| 86
|
py
|
Python
|
tests/test_version.py
|
Kludex/fastapi-2fa
|
e0db1b9f6b9719c2a405d5d9d598b26ba73b54c5
|
[
"MIT"
] | 1
|
2021-01-05T11:49:07.000Z
|
2021-01-05T11:49:07.000Z
|
tests/test_version.py
|
Kludex/fastapi-2fa
|
e0db1b9f6b9719c2a405d5d9d598b26ba73b54c5
|
[
"MIT"
] | null | null | null |
tests/test_version.py
|
Kludex/fastapi-2fa
|
e0db1b9f6b9719c2a405d5d9d598b26ba73b54c5
|
[
"MIT"
] | null | null | null |
import fastapi_2fa
def test_version():
assert fastapi_2fa.__version__ == "0.1.0"
| 17.2
| 45
| 0.732558
| 13
| 86
| 4.307692
| 0.692308
| 0.357143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068493
| 0.151163
| 86
| 4
| 46
| 21.5
| 0.69863
| 0
| 0
| 0
| 0
| 0
| 0.05814
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
881d3cc5098b4e5431f690d0da78ab29e202d3d8
| 59,200
|
py
|
Python
|
strongdm/svc.py
|
strongdm/strongdm-sdk-python
|
6abe6fa5b2a6f268bc6983cdfe96a8481b734c97
|
[
"Apache-2.0"
] | 3
|
2020-10-22T04:54:22.000Z
|
2022-03-24T20:26:03.000Z
|
strongdm/svc.py
|
strongdm/strongdm-sdk-python
|
6abe6fa5b2a6f268bc6983cdfe96a8481b734c97
|
[
"Apache-2.0"
] | 1
|
2021-12-02T17:08:36.000Z
|
2021-12-06T23:55:29.000Z
|
strongdm/svc.py
|
strongdm/strongdm-sdk-python
|
6abe6fa5b2a6f268bc6983cdfe96a8481b734c97
|
[
"Apache-2.0"
] | 3
|
2020-04-28T22:07:27.000Z
|
2021-01-21T19:13:31.000Z
|
# Copyright 2020 StrongDM Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file was generated by protogen. DO NOT EDIT.
import grpc
from . import plumbing
from . import models
from .options_pb2 import *
from .options_pb2_grpc import *
from .spec_pb2 import *
from .spec_pb2_grpc import *
from .tags_pb2 import *
from .tags_pb2_grpc import *
from .account_attachments_pb2 import *
from .account_attachments_pb2_grpc import *
from .account_grants_pb2 import *
from .account_grants_pb2_grpc import *
from .accounts_pb2 import *
from .accounts_pb2_grpc import *
from .control_panel_pb2 import *
from .control_panel_pb2_grpc import *
from .drivers_pb2 import *
from .drivers_pb2_grpc import *
from .nodes_pb2 import *
from .nodes_pb2_grpc import *
from .resources_pb2 import *
from .resources_pb2_grpc import *
from .role_attachments_pb2 import *
from .role_attachments_pb2_grpc import *
from .role_grants_pb2 import *
from .role_grants_pb2_grpc import *
from .roles_pb2 import *
from .roles_pb2_grpc import *
from .secret_store_types_pb2 import *
from .secret_store_types_pb2_grpc import *
from .secret_stores_pb2 import *
from .secret_stores_pb2_grpc import *
class AccountAttachments:
"""AccountAttachments assign an account to a role or composite role."""
def __init__(self, channel, client):
self.parent = client
self.stub = AccountAttachmentsStub(channel)
def create(self, account_attachment, timeout=None):
"""Create registers a new AccountAttachment."""
req = AccountAttachmentCreateRequest()
if account_attachment is not None:
req.account_attachment.CopyFrom(
plumbing.convert_account_attachment_to_plumbing(
account_attachment))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata(
'AccountAttachments.Create', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountAttachmentCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.account_attachment = plumbing.convert_account_attachment_to_porcelain(
plumbing_response.account_attachment)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one AccountAttachment by ID."""
req = AccountAttachmentGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('AccountAttachments.Get',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountAttachmentGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.account_attachment = plumbing.convert_account_attachment_to_porcelain(
plumbing_response.account_attachment)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a AccountAttachment by ID."""
req = AccountAttachmentDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata(
'AccountAttachments.Delete', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountAttachmentDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of AccountAttachments matching a given set of criteria."""
req = AccountAttachmentListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata(
'AccountAttachments.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.account_attachments:
yield plumbing.convert_account_attachment_to_porcelain(
plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
class AccountGrants:
"""AccountGrants assign a resource directly to an account, giving the account the permission to connect to that resource."""
def __init__(self, channel, client):
self.parent = client
self.stub = AccountGrantsStub(channel)
def create(self, account_grant, timeout=None):
"""Create registers a new AccountGrant."""
req = AccountGrantCreateRequest()
if account_grant is not None:
req.account_grant.CopyFrom(
plumbing.convert_account_grant_to_plumbing(account_grant))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata('AccountGrants.Create',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountGrantCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.account_grant = plumbing.convert_account_grant_to_porcelain(
plumbing_response.account_grant)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one AccountGrant by ID."""
req = AccountGrantGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('AccountGrants.Get',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountGrantGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.account_grant = plumbing.convert_account_grant_to_porcelain(
plumbing_response.account_grant)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a AccountGrant by ID."""
req = AccountGrantDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata('AccountGrants.Delete',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountGrantDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of AccountGrants matching a given set of criteria."""
req = AccountGrantListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata(
'AccountGrants.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.account_grants:
yield plumbing.convert_account_grant_to_porcelain(
plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
class Accounts:
"""Accounts are users that have access to strongDM. There are two types of accounts:
1. **Users:** humans who are authenticated through username and password or SSO.
2. **Service Accounts:** machines that are authenticated using a service token."""
def __init__(self, channel, client):
self.parent = client
self.stub = AccountsStub(channel)
def create(self, account, timeout=None):
"""Create registers a new Account."""
req = AccountCreateRequest()
if account is not None:
req.account.CopyFrom(plumbing.convert_account_to_plumbing(account))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata('Accounts.Create', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.account = plumbing.convert_account_to_porcelain(
plumbing_response.account)
resp.token = (plumbing_response.token)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one Account by ID."""
req = AccountGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('Accounts.Get', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.account = plumbing.convert_account_to_porcelain(
plumbing_response.account)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def update(self, account, timeout=None):
"""Update patches a Account by ID."""
req = AccountUpdateRequest()
if account is not None:
req.account.CopyFrom(plumbing.convert_account_to_plumbing(account))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Update(
req,
metadata=self.parent.get_metadata('Accounts.Update', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountUpdateResponse()
resp.meta = plumbing.convert_update_response_metadata_to_porcelain(
plumbing_response.meta)
resp.account = plumbing.convert_account_to_porcelain(
plumbing_response.account)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a Account by ID."""
req = AccountDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata('Accounts.Delete', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.AccountDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of Accounts matching a given set of criteria."""
req = AccountListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata('Accounts.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.accounts:
yield plumbing.convert_account_to_porcelain(plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
class ControlPanel:
"""ControlPanel contains all administrative controls."""
def __init__(self, channel, client):
self.parent = client
self.stub = ControlPanelStub(channel)
def get_sshca_public_key(self, timeout=None):
"""GetSSHCAPublicKey retrieves the SSH CA public key."""
req = ControlPanelGetSSHCAPublicKeyRequest()
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.GetSSHCAPublicKey(
req,
metadata=self.parent.get_metadata(
'ControlPanel.GetSSHCAPublicKey', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.ControlPanelGetSSHCAPublicKeyResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.public_key = (plumbing_response.public_key)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def verify_jwt(self, token, timeout=None):
"""VerifyJWT reports whether the given JWT token (x-sdm-token) is valid."""
req = ControlPanelVerifyJWTRequest()
req.token = (token)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.VerifyJWT(
req,
metadata=self.parent.get_metadata('ControlPanel.VerifyJWT',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.ControlPanelVerifyJWTResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.valid = (plumbing_response.valid)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
class Nodes:
"""Nodes make up the strongDM network, and allow your users to connect securely to your resources. There are two types of nodes:
- **Gateways** are the entry points into network. They listen for connection from the strongDM client, and provide access to databases and servers.
- **Relays** are used to extend the strongDM network into segmented subnets. They provide access to databases and servers but do not listen for incoming connections."""
def __init__(self, channel, client):
self.parent = client
self.stub = NodesStub(channel)
def create(self, node, timeout=None):
"""Create registers a new Node."""
req = NodeCreateRequest()
if node is not None:
req.node.CopyFrom(plumbing.convert_node_to_plumbing(node))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata('Nodes.Create', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.NodeCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.node = plumbing.convert_node_to_porcelain(plumbing_response.node)
resp.token = (plumbing_response.token)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one Node by ID."""
req = NodeGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('Nodes.Get', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.NodeGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.node = plumbing.convert_node_to_porcelain(plumbing_response.node)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def update(self, node, timeout=None):
"""Update patches a Node by ID."""
req = NodeUpdateRequest()
if node is not None:
req.node.CopyFrom(plumbing.convert_node_to_plumbing(node))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Update(
req,
metadata=self.parent.get_metadata('Nodes.Update', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.NodeUpdateResponse()
resp.meta = plumbing.convert_update_response_metadata_to_porcelain(
plumbing_response.meta)
resp.node = plumbing.convert_node_to_porcelain(plumbing_response.node)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a Node by ID."""
req = NodeDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata('Nodes.Delete', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.NodeDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of Nodes matching a given set of criteria."""
req = NodeListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata('Nodes.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.nodes:
yield plumbing.convert_node_to_porcelain(plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
class Resources:
""""""
def __init__(self, channel, client):
self.parent = client
self.stub = ResourcesStub(channel)
def enumerate_tags(self, filter, *args, timeout=None):
"""EnumerateTags gets a list of the filter matching tags."""
req = EnumerateTagsRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.EnumerateTags(
req,
metadata=svc.parent.get_metadata(
'Resources.EnumerateTags', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.matches:
yield plumbing.convert_tag_to_porcelain(plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
def create(self, resource, timeout=None):
"""Create registers a new Resource."""
req = ResourceCreateRequest()
if resource is not None:
req.resource.CopyFrom(
plumbing.convert_resource_to_plumbing(resource))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata('Resources.Create', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.ResourceCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.resource = plumbing.convert_resource_to_porcelain(
plumbing_response.resource)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one Resource by ID."""
req = ResourceGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('Resources.Get', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.ResourceGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.resource = plumbing.convert_resource_to_porcelain(
plumbing_response.resource)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def update(self, resource, timeout=None):
"""Update patches a Resource by ID."""
req = ResourceUpdateRequest()
if resource is not None:
req.resource.CopyFrom(
plumbing.convert_resource_to_plumbing(resource))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Update(
req,
metadata=self.parent.get_metadata('Resources.Update', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.ResourceUpdateResponse()
resp.meta = plumbing.convert_update_response_metadata_to_porcelain(
plumbing_response.meta)
resp.resource = plumbing.convert_resource_to_porcelain(
plumbing_response.resource)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a Resource by ID."""
req = ResourceDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata('Resources.Delete', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.ResourceDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of Resources matching a given set of criteria."""
req = ResourceListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata(
'Resources.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.resources:
yield plumbing.convert_resource_to_porcelain(plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
class RoleAttachments:
"""RoleAttachments represent relationships between composite roles and the roles
that make up those composite roles. When a composite role is attached to another
role, the permissions granted to members of the composite role are augmented to
include the permissions granted to members of the attached role."""
def __init__(self, channel, client):
self.parent = client
self.stub = RoleAttachmentsStub(channel)
def create(self, role_attachment, timeout=None):
"""Create registers a new RoleAttachment."""
req = RoleAttachmentCreateRequest()
if role_attachment is not None:
req.role_attachment.CopyFrom(
plumbing.convert_role_attachment_to_plumbing(role_attachment))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata('RoleAttachments.Create',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleAttachmentCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.role_attachment = plumbing.convert_role_attachment_to_porcelain(
plumbing_response.role_attachment)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one RoleAttachment by ID."""
req = RoleAttachmentGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('RoleAttachments.Get',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleAttachmentGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.role_attachment = plumbing.convert_role_attachment_to_porcelain(
plumbing_response.role_attachment)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a RoleAttachment by ID."""
req = RoleAttachmentDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata('RoleAttachments.Delete',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleAttachmentDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of RoleAttachments matching a given set of criteria."""
req = RoleAttachmentListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata(
'RoleAttachments.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.role_attachments:
yield plumbing.convert_role_attachment_to_porcelain(
plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
class RoleGrants:
"""RoleGrants represent relationships between composite roles and the roles
that make up those composite roles. When a composite role is attached to another
role, the permissions granted to members of the composite role are augmented to
include the permissions granted to members of the attached role."""
def __init__(self, channel, client):
self.parent = client
self.stub = RoleGrantsStub(channel)
def create(self, role_grant, timeout=None):
"""Create registers a new RoleGrant."""
req = RoleGrantCreateRequest()
if role_grant is not None:
req.role_grant.CopyFrom(
plumbing.convert_role_grant_to_plumbing(role_grant))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata('RoleGrants.Create',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleGrantCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.role_grant = plumbing.convert_role_grant_to_porcelain(
plumbing_response.role_grant)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one RoleGrant by ID."""
req = RoleGrantGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('RoleGrants.Get', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleGrantGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.role_grant = plumbing.convert_role_grant_to_porcelain(
plumbing_response.role_grant)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a RoleGrant by ID."""
req = RoleGrantDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata('RoleGrants.Delete',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleGrantDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of RoleGrants matching a given set of criteria."""
req = RoleGrantListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata(
'RoleGrants.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.role_grants:
yield plumbing.convert_role_grant_to_porcelain(
plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
class Roles:
"""Roles are tools for controlling user access to resources. Each Role holds a
list of resources which they grant access to. Composite roles are a special
type of Role which have no resource associations of their own, but instead
grant access to the combined resources associated with a set of child roles.
Each user can be a member of one Role or composite role."""
def __init__(self, channel, client):
self.parent = client
self.stub = RolesStub(channel)
def create(self, role, timeout=None):
"""Create registers a new Role."""
req = RoleCreateRequest()
if role is not None:
req.role.CopyFrom(plumbing.convert_role_to_plumbing(role))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata('Roles.Create', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.role = plumbing.convert_role_to_porcelain(plumbing_response.role)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one Role by ID."""
req = RoleGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('Roles.Get', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.role = plumbing.convert_role_to_porcelain(plumbing_response.role)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def update(self, role, timeout=None):
"""Update patches a Role by ID."""
req = RoleUpdateRequest()
if role is not None:
req.role.CopyFrom(plumbing.convert_role_to_plumbing(role))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Update(
req,
metadata=self.parent.get_metadata('Roles.Update', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleUpdateResponse()
resp.meta = plumbing.convert_update_response_metadata_to_porcelain(
plumbing_response.meta)
resp.role = plumbing.convert_role_to_porcelain(plumbing_response.role)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a Role by ID."""
req = RoleDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata('Roles.Delete', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.RoleDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of Roles matching a given set of criteria."""
req = RoleListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata('Roles.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.roles:
yield plumbing.convert_role_to_porcelain(plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
class SecretStores:
"""SecretStores are servers where resource secrets (passwords, keys) are stored."""
def __init__(self, channel, client):
self.parent = client
self.stub = SecretStoresStub(channel)
def create(self, secret_store, timeout=None):
req = SecretStoreCreateRequest()
if secret_store is not None:
req.secret_store.CopyFrom(
plumbing.convert_secret_store_to_plumbing(secret_store))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Create(
req,
metadata=self.parent.get_metadata('SecretStores.Create',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.SecretStoreCreateResponse()
resp.meta = plumbing.convert_create_response_metadata_to_porcelain(
plumbing_response.meta)
resp.secret_store = plumbing.convert_secret_store_to_porcelain(
plumbing_response.secret_store)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def get(self, id, timeout=None):
"""Get reads one SecretStore by ID."""
req = SecretStoreGetRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Get(
req,
metadata=self.parent.get_metadata('SecretStores.Get', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.SecretStoreGetResponse()
resp.meta = plumbing.convert_get_response_metadata_to_porcelain(
plumbing_response.meta)
resp.secret_store = plumbing.convert_secret_store_to_porcelain(
plumbing_response.secret_store)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def update(self, secret_store, timeout=None):
"""Update patches a SecretStore by ID."""
req = SecretStoreUpdateRequest()
if secret_store is not None:
req.secret_store.CopyFrom(
plumbing.convert_secret_store_to_plumbing(secret_store))
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Update(
req,
metadata=self.parent.get_metadata('SecretStores.Update',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.SecretStoreUpdateResponse()
resp.meta = plumbing.convert_update_response_metadata_to_porcelain(
plumbing_response.meta)
resp.secret_store = plumbing.convert_secret_store_to_porcelain(
plumbing_response.secret_store)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def delete(self, id, timeout=None):
"""Delete removes a SecretStore by ID."""
req = SecretStoreDeleteRequest()
req.id = (id)
tries = 0
plumbing_response = None
while True:
try:
plumbing_response = self.stub.Delete(
req,
metadata=self.parent.get_metadata('SecretStores.Delete',
req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
break
resp = models.SecretStoreDeleteResponse()
resp.meta = plumbing.convert_delete_response_metadata_to_porcelain(
plumbing_response.meta)
resp.rate_limit = plumbing.convert_rate_limit_metadata_to_porcelain(
plumbing_response.rate_limit)
return resp
def list(self, filter, *args, timeout=None):
"""List gets a list of SecretStores matching a given set of criteria."""
req = SecretStoreListRequest()
req.meta.CopyFrom(ListRequestMetadata())
page_size_option = self.parent._test_options.get('PageSize')
if isinstance(page_size_option, int):
req.meta.limit = page_size_option
req.filter = plumbing.quote_filter_args(filter, *args)
def generator(svc, req):
tries = 0
while True:
try:
plumbing_response = svc.stub.List(
req,
metadata=svc.parent.get_metadata(
'SecretStores.List', req),
timeout=timeout)
except Exception as e:
if self.parent.shouldRetry(tries, e):
tries += 1
self.parent.jitterSleep(tries)
continue
raise plumbing.convert_error_to_porcelain(e) from e
tries = 0
for plumbing_item in plumbing_response.secret_stores:
yield plumbing.convert_secret_store_to_porcelain(
plumbing_item)
if plumbing_response.meta.next_cursor == '':
break
req.meta.cursor = plumbing_response.meta.next_cursor
return generator(self, req)
| 39.205298
| 169
| 0.575101
| 5,949
| 59,200
| 5.513027
| 0.062195
| 0.099033
| 0.058511
| 0.074915
| 0.844894
| 0.811019
| 0.800988
| 0.770833
| 0.770833
| 0.770833
| 0
| 0.003618
| 0.355743
| 59,200
| 1,509
| 170
| 39.231279
| 0.856293
| 0.073581
| 0
| 0.817102
| 0
| 0
| 0.014959
| 0.003923
| 0
| 0
| 0
| 0
| 0
| 1
| 0.050673
| false
| 0
| 0.026128
| 0
| 0.119557
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
88302bec4064c13e6372436a3f120e782d9d0104
| 122
|
py
|
Python
|
finrl/model/WorldModel/__init__.py
|
Adwaver4157/WorldModel_for_FinRL
|
0aa0a984aadffe0f6f2e83e55678c0e9304fba05
|
[
"MIT"
] | 1
|
2021-05-15T13:13:25.000Z
|
2021-05-15T13:13:25.000Z
|
finrl/model/WorldModel/__init__.py
|
Adwaver4157/WorldModel_for_FinRL
|
0aa0a984aadffe0f6f2e83e55678c0e9304fba05
|
[
"MIT"
] | null | null | null |
finrl/model/WorldModel/__init__.py
|
Adwaver4157/WorldModel_for_FinRL
|
0aa0a984aadffe0f6f2e83e55678c0e9304fba05
|
[
"MIT"
] | null | null | null |
from finrl.model.WorldModel.world_model import WorldModel
from finrl.model.WorldModel.policies import CnnPolicy, MlpPolicy
| 61
| 64
| 0.877049
| 16
| 122
| 6.625
| 0.5625
| 0.169811
| 0.264151
| 0.45283
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065574
| 122
| 2
| 64
| 61
| 0.929825
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
885a54224fb9afa2802464a9c43d70892e9ceb53
| 171
|
py
|
Python
|
mher/common/__init__.py
|
YangRui2015/Modular_HER
|
77acca83d6849d140ab893ec1b472b71e1da08d4
|
[
"MIT"
] | 13
|
2020-10-31T15:01:44.000Z
|
2021-11-30T06:51:15.000Z
|
mher/common/__init__.py
|
YangRui2015/Modular_HER
|
77acca83d6849d140ab893ec1b472b71e1da08d4
|
[
"MIT"
] | 1
|
2021-06-22T14:25:07.000Z
|
2021-06-23T11:47:37.000Z
|
mher/common/__init__.py
|
YangRui2015/Modular_HER
|
77acca83d6849d140ab893ec1b472b71e1da08d4
|
[
"MIT"
] | 2
|
2020-11-24T03:26:32.000Z
|
2021-05-14T01:20:57.000Z
|
# flake8: noqa F403
from mher.common.console_util import *
from mher.common.dataset import Dataset
from mher.common.math_util import *
from mher.common.misc_util import *
| 28.5
| 39
| 0.807018
| 27
| 171
| 5
| 0.444444
| 0.237037
| 0.414815
| 0.266667
| 0.355556
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02649
| 0.116959
| 171
| 5
| 40
| 34.2
| 0.86755
| 0.099415
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
887d8e0de2ae6f532fef1c3002eaa75e7115348f
| 8,254
|
py
|
Python
|
tests/test_discover.py
|
pyansys/example-coverage
|
3fa25ab2a4887f66266efee6c1f54b44bdbfe6c9
|
[
"MIT"
] | 2
|
2022-01-05T05:33:25.000Z
|
2022-01-26T13:25:58.000Z
|
tests/test_discover.py
|
pyansys/example-coverage
|
3fa25ab2a4887f66266efee6c1f54b44bdbfe6c9
|
[
"MIT"
] | 1
|
2021-08-19T04:56:53.000Z
|
2021-08-19T04:56:53.000Z
|
tests/test_discover.py
|
pyansys/example-coverage
|
3fa25ab2a4887f66266efee6c1f54b44bdbfe6c9
|
[
"MIT"
] | null | null | null |
import os
import sys
import io
import pytest
from ansys.tools.example_coverage import create_report
THIS_PATH = os.path.dirname(os.path.abspath(__file__))
ASSETS_DIRECTORY = os.path.join(THIS_PATH, 'assets')
class CaptureStdOut():
"""Capture standard output with a context manager."""
def __init__(self):
self._stream = io.StringIO()
def __enter__(self):
sys.stdout = self._stream
def __exit__(self, type, value, traceback):
sys.stdout = sys.__stdout__
@property
def content(self):
"""Return the captured content."""
return self._stream.getvalue()
def test_empty_folder():
""" Test a folder that does not contain any file or folder."""
path = os.path.join(ASSETS_DIRECTORY, "empty_")
with pytest.raises(Exception) as excinfo:
create_report(path)
assert "No python modules found in:" in str(excinfo.value)
assert "empty_" in str(excinfo.value)
def test_empty_folder_non_recursiveness():
"""Ensure that no source files are returned when recursiveness is disabled."""
path = os.path.join(ASSETS_DIRECTORY, "empty_")
with pytest.raises(Exception) as excinfo:
create_report(path, False)
assert "No python modules found in:" in str(excinfo.value)
assert "empty_" in str(excinfo.value)
def test_only_init_module():
""" Test a folder that contains solely an __init__.py file."""
path = os.path.join(ASSETS_DIRECTORY, "only_init")
with pytest.raises(Exception) as excinfo:
create_report(path)
assert "No python modules found in: " in str(excinfo.value)
assert "only_init" in str(excinfo.value)
def test_only_init_module_non_recursiveness():
""" Test a folder that contains solely an __init__.py file.
Recursiveness is disabled."""
path = os.path.join(ASSETS_DIRECTORY, "only_init")
with pytest.raises(Exception) as excinfo:
create_report(path, False)
assert "No python modules found in: " in str(excinfo.value)
assert "only_init" in str(excinfo.value)
def test_package_a():
""" The package tested is made of several modules and submodules."""
path = os.path.join(ASSETS_DIRECTORY, "module_a")
capture = CaptureStdOut()
with capture:
create_report(path)
assert capture.content == """Name Docstrings Missed Covered
-------------------------------------------------------------------------------
module_a.module_aa.module_aa 5 1 80.0%
module_a.module_aa.module_aaa.module_aaa 5 1 80.0%
module_a.module_ab.module_ab 7 1 85.7%
-------------------------------------------------------------------------------
Total 17 3 82.4%
"""
def test_package_a_non_recursiveness():
""" The package tested is made of several modules and submodules.
Recursiveness is disabled."""
path = os.path.join(ASSETS_DIRECTORY, "module_a")
with pytest.raises(Exception) as excinfo:
create_report(path, False)
assert "No python modules found in: " in str(excinfo.value)
assert "module_a" in str(excinfo.value)
def test_package_aa_non_recursiveness():
""" The package tested is made of several modules and submodules."""
path = os.path.join(ASSETS_DIRECTORY, "module_a", "module_aa")
capture = CaptureStdOut()
with capture:
create_report(path, False)
assert capture.content == """Name Docstrings Missed Covered
-------------------------------------------------------------------------------
module_aa.module_aa 5 1 80.0%
-------------------------------------------------------------------------------
Total 5 1 80.0%
"""
def test_package_b():
""" The package tested is made of a single module.
None __init__.py file is available.
In this module, there is a single private function.
So, none example is expected for this entire module."""
path = os.path.join(ASSETS_DIRECTORY, "module_b")
capture = CaptureStdOut()
with capture:
create_report(path)
assert capture.content == """Name Docstrings Missed Covered
-------------------------------------------------------------------------------
module_b.module_b 0 0 100.0%
-------------------------------------------------------------------------------
Total 0 0 100.0%
"""
def test_package_b_non_recursiveness():
""" The package tested is made of a single module.
None __init__.py file is available.
In this module, there is a single private function.
So, none example is expected for this entire module.
Recursiveness is disabled."""
path = os.path.join(ASSETS_DIRECTORY, "module_b")
capture = CaptureStdOut()
with capture:
create_report(path, False)
assert capture.content == """Name Docstrings Missed Covered
-------------------------------------------------------------------------------
module_b.module_b 0 0 100.0%
-------------------------------------------------------------------------------
Total 0 0 100.0%
"""
def test_package_c():
"""The package tested contains standard property. Recursiveness is disabled."""
path = os.path.join(ASSETS_DIRECTORY, "module_c")
capture = CaptureStdOut()
with capture:
create_report(path)
assert capture.content == """Name Docstrings Missed Covered
-------------------------------------------------------------------------------
module_c.module_c 5 1 80.0%
-------------------------------------------------------------------------------
Total 5 1 80.0%
"""
def test_package_c_non_recursiveness():
"""The package tested contains standard property."""
path = os.path.join(ASSETS_DIRECTORY, "module_c")
capture = CaptureStdOut()
with capture:
create_report(path, False)
assert capture.content == """Name Docstrings Missed Covered
-------------------------------------------------------------------------------
module_c.module_c 5 1 80.0%
-------------------------------------------------------------------------------
Total 5 1 80.0%
"""
def test_package_d():
"""The package tested contains several decorators."""
path = os.path.join(ASSETS_DIRECTORY, "module_d")
capture = CaptureStdOut()
with capture:
create_report(path)
assert capture.content == """Name Docstrings Missed Covered
-------------------------------------------------------------------------------
module_d.module_d 8 3 62.5%
-------------------------------------------------------------------------------
Total 8 3 62.5%
"""
def test_package_d_non_recursive():
"""The package tested contains several decorators. Recursiveness is disabled."""
path = os.path.join(ASSETS_DIRECTORY, "module_d")
capture = CaptureStdOut()
with capture:
create_report(path, False)
assert capture.content == """Name Docstrings Missed Covered
-------------------------------------------------------------------------------
module_d.module_d 8 3 62.5%
-------------------------------------------------------------------------------
Total 8 3 62.5%
"""
| 37.689498
| 109
| 0.48219
| 802
| 8,254
| 4.769327
| 0.157107
| 0.025098
| 0.036601
| 0.047582
| 0.83268
| 0.825098
| 0.782745
| 0.764706
| 0.752157
| 0.73281
| 0
| 0.016298
| 0.293797
| 8,254
| 218
| 110
| 37.862385
| 0.639904
| 0.145869
| 0
| 0.729927
| 0
| 0
| 0.515873
| 0.196248
| 0
| 0
| 0
| 0
| 0.131387
| 1
| 0.124088
| false
| 0
| 0.036496
| 0
| 0.175182
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
31f6568971efb95b041cc36ac5cd574f71007b78
| 56
|
py
|
Python
|
stockmarkettools/__init__.py
|
ayush4921/stockmarkettools
|
e83f95720ca2c94fc678d3445c0c17168f0edfa5
|
[
"MIT"
] | null | null | null |
stockmarkettools/__init__.py
|
ayush4921/stockmarkettools
|
e83f95720ca2c94fc678d3445c0c17168f0edfa5
|
[
"MIT"
] | null | null | null |
stockmarkettools/__init__.py
|
ayush4921/stockmarkettools
|
e83f95720ca2c94fc678d3445c0c17168f0edfa5
|
[
"MIT"
] | null | null | null |
from stockmarkettools.get_stock_all import get_stock_all
| 56
| 56
| 0.928571
| 9
| 56
| 5.333333
| 0.666667
| 0.333333
| 0.458333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053571
| 56
| 1
| 56
| 56
| 0.90566
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
ee5081b70d9c1a0424120342545477c96bd77dc3
| 27,823
|
py
|
Python
|
sdk/python/pulumi_oci/artifacts/generic_artifact.py
|
EladGabay/pulumi-oci
|
6841e27d4a1a7e15c672306b769912efbfd3ba99
|
[
"ECL-2.0",
"Apache-2.0"
] | 5
|
2021-08-17T11:14:46.000Z
|
2021-12-31T02:07:03.000Z
|
sdk/python/pulumi_oci/artifacts/generic_artifact.py
|
pulumi-oci/pulumi-oci
|
6841e27d4a1a7e15c672306b769912efbfd3ba99
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-09-06T11:21:29.000Z
|
2021-09-06T11:21:29.000Z
|
sdk/python/pulumi_oci/artifacts/generic_artifact.py
|
pulumi-oci/pulumi-oci
|
6841e27d4a1a7e15c672306b769912efbfd3ba99
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2021-08-24T23:31:30.000Z
|
2022-01-02T19:26:54.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['GenericArtifactArgs', 'GenericArtifact']
@pulumi.input_type
class GenericArtifactArgs:
def __init__(__self__, *,
artifact_id: pulumi.Input[str],
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
"""
The set of arguments for constructing a GenericArtifact resource.
:param pulumi.Input[str] artifact_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact. Example: `ocid1.genericartifact.oc1..exampleuniqueID`
:param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
:param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
"""
pulumi.set(__self__, "artifact_id", artifact_id)
if defined_tags is not None:
pulumi.set(__self__, "defined_tags", defined_tags)
if freeform_tags is not None:
pulumi.set(__self__, "freeform_tags", freeform_tags)
@property
@pulumi.getter(name="artifactId")
def artifact_id(self) -> pulumi.Input[str]:
"""
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact. Example: `ocid1.genericartifact.oc1..exampleuniqueID`
"""
return pulumi.get(self, "artifact_id")
@artifact_id.setter
def artifact_id(self, value: pulumi.Input[str]):
pulumi.set(self, "artifact_id", value)
@property
@pulumi.getter(name="definedTags")
def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
"""
return pulumi.get(self, "defined_tags")
@defined_tags.setter
def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "defined_tags", value)
@property
@pulumi.getter(name="freeformTags")
def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
"""
return pulumi.get(self, "freeform_tags")
@freeform_tags.setter
def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "freeform_tags", value)
@pulumi.input_type
class _GenericArtifactState:
def __init__(__self__, *,
artifact_id: Optional[pulumi.Input[str]] = None,
artifact_path: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
display_name: Optional[pulumi.Input[str]] = None,
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
sha256: Optional[pulumi.Input[str]] = None,
size_in_bytes: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
time_created: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering GenericArtifact resources.
:param pulumi.Input[str] artifact_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact. Example: `ocid1.genericartifact.oc1..exampleuniqueID`
:param pulumi.Input[str] artifact_path: A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: `project01/my-web-app/artifact-abc`
:param pulumi.Input[str] compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment.
:param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
:param pulumi.Input[str] display_name: The artifact name with the format of `<artifact-path>:<artifact-version>`. The artifact name is truncated to a maximum length of 255. Example: `project01/my-web-app/artifact-abc:1.0.0`
:param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
:param pulumi.Input[str] repository_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository.
:param pulumi.Input[str] sha256: The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.
:param pulumi.Input[str] size_in_bytes: The size of the artifact in bytes.
:param pulumi.Input[str] state: The current state of the artifact.
:param pulumi.Input[str] time_created: An RFC 3339 timestamp indicating when the repository was created.
:param pulumi.Input[str] version: A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2`
"""
if artifact_id is not None:
pulumi.set(__self__, "artifact_id", artifact_id)
if artifact_path is not None:
pulumi.set(__self__, "artifact_path", artifact_path)
if compartment_id is not None:
pulumi.set(__self__, "compartment_id", compartment_id)
if defined_tags is not None:
pulumi.set(__self__, "defined_tags", defined_tags)
if display_name is not None:
pulumi.set(__self__, "display_name", display_name)
if freeform_tags is not None:
pulumi.set(__self__, "freeform_tags", freeform_tags)
if repository_id is not None:
pulumi.set(__self__, "repository_id", repository_id)
if sha256 is not None:
pulumi.set(__self__, "sha256", sha256)
if size_in_bytes is not None:
pulumi.set(__self__, "size_in_bytes", size_in_bytes)
if state is not None:
pulumi.set(__self__, "state", state)
if time_created is not None:
pulumi.set(__self__, "time_created", time_created)
if version is not None:
pulumi.set(__self__, "version", version)
@property
@pulumi.getter(name="artifactId")
def artifact_id(self) -> Optional[pulumi.Input[str]]:
"""
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact. Example: `ocid1.genericartifact.oc1..exampleuniqueID`
"""
return pulumi.get(self, "artifact_id")
@artifact_id.setter
def artifact_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "artifact_id", value)
@property
@pulumi.getter(name="artifactPath")
def artifact_path(self) -> Optional[pulumi.Input[str]]:
"""
A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: `project01/my-web-app/artifact-abc`
"""
return pulumi.get(self, "artifact_path")
@artifact_path.setter
def artifact_path(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "artifact_path", value)
@property
@pulumi.getter(name="compartmentId")
def compartment_id(self) -> Optional[pulumi.Input[str]]:
"""
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment.
"""
return pulumi.get(self, "compartment_id")
@compartment_id.setter
def compartment_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "compartment_id", value)
@property
@pulumi.getter(name="definedTags")
def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
"""
return pulumi.get(self, "defined_tags")
@defined_tags.setter
def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "defined_tags", value)
@property
@pulumi.getter(name="displayName")
def display_name(self) -> Optional[pulumi.Input[str]]:
"""
The artifact name with the format of `<artifact-path>:<artifact-version>`. The artifact name is truncated to a maximum length of 255. Example: `project01/my-web-app/artifact-abc:1.0.0`
"""
return pulumi.get(self, "display_name")
@display_name.setter
def display_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "display_name", value)
@property
@pulumi.getter(name="freeformTags")
def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
"""
return pulumi.get(self, "freeform_tags")
@freeform_tags.setter
def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "freeform_tags", value)
@property
@pulumi.getter(name="repositoryId")
def repository_id(self) -> Optional[pulumi.Input[str]]:
"""
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository.
"""
return pulumi.get(self, "repository_id")
@repository_id.setter
def repository_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "repository_id", value)
@property
@pulumi.getter
def sha256(self) -> Optional[pulumi.Input[str]]:
"""
The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.
"""
return pulumi.get(self, "sha256")
@sha256.setter
def sha256(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sha256", value)
@property
@pulumi.getter(name="sizeInBytes")
def size_in_bytes(self) -> Optional[pulumi.Input[str]]:
"""
The size of the artifact in bytes.
"""
return pulumi.get(self, "size_in_bytes")
@size_in_bytes.setter
def size_in_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "size_in_bytes", value)
@property
@pulumi.getter
def state(self) -> Optional[pulumi.Input[str]]:
"""
The current state of the artifact.
"""
return pulumi.get(self, "state")
@state.setter
def state(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "state", value)
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> Optional[pulumi.Input[str]]:
"""
An RFC 3339 timestamp indicating when the repository was created.
"""
return pulumi.get(self, "time_created")
@time_created.setter
def time_created(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "time_created", value)
@property
@pulumi.getter
def version(self) -> Optional[pulumi.Input[str]]:
"""
A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2`
"""
return pulumi.get(self, "version")
@version.setter
def version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "version", value)
class GenericArtifact(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
artifact_id: Optional[pulumi.Input[str]] = None,
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
__props__=None):
"""
This resource provides the Generic Artifact resource in Oracle Cloud Infrastructure Artifacts service.
## Example Usage
```python
import pulumi
import pulumi_oci as oci
test_generic_artifact = oci.artifacts.GenericArtifact("testGenericArtifact",
artifact_id=oci_artifacts_artifact["test_artifact"]["id"],
defined_tags={
"Operations.CostCenter": "42",
},
freeform_tags={
"Department": "Finance",
})
```
## Import
Import is not supported for this resource.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] artifact_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact. Example: `ocid1.genericartifact.oc1..exampleuniqueID`
:param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
:param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: GenericArtifactArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
This resource provides the Generic Artifact resource in Oracle Cloud Infrastructure Artifacts service.
## Example Usage
```python
import pulumi
import pulumi_oci as oci
test_generic_artifact = oci.artifacts.GenericArtifact("testGenericArtifact",
artifact_id=oci_artifacts_artifact["test_artifact"]["id"],
defined_tags={
"Operations.CostCenter": "42",
},
freeform_tags={
"Department": "Finance",
})
```
## Import
Import is not supported for this resource.
:param str resource_name: The name of the resource.
:param GenericArtifactArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(GenericArtifactArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
artifact_id: Optional[pulumi.Input[str]] = None,
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = GenericArtifactArgs.__new__(GenericArtifactArgs)
if artifact_id is None and not opts.urn:
raise TypeError("Missing required property 'artifact_id'")
__props__.__dict__["artifact_id"] = artifact_id
__props__.__dict__["defined_tags"] = defined_tags
__props__.__dict__["freeform_tags"] = freeform_tags
__props__.__dict__["artifact_path"] = None
__props__.__dict__["compartment_id"] = None
__props__.__dict__["display_name"] = None
__props__.__dict__["repository_id"] = None
__props__.__dict__["sha256"] = None
__props__.__dict__["size_in_bytes"] = None
__props__.__dict__["state"] = None
__props__.__dict__["time_created"] = None
__props__.__dict__["version"] = None
super(GenericArtifact, __self__).__init__(
'oci:artifacts/genericArtifact:GenericArtifact',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
artifact_id: Optional[pulumi.Input[str]] = None,
artifact_path: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
display_name: Optional[pulumi.Input[str]] = None,
freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
sha256: Optional[pulumi.Input[str]] = None,
size_in_bytes: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
time_created: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[str]] = None) -> 'GenericArtifact':
"""
Get an existing GenericArtifact resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] artifact_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact. Example: `ocid1.genericartifact.oc1..exampleuniqueID`
:param pulumi.Input[str] artifact_path: A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: `project01/my-web-app/artifact-abc`
:param pulumi.Input[str] compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment.
:param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
:param pulumi.Input[str] display_name: The artifact name with the format of `<artifact-path>:<artifact-version>`. The artifact name is truncated to a maximum length of 255. Example: `project01/my-web-app/artifact-abc:1.0.0`
:param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
:param pulumi.Input[str] repository_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository.
:param pulumi.Input[str] sha256: The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.
:param pulumi.Input[str] size_in_bytes: The size of the artifact in bytes.
:param pulumi.Input[str] state: The current state of the artifact.
:param pulumi.Input[str] time_created: An RFC 3339 timestamp indicating when the repository was created.
:param pulumi.Input[str] version: A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2`
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _GenericArtifactState.__new__(_GenericArtifactState)
__props__.__dict__["artifact_id"] = artifact_id
__props__.__dict__["artifact_path"] = artifact_path
__props__.__dict__["compartment_id"] = compartment_id
__props__.__dict__["defined_tags"] = defined_tags
__props__.__dict__["display_name"] = display_name
__props__.__dict__["freeform_tags"] = freeform_tags
__props__.__dict__["repository_id"] = repository_id
__props__.__dict__["sha256"] = sha256
__props__.__dict__["size_in_bytes"] = size_in_bytes
__props__.__dict__["state"] = state
__props__.__dict__["time_created"] = time_created
__props__.__dict__["version"] = version
return GenericArtifact(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="artifactId")
def artifact_id(self) -> pulumi.Output[str]:
"""
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact. Example: `ocid1.genericartifact.oc1..exampleuniqueID`
"""
return pulumi.get(self, "artifact_id")
@property
@pulumi.getter(name="artifactPath")
def artifact_path(self) -> pulumi.Output[str]:
"""
A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: `project01/my-web-app/artifact-abc`
"""
return pulumi.get(self, "artifact_path")
@property
@pulumi.getter(name="compartmentId")
def compartment_id(self) -> pulumi.Output[str]:
"""
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment.
"""
return pulumi.get(self, "compartment_id")
@property
@pulumi.getter(name="definedTags")
def defined_tags(self) -> pulumi.Output[Mapping[str, Any]]:
"""
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
"""
return pulumi.get(self, "defined_tags")
@property
@pulumi.getter(name="displayName")
def display_name(self) -> pulumi.Output[str]:
"""
The artifact name with the format of `<artifact-path>:<artifact-version>`. The artifact name is truncated to a maximum length of 255. Example: `project01/my-web-app/artifact-abc:1.0.0`
"""
return pulumi.get(self, "display_name")
@property
@pulumi.getter(name="freeformTags")
def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]:
"""
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
"""
return pulumi.get(self, "freeform_tags")
@property
@pulumi.getter(name="repositoryId")
def repository_id(self) -> pulumi.Output[str]:
"""
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository.
"""
return pulumi.get(self, "repository_id")
@property
@pulumi.getter
def sha256(self) -> pulumi.Output[str]:
"""
The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.
"""
return pulumi.get(self, "sha256")
@property
@pulumi.getter(name="sizeInBytes")
def size_in_bytes(self) -> pulumi.Output[str]:
"""
The size of the artifact in bytes.
"""
return pulumi.get(self, "size_in_bytes")
@property
@pulumi.getter
def state(self) -> pulumi.Output[str]:
"""
The current state of the artifact.
"""
return pulumi.get(self, "state")
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> pulumi.Output[str]:
"""
An RFC 3339 timestamp indicating when the repository was created.
"""
return pulumi.get(self, "time_created")
@property
@pulumi.getter
def version(self) -> pulumi.Output[str]:
"""
A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2`
"""
return pulumi.get(self, "version")
| 52.005607
| 347
| 0.668296
| 3,425
| 27,823
| 5.245547
| 0.067153
| 0.05939
| 0.053768
| 0.05143
| 0.865579
| 0.835244
| 0.811477
| 0.798508
| 0.78053
| 0.726261
| 0
| 0.008624
| 0.216476
| 27,823
| 534
| 348
| 52.102996
| 0.815505
| 0.444668
| 0
| 0.550336
| 1
| 0
| 0.100501
| 0.003178
| 0
| 0
| 0
| 0
| 0
| 1
| 0.16443
| false
| 0.003356
| 0.016779
| 0
| 0.285235
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c9a9738e5ce5fd8a52228a8cfbb52aeac4e0363d
| 46
|
py
|
Python
|
atest/testdata/variables/get_file_lib.py
|
phil-davis/robotframework
|
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
|
[
"ECL-2.0",
"Apache-2.0"
] | 7,073
|
2015-01-01T17:19:16.000Z
|
2022-03-31T22:01:29.000Z
|
atest/testdata/variables/get_file_lib.py
|
phil-davis/robotframework
|
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
|
[
"ECL-2.0",
"Apache-2.0"
] | 2,412
|
2015-01-02T09:29:05.000Z
|
2022-03-31T13:10:46.000Z
|
atest/testdata/variables/get_file_lib.py
|
phil-davis/robotframework
|
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
|
[
"ECL-2.0",
"Apache-2.0"
] | 2,298
|
2015-01-03T02:47:15.000Z
|
2022-03-31T02:00:16.000Z
|
def get_open_file():
return open(__file__)
| 23
| 25
| 0.73913
| 7
| 46
| 4
| 0.714286
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152174
| 46
| 2
| 25
| 23
| 0.717949
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
a0223a13721c24a70244b0b465de5a15a250c4b3
| 31,445
|
py
|
Python
|
fhirclient/models/bundle_tests.py
|
JamesSkane/smart_resources
|
85c362542b85ebc43ec00cd04915b114ee95f9c0
|
[
"Apache-2.0"
] | null | null | null |
fhirclient/models/bundle_tests.py
|
JamesSkane/smart_resources
|
85c362542b85ebc43ec00cd04915b114ee95f9c0
|
[
"Apache-2.0"
] | null | null | null |
fhirclient/models/bundle_tests.py
|
JamesSkane/smart_resources
|
85c362542b85ebc43ec00cd04915b114ee95f9c0
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 0.5.0.5149 on 2015-07-06.
# 2015, SMART Health IT.
import os
import io
import unittest
import json
from . import bundle
from .fhirdate import FHIRDate
class BundleTests(unittest.TestCase):
def instantiate_from(self, filename):
datadir = os.environ.get('FHIR_UNITTEST_DATADIR') or ''
with io.open(os.path.join(datadir, filename), 'r', encoding='utf-8') as handle:
js = json.load(handle)
self.assertEqual("Bundle", js["resourceType"])
return bundle.Bundle(js)
def testBundle1(self):
inst = self.instantiate_from("bundle-example.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle1(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle1(inst2)
def implBundle1(self, inst):
self.assertEqual(inst.base, "http://example.com/base")
self.assertEqual(inst.entry[0].resource.id, "3123")
self.assertEqual(inst.entry[0].search.mode, "match")
self.assertEqual(inst.entry[0].search.score, 1)
self.assertEqual(inst.entry[1].resource.id, "example")
self.assertEqual(inst.entry[1].search.mode, "include")
self.assertEqual(inst.id, "bundle-example")
self.assertEqual(inst.link[0].relation, "self")
self.assertEqual(inst.link[0].url, "https://example.com/base/MedicationPrescription?patient=347&_include=MedicationPrescription.medication")
self.assertEqual(inst.link[1].relation, "next")
self.assertEqual(inst.link[1].url, "https://example.com/base/MedicationPrescription?patient=347&searchId=ff15fd40-ff71-4b48-b366-09c706bed9d0&page=2")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2014-08-18T01:43:30Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2014-08-18T01:43:30Z")
self.assertEqual(inst.total, 3)
self.assertEqual(inst.type, "searchset")
def testBundle2(self):
inst = self.instantiate_from("diagnosticreport-examples-general.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle2(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle2(inst2)
def implBundle2(self, inst):
self.assertEqual(inst.base, "http://hl7.org/fhir")
self.assertEqual(inst.entry[0].resource.id, "3")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[1].resource.id, "4")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[2].resource.id, "5")
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[3].resource.id, "6")
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[4].resource.id, "7")
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[5].resource.id, "8")
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[6].resource.id, "9")
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[7].resource.id, "15")
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[8].resource.id, "16")
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[9].resource.id, "17")
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.id, "72ac8493-52ac-41bd-8d5d-7258c289b5ea")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.type, "collection")
def testBundle3(self):
inst = self.instantiate_from("diagnosticreport-examples-lab-text.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle3(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle3(inst2)
def implBundle3(self, inst):
self.assertEqual(inst.base, "http://hl7.org/fhir")
self.assertEqual(inst.entry[0].resource.id, "103")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[1].resource.id, "104")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[2].resource.id, "105")
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[3].resource.id, "106")
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[4].resource.id, "107")
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[5].resource.id, "108")
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[6].resource.id, "109")
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[7].resource.id, "110")
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[8].resource.id, "111")
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.entry[9].resource.id, "112")
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.id, "72ac8493-52ac-41bd-8d5d-7258c289b5ea")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2012-04-14T10:35:23Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2012-04-14T10:35:23Z")
self.assertEqual(inst.type, "collection")
def testBundle4(self):
inst = self.instantiate_from("document-example-dischargesummary.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle4(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle4(inst2)
def implBundle4(self, inst):
self.assertEqual(inst.base, "http://fhir.healthintersections.com.au/open")
self.assertEqual(inst.entry[0].base, "urn:uuid:")
self.assertEqual(inst.entry[0].resource.id, "180f219f-97a8-486d-99d9-ed631fe4fc57")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2013-05-28T22:12:21Z").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2013-05-28T22:12:21Z")
self.assertEqual(inst.entry[1].resource.id, "example")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2013-05-05T16:13:03Z").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2013-05-05T16:13:03Z")
self.assertEqual(inst.entry[2].resource.id, "d1")
self.assertEqual(inst.entry[3].resource.id, "doc-example")
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.date, FHIRDate("2013-05-05T16:13:03Z").date)
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.as_json(), "2013-05-05T16:13:03Z")
self.assertEqual(inst.entry[4].base, "urn:uuid:")
self.assertEqual(inst.entry[4].resource.id, "d0dd51d3-3ab2-4c84-b697-a630c3e40e7a")
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.date, FHIRDate("2013-05-05T16:13:03Z").date)
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.as_json(), "2013-05-05T16:13:03Z")
self.assertEqual(inst.entry[5].base, "urn:uuid:")
self.assertEqual(inst.entry[5].resource.id, "541a72a8-df75-4484-ac89-ac4923f03b81")
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.date, FHIRDate("2013-05-05T16:13:03Z").date)
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.as_json(), "2013-05-05T16:13:03Z")
self.assertEqual(inst.entry[6].base, "urn:uuid:")
self.assertEqual(inst.entry[6].resource.id, "673f8db5-0ffd-4395-9657-6da00420bbc1")
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.date, FHIRDate("2013-05-05T16:13:03Z").date)
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.as_json(), "2013-05-05T16:13:03Z")
self.assertEqual(inst.entry[7].base, "urn:uuid:")
self.assertEqual(inst.entry[7].resource.id, "124a6916-5d84-4b8c-b250-10cefb8e6e86")
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.date, FHIRDate("2013-05-05T16:13:03Z").date)
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.as_json(), "2013-05-05T16:13:03Z")
self.assertEqual(inst.entry[8].base, "urn:uuid:")
self.assertEqual(inst.entry[8].resource.id, "68f86194-e6e1-4f65-b64a-5314256f8d7b")
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.date, FHIRDate("2013-05-05T16:13:03Z").date)
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.as_json(), "2013-05-05T16:13:03Z")
self.assertEqual(inst.entry[9].base, "urn:uuid:")
self.assertEqual(inst.entry[9].resource.id, "47600e0f-b6b5-4308-84b5-5dec157f7637")
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.date, FHIRDate("2013-05-05T16:13:03Z").date)
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.as_json(), "2013-05-05T16:13:03Z")
self.assertEqual(inst.id, "father")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2013-05-28T22:12:21Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2013-05-28T22:12:21Z")
self.assertEqual(inst.meta.tag[0].code, "document")
self.assertEqual(inst.meta.tag[0].system, "http://hl7.org/fhir/tag")
self.assertEqual(inst.type, "document")
def testBundle5(self):
inst = self.instantiate_from("observation-example-bloodpressure.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle5(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle5(inst2)
def implBundle5(self, inst):
self.assertEqual(inst.base, "http://hl7.org/fhir")
self.assertEqual(inst.entry[0].resource.id, "34252345234")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2014-01-30T22:35:23+11:00").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2014-01-30T22:35:23+11:00")
self.assertEqual(inst.entry[1].resource.id, "34252345234-s")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2014-01-30T22:35:23+11:00").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2014-01-30T22:35:23+11:00")
self.assertEqual(inst.entry[2].resource.id, "34252345234-d")
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.date, FHIRDate("2014-01-30T22:35:23+11:00").date)
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.as_json(), "2014-01-30T22:35:23+11:00")
self.assertEqual(inst.id, "blood-pressure")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2014-01-30T22:35:23+11:00").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2014-01-30T22:35:23+11:00")
self.assertEqual(inst.type, "collection")
def testBundle6(self):
inst = self.instantiate_from("patient-examples-cypress-template.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle6(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle6(inst2)
def implBundle6(self, inst):
self.assertEqual(inst.base, "http://hl7.org/fhir")
self.assertEqual(inst.entry[0].resource.id, "71")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[1].resource.id, "72")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[2].resource.id, "73")
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[3].resource.id, "74")
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[4].resource.id, "75")
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[5].resource.id, "76")
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[6].resource.id, "77")
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[7].resource.id, "78")
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[8].resource.id, "79")
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.entry[9].resource.id, "80")
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.date, FHIRDate("2012-06-03T23:45:32Z").date)
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.as_json(), "2012-06-03T23:45:32Z")
self.assertEqual(inst.id, "b0a5e4277-83c4-4adb-87e2-e3efe3369b6f")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.type, "collection")
def testBundle7(self):
inst = self.instantiate_from("patient-examples-general.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle7(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle7(inst2)
def implBundle7(self, inst):
self.assertEqual(inst.base, "http://hl7.org/fhir")
self.assertEqual(inst.entry[0].resource.id, "1")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[1].resource.id, "2")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[2].resource.id, "3")
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[3].resource.id, "4")
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[4].resource.id, "5")
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[5].resource.id, "6")
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[6].resource.id, "7")
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[7].resource.id, "8")
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[8].resource.id, "9")
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[9].resource.id, "10")
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.id, "b248b1b2-1686-4b94-9936-37d7a5f94b51")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.type, "collection")
def testBundle8(self):
inst = self.instantiate_from("practitioner-examples-general.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle8(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle8(inst2)
def implBundle8(self, inst):
self.assertEqual(inst.base, "http://hl7.org/fhir")
self.assertEqual(inst.entry[0].resource.id, "13")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[1].resource.id, "14")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[2].resource.id, "15")
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[3].resource.id, "16")
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[4].resource.id, "17")
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[5].resource.id, "18")
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[5].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[6].resource.id, "19")
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[6].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[7].resource.id, "20")
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[7].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[8].resource.id, "21")
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[8].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.entry[9].resource.id, "22")
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.entry[9].resource.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.id, "3ad0687e-f477-468c-afd5-fcc2bf897809")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2012-05-29T23:45:32Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2012-05-29T23:45:32Z")
self.assertEqual(inst.type, "collection")
def testBundle9(self):
inst = self.instantiate_from("questionnaire-sdc-profile-example.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle9(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle9(inst2)
def implBundle9(self, inst):
self.assertEqual(inst.base, "http://AHRQ.org/form")
self.assertEqual(inst.entry[0].resource.extension[0].url, "http://hl7.org/fhir/StructureDefinition/questionnaire-category")
self.assertEqual(inst.entry[0].resource.extension[0].valueCodeableConcept.coding[0].code, "Acute Care Hospitals")
self.assertEqual(inst.entry[0].resource.id, "F8-1.2")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2014-05-15T17:25:15Z").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2014-05-15T17:25:15Z")
self.assertEqual(inst.entry[1].resource.id, "HERF-1.2")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2014-05-15T17:25:15Z").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2014-05-15T17:25:15Z")
self.assertEqual(inst.entry[2].resource.extension[0].url, "http://hl7.org/fhir/StructureDefinition/questionnaire-category")
self.assertEqual(inst.entry[2].resource.extension[0].valueCodeableConcept.coding[0].code, "CRF")
self.assertEqual(inst.entry[2].resource.id, "3921052v1.0")
self.assertEqual(inst.entry[2].resource.language, "en")
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.date, FHIRDate("2014-05-15T17:25:15Z").date)
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.as_json(), "2014-05-15T17:25:15Z")
self.assertEqual(inst.entry[3].resource.extension[0].url, "http://hl7.org/fhir/StructureDefinition/questionnaire-category")
self.assertEqual(inst.entry[3].resource.extension[0].valueCodeableConcept.coding[0].code, "CRF")
self.assertEqual(inst.entry[3].resource.extension[1].url, "http://hl7.org/fhir/StructureDefinition/questionnaire-category")
self.assertEqual(inst.entry[3].resource.extension[1].valueCodeableConcept.coding[0].code, "Demographic")
self.assertEqual(inst.entry[3].resource.id, "2674812v4.0")
self.assertEqual(inst.entry[3].resource.language, "en")
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.date, FHIRDate("2014-05-15T17:25:15Z").date)
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.as_json(), "2014-05-15T17:25:15Z")
self.assertEqual(inst.entry[4].resource.extension[0].url, "http://hl7.org/fhir/StructureDefinition/questionnaire-category")
self.assertEqual(inst.entry[4].resource.extension[0].valueCodeableConcept.coding[0].code, "CRF")
self.assertEqual(inst.entry[4].resource.id, "3265657v2.0")
self.assertEqual(inst.entry[4].resource.language, "en")
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.date, FHIRDate("2014-05-15T17:25:15Z").date)
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.as_json(), "2014-05-15T17:25:15Z")
self.assertEqual(inst.id, "sdc")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2014-05-15T17:25:15Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2014-05-15T17:25:15Z")
self.assertEqual(inst.type, "collection")
def testBundle10(self):
inst = self.instantiate_from("xds-example.json")
self.assertIsNotNone(inst, "Must have instantiated a Bundle instance")
self.implBundle10(inst)
js = inst.as_json()
self.assertEqual("Bundle", js["resourceType"])
inst2 = bundle.Bundle(js)
self.implBundle10(inst2)
def implBundle10(self, inst):
self.assertEqual(inst.base, "cid:123@healthintersections.com.au")
self.assertEqual(inst.entry[0].resource.id, "a1")
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.date, FHIRDate("2013-07-01T13:11:33Z").date)
self.assertEqual(inst.entry[0].resource.meta.lastUpdated.as_json(), "2013-07-01T13:11:33Z")
self.assertEqual(inst.entry[0].transaction.method, "POST")
self.assertEqual(inst.entry[0].transaction.url, "DocumentReference")
self.assertEqual(inst.entry[1].resource.id, "a2")
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.date, FHIRDate("2013-07-01T13:11:33Z").date)
self.assertEqual(inst.entry[1].resource.meta.lastUpdated.as_json(), "2013-07-01T13:11:33Z")
self.assertEqual(inst.entry[1].transaction.ifNoneExist, "Patient?identifier=http://acme.org/xds/patients!89765a87b")
self.assertEqual(inst.entry[1].transaction.method, "POST")
self.assertEqual(inst.entry[1].transaction.url, "Patient")
self.assertEqual(inst.entry[2].resource.id, "a3")
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.date, FHIRDate("2013-07-01T13:11:33Z").date)
self.assertEqual(inst.entry[2].resource.meta.lastUpdated.as_json(), "2013-07-01T13:11:33Z")
self.assertEqual(inst.entry[2].transaction.method, "POST")
self.assertEqual(inst.entry[2].transaction.url, "Practitioner")
self.assertEqual(inst.entry[3].resource.id, "a4")
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.date, FHIRDate("2013-07-01T13:11:33Z").date)
self.assertEqual(inst.entry[3].resource.meta.lastUpdated.as_json(), "2013-07-01T13:11:33Z")
self.assertEqual(inst.entry[3].transaction.method, "POST")
self.assertEqual(inst.entry[3].transaction.url, "Practitioner")
self.assertEqual(inst.entry[4].resource.id, "1e404af3-077f-4bee-b7a6-a9be97e1ce32")
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.date, FHIRDate("2013-07-01T13:11:33Z").date)
self.assertEqual(inst.entry[4].resource.meta.lastUpdated.as_json(), "2013-07-01T13:11:33Z")
self.assertEqual(inst.entry[4].transaction.method, "POST")
self.assertEqual(inst.entry[4].transaction.url, "Binary")
self.assertEqual(inst.id, "xds")
self.assertEqual(inst.meta.lastUpdated.date, FHIRDate("2013-07-01T13:11:33Z").date)
self.assertEqual(inst.meta.lastUpdated.as_json(), "2013-07-01T13:11:33Z")
self.assertEqual(inst.type, "transaction")
| 69.262115
| 158
| 0.691461
| 4,279
| 31,445
| 5.056555
| 0.072681
| 0.222535
| 0.272219
| 0.28063
| 0.901789
| 0.88515
| 0.870315
| 0.807182
| 0.793178
| 0.786384
| 0
| 0.116932
| 0.136779
| 31,445
| 453
| 159
| 69.415011
| 0.680187
| 0.003594
| 0
| 0.358354
| 1
| 0.002421
| 0.196163
| 0.032433
| 0
| 0
| 0
| 0
| 0.801453
| 1
| 0.050847
| false
| 0
| 0.014528
| 0
| 0.070218
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
4e9b58ac687bf89d02ce72ac68ad183f8539015e
| 41
|
py
|
Python
|
test_web_directory/test_package/b/mod.py
|
ParikhKadam/httpimport
|
47786966477c03b12298fd6f23fd8ce9d23b9140
|
[
"Apache-2.0"
] | 196
|
2017-08-23T15:44:14.000Z
|
2022-03-29T14:27:02.000Z
|
test_web_directory/test_package/b/mod.py
|
ParikhKadam/httpimport
|
47786966477c03b12298fd6f23fd8ce9d23b9140
|
[
"Apache-2.0"
] | 34
|
2017-12-17T16:57:49.000Z
|
2022-01-29T20:07:19.000Z
|
test_web_directory/test_package/b/mod.py
|
ParikhKadam/httpimport
|
47786966477c03b12298fd6f23fd8ce9d23b9140
|
[
"Apache-2.0"
] | 42
|
2017-10-16T22:08:45.000Z
|
2022-03-02T16:05:17.000Z
|
def module_name():
return 'Module B'
| 13.666667
| 21
| 0.658537
| 6
| 41
| 4.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.219512
| 41
| 2
| 22
| 20.5
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0.195122
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
4ea2dbe767a973f65e907f10ccd776620681c7e5
| 1,405
|
py
|
Python
|
src/tests/test_logout_pass.py
|
chickenPopcorn/food-truck-inc
|
ed45fe4be9a4256a24d75e540c66e0605c6f3329
|
[
"MIT"
] | 1
|
2016-10-17T01:10:02.000Z
|
2016-10-17T01:10:02.000Z
|
src/tests/test_logout_pass.py
|
chickenPopcorn/food-truck-inc
|
ed45fe4be9a4256a24d75e540c66e0605c6f3329
|
[
"MIT"
] | 11
|
2016-10-16T11:36:11.000Z
|
2016-12-28T03:15:01.000Z
|
src/tests/test_logout_pass.py
|
chickenPopcorn/food-truck-inc
|
ed45fe4be9a4256a24d75e540c66e0605c6f3329
|
[
"MIT"
] | 1
|
2016-10-17T01:10:03.000Z
|
2016-10-17T01:10:03.000Z
|
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from app import app
from blueprint_test_case import BaseTestCase
class FlaskTestCase(BaseTestCase):
# Ensure login behaves correctly with correct credentials
def test_correct_customer_login(self):
# login as that user
response = self.client.post(
'/login/vendor',
data = dict(username="testing", password="testing")
)
self.assertEqual(response.status_code, 200)
self.assertIn(b'Login successful!', response.data)
# then logout
response = self.client.get(
'/logout'
)
self.assertEqual(response.status_code, 200)
self.assertIn(u'"You logged out!', response.data)
# Ensure login behaves correctly with correct credentials
def test_correct_vendor_login(self):
# login as that user
response = self.client.post(
'/login/customer',
data = dict(username="testing", password="testing")
)
self.assertEqual(response.status_code, 200)
self.assertIn(b'Login successful!', response.data)
# then logout
response = self.client.get(
'/logout'
)
self.assertEqual(response.status_code, 200)
self.assertIn(u'"You logged out!', response.data)
| 35.125
| 77
| 0.620641
| 155
| 1,405
| 5.522581
| 0.335484
| 0.056075
| 0.084112
| 0.135514
| 0.827103
| 0.78972
| 0.78972
| 0.78972
| 0.78972
| 0.78972
| 0
| 0.011834
| 0.278292
| 1,405
| 40
| 78
| 35.125
| 0.832347
| 0.123132
| 0
| 0.551724
| 0
| 0
| 0.114575
| 0
| 0
| 0
| 0
| 0
| 0.275862
| 1
| 0.068966
| false
| 0.068966
| 0.103448
| 0
| 0.206897
| 0.034483
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
11806ba1078474ca84366a588e7af57e0d1d649d
| 216
|
py
|
Python
|
handy_graph/__init__.py
|
fuvty/handy_graph
|
6d3c81aeb1993d2248c149ac567e5f6d9cb04981
|
[
"Apache-2.0"
] | 1
|
2022-02-08T12:20:19.000Z
|
2022-02-08T12:20:19.000Z
|
handy_graph/__init__.py
|
fuvty/handy_graph
|
6d3c81aeb1993d2248c149ac567e5f6d9cb04981
|
[
"Apache-2.0"
] | null | null | null |
handy_graph/__init__.py
|
fuvty/handy_graph
|
6d3c81aeb1993d2248c149ac567e5f6d9cb04981
|
[
"Apache-2.0"
] | null | null | null |
# networkx
from handy_graph.nx.AdjacentDict import *
from handy_graph.nx.GraphFileIO import *
from handy_graph.nx.Interface import *
from handy_graph.nx.Relabel import *
from handy_graph.common.GreedyGather import *
| 30.857143
| 45
| 0.824074
| 31
| 216
| 5.580645
| 0.387097
| 0.260116
| 0.404624
| 0.369942
| 0.381503
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101852
| 216
| 7
| 45
| 30.857143
| 0.891753
| 0.037037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
11a269fff8fcdcbcc439553b3db99986e145c582
| 4,657
|
py
|
Python
|
BigWorld/RibbonCollection.py
|
kagurazakasanae/wows_replay_parser
|
8b9067b82fd898a35f0f7c54d05b7cf4919ac11d
|
[
"MIT"
] | 4
|
2020-03-16T16:07:39.000Z
|
2021-12-28T00:09:28.000Z
|
BigWorld/RibbonCollection.py
|
kagurazakasanae/wows_replay_parser
|
8b9067b82fd898a35f0f7c54d05b7cf4919ac11d
|
[
"MIT"
] | null | null | null |
BigWorld/RibbonCollection.py
|
kagurazakasanae/wows_replay_parser
|
8b9067b82fd898a35f0f7c54d05b7cf4919ac11d
|
[
"MIT"
] | 1
|
2020-07-16T22:44:35.000Z
|
2020-07-16T22:44:35.000Z
|
from BigWorld.BaseCollection import *
from BigWorld.RibbonType import *
class RibbonCollection(BaseCollection):
def getMap(self):
return {0:RIBBON_MAIN_CALIBER,
1:RIBBON_TORPEDO,
2:RIBBON_BOMB,
3:RIBBON_PLANE,
4:RIBBON_CRIT,
5:RIBBON_FRAG,
6:RIBBON_BURN,
7:RIBBON_FLOOD,
8:RIBBON_CITADEL,
9:RIBBON_BASE_DEFENSE,
10:RIBBON_BASE_CAPTURE,
11:RIBBON_BASE_CAPTURE_ASSIST,
12:RIBBON_SUPPRESSED,
13:RIBBON_SECONDARY_CALIBER,
14:RIBBON_MAIN_CALIBER_OVER_PENETRATION,
15:RIBBON_MAIN_CALIBER_PENETRATION,
16:RIBBON_MAIN_CALIBER_NO_PENETRATION,
17:RIBBON_MAIN_CALIBER_RICOCHET,
18:RIBBON_BUILDING_KILL,
19:RIBBON_DETECTED,
20:RIBBON_BOMB_OVER_PENETRATION,
21:RIBBON_BOMB_PENETRATION,
22:RIBBON_BOMB_NO_PENETRATION,
23:RIBBON_BOMB_RICOCHET}
def addById(self, itemId, value=1):
super(RibbonCollection, self).addById(itemId, value)
itemCode = self.getCodeById(itemId)
if itemCode == RIBBON_MAIN_CALIBER_PENETRATION or itemCode == RIBBON_MAIN_CALIBER_OVER_PENETRATION or itemCode == RIBBON_MAIN_CALIBER_NO_PENETRATION or itemCode == RIBBON_MAIN_CALIBER_RICOCHET or itemCode == RIBBON_CITADEL:
super(RibbonCollection, self).add(RIBBON_MAIN_CALIBER, value)
elif itemCode == RIBBON_BOMB_OVER_PENETRATION or itemCode == RIBBON_BOMB_PENETRATION or itemCode == RIBBON_BOMB_NO_PENETRATION or itemCode == RIBBON_BOMB_RICOCHET:
super(RibbonCollection, self).add(RIBBON_BOMB, value)
class RibbonCollection_0_7_11(RibbonCollection):
def addById(self, itemId, value=1):
super(RibbonCollection_0_7_11, self).addById(itemId, value)
itemCode = self.getCodeById(itemId)
if itemCode == RIBBON_CITADEL:
super(RibbonCollection, self).add(RIBBON_MAIN_CALIBER, -value)
class RibbonCollection_0_8_0(RibbonCollection_0_7_11):
def getMap(self):
return {0:RIBBON_MAIN_CALIBER,
1:RIBBON_TORPEDO,
2:RIBBON_BOMB,
3:RIBBON_PLANE,
4:RIBBON_CRIT,
5:RIBBON_FRAG,
6:RIBBON_BURN,
7:RIBBON_FLOOD,
8:RIBBON_CITADEL,
9:RIBBON_BASE_DEFENSE,
10:RIBBON_BASE_CAPTURE,
11:RIBBON_BASE_CAPTURE_ASSIST,
12:RIBBON_SUPPRESSED,
13:RIBBON_SECONDARY_CALIBER,
14:RIBBON_MAIN_CALIBER_OVER_PENETRATION,
15:RIBBON_MAIN_CALIBER_PENETRATION,
16:RIBBON_MAIN_CALIBER_NO_PENETRATION,
17:RIBBON_MAIN_CALIBER_RICOCHET,
18:RIBBON_BUILDING_KILL,
19:RIBBON_DETECTED,
20:RIBBON_BOMB_OVER_PENETRATION,
21:RIBBON_BOMB_PENETRATION,
22:RIBBON_BOMB_NO_PENETRATION,
23:RIBBON_BOMB_RICOCHET,
25:RIBBON_ROCKET_PENETRATION,
26:RIBBON_ROCKET_NO_PENETRATION,
27:RIBBON_SPLANE}
class RibbonCollection_0_8_5(RibbonCollection_0_8_0):
def getMap(self):
return {0:RIBBON_MAIN_CALIBER,
1:RIBBON_TORPEDO,
2:RIBBON_BOMB,
3:RIBBON_PLANE,
4:RIBBON_CRIT,
5:RIBBON_FRAG,
6:RIBBON_BURN,
7:RIBBON_FLOOD,
8:RIBBON_CITADEL,
9:RIBBON_BASE_DEFENSE,
10:RIBBON_BASE_CAPTURE,
11:RIBBON_BASE_CAPTURE_ASSIST,
12:RIBBON_SUPPRESSED,
13:RIBBON_SECONDARY_CALIBER,
14:RIBBON_MAIN_CALIBER_OVER_PENETRATION,
15:RIBBON_MAIN_CALIBER_PENETRATION,
16:RIBBON_MAIN_CALIBER_NO_PENETRATION,
17:RIBBON_MAIN_CALIBER_RICOCHET,
18:RIBBON_BUILDING_KILL,
19:RIBBON_DETECTED,
20:RIBBON_BOMB_OVER_PENETRATION,
21:RIBBON_BOMB_PENETRATION,
22:RIBBON_BOMB_NO_PENETRATION,
23:RIBBON_BOMB_RICOCHET,
24:RIBBON_ROCKET,
25:RIBBON_ROCKET_PENETRATION,
26:RIBBON_ROCKET_NO_PENETRATION,
27:RIBBON_SPLANE,
28:RIBBON_BULGE,
29:RIBBON_BOMB_BULGE,
30:RIBBON_ROCKET_BULGE}
def addById(self, itemId, value=1):
super(RibbonCollection_0_8_5, self).addById(itemId, value)
itemCode = self.getCodeById(itemId)
if itemCode == RIBBON_BULGE:
super(RibbonCollection_0_8_5, self).add(RIBBON_MAIN_CALIBER, value)
elif itemCode == RIBBON_BOMB_BULGE:
super(RibbonCollection_0_8_5, self).add(RIBBON_BOMB, value)
| 37.556452
| 232
| 0.651707
| 533
| 4,657
| 5.275797
| 0.148218
| 0.081792
| 0.133001
| 0.05761
| 0.886913
| 0.831081
| 0.789829
| 0.789829
| 0.773115
| 0.713727
| 0
| 0.049955
| 0.282156
| 4,657
| 123
| 233
| 37.861789
| 0.791206
| 0
| 0
| 0.763636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.054545
| false
| 0
| 0.018182
| 0.027273
| 0.136364
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
11e30f157a0b775d0e970d5f30e1499b6b560162
| 7,030
|
py
|
Python
|
tests/test_container.py
|
bdraco/pyhaversion
|
87851f8fe868c1a5d5cdcdd56a1064031d37e220
|
[
"MIT"
] | 4
|
2020-12-30T23:34:37.000Z
|
2021-11-08T09:13:45.000Z
|
tests/test_container.py
|
bdraco/pyhaversion
|
87851f8fe868c1a5d5cdcdd56a1064031d37e220
|
[
"MIT"
] | 27
|
2019-08-27T08:05:18.000Z
|
2022-03-18T06:05:49.000Z
|
tests/test_container.py
|
bdraco/pyhaversion
|
87851f8fe868c1a5d5cdcdd56a1064031d37e220
|
[
"MIT"
] | 9
|
2019-07-02T06:19:46.000Z
|
2021-11-04T16:18:42.000Z
|
"""Tests for Container."""
import json
from unittest.mock import patch
import aiohttp
import pytest
from pyhaversion import HaVersion
from pyhaversion.consts import HaVersionChannel, HaVersionSource
from pyhaversion.exceptions import HaVersionInputException
from tests.common import fixture
from .const import (
BETA_VERSION,
BETA_VERSION_BETA_WEEK,
DEV_VERSION,
HEADERS,
STABLE_VERSION,
STABLE_VERSION_BETA_WEEK,
)
@pytest.mark.asyncio
async def test_stable_version(HaVersion):
"""Test container stable."""
with patch(
"pyhaversion.container.HaVersionContainer.data",
fixture("container/default"),
):
async with aiohttp.ClientSession() as session:
haversion = HaVersion(session=session, source=HaVersionSource.CONTAINER)
await haversion.get_version()
assert haversion.version == STABLE_VERSION
@pytest.mark.asyncio
async def test_beta_version(HaVersion):
"""Test container beta."""
with patch(
"pyhaversion.container.HaVersionContainer.data",
fixture("container/beta_week"),
):
async with aiohttp.ClientSession() as session:
haversion = HaVersion(
session=session,
source=HaVersionSource.CONTAINER,
channel=HaVersionChannel.BETA,
)
await haversion.get_version()
assert haversion.version == BETA_VERSION
@pytest.mark.asyncio
async def test_dev_version(HaVersion):
"""Test container dev."""
with patch(
"pyhaversion.container.HaVersionContainer.data",
fixture("container/default"),
):
async with aiohttp.ClientSession() as session:
haversion = HaVersion(
session=session,
source=HaVersionSource.CONTAINER,
channel=HaVersionChannel.DEV,
)
await haversion.get_version()
assert haversion.version == DEV_VERSION
@pytest.mark.asyncio
async def test_stable_version_beta_week(HaVersion):
"""Test container stable during beta week."""
with patch(
"pyhaversion.container.HaVersionContainer.data",
fixture("container/beta_week"),
):
async with aiohttp.ClientSession() as session:
haversion = HaVersion(
session=session,
source=HaVersionSource.CONTAINER,
)
await haversion.get_version()
assert haversion.version == STABLE_VERSION_BETA_WEEK
@pytest.mark.asyncio
async def test_beta_version_beta_week(HaVersion):
"""Test container beta during beta week."""
with patch(
"pyhaversion.container.HaVersionContainer.data",
fixture("container/beta_week"),
):
async with aiohttp.ClientSession() as session:
haversion = HaVersion(
session=session,
source=HaVersionSource.CONTAINER,
channel=HaVersionChannel.BETA,
)
await haversion.get_version()
assert haversion.version == BETA_VERSION_BETA_WEEK
@pytest.mark.asyncio
async def test_stable_version_pagination(aresponses):
"""Test container beta during beta week."""
aresponses.add(
"registry.hub.docker.com",
"/v2/repositories/homeassistant/home-assistant/tags",
"get",
aresponses.Response(
text=fixture("container/page1", False), status=200, headers=HEADERS
),
)
aresponses.add(
"registry.hub.docker.com",
"/v2/repositories/homeassistant/home-assistant/tags/page2",
"get",
aresponses.Response(
text=fixture("container/page2", False), status=200, headers=HEADERS
),
)
async with aiohttp.ClientSession() as session:
haversion = HaVersion(
session=session,
source=HaVersionSource.CONTAINER,
)
await haversion.get_version()
assert haversion.version == STABLE_VERSION
@pytest.mark.asyncio
async def test_beta_version_pagination(aresponses):
"""Test container beta during beta week."""
aresponses.add(
"registry.hub.docker.com",
"/v2/repositories/homeassistant/home-assistant/tags",
"get",
aresponses.Response(
text=fixture("container/beta_week_page1", False),
status=200,
headers=HEADERS,
),
)
aresponses.add(
"registry.hub.docker.com",
"/v2/repositories/homeassistant/home-assistant/tags/page2",
"get",
aresponses.Response(
text=fixture("container/beta_week_page2", False),
status=200,
headers=HEADERS,
),
)
async with aiohttp.ClientSession() as session:
haversion = HaVersion(
session=session,
source=HaVersionSource.CONTAINER,
channel=HaVersionChannel.BETA,
)
await haversion.get_version()
assert haversion.version == BETA_VERSION
@pytest.mark.asyncio
async def test_stable_version_beta_week_pagination(aresponses):
"""Test container beta during beta week."""
aresponses.add(
"registry.hub.docker.com",
"/v2/repositories/homeassistant/home-assistant/tags",
"get",
aresponses.Response(
text=fixture("container/beta_week_page1", False),
status=200,
headers=HEADERS,
),
)
aresponses.add(
"registry.hub.docker.com",
"/v2/repositories/homeassistant/home-assistant/tags/page2",
"get",
aresponses.Response(
text=fixture("container/beta_week_page2", False),
status=200,
headers=HEADERS,
),
)
async with aiohttp.ClientSession() as session:
haversion = HaVersion(
session=session,
source=HaVersionSource.CONTAINER,
)
await haversion.get_version()
assert haversion.version == STABLE_VERSION_BETA_WEEK
@pytest.mark.asyncio
async def test_beta_version_beta_week_pagination(aresponses):
"""Test container beta during beta week."""
aresponses.add(
"registry.hub.docker.com",
"/v2/repositories/homeassistant/home-assistant/tags",
"get",
aresponses.Response(
text=fixture("container/beta_week_page1", False),
status=200,
headers=HEADERS,
),
)
aresponses.add(
"registry.hub.docker.com",
"/v2/repositories/homeassistant/home-assistant/tags/page2",
"get",
aresponses.Response(
text=fixture("container/beta_week_page2", False),
status=200,
headers=HEADERS,
),
)
async with aiohttp.ClientSession() as session:
haversion = HaVersion(
session=session,
source=HaVersionSource.CONTAINER,
channel=HaVersionChannel.BETA,
)
await haversion.get_version()
assert haversion.version == BETA_VERSION_BETA_WEEK
| 30.565217
| 84
| 0.629303
| 667
| 7,030
| 6.512744
| 0.097451
| 0.046041
| 0.03453
| 0.04558
| 0.909761
| 0.903775
| 0.892726
| 0.882136
| 0.882136
| 0.882136
| 0
| 0.008609
| 0.272973
| 7,030
| 229
| 85
| 30.69869
| 0.841323
| 0.002845
| 0
| 0.764103
| 0
| 0
| 0.169242
| 0.147487
| 0
| 0
| 0
| 0
| 0.046154
| 1
| 0
| false
| 0
| 0.046154
| 0
| 0.046154
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
11fec301f0428bf29cf5ced6dd3d1661af4758cb
| 5,037
|
py
|
Python
|
chat_wars_database/app/business_core/migrations/0003_auto_20191230_2115.py
|
ricardochaves/chat-wars-database
|
597f192fb6ddf290c6c7477cf8c7d0ca654925f6
|
[
"MIT"
] | 1
|
2019-12-30T19:16:52.000Z
|
2019-12-30T19:16:52.000Z
|
chat_wars_database/app/business_core/migrations/0003_auto_20191230_2115.py
|
ricardochaves/chat-wars-database
|
597f192fb6ddf290c6c7477cf8c7d0ca654925f6
|
[
"MIT"
] | null | null | null |
chat_wars_database/app/business_core/migrations/0003_auto_20191230_2115.py
|
ricardochaves/chat-wars-database
|
597f192fb6ddf290c6c7477cf8c7d0ca654925f6
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.0.1 on 2019-12-30 21:15
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [("business_core", "0002_exchangeitems")]
operations = [
migrations.DeleteModel(name="ExchangeItems"),
migrations.AddField(
model_name="item",
name="can_be_found_in_quests",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item", name="category", field=models.CharField(blank=True, max_length=100, null=True)
),
migrations.AddField(
model_name="item", name="craft_command", field=models.CharField(blank=True, max_length=30, null=True)
),
migrations.AddField(
model_name="item", name="craftable", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item",
name="depositable_in_guild",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item", name="event_item", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item", name="item_type", field=models.CharField(blank=True, max_length=100, null=True)
),
migrations.AddField(
model_name="item", name="mana_crafting", field=models.IntegerField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item", name="quest_foray_day", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item",
name="quest_foray_evening",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item",
name="quest_foray_morning",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item", name="quest_foray_night", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item", name="quest_forest_day", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item",
name="quest_forest_evening",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item",
name="quest_forest_morning",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item", name="quest_forest_night", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item", name="quest_swamp_day", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item",
name="quest_swamp_evening",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item",
name="quest_swamp_morning",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item", name="quest_swamp_night", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item", name="quest_valley_day", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item",
name="quest_valley_evening",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item",
name="quest_valley_morning",
field=models.BooleanField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="item", name="quest_valley_night", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item", name="skill_craft_level", field=models.IntegerField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item", name="tradeable_auction", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item", name="tradeable_exchange", field=models.BooleanField(blank=True, default=None, null=True)
),
migrations.AddField(
model_name="item",
name="weight",
field=models.DecimalField(blank=True, decimal_places=2, max_digits=8, null=True),
),
]
| 41.975
| 120
| 0.616835
| 537
| 5,037
| 5.635009
| 0.145251
| 0.076669
| 0.212822
| 0.249835
| 0.86649
| 0.86649
| 0.854924
| 0.842366
| 0.828156
| 0.828156
| 0
| 0.007754
| 0.257495
| 5,037
| 119
| 121
| 42.327731
| 0.801337
| 0.008934
| 0
| 0.681416
| 1
| 0
| 0.121443
| 0.004409
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.017699
| 0
| 0.044248
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
ee97be4410a480071e2228af213a71dbdeec4043
| 3,278
|
py
|
Python
|
peer/chaincode_shim_pb2_grpc.py
|
jeffgarratt/fabric-prototype
|
46cfc67a1d74d1f38f498d3409327692fb733fd0
|
[
"CC-BY-4.0"
] | 6
|
2017-10-16T13:46:46.000Z
|
2020-02-28T07:48:51.000Z
|
peer/chaincode_shim_pb2_grpc.py
|
jeffgarratt/fabric-prototype
|
46cfc67a1d74d1f38f498d3409327692fb733fd0
|
[
"CC-BY-4.0"
] | 18
|
2017-10-02T16:31:51.000Z
|
2020-02-24T21:39:20.000Z
|
peer/chaincode_shim_pb2_grpc.py
|
jeffgarratt/fabric-prototype
|
46cfc67a1d74d1f38f498d3409327692fb733fd0
|
[
"CC-BY-4.0"
] | 4
|
2019-02-01T14:46:21.000Z
|
2021-06-01T05:49:11.000Z
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from peer import chaincode_shim_pb2 as peer_dot_chaincode__shim__pb2
class ChaincodeSupportStub(object):
"""Interface that provides support to chaincode execution. ChaincodeContext
provides the context necessary for the server to respond appropriately.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Register = channel.stream_stream(
'/protos.ChaincodeSupport/Register',
request_serializer=peer_dot_chaincode__shim__pb2.ChaincodeMessage.SerializeToString,
response_deserializer=peer_dot_chaincode__shim__pb2.ChaincodeMessage.FromString,
)
class ChaincodeSupportServicer(object):
"""Interface that provides support to chaincode execution. ChaincodeContext
provides the context necessary for the server to respond appropriately.
"""
def Register(self, request_iterator, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_ChaincodeSupportServicer_to_server(servicer, server):
rpc_method_handlers = {
'Register': grpc.stream_stream_rpc_method_handler(
servicer.Register,
request_deserializer=peer_dot_chaincode__shim__pb2.ChaincodeMessage.FromString,
response_serializer=peer_dot_chaincode__shim__pb2.ChaincodeMessage.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'protos.ChaincodeSupport', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
class ChaincodeStub(object):
"""Chaincode as a server - peer establishes a connection to the chaincode as a client
Currently only supports a stream connection.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Connect = channel.stream_stream(
'/protos.Chaincode/Connect',
request_serializer=peer_dot_chaincode__shim__pb2.ChaincodeMessage.SerializeToString,
response_deserializer=peer_dot_chaincode__shim__pb2.ChaincodeMessage.FromString,
)
class ChaincodeServicer(object):
"""Chaincode as a server - peer establishes a connection to the chaincode as a client
Currently only supports a stream connection.
"""
def Connect(self, request_iterator, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_ChaincodeServicer_to_server(servicer, server):
rpc_method_handlers = {
'Connect': grpc.stream_stream_rpc_method_handler(
servicer.Connect,
request_deserializer=peer_dot_chaincode__shim__pb2.ChaincodeMessage.FromString,
response_serializer=peer_dot_chaincode__shim__pb2.ChaincodeMessage.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'protos.Chaincode', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
| 35.247312
| 95
| 0.765101
| 359
| 3,278
| 6.657382
| 0.24234
| 0.054393
| 0.066946
| 0.075314
| 0.833891
| 0.824268
| 0.824268
| 0.758159
| 0.758159
| 0.758159
| 0
| 0.003643
| 0.162599
| 3,278
| 92
| 96
| 35.630435
| 0.867031
| 0.250153
| 0
| 0.52
| 1
| 0
| 0.08575
| 0.034048
| 0
| 0
| 0
| 0
| 0
| 1
| 0.12
| false
| 0.04
| 0.04
| 0
| 0.24
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
eeb3dcabf9443e3e638604b7c362f78dd794de47
| 2,701
|
py
|
Python
|
Segmentation/builders/frontend_builder.py
|
ardywibowo/LBD
|
1c56917fa0797c98ef1233879849c9ec536fe896
|
[
"MIT"
] | null | null | null |
Segmentation/builders/frontend_builder.py
|
ardywibowo/LBD
|
1c56917fa0797c98ef1233879849c9ec536fe896
|
[
"MIT"
] | null | null | null |
Segmentation/builders/frontend_builder.py
|
ardywibowo/LBD
|
1c56917fa0797c98ef1233879849c9ec536fe896
|
[
"MIT"
] | null | null | null |
import tensorflow as tf
from tensorflow.contrib import slim
from frontends import resnet_v2
from frontends import mobilenet_v2
from frontends import inception_v4
from frontends import xception
import os
def build_frontend_bayesian(inputs, first_pass, batch_size, frontend, is_training=True, pretrained_dir="models", pretrained_file="xception_65.ckpt",one_parameter=False):
if frontend == 'XceptionBayesian':
with slim.arg_scope(xception.xception_arg_scope()):
logits, end_points = xception.xception_65_bayesian(inputs, first_pass, batch_size, is_training=is_training, scope='xception_65',one_parameter=one_parameter)
frontend_scope='xception_65'
init_fn = slim.assign_from_checkpoint_fn(model_path=os.path.join(pretrained_dir, pretrained_file), var_list=slim.get_model_variables('xception_65'), ignore_missing_vars=True)
else:
raise ValueError("Unsupported fronetnd model '%s'. This function only supports Xception" % (frontend))
return logits, end_points, frontend_scope, init_fn
def build_frontend(inputs, frontend, is_training=True, pretrained_dir="models", pretrained_file=None,one_parameter=False):
if frontend == 'XceptionConcrete':
with slim.arg_scope(xception.xception_arg_scope()):
logits, end_points = xception.xception_65_concrete(inputs, is_training=is_training, scope='xception_65',one_parameter=one_parameter)
frontend_scope='xception_65'
init_fn = slim.assign_from_checkpoint_fn(model_path=os.path.join(pretrained_dir, pretrained_file), var_list=slim.get_model_variables('xception_65'), ignore_missing_vars=True)
elif frontend == 'Xception':
with slim.arg_scope(xception.xception_arg_scope()):
logits, end_points = xception.xception_65_concrete(inputs, is_training=is_training, scope='xception_65')
frontend_scope='xception_65'
init_fn = slim.assign_from_checkpoint_fn(model_path=os.path.join(pretrained_dir, pretrained_file), var_list=slim.get_model_variables('xception_65'), ignore_missing_vars=True)
elif frontend == 'XceptionMC':
with slim.arg_scope(xception.xception_arg_scope()):
logits, end_points = xception.xception_65_mc(inputs, is_training=is_training, scope='xception_65')
frontend_scope='xception_65'
init_fn = slim.assign_from_checkpoint_fn(model_path=os.path.join(pretrained_dir, pretrained_file), var_list=slim.get_model_variables('xception_65'), ignore_missing_vars=True)
else:
raise ValueError("Unsupported fronetnd model '%s'. This function only supports Xception" % (frontend))
return logits, end_points, frontend_scope, init_fn
| 64.309524
| 186
| 0.76268
| 357
| 2,701
| 5.420168
| 0.210084
| 0.087855
| 0.062016
| 0.033075
| 0.85478
| 0.826873
| 0.793798
| 0.793798
| 0.793798
| 0.736951
| 0
| 0.016017
| 0.144761
| 2,701
| 42
| 187
| 64.309524
| 0.821645
| 0
| 0
| 0.514286
| 0
| 0
| 0.128793
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.057143
| false
| 0.057143
| 0.2
| 0
| 0.314286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
e12b9f797e7ce35e83f026d3ff504b499e6bec40
| 2,410
|
py
|
Python
|
src/norm_functions.py
|
javiferfer/Cross-subject-EEG-emotion-recognition-through-NN
|
3dbb665167b9f42d608a2917a2987a05bbf335f7
|
[
"MIT"
] | 6
|
2021-04-17T20:48:14.000Z
|
2021-11-02T13:07:14.000Z
|
src/norm_functions.py
|
javiferfer/Cross-subject-EEG-emotion-recognition-through-NN
|
3dbb665167b9f42d608a2917a2987a05bbf335f7
|
[
"MIT"
] | null | null | null |
src/norm_functions.py
|
javiferfer/Cross-subject-EEG-emotion-recognition-through-NN
|
3dbb665167b9f42d608a2917a2987a05bbf335f7
|
[
"MIT"
] | 4
|
2021-02-26T07:24:56.000Z
|
2021-10-20T15:42:10.000Z
|
import numpy as np
no_sessions = 3
no_participants = 15
no_channels = 62
no_features = 5
def normalization(data, no_videos):
bandpower_seed_normalization = []
# Number of features
no_features = int(len(data[0])/no_channels)
for i in range(no_participants):
for j in range(no_sessions):
for k in range(no_videos):
normalized_data = []
for l in range(no_channels):
for m in range(no_features):
max_number = np.max(data[:, l*no_features+m])
min_number = np.min(data[:, l*no_features+m])
feature = data[i*no_sessions*no_videos+j*no_videos + k, l * no_features + m]
new_feature = (feature-min_number)/(max_number - min_number)
normalized_data.append(new_feature)
bandpower_seed_normalization.append(normalized_data)
bandpower_seed_normalization = np.array(bandpower_seed_normalization)
return bandpower_seed_normalization
def normalization_per_participant_session(data, no_videos):
bandpower_seed_normalization = []
# Number of features
no_features = int(len(data[0])/no_channels)
for i in range(no_participants):
for j in range(no_sessions):
for k in range(no_videos):
normalized_data = []
for l in range(no_channels):
for m in range(no_features):
max_number = np.max(data[i*no_sessions*no_videos + j * no_videos:
i*no_sessions*no_videos + (j + 1) * no_videos,
l*no_features+m])
min_number = np.min(data[i*no_sessions*no_videos + j * no_videos:
i*no_sessions*no_videos + (j + 1) * no_videos,
l*no_features+m])
feature = data[i*no_sessions*no_videos+j*no_videos + k, l * no_features+m]
new_feature = (feature-min_number)/(max_number - min_number)
normalized_data.append(new_feature)
bandpower_seed_normalization.append(normalized_data)
bandpower_seed_normalization = np.array(bandpower_seed_normalization)
return bandpower_seed_normalization
| 40.847458
| 100
| 0.571369
| 285
| 2,410
| 4.526316
| 0.154386
| 0.099225
| 0.20155
| 0.055814
| 0.908527
| 0.908527
| 0.908527
| 0.908527
| 0.908527
| 0.874419
| 0
| 0.006373
| 0.348963
| 2,410
| 58
| 101
| 41.551724
| 0.815806
| 0.015353
| 0
| 0.744186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.046512
| false
| 0
| 0.023256
| 0
| 0.116279
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
014e80ae692e50a4f8893fd77deda3b8f47a9fd6
| 14
|
py
|
Python
|
tests/var/add.py
|
Mieschendahl/assignment-final-stub
|
19eea657fcc4f8a455c42028f34b918628514cc0
|
[
"MIT"
] | 11
|
2021-02-02T02:32:50.000Z
|
2021-12-30T12:55:41.000Z
|
tests/var/add.py
|
Mieschendahl/assignment-final-stub
|
19eea657fcc4f8a455c42028f34b918628514cc0
|
[
"MIT"
] | 75
|
2021-01-27T10:53:10.000Z
|
2021-06-30T10:59:49.000Z
|
tests/var/add.py
|
Mieschendahl/assignment-final-stub
|
19eea657fcc4f8a455c42028f34b918628514cc0
|
[
"MIT"
] | 6
|
2022-03-13T13:10:25.000Z
|
2022-03-28T22:18:12.000Z
|
print(40 + 2)
| 7
| 13
| 0.571429
| 3
| 14
| 2.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.272727
| 0.214286
| 14
| 1
| 14
| 14
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
015bea5bc4cd3d032863dde1a8b7181512d9fed9
| 3,818
|
py
|
Python
|
tests/tests/test_fields/test_number_fields.py
|
intellineers/django-bridger
|
ed097984a99df7da40a4d01bd00c56e3c6083056
|
[
"BSD-3-Clause"
] | 2
|
2020-03-17T00:53:23.000Z
|
2020-07-16T07:00:33.000Z
|
tests/tests/test_fields/test_number_fields.py
|
intellineers/django-bridger
|
ed097984a99df7da40a4d01bd00c56e3c6083056
|
[
"BSD-3-Clause"
] | 76
|
2019-12-05T01:15:57.000Z
|
2021-09-07T16:47:27.000Z
|
tests/tests/test_fields/test_number_fields.py
|
intellineers/django-bridger
|
ed097984a99df7da40a4d01bd00c56e3c6083056
|
[
"BSD-3-Clause"
] | 1
|
2020-02-05T15:09:47.000Z
|
2020-02-05T15:09:47.000Z
|
from decimal import Decimal
import pytest
from rest_framework.exceptions import ValidationError
from bridger.serializers import DecimalField, FloatField, IntegerField
from bridger.serializers.fields.types import BridgerType
from ...models import ModelTest
class TestIntegerField:
def setup_method(self):
self.field = IntegerField()
def test_not_none(self):
assert self.field is not None
@pytest.mark.parametrize("input, expected", [(1, 1), ("1", 1), (-1, -1), (0, 0)])
def test_to_internal_value(self, input, expected):
assert self.field.to_internal_value(input) == expected
@pytest.mark.parametrize("input", [None, [], "a", "", {}, 1.2])
def test_to_internal_value_validation_error(self, input):
with pytest.raises(ValidationError):
self.field.to_internal_value(input)
def test_field_type(self):
assert self.field.field_type == BridgerType.NUMBER.value
def test_representation(self):
assert self.field.get_representation(None, "field_name") == {
"key": "field_name",
"label": None,
"type": self.field.field_type,
"required": True,
"read_only": False,
"precision": 0,
"decorators": [],
}
class TestDecimalField:
def setup_method(self):
self.field = DecimalField(decimal_places=2, max_digits=5)
def test_not_none(self):
assert self.field is not None
@pytest.mark.parametrize(
"input, expected", [(1.0, Decimal(1)), ("1.0", Decimal(1)), (-1.0, Decimal(-1)), (0, Decimal(0))],
)
def test_to_internal_value(self, input, expected):
assert self.field.to_internal_value(input) == expected
@pytest.mark.parametrize("input", [None, [], "a", "", {}])
def test_to_internal_value_validation_error(self, input):
with pytest.raises(ValidationError):
self.field.to_internal_value(input)
def test_field_type(self):
assert self.field.field_type == BridgerType.NUMBER.value
def test_representation(self):
assert self.field.get_representation(None, "field_name") == {
"key": "field_name",
"label": None,
"type": self.field.field_type,
"required": True,
"read_only": False,
"precision": 2,
"decorators": [],
}
def test_percent_representation(self):
_field = self.field
_field.percent = True
assert _field.get_representation(None, "field_name") == {
"key": "field_name",
"label": None,
"type": BridgerType.PERCENT.value,
"required": True,
"read_only": False,
"precision": 0,
"decorators": [],
}
class TestFloatField:
def setup_method(self):
self.field = FloatField()
def test_not_none(self):
assert self.field is not None
@pytest.mark.parametrize("input, expected", [(1.0, 1.0), ("1.0", 1.0), (-1.0, -1.0), (0, 0)])
def test_to_internal_value(self, input, expected):
assert self.field.to_internal_value(input) == expected
@pytest.mark.parametrize("input", [None, [], "a", "", {}])
def test_to_internal_value_validation_error(self, input):
with pytest.raises(ValidationError):
self.field.to_internal_value(input)
def test_field_type(self):
assert self.field.field_type == BridgerType.NUMBER.value
def test_representation(self):
assert self.field.get_representation(None, "field_name") == {
"key": "field_name",
"label": None,
"type": self.field.field_type,
"required": True,
"read_only": False,
"precision": 2,
"decorators": [],
}
| 32.355932
| 106
| 0.60791
| 437
| 3,818
| 5.118993
| 0.15103
| 0.092535
| 0.080465
| 0.076442
| 0.807331
| 0.805096
| 0.768887
| 0.768887
| 0.75637
| 0.726866
| 0
| 0.014452
| 0.256941
| 3,818
| 117
| 107
| 32.632479
| 0.774057
| 0
| 0
| 0.706522
| 0
| 0
| 0.089576
| 0
| 0
| 0
| 0
| 0
| 0.141304
| 1
| 0.206522
| false
| 0
| 0.065217
| 0
| 0.304348
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
6d8182230c9fbadb0b6ebd607e7e054c7a44226c
| 41,507
|
py
|
Python
|
contrail-opserver/test/test_log.py
|
toha10/contrail-analytics
|
f5c84afd13ecb10062f960d02b2c4f10a5c3f11b
|
[
"Apache-2.0"
] | null | null | null |
contrail-opserver/test/test_log.py
|
toha10/contrail-analytics
|
f5c84afd13ecb10062f960d02b2c4f10a5c3f11b
|
[
"Apache-2.0"
] | 2
|
2018-12-04T02:20:52.000Z
|
2018-12-22T06:16:30.000Z
|
contrail-opserver/test/test_log.py
|
toha10/contrail-analytics
|
f5c84afd13ecb10062f960d02b2c4f10a5c3f11b
|
[
"Apache-2.0"
] | 1
|
2018-12-04T02:07:47.000Z
|
2018-12-04T02:07:47.000Z
|
import sys
import json
import gevent
from gevent import monkey
monkey.patch_all()
import unittest
from flexmock import flexmock
from opserver.log import LogQuerier
from opserver.opserver_util import OpServerUtils
from multiprocessing import Process
test_num = 0
query_list = []
query_result = {
1: [
{u'Category': None, u'NodeType': u'Config', u'Level': 2147483647, u'InstanceId': u'0', u'Messagetype': u'UveVirtualNetworkConfigTrace', u'Source': u'a6s45', u'SequenceNum': 6867683, u'MessageTS': 1442429588898861, u'Xmlmessage': u'<UveVirtualNetworkConfigTrace type="sandesh"><data type="struct" identifier="1"><UveVirtualNetworkConfig><name type="string" identifier="1" key="ObjectVNTable">default-domain:demo:svc-vn-left</name><connected_networks type="list" identifier="4" aggtype="union"><list type="string" size="0" /></connected_networks><partially_connected_networks type="list" identifier="5" aggtype="union"><list type="string" size="0" /></partially_connected_networks><routing_instance_list type="list" identifier="6" aggtype="union"><list type="string" size="1"><element>svc-vn-left</element></list></routing_instance_list><total_acl_rules type="i32" identifier="7">0</total_acl_rules></UveVirtualNetworkConfig></data></UveVirtualNetworkConfigTrace>', u'Type': 6, u'ModuleId': u'contrail-schema'}
],
2: [
{u'Category': None, u'NodeType': u'Analytics', u'Level': 2147483647, u'InstanceId': u'0', u'Messagetype': u'GeneratorDbStatsUve', u'Source': u'a6s45', u'SequenceNum': 56411, u'MessageTS': 1442429889555171, u'Xmlmessage': u'<GeneratorDbStatsUve type="sandesh"><data type="struct" identifier="1"><GeneratorDbStats><name type="string" identifier="1" key="ObjectGeneratorInfo">a6s10:Compute:contrail-vrouter-agent:0</name><table_info type="list" identifier="3" tags=".table_name"><list type="struct" size="12"><DbTableInfo><table_name type="string" identifier="1">MessageTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableCategory</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableKeyword</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">0</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableMessageType</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableModuleId</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableSource</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableTimestamp</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">ObjectTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">ObjectValueTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByDblTagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">1</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByStrTagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">102</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByU64TagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">2</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo></list></table_info><errors type="list" identifier="4" tags=""><list type="struct" size="1"><DbErrors><write_tablespace_fails type="u64" identifier="1">0</write_tablespace_fails><read_tablespace_fails type="u64" identifier="2">0</read_tablespace_fails><write_table_fails type="u64" identifier="3">0</write_table_fails><read_table_fails type="u64" identifier="4">0</read_table_fails><write_column_fails type="u64" identifier="5">0</write_column_fails><write_batch_column_fails type="u64" identifier="6">0</write_batch_column_fails><read_column_fails type="u64" identifier="7">0</read_column_fails></DbErrors></list></errors><statistics_table_info type="list" identifier="5" tags=".table_name"><list type="struct" size="3"><DbTableInfo><table_name type="string" identifier="1">ComputeCpuState:cpu_info</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">5</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">FieldNames:fields</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">96</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">VrouterStatsAgent:flow_rate</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">4</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo></list></statistics_table_info></GeneratorDbStats></data></GeneratorDbStatsUve>', u'Type': 6, u'ModuleId': u'contrail-collector'}
],
3: [
{u'ObjectId': u'virtual_network:default-domain:admin:vn1-take2'}
],
4: [
{u'ObjectLog': u'<VncApiConfigLog type="sandesh"><api_log type="struct" identifier="1"><VncApiCommon><object_type type="string" identifier="2" key="ConfigObjectTable">virtual_network</object_type><identifier_name type="string" identifier="3" key="ConfigObjectTable">default-domain:admin:vn1-take2</identifier_name><url type="string" identifier="4">http://127.0.0.1:9100/virtual-networks</url><operation type="string" identifier="5">post</operation><useragent type="string" identifier="6">a6s45:/usr/bin/contrail-api</useragent><remote_ip type="string" identifier="7">127.0.0.1:9100</remote_ip><body type="string" identifier="9">{'virtual-network': {'fq_name': ['default-domain', 'admin', 'vn1-take2'], 'uuid': None, 'network_policy_refs': [], 'router_external': False, 'parent_type': 'project', 'id_perms': {u'enable': True, u'uuid': None, u'creator': None, u'created': 0, u'user_visible': True, u'last_modified': 0, u'permissions': {u'owner': u'cloud-admin', u'owner_access': 7, u'other_access': 7, u'group': u'cloud-admin-group', u'group_access': 7}, u'description': None}, 'display_name': 'vn1-take2', 'is_shared': False}}</body><domain type="string" identifier="10" key="ConfigObjectTableByUser">default-domain</domain></VncApiCommon></api_log></VncApiConfigLog>', u'Messagetype': u'VncApiConfigLog', u'Source': u'a6s45', u'MessageTS': 1442434711187905, u'SystemLog': None, u'ModuleId': u'contrail-api'}
],
5: [
{u'Category': None, u'NodeType': u'Config', u'Level': 2147483647, u'InstanceId': u'0', u'Messagetype': u'UveVirtualNetworkConfigTrace', u'Source': u'nodec39', u'SequenceNum': 6867683, u'MessageTS': 1442429588898861, u'Xmlmessage': u'<UveVirtualNetworkConfigTrace type="sandesh"><data type="struct" identifier="1"><UveVirtualNetworkConfig><name type="string" identifier="1" key="ObjectVNTable">default-domain:demo:svc-vn-left</name><connected_networks type="list" identifier="4" aggtype="union"><list type="string" size="0" /></connected_networks><partially_connected_networks type="list" identifier="5" aggtype="union"><list type="string" size="0" /></partially_connected_networks><routing_instance_list type="list" identifier="6" aggtype="union"><list type="string" size="1"><element>svc-vn-left</element></list></routing_instance_list><total_acl_rules type="i32" identifier="7">0</total_acl_rules></UveVirtualNetworkConfig></data></UveVirtualNetworkConfigTrace>', u'Type': 6, u'ModuleId': u'contrail-schema'}
],
6: [
{u'Category': None, u'NodeType': u'Config', u'Level': 2147483647, u'InstanceId': u'0', u'Messagetype': u'UveVirtualNetworkConfigTrace', u'Source': u'a6s45', u'SequenceNum': 6867683, u'MessageTS': 1442429588898861, u'Xmlmessage': u'<UveVirtualNetworkConfigTrace type="sandesh"><data type="struct" identifier="1"><UveVirtualNetworkConfig><name type="string" identifier="1" key="ObjectVNTable">default-domain:demo:svc-vn-left</name><connected_networks type="list" identifier="4" aggtype="union"><list type="string" size="0" /></connected_networks><partially_connected_networks type="list" identifier="5" aggtype="union"><list type="string" size="0" /></partially_connected_networks><routing_instance_list type="list" identifier="6" aggtype="union"><list type="string" size="1"><element>svc-vn-left</element></list></routing_instance_list><total_acl_rules type="i32" identifier="7">0</total_acl_rules></UveVirtualNetworkConfig></data></UveVirtualNetworkConfigTrace>', u'Type': 6, u'ModuleId': u'contrail-schema'}
],
7: [
{"Category": "__default__", "NodeType": "Analytics", "Level": "SYS_INFO", "InstanceId": 0, "Messagetype": "AlarmgenUpdate", "Source": "a6s30", "SequenceNum": 2958, "MessageTS": "2017 Jun 21 18:51:49.826229", "Xmlmessage": {"AlarmgenUpdate": {"name": "a6s45:Analytics:contrail-alarm-gen:0", "partition": 0, "table": "ObjectBgpRouter", "i": {"list": {"UVETypeInfo": {"collector": "10.84.13.45:6381", "generator": "a6s45:Control:contrail-control-nodemgr:0", "type": "NodeStatus", "count": 1}}}}}, "Type": 7, "ModuleId": "contrail-alarm-gen"},
{"Category": "__default__", "NodeType": "Analytics", "Level": "SYS_INFO", "InstanceId": 0, "Messagetype": "AnalyticsApiStats", "Source": "a6s45", "SequenceNum": 448, "MessageTS": "2017 Jun 21 18:53:18.017911", "Xmlmessage": {"AnalyticsApiStats": {"api_stats": {"AnalyticsApiSample": {"operation_type": "GET", "remote_ip": "10.84.13.45", "object_type": "vrouter", "request_url": "http://10.84.13.45:8081/analytics/uves/vrouter/%2A?cfilt=VrouterAgent:mode", "response_time_in_usec": 228147, "response_size_objects": 1, "node": "a6s45", "response_size_bytes": 65, "resp_code": 200, "useragent": "python-requests/2.9.1"}}}}, "Type": 7, "ModuleId": "contrail-analytics-api"}
],
8: [
{u'Category': None, u'NodeType': u'Config', u'Level': 2147483647, u'InstanceId': u'0', u'Messagetype': u'UveVirtualNetworkConfigTrace', u'Source': u'a6s45', u'SequenceNum': 6867683, u'MessageTS': 1442429588898861, u'Xmlmessage': u'<UveVirtualNetworkConfigTrace type="sandesh"><data type="struct" identifier="1"><UveVirtualNetworkConfig><name type="string" identifier="1" key="ObjectVNTable">default-domain:demo:svc-vn-left</name><connected_networks type="list" identifier="4" aggtype="union"><list type="string" size="0" /></connected_networks><partially_connected_networks type="list" identifier="5" aggtype="union"><list type="string" size="0" /></partially_connected_networks><routing_instance_list type="list" identifier="6" aggtype="union"><list type="string" size="1"><element>svc-vn-left</element></list></routing_instance_list><total_acl_rules type="i32" identifier="7">0</total_acl_rules></UveVirtualNetworkConfig></data></UveVirtualNetworkConfigTrace>', u'Type': 6, u'ModuleId': u'contrail-control'},
{u'Category': None, u'NodeType': u'Analytics', u'Level': 2147483647, u'InstanceId': u'0', u'Messagetype': u'GeneratorDbStatsUve', u'Source': u'a6s45', u'SequenceNum': 56411, u'MessageTS': 1442429889555171, u'Xmlmessage': u'<GeneratorDbStatsUve type="sandesh"><data type="struct" identifier="1"><GeneratorDbStats><name type="string" identifier="1" key="ObjectGeneratorInfo">a6s10:Compute:contrail-vrouter-agent:0</name><table_info type="list" identifier="3" tags=".table_name"><list type="struct" size="12"><DbTableInfo><table_name type="string" identifier="1">MessageTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableCategory</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableKeyword</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">0</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableMessageType</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableModuleId</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableSource</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableTimestamp</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">ObjectTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">ObjectValueTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByDblTagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">1</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByStrTagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">102</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByU64TagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">2</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo></list></table_info><errors type="list" identifier="4" tags=""><list type="struct" size="1"><DbErrors><write_tablespace_fails type="u64" identifier="1">0</write_tablespace_fails><read_tablespace_fails type="u64" identifier="2">0</read_tablespace_fails><write_table_fails type="u64" identifier="3">0</write_table_fails><read_table_fails type="u64" identifier="4">0</read_table_fails><write_column_fails type="u64" identifier="5">0</write_column_fails><write_batch_column_fails type="u64" identifier="6">0</write_batch_column_fails><read_column_fails type="u64" identifier="7">0</read_column_fails></DbErrors></list></errors><statistics_table_info type="list" identifier="5" tags=".table_name"><list type="struct" size="3"><DbTableInfo><table_name type="string" identifier="1">ComputeCpuState:cpu_info</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">5</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">FieldNames:fields</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">96</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">VrouterStatsAgent:flow_rate</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">4</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo></list></statistics_table_info></GeneratorDbStats></data></GeneratorDbStatsUve>', u'Type': 6, u'ModuleId': u'contrail-collector'}
],
9: [
],
10: [
{u'Category': None, u'NodeType': u'Analytics', u'Level': 2147483647, u'InstanceId': u'0', u'Messagetype': u'GeneratorDbStatsUve', u'Source': u'a6s45', u'SequenceNum': 56411, u'MessageTS': 1442429889555171, u'Xmlmessage': u'<GeneratorDbStatsUve type="sandesh"><data type="struct" identifier="1"><GeneratorDbStats><name type="string" identifier="1" key="ObjectGeneratorInfo">a6s10:Compute:contrail-vrouter-agent:0</name><table_info type="list" identifier="3" tags=".table_name"><list type="struct" size="12"><DbTableInfo><table_name type="string" identifier="1">MessageTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableCategory</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableKeyword</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">0</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableMessageType</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableModuleId</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableSource</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">MessageTableTimestamp</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">ObjectTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">ObjectValueTable</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">12</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByDblTagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">1</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByStrTagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">102</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">StatsTableByU64TagV3</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">2</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo></list></table_info><errors type="list" identifier="4" tags=""><list type="struct" size="1"><DbErrors><write_tablespace_fails type="u64" identifier="1">0</write_tablespace_fails><read_tablespace_fails type="u64" identifier="2">0</read_tablespace_fails><write_table_fails type="u64" identifier="3">0</write_table_fails><read_table_fails type="u64" identifier="4">0</read_table_fails><write_column_fails type="u64" identifier="5">0</write_column_fails><write_batch_column_fails type="u64" identifier="6">0</write_batch_column_fails><read_column_fails type="u64" identifier="7">0</read_column_fails></DbErrors></list></errors><statistics_table_info type="list" identifier="5" tags=".table_name"><list type="struct" size="3"><DbTableInfo><table_name type="string" identifier="1">ComputeCpuState:cpu_info</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">5</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">FieldNames:fields</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">96</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo><DbTableInfo><table_name type="string" identifier="1">VrouterStatsAgent:flow_rate</table_name><reads type="u64" identifier="2">0</reads><read_fails type="u64" identifier="3">0</read_fails><writes type="u64" identifier="4">4</writes><write_fails type="u64" identifier="5">0</write_fails></DbTableInfo></list></statistics_table_info></GeneratorDbStats></data></GeneratorDbStatsUve>', u'Type': 6, u'ModuleId': u'contrail-collector'},
{u'Category': None, u'NodeType': u'Config', u'Level': 2147483647, u'InstanceId': u'0', u'Messagetype': u'UveVirtualNetworkConfigTrace', u'Source': u'a6s45', u'SequenceNum': 6867683, u'MessageTS': 1442429588898861, u'Xmlmessage': u'<UveVirtualNetworkConfigTrace type="sandesh"><data type="struct" identifier="1"><UveVirtualNetworkConfig><name type="string" identifier="1" key="ObjectVNTable">default-domain:demo:svc-vn-left</name><connected_networks type="list" identifier="4" aggtype="union"><list type="string" size="0" /></connected_networks><partially_connected_networks type="list" identifier="5" aggtype="union"><list type="string" size="0" /></partially_connected_networks><routing_instance_list type="list" identifier="6" aggtype="union"><list type="string" size="1"><element>svc-vn-left</element></list></routing_instance_list><total_acl_rules type="i32" identifier="7">0</total_acl_rules></UveVirtualNetworkConfig></data></UveVirtualNetworkConfigTrace>', u'Type': 6, u'ModuleId': u'contrail-control'}
]
}
class LogQuerierTest(unittest.TestCase):
@staticmethod
def custom_post_url_http(url, params):
global query_list
query_list.append(json.loads(params))
return '{"href": "/analytics/query/a415fe1e-51cb-11e5-aab0-00000a540d2d"}'
@staticmethod
def custom_get_query_result(opserver_ip, opserver_port, qid):
try:
return query_result[test_num]
except KeyError:
return []
def custom_display(self, result):
if result == [] or result is None:
return
try:
self.assertTrue(result == query_result[test_num])
except KeyError:
self.assertTrue(False)
def custom_process_start(self):
self._querier.display(self._querier.read_result(query_result[test_num]))
def custom_process_end(self):
return
def setUp(self):
self.maxDiff = None
self._querier = LogQuerier()
flexmock(OpServerUtils).should_receive('post_url_http').replace_with(lambda x, y, w, z: self.custom_post_url_http(x, y))
self.query_expectations = flexmock(OpServerUtils).should_receive('get_query_result').replace_with(lambda x, y, z, a, b: self.custom_get_query_result(x, y, z))
self.display_expectations = flexmock(LogQuerier).should_receive('display').replace_with(lambda x: self.custom_display(x))
self.process_start_expectations = flexmock(Process).should_receive('start').replace_with(lambda:self.custom_process_start())
self.process_end_expectations = flexmock(Process).should_receive('join').replace_with(lambda:self.custom_process_end())
#@unittest.skip("skip test_1_no_arg")
def test_1_no_arg(self):
global test_num
global query_list
query_list = []
test_num = 1
argv = sys.argv
sys.argv = "contrail-logs".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable"}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
# a few args
#@unittest.skip("skip test_2_message_query")
def test_2_message_query(self):
global test_num
global query_list
query_list = []
test_num = 2
argv = sys.argv
sys.argv = "contrail-logs --source a6s45 --node-type Analytics --module contrail-collector --instance-id 0 --message-type GeneratorDbStatsUve".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable", "where": [[{"suffix": null, "value2": null, "name": "Source", "value": "a6s45", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-collector", "op": 1}, {"suffix": null, "value2": null, "name": "Messagetype", "value": "GeneratorDbStatsUve", "op": 1}]], "filter": [[{"suffix": null, "value2": null, "name": "NodeType", "value": "Analytics", "op": 1}, {"suffix": null, "value2": null, "name": "InstanceId", "value": 0, "op": 1}]]}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
# a object values query
#@unittest.skip("skip test_3_object_value")
def test_3_object_value(self):
global test_num
global query_list
query_list = []
test_num = 3
argv = sys.argv
sys.argv = "contrail-logs --object-type config --object-values".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"table": "ConfigObjectTable", "select_fields": ["ObjectId"]}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
# a object id query
#@unittest.skip("skip test_4_object_id")
def test_4_object_id(self):
global test_num
global query_list
query_list = []
test_num = 4
argv = sys.argv
sys.argv = "contrail-logs --object-type config --object-id virtual_network:default-domain:admin:vn1-take2".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Messagetype", "ObjectLog", "SystemLog"], "table": "ConfigObjectTable", "where": [[{"suffix": null, "value2": null, "name": "ObjectId", "value": "virtual_network:default-domain:admin:vn1-take2", "op": 1}]]}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
# prefix query
#@unittest.skip("skip test_5_prefix_query")
def test_5_prefix_query(self):
global test_num
global query_list
query_list = []
test_num = 5
argv = sys.argv
sys.argv = "contrail-logs --source node* --message-type UveVirtualNetwork*".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable", "where": [[{"suffix": null, "value2": null, "name": "Source", "value": "node", "op": 7}, {"suffix": null, "value2": null, "name": "Messagetype", "value": "UveVirtualNetwork", "op": 7}]]}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
# end test_5_prefix_query
#@unittest.skip("skip test_6_long_query")
def test_6_long_query(self):
global test_num
global query_list
query_list = []
test_num = 6
argv = sys.argv
sys.argv = "contrail-logs --last 25m".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable"}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(self.query_expectations.times_called,3)
self.assertEqual(self.display_expectations.times_called,4)
self.assertEqual(self.process_start_expectations.times_called,3)
for i in range(len(query_list) - 1):
self.assertEqual(int(query_list[i]['end_time']) - int(query_list[i]['start_time']),10*60*pow(10,6))
del query_list[i]['start_time']
del query_list[i]['end_time']
self.assertEqual(expected_result_dict, query_list[i])
self.assertEqual(int(query_list[2]['end_time']) - int(query_list[2]['start_time']),5*60*pow(10,6) - 2)
del query_list[2]['start_time']
del query_list[2]['end_time']
self.assertEqual(expected_result_dict, query_list[2])
#@unittest.skip("skip test_8_multiple_sources_query")
def test_7_multiple_sources_query(self):
global test_num
global query_list
query_list = []
test_num = 7
argv = sys.argv
sys.argv = "contrail-logs --source a6s45 a6s30 --category __default__".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable", "where": [[{"suffix": null, "value2": null, "name": "Source", "value": "a6s45", "op": 1}], [{"suffix": null, "value2": null, "name": "Source", "value": "a6s30", "op": 1}]], "filter": [[{"suffix": null, "value2": null, "name": "Category", "value": "__default__", "op": 1}]]}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
#@unittest.skip("skip test_8_multiple_modules_query")
def test_8_multiple_modules_query(self):
global test_num
global query_list
query_list = []
test_num = 8
argv = sys.argv
sys.argv = "contrail-logs --module contrail-control contrail-collector --source a6s45".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable", "where": [[{"suffix": null, "value2": null, "name": "Source", "value": "a6s45", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-control", "op": 1}], [ {"suffix": null, "value2": null, "name": "Source", "value": "a6s45", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-collector", "op": 1}]]}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
#@unittest.skip("skip test_9_multiple_message_types_query")
def test_9_multiple_message_types_query(self):
global test_num
global query_list
query_list = []
test_num = 9
argv = sys.argv
sys.argv = "contrail-logs --message-type CollectorDbStatsTrace Alarm* ".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable", "where": [[{"suffix": null, "value2": null, "name": "Messagetype", "value": "CollectorDbStatsTrace", "op": 1}], [{"suffix": null, "value2": null, "name": "Messagetype", "value": "Alarm", "op": 7}]]}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
#@unittest.skip("skip test_10_multiple_or_query")
def test_10_multiple_or_query(self):
global test_num
global query_list
query_list = []
test_num = 10
argv = sys.argv
sys.argv = "contrail-logs --source a6s45 a6s35 --module contrail-control contrail-collector contrail-analytics-api".split()
self._querier.run()
sys.argv = argv
expected_result_str = '{"sort": 1, "sort_fields": ["MessageTS"], "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable", "where": [[{"suffix": null, "value2": null, "name": "Source", "value": "a6s45", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-control", "op": 1}], [{"suffix": null, "value2": null, "name": "Source", "value": "a6s45", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-collector", "op": 1}], [{"suffix": null, "value2": null, "name": "Source", "value": "a6s45", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-analytics-api", "op": 1}], [{"suffix": null, "value2": null, "name": "Source", "value": "a6s35", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-control", "op": 1}], [{"suffix": null, "value2": null, "name": "Source", "value": "a6s35", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-collector", "op": 1}], [{"suffix": null, "value2": null, "name": "Source", "value": "a6s35", "op": 1}, {"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-analytics-api", "op": 1}]]}'
expected_result_dict = json.loads(expected_result_str)
self.assertEqual(int(query_list[0]['end_time']) - int(query_list[0]['start_time']),10*60*pow(10,6))
del query_list[0]['start_time']
del query_list[0]['end_time']
self.assertEqual(expected_result_dict, query_list[0])
self.assertEqual(self.query_expectations.times_called,1)
self.assertEqual(self.display_expectations.times_called,2)
self.assertEqual(self.process_start_expectations.times_called,1)
if __name__ == '__main__':
unittest.main()
| 128.108025
| 5,751
| 0.717373
| 5,630
| 41,507
| 5.11492
| 0.058792
| 0.048859
| 0.118658
| 0.084801
| 0.879571
| 0.853422
| 0.840921
| 0.826892
| 0.821474
| 0.811369
| 0
| 0.048457
| 0.094611
| 41,507
| 323
| 5,752
| 128.504644
| 0.717829
| 0.01301
| 0
| 0.598485
| 0
| 0.079545
| 0.722871
| 0.414461
| 0
| 0
| 0
| 0
| 0.204545
| 1
| 0.060606
| false
| 0
| 0.034091
| 0.003788
| 0.117424
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
6dc967ea4e08c63d8b0454b56c430c16a0b1ed3b
| 3,639
|
py
|
Python
|
test/test_sqa14.py
|
OceansAus/cosima-cookbook
|
ac2d674bf7639558e125d390457fcf6692b92b7a
|
[
"Apache-2.0"
] | 30
|
2017-03-30T14:22:43.000Z
|
2019-04-08T10:27:14.000Z
|
test/test_sqa14.py
|
COSIMA/cosima-cookbook
|
ac2d674bf7639558e125d390457fcf6692b92b7a
|
[
"Apache-2.0"
] | 170
|
2019-04-18T04:02:13.000Z
|
2022-03-24T04:12:42.000Z
|
test/test_sqa14.py
|
COSIMA/cosima-cookbook
|
ac2d674bf7639558e125d390457fcf6692b92b7a
|
[
"Apache-2.0"
] | 16
|
2019-05-31T01:42:41.000Z
|
2021-11-19T02:41:12.000Z
|
import pytest
from cosima_cookbook.database import *
def test_empty_file(session_db):
session, db = session_db
exp = NCExperiment(experiment="a", root_dir="b")
file = NCFile()
file.experiment = exp
session.add(exp)
session.commit()
assert session.query(NCFile).count() == 1
assert session.query(NCExperiment).count() == 1
def test_file_one_var(session_db):
session, db = session_db
exp = NCExperiment(experiment="a", root_dir="b")
file = NCFile()
cfvar = CFVariable(name="c")
var = NCVar()
file.experiment = exp
var.ncfile = file
var.variable = cfvar
session.add(exp)
session.commit()
assert session.query(NCFile).count() == 1
assert session.query(NCVar).count() == 1
def test_file_attr(session_db):
session, db = session_db
exp = NCExperiment(experiment="a", root_dir="b")
file = NCFile()
cfvar = CFVariable(name="c")
var = NCVar()
file.experiment = exp
file.attrs["x"] = "y"
session.add(exp)
session.commit()
assert session.query(NCFile).count() == 1
assert session.query(NCAttribute).count() == 1
assert session.query(NCAttributeString).count() == 2
# Add another attribute with duplicate string
file.attrs["z"] = "y"
session.add(exp)
session.commit()
assert session.query(NCFile).count() == 1
assert session.query(NCAttribute).count() == 2
assert session.query(NCAttributeString).count() == 3
def test_var_attr(session_db):
session, db = session_db
exp = NCExperiment(experiment="a", root_dir="b")
file = NCFile()
cfvar = CFVariable(name="c")
var = NCVar()
file.experiment = exp
var.ncfile = file
var.variable = cfvar
var.attrs["x"] = "y"
session.add(exp)
session.commit()
assert session.query(NCFile).count() == 1
assert session.query(NCAttribute).count() == 1
assert session.query(NCAttributeString).count() == 2
# Add another attribute with duplicate string
var.attrs["z"] = "y"
session.add(exp)
session.commit()
assert session.query(NCAttribute).count() == 2
assert session.query(NCAttributeString).count() == 3
# Add an attribute to the file
file.attrs["y"] = "x"
session.add(exp)
session.commit()
assert session.query(NCAttribute).count() == 3
assert session.query(NCAttributeString).count() == 3
def test_index_file(session_db):
session, db = session_db
exp = NCExperiment(experiment="a", root_dir="test/data/querying")
file = index_file("output000/ocean.nc", exp, session)
session.add(exp)
session.commit()
assert session.query(NCFile).count() == 1
assert session.query(CFVariable).count() == 38
assert session.query(NCVar).count() == 38
assert session.query(NCAttribute).count() == 243 - 18
var = session.query(NCVar).filter(NCVar.varname == "temp").one()
assert var.attrs["long_name"] == "Potential temperature"
def test_file_delete(session_db):
session, db = session_db
exp = NCExperiment(experiment="a", root_dir="test/data/querying")
file = index_file("output000/ocean.nc", exp, session)
session.add(exp)
session.commit()
assert session.query(NCFile).count() == 1
session.delete(file)
session.commit()
assert session.query(NCExperiment).count() == 1
assert session.query(NCFile).count() == 0
assert session.query(CFVariable).count() == 38 # Not cascaded
assert session.query(NCVar).count() == 0
assert session.query(NCAttribute).count() == 0
assert session.query(NCAttributeString).count() == 114 # Not cascaded
| 24.755102
| 74
| 0.656774
| 457
| 3,639
| 5.153173
| 0.155361
| 0.147771
| 0.214013
| 0.09172
| 0.878132
| 0.774522
| 0.729512
| 0.729512
| 0.706157
| 0.706157
| 0
| 0.014761
| 0.199505
| 3,639
| 146
| 75
| 24.924658
| 0.793683
| 0.039022
| 0
| 0.747368
| 0
| 0
| 0.036952
| 0
| 0
| 0
| 0
| 0
| 0.305263
| 1
| 0.063158
| false
| 0
| 0.021053
| 0
| 0.084211
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
6df06734f61b756d4cfd5ace0282ad75862f51f3
| 96,315
|
py
|
Python
|
metadata_sync/metadata/_xml_metadata.py
|
alex-ip/metadata_sync
|
a6b9de7e1fe1d3bae8669ec41cd09407e3e0afbc
|
[
"Apache-2.0"
] | null | null | null |
metadata_sync/metadata/_xml_metadata.py
|
alex-ip/metadata_sync
|
a6b9de7e1fe1d3bae8669ec41cd09407e3e0afbc
|
[
"Apache-2.0"
] | null | null | null |
metadata_sync/metadata/_xml_metadata.py
|
alex-ip/metadata_sync
|
a6b9de7e1fe1d3bae8669ec41cd09407e3e0afbc
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
"""XML Metadata module
Author: Alex Ip (alex.ip@ga.gov.au)
"""
import xml.dom.minidom
import logging
import os
import re
import unicodedata
from _metadata import Metadata
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO) # Initial logging level for this module
class XMLMetadata(Metadata):
"""Subclass of Metadata to manage XML data
"""
# Class variable holding metadata type string
_metadata_type_id = 'XML'
_filename_pattern = '.*\.xml' # Default RegEx for finding metadata file.
def unicode_to_ascii(self, instring):
"""Convert unicode to char string if required and strip any leading/trailing whitespaces
ToDO: Investigate whether we can just change the encoding of the DOM tree
"""
result = instring
if isinstance(result, unicode):
result = unicodedata.normalize('NFKD', result).encode(
'ascii', 'ignore').strip(""" "'\n\t""")
return result
def __init__(self, source=None, uses_attributes=False):
"""Instantiates XMLMetadata object. Overrides Metadata method
"""
self._uses_attributes = uses_attributes # Boolean flag indicating whether values are stored as tag attributes
# Dict containing processing instruction name and value
self.processing_instruction = {}
# Dict containing any attributes when not self._uses_attributes
self.document_attributes = {}
Metadata.__init__(self, source) # Call inherited constructor
def _populate_dict_from_node(self, node, tree_dict, level=0):
"""Private recursive function to populate a nested dict from DOM tree or element node
Exposed to allow unit testing using a DOM tree constructed from a string
Arguments:
node: xml.dom.Node object to traverse
tree_dict: nested dict structure to hold result
"""
def set_node_value(node_dict, key, value):
'''Sets node_dict[key] to value when node_dict[key] doesn't already exist, otherwise appends comma-separated value
'''
# TODO: Do something better than comma-separated text - one-way
# translation only: will break if text contains commas
existing_value = node_dict.get(key)
if existing_value: # Existing leaf node found - repeated xpath
if value:
# Append new value to comma-separated list
node_dict[key] = existing_value + ', ' + value
else: # No existing leaf node - new xpath
node_dict[key] = value
# Traverse all non-text nodes
for child_node in [
x for x in node.childNodes if x.nodeType == xml.dom.minidom.Node.ELEMENT_NODE]:
nodeName = child_node.nodeName
if nodeName:
nodeName = self.unicode_to_ascii(nodeName)
logger.debug('%sDOM Node name = %s, Node type = %s, Child nodes = %s, Attributes = %s',
' ' * level, nodeName, child_node.nodeType, child_node.childNodes, child_node.attributes)
subtree_dict = tree_dict.get(nodeName) or {}
if child_node.childNodes: # Recursive call to check for non-text child nodes
self._populate_dict_from_node(
child_node, subtree_dict, level + 1)
logger.debug('%s subtree_dict = %s',
' ' * level, subtree_dict)
if child_node.attributes:
logger.debug('%s Child node attribute count = %s',
' ' * level, len(child_node.attributes))
# Not a leaf node - sub-nodes found
if subtree_dict and not tree_dict.get(nodeName):
tree_dict[nodeName] = subtree_dict
elif child_node.attributes: # Leaf node - values held in attributes
self._uses_attributes = True # Remember that attributes are being used for this file
subtree_dict = tree_dict.get(nodeName) or {}
tree_dict[nodeName] = subtree_dict
level += 1
for attr_index in range(len(child_node.attributes)):
attribute = child_node.attributes.item(attr_index)
logger.debug('%s Attribute: %s = %s', ' ' *
level, attribute.name, attribute.value)
set_node_value(subtree_dict, self.unicode_to_ascii(
attribute.name), self.unicode_to_ascii(attribute.value))
# Leaf node - value held in child text node
if child_node.childNodes and child_node.childNodes[
0].nodeType == xml.dom.minidom.Node.TEXT_NODE:
node_value = self.unicode_to_ascii(
child_node.childNodes[0].nodeValue)
# TODO: Do something better than using 'TEXT' as key
set_node_value(subtree_dict, 'TEXT', node_value)
level -= 1
# Leaf node - value held in child text node
elif child_node.childNodes and child_node.childNodes[0].nodeType == xml.dom.minidom.Node.TEXT_NODE:
# Take value of first text child node
node_value = self.unicode_to_ascii(
child_node.childNodes[0].nodeValue)
logger.debug(
'%s Node value = %s from text child node', ' ' * level, node_value)
set_node_value(tree_dict, nodeName, node_value)
elif not child_node.childNodes: # Empty leaf node
tree_dict[nodeName] = ''
def _populate_node_from_dict(
self, tree_dict, node, uses_attributes, owner_document=None, level=0):
"""Private recursive function to populate a nested dict from DOM tree or element node
Exposed to allow unit testing using a DOM tree constructed from a string
Arguments:
tree_dict: nested dict structure to traverse
node: xml.dom.Node object to hold result
uses_attributes: Boolean flag indicating whether to write values to tag attributes
"""
# TODO: Handle delimited lists as repeated xpaths
owner_document = owner_document or node
for node_name in sorted(tree_dict.keys()):
child_item = tree_dict[node_name]
assert child_item is not None, node_name + \
' node is empty - must hold either a string or subtree dict'
if isinstance(child_item, dict): # Subtree - descend to next level
logger.debug('%sElement Node %s', ' ' * level, node_name)
child_node = xml.dom.minidom.Element(node_name)
child_node.ownerDocument = owner_document
node.appendChild(child_node)
self._populate_node_from_dict(
child_item, child_node, uses_attributes, owner_document, level + 1)
else: # Leaf node - store node value
if child_item is None:
child_item = ''
assert isinstance(child_item, str), node_name + \
' node is not a string'
if uses_attributes: # Store value in attribute
logger.debug('%sAttribute for %s = %s', ' ' *
level, node_name, repr(child_item))
node.setAttribute(node_name, child_item)
else: # Store value in child text node
logger.debug('%sText Child Node for %s = %s',
' ' * level, node_name, repr(child_item))
child_node = xml.dom.minidom.Element(node_name)
child_node.ownerDocument = owner_document
node.appendChild(child_node)
# Only add text node if value is non-empty
if child_item:
text_node = xml.dom.minidom.Text()
text_node.ownerDocument = owner_document
text_node.nodeValue = child_item
child_node.appendChild(text_node)
def read_file(self, filename=None):
"""Function to parse an XML metadata file and store the results in self._metadata_dict
Argument:
filename: XML Metadata file to be parsed and stored
Returns:
nested dict containing metadata
"""
logger.debug('read_file(%s) called', filename)
filename = filename or self._filename
assert filename, 'Filename must be specified'
logger.debug('Parsing XML file %s', filename)
# Open XML document using minidom parser
dom_tree = xml.dom.minidom.parse(filename)
# Remember any processing instruction node
for node in dom_tree.childNodes:
if node.nodeType == xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE:
processing_instruction_node = node
logger.debug('Processing Instruction Node found: Name = %s, Value = %s',
processing_instruction_node.nodeName, processing_instruction_node.nodeValue)
self.processing_instruction[
'name'] = processing_instruction_node.nodeName
self.processing_instruction[
'value'] = processing_instruction_node.nodeValue
elif node.nodeType == xml.dom.minidom.Node.ELEMENT_NODE: # Root node has attributes
for attr_index in range(len(node.attributes)):
attribute = node.attributes.item(attr_index)
logger.debug('Document Attribute: %s = %s',
attribute.name, attribute.value)
self.document_attributes[self.unicode_to_ascii(
attribute.name)] = self.unicode_to_ascii(attribute.value)
# Create nested dict from DOM tree
self._populate_dict_from_node(dom_tree, self._metadata_dict)
self._filename = filename
return self._metadata_dict
def write_file(self, filename=None, uses_attributes=None,
save_backup=False):
"""Function write the metadata contained in self._metadata_dict to an XML file
Argument:
filename: Metadata file to be written
uses_attributes: Boolean flag indicating whether to write values to tag attributes
"""
logger.debug('write_file(%s) called', filename)
filename = filename or self._filename
assert filename, 'Filename must be specified'
# Allow values to be stored as attributes
if uses_attributes is None:
uses_attributes = self._uses_attributes
if save_backup and os.path.exists(filename + '.bck'):
os.remove(filename + '.bck')
if os.path.exists(filename):
if save_backup:
os.rename(filename, filename + '.bck')
else:
os.remove(filename)
# Open XML document
try:
outfile = open(filename, 'w')
assert outfile is not None, 'Unable to open XML file ' + filename + ' for writing'
logger.debug('Writing XML file %s', filename)
dom_tree = xml.dom.minidom.Document()
# Write any processing instruction node
if self.processing_instruction:
processing_instruction_node = xml.dom.minidom.ProcessingInstruction(
self.processing_instruction['name'], self.processing_instruction['value'])
processing_instruction_node.ownerDocument = dom_tree
dom_tree.appendChild(processing_instruction_node)
# Open XML document using minidom parser
self._populate_node_from_dict(
self._metadata_dict, dom_tree, uses_attributes)
# Set root node attributes if required
if self.document_attributes:
root_node = [node for node in dom_tree.childNodes if node.nodeType ==
xml.dom.minidom.Node.ELEMENT_NODE][0]
for attribute_name in self.document_attributes.keys():
root_node.setAttribute(
attribute_name, self.document_attributes[attribute_name])
# outfile.write(dom_tree.toxml(encoding='utf-8'))
# outfile.write(dom_tree.toprettyxml(encoding='utf-8'))
# outfile.write(self.toprettyxml_fixed(node, encoding='utf-8')) # PyXML
# required
#==================================================================
# # Strip all tabs and EOLs from around values
# outfile.write(re.sub('(\<\w*[^/]\>)\n(\t+\n)*(\t*)([^<>\n]*)\n\t*\n*(\t+)(\</\w+\>)',
# '\\1\\4\\6',
# dom_tree.toprettyxml(encoding='utf-8')
# )
# )
#==================================================================
# Strip all tabs and EOLs from around values, remove all empty
# lines
outfile.write(re.sub('\>(\s+)(\n\t*)\<',
'>\\2<',
re.sub('(\<\w*[^/]\>)\n(\t*\n)*(\t*)([^<>\n]*)\n\t*\n*(\t+)(\</\w+\>)',
'\\1\\4\\6',
dom_tree.toprettyxml(encoding='utf-8')
)
)
)
finally:
outfile.close()
def read_string(self, xml_string):
self._populate_dict_from_node(xml.dom.minidom.parseString(
xml_string.translate(None, '\n')), self._metadata_dict)
@property
def uses_attributes(self):
"""Property returning a Boolean value indicating that values are stored in tag attributes rather than as text
"""
return self._uses_attributes
def main():
# Test data from file
# LS7_ETM_OTH_P51_GALPGS01_092_085_20100315/scene01/LE7_20100315_092_085_L1T.xml
TESTXML = """<mdb:MD_Metadata xmlns:mdb="http://standards.iso.org/iso/19115/-3/mdb/1.0" xmlns:cit="http://standards.iso.org/iso/19115/-3/cit/1.0" xmlns:gco="http://standards.iso.org/iso/19115/-3/gco/1.0" xmlns:gcx="http://standards.iso.org/iso/19115/-3/gcx/1.0" xmlns:gex="http://standards.iso.org/iso/19115/-3/gex/1.0" xmlns:lan="http://standards.iso.org/iso/19115/-3/lan/1.0" xmlns:mcc="http://standards.iso.org/iso/19115/-3/mcc/1.0" xmlns:mco="http://standards.iso.org/iso/19115/-3/mco/1.0" xmlns:mmi="http://standards.iso.org/iso/19115/-3/mmi/1.0" xmlns:mrd="http://standards.iso.org/iso/19115/-3/mrd/1.0" xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0" xmlns:mrl="http://standards.iso.org/iso/19115/-3/mrl/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:geonet="http://www.fao.org/geonetwork" xsi:schemaLocation="http://standards.iso.org/iso/19115/-3/cat/1.0 http://standards.iso.org/iso/19115/-3/cat/1.0/cat.xsd http://standards.iso.org/iso/19115/-3/cit/1.0 http://standards.iso.org/iso/19115/-3/cit/1.0/cit.xsd http://standards.iso.org/iso/19115/-3/gcx/1.0 http://standards.iso.org/iso/19115/-3/gcx/1.0/gcx.xsd http://standards.iso.org/iso/19115/-3/gex/1.0 http://standards.iso.org/iso/19115/-3/gex/1.0/gex.xsd http://standards.iso.org/iso/19115/-3/lan/1.0 http://standards.iso.org/iso/19115/-3/lan/1.0/lan.xsd http://standards.iso.org/iso/19115/-3/srv/2.0 http://standards.iso.org/iso/19115/-3/srv/2.0/srv.xsd http://standards.iso.org/iso/19115/-3/mas/1.0 http://standards.iso.org/iso/19115/-3/mas/1.0/mas.xsd http://standards.iso.org/iso/19115/-3/mcc/1.0 http://standards.iso.org/iso/19115/-3/mcc/1.0/mcc.xsd http://standards.iso.org/iso/19115/-3/mco/1.0 http://standards.iso.org/iso/19115/-3/mco/1.0/mco.xsd http://standards.iso.org/iso/19115/-3/mda/1.0 http://standards.iso.org/iso/19115/-3/mda/1.0/mda.xsd http://standards.iso.org/iso/19115/-3/mdb/1.0 http://standards.iso.org/iso/19115/-3/mdb/1.0/mdb.xsd http://standards.iso.org/iso/19115/-3/mds/1.0 http://standards.iso.org/iso/19115/-3/mds/1.0/mds.xsd http://standards.iso.org/iso/19115/-3/mdt/1.0 http://standards.iso.org/iso/19115/-3/mdt/1.0/mdt.xsd http://standards.iso.org/iso/19115/-3/mex/1.0 http://standards.iso.org/iso/19115/-3/mex/1.0/mex.xsd http://standards.iso.org/iso/19115/-3/mmi/1.0 http://standards.iso.org/iso/19115/-3/mmi/1.0/mmi.xsd http://standards.iso.org/iso/19115/-3/mpc/1.0 http://standards.iso.org/iso/19115/-3/mpc/1.0/mpc.xsd http://standards.iso.org/iso/19115/-3/mrc/1.0 http://standards.iso.org/iso/19115/-3/mrc/1.0/mrc.xsd http://standards.iso.org/iso/19115/-3/mrd/1.0 http://standards.iso.org/iso/19115/-3/mrd/1.0/mrd.xsd http://standards.iso.org/iso/19115/-3/mri/1.0 http://standards.iso.org/iso/19115/-3/mri/1.0/mri.xsd http://standards.iso.org/iso/19115/-3/mrl/1.0 http://standards.iso.org/iso/19115/-3/mrl/1.0/mrl.xsd http://standards.iso.org/iso/19115/-3/mrs/1.0 http://standards.iso.org/iso/19115/-3/mrs/1.0/mrs.xsd http://standards.iso.org/iso/19115/-3/msr/1.0 http://standards.iso.org/iso/19115/-3/msr/1.0/msr.xsd http://standards.iso.org/iso/19157/-2/mdq/1.0 http://standards.iso.org/iso/19157/-2/mdq/1.0/mdq.xsd http://standards.iso.org/iso/19115/-3/mac/1.0 http://standards.iso.org/iso/19115/-3/mac/1.0/mac.xsd http://standards.iso.org/iso/19115/-3/gco/1.0 http://standards.iso.org/iso/19115/-3/gco/1.0/gco.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd http://www.w3.org/1999/xlink http://www.w3.org/1999/xlink.xsd">
<mdb:metadataIdentifier>
<mcc:MD_Identifier>
<mcc:authority>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>GeoNetwork UUID</gco:CharacterString>
</cit:title>
</cit:CI_Citation>
</mcc:authority>
<mcc:code>
<gco:CharacterString>dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</mcc:code>
<mcc:codeSpace>
<gco:CharacterString>urn:uuid</gco:CharacterString>
</mcc:codeSpace>
</mcc:MD_Identifier>
</mdb:metadataIdentifier>
<mdb:parentMetadata>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Geophysical Data Collection - gravity</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date>
<gco:DateTime>1937-01-01T00:00:00</gco:DateTime>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="codeListLocation#CI_DateTypeCode" codeListValue="creation"/>
</cit:dateType>
</cit:CI_Date>
</cit:date>
<cit:edition gco:nilReason="missing">
<gco:CharacterString/>
</cit:edition>
<cit:editionDate>
<gco:DateTime>1937-01-01T00:00:00</gco:DateTime>
</cit:editionDate>
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gcx:FileName src="http://intranet.ga.gov.au/geonetwork/srv/eng/file.disclaimer?uuid=dbcc0c59-81e6-4eed-e044-00144fdd4fa6&fname=c6b58f54-102c-19e9-e044-00144fdd4fa6&access=private">c6b58f54-102c-19e9-e044-00144fdd4fa6</gcx:FileName>
</mcc:code>
<mcc:description>
<gco:CharacterString>UUID</gco:CharacterString>
</mcc:description>
</mcc:MD_Identifier>
</cit:identifier>
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gcx:FileName src="http://intranet.ga.gov.au/geonetwork/srv/eng/file.disclaimer?uuid=dbcc0c59-81e6-4eed-e044-00144fdd4fa6&fname=74512&access=private">74512</gcx:FileName>
</mcc:code>
<mcc:description>
<gco:CharacterString>eCat ID</gco:CharacterString>
</mcc:description>
</mcc:MD_Identifier>
</cit:identifier>
<cit:ISBN gco:nilReason="missing">
<gco:CharacterString/>
</cit:ISBN>
</cit:CI_Citation>
</mdb:parentMetadata>
<mdb:metadataScope>
<mdb:MD_MetadataScope>
<mdb:resourceScope>
<mcc:MD_ScopeCode codeList="codeListLocation#MD_ScopeCode" codeListValue="dataset"/>
</mdb:resourceScope>
<mdb:name>
<gco:CharacterString>dataset</gco:CharacterString>
</mdb:name>
</mdb:MD_MetadataScope>
</mdb:metadataScope>
<mdb:contact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="pointOfContact"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>Commonwealth of Australia (Geoscience Australia)</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>02 6249 9966</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>02 6249 9960</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="facsimile"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>Cnr Jerrabomberra Ave and Hindmarsh Dr</gco:CharacterString>
</cit:deliveryPoint>
<cit:deliveryPoint>
<gco:CharacterString>GPO Box 378</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Canberra</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>clientservices@ga.gov.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mdb:contact>
<mdb:dateInfo>
<cit:CI_Date>
<cit:date>
<gco:DateTime>2016-06-16T14:38:55</gco:DateTime>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="codeListLocation#CI_DateTypeCode" codeListValue="revision"/>
</cit:dateType>
</cit:CI_Date>
</mdb:dateInfo>
<mdb:dateInfo>
<cit:CI_Date>
<cit:date>
<gco:DateTime>2013-05-03T00:00:00</gco:DateTime>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="codeListLocation#CI_DateTypeCode" codeListValue="creation"/>
</cit:dateType>
</cit:CI_Date>
</mdb:dateInfo>
<mdb:metadataStandard>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>ANZLIC Metadata Profile: An Australian/New Zealand Profile of AS/NZS ISO 19115:2005, Geographic information - Metadata</gco:CharacterString>
</cit:title>
<cit:edition>
<gco:CharacterString>1.1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mdb:metadataStandard>
<mdb:metadataProfile>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Geoscience Australia Community Metadata Profile of ISO 19115-1:2014</gco:CharacterString>
</cit:title>
<cit:edition>
<gco:CharacterString>Version 2.0, April 2015</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mdb:metadataProfile>
<mdb:alternativeMetadataReference>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Geoscience Australia - short identifier for metadata record with uuid</gco:CharacterString>
</cit:title>
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gco:CharacterString>76068</gco:CharacterString>
</mcc:code>
<mcc:codeSpace>
<gco:CharacterString>http://www.ga.gov.au/eCatId</gco:CharacterString>
</mcc:codeSpace>
</mcc:MD_Identifier>
</cit:identifier>
</cit:CI_Citation>
</mdb:alternativeMetadataReference>
<mdb:metadataLinkage>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://intranet.ga.gov.au/geonetwork/srv/eng/search?uuid=dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:linkage>
<cit:function>
<cit:CI_OnLineFunctionCode codeList="codeListLocation#CI_OnLineFunctionCode" codeListValue="completeMetadata"/>
</cit:function>
</cit:CI_OnlineResource>
</mdb:metadataLinkage>
<mdb:identificationInfo>
<mri:MD_DataIdentification>
<mri:citation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Isostatic Residual Gravity Anomaly Grid of Onshore Australia - 2011</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date>
<gco:DateTime>2011-01-01T00:00:00</gco:DateTime>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="codeListLocation#CI_DateTypeCode" codeListValue="publication"/>
</cit:dateType>
</cit:CI_Date>
</cit:date>
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gco:CharacterString>76068</gco:CharacterString>
</mcc:code>
</mcc:MD_Identifier>
</cit:identifier>
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gco:CharacterString>Product</gco:CharacterString>
</mcc:code>
</mcc:MD_Identifier>
</cit:identifier>
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gco:CharacterString>http://www.ga.gov.au/metadata-gateway/metadata/record/76068/</gco:CharacterString>
</mcc:code>
<mcc:codeSpace>
<gco:CharacterString>ga-dataSetURI</gco:CharacterString>
</mcc:codeSpace>
</mcc:MD_Identifier>
</cit:identifier>
<cit:citedResponsibleParty>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="publisher"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>Geoscience Australia</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:address>
<cit:CI_Address>
<cit:city>
<gco:CharacterString>Canberra</gco:CharacterString>
</cit:city>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</cit:citedResponsibleParty>
<cit:citedResponsibleParty>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="author"/>
</cit:role>
<cit:party>
<cit:CI_Individual>
<cit:name>
<gco:CharacterString>Nakamura, A.</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:contactInstructions>
<gco:CharacterString>1</gco:CharacterString>
</cit:contactInstructions>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Individual>
</cit:party>
</cit:CI_Responsibility>
</cit:citedResponsibleParty>
</cit:CI_Citation>
</mri:citation>
<mri:abstract>
<gco:CharacterString>Gravity data measure small changes in gravity due to changes in the density of rocks beneath the Earth surface. This grid represents isostatic residual gravity anomalies over onshore Australia made from onshore gravity measurements collected on geophysical surveys conducted by Commonwealth, State and Northern Territory governments, and the private sector. The grid cell size is approximately 800 metres. As the effect of the long wavelength anomalies are removed, the isostatic residual anomalies reveal better than most gravity maps, the density distributions within the upper crust.</gco:CharacterString>
</mri:abstract>
<mri:pointOfContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="owner">owner</cit:CI_RoleCode>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>Commonwealth of Australia (Geoscience Australia)</gco:CharacterString>
</cit:name>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mri:pointOfContact>
<mri:pointOfContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="custodian">custodian</cit:CI_RoleCode>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>Commonwealth of Australia (Geoscience Australia)</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>02 6249 9966</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice">voice</cit:CI_TelephoneTypeCode>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>02 6249 9960</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="facsimile">facsimile</cit:CI_TelephoneTypeCode>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>Cnr Jerrabomberra Ave and Hindmarsh Dr GPO Box 378</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Canberra</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>clientservices@ga.gov.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
<cit:individual>
<cit:CI_Individual>
<cit:positionName>
<gco:CharacterString>Manager Client Services</gco:CharacterString>
</cit:positionName>
</cit:CI_Individual>
</cit:individual>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mri:pointOfContact>
<mri:topicCategory>
<mri:MD_TopicCategoryCode>geoscientificInformation</mri:MD_TopicCategoryCode>
</mri:topicCategory>
<mri:extent>
<gex:EX_Extent>
<gex:description>
<gco:CharacterString>unknown</gco:CharacterString>
</gex:description>
<gex:geographicElement>
<gex:EX_GeographicBoundingBox>
<gex:westBoundLongitude>
<gco:Decimal>109.108568</gco:Decimal>
</gex:westBoundLongitude>
<gex:eastBoundLongitude>
<gco:Decimal>156.750215</gco:Decimal>
</gex:eastBoundLongitude>
<gex:southBoundLatitude>
<gco:Decimal>-44.213268</gco:Decimal>
</gex:southBoundLatitude>
<gex:northBoundLatitude>
<gco:Decimal>-9.363281</gco:Decimal>
</gex:northBoundLatitude>
</gex:EX_GeographicBoundingBox>
</gex:geographicElement>
</gex:EX_Extent>
</mri:extent>
<mri:resourceMaintenance>
<mmi:MD_MaintenanceInformation>
<mmi:maintenanceAndUpdateFrequency>
<mmi:MD_MaintenanceFrequencyCode codeList="codeListLocation#MD_MaintenanceFrequencyCode" codeListValue="notPlanned"/>
</mmi:maintenanceAndUpdateFrequency>
</mmi:MD_MaintenanceInformation>
</mri:resourceMaintenance>
<mri:resourceFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>netCDF4_classic</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>v4</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>Geoscience Australia</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6249 9966</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6249 9960</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="facsimile"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>GPO Box 378</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Canberra</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>clientservices@ga.gov.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mri:resourceFormat>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>National dataset</gco:CharacterString>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeList="codeListLocation#MD_KeywordTypeCode" codeListValue="theme"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>gravity</gco:CharacterString>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeList="codeListLocation#MD_KeywordTypeCode" codeListValue="theme"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>grid</gco:CharacterString>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeList="codeListLocation#MD_KeywordTypeCode" codeListValue="theme"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>NCI</gco:CharacterString>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeList="codeListLocation#MD_KeywordTypeCode" codeListValue="theme"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>Gravimetrics</gco:CharacterString>
</mri:keyword>
<mri:thesaurusName>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Australian and New Zealand Standard Research Classification (ANZSRC)</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date>
<gco:DateTime>2011-01-01T00:00:00+11:00</gco:DateTime>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="codeListLocation#CI_DateTypeCode" codeListValue="publication"/>
</cit:dateType>
</cit:CI_Date>
</cit:date>
<cit:citedResponsibleParty>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="owner"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>Australian Bureau of Statistics (ABS)</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:onlineResource>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://www.abs.gov.au/ausstats/abs@.nsf/Latestproducts/1297.0Main%20Features32008?opendocument&tabname=Summary&prodno=1297.0&issue=2008&num=&view=</gco:CharacterString>
</cit:linkage>
</cit:CI_OnlineResource>
</cit:onlineResource>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</cit:citedResponsibleParty>
<cit:ISBN>
<gco:CharacterString>9780642483584</gco:CharacterString>
</cit:ISBN>
<cit:onlineResource>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://www.abs.gov.au/ausstats/abs@.nsf/Latestproducts/1297.0Main%20Features32008?opendocument&tabname=Summary&prodno=1297.0&issue=2008&num=&view=</gco:CharacterString>
</cit:linkage>
</cit:CI_OnlineResource>
</cit:onlineResource>
</cit:CI_Citation>
</mri:thesaurusName>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>Isostatic anomaly</gco:CharacterString>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeList="codeListLocation#MD_KeywordTypeCode" codeListValue="theme"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>Geophysical National Coverage</gco:CharacterString>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeList="codeListLocation#MD_KeywordTypeCode" codeListValue="theme"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:descriptiveKeywords>
<mri:MD_Keywords>
<mri:keyword>
<gco:CharacterString>Gravity Digital Data</gco:CharacterString>
</mri:keyword>
<mri:type>
<mri:MD_KeywordTypeCode codeList="codeListLocation#MD_KeywordTypeCode" codeListValue="theme"/>
</mri:type>
</mri:MD_Keywords>
</mri:descriptiveKeywords>
<mri:resourceConstraints>
<mco:MD_LegalConstraints>
<mco:accessConstraints>
<mco:MD_RestrictionCode codeList="codeListLocation#MD_RestrictionCode" codeListValue="license"/>
</mco:accessConstraints>
</mco:MD_LegalConstraints>
</mri:resourceConstraints>
<mri:resourceConstraints>
<mco:MD_LegalConstraints>
<mco:useConstraints>
<mco:MD_RestrictionCode codeList="codeListLocation#MD_RestrictionCode" codeListValue="license"/>
</mco:useConstraints>
<mco:otherConstraints>
<gco:CharacterString>Creative Commons Attribution 4.0 International Licence</gco:CharacterString>
</mco:otherConstraints>
</mco:MD_LegalConstraints>
</mri:resourceConstraints>
<mri:resourceConstraints>
<mco:MD_SecurityConstraints>
<mco:classification>
<mco:MD_ClassificationCode codeList="codeListLocation#MD_ClassificationCode" codeListValue="unclassified"/>
</mco:classification>
</mco:MD_SecurityConstraints>
</mri:resourceConstraints>
<mri:defaultLocale>
<lan:PT_Locale id="ENG">
<lan:language>
<lan:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="eng"/>
</lan:language>
<lan:characterEncoding>
<lan:MD_CharacterSetCode codeList="codeListLocation#MD_CharacterSetCode" codeListValue="utf8"/>
</lan:characterEncoding>
</lan:PT_Locale>
</mri:defaultLocale>
</mri:MD_DataIdentification>
</mdb:identificationInfo>
<mdb:distributionInfo>
<mrd:MD_Distribution>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>html</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>National Computational Infrastructure</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6125 3437</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>The Australian National University, 143 Ward Road</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Acton</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>help@nci.org.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://dap.nci.org.au/thredds/remoteCatalogService?command=subset&catalog=http://dapds00.nci.org.au/thredds/catalog/rr2/National_Coverages/IR_gravity_anomaly_Australia_V1/catalog.xml&dataset=rr2-NatCov/IR_gravity_anomaly_Australia_V1/IR_gravity_anomaly_Australia_V1.nc</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>THREDDS catalog page for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>THREDDS catalog page for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>NetCDF</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>National Computational Infrastructure</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6125 3437</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>The Australian National University, 143 Ward Road</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Acton</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>help@nci.org.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://dapds00.nci.org.au/thredds/ncss/rr2/National_Coverages/dataset/dataset.nc/dataset.html</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>NCSS</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>NCSS for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>NetCDF Subset Service for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>NetCDF</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>National Computational Infrastructure</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6125 3437</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>The Australian National University, 143 Ward Road</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Acton</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>help@nci.org.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://dapds00.nci.org.au/thredds/fileServer/rr2/National_Coverages/IR_gravity_anomaly_Australia_V1/IR_gravity_anomaly_Australia_V1.nc</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>NetCDF file download via HTTP for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>NetCDF file download via HTTP for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Zipped ERS</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>National Computational Infrastructure</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6125 3437</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>The Australian National University, 143 Ward Road</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Acton</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>help@nci.org.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://dapds00.nci.org.au/thredds/fileServer/rr2/National_Coverages/http/IR_gravity_anomaly_Australia_V1/IR_gravity_anomaly_Australia_V1.zip</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>Zipped ERS file download via HTTP for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>Zipped ERS file download via HTTP for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>html</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>National Computational Infrastructure</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6125 3437</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>The Australian National University, 143 Ward Road</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Acton</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>help@nci.org.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://dapds00.nci.org.au/thredds/dodsC/rr2/National_Coverages/IR_gravity_anomaly_Australia_V1/IR_gravity_anomaly_Australia_V1.nc</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>WWW:LINK-1.0-http--opendap</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>OPeNDAP for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>OPeNDAP Service for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>WCS</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>National Computational Infrastructure</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6125 3437</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>The Australian National University, 143 Ward Road</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Acton</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>help@nci.org.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://dapds00.nci.org.au/thredds/wcs/rr2/National_Coverages/IR_gravity_anomaly_Australia_V1/IR_gravity_anomaly_Australia_V1.nc</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>OGC:WCS</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>WCS for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>OGC Web Coverage Service for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>WMS</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>National Computational Infrastructure</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6125 3437</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>The Australian National University, 143 Ward Road</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Acton</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>help@nci.org.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://dapds00.nci.org.au/thredds/wms/rr2/National_Coverages/IR_gravity_anomaly_Australia_V1/IR_gravity_anomaly_Australia_V1.nc</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>OGC:WMS</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>WMS for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>OGC Web Mapping Service for dataset dbcc0c59-81e6-4eed-e044-00144fdd4fa6</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>html</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>Geoscience Australia</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6249 9966</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6249 9960</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="facsimile"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>GPO Box 378</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Canberra</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>clientservices@ga.gov.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://dx.doi.org/10.4225/25/561C7CC3D8937</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>Digital Object Identifier</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>Dataset DOI</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
<mrd:distributionFormat>
<mrd:MD_Format>
<mrd:formatSpecificationCitation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>html</gco:CharacterString>
</cit:title>
<cit:date>
<cit:CI_Date>
<cit:date gco:nilReason="missing"/>
<cit:dateType gco:nilReason="missing"/>
</cit:CI_Date>
</cit:date>
<cit:edition>
<gco:CharacterString>1</gco:CharacterString>
</cit:edition>
</cit:CI_Citation>
</mrd:formatSpecificationCitation>
<mrd:formatDistributor>
<mrd:MD_Distributor>
<mrd:distributorContact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="codeListLocation#CI_RoleCode" codeListValue="distributor"/>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<cit:name>
<gco:CharacterString>Geoscience Australia</gco:CharacterString>
</cit:name>
<cit:contactInfo>
<cit:CI_Contact>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6249 9966</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="voice"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:phone>
<cit:CI_Telephone>
<cit:number>
<gco:CharacterString>+61 2 6249 9960</gco:CharacterString>
</cit:number>
<cit:numberType>
<cit:CI_TelephoneTypeCode codeList="codeListLocation#CI_TelephoneTypeCode" codeListValue="facsimile"/>
</cit:numberType>
</cit:CI_Telephone>
</cit:phone>
<cit:address>
<cit:CI_Address>
<cit:deliveryPoint>
<gco:CharacterString>GPO Box 378</gco:CharacterString>
</cit:deliveryPoint>
<cit:city>
<gco:CharacterString>Canberra</gco:CharacterString>
</cit:city>
<cit:administrativeArea>
<gco:CharacterString>ACT</gco:CharacterString>
</cit:administrativeArea>
<cit:postalCode>
<gco:CharacterString>2601</gco:CharacterString>
</cit:postalCode>
<cit:country>
<gco:CharacterString>Australia</gco:CharacterString>
</cit:country>
<cit:electronicMailAddress>
<gco:CharacterString>clientservices@ga.gov.au</gco:CharacterString>
</cit:electronicMailAddress>
</cit:CI_Address>
</cit:address>
</cit:CI_Contact>
</cit:contactInfo>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mrd:distributorContact>
<mrd:distributorTransferOptions>
<mrd:MD_DigitalTransferOptions>
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>http://www.geoscience.gov.au/cgi-bin/mapserv?map=/nas/web/ops/prod/apps/mapserver/gadds/wms_map/gadds.map</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>Australian Geophisical Archive Data Delivery System</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>Download from Geoscience Australia Geophisical Archive Data Delivery System</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</mrd:MD_DigitalTransferOptions>
</mrd:distributorTransferOptions>
</mrd:MD_Distributor>
</mrd:formatDistributor>
</mrd:MD_Format>
</mrd:distributionFormat>
</mrd:MD_Distribution>
</mdb:distributionInfo>
<mdb:resourceLineage>
<mrl:LI_Lineage>
<mrl:statement>
<gco:CharacterString>The gravity data set of onshore Australia contains more than 1.57 million reliable onshore stations gathered during more than 1800 surveys and held in the Australian National Gravity Database (ANGD). Continental Australia has a basic station spacing coverage of 11 km, with South Australia, Tasmania and part of New South Wales covered at a spacing of 7 km. Victoria has station coverage of approximately 1.5 km. Some areas of scientific or economic interest have been infilled with station spacings between 2 km and 4 km by recent Commonwealth, State and Territory Government initiatives. Other areas of detailed coverage have been surveyed by private companies for exploration purposes. Only open file data as held in the ANGD at March 2011 were used in the creation of the grid.
The data values contained in the grid are Isostatic Residual Gravity anomalies over Continental Australia. A depth to mantle model and subsequent isostatic corrections were produced using a modified version of the USGS program AIRYROOT (Simpson et al., 1983) provided by Intrepid Geophysics. Geoscience Australia's 2009 Bathymetry and Topography Grid (Whiteway, 2009) was used to calculate the depth to crustal bottom following the Airy-Heiskanen crustal-root model. The isostatic corrections were then applied to the complete Bouguer anomalies (Tracey and Nakamura, 2010) to produce the Isostatic Residual Gravity Anomaly Grid of Australia. The gravity anomalies are based on the Australian Absolute Gravity Datum 2007 and 1994 Geodetic Datum of Australia (Tracey et al., 2008).
A crustal density of 2.67 tonnes per cubic meter was used for the calculation, with an assumed density contrast between the crust and mantle of 0.4 tonnes per cubic meter. A depth to mantle at sea level of 37 km was used in the calculation. This was derived from the average Australian depth to the Mohorovi¿i¿ discontinuity (Moho) at sea level using data from seismic studies around Australia (Goncharov et al., 2007).
The original grid was converted from ERMapper (.ers) format to netCDF4_classic format using GDAL1.11.1. The main purpose of this conversion is to enable access to the data by relevant open source tools and software. The netCDF grid was created on 2016-03-29.
References
Goncharov, A., Deighton, I., Tischer, M. and Collins, C., 2007. Crustal thickness in Australia: where, how and what for?: ASEG Extended Abstracts, vol. 2007, pp. 1-4, ASEG2007 19th Geophysical Conference.
Simpson, R.W., Jachens, R.C. and Blakely, R.J., 1983. AIRYROOT: A FORTRAN program for calculating the gravitational attraction of an Airy isostatic root out to 166.7 km: US Geological Survey Open File Report 83-883.
Tracey, R., Bacchin, M., and Wynne, P., 2008. AAGD07: A new absolute gravity datum for Australian gravity and new standards for the Australian National Gravity Database: ASEG Extended Abstracts, vol. 2007, No.1, pp. 1-3, ASEG2007 19th Geophysical Conference.
Tracey, R. and Nakamura, A., 2010. Complete Bouguer Anomalies for the Australian National Gravity Database: ASEG Extended Abstracts, vol. 2010, pp. 1-3, ASEG2010 21st Geophysical Conference.
Whiteway, T.G., 2009. Australian Bathymetry and Topography Grid: Geoscience Australia Record 2009/21, 46pp.</gco:CharacterString>
</mrl:statement>
<mrl:scope>
<mcc:MD_Scope>
<mcc:level>
<mcc:MD_ScopeCode codeList="codeListLocation#MD_ScopeCode" codeListValue="dataset"/>
</mcc:level>
</mcc:MD_Scope>
</mrl:scope>
<mrl:source>
<mrl:LI_Source>
<mrl:description>
<gco:CharacterString>The 2011 gravity grid over Continental Australia is derived from observations recorded at more than 1.57 million gravity stations held in the Australian National Gravity Database (ANGD) by Geoscience Australia (GA). The onshore data were acquired by the Commonwealth, State and Territory Governments, the mining and exploration industry, universities and research organisations over the past 60 years.</gco:CharacterString>
</mrl:description>
</mrl:LI_Source>
</mrl:source>
</mrl:LI_Lineage>
</mdb:resourceLineage>
<mdb:metadataConstraints>
<mco:MD_SecurityConstraints>
<mco:classification>
<mco:MD_ClassificationCode codeList="codeListLocation#MD_ClassificationCode" codeListValue="unclassified"/>
</mco:classification>
</mco:MD_SecurityConstraints>
</mdb:metadataConstraints>
</mdb:MD_Metadata>"""
# Instantiate empty MTLMetadata object and parse test string (strip all
# EOLs first)
xml_object = XMLMetadata()
xml_object.read_string(TESTXML)
assert xml_object.metadata_dict, 'No metadata_dict created'
assert xml_object.tree_to_list(), 'Unable to create list from metadata_dict'
#=========================================================================
# assert xml_object.get_metadata('EODS_DATASET,ACQUISITIONINFORMATION,PLATFORMNAME'.split(',')), 'Unable to find value for key L1_METADATA_FILE,PRODUCT_METADATA,SPACECRAFT_ID'
# assert xml_object.get_metadata('...,PLATFORMNAME'.split(',')), 'Unable to find value for key ...,SPACECRAFT_ID'
# assert not xml_object.get_metadata('RUBBERCHICKEN'.split(',')), 'Found nonexistent key RUBBERCHICKEN'
# xml_object.set_metadata_node('EODS_DATASET,ACQUISITIONINFORMATION,PLATFORMNAME'.split(','), 'Rubber Chicken')
# assert xml_object.get_metadata('...,PLATFORMNAME'.split(',')), 'Unable to change ...,SPACECRAFT_ID to "Rubber Chicken"'
# xml_object.merge_metadata_dicts({'RUBBERCHICKEN': 'Rubber Chicken'}, xml_object.metadata_dict)
# assert xml_object.get_metadata('RUBBERCHICKEN'.split(',')), 'Unable to find value for key RUBBERCHICKEN'
# xml_object.delete_metadata('RUBBERCHICKEN'.split(','))
# assert not xml_object.get_metadata('RUBBERCHICKEN'.split(',')), 'Found value for key RUBBERCHICKEN'
#=========================================================================
print xml_object.tree_to_list()
if __name__ == '__main__':
main()
| 50.718799
| 3,488
| 0.52836
| 8,544
| 96,315
| 5.854284
| 0.104401
| 0.146104
| 0.075571
| 0.023551
| 0.738519
| 0.719487
| 0.704952
| 0.690538
| 0.659409
| 0.641696
| 0
| 0.027461
| 0.368208
| 96,315
| 1,898
| 3,489
| 50.745522
| 0.794531
| 0.035882
| 0
| 0.784615
| 0
| 0.030769
| 0.892215
| 0.277845
| 0
| 0
| 0
| 0.001581
| 0.003989
| 0
| null | null | 0
| 0.003419
| null | null | 0.00057
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6dfc98ee871bcd82c488d32efe43598920fb511e
| 311
|
py
|
Python
|
Compliant_control/gym-panda/HFMC/gym_panda/envs/__init__.py
|
martihmy/Compliant_control
|
485f627fa83d59f414f41bd57c5d37528ef5f1ec
|
[
"Apache-2.0"
] | null | null | null |
Compliant_control/gym-panda/HFMC/gym_panda/envs/__init__.py
|
martihmy/Compliant_control
|
485f627fa83d59f414f41bd57c5d37528ef5f1ec
|
[
"Apache-2.0"
] | null | null | null |
Compliant_control/gym-panda/HFMC/gym_panda/envs/__init__.py
|
martihmy/Compliant_control
|
485f627fa83d59f414f41bd57c5d37528ef5f1ec
|
[
"Apache-2.0"
] | null | null | null |
"""
from gym_panda.envs.AC_Env import AdmittanceEnv
from gym_panda.envs.AC_Env import Normalised_Env
"""
from gym_panda.envs.HFMC_Env import HFMC_Env
from gym_panda.envs.HFMC_Env import Normalised_HFMC_Env
"""
from gym_panda.envs.VIC_Env import VIC_Env
from gym_panda.envs.VIC_Env import Normalised_VIC_Env
"""
| 28.272727
| 55
| 0.832797
| 55
| 311
| 4.363636
| 0.2
| 0.175
| 0.3
| 0.4
| 0.783333
| 0.783333
| 0.75
| 0.525
| 0
| 0
| 0
| 0
| 0.090032
| 311
| 10
| 56
| 31.1
| 0.848057
| 0.308682
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
09c1ea94bd4c8d39be58c37d2a252e6e53355e33
| 106
|
py
|
Python
|
python/test/__init__.py
|
modelop/fastscore-sdk
|
2206a4b9294cd83b6b8c2470193070bdc35a9061
|
[
"Apache-2.0"
] | 2
|
2018-06-05T19:14:30.000Z
|
2019-02-06T17:15:10.000Z
|
python/test/__init__.py
|
modelop/fastscore-sdk
|
2206a4b9294cd83b6b8c2470193070bdc35a9061
|
[
"Apache-2.0"
] | 2
|
2018-02-20T21:58:43.000Z
|
2018-10-07T10:10:54.000Z
|
python/test/__init__.py
|
modelop/fastscore-sdk
|
2206a4b9294cd83b6b8c2470193070bdc35a9061
|
[
"Apache-2.0"
] | 1
|
2017-12-29T20:38:06.000Z
|
2017-12-29T20:38:06.000Z
|
from . import test_connect
from . import test_model_manage
from . import test_engine
from . import config
| 21.2
| 31
| 0.811321
| 16
| 106
| 5.125
| 0.5
| 0.487805
| 0.512195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 106
| 4
| 32
| 26.5
| 0.911111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
09c876a025048bd21db86ed57f508d874bc570c6
| 9,397
|
py
|
Python
|
2015/2015_03.py
|
hnorm/Advent-Of-Code
|
a9c2180fcc9f41b3079cadc7d098b53f803c5d35
|
[
"MIT"
] | null | null | null |
2015/2015_03.py
|
hnorm/Advent-Of-Code
|
a9c2180fcc9f41b3079cadc7d098b53f803c5d35
|
[
"MIT"
] | null | null | null |
2015/2015_03.py
|
hnorm/Advent-Of-Code
|
a9c2180fcc9f41b3079cadc7d098b53f803c5d35
|
[
"MIT"
] | null | null | null |
directions = "^><^>>>^<^v<v^^vv^><<^<><<vv^<>^<^v>^vv<>v><vv^^<>>^^^v<<vv><<^>^<^v<^>^v><<<v^<v<<<v<<vv<v<^><^>><>v>v^<<v^^<^v<><^>^<<^^^>v>>v^^<v>>^>vv><v>>^>>v^>^v>^<^^v>^>^^v<v>^^<v<>>v^^v><^><^<<>v^<^<^v<v>v^>>>v^v^>^<>^v<^^vv<v>^>^<>^^<vv^<><<v<^<^^>vv<>^>v<^>^v>v^>^v<>^><>><vv<>v^v<><>v^v>>>>v^^>^><^^<v<^><^<v>>^v^v<>v<<<^<<vvvv<<v^vv^>v^^^<^^^<v>>v<^v>>>>>v<^^^^>v<^<><v>>>>><v>>v^vvvv^^<v^<>^v<^v^>v><^>^v<<>>vv^>v>v^^>vv^<^vvv<>><>><><^^^<v<>^<^^^<v><^v>>v>^v<v^vv^<>^^^>v^^^v>>^v^^<^>>^>^<<v>>>^^<>>^vv>v^<^>>>><v<><><^^v<><<<<^^<>>^<vvv^><>v<v<<<<><v<<v>v<v^><vv<v^>^<^>v^^><^v>^^>v<>^v^<>^vv^><v^^vv>vvv>v>^<vv^>>^>>^>><>>>^^^^v<vv>^<>v^^><v^>^<>v<^^v><v<<><^v><>^^^^^v^v>>^^v><<><<vv>^^^^><^>v>><<<^v>v^^>^v^<^^v>v<^<<>>^v<<<v<<>>v<^v^><vv<v^v>v^<v>><v>^v<<<vv^>v<v>>v>>v><v><v^>v^^v>^v^>>>><>^>v>^v^>>>>v^<<vv<^v><<>v<v^<^^<<v<^v^^v^>vv><vv<v^<^>><^^>^<><^^<v<><^v^v^<^^>^<v><^<v>v^<<<^^v<v>^v>>><>^^>vv<<^v^<<<<^^>>>v>v<<<>^^>>>v>^>v>vv<<>^<^><v^>^^<^<v<<v<^>>^v^<vvv><>v^><<v>^^<v^vv^^^<vvv^<^>^>vv>><^v<^<<v<><<><<^^<><><vv>v>^<v>>^<>>^^v>vv^<^^v>><^vv^<<v^^><<>vv<v<><v<><v^^^v^v>^v<^<>v^^>><>^<^<v^<v^v^>v<<<^<<^>>>^^<^^v>v^<v>vvvv>v<>><^>^<<<<v^<v<>v^^^v<>v>^<v<<^^v^^<>^<<v^^<^<v>v>>v>>v^>^<vv<<<<<^<><>v><>>>v^>^v<^<><<v<^v^^<^<><^>^^^>^><>^><<vv>^<>vv<<v^v<<<<<>>>v<vv>^v>^>^>^<^><>v<><>>>^^<v>^<^v>>^<><v^><v^>>>v<v^^vvv^><v<v>v^>vvvv>>><^>v<>^^^>v>>v^<v<>v^>^<v^>^<<^>^>>v<<><<v^^>>v^<v^<^v^>^>v^><<^<v>v^<v>>^^<<v>v><<<^v^<>^<>^>>^<<v>^^<>^v<>v^>>><<v>><v^>^><v^<><v><>><v^<>vv>v^<^^^>v>^^<vv>>^v<><>>><>><^<>>v>v^^>^^<^^>^>>v>vv^^v<^<^v><vv<v<^>><<vvv<<><^>^v>^^^<<>v^<v<v><<v>^^v<<<>^^vv<^>vv>^>^<><<>vv<^>v^vv>^^^v><<^vv>^v<><v^^^^v^>vv^^<^<>^^v^<^vv<v<vv<>v>v^^<>^^>^^>^<><<^v>^><^^vvvv<><>^<v^^>v<>^><>v>><>vv^<<><<>><>v<^>^v>>^^v><<<>>^<^v^<v<<<v^>^^<^<><><^><<<<^<vv><v<<><vvv^^><vv>^<<vv<<<^v<>>><><>>v><<<v>vvvv^^vv<v>><<^v^vvv><><vv>v><>v<<<^<v^>><^^>v^<v>><v>^^^v^v>><<<v<^^>>^v<>v^<vv^^<<v<v>v<<<<^^^v^v<<>>>v>>vv>^^<><^v<v><>>v^>>>>>^>v^v^<^v^v^vvv>v<v<^>vv^<<v>vv>>v^^vv<^v>>>>vv<>v<>^^vv^<v>v^>>vvv<<<v<<^vv^^^^>v>v>^><<<^>v^><v<^<<<v>^v^^^><<><<<^^<^^<>^<v>^<v<<v<^^vv>v<^v><v><v<>^v<^<v<^<v^v><v>><v<v<<>^<v<>>><>^v^v<<^><v^<<v<v^>^>v><^>^vv^^<v<v<vv<v>^v^v^>^<<>>>>>v^<>^>v^vv^><<>>^^<>v^><v>^vvv^>v^v><>^><<>v>v<^<^><^^vv<<><>>v>>v><vv>>^v<<>^vv<>^vv>v>v>^>^>>><><<>v<v>^<<^v^^<<<><v>>vv<^<vv<vv^<<v<<^v><<>v<^^^<<^v^>^v>^^^v^v>>>v>v^v>^>^vv<^^<<vv^>^<<<vv>v^<><<^vvv^^><>vv^v>v>^><<^^^^vvv^<vvv>><^v<^>^<>>^<v<<vv>>><v>vv^<>><v^<v>^v>^>v>^<^<^^^<<vvvv^>>>>>>>v><vv>^<>^^v^><>><^v^^<v^v<<<<v^>><>v^v<vv<><^<<<<^>^^>vv>><^v<v^v<<>^vvv>v^^><^^<^<>>^^v^vv<>v<^<<<v^^^><v<vv<<>v>v<>^v^><v^vv^v^^v<^^v^^v><>v<^v>><<^<^v^>><<vv<<^>^<<v^<>^><>v><vv^v>>^<v<<<^>vv<^v>^>v<<v>^>>^>>v^<v<v>>^v<^v^v><<><>^><<<><v<vvvv<v^<v^v><>^<>^^^^v>^>^vvvvv>v>>v><<vv<<v<><<^><<^v><<v<<<v><vv<^>^v>>>>^v<^v<<>>^>^<<vv^<^>v>><<^>^>^v><><>^><<v<>v^><<^v^<^^><^^v^<<^v^^>>^v^<^><vv>v^^<<^^^<><>^>v^v>v^>^v^vv>^^>>>>^^<^>>>^^v<vv<><^^<vvv<^^^vv>v<v<v>><<<>^>^^>^>^v<<<<>>^<<>><v>>v>^^<^v<>v<>v^>v^><^<^^><v^^v>^^vv<v<<>><<vv<>>v>^<<<<v<<v>^><^^<^<^<v^<<^^v>^v<^>v^v^<v^vv^>^^><^>v^v>>^^v^><vv<v<v<v>>>>><<><v><v^v^<v^<^^<v<>^>v>v<>>>v>^^^^>><v^v^^v<<<>v^<<^<v>>>><^v^<<><v<>>v><><v<v^v>^v^^<v<^<^^v>><<vv<<vv><>>^>^>vv<^<>^vvv^v<v^^<>v^v>^^<<<<<>^v^>^<>v^^<>v^v<vv>^<>vv^<^vv>><v^^vvvvv>><<>v<vv^<^<vv^v^<>^^<v^<vv^<v^v^v<<^>^>^>^^>>>vvv>^>v>v>>>^>vv^><>^><>v>^^<v^>^><<v>><<<>>v<vvvv^>^v<^<>^<v>^<>^^<<><>^v<><>>>^vv<^<<^<^v>v<<<<<^^v<^v<><v<<><^>v>^v>>^v^><^^^^v<><><>vv^<>vv<^v<^^><v^<^><^^v^v^<^^<<><v>v<v<v^<<^v><>v^v<^>vvv><<^v>>v><><v<<^>>>v<^>>v>^<>><>^<v^v^<vv<<^>v<^^>^<^v<^<<^^v<>>^>^>^v^^v^v<v^^vv^<v>>v><vv^vv>v<>v^>v^^>^^>><v><v^<<><<>><<^^>><^v<v<><<><<><v<v^<^<v>>>><v^^v^^>>>^^^^^<<vv<^><>^<<<vv^^^>^><<<v<^v>^<v<^>^vvv<<>vv><<>v>v^v>>>>>^<>><^^^><<<<v><<vv>>>v<^<vv^v^<<v>>>>^^vvv>v<>><v>>>v>>^v^vvv<<>vvv<<^^^<>vv^^v<<>^^^>>^<^v^<^^>v^><v>>^<<^v<<vv<vv>v^>>^>v^><^><>^>>>vv>><^^^>vv<<^^vv><^<>^>^^<^<>>^vv^>>^v><>v^>>><<<^^<^>^>v<^>^<^^<>>><^^<>^v^<<vvv<v><>vvv><v>v^v<<^<v>^^><<^vv^v>v>v<<^v^<<<>^><><vvv>v>^vv^v<>vv^>^^<^>^>v^^<vv^>v><v<<<><>>^v<^<><><^<v^^<<^<v>vv<><<>v^<v^>^>^^<><<>^<^<<v^^v<v^<><<>v>><^<<>^>^v^v<v^v><^>>^v<^>v<<>^^^<^v>>>^<v>vvvv<<v^<^^>vvvv>v<>v<v><vvvvv>^<><>vvv<>^<<>^>>>>v^<^<><^v>v^>>v><>^><<v^>^<<>^>^v^<v^^>>^v><v>^<v><>v^<^^>v>^>>>v^v>>>^<>^<>>>>>v>>vv^v<><<<><><v><<vv<<v<><>>vv<^<vv>^v<<>v^v<^v<><v>>^v>>vvv^^v>>v>^>^>v><v><^>^^<<>^v<^<<<<^>v<^>>v^<^v>^v<<>^>^vvv<^^vv>^vv>vv<>>v>v<v>>v^<<<<<^^v^>v>^<<<v^v>>v<v><vvv><v>^<vv><<>>^<^>^^<>>>>^<^v<>v^^>^<^^v<^><>><v>>^v^vv<^v<^><<vvv<>><>><^^>^<^v^<^<>v<<<^v>v^^^<>v^<v^>^v^>><>^^<v<^><<^^v^<>^<^vv>>><^v><v^>vv<^v<<<v^>>v>v^v>^<v>v<^<>v^vvv>^vv<<<<v><^><v>>^^>><^v><<^>v^^<<v^^<^<><<<<>^<v<^v^>v<<^^>v<<<<<vvv<v<^>^>^>^>>^>>>v^<<v>>^^v><vv<^v<v<^^^>>>^vvv<^v<>>>vv>^^><^v>vv^>>v>v^<>^<vv>^>^<<^>^^^>>^vv>^^>vvvv<>>^^^^>>>v>v^^>vv>vv^<<>^><^<v^vvvv><v<><v>><<<v<v<<^v><vv^vv^<>>>^>^<v<^v<>><^<vv^^><v>v^>v^<><v^vvv>^>v^^v^>^^>v<<<<^<<^>>v>v^^^<<<v>>>^^v>v<v><<<<^^^v>^vv^>><>^v<v<<^^<<<<><>>>v>vvv^v^^v^>>vv>^>><>^v><^v^><^^>vv>^<^<^>><v>v>><><><v>^>^>v>vv>vv>^^>v>v^><v<<v^<>^>^v>^^v>^<^v<>>vvv^^>^>vv<v<v<<^<^<v^<>v^^v<^<^>vv^^<v><^^^>v>vv<<v>v<<v^<v^^><vv>^>^v^<^>v<^>^<>vv^><v<^><>>^>>^<^><<>^<^>v>v><>>>^<<^><<v><^v<v><>>vv<^><v^>>v>v>>>>^^>v<^v^>><<^<>>v><^><<^>^<vv^^<><<>><vvvv^>^^<><^^v>^^>vv>^v<v>>^^v^<v<^><^<<>>v^^^<^><^<<><<v<>><<>^v>vvv^vvv^^>>^<^<v>><>^<<<<^^<>>>v^<<^^v>><><<v<^>v>^v<v^>v>vv^><>^><<><^^>^>^<><>><^^<v^v<^><><><v>^<v<<v^<<^^^v<v<^v<>>><^v<<<<>>^v>^^vv^v^<<v>><<<v>vv>>v>>^v^<>>vv^<^>^<<>v<<<^vv<^vv^vv<^v^^^<vv^>v>>v<^^<^^vvv<^^v<>>>^>v^><v>^^><>vv>v>v<<<^^v<^vv^v>^^^>>>^^<>^^<^vvv>><><<><^<v>><<>^>^^<v^v^>vv>vv<v>^^<^^<<><><<v><v^^>v><v><<>v>vvv<^^^^<^>>><<<^^^<^>vv^^v>>v<<v^^<vv^<^>vvv^^v^^<^<vv>v<^<>^<<vv^^>^v>>^><><>v<v<v<>><v>>>^^>>v^><v^^<^>><>v<><<v^v<v<<>>>><>>>>><<^vvv<<><><<>^><><<^^v><<^>v>^>^v>v>>^^<><^>vv<^<^v>v<><^<<v<><^><>^^^<v^<><vvv^^^<>^^v><v<<<v>><>^>^vv<v^<vv>v>v^vv<v^v<v>^v^>v><>v^><>v>^^^^><<vv^><v<<v<^<>^v^^^>^^><<<v<^<v^>^^>v><vvvvv^<^<v^^>v<^v^^vv^<<<<v><^>v>v^v><><v^<<^<<v<^^^>^><v^v^<><><>^v<v>^<>^v>^v>v^<><^><v>>v<<^><^vv^<><^<>><>><v<v><<^^^^>v<^<^vv<><^vv><<^<<v>v^>>^v>^>v^^v>vv<v>v<<v>v<>^>>vv^>>><>^v^^<^>v<<^<^^v^^v^<<v<<v<^v<>vv^<v>><^v<^>>>vv^^<v^<>^^v<v<v>>^><^^^<><<^^>v<<vv>><<vvv>><<v^v^>><>vv^><<^>^><^v<^<^<vv<^^vv>v^v<<<<<<><<vv^vv>vv>v<^><<><><<>>v>><v><^>^v>^v^<>v^^^><^^<<<^vv^vv>^v^vvv^^>v^<v>><^<^<^<>^vv<vv^v^^>^^^>vv^v>>><<<^<>>v>v<^^<><v>>><><^v^^<<><<<>^<^^v^>v<vv^^^^>><v><^<<v<<v<>^>^>>^<>^v><>>^<v<vv^<<^<<>vv^>^^<<<^v<>>^v<>vvv<<^^<<><vvvvv<<^<^^<>>>>^^<><>^><>^v<v^^v<<v^^<^<^>v<v>^v<^>^v<>v^vv<><<v>^vvv<><<^>>^^><><>^<>^>v^^v^><v<><>>v><v^<v<<v>><^v>^<v<^>v<<<>vvv^<^^v<vvv^vv<>^<>^>>v<>^^><><v>>^><^^vv>><<>><v><^><>>^vv>v<vv<>v^v^^v<<^^<vv>v^^vv<<^<<><>^<><v^><^<^<>>^vv<v>v>>^<^vv>^vv^>v>^<><^><^<>v^v^^<^<>^^v>>><^v<>v^v<<^>v><>^^<<v^v<>v^>>v>^<><vv^v<v^<vv<>^>^>^<^>v><<><><><<<>^>><v^^><^>><v>>^v<<<^<<>^><<^>>>>>v<^>v>>v^<v^>^>v^^><>v^v^vvvv<v<v<>v>>><<>^<<vvv><v^v^>v<v^^^>>^<v>>^vv^^<vv><^>>v<v^><vvv<^^>>vv^v<^<>^v^<<v>^<<><<<^vvv^>^^<<>>><v<^>vv<<^<><^v<^<><<^^>vv^v>v^^^>>>>^>vv<<v>v>>^^v^^><>v<<^><^<v^>>^>v^v>><^v^>v<<^<v><^<^<^<>>v^^>><<<>v<v>v<^^>^vv<<<^^<v<>v^^>v<<><^<>^^>^v<>v>><^^^vv^>^><>v^^<v^<>>^<v^^^><v<><vvv>v>^<<^v>^>>>>><^^^<>v<v>>v^^<^v^>>v^<<v^>^>v^v>>>>^>>vv<>^<^v><v^^<>v>v^v>^<>^>v<vv><<v<^v<<^v<<^v^vv<><>^<>>^<>>^<>v^><<>^v>>^^^^<<^v><>^<^>^^v><^^<^<v^<^^v>^v><vv>v<<^>^>><<^^^vvv<<^vv<^^>v^^vv^<^^<<^^>>^^<vv<v<<v^^<<v<^vvv<<><<v>v^>>v^^>v<^>^><v<^>v<v^v<v^^<>v>><<v^v^v<^^^><v>v><^<^vv>^^v>^>v<<^vv><^^^^^^><<^>>>^v<>^^v<<<>><<<v^><>^<<<v>v^>^^^<^><v>^^^v<<>v<v>^<v^>><<^^<<^v<<>^v>>vv>><v<^><v<<<vvv><vv><<^v^^<v^vvv<^v>>v^v<v^v^>>^^v<><^^^<^^>v>^<><v<<v^^>vvv^v^^<v<v^v>^>v^^v<^><v^^<<<<>^^>>^v<><^><^<<^vv^<><<>v^vv^<v^<><<<^^>v<<>>>v<>v<><<<v>^v>^^v>^^>v>^>^>v<>><>^>^>^vvvv<^<v^<>^^^^v>v>><<v>>^<vv>>^<v<^v^vv>><>^^>v^^<<><^<v>><<<<>v>^^><v^^v<<v<><vv^v>^<v^^>v<<<<v^v<<>>vv<v<<<v>v>>v<^v>>v>v^<<<>^>^>^<>v<^^vv><^v<<^v<vvv^vv>v<^<<^^vv^^>vv<^>v>^^<<v^<<^^v<>^>v<<^^<^>^^^v^^<v<^<^>>>v^vv^<^v>^<>^<^<v<^v>>>^<^v<><v<^vv<v>v><v^v^^v<vv><^^<><>^>v<^<^vv>><^v><v<>^<>^^>^<><<<v^>>^<>><<><v>vvv^<<^<vv<v><v<^<<<^>^>>v<^>>vv>^v^^^v<>v<>><>^vv^>vv^"
from collections import defaultdict
def part_one(directions):
x = 0
y = 0
presents = defaultdict(int)
presents[(x, y)] += 1
for direction in directions:
if direction == "^":
y += 1
elif direction == "v":
y -= 1
elif direction == ">":
x += 1
else:
x -= 1
presents[(x, y)] += 1
return len(presents.keys())
def part_two(directions):
x = 0
y = 0
presents = defaultdict(int)
presents[(0, 0)] += 1
for i in range(0, len(directions), 2):
direction = directions[i]
if direction == "^":
y += 1
elif direction == "v":
y -= 1
elif direction == ">":
x += 1
else:
x -= 1
presents[(x, y)] += 1
x = 0
y = 0
for i in range(1, len(directions), 2):
direction = directions[i]
if direction == "^":
y += 1
elif direction == "v":
y -= 1
elif direction == ">":
x += 1
else:
x -= 1
presents[(x, y)] += 1
return len(presents.keys())
print(part_two(directions))
| 149.15873
| 8,207
| 0.269128
| 1,682
| 9,397
| 1.501784
| 0.01962
| 0.733967
| 0.857482
| 0.897862
| 0.936263
| 0.926366
| 0.918052
| 0.904196
| 0.893112
| 0.821853
| 0
| 0.003263
| 0.054273
| 9,397
| 63
| 8,208
| 149.15873
| 0.280972
| 0
| 0
| 0.816327
| 0
| 0.020408
| 0.872632
| 0.871675
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040816
| false
| 0
| 0.020408
| 0
| 0.102041
| 0.020408
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 16
|
61d59f4c45be60ac586e7fa75e46a21ebfe5f361
| 49,481
|
py
|
Python
|
create_figures.py
|
cmbaker00/optimal-test-allocation
|
b8ad23a0bde7b360ed8e01af6beac5ba441d6322
|
[
"MIT"
] | null | null | null |
create_figures.py
|
cmbaker00/optimal-test-allocation
|
b8ad23a0bde7b360ed8e01af6beac5ba441d6322
|
[
"MIT"
] | null | null | null |
create_figures.py
|
cmbaker00/optimal-test-allocation
|
b8ad23a0bde7b360ed8e01af6beac5ba441d6322
|
[
"MIT"
] | null | null | null |
import numpy as np
import matplotlib.pyplot as plt
from SimpleModelsModule import TestOptimisation
import param_values as scenario
import plotting_code
import itertools
import matplotlib.ticker as mtick
if __name__ == "__main__":
test_figure_area = False
tat_figure = False
kretzschmar_figure = False
onward_transmission_double_figure = False
track_trace_impact_figure = True
positive_percent_impact_figure = False
supplement_pos_perc_figures = False
supplement_figure_non_quadratic = False
supplement_figure_stochastic_tat = False
supplement_figure_TAT_dist_hist = False
supplement_figure_swab_delay = False
figure_vary_routine_capacity = False
base_figure_directory = 'MS_figures'
if onward_transmission_double_figure:
total_population = scenario.total_population
# High prevelance
onward_transmission_vector_high = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_high)
test_prob_high = scenario.test_prob_high
population_high, cases_high = \
plotting_code.make_population_tuple(num_close=scenario.pop_high[0],
num_symp=scenario.pop_high[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_high)
print(f'Daily infections = {cases_high}')
# Low prevelance
onward_transmission_vector_low = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_low)
test_prob_low = scenario.test_prob_low
population_low, cases_low = \
plotting_code.make_population_tuple(num_close=scenario.pop_low[0],
num_symp=scenario.pop_low[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_low)
print(f'Daily infections = {cases_low}')
# priority_values = [True, False]
priority_values = [False]
capacity_values = [scenario.test_capacity_low, scenario.test_capacity_high]
# symp_prop_values = [.5, 1]
symp_prop_values = [.5]
scenario_names = ['Low_prev', 'High_prev']
situation_dict = {'Low_prev': {'onward': onward_transmission_vector_low,
'pop': population_low,
'pre_prob': test_prob_low},
'High_prev': {'onward': onward_transmission_vector_high,
'pop': population_high,
'pre_prob': test_prob_high}
}
priority_allocation_options = scenario.priority_order
fig, axs = plt.subplots(1, 2, figsize=(8,4))
axs_count = itertools.count()
for priority_value in priority_values:
for priority_order in priority_allocation_options:
for capacity_value in capacity_values:
for symp_prop_value in symp_prop_values:
axs_current = next(axs_count)
for scenario_name in scenario_names:
c_dict = situation_dict[scenario_name]
test_optim = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=symp_prop_value,
test_prioritsation_by_indication=priority_order)
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=1000/capacity_value)
axs[axs_current].plot([i/100 for i in test_array], 100*transmission_array/max(transmission_array))
axs[axs_current].set(xlabel='Number of tests per 1000')
if axs_current == 0:
axs[axs_current].set(ylabel='Percentage of onward transmission')
axs[axs_current].legend(['Outbreak response', 'Community transmission'])
# axs[axs_current].set
axs[axs_current].plot([capacity_value/100]*2, [75, 100],'--r')
plt.savefig(f'{base_figure_directory}/Onward_transmission_two_panel.png')
plt.show()
print(1)
# plotting_code.run_analysis_save_plot(priority=priority_value,
# onward_transmission=c_dict['onward'],
# pop=c_dict['pop'],
# pre_prob=c_dict['pre_prob'],
# cap=capacity_value,
# prop_symp=symp_prop_value,
# scenario_name=scenario,
# priority_ordering=priority_order,
# directory_name=base_figure_directory)
if track_trace_impact_figure:
total_population = scenario.total_population
# High prevelance
onward_transmission_vector_high = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_high)
test_prob_high = scenario.test_prob_high
population_high, cases_high = \
plotting_code.make_population_tuple(num_close=scenario.pop_high[0],
num_symp=scenario.pop_high[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_high)
print(f'Daily infections = {cases_high}')
# Low prevelance
onward_transmission_vector_low = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_low)
test_prob_low = scenario.test_prob_low
population_low, cases_low = \
plotting_code.make_population_tuple(num_close=scenario.pop_low[0],
num_symp=scenario.pop_low[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_low)
print(f'Daily infections = {cases_low}')
# priority_values = [True, False]
priority_values = [False]
capacity_values = [scenario.test_capacity_low, scenario.test_capacity_high]
# symp_prop_values = [.5, 1]
symp_prop_values = [.5]
scenario_names = ['Low_prev']
situation_dict = {'Low_prev': {'onward': onward_transmission_vector_low,
'pop': population_low,
'pre_prob': test_prob_low},
'High_prev': {'onward': onward_transmission_vector_high,
'pop': population_high,
'pre_prob': test_prob_high}
}
priority_allocation_options = scenario.priority_order
plot_num = itertools.count()
colours = ((0, .6, .6), (.5,.2,.3))
for priority_value in priority_values:
for priority_order in priority_allocation_options:
for capacity_value in capacity_values:
for symp_prop_value in symp_prop_values:
for scenario_name in scenario_names:
c_dict = situation_dict[scenario_name]
test_optim = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=symp_prop_value,
test_prioritsation_by_indication=priority_order)
test_optim_iso_only = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=symp_prop_value,
test_prioritsation_by_indication=priority_order,
routine_tat=10,
tat_at_fifty_percent_surge=20
)
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=1000/capacity_value)
test_array_iso, transmission_array_iso, positive_array_iso = \
test_optim_iso_only.generate_onward_transmission_with_tests(max_tests_proportion=1000/capacity_value)
no_test_onward_transmission = test_optim.estimate_transmission_with_testing(0)[0]
transmission_reduction = no_test_onward_transmission - transmission_array
iso_reduction = no_test_onward_transmission - transmission_array_iso
perc_trace = (1 - iso_reduction/transmission_reduction)*100
# transmission_reduction = max(transmission_array) - transmission_array
# transmission_reduction_iso = max(transmission_array_iso) - transmission_array_iso
transmisison_difference = transmission_array_iso-transmission_array
percentage_transmission_difference = transmisison_difference/transmission_array_iso
# print(min(transmisison_difference))
current_plot_num = next(plot_num)
plt.plot([i/100 for i in test_array], perc_trace, color=colours[current_plot_num])
# axs[axs_current].plot([i/100 for i in test_array], transmission_reduction_iso)
plt.xlabel('Number of tests per 1000')
plt.ylabel('Percentage reduction through contact tracing')
plt.legend(['Routine capacity 2 per 1000', 'Routine capacity 4 per 1000'])
# axs[axs_current].set
# axs[axs_current].plot([capacity_value/100]*2, [0, 45],'--r')
plt.savefig(f'{base_figure_directory}/Percenage_reduction_by_tracing.png')
plt.show()
print(1)
# plotting_code.run_analysis_save_plot(priority=priority_value,
# onward_transmission=c_dict['onward'],
# pop=c_dict['pop'],
# pre_prob=c_dict['pre_prob'],
# cap=capacity_value,
# prop_symp=symp_prop_value,
# scenario_name=scenario,
# priority_ordering=priority_order,
# directory_name=base_figure_directory)
if positive_percent_impact_figure:
total_population = scenario.total_population
# High prevelance
onward_transmission_vector_high = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_high)
test_prob_high = scenario.test_prob_high
population_high, cases_high = \
plotting_code.make_population_tuple(num_close=scenario.pop_high[0],
num_symp=scenario.pop_high[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_high)
print(f'Daily infections = {cases_high}')
# Low prevelance
onward_transmission_vector_low = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_low)
test_prob_low = scenario.test_prob_low
population_low, cases_low = \
plotting_code.make_population_tuple(num_close=scenario.pop_low[0],
num_symp=scenario.pop_low[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_low)
print(f'Daily infections = {cases_low}')
# priority_values = [True, False]
priority_values = [False]
capacity_values = [scenario.test_capacity_low, scenario.test_capacity_high]
# symp_prop_values = [.5, 1]
symp_prop_values = [.5]
scenario_names = ['Low_prev', 'High_prev']
situation_dict = {'Low_prev': {'onward': onward_transmission_vector_low,
'pop': population_low,
'pre_prob': test_prob_low},
'High_prev': {'onward': onward_transmission_vector_high,
'pop': population_high,
'pre_prob': test_prob_high}
}
priority_allocation_options = scenario.priority_order
priority_value = priority_values[0]
priority_order = priority_allocation_options[0]
capacity_value = capacity_values[0]
symp_prop_value = symp_prop_values[0]
scenario_name = scenario_names[1]
c_dict = situation_dict[scenario_name]
test_optim = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=symp_prop_value,
test_prioritsation_by_indication=priority_order)
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=1000/capacity_value)
test_nparray = np.array(test_array)/100
fig, ax1 = plt.subplots()
color = 'tab:blue'
color = [0,0,.6]
ax1.plot(test_nparray, 100*transmission_array/max(transmission_array), color=color)
ax1.set_ylabel('Percentage of onwards transmission', color=color)
ax1.set_xlabel('Number of tests per 1000')
min_transmission_tests = test_nparray[np.where(transmission_array==min(transmission_array))]
ax1.plot([min_transmission_tests]*2, [80,100],'k--')
ax2 = ax1.twinx()
color = [.25, .4, 0]
ax2.plot([i/100 for i in test_array], 100*positive_array*np.array(test_array)/cases_high, color=color)
ax2.yaxis.set_major_formatter(mtick.PercentFormatter())
ax2.set_ylabel('Percentage of infections identified', color=color)
fig.tight_layout()
plt.savefig(f'{base_figure_directory}/Cases_identified_transmission.png')
plt.show()
fig, ax1 = plt.subplots()
color = 'tab:blue'
color = [0,0,.6]
ax1.plot(test_nparray, 100*transmission_array/max(transmission_array), color=color)
ax1.set_ylabel('Percentage of onwards transmission', color=color)
ax1.set_xlabel('Number of tests per 1000')
min_transmission_tests = test_nparray[np.where(transmission_array==min(transmission_array))]
ax1.plot([min_transmission_tests]*2, [80,100],'k--')
ax2 = ax1.twinx()
color = [.25, .4, 0]
ax2.plot([i/100 for i in test_array], 100*positive_array, color=color)
ax2.set_ylabel('Percentage positive', color=color)
ax2.yaxis.set_major_formatter(mtick.PercentFormatter())
fig.tight_layout()
plt.savefig(f'{base_figure_directory}/Perc_pos_transmission.png')
plt.show()
if supplement_pos_perc_figures:
total_population = scenario.total_population
# High prevelance
onward_transmission_vector_high = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_high)
test_prob_high = scenario.test_prob_high
population_high, cases_high = \
plotting_code.make_population_tuple(num_close=scenario.pop_high[0],
num_symp=scenario.pop_high[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_high)
print(f'Daily infections = {cases_high}')
# Low prevelance
onward_transmission_vector_low = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_low)
test_prob_low = scenario.test_prob_low
population_low, cases_low = \
plotting_code.make_population_tuple(num_close=scenario.pop_low[0],
num_symp=scenario.pop_low[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_low)
print(f'Daily infections = {cases_low}')
# priority_values = [True, False]
priority_values = [False]
capacity_values = [scenario.test_capacity_low, scenario.test_capacity_high]
# symp_prop_values = [.5, 1]
symp_prop_values = [.25, .5, .75]
scenario_names = ['Low_prev', 'High_prev']
situation_dict = {'Low_prev': {'onward': onward_transmission_vector_low,
'pop': population_low,
'pre_prob': test_prob_low},
'High_prev': {'onward': onward_transmission_vector_high,
'pop': population_high,
'pre_prob': test_prob_high}
}
priority_allocation_options = scenario.priority_order
priority_value = priority_values[0]
priority_order = priority_allocation_options[0]
for capacity_value in capacity_values:
for symp_prop_value in symp_prop_values:
for scenario_name in scenario_names:
c_dict = situation_dict[scenario_name]
test_optim = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=symp_prop_value,
test_prioritsation_by_indication=priority_order)
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=1000/capacity_value)
test_nparray = np.array(test_array)/100
fig, ax1 = plt.subplots()
scenario_plot_name = None
if scenario_name == 'Low_prev':
scenario_plot_name = 'Outbreak response'
if scenario_name == 'High_prev':
scenario_plot_name = 'Community transmission'
plt.title(f'{scenario_plot_name} scenario\ntest capacity = {capacity_value/100} per 1000, symptomatic presenting proportion = {symp_prop_value}')
color = 'tab:blue'
color = [0,0,.6]
ax1.plot(test_nparray, 100*transmission_array/max(transmission_array), color=color)
ax1.set_ylabel('Percentage of onwards transmission', color=color)
ax1.set_xlabel('Number of tests per 1000')
# min_transmission_tests = test_nparray[np.where(transmission_array==min(transmission_array))]
# ax1.plot([min_transmission_tests]*2, [80,100],'k--')
ax2 = ax1.twinx()
color = [.25, .4, 0]
ax2.plot([i/100 for i in test_array], 100*positive_array*np.array(test_array)/cases_high, color=color)
ax2.set_ylabel('Percentage of infections identified', color=color)
fig.tight_layout()
# plt.xlabel('Number of tests per 1000')
# plt.ylabel('Percentage reduction through contact tracing')
# plt.legend(['Routine capacity 2 per 1000', 'Routine capacity 4 per 1000'])
# axs[axs_current].set
# axs[axs_current].plot([capacity_value/100]*2, [0, 45],'--r')
plt.savefig(f'{base_figure_directory}/Supplement_figures/Cases_identified_transmission_{scenario_name}_capacity{capacity_value}_sympprop_{symp_prop_value}.png')
# plt.show()
if supplement_figure_non_quadratic:
total_population = scenario.total_population
# High prevelance
onward_transmission_vector_high = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_high)
test_prob_high = scenario.test_prob_high
population_high, cases_high = \
plotting_code.make_population_tuple(num_close=scenario.pop_high[0],
num_symp=scenario.pop_high[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_high)
print(f'Daily infections = {cases_high}')
# Low prevelance
onward_transmission_vector_low = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_low)
test_prob_low = scenario.test_prob_low
population_low, cases_low = \
plotting_code.make_population_tuple(num_close=scenario.pop_low[0],
num_symp=scenario.pop_low[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_low)
print(f'Daily infections = {cases_low}')
# priority_values = [True, False]
priority_values = [False]
capacity_values = [scenario.test_capacity_low, scenario.test_capacity_high]
# symp_prop_values = [.5, 1]
symp_prop_values = [.25, .5, .75]
scenario_names = ['Low_prev', 'High_prev']
situation_dict = {'Low_prev': {'onward': onward_transmission_vector_low,
'pop': population_low,
'pre_prob': test_prob_low},
'High_prev': {'onward': onward_transmission_vector_high,
'pop': population_high,
'pre_prob': test_prob_high}
}
priority_allocation_options = scenario.priority_order
tat_function_list = ['quadratic', 'linear', 'exponential']
priority_value = priority_values[0]
priority_order = priority_allocation_options[0]
for capacity_value in capacity_values:
for scenario_name in scenario_names:
fig, axs = plt.subplots(1, 3, figsize=(14,8))
scenario_plot_name = None
if scenario_name == 'Low_prev':
scenario_plot_name = 'Outbreak response'
if scenario_name == 'High_prev':
scenario_plot_name = 'Community transmission'
counter = itertools.count()
for tat_function in tat_function_list:
c_dict = situation_dict[scenario_name]
test_optim = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=.5,
test_prioritsation_by_indication=priority_order,
tat_function=tat_function)
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=1000/capacity_value)
test_nparray = np.array(test_array)/100
c = next(counter)
axs[c].set_title(f'{scenario_plot_name} scenario\ntest capacity = {capacity_value/100}, TAT function: {tat_function}')
color = 'tab:blue'
color = [0,0,.6]
axs[c].plot(test_nparray, 100*transmission_array/max(transmission_array), color=color)
if c == 0:
axs[c].set_ylabel('Percentage of onwards transmission', color=color)
axs[c].set_xlabel('Routine testing capacity, per 1000')
# min_transmission_tests = test_nparray[np.where(transmission_array==min(transmission_array))]
# ax1.plot([min_transmission_tests]*2, [80,100],'k--')
# ax2 = ax1.twinx()
# color = [.25, .4, 0]
# ax2.plot([i/100 for i in test_array], 100*positive_array*np.array(test_array)/cases_high, color=color)
# ax2.set_ylabel('Percentage of infections identified', color=color)
# fig.tight_layout()
# plt.xlabel('Number of tests per 1000')
# plt.ylabel('Percentage reduction through contact tracing')
# plt.legend(['Routine capacity 2 per 1000', 'Routine capacity 4 per 1000'])
# axs[axs_current].set
# axs[axs_current].plot([capacity_value/100]*2, [0, 45],'--r')
plt.savefig(f'{base_figure_directory}/Supplement_figures/tat_function/Cases_identified_transmission_{scenario_name}_capacity{capacity_value}_tatfun_{tat_function}.png')
# plt.show()
if test_figure_area:
total_population_size = 100000
percentage_pop_by_indication_cc_sympt = (0.1, 1)
# population = (1000, 10000, 10000)
population = (total_population_size*percentage_pop_by_indication_cc_sympt[0]/100,
total_population_size*percentage_pop_by_indication_cc_sympt[1]/100,
total_population_size*(100 - sum(percentage_pop_by_indication_cc_sympt))/100)
pre_test_probability = (.3, .03, .003)
onward_transmission = (2, 3, 1, .3)
routine_capacity = 400
priority_capacity_proportion = .0
priority_queue = True
routine_tat = 10
tat_at_fifty_percent_surge = 20
swab_delay = 1
symptomatic_testing_proportion = 1.
test_prioritsation_by_indication = None
test_optim = TestOptimisation(population=population,
pre_test_probability=pre_test_probability,
onward_transmission=onward_transmission,
routine_capacity=routine_capacity,
priority_capacity_proportion=priority_capacity_proportion,
priority_queue=priority_queue,
routine_tat=routine_tat,
tat_at_fifty_percent_surge=tat_at_fifty_percent_surge,
swab_delay=swab_delay,
symptomatic_testing_proportion=symptomatic_testing_proportion,
test_prioritsation_by_indication=test_prioritsation_by_indication)
# test_optim.plot_turn_around_time()
test_optim.plot_transmission_with_testing()
if tat_figure:
tat_list = [[1, 2],
[2, 4]]
test_optim_1 = TestOptimisation(routine_tat=tat_list[0][0],
tat_at_fifty_percent_surge=tat_list[0][1],
routine_capacity=100)
test_optim_2 = TestOptimisation(routine_tat=tat_list[1][0],
tat_at_fifty_percent_surge=tat_list[1][1],
routine_capacity=100)
plt.figure(figsize=(5, 4), dpi=400)
test_optim_1.plot_turn_around_time(color=[.1,.7,.3])
test_optim_2.plot_turn_around_time(color=[.3,.2,.6])
plt.plot([100, 100], [0.3, 7.5], 'r--')
plt.legend([f'Routine TAT = {rtat}, TAT at 50% surge = {stat}'
for rtat, stat in tat_list] +
['Routine capacity = 100'])
plt.ylim([0, 10])
plt.xlim([0, 200])
plt.savefig('MS_figures/TAT_figure.png')
plt.show()
plt.close()
if kretzschmar_figure:
plt.figure(figsize=(5, 4), dpi=400)
test_optim = TestOptimisation(swab_delay=0)
test_optim.plot_delay_effect_on_transmission(7)
test_optim = TestOptimisation(swab_delay=1)
test_optim.plot_delay_effect_on_transmission(7)
test_optim = TestOptimisation(swab_delay=2)
test_optim.plot_delay_effect_on_transmission(7)
test_optim = TestOptimisation(swab_delay=3)
test_optim.plot_delay_effect_on_transmission(7)
plt.legend([f'Swab delay = {i}' for i in range(4)])
plt.xlabel('Turn around time (TAT)')
plt.savefig('MS_figures/kretzschmar_results.png')
plt.show()
plt.close()
if supplement_figure_stochastic_tat:
total_population = scenario.total_population
# High prevelance
onward_transmission_vector_high = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_high)
test_prob_high = scenario.test_prob_high
population_high, cases_high = \
plotting_code.make_population_tuple(num_close=scenario.pop_high[0],
num_symp=scenario.pop_high[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_high)
print(f'Daily infections = {cases_high}')
# Low prevelance
onward_transmission_vector_low = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_low)
test_prob_low = scenario.test_prob_low
population_low, cases_low = \
plotting_code.make_population_tuple(num_close=scenario.pop_low[0],
num_symp=scenario.pop_low[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_low)
print(f'Daily infections = {cases_low}')
# priority_values = [True, False]
priority_values = [False]
capacity_values = [scenario.test_capacity_high]
# symp_prop_values = [.5, 1]
symp_prop_values = [.5]
scenario_names = ['High_prev']
situation_dict = {
'High_prev': {'onward': onward_transmission_vector_high,
'pop': population_high,
'pre_prob': test_prob_high}
}
stochastic_param_list = [['deterministic', 1, 1, 'Deterministic'],
['gamma', 100, 1, 'Gamma scale = 1'],
['gamma', 100, 2, 'Gamma scale = 5']]
priority_allocation_options = scenario.priority_order
fig, axs = plt.subplots(1, len(stochastic_param_list), figsize=(8,4))
axs_count = itertools.count()
for priority_value in priority_values:
for priority_order in priority_allocation_options:
for capacity_value in capacity_values:
for symp_prop_value in symp_prop_values:
for scenario_name in scenario_names:
c_dict = situation_dict[scenario_name]
for stoch_param in stochastic_param_list:
axs_current = next(axs_count)
test_optim = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=symp_prop_value,
test_prioritsation_by_indication=priority_order,
stochastic_tat_dist=stoch_param[0],
stochastic_tat_reps=stoch_param[1],
gamma_scale_for_tat_dist=stoch_param[2])
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=1000/capacity_value)
axs[axs_current].plot([i/100 for i in test_array], 100*transmission_array/max(transmission_array))
axs[axs_current].set(xlabel='Number of tests per 1000')
if axs_current == 0:
axs[axs_current].set(ylabel='Percentage of onward transmission')
# axs[axs_current].legend(['Outbreak response', 'Community transmission'])
# axs[axs_current].set
axs[axs_current].plot([capacity_value/100]*2, [75, 100],'--r')
axs[axs_current].title.set_text(stoch_param[3])
plt.savefig(f'{base_figure_directory}/Stochastic_TAT.png')
plt.show()
if supplement_figure_TAT_dist_hist:
reps = 1000
binwidth = 1
fig, axs = plt.subplots(1, 3, figsize=(8, 4))
axs_count = itertools.count()
for tat in (1,2,4):
axs_current = next(axs_count)
gamma_scale = 1
gamma_shape = tat/gamma_scale
data = np.random.gamma(shape=gamma_shape,
scale=gamma_scale, size=reps)
axs[axs_current].hist(data, bins=np.arange(min(data), max(data) + binwidth, binwidth), alpha=.75)
gamma_scale = 5
gamma_shape = tat/gamma_scale
data = np.random.gamma(shape=gamma_shape,
scale=gamma_scale, size=reps)
axs[axs_current].hist(data, bins=np.arange(min(data), max(data) + binwidth, binwidth), alpha=.75)
# gamma_scale = 0.2
# gamma_shape = tat/gamma_scale
# data = np.random.gamma(shape=gamma_shape,
# scale=gamma_scale, size=reps)
# axs[axs_current].hist(data, bins=np.arange(min(data), max(data) + binwidth, binwidth), alpha=.75)
axs[axs_current].legend(['Gamma scale = 1','Gamma scale = 5'])
axs[axs_current].title.set_text(f'TAT = {tat}')
if axs_current == 0:
axs[axs_current].set(ylabel='Frequency')
axs[axs_current].set(xlabel='Days')
plt.savefig(f'{base_figure_directory}/TAT_hist.png')
plt.show()
if supplement_figure_swab_delay:
total_population = scenario.total_population
# High prevelance
onward_transmission_vector_high = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_high)
test_prob_high = scenario.test_prob_high
population_high, cases_high = \
plotting_code.make_population_tuple(num_close=scenario.pop_high[0],
num_symp=scenario.pop_high[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_high)
print(f'Daily infections = {cases_high}')
# Low prevelance
onward_transmission_vector_low = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_low)
test_prob_low = scenario.test_prob_low
population_low, cases_low = \
plotting_code.make_population_tuple(num_close=scenario.pop_low[0],
num_symp=scenario.pop_low[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_low)
print(f'Daily infections = {cases_low}')
# priority_values = [True, False]
priority_values = [False]
capacity_values = [scenario.test_capacity_high]
# symp_prop_values = [.5, 1]
symp_prop_values = [.5]
scenario_names = ['High_prev']
situation_dict = {
'High_prev': {'onward': onward_transmission_vector_high,
'pop': population_high,
'pre_prob': test_prob_high}
}
swab_delay_list = [0, 1, 2]
priority_allocation_options = scenario.priority_order
fig, axs = plt.subplots(1, len(swab_delay_list), figsize=(8,4))
axs_count = itertools.count()
for priority_value in priority_values:
for priority_order in priority_allocation_options:
for capacity_value in capacity_values:
for symp_prop_value in symp_prop_values:
for scenario_name in scenario_names:
c_dict = situation_dict[scenario_name]
for swab_delay in swab_delay_list:
axs_current = next(axs_count)
test_optim = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=symp_prop_value,
test_prioritsation_by_indication=priority_order,
swab_delay=swab_delay)
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=1000/capacity_value)
axs[axs_current].plot([i/100 for i in test_array], 100*transmission_array/max(transmission_array))
axs[axs_current].set(xlabel='Number of tests per 1000')
if axs_current == 0:
axs[axs_current].set(ylabel='Percentage of onward transmission')
# axs[axs_current].legend(['Outbreak response', 'Community transmission'])
# axs[axs_current].set
axs[axs_current].plot([capacity_value/100]*2, [70, 100],'--r')
axs[axs_current].title.set_text(f'Swab delay = {swab_delay}')
plt.savefig(f'{base_figure_directory}/Swab_delay_vary.png')
plt.show()
if figure_vary_routine_capacity:
total_population = scenario.total_population
# High prevelance
onward_transmission_vector_high = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_high)
test_prob_high = scenario.test_prob_high
population_high, cases_high = \
plotting_code.make_population_tuple(num_close=scenario.pop_high[0],
num_symp=scenario.pop_high[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_high)
print(f'Daily infections = {cases_high}')
# Low prevelance
onward_transmission_vector_low = \
plotting_code.make_onward_transmission_vector(*scenario.onward_transmission_low)
test_prob_low = scenario.test_prob_low
population_low, cases_low = \
plotting_code.make_population_tuple(num_close=scenario.pop_low[0],
num_symp=scenario.pop_low[1],
total_pop=total_population,
presenting_proporition=1,
probability_by_indication=test_prob_low)
print(f'Daily infections = {cases_low}')
# priority_values = [True, False]
priority_values = [False]
capacity_values = [scenario.test_capacity_high]
# symp_prop_values = [.5, 1]
symp_prop_values = [.5]
scenario_names = ['Low_prev', 'High_prev']
situation_dict = {'Low_prev': {'onward': onward_transmission_vector_low,
'pop': population_low,
'pre_prob': test_prob_low},
'High_prev': {'onward': onward_transmission_vector_high,
'pop': population_high,
'pre_prob': test_prob_high}
}
swab_delay = 1
priority_allocation_options = scenario.priority_order
capacity_value_range = list(range(10,501,10))
fig, axs = plt.subplots(1, len(scenario_names), figsize=(8,4))
axs_count = itertools.count()
for priority_value in priority_values:
for priority_order in priority_allocation_options:
for capacity_value in capacity_values:
for symp_prop_value in symp_prop_values:
for scenario_name in scenario_names:
c_dict = situation_dict[scenario_name]
min_transmission_list = []
for capacity_value in capacity_value_range:
print(capacity_value)
test_optim = TestOptimisation(priority_queue=priority_value,
onward_transmission=c_dict['onward'],
population=c_dict['pop'],
pre_test_probability=c_dict['pre_prob'],
routine_capacity=capacity_value,
symptomatic_testing_proportion=symp_prop_value,
test_prioritsation_by_indication=priority_order,
swab_delay=swab_delay)
if capacity_value < 100:
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=2)
min_transmission_list.append(min(transmission_array))
else:
test_array, transmission_array, positive_array = \
test_optim.generate_onward_transmission_with_tests(max_tests_proportion=1.5)
min_transmission_list.append(min(transmission_array))
axs_current = next(axs_count)
min_transmission_array = np.array(min_transmission_list)
axs[axs_current].plot([i/100 for i in capacity_value_range], 100*min_transmission_array/max(min_transmission_array))
axs[axs_current].set(xlabel='Testing capacity, per 1000')
if axs_current == 0:
axs[axs_current].set(ylabel='Percentage of onward transmission')
# axs[axs_current].legend(['Outbreak response', 'Community transmission'])
# axs[axs_current].set
# axs[axs_current].plot([capacity_value/100]*2, [70, 100],'--r')
['Low_prev', 'High_prev']
title_text = 'Outbreak suppression' if scenario_name == 'Low_prev' else 'Community transmission'
axs[axs_current].title.set_text(title_text)
plt.savefig(f'{base_figure_directory}/Routine_capacity_vary.png')
plt.show()
pass
| 53.377562
| 184
| 0.529052
| 4,639
| 49,481
| 5.249623
| 0.051304
| 0.070956
| 0.045333
| 0.011169
| 0.860715
| 0.835955
| 0.816778
| 0.803967
| 0.784174
| 0.764793
| 0
| 0.021856
| 0.399891
| 49,481
| 927
| 185
| 53.377562
| 0.798276
| 0.081708
| 0
| 0.734234
| 0
| 0.001502
| 0.073457
| 0.016914
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.001502
| 0.010511
| 0
| 0.010511
| 0.028529
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
61de0b4c894a0e4e818313f1ad2c364bf9a4a28c
| 120
|
py
|
Python
|
malcolm/comms/pva/__init__.py
|
dls-controls/github-publish-test
|
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
|
[
"Apache-2.0"
] | null | null | null |
malcolm/comms/pva/__init__.py
|
dls-controls/github-publish-test
|
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
|
[
"Apache-2.0"
] | null | null | null |
malcolm/comms/pva/__init__.py
|
dls-controls/github-publish-test
|
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
|
[
"Apache-2.0"
] | null | null | null |
from malcolm.comms.pva.pvaclientcomms import PvaClientComms
from malcolm.comms.pva.pvaservercomms import PvaServerComms
| 40
| 59
| 0.883333
| 14
| 120
| 7.571429
| 0.5
| 0.207547
| 0.301887
| 0.358491
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 120
| 2
| 60
| 60
| 0.946429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
61f9a3bd91ee3c22c63212af28181cdd96f45e7e
| 47
|
py
|
Python
|
src/mcs_tests/test_tobedeleted.py
|
Project-PmPy/pmpy
|
9e4a7d62e09ac020638bc8c1b955ad73beef2ed7
|
[
"MIT"
] | null | null | null |
src/mcs_tests/test_tobedeleted.py
|
Project-PmPy/pmpy
|
9e4a7d62e09ac020638bc8c1b955ad73beef2ed7
|
[
"MIT"
] | null | null | null |
src/mcs_tests/test_tobedeleted.py
|
Project-PmPy/pmpy
|
9e4a7d62e09ac020638bc8c1b955ad73beef2ed7
|
[
"MIT"
] | null | null | null |
print(type(2))
print(type(2.1))
print(type([]))
| 15.666667
| 16
| 0.638298
| 9
| 47
| 3.333333
| 0.444444
| 0.9
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 0.042553
| 47
| 3
| 17
| 15.666667
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
1151c508ec1dd51713e18b60c6e345b3b66f2e45
| 31,485
|
py
|
Python
|
tests/integration/type_casting_test.py
|
gglin001/popart
|
3225214343f6d98550b6620e809a3544e8bcbfc6
|
[
"MIT"
] | 61
|
2020-07-06T17:11:46.000Z
|
2022-03-12T14:42:51.000Z
|
tests/integration/type_casting_test.py
|
gglin001/popart
|
3225214343f6d98550b6620e809a3544e8bcbfc6
|
[
"MIT"
] | 1
|
2021-02-25T01:30:29.000Z
|
2021-11-09T11:13:14.000Z
|
tests/integration/type_casting_test.py
|
gglin001/popart
|
3225214343f6d98550b6620e809a3544e8bcbfc6
|
[
"MIT"
] | 6
|
2020-07-15T12:33:13.000Z
|
2021-11-07T06:55:00.000Z
|
# Copyright (c) 2019 Graphcore Ltd. All rights reserved.
import numpy as np
import popart
import pytest
import test_util as tu
import torch
import onnx
from onnx import helper, numpy_helper, version_converter
from onnx import AttributeProto, TensorProto, GraphProto
from onnx.backend.base import Backend
from onnx import numpy_helper
def test_type_cast_UINT8ToINT32():
# Build an onnx proto with a single constant node
# Create output tensors of the type to cast
X = helper.make_tensor_value_info('X', TensorProto.UINT8, [3, 2])
Y = helper.make_tensor_value_info('Y', TensorProto.UINT8, [3, 2])
values = np.array([[1, 2], [3, 4], [5, 6]]).astype(np.uint8)
# We use ConstantOfShape even if it is not followint the onnx
# spec because we need an op that can store several actual values
# in the graph to make sure the type conversion is succesful. Constant
# would not work here becauseit has only been available since opset 12.
# Constant-9 is not compatible with the default opset-version 11
node_def = onnx.helper.make_node('ConstantOfShape',
inputs=['X'],
outputs=['Y'],
value=onnx.helper.make_tensor(
name='const_tensor',
data_type=onnx.TensorProto.UINT8,
dims=values.shape,
vals=values.flatten().astype(
np.uint8).tobytes(),
raw=True))
# Create the graph (GraphProto)
graph_def = helper.make_graph(
[node_def],
'test-model',
[X],
[Y],
)
# Create the model (ModelProto)
onnx_model = helper.make_model(graph_def)
# Make sure the opset version is version 9 (by default it would be 11
# which would crash subsequent function calls)
onnx_model = version_converter.convert_version(onnx_model, 9)
# Compile the model to an onnx graph
onnx.save_model(onnx_model, "type_test.onnx")
# Load proto into a graph transfomer and apply cast
graph_transformer = popart.GraphTransformer("type_test.onnx")
graph_transformer.convertUINT8ToINT32()
# Retrieve modeified graph proto
proto = graph_transformer.getModelProto()
popart.Builder(proto).saveModelProto("type_test_modified.onnx")
# Load the model as an onnx model again
# modified_onnx_model = onnx.load(proto)
modified_onnx_model = onnx.load("type_test_modified.onnx")
# Make sure the graph is still good
onnx.checker.check_model(modified_onnx_model)
# Get only the first input of the input array (there should only be one)
i = modified_onnx_model.graph.input[0]
o = modified_onnx_model.graph.output[0]
input_type = i.type.tensor_type
output_type = o.type.tensor_type
# Make sure shapes remain untouched
assert (input_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (output_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (input_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (input_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
# Test whether the new tensor has the right size
assert (len(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data) == len(
onnx_model.graph.node[0].attribute[0].t.raw_data)
), "Wrong number of Bytes in casted version."
# Retrieve the two constant tensors and compare the values
assert np.allclose(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data,
values.flatten()), "Data was not conserved by cast"
def test_type_cast_UINT16ToINT32():
# Build an onnx proto with a single constant node
# Create output tensors of the type to cast
X = helper.make_tensor_value_info('X', TensorProto.UINT16, [3, 2])
Y = helper.make_tensor_value_info('Y', TensorProto.UINT16, [3, 2])
values = np.array([[1, 2], [3, 4], [5, 6]]).astype(np.uint16)
node_def = onnx.helper.make_node('ConstantOfShape',
inputs=['X'],
outputs=['Y'],
value=onnx.helper.make_tensor(
name='const_tensor',
data_type=onnx.TensorProto.UINT16,
dims=values.shape,
vals=values.flatten().astype(
np.uint16).tobytes(),
raw=True))
# Create the graph (GraphProto)
graph_def = helper.make_graph(
[node_def],
'test-model',
[X],
[Y],
)
# Create the model (ModelProto)
onnx_model = helper.make_model(graph_def)
# Make sure the opset version is version 9 (by default it would be 11
# which would crash subsequent function calls)
onnx_model = version_converter.convert_version(onnx_model, 9)
# Compile the model to an onnx graph
onnx.save_model(onnx_model, "type_test.onnx")
# Load proto into a graph transfomer and apply cast
graph_transformer = popart.GraphTransformer("type_test.onnx")
graph_transformer.convertUINT16ToINT32()
# Retrieve modeified graph proto
proto = graph_transformer.getModelProto()
popart.Builder(proto).saveModelProto("type_test_modified.onnx")
# Load the model as an onnx model again
# modified_onnx_model = onnx.load(proto)
modified_onnx_model = onnx.load("type_test_modified.onnx")
# Make sure the graph is still good
onnx.checker.check_model(modified_onnx_model)
# Get only the first input of the input array (there should only be one)
i = modified_onnx_model.graph.input[0]
o = modified_onnx_model.graph.output[0]
input_type = i.type.tensor_type
output_type = o.type.tensor_type
# Make sure shapes remain untouched
assert (input_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (output_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (input_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (input_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
# Test whether the new tensor has the right size
assert (2 * len(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data) == len(
onnx_model.graph.node[0].attribute[0].t.raw_data)
), "Wrong number of Bytes in casted version."
# Retrieve the two constant tensors and compare the values
assert np.allclose(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data,
values.flatten()), "Data was not conserved by cast"
def test_type_cast_INT8ToINT32():
# Build an onnx proto with a single constant node
# Create output tensors of the type to cast
X = helper.make_tensor_value_info('X', TensorProto.INT8, [3, 2])
Y = helper.make_tensor_value_info('Y', TensorProto.INT8, [3, 2])
values = np.array([[1, 2], [3, 4], [5, 6]]).astype(np.uint8)
node_def = onnx.helper.make_node('ConstantOfShape',
inputs=['X'],
outputs=['Y'],
value=onnx.helper.make_tensor(
name='const_tensor',
data_type=onnx.TensorProto.INT8,
dims=values.shape,
vals=values.flatten().astype(
np.int8).tobytes(),
raw=True))
# Create the graph (GraphProto)
graph_def = helper.make_graph(
[node_def],
'test-model',
[X],
[Y],
)
# Create the model (ModelProto)
onnx_model = helper.make_model(graph_def)
# Make sure the opset version is version 9 (by default it would be 11
# which would crash subsequent function calls)
onnx_model = version_converter.convert_version(onnx_model, 9)
# Compile the model to an onnx graph
onnx.save_model(onnx_model, "type_test.onnx")
# Load proto into a graph transfomer and apply cast
graph_transformer = popart.GraphTransformer("type_test.onnx")
graph_transformer.convertINT8ToINT32()
# Retrieve modeified graph proto
proto = graph_transformer.getModelProto()
popart.Builder(proto).saveModelProto("type_test_modified.onnx")
# Load the model as an onnx model again
# modified_onnx_model = onnx.load(proto)
modified_onnx_model = onnx.load("type_test_modified.onnx")
# Make sure the graph is still good
onnx.checker.check_model(modified_onnx_model)
# Get only the first input of the input array (there should only be one)
i = modified_onnx_model.graph.input[0]
o = modified_onnx_model.graph.output[0]
input_type = i.type.tensor_type
output_type = o.type.tensor_type
# Make sure shapes remain untouched
assert (input_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (output_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (input_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (input_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
# Test whether the new tensor has the right size
assert (len(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data) == len(
onnx_model.graph.node[0].attribute[0].t.raw_data)
), "Wrong number of Bytes in casted version."
# Retrieve the two constant tensors and compare the values
assert np.allclose(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data,
values.flatten()), "Data was not conserved by cast"
def test_type_cast_INT16ToINT32():
# Build an onnx proto with a single constant node
# Create output tensors of the type to cast
X = helper.make_tensor_value_info('X', TensorProto.INT16, [3, 2])
Y = helper.make_tensor_value_info('Y', TensorProto.INT16, [3, 2])
values = np.array([[1, 2], [3, 4], [5, 6]]).astype(np.int16)
node_def = onnx.helper.make_node('ConstantOfShape',
inputs=['X'],
outputs=['Y'],
value=onnx.helper.make_tensor(
name='const_tensor',
data_type=onnx.TensorProto.INT16,
dims=values.shape,
vals=values.flatten().astype(
np.int16).tobytes(),
raw=True))
# Create the graph (GraphProto)
graph_def = helper.make_graph(
[node_def],
'test-model',
[X],
[Y],
)
# Create the model (ModelProto)
onnx_model = helper.make_model(graph_def)
# Make sure the opset version is version 9 (by default it would be 11
# which would crash subsequent function calls)
onnx_model = version_converter.convert_version(onnx_model, 9)
# Compile the model to an onnx graph
onnx.save_model(onnx_model, "type_test.onnx")
# Load proto into a graph transfomer and apply cast
graph_transformer = popart.GraphTransformer("type_test.onnx")
graph_transformer.convertINT16ToINT32()
# Retrieve modeified graph proto
proto = graph_transformer.getModelProto()
popart.Builder(proto).saveModelProto("type_test_modified.onnx")
# Load the model as an onnx model again
# modified_onnx_model = onnx.load(proto)
modified_onnx_model = onnx.load("type_test_modified.onnx")
# Make sure the graph is still good
onnx.checker.check_model(modified_onnx_model)
# Get only the first input of the input array (there should only be one)
i = modified_onnx_model.graph.input[0]
o = modified_onnx_model.graph.output[0]
input_type = i.type.tensor_type
output_type = o.type.tensor_type
# Make sure shapes remain untouched
assert (input_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (output_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (input_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (input_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
# Test whether the new tensor has the right size
assert (2 * len(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data) == len(
onnx_model.graph.node[0].attribute[0].t.raw_data)
), "Wrong number of Bytes in casted version."
# Retrieve the two constant tensors and compare the values
assert np.allclose(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data,
values.flatten()), "Data was not conserved by cast"
def test_type_cast_INT64ToINT32():
# Build an onnx proto with a single constant node
# Create output tensors of the type to cast
X = helper.make_tensor_value_info('X', TensorProto.INT64, [3, 2])
Y = helper.make_tensor_value_info('Y', TensorProto.INT64, [3, 2])
values = np.array([[1, 2], [3, 4], [5, 6]]).astype(np.int64)
node_def = onnx.helper.make_node(
'ConstantOfShape',
inputs=['X'],
outputs=['Y'],
value=onnx.helper.make_tensor(name='const_tensor',
data_type=onnx.TensorProto.INT64,
dims=values.shape,
vals=values.flatten().astype(np.int64),
raw=False))
# Create the graph (GraphProto)
graph_def = helper.make_graph(
[node_def],
'test-model',
[X],
[Y],
)
# Create the model (ModelProto)
onnx_model = helper.make_model(graph_def)
# Make sure the opset version is version 9 (by default it would be 11
# which would crash subsequent function calls)
onnx_model = version_converter.convert_version(onnx_model, 9)
# Compile the model to an onnx graph
onnx.save_model(onnx_model, "type_test.onnx")
# Load proto into a graph transfomer and apply cast
graph_transformer = popart.GraphTransformer("type_test.onnx")
graph_transformer.convertINT64ToINT32()
# Retrieve modeified graph proto
proto = graph_transformer.getModelProto()
popart.Builder(proto).saveModelProto("type_test_modified.onnx")
# Load the model as an onnx model again
# modified_onnx_model = onnx.load(proto)
modified_onnx_model = onnx.load("type_test_modified.onnx")
# Make sure the graph is still good
onnx.checker.check_model(modified_onnx_model)
# Get only the first input of the input array (there should only be one)
i = modified_onnx_model.graph.input[0]
o = modified_onnx_model.graph.output[0]
input_type = i.type.tensor_type
output_type = o.type.tensor_type
# Make sure shapes remain untouched
assert (input_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (output_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (input_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (input_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
# Test whether the new tensor has the right amount of data in it
assert (len(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data) == len(
onnx_model.graph.node[0].attribute[0].t.int64_data)
), "Wrong number of Bytes in casted version."
# Retrieve the two constant tensors and compare the values
assert np.allclose(
modified_onnx_model.graph.node[0].attribute[0].t.int32_data,
values.flatten()), "Data was not conserved by cast"
def test_type_cast_DoubleToHalf():
# Build an onnx proto with a single constant node
# Create output tensors of the type to cast
X = helper.make_tensor_value_info('X', TensorProto.DOUBLE, [3, 2])
Y = helper.make_tensor_value_info('Y', TensorProto.DOUBLE, [3, 2])
values = np.array([[0.1, 0.2], [0.3, 0.4], [0.5, 0.6]]).astype(np.double)
node_def = onnx.helper.make_node(
'ConstantOfShape',
inputs=['X'],
outputs=['Y'],
value=onnx.helper.make_tensor(name='const_tensor',
data_type=onnx.TensorProto.DOUBLE,
dims=values.shape,
vals=values.flatten().astype(np.double),
raw=False))
# Create the graph (GraphProto)
graph_def = helper.make_graph(
[node_def],
'test-model',
[X],
[Y],
)
# Create the model (ModelProto)
onnx_model = helper.make_model(graph_def)
# Make sure the opset version is version 9 (by default it would be 11
# which would crash subsequent function calls)
onnx_model = version_converter.convert_version(onnx_model, 9)
# Compile the model to an onnx graph
onnx.save_model(onnx_model, "type_test.onnx")
# Load proto into a graph transfomer and apply cast
graph_transformer = popart.GraphTransformer("type_test.onnx")
graph_transformer.convertDoublesToHalfs()
# Retrieve modeified graph proto
proto = graph_transformer.getModelProto()
popart.Builder(proto).saveModelProto("type_test_modified.onnx")
# Load the model as an onnx model again
# modified_onnx_model = onnx.load(proto)
modified_onnx_model = onnx.load("type_test_modified.onnx")
# Make sure the graph is still good
onnx.checker.check_model(modified_onnx_model)
# Get only the first input of the input array (there should only be one)
i = modified_onnx_model.graph.input[0]
o = modified_onnx_model.graph.output[0]
input_type = i.type.tensor_type
output_type = o.type.tensor_type
# Make sure shapes remain untouched
assert (input_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (output_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (input_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (input_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
# Test whether the new tensor has the right size
assert (len(
modified_onnx_model.graph.node[0].attribute[0].t.raw_data) == 2 *
len(onnx_model.graph.node[0].attribute[0].t.double_data)
), "Wrong number of Bytes in casted version."
# Retrieve the two constant tensors and compare the values (note that even if numpy does some magic there,
# normal cast from double to half will not be able to preserve correctly some values such as 0.3, hence the high rtol)
assert np.allclose(np.frombuffer(
modified_onnx_model.graph.node[0].attribute[0].t.raw_data,
dtype=np.half),
onnx_model.graph.node[0].attribute[0].t.double_data,
rtol=1e-3), "Data was not conserved by cast"
def test_type_cast_DoubleToFloat():
# Build an onnx proto with a single constant node
# Create output tensors of the type to cast
X = helper.make_tensor_value_info('X', TensorProto.DOUBLE, [3, 2])
Y = helper.make_tensor_value_info('Y', TensorProto.DOUBLE, [3, 2])
values = np.array([[0.1, 0.2], [0.3, 0.4], [0.5, 0.6]]).astype(np.double)
node_def = onnx.helper.make_node(
'ConstantOfShape',
inputs=['X'],
outputs=['Y'],
value=onnx.helper.make_tensor(name='const_tensor',
data_type=onnx.TensorProto.DOUBLE,
dims=values.shape,
vals=values.flatten().astype(np.double),
raw=False))
# Create the graph (GraphProto)
graph_def = helper.make_graph(
[node_def],
'test-model',
[X],
[Y],
)
# Create the model (ModelProto)
onnx_model = helper.make_model(graph_def)
# Make sure the opset version is version 9 (by default it would be 11
# which would crash subsequent function calls)
onnx_model = version_converter.convert_version(onnx_model, 9)
# Compile the model to an onnx graph
onnx.save_model(onnx_model, "type_test.onnx")
# Load proto into a graph transfomer and apply cast
graph_transformer = popart.GraphTransformer("type_test.onnx")
graph_transformer.convertDoublesToFloats()
# Retrieve modeified graph proto
proto = graph_transformer.getModelProto()
popart.Builder(proto).saveModelProto("type_test_modified.onnx")
# Load the model as an onnx model again
# modified_onnx_model = onnx.load(proto)
modified_onnx_model = onnx.load("type_test_modified.onnx")
# Make sure the graph is still good
onnx.checker.check_model(modified_onnx_model)
# Get only the first input of the input array (there should only be one)
i = modified_onnx_model.graph.input[0]
o = modified_onnx_model.graph.output[0]
input_type = i.type.tensor_type
output_type = o.type.tensor_type
# Make sure shapes remain untouched
assert (input_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (output_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (input_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (input_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
# Test whether the new tensor has the right size
assert (len(
modified_onnx_model.graph.node[0].attribute[0].t.float_data) == len(
onnx_model.graph.node[0].attribute[0].t.double_data)
), "Wrong number of Bytes in casted version."
# Retrieve the two constant tensors and compare the values
assert np.allclose(
modified_onnx_model.graph.node[0].attribute[0].t.float_data,
values.flatten()), "Data was not conserved by cast"
def test_type_cast_BFloatToFloat():
# Build an onnx proto with a single constant node
# Create output tensors of the type to cast
X = helper.make_tensor_value_info('X', TensorProto.BFLOAT16, [3, 2])
Y = helper.make_tensor_value_info('Y', TensorProto.BFLOAT16, [3, 2])
# Define the target values as float32 and cast to bytes
float_values = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6]).astype(np.float32)
float_bytes = float_values.tobytes()
# Reinterpret byte string as int16 values. That way we have split the floats
# in 2 sets of 16bits
int16_values = np.frombuffer(float_bytes, dtype=np.uint16)
# Keep only the second 2 bytes of each float (for some reason it seems
# that np.array.tobytes() puts the fractional bytes first), ie every other int16
# and convert back to bytes. We should now have some bfloat which values
# are close enough to the original floats (precision loss of around 5e-3)
bfloat_as_int16 = int16_values[1::2]
bfloat = bfloat_as_int16.tobytes()
# This data is generated to check against to make sure that we actually get
# the same "truncated" data with our method
bfloat_values = np.frombuffer(bfloat, dtype=np.uint16)
int16_from_bfloat = bfloat_values
for i in range(6):
int16_from_bfloat = np.insert(int16_from_bfloat, 5 - i, 0)
float_again_bytes = np.array(int16_from_bfloat).tobytes()
float_again = np.frombuffer(float_again_bytes, dtype=np.float32)
node_def = onnx.helper.make_node('ConstantOfShape',
inputs=['X'],
outputs=['Y'],
value=onnx.helper.make_tensor(
name='const_tensor',
data_type=onnx.TensorProto.BFLOAT16,
dims=[3, 2],
vals=bfloat,
raw=True))
# Create the graph (GraphProto)
graph_def = helper.make_graph(
[node_def],
'test-model',
[X],
[Y],
)
# Create the model (ModelProto)
onnx_model = helper.make_model(graph_def)
# Make sure the opset version is version 9 (by default it would be 11
# which would crash subsequent function calls)
onnx_model = version_converter.convert_version(onnx_model, 9)
# Compile the model to an onnx graph
onnx.save_model(onnx_model, "type_test.onnx")
# Load proto into a graph transfomer and apply cast
graph_transformer = popart.GraphTransformer("type_test.onnx")
graph_transformer.convertBFloats16ToFloat32()
# Retrieve modeified graph proto
proto = graph_transformer.getModelProto()
popart.Builder(proto).saveModelProto("type_test_modified.onnx")
# Load the model as an onnx model again
# modified_onnx_model = onnx.load(proto)
modified_onnx_model = onnx.load("type_test_modified.onnx")
# Make sure the graph is still good
onnx.checker.check_model(modified_onnx_model)
# Get only the first input of the input array (there should only be one)
i = modified_onnx_model.graph.input[0]
o = modified_onnx_model.graph.output[0]
input_type = i.type.tensor_type
output_type = o.type.tensor_type
# Make sure shapes remain untouched
assert (input_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (output_type.HasField("shape")
), "Modified graph output has no shape attribute"
assert (input_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (input_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[0].dim_value == 3
), "Dimensions were not conserved by cast"
assert (output_type.shape.dim[1].dim_value == 2
), "Dimensions were not conserved by cast"
# Test whether the new tensor has the right size
assert (len(
modified_onnx_model.graph.node[0].attribute[0].t.float_data) == 6
), "Wrong number of Bytes in casted version."
# Retrieve the two constant tensors and compare the values
assert np.allclose(
modified_onnx_model.graph.node[0].attribute[0].t.float_data,
float_values,
rtol=1e-2), "Data was not conserved by cast"
assert np.allclose(
modified_onnx_model.graph.node[0].attribute[0].t.float_data,
float_again), "Data was not conserved by cast"
def test_type_cast_INT64ToINT32_clip():
"""
The model:
starts,ends,axes (int64)
|
t0 -----------.------- Slice -- t1 ------.
| |
indices ---- Gather ----------- t2 ----- Add - o
(int64)
- Gather takes two inputs:
- Constant int64 'indices'
- 't0'. A data input
- It cannot be evaluated on host by the const expression util, as it takes
a variable input
- The IPU does not support int64. Therefore we must convert the int64
tensors of the onnx model to int32
- But conversion is only possible if all int64 tensor data is within the
range of int32, unless we clip the tensor data to int32's numeric limits
- In this case the 'starts' tensor of the slice is valid according to the
onnxspec, but out of range of int32.
- But we know in this case it is safe to clip it, as we will still get the
same result
"""
d1 = np.array([[-1, -2, -3], [4, 5, 6], [7, 8, 9]]).astype(np.float32)
d2 = np.array([0, 1]).astype(np.int64)
axis = 0
axesV = np.array([0], dtype=np.int64)
# Out of range value for int32!
startsV = np.array([-9223372036854775807], dtype=np.int64)
endsV = np.array([2], dtype=np.int64)
builder = popart.Builder()
i1 = builder.addInputTensor("FLOAT", d1.shape)
i2 = builder.addInputTensor("INT64", d2.shape)
g = builder.aiOnnx.gather([i1, i2], axis)
axes = builder.aiOnnx.constant(axesV)
starts = builder.aiOnnx.constant(startsV)
ends = builder.aiOnnx.constant(endsV)
s = builder.aiOnnx.slice([i1, starts, ends, axes])
o = builder.aiOnnx.add([g, s])
int64_proto = builder.getModelProto()
graph_transformer = popart.GraphTransformer(int64_proto)
graph_transformer.convertINT64ToINT32(clip=True)
int32_proto = graph_transformer.getModelProto()
session = popart.InferenceSession(fnModel=int32_proto,
dataFlow=popart.DataFlow(1, [o]),
deviceInfo=tu.create_test_device())
session.prepareDevice()
anchors = session.initAnchorArrays()
stepio = popart.PyStepIO({i1: d1, i2: d2}, anchors)
session.run(stepio)
reference = 2 * np.take(d1, d2, axis=axis)
assert np.allclose(anchors[o], reference)
| 39.955584
| 122
| 0.633032
| 4,142
| 31,485
| 4.669242
| 0.078947
| 0.049328
| 0.050103
| 0.038159
| 0.826008
| 0.826008
| 0.824716
| 0.824716
| 0.813702
| 0.813702
| 0
| 0.023278
| 0.271399
| 31,485
| 787
| 123
| 40.006353
| 0.819791
| 0.241258
| 0
| 0.751073
| 0
| 0
| 0.147465
| 0.015558
| 0
| 0
| 0
| 0
| 0.141631
| 1
| 0.019313
| false
| 0
| 0.021459
| 0
| 0.040773
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fedc673ddbc0b9ca0dc8b385f8a4974260cbfd0b
| 5,003
|
py
|
Python
|
alfabeto.py
|
Graciella-Favoreto/Cinematica_em_Biomecanica
|
8d1373e1eb7368df89c03d74cb84a91434bcf73f
|
[
"MIT"
] | null | null | null |
alfabeto.py
|
Graciella-Favoreto/Cinematica_em_Biomecanica
|
8d1373e1eb7368df89c03d74cb84a91434bcf73f
|
[
"MIT"
] | 1
|
2022-01-10T12:52:13.000Z
|
2022-01-10T12:52:13.000Z
|
alfabeto.py
|
Graciella-Favoreto/Reconhecimento_Gestos_Alfabeto_Libras
|
8d1373e1eb7368df89c03d74cb84a91434bcf73f
|
[
"MIT"
] | null | null | null |
A = ['polegar esticado vertical: afastado do indicador', 'indicador dobrado: proximo ao medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
B = ['polegar dobrado: afastado do indicador', 'indicador esticado vertical: proximo ao medio', 'medio esticado vertical: proximo ao anelar', 'anelar esticado vertical: proximo ao minimo', 'minimo esticado vertical: proximo ao anelar']
C = ['polegar esticado horizontal: afastado do indicador', 'indicador esticado vertical: proximo ao medio', 'medio esticado vertical: proximo ao anelar', 'anelar esticado vertical: proximo ao minimo', 'minimo esticado vertical: proximo ao anelar']
D = ['polegar esticado horizontal: afastado do indicador', 'indicador esticado vertical: afastado do medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
E = ['polegar dobrado: afastado do indicador', 'indicador dobrado: proximo ao medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
F = ['polegar esticado vertical: proximo ao indicador', 'indicador esticado vertical: proximo ao medio', 'medio esticado vertical: afastado do anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
G = ['polegar esticado vertical: proximo ao indicador', 'indicador esticado vertical: afastado do medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
I = ['polegar dobrado: proximo ao indicador', 'indicador dobrado: proximo ao medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: afastado do minimo', 'minimo esticado vertical: afastado do anelar']
L = ['polegar esticado vertical: afastado do indicador', 'indicador esticado vertical: afastado do medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
M = ['polegar esticado vertical: proximo ao indicador', 'indicador esticado vertical: proximo ao medio', 'medio esticado vertical: proximo ao anelar', 'anelar esticado vertical: proximo ao minimo', 'minimo esticado vertical: proximo ao anelar']
N = ['polegar esticado horizontal: afastado do indicador', 'indicador esticado vertical: proximo ao medio', 'medio esticado vertical: afastado do anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
O = ['polegar esticado horizontal: afastado do indicador', 'indicador dobrado: proximo ao medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
P = ['polegar esticado vertical: afastado do indicador', 'indicador esticado vertical: afastado do medio', 'medio esticado vertical: afastado do anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
Q = ['polegar esticado vertical: afastado do indicador', 'indicador esticado vertical: afastado do medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: afastado do minimo', 'minimo esticado vertical: afastado do anelar']
R = ['polegar dobrado: afastado do indicador', 'indicador esticado vertical: proximo ao medio', 'medio esticado vertical: afastado do anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
S = ['polegar dobrado: proximo ao indicador', 'indicador dobrado: proximo ao medio', 'medio dobrado: proximo ao anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
T = ['polegar esticado horizontal: afastado do indicador', 'indicador dobrado: afastado do medio', 'medio esticado vertical: proximo ao anelar', 'anelar esticado vertical: proximo ao minimo', 'minimo esticado vertical: proximo ao anelar']
U = ['polegar esticado horizontal: afastado do indicador', 'indicador esticado vertical: proximo ao medio', 'medio esticado vertical: afastado do anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
V = ['polegar esticado horizontal: afastado do indicador', 'indicador esticado vertical: afastado do medio', 'medio esticado vertical: afastado do anelar', 'anelar dobrado: proximo ao minimo', 'minimo dobrado: proximo ao anelar']
W = ['polegar esticado horizontal: afastado do indicador', 'indicador esticado vertical: afastado do medio', 'medio esticado vertical: proximo ao anelar', 'anelar esticado vertical: afastado do minimo', 'minimo dobrado: afastado do anelar']
letras = [A, B, C, D, E, F, G, I, L, M, N, O, P, Q, R, S, T, U, V, W]
# não foram usadas as letras: H, J, K, X, ,Y , Z
# devido ao movimento adicional para a execução correta das letras.
# Estas letras podem ser analisadas em uma função diferente, semelhante a função de
# análise de posicionamento do corpo, onde comparamos a transição entre pontos
# Letra T: para o dedo polegar, devido a estar sobreposto pelo dedo indicador, o algoritmo não reconhece os pontos da ponta do dedo
# Letra N e U se confundem
| 161.387097
| 248
| 0.758545
| 666
| 5,003
| 5.698198
| 0.121622
| 0.15415
| 0.177075
| 0.151515
| 0.886693
| 0.886693
| 0.883004
| 0.876943
| 0.854545
| 0.846113
| 0
| 0
| 0.145313
| 5,003
| 30
| 249
| 166.766667
| 0.887512
| 0.085149
| 0
| 0
| 0
| 0
| 0.872467
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
28bd8d978e8d0aadd7e9006c1b1a31f1d436b736
| 131
|
py
|
Python
|
tally_ho/libs/utils/time.py
|
crononauta/tally-ho
|
ba2207bfaef27bee3ff13a393983ca493f767238
|
[
"Apache-2.0"
] | 12
|
2015-09-07T17:12:42.000Z
|
2021-12-29T07:51:18.000Z
|
tally_ho/libs/utils/time.py
|
crononauta/tally-ho
|
ba2207bfaef27bee3ff13a393983ca493f767238
|
[
"Apache-2.0"
] | 122
|
2018-09-18T04:05:39.000Z
|
2022-01-17T10:12:48.000Z
|
tally_ho/libs/utils/time.py
|
crononauta/tally-ho
|
ba2207bfaef27bee3ff13a393983ca493f767238
|
[
"Apache-2.0"
] | 13
|
2015-06-06T17:32:34.000Z
|
2020-09-10T12:58:07.000Z
|
from datetime import datetime
from django.utils.timezone import utc
def now():
return datetime.utcnow().replace(tzinfo=utc)
| 16.375
| 48
| 0.763359
| 18
| 131
| 5.555556
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145038
| 131
| 7
| 49
| 18.714286
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.5
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
28f6c6fc40f909dbbed4aa094b333ab6bf088e3b
| 15,756
|
py
|
Python
|
midprice_profit_label/profit_evaluate/profit_evaluate_2010/overall_viz.py
|
anakinanakin/neural-network-on-finance-data
|
1842606294ca3d5dafa7387d6db95a1c21d323eb
|
[
"MIT"
] | 1
|
2021-05-11T09:11:53.000Z
|
2021-05-11T09:11:53.000Z
|
midprice_profit_label/profit_evaluate/profit_evaluate_2010/overall_viz.py
|
anakinanakin/neural-network-on-finance-data
|
1842606294ca3d5dafa7387d6db95a1c21d323eb
|
[
"MIT"
] | null | null | null |
midprice_profit_label/profit_evaluate/profit_evaluate_2010/overall_viz.py
|
anakinanakin/neural-network-on-finance-data
|
1842606294ca3d5dafa7387d6db95a1c21d323eb
|
[
"MIT"
] | 1
|
2020-07-28T03:59:31.000Z
|
2020-07-28T03:59:31.000Z
|
import sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.pyplot import figure
from statistics import mean, median
total_return = np.load('total_return.npy')
trade_time = np.load('trade_time.npy')
def sharpe_ratio(total_return, trade_time, data_type):
for k in range(20):
if data_type == 1:
data_list = total_return[:,k,:]-trade_time[:,k,:]*1
elif data_type == 2:
data_list = total_return[:,k,:]-trade_time[:,k,:]*2
elif data_type == 3:
data_list = total_return[:,k,:]-trade_time[:,k,:]*3
else:
sys.exit("type incorrect")
print(len(data_list))
print(data_list)
def draw_k(total_return, trade_time, data_type):
total = []
avg_list = [np.nan]
med_list = [np.nan]
zero_list = [np.nan]
for k in range(20):
if data_type == 1:
data_list = trade_time[:,k,:]
elif data_type == 2:
data_list = total_return[:,k,:]
elif data_type == 3:
data_list = total_return[:,k,:]/trade_time[:,k,:]
elif data_type == 4:
data_list = total_return[:,k,:]-trade_time[:,k,:]*1
elif data_type == 5:
data_list = total_return[:,k,:]-trade_time[:,k,:]*2
elif data_type == 6:
data_list = total_return[:,k,:]-trade_time[:,k,:]*3
else:
sys.exit("type incorrect")
trade_time_month = []
for column in range(len(data_list[0,:])):
trade_time_month = trade_time_month + [sum(row[column] for row in data_list)]
# print(len(trade_time_month))
#print(trade_time_month)
avg = mean(trade_time_month)
med = median(trade_time_month)
total = total + [trade_time_month]
avg_list = avg_list + [avg]
med_list = med_list + [med]
zero_list = zero_list + [0]
return total, avg_list, med_list, zero_list
def draw_threshold(total_return, trade_time, data_type):
total = []
avg_list = [np.nan]
med_list = [np.nan]
zero_list = [np.nan]
for th in range(24):
if data_type == 1:
data_list = trade_time[:,:,th]
elif data_type == 2:
data_list = total_return[:,:,th]
elif data_type == 3:
data_list = total_return[:,:,th]/trade_time[:,:,th]
elif data_type == 4:
data_list = total_return[:,:,th]-trade_time[:,:,th]*1
elif data_type == 5:
data_list = total_return[:,:,th]-trade_time[:,:,th]*2
elif data_type == 6:
data_list = total_return[:,:,th]-trade_time[:,:,th]*3
else:
sys.exit("type incorrect")
trade_time_month = []
for column in range(len(data_list[0,:])):
trade_time_month = trade_time_month + [sum(row[column] for row in data_list)]
# print(len(trade_time_month))
#print(trade_time_month)
avg = mean(trade_time_month)
med = median(trade_time_month)
total = total + [trade_time_month]
avg_list = avg_list + [avg]
med_list = med_list + [med]
zero_list = zero_list + [0]
return total, avg_list, med_list, zero_list
def draw_day(total_return, trade_time, data_type):
total = []
avg_list = [np.nan]
med_list = [np.nan]
zero_list = [np.nan]
with open('dt_all.txt', 'r') as f:
dates = f.readlines()
for index, date in enumerate(dates):
if data_type == 1:
data_list = trade_time[index,:,:]
elif data_type == 2:
data_list = total_return[index,:,:]
elif data_type == 3:
data_list = total_return[index,:,:]/trade_time[index,:,:]
elif data_type == 4:
data_list = total_return[index,:,:]-trade_time[index,:,:]*1
elif data_type == 5:
data_list = total_return[index,:,:]-trade_time[index,:,:]*2
elif data_type == 6:
data_list = total_return[index,:,:]-trade_time[index,:,:]*3
else:
sys.exit("type incorrect")
trade_time_month = list()
# print(len(data_list))
# print(len(data_list[0,:]))
# print(data_list)
for l in data_list:
# trade_time_month = trade_time_month + [sum(row[column] for row in data_list)]
#plot every point, no aggregation
trade_time_month.extend(l)
#print(trade_time_month)
# print(len(trade_time_month))
#print(trade_time_month)
avg = mean(trade_time_month)
med = median(trade_time_month)
total = total + [trade_time_month]
avg_list = avg_list + [avg]
med_list = med_list + [med]
zero_list = zero_list + [0]
return total, avg_list, med_list, zero_list
def plot_by_k():
plt.rcParams.update({'font.size': 20})
figure(figsize=(80,32), dpi=80)
plt.suptitle('2010/06 K')
total_trade_time, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 1)
plt.subplot(231)
plt.title('#Trades')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_trade_time)
plt.xticks(np.arange(1, 21, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('K')
plt.ylabel('#Trades')
#plt.show()
# plt.savefig('#Trades.png')
# plt.clf()
total_trade_return, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 2)
plt.subplot(232)
plt.title('Total Profit')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_trade_return)
plt.xticks(np.arange(1, 21, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('K')
plt.ylabel('Profit')
#plt.show()
# plt.savefig('total_profit.png')
# plt.clf()
total_avg_return, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 3)
plt.subplot(233)
plt.title('Average Profit')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_avg_return)
plt.xticks(np.arange(1, 21, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('K')
plt.ylabel('Profit')
#plt.show()
# plt.savefig('average_profit.png')
# plt.clf()
total_cost_return1, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 4)
plt.subplot(234)
plt.title('Profit with cost bp1')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return1)
plt.xticks(np.arange(1, 21, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('K')
plt.ylabel('Profit')
#plt.show()
# plt.savefig('profit_cost1.png')
# plt.clf()
total_cost_return2, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 5)
plt.subplot(235)
plt.title('Profit with cost bp2')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return2)
plt.xticks(np.arange(1, 21, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('K')
plt.ylabel('Profit')
#plt.show()
# plt.savefig('profit_cost2.png')
# plt.clf()
total_cost_return3, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 6)
plt.subplot(236)
plt.title('Profit with cost bp3')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return3)
plt.xticks(np.arange(1, 21, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('K')
plt.ylabel('Profit')
#plt.show()
plt.savefig('201006_k.png')
plt.clf()
def plot_by_threshold():
plt.rcParams.update({'font.size': 20})
figure(figsize=(80,32), dpi=80)
plt.suptitle('2010/06 Threshold')
total_trade_time, avg_list , med_list, zero_list = draw_threshold(total_return, trade_time, 1)
plt.subplot(231)
plt.title('#Trades')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_trade_time)
plt.xticks(np.arange(1, 25, step=1), (str(i+2) for i in range(24)))
plt.xlabel('Threshold')
plt.ylabel('#Trades')
#plt.show()
# plt.savefig('#Trades.png')
# plt.clf()
total_trade_return, avg_list , med_list, zero_list = draw_threshold(total_return, trade_time, 2)
plt.subplot(232)
plt.title('Total Profit')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_trade_return)
plt.xticks(np.arange(1, 25, step=1), (str(i+2) for i in range(24)))
plt.xlabel('Threshold')
plt.ylabel('Profit')
#plt.show()
# plt.savefig('total_profit.png')
# plt.clf()
total_avg_return, avg_list , med_list, zero_list = draw_threshold(total_return, trade_time, 3)
plt.subplot(233)
plt.title('Average Profit')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_avg_return)
plt.xticks(np.arange(1, 25, step=1), (str(i+2) for i in range(24)))
plt.xlabel('Threshold')
plt.ylabel('Profit')
#plt.show()
# plt.savefig('average_profit.png')
# plt.clf()
total_cost_return1, avg_list , med_list, zero_list = draw_threshold(total_return, trade_time, 4)
plt.subplot(234)
plt.title('Profit with cost bp1')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return1)
plt.xticks(np.arange(1, 25, step=1), (str(i+2) for i in range(24)))
plt.xlabel('Threshold')
plt.ylabel('Profit')
#plt.show()
# plt.savefig('profit_cost1.png')
# plt.clf()
total_cost_return2, avg_list , med_list, zero_list = draw_threshold(total_return, trade_time, 5)
plt.subplot(235)
plt.title('Profit with cost bp2')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return2)
plt.xticks(np.arange(1, 25, step=1), (str(i+2) for i in range(24)))
plt.xlabel('Threshold')
plt.ylabel('Profit')
#plt.show()
# plt.savefig('profit_cost2.png')
# plt.clf()
total_cost_return3, avg_list , med_list, zero_list = draw_threshold(total_return, trade_time, 6)
plt.subplot(236)
plt.title('Profit with cost bp3')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return3)
plt.xticks(np.arange(1, 25, step=1), (str(i+2) for i in range(24)))
plt.xlabel('Threshold')
plt.ylabel('Profit')
#plt.show()
plt.savefig('201006_threshold.png')
plt.clf()
def plot_by_day():
figure(figsize=(200,80), dpi=80)
plt.rcParams.update({'font.size': 35})
plt.suptitle('2010 Price all')
# plt.subplots_adjust(wspace=0.5)
# plt.subplots_adjust(hspace=0.5)
total_trade_time, avg_list, med_list, zero_list = draw_day(total_return, trade_time, 1)
days = len(avg_list)
plt.subplot(231)
plt.title('#Trades')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_trade_time)
plt.xticks(np.arange(1, 260, step=20), (str(i*20+1) for i in range(days)))
plt.xlabel('Day')
plt.ylabel('#Trades')
total_trade_return, avg_list, med_list, zero_list = draw_day(total_return, trade_time, 2)
plt.subplot(232)
plt.title('Total Profit')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_trade_return)
plt.xticks(np.arange(1, 260, step=20), (str(i*20+1) for i in range(days)))
plt.xlabel('Day')
plt.ylabel('Profit')
total_avg_return, avg_list, med_list, zero_list = draw_day(total_return, trade_time, 3)
plt.subplot(233)
plt.title('Average Profit')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_avg_return)
plt.xticks(np.arange(1, 260, step=20), (str(i*20+1) for i in range(days)))
plt.xlabel('Day')
plt.ylabel('Profit')
total_cost_return1, avg_list, med_list, zero_list = draw_day(total_return, trade_time, 4)
plt.subplot(234)
plt.title('Profit with cost bp1')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return1)
plt.xticks(np.arange(1, 260, step=20), (str(i*20+1) for i in range(days)))
plt.xlabel('Day')
plt.ylabel('Profit')
total_cost_return2, avg_list, med_list, zero_list = draw_day(total_return, trade_time, 5)
plt.subplot(235)
plt.title('Profit with cost bp2')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return2)
plt.xticks(np.arange(1, 260, step=20), (str(i*20+1) for i in range(days)))
plt.xlabel('Day')
plt.ylabel('Profit')
total_cost_return3, avg_list, med_list, zero_list = draw_day(total_return, trade_time, 6)
plt.subplot(236)
plt.title('Profit with cost bp3')
plt.plot(avg_list)
plt.plot(med_list)
plt.plot(zero_list)
plt.legend(['Average', 'Median', 'Zero'])
plt.boxplot(total_cost_return3)
plt.xticks(np.arange(1, 260, step=20), (str(i*20+1) for i in range(days)))
plt.xlabel('Day')
plt.ylabel('Profit')
plt.savefig('price_all.png')
def plot_heatmap():
plt.rcParams.update({'font.size': 20})
figure(figsize=(80,32), dpi=80)
plt.suptitle('2010/01~06')
total_trade_time, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 1)
plt.subplot(231)
plt.title('#Trades')
plt.imshow(total_trade_time,cmap='YlOrRd')
plt.colorbar()
plt.xticks(np.arange(0, 51, step=5), (str((i*5)) for i in range(51)))
plt.yticks(np.arange(0, 20, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('Threshold')
plt.ylabel('K')
total_trade_return, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 2)
plt.subplot(232)
plt.title('Total Profit')
plt.imshow(total_trade_return,cmap='YlOrRd')
plt.colorbar()
plt.xticks(np.arange(0, 51, step=5), (str((i*5)) for i in range(51)))
plt.yticks(np.arange(0, 20, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('Threshold')
plt.ylabel('K')
total_avg_return, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 3)
plt.subplot(233)
plt.title('Average Profit')
plt.imshow(total_avg_return,cmap='YlOrRd')
plt.colorbar()
plt.xticks(np.arange(0, 51, step=5), (str((i*5)) for i in range(51)))
plt.yticks(np.arange(0, 20, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('Threshold')
plt.ylabel('K')
total_cost_return1, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 4)
plt.subplot(234)
plt.title('Profit with cost bp1')
plt.imshow(total_cost_return1,cmap='tab20c')
plt.colorbar()
plt.xticks(np.arange(0, 51, step=5), (str((i*5)) for i in range(51)))
plt.yticks(np.arange(0, 20, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('Threshold')
plt.ylabel('K')
total_cost_return2, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 5)
plt.subplot(235)
plt.title('Profit with cost bp2')
plt.imshow(total_cost_return2,cmap='tab20c')
plt.colorbar()
plt.xticks(np.arange(0, 51, step=5), (str((i*5)) for i in range(51)))
plt.yticks(np.arange(0, 20, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('Threshold')
plt.ylabel('K')
total_cost_return3, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 6)
plt.subplot(236)
plt.title('Profit with cost bp3')
plt.imshow(total_cost_return3,cmap='tab20c')
plt.colorbar()
plt.xticks(np.arange(0, 51, step=5), (str((i*5)) for i in range(51)))
plt.yticks(np.arange(0, 20, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('Threshold')
plt.ylabel('K')
plt.savefig('201001~06_heatmap.png')
plt.clf()
def plot_contour():
total_cost_return1, avg_list , med_list, zero_list = draw_k(total_return, trade_time, 4)
plt.title('Profit with cost bp1')
# plt.imshow(total_cost_return1,cmap='tab20c')
# plt.colorbar()
c = plt.contour(total_cost_return1, levels=20)
# plt.clabel(c, inline=True, fmt='%1.0f')
plt.colorbar()
plt.xticks(np.arange(0, 51, step=5), (str((i*5)) for i in range(51)))
plt.yticks(np.arange(0, 20, step=1), (str((i+1)*10) for i in range(20)))
plt.xlabel('Threshold')
plt.ylabel('K')
plt.savefig('contour.png')
if __name__ == '__main__':
#plot_by_k()
#plot_by_threshold()
#plot_by_day()
#draw_day(total_return, trade_time, 1)
# plot_heatmap()
plot_contour()
#sharpe_ratio(total_return, trade_time, 1)
| 26.086093
| 97
| 0.69161
| 2,666
| 15,756
| 3.88147
| 0.058515
| 0.073927
| 0.038268
| 0.034016
| 0.921144
| 0.910901
| 0.898241
| 0.895439
| 0.855818
| 0.835814
| 0
| 0.039652
| 0.130871
| 15,756
| 603
| 98
| 26.129353
| 0.716007
| 0.075273
| 0
| 0.815
| 0
| 0
| 0.0869
| 0.001447
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0225
| false
| 0
| 0.015
| 0
| 0.045
| 0.005
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e909a177667ffa1fe4c626dfd2bc79cada75d434
| 72
|
py
|
Python
|
src/pyc/__main__.py
|
ahojukka5/pyc
|
9c75dd76073d70b155c77624edd32d87c7911276
|
[
"MIT"
] | 2
|
2021-02-07T06:20:34.000Z
|
2021-02-07T06:22:54.000Z
|
src/pyc/__main__.py
|
ahojukka5/pyc
|
9c75dd76073d70b155c77624edd32d87c7911276
|
[
"MIT"
] | null | null | null |
src/pyc/__main__.py
|
ahojukka5/pyc
|
9c75dd76073d70b155c77624edd32d87c7911276
|
[
"MIT"
] | null | null | null |
import sys
from .cli import compile_and_run
sys.exit(compile_and_run())
| 18
| 32
| 0.819444
| 13
| 72
| 4.230769
| 0.615385
| 0.363636
| 0.472727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097222
| 72
| 3
| 33
| 24
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
e925c2dcf746121cf0e780e2c04c07f305b5b8a9
| 5,428
|
py
|
Python
|
calib/corner_kernels.py
|
Algomorph/cvcalib
|
4ed638ea523b6d1059556a135576c7afa3a4b07f
|
[
"Apache-2.0"
] | 28
|
2016-07-15T09:03:57.000Z
|
2022-02-07T11:13:26.000Z
|
calib/corner_kernels.py
|
Algomorph/calib_video_opencv
|
4ed638ea523b6d1059556a135576c7afa3a4b07f
|
[
"Apache-2.0"
] | 58
|
2018-12-19T16:57:38.000Z
|
2019-06-06T19:52:36.000Z
|
calib/corner_kernels.py
|
Algomorph/calib_video_opencv
|
4ed638ea523b6d1059556a135576c7afa3a4b07f
|
[
"Apache-2.0"
] | 10
|
2016-12-31T00:07:12.000Z
|
2022-03-10T21:49:25.000Z
|
import numpy as np
KERN_UL = np.array([[5, 11, 20, 29, 37, 0, 0, 0, 0, 0, 0],
[11, 23, 40, 60, 77, 0, 0, 0, 0, 0, 0],
[20, 40, 71, 106, 134, 0, 0, 0, 0, 0, 0],
[29, 60, 106, 158, 201, 0, 0, 0, 0, 0, 0],
[37, 77, 134, 201, 255, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=np.uint8)
KERN_UR = np.array([[0, 0, 0, 0, 0, 0, 37, 29, 20, 11, 5],
[0, 0, 0, 0, 0, 0, 77, 60, 40, 23, 11],
[0, 0, 0, 0, 0, 0, 134, 106, 71, 40, 20],
[0, 0, 0, 0, 0, 0, 201, 158, 106, 60, 29],
[0, 0, 0, 0, 0, 0, 255, 201, 134, 77, 37],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=np.uint8)
KERN_BL = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[37, 77, 134, 201, 255, 0, 0, 0, 0, 0, 0],
[29, 60, 106, 158, 201, 0, 0, 0, 0, 0, 0],
[20, 40, 71, 106, 134, 0, 0, 0, 0, 0, 0],
[11, 23, 40, 60, 77, 0, 0, 0, 0, 0, 0],
[5, 11, 20, 29, 37, 0, 0, 0, 0, 0, 0]], dtype=np.uint8)
KERN_BR = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 255, 201, 134, 77, 37],
[0, 0, 0, 0, 0, 0, 201, 158, 106, 60, 29],
[0, 0, 0, 0, 0, 0, 134, 106, 71, 40, 20],
[0, 0, 0, 0, 0, 0, 77, 60, 40, 23, 11],
[0, 0, 0, 0, 0, 0, 37, 29, 20, 11, 5]], dtype=np.uint8)
KERN_L = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[18, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[27, 56, 98, 0, 0, 0, 0, 0, 0, 0, 0],
[35, 71, 124, 185, 0, 0, 0, 0, 0, 0, 0],
[37, 77, 134, 201, 255, 0, 0, 0, 0, 0, 0],
[35, 71, 124, 185, 0, 0, 0, 0, 0, 0, 0],
[27, 56, 98, 0, 0, 0, 0, 0, 0, 0, 0],
[18, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=np.uint8)
KERN_R = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 18],
[0, 0, 0, 0, 0, 0, 0, 0, 98, 56, 27],
[0, 0, 0, 0, 0, 0, 0, 185, 124, 71, 35],
[0, 0, 0, 0, 0, 0, 255, 201, 134, 77, 37],
[0, 0, 0, 0, 0, 0, 0, 185, 124, 71, 35],
[0, 0, 0, 0, 0, 0, 0, 0, 98, 56, 27],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 18],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=np.uint8)
KERN_U = np.array([[0, 10, 18, 27, 35, 37, 35, 27, 18, 10, 0],
[0, 0, 37, 56, 71, 77, 71, 56, 37, 0, 0],
[0, 0, 0, 98, 124, 134, 124, 98, 0, 0, 0],
[0, 0, 0, 0, 185, 201, 185, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=np.uint8)
KERN_B = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 185, 201, 185, 0, 0, 0, 0],
[0, 0, 0, 98, 124, 134, 124, 98, 0, 0, 0],
[0, 0, 37, 56, 71, 77, 71, 56, 37, 0, 0],
[0, 10, 18, 27, 35, 37, 35, 27, 18, 10, 0]], dtype=np.uint8)
KERNELS_PROTOTYPE_STRAIGHT = [KERN_UR, KERN_BL, KERN_UL, KERN_BR]
KERNELS_PROTOTYPE_DIAGONAL = [KERN_U, KERN_B, KERN_R, KERN_L]
CORNER_KERNEL_PROTOTYPES = [KERNELS_PROTOTYPE_STRAIGHT, KERNELS_PROTOTYPE_DIAGONAL]
| 53.215686
| 83
| 0.299005
| 1,059
| 5,428
| 1.508026
| 0.044381
| 0.894177
| 1.243582
| 1.527865
| 0.852849
| 0.852849
| 0.852849
| 0.852849
| 0.848466
| 0.848466
| 0
| 0.432736
| 0.475497
| 5,428
| 101
| 84
| 53.742574
| 0.128205
| 0
| 0
| 0.836957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.01087
| 0
| 0.01087
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
3af1fa9551b876029cdf6e617e30544bc2c33838
| 7,850
|
py
|
Python
|
test/test_more_bisect.py
|
kkew3/more_bisect
|
7c9f0508bf2e617a0e761d1571fc3c0f7549927f
|
[
"MIT"
] | null | null | null |
test/test_more_bisect.py
|
kkew3/more_bisect
|
7c9f0508bf2e617a0e761d1571fc3c0f7549927f
|
[
"MIT"
] | null | null | null |
test/test_more_bisect.py
|
kkew3/more_bisect
|
7c9f0508bf2e617a0e761d1571fc3c0f7549927f
|
[
"MIT"
] | null | null | null |
import pytest
import more_bisect
def test__validate_args():
a, lo, hi = more_bisect._validate_args([1, 2], None, None, None)
assert lo == 0
assert hi == 2
assert a[0] == 1 and a[1] == 2
with pytest.raises(IndexError):
_ = a[2]
a, lo, hi = more_bisect._validate_args([('a', 1), ('a', 2)], None, 1,
key=lambda x: x[1])
assert lo == 0
assert hi == 1
assert a[0] == 1 and a[1] == 2
with pytest.raises(IndexError):
_ = a[2]
a = [1, 2]
a_, lo, hi = more_bisect._validate_args(None, 0, 1, lambda i: a[i])
assert lo == 0
assert hi == 1
assert a_[0] == 1 and a_[1] == 2
with pytest.raises(IndexError):
_ = a_[2]
a = [('a', 1), ('a', 2)]
a_, lo, hi = more_bisect._validate_args(None, 0, 1, lambda i: a[i][1])
assert lo == 0
assert hi == 1
assert a_[0] == 1 and a_[1] == 2
with pytest.raises(IndexError):
_ = a_[2]
def revlst(x):
return list(reversed(x))
def test_first_pos_eq():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
pos = more_bisect.first_pos_eq(3, a)
assert pos == 1
pos = more_bisect.first_pos_eq(-3, revlst(a), key=lambda x: -x)
assert pos == 7
a = [2, 3]
assert more_bisect.first_pos_eq(3, a) == 1
a = [3, 4]
assert more_bisect.first_pos_eq(3, a) == 0
a = []
assert more_bisect.first_pos_eq(3, a) is None
a = [1, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.first_pos_eq(3, a) is None
def test_first_pos_eq_called_with_fakearray():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
pos = more_bisect.first_pos_eq(3, lo=0, hi=len(a), key=lambda i: a[i])
assert pos == 1
def test_last_pos_eq():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
pos = more_bisect.last_pos_eq(3, a)
assert pos == 4
pos = more_bisect.last_pos_eq(-3, revlst(a), key=lambda x: -x)
assert pos == 10
a = [2, 3]
assert more_bisect.last_pos_eq(3, a) == 1
a = [3, 4]
assert more_bisect.last_pos_eq(3, a) == 0
a = []
assert more_bisect.last_pos_eq(3, a) is None
a = [1, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_eq(3, a) is None
def test_last_pos_eq_called_with_fakearray():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
pos = more_bisect.last_pos_eq(3, lo=0, hi=len(a), key=lambda i: a[i])
assert pos == 4
def test_last_pos_lt():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_lt(3, a) == 0
a = [3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_lt(3, a) is None
a = [2, 3]
assert more_bisect.last_pos_lt(3, a) == 0
a = [3, 4]
assert more_bisect.last_pos_lt(3, a) is None
a = [1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_lt(3, a) == 3
def test_last_pos_le():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_le(3, a) == 4
a = [3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_le(3, a) == 3
a = [4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_le(3, a) is None
a = [2, 3]
assert more_bisect.last_pos_le(3, a) == 1
a = [3, 4]
assert more_bisect.last_pos_le(3, a) == 0
a = [1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_le(3, a) == 7
def test_last_pos_le_called_with_fakearray():
a = [1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.last_pos_le(3, lo=0, hi=len(a), key=lambda i: a[i]) == 7
def test_first_pos_gt():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.first_pos_gt(3, a) == 5
a = [1, 3, 3, 3, 3]
assert more_bisect.first_pos_gt(3, a) is None
a = [2, 3]
assert more_bisect.first_pos_gt(3, a) is None
a = [3, 4]
assert more_bisect.first_pos_gt(3, a) == 1
a = [1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.first_pos_gt(3, a) == 8
def test_first_pos_ge():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.first_pos_ge(3, a) == 1
a = [1, 3, 3, 3, 3]
assert more_bisect.first_pos_ge(3, a) == 1
a = [1]
assert more_bisect.first_pos_ge(3, a) is None
a = [2, 3]
assert more_bisect.first_pos_ge(3, a) == 1
a = [3, 4]
assert more_bisect.first_pos_ge(3, a) == 0
a = [1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.first_pos_ge(3, a) == 4
def test_bisect_left():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.bisect_left(3, a) == 1
pos = more_bisect.bisect_left(-3, revlst(a), key=lambda x: -x)
assert pos == 7
a = [2, 3]
assert more_bisect.bisect_left(3, a) == 1
assert more_bisect.bisect_left(4, a) == 2
a = [3, 4]
assert more_bisect.bisect_left(3, a) == 0
a = []
assert more_bisect.bisect_left(3, a) == 0
a = [1, 2, 2, 2, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.bisect_left(3, a) == 4
pos = more_bisect.bisect_left(-3, revlst(a), key=lambda x: -x)
assert pos == 9
a = [1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.bisect_left(3, a) == 4
def test_bisect_left_called_with_fakearray():
a = [1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.bisect_left(3, lo=0, hi=len(a), key=lambda i: a[i]) == 4
def test_bisect_right():
a = [1, 3, 3, 3, 3, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.bisect_right(3, a) == 5
pos = more_bisect.bisect_right(-3, revlst(a), key=lambda x: -x)
assert pos == 11
a = [2, 3]
assert more_bisect.bisect_right(2, a) == 1
assert more_bisect.bisect_right(3, a) == 2
assert more_bisect.bisect_right(4, a) == 2
a = [3, 4]
assert more_bisect.bisect_right(3, a) == 1
a = []
assert more_bisect.bisect_right(3, a) == 0
a = [1, 2, 2, 2, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.bisect_right(3, a) == 4
pos = more_bisect.bisect_right(-3, revlst(a), key=lambda x: -x)
assert pos == 9
a = [1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 6, 7, 8, 9, 10]
assert more_bisect.bisect_right(3, a) == 8
def test_last_closest_to():
a = [2, 3, 4]
assert more_bisect.last_closest_to(1, a) == 0
pos = more_bisect.last_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 2
a = [-2, -1, 0]
assert more_bisect.last_closest_to(1, a) == 2
pos = more_bisect.last_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 0
a = [-2, -1, 0, 1, 3, 4]
assert more_bisect.last_closest_to(1, a) == 3
pos = more_bisect.last_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 2
a = [-2, -1, 0, 3, 4, 5]
assert more_bisect.last_closest_to(1, a) == 2
pos = more_bisect.last_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 3
a = [-2, -1, 0, 1, 1, 1, 3, 4]
assert more_bisect.last_closest_to(1, a) == 5
pos = more_bisect.last_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 4
def test_first_closest_to():
a = [2, 3, 4]
assert more_bisect.first_closest_to(1, a) == 0
pos = more_bisect.first_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 2
a = [-2, -1, 0]
assert more_bisect.first_closest_to(1, a) == 2
pos = more_bisect.first_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 0
a = [-2, -1, 0, 1, 3, 4]
assert more_bisect.first_closest_to(1, a) == 3
pos = more_bisect.first_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 2
a = [-2, -1, 0, 3, 4, 5]
assert more_bisect.first_closest_to(1, a) == 2
pos = more_bisect.first_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 3
a = [-2, -1, 0, 1, 1, 1, 3, 4]
assert more_bisect.first_closest_to(1, a) == 3
pos = more_bisect.first_closest_to(-1, revlst(a), key=lambda x: -x)
assert pos == 2
| 32.983193
| 79
| 0.564586
| 1,561
| 7,850
| 2.653427
| 0.033953
| 0.197972
| 0.220183
| 0.024143
| 0.952921
| 0.915983
| 0.905843
| 0.860454
| 0.831
| 0.808064
| 0
| 0.110079
| 0.259363
| 7,850
| 237
| 80
| 33.122363
| 0.602339
| 0
| 0
| 0.656716
| 0
| 0
| 0.00051
| 0
| 0
| 0
| 0
| 0
| 0.442786
| 1
| 0.079602
| false
| 0
| 0.00995
| 0.004975
| 0.094527
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
aaef5ba0e1d7c701e2f60dc486c01cbba6968c20
| 3,841
|
py
|
Python
|
setup.py
|
symblai/symbl-python-sdk
|
948fa0d52583d47eba091ed0fcc0ba1e28ec9bf3
|
[
"Apache-2.0"
] | 4
|
2021-09-25T15:25:00.000Z
|
2022-01-11T14:05:56.000Z
|
setup.py
|
symblai/symbl-python-sdk
|
948fa0d52583d47eba091ed0fcc0ba1e28ec9bf3
|
[
"Apache-2.0"
] | 1
|
2021-11-25T11:12:10.000Z
|
2021-11-25T11:12:10.000Z
|
setup.py
|
symblai/symbl-python-sdk
|
948fa0d52583d47eba091ed0fcc0ba1e28ec9bf3
|
[
"Apache-2.0"
] | 3
|
2021-08-23T06:33:55.000Z
|
2022-01-11T14:05:59.000Z
|
# coding: utf-8
"""
symbl.ai APIs
<h1>Symbl's APIs for external consumers.</h1> <h2>Language Insights API</h2> Symbl's Language Insights API provides an interface for applications to perform the analysis on the raw text and get insights from it. The API automatically detects sentence boundaries and punctuates the sentences, and also returns the updated messages in the response. Conversations are the most unstructured piece of information that we represent information in, and which most of the leads to lot of loss of information by not being able to capture them correctly.<br/> Language Insights API focuses on understanding such texts and generate the useful and important information from them. <br/> Currently the API supports detection of the Action Items in any type of unstructured text. In future the same API will also have support to detect \"Information\" and \"Event\", where Information is any informational piece and Event is a reference to something that has happened in the past.<br/> <h2>Telephony Integration</h2> Symbl can currently integrate with two types of telephony endpoints: 1. SIP trunks<br/> 2. PSTN endpoints<br/> Results are sent via HTTP WebHooks as and when they are available.<br/> <h2>Flow</h2> 1. External Application invokes REST API to join a meeting/session, with the mode (SIP/PSTN) and joining details<br/> 2. Symbl joins the meeting via SIP or PSTN integration<br/> 3. Symbl continuously processes the audio stream received<br/> 4. Symbl calls WebHook whenever transcription results are available<br/> # noqa: E501
Contact: info@symbl.ai
"""
from setuptools import setup, find_packages # noqa: H301
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
setup(
name="symbl",
version="1.0.17",
description="symbl.ai SDK",
author_email="info@symbl.ai",
url="",
keywords=["Symbl.ai SDK"],
install_requires=["symbl_rest >= 1.0.11", "websocket-client >= 0.59.0", "sounddevice >= 0.4.1", "numpy"],
packages=find_packages(),
include_package_data=True,
long_description="""\
<h1>Symbl's APIs for external consumers.</h1> <h2>Language Insights API</h2> Symbl's Language Insights API provides an interface for applications to perform the analysis on the raw text and get insights from it. The API automatically detects sentence boundaries and punctuates the sentences, and also returns the updated messages in the response. Conversations are the most unstructured piece of information that we represent information in, and which most of the leads to lot of loss of information by not being able to capture them correctly.<br/> Language Insights API focuses on understanding such texts and generate the useful and important information from them. <br/> Currently the API supports detection of the Action Items in any type of unstructured text. In future the same API will also have support to detect \"Information\" and \"Event\", where Information is any informational piece and Event is a reference to something that has happened in the past.<br/> <h2>Telephony Integration</h2> Symbl can currently integrate with two types of telephony endpoints: 1. SIP trunks<br/> 2. PSTN endpoints<br/> Results are sent via HTTP WebHooks as and when they are available.<br/> <h2>Flow</h2> 1. External Application invokes REST API to join a meeting/session, with the mode (SIP/PSTN) and joining details<br/> 2. Symbl joins the meeting via SIP or PSTN integration<br/> 3. Symbl continuously processes the audio stream received<br/> 4. Symbl calls WebHook whenever transcription results are available<br/> # noqa: E501
"""
)
| 109.742857
| 1,669
| 0.764645
| 618
| 3,841
| 4.739482
| 0.297735
| 0.013657
| 0.020485
| 0.008194
| 0.751792
| 0.732673
| 0.724479
| 0.724479
| 0.691021
| 0.651417
| 0
| 0.01749
| 0.151523
| 3,841
| 34
| 1,670
| 112.970588
| 0.881252
| 0.447279
| 0
| 0
| 0
| 0.066667
| 0.858031
| 0.085564
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.133333
| 0
| 0.133333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
c910964f9db2ff548dd894106ff595bde988ecc7
| 53
|
py
|
Python
|
psm/icecore/__init__.py
|
amoodie/PRYSM
|
99cf02145e3df0aad8b4d9103ab6c081d97bff1f
|
[
"MIT"
] | 21
|
2015-07-20T21:37:14.000Z
|
2022-02-14T04:10:11.000Z
|
psm/icecore/__init__.py
|
amoodie/PRYSM
|
99cf02145e3df0aad8b4d9103ab6c081d97bff1f
|
[
"MIT"
] | 8
|
2015-10-08T16:37:04.000Z
|
2019-01-04T21:02:09.000Z
|
psm/icecore/__init__.py
|
amoodie/PRYSM
|
99cf02145e3df0aad8b4d9103ab6c081d97bff1f
|
[
"MIT"
] | 13
|
2015-01-30T10:05:14.000Z
|
2022-02-05T21:56:21.000Z
|
import psm.icecore.archive
import psm.icecore.sensor
| 17.666667
| 26
| 0.849057
| 8
| 53
| 5.625
| 0.625
| 0.4
| 0.711111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 53
| 2
| 27
| 26.5
| 0.918367
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
c96e977bede9349c7995b84266ee94da1c3aff91
| 14,451
|
py
|
Python
|
regreg/paths/tests/test_lasso.py
|
vishalbelsare/regreg
|
d1b62cc43cdd83331f2b0817b0ae099d5ef97966
|
[
"BSD-2-Clause"
] | 11
|
2016-02-25T01:53:03.000Z
|
2020-11-30T00:59:46.000Z
|
regreg/paths/tests/test_lasso.py
|
vishalbelsare/regreg
|
d1b62cc43cdd83331f2b0817b0ae099d5ef97966
|
[
"BSD-2-Clause"
] | 21
|
2015-09-17T19:18:09.000Z
|
2021-04-28T06:15:02.000Z
|
regreg/paths/tests/test_lasso.py
|
vishalbelsare/regreg
|
d1b62cc43cdd83331f2b0817b0ae099d5ef97966
|
[
"BSD-2-Clause"
] | 8
|
2016-03-24T00:03:03.000Z
|
2019-08-25T23:40:42.000Z
|
import numpy as np
from .. import lasso, strong_rules, warm_start
from ..basil import basil_inner_loop, basil
from ...tests.decorators import set_seed_for_test
@set_seed_for_test()
def test_path(n=200,p=50):
'''
run a basic path algorithm
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5]
Y += np.dot(X, betaX) + np.random.standard_normal(n)
lasso1 = lasso.gaussian(X, Y, np.ones(X.shape[1]))
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
nstep=23) # initialized at "null" model
sol1 = strong_rules(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-5)
beta1 = sol1['beta']
@set_seed_for_test()
def test_warm_start(n=200,p=50):
'''
compare full problem with warm start to strong rules path
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5]
Y += np.dot(X, betaX) + np.random.standard_normal(n)
lasso1 = lasso.gaussian(X, Y, np.ones(X.shape[1]))
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
nstep=23) # initialized at "null" model
sol1 = strong_rules(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-14)
beta1 = sol1['beta']
sol2 = warm_start(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-14)
beta2 = sol2['beta']
np.testing.assert_allclose(beta1, beta2, rtol=1.e-4)
@set_seed_for_test()
def test_warm_start_enet(n=200,p=50):
'''
compare full problem with warm start to strong rules path
including elastic net
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5]
Y += np.dot(X, betaX) + np.random.standard_normal(n)
enet = np.ones(X.shape[1])
enet[4:8] = 0
lasso1 = lasso.gaussian(X,
Y,
np.ones(X.shape[1]),
alpha=0.5,
elastic_net_param=enet)
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
nstep=23,
alpha=lasso1.alpha) # initialized at "null" model
sol1 = strong_rules(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-14)
beta1 = sol1['beta']
sol2 = warm_start(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-14)
beta2 = sol2['beta']
assert(np.linalg.norm(beta1 - beta2)/np.linalg.norm(beta1) < 1.e-4)
@set_seed_for_test()
def test_path_subsample(n=200,p=50):
'''
compare a subsample path to the full path on subsampled data
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5]
Y += np.dot(X, betaX) + np.random.standard_normal(n)
cases = range(n//2)
lasso1 = lasso.gaussian(X, Y, np.ones(X.shape[1]))
lasso1_sub = lasso1.subsample(cases)
lagrange_sequence = lasso.default_lagrange_sequence(lasso1_sub.penalty,
lasso1_sub.grad_solution,
nstep=23) # initialized at "null" model
sol1 = strong_rules(lasso1_sub,
lagrange_sequence,
(lasso1_sub.solution.copy(), lasso1_sub.grad_solution.copy()),
inner_tol=1.e-10)
beta1 = sol1['beta']
lasso2 = lasso.gaussian(X[cases], Y[cases], np.ones(X.shape[1]))
sol2 = strong_rules(lasso2,
lagrange_sequence,
(lasso2.solution.copy(), lasso2.grad_solution.copy()),
inner_tol=1.e-10)
beta2 = sol2['beta']
yield np.testing.assert_allclose, beta1, beta2, 1.e-3
# check that the subsample did not change the original
# path object
lasso3 = lasso.gaussian(X, Y, np.ones(X.shape[1]))
beta3 = strong_rules(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-10)['beta']
beta4 = strong_rules(lasso3,
lagrange_sequence,
(lasso3.solution.copy(), lasso3.grad_solution.copy()),
inner_tol=1.e-10)['beta']
yield np.testing.assert_allclose, beta3, beta4, 1.e-3
@set_seed_for_test()
def test_unpenalized(n=200, p=50):
'''
run a basic path algorithm with some unpenalized variables
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5]
Y += np.dot(X, betaX) + np.random.standard_normal(n)
weights = np.ones(X.shape[1])
weights[0:2] = 0
lasso1 = lasso.gaussian(X,
Y,
weights)
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
nstep=23) # initialized at "null" model
sol1 = strong_rules(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-5)
beta1 = sol1['beta']
@set_seed_for_test()
def test_elastic_net(n=200, p=50):
'''
run a basic elastic net path algorithm
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5]
Y += np.dot(X, betaX) + np.random.standard_normal(n)
weights = np.ones(X.shape[1])
lasso1 = lasso.gaussian(X,
Y,
weights,
alpha=0.5,
elastic_net_param=np.ones(X.shape[1]))
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
nstep=23,
alpha=lasso1.alpha) # initialized at "null" model
sol1 = strong_rules(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-5)
beta1 = sol1['beta']
@set_seed_for_test()
def test_elastic_net_unpenalized(n=200, p=50):
'''
run a basic elastic net path algorithm with unpenalized
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5]
Y += np.dot(X, betaX) + np.random.standard_normal(n)
enet = np.ones(X.shape[1])
enet[0] = 0
weights = np.ones(X.shape[1])
weights[0] = 0
lasso1 = lasso.gaussian(X,
Y,
weights,
alpha=0.5,
elastic_net_param=enet)
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
nstep=23,
alpha=lasso1.alpha) # initialized at "null" model
sol1 = strong_rules(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-5)
beta1 = sol1['beta']
@set_seed_for_test()
def test_basil_inner_loop(n=1000,p=600):
'''
test one run of the BASIL inner loop
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5] / np.sqrt(n)
Y += np.dot(X, betaX) + np.random.standard_normal(n)
lasso1 = lasso.gaussian(X, Y, np.ones(X.shape[1]))
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
nstep=100) # initialized at "null" model
sol1 = basil_inner_loop(lasso1,
lagrange_sequence[:50],
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-14,
step_nvar=10)
lagrange1, beta1, grad1, active1 = sol1
print(np.array(beta1).shape, 'chunk of path')
print(active1, 'active')
@set_seed_for_test()
def test_basil(n=1000,p=600):
'''
test BASIL
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5] / np.sqrt(n)
Y += np.dot(X, betaX) + np.random.standard_normal(n)
lasso1 = lasso.gaussian(X,
Y,
np.ones(X.shape[1]))
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
nstep=100) # initialized at "null" model
sol1 = basil(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-14,
step_nvar=10,
step_lagrange=20)
lasso2 = lasso.gaussian(X,
Y,
np.ones(X.shape[1]))
sol2 = warm_start(lasso2,
lagrange_sequence,
(lasso2.solution.copy(), lasso2.grad_solution.copy()),
inner_tol=1.e-14)['beta']
assert(np.linalg.norm(sol1 - sol2) / np.linalg.norm(sol2) < 1.e-4)
@set_seed_for_test()
def test_basil_unpenalized(n=500,p=200):
'''
test BASIL
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5] / np.sqrt(n)
Y += np.dot(X, betaX) + np.random.standard_normal(n)
W = np.ones(X.shape[1])
W[2:4] = 0
lasso1 = lasso.gaussian(X,
Y,
W)
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
lagrange_proportion=0.4,
nstep=20) # initialized at "null" model
sol1 = basil(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-14,
step_nvar=10,
step_lagrange=20)
lasso2 = lasso.gaussian(X,
Y,
W)
sol2 = warm_start(lasso2,
lagrange_sequence,
(lasso2.solution.copy(), lasso2.grad_solution.copy()),
inner_tol=1.e-14)['beta']
assert(np.linalg.norm(sol1 - sol2) / np.linalg.norm(sol2) < 1.e-4)
@set_seed_for_test()
def test_basil_enet(n=500,p=200):
'''
test BASIL w/enet
'''
X = np.random.standard_normal((n,p))
Y = np.random.standard_normal(n)
betaX = np.zeros(p)
betaX[:3] = [3,4,5] / np.sqrt(n)
Y += np.dot(X, betaX) + np.random.standard_normal(n)
enet = np.ones(X.shape[1])
enet[4:8] = 0
lasso1 = lasso.gaussian(X,
Y,
np.ones(X.shape[1]),
alpha=0.5,
elastic_net_param=enet)
lagrange_sequence = lasso.default_lagrange_sequence(lasso1.penalty,
lasso1.grad_solution,
lagrange_proportion=0.5,
nstep=50,
alpha=lasso1.alpha) # initialized at "null" model
sol1 = basil(lasso1,
lagrange_sequence,
(lasso1.solution.copy(), lasso1.grad_solution.copy()),
inner_tol=1.e-14,
step_nvar=10,
step_lagrange=20)
lasso2 = lasso.gaussian(X,
Y,
np.ones(X.shape[1]),
alpha=0.5,
elastic_net_param=enet)
sol2 = warm_start(lasso2,
lagrange_sequence,
(lasso2.solution.copy(), lasso2.grad_solution.copy()),
inner_tol=1.e-14)['beta']
lagrange_sequence2 = lasso.default_lagrange_sequence(lasso2.penalty,
lasso2.grad_solution,
lagrange_proportion=0.5,
nstep=50,
alpha=lasso2.alpha) # initialized at "null" model
rel_errors = np.array([np.linalg.norm(sol1[i]-sol2[i]) / np.linalg.norm(sol1[i])
for i in range(1, sol1.shape[0])])
assert(np.percentile(rel_errors, 90) < 1.e-4)
| 37.244845
| 106
| 0.487786
| 1,618
| 14,451
| 4.203337
| 0.084672
| 0.098809
| 0.077636
| 0.106749
| 0.866196
| 0.847081
| 0.818556
| 0.797971
| 0.780768
| 0.749008
| 0
| 0.05072
| 0.399696
| 14,451
| 387
| 107
| 37.341085
| 0.733256
| 0.059373
| 0
| 0.821306
| 0
| 0
| 0.005899
| 0
| 0
| 0
| 0
| 0
| 0.024055
| 1
| 0.037801
| false
| 0
| 0.013746
| 0
| 0.051546
| 0.006873
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a3126e080521b27301510e90642fb2815a1b4efa
| 164,830
|
py
|
Python
|
HwTestReport.py
|
stingbo/selenium_python_test
|
9da8a6e01beb3dcfbbf3fee47dd747dc8b5e5966
|
[
"MIT"
] | 26
|
2020-12-18T08:03:28.000Z
|
2022-01-27T02:11:51.000Z
|
HwTestReport.py
|
stingbo/selenium_python_test
|
9da8a6e01beb3dcfbbf3fee47dd747dc8b5e5966
|
[
"MIT"
] | 1
|
2021-11-25T11:07:22.000Z
|
2022-01-19T10:39:13.000Z
|
HwTestReport.py
|
stingbo/selenium_python_test
|
9da8a6e01beb3dcfbbf3fee47dd747dc8b5e5966
|
[
"MIT"
] | 7
|
2021-03-03T12:42:55.000Z
|
2021-08-05T09:14:19.000Z
|
#!/usr/bin/env python3
# coding=utf-8
__version__ = "0.1"
import datetime
import importlib
import sys
import unittest
from xml.sax import saxutils
# 支持 python2 and python3
python3 = (sys.version_info[0] > 2)
if python3:
import io as StringIO
else:
import StringIO
importlib.reload(sys)
sys.setdefaultencoding('utf-8')
class OutputRedirector(object):
""" Wrapper to redirect stdout or stderr """
def __init__(self, fp):
self.fp = fp
def write(self, s):
self.fp.write(s)
def writelines(self, lines):
self.fp.writelines(lines)
def flush(self):
self.fp.flush()
stdout_redirector = OutputRedirector(sys.stdout)
stderr_redirector = OutputRedirector(sys.stderr)
# ----------------------------------------------------------------------
# Template Chinese
class Template_CN(object):
STATUS = {
0: u'通过',
1: u'失败',
2: u'错误',
}
# 增加 tester
DEFAULT_TITLE = '测试报告'
DEFAULT_DESCRIPTION = ''
DEFAULT_TESTER = 'pystest'
# ------------------------------------------------------------------------
# HTML Template
HTML_TMPL = r"""<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>%(title)s</title>
<meta name="generator" content="%(generator)s"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
%(stylesheet)s
<script src="https://cdn.bootcss.com/echarts/3.8.5/echarts.common.min.js"></script>
</head>
<body>
<script language="javascript" type="text/javascript"><!--
output_list = Array();
/*level 增加测试结果的筛选条件
0:Summary //all hiddenRow
1:Pass //pt none, ft hiddenRow, et hiddenRow
2:Failed //pt hiddenRow, ft none, et hiddenRow
3:Error //pt hiddenRow, ft hiddenRow, et none
4:All //pt none, ft none, et none
*/
/* level - 0:Summary; 1:Pass; 2:Failed; 3:Error; 4: All*/
function showCase(level) {
trs = document.getElementsByTagName("tr");
for (var i = 0; i < trs.length; i++) {
tr = trs[i];
id = tr.id;
if (id.substr(0,2) == 'ft') {
if (level == 1 || level == 3 || level == 0) {
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
if (id.substr(0,2) == 'pt') {
if (level == 2 || level == 3 || level == 0){
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
if (id.substr(0,2) == 'et') {
if (level == 1 || level == 2 || level == 0 ){
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
}
}
/* 优化详情与收缩不生效 */
function showClassDetail(cid, count) {
var id_list = Array(count);
var toHide = 1;
for (var i = 0; i < count; i++) {
tid0 = 't' + cid.substr(1) + '_' + (i+1);
tid = 'f' + tid0;
tr = document.getElementById(tid);
if (!tr) {
tid = 'p' + tid0;
tr = document.getElementById(tid);
}
/* 增加error */
if (!tr) {
tid = 'e' + tid0;
tr = document.getElementById(tid);
}
id_list[i] = tid;
if (tr.className) {
toHide = 0;
}
}
for (var i = 0; i < count; i++) {
tid = id_list[i];
if (toHide) {
document.getElementById('div_'+tid).style.display = 'none'
document.getElementById(tid).className = 'hiddenRow';
}
else {
document.getElementById(tid).className = '';
}
}
}
function showTestDetail(div_id){
var details_div = document.getElementById(div_id)
var displayState = details_div.style.display
// alert(displayState)
if (displayState != 'block' ) {
displayState = 'block'
details_div.style.display = 'block'
}
else {
details_div.style.display = 'none'
}
}
function html_escape(s) {
s = s.replace(/&/g,'&');
s = s.replace(/</g,'<');
s = s.replace(/>/g,'>');
return s;
}
/* 增加selenium结合unittest测试的结果截图 引用自GoverSky*/
function show_img(obj) {
var obj1 = obj.nextElementSibling
obj1.style.display='block'
var index = 0;//每张图片的下标,
var len = obj1.getElementsByTagName('img').length;
var imgyuan = obj1.getElementsByClassName('imgyuan')[0]
//var start=setInterval(autoPlay,500);
obj1.onmouseover=function(){//当鼠标光标停在图片上,则停止轮播
clearInterval(start);
}
obj1.onmouseout=function(){//当鼠标光标停在图片上,则开始轮播
start=setInterval(autoPlay,1000);
}
for (var i = 0; i < len; i++) {
var font = document.createElement('font')
imgyuan.appendChild(font)
}
var lis = obj1.getElementsByTagName('font');//得到所有圆圈
changeImg(0)
var funny = function (i) {
lis[i].onmouseover = function () {
index=i
changeImg(i)
}
}
for (var i = 0; i < lis.length; i++) {
funny(i);
}
function autoPlay(){
if(index>len-1){
index=0;
clearInterval(start); //运行一轮后停止
}
changeImg(index++);
}
imgyuan.style.width= 25*len +"px";
//对应圆圈和图片同步
function changeImg(index) {
var list = obj1.getElementsByTagName('img');
var list1 = obj1.getElementsByTagName('font');
for (i = 0; i < list.length; i++) {
list[i].style.display = 'none';
list1[i].style.backgroundColor = 'white';
}
list[index].style.display = 'block';
list1[index].style.backgroundColor = 'blue';
}
}
function hide_img(obj){
obj.parentElement.style.display = "none";
obj.parentElement.getElementsByClassName('imgyuan')[0].innerHTML = "";
}
--></script>
<div id="div_base">
%(heading)s
%(report)s
%(ending)s
%(chart_script)s
</div>
</body>
</html>
"""
# variables: (title, generator, stylesheet, heading, report, ending, chart_script)
# 增加饼图 引用自huilansame
ECHARTS_SCRIPT = """
<script type="text/javascript">
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('chart'));
// 指定图表的配置项和数据
var option = {
title : {
text: '测试执行情况',
x:'center'
},
tooltip : {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%%)"
},
color: ['#00A600', '#FF5151', '#FF8A19'],
legend: {
orient: 'vertical',
left: 'left',
data: ['通过','失败','错误']
},
series : [
{
name: '测试执行情况',
type: 'pie',
radius : '60%%',
center: ['50%%', '60%%'],
data:[
{value:%(Pass)s, name:'通过'},
{value:%(fail)s, name:'失败'},
{value:%(error)s, name:'错误'}
],
itemStyle: {
emphasis: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
</script>
""" # variables: (Pass, fail, error)
# ------------------------------------------------------------------------
# Stylesheet
#
# alternatively use a <link> for external style sheet, e.g.
# <link rel="stylesheet" href="$url" type="text/css">
STYLESHEET_TMPL = """
<style type="text/css" media="screen">
body { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table { font-size: 100%; }
pre { white-space: pre-wrap;word-wrap: break-word; }
/* -- heading ---------------------------------------------------------------------- */
h1 {
font-size: 16pt;
color: gray;
}
.heading {
margin-top: 0ex;
margin-bottom: 1ex;
}
.heading .attribute {
margin-top: 1ex;
margin-bottom: 0;
}
.heading .description {
margin-top: 2ex;
margin-bottom: 3ex;
}
/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}
a.popup_link:hover {
color: red;
}
.popup_window {
display: none;
position: relative;
left: 0px;
top: 0px;
/*border: solid #627173 1px; */
padding: 10px;
background-color: #E6E6D6;
font-family: "Lucida Console", "Courier New", Courier, monospace;
text-align: left;
font-size: 8pt;
/* width: 500px;*/
}
.img{
height: 100%;
border-collapse: collapse;
border: 2px solid #777;
}
.screenshots {
z-index: 100;
position:fixed;
height: 80%;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
display: none;
}
.imgyuan{
height: 20px;
border-radius: 12px;
background-color: red;
padding-left: 13px;
margin: 0 auto;
position: relative;
top: -40px;
background-color: rgba(1, 150, 0, 0.3);
}
.imgyuan font{
border:1px solid white;
width:11px;
height:11px;
border-radius:50%;
margin-right: 9px;
margin-top: 4px;
display: block;
float: left;
background-color: white;
}
.close_shots {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAD+3aVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzA2NyA3OS4xNTc3NDcsIDIwMTUvMDMvMzAtMjM6NDA6NDIgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+YWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjk4NDVkYzlhLTM2NTEtMTFlOC1hMDRjLWMzZmRjNzFmNjFkZDwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDo3YzQ4OTMyZS0wM2FjLTIxNDctYTJiZi1iNmViOWU4ZDY2Y2Q8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+MEIzOTNDRjk1RDQ0RDlGMDNFQjEzQkZEQ0UxRDA5MjM8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5zYXZlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOmQ0ZjMzNDFjLTRkYjctZjc0YS1iZTAxLWYxMGEwMzNhNjg4ZDwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOC0wNC0wMlQxNjo0MToxMCswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIEVsZW1lbnRzIDE0LjAgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y29udmVydGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpwYXJhbWV0ZXJzPmZyb20gaW1hZ2UvanBlZyB0byBpbWFnZS9wbmc8L3N0RXZ0OnBhcmFtZXRlcnM+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5kZXJpdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpwYXJhbWV0ZXJzPmNvbnZlcnRlZCBmcm9tIGltYWdlL2pwZWcgdG8gaW1hZ2UvcG5nPC9zdEV2dDpwYXJhbWV0ZXJzPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDo3YzQ4OTMyZS0wM2FjLTIxNDctYTJiZi1iNmViOWU4ZDY2Y2Q8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTgtMDQtMDJUMTY6NDE6MTArMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBFbGVtZW50cyAxNC4wIChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8eG1wTU06RGVyaXZlZEZyb20gcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICA8c3RSZWY6aW5zdGFuY2VJRD54bXAuaWlkOmQ0ZjMzNDFjLTRkYjctZjc0YS1iZTAxLWYxMGEwMzNhNjg4ZDwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+MEIzOTNDRjk1RDQ0RDlGMDNFQjEzQkZEQ0UxRDA5MjM8L3N0UmVmOmRvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+MEIzOTNDRjk1RDQ0RDlGMDNFQjEzQkZEQ0UxRDA5MjM8L3N0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHBob3Rvc2hvcDpJQ0NQcm9maWxlPnNSR0IgSUVDNjE5NjYtMi4xPC9waG90b3Nob3A6SUNDUHJvZmlsZT4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTgtMDQtMDJUMTY6MjM6NTUrMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOC0wNC0wMlQxNjo0MToxMCswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6TWV0YWRhdGFEYXRlPjIwMTgtMDQtMDJUMTY6NDE6MTArMDg6MDA8L3htcDpNZXRhZGF0YURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgUGhvdG9zaG9wIEVsZW1lbnRzIDE0LjAgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx0aWZmOkltYWdlV2lkdGg+MjU0PC90aWZmOkltYWdlV2lkdGg+CiAgICAgICAgIDx0aWZmOkltYWdlTGVuZ3RoPjI1NDwvdGlmZjpJbWFnZUxlbmd0aD4KICAgICAgICAgPHRpZmY6Qml0c1BlclNhbXBsZT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGk+ODwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpPjg8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaT44PC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC90aWZmOkJpdHNQZXJTYW1wbGU+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpTYW1wbGVzUGVyUGl4ZWw+MzwvdGlmZjpTYW1wbGVzUGVyUGl4ZWw+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpFeGlmVmVyc2lvbj4wMjIxPC9leGlmOkV4aWZWZXJzaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjE1MDwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4xNTA8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAg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);
background-size: 22px 22px;
-moz-background-size: 22px 22px;
background-repeat: no-repeat;
position: absolute;
top: 5px;
right: 5px;
height: 22px;
z-index: 99;
width: 22px;
}
}
/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
margin-top: 3ex;
margin-bottom: 1ex;
}
#result_table {
width: 99%;
}
#header_row {
font-weight: bold;
color: white;
background-color: #777;
}
#total_row { font-weight: bold; }
.passClass { background-color: #00DB00; }
.failClass { background-color: #FF5151; }
.errorClass { background-color: #FF8A19; }
.passCase { color: #00A600; }
.failCase { color: #FF5151; font-weight: bold; }
.errorCase { color: #FF8A19; font-weight: bold; }
.hiddenRow { display: none; }
.testcase { margin-left: 2em; }
/* -- ending ---------------------------------------------------------------------- */
#ending {
}
#div_base {
position:absolute;
top:0%;
left:5%;
right:5%;
width: auto;
height: auto;
margin: -15px 0 0 0;
}
</style>
"""
# ------------------------------------------------------------------------
# Heading
#
# 修改饼图位置
HEADING_TMPL = """
<div class='page-header'>
<h1>%(title)s
</h1>
<div style="float:left;width:50%%;">
<p class='parameters'> %(parameters)s</p>
<br>
<br>
<p class='description'> %(description)s</p>
</div>
<div id="chart" style="float:left;width:50%%;height:250px;"></di>
</div>
""" # variables: (title, parameters, description)
HEADING_ATTRIBUTE_TMPL = """<p class='attribute'><strong>%(name)s:</strong> %(value)s</p>
""" # variables: (name, value)
# ------------------------------------------------------------------------
# Report
#
REPORT_TMPL = u"""
<div class="btn-group btn-group-sm">
<button class="btn btn-primary" onclick='javascript:showCase(0)'>概览</button>
<button class="btn btn-success" onclick='javascript:showCase(1)'>成功</button>
<button class="btn btn-danger" onclick='javascript:showCase(2)'>失败</button>
<button class="btn btn-warning" onclick='javascript:showCase(3)'>错误</button>
<button class="btn btn-info" onclick='javascript:showCase(4)'>全部</button>
</div>
<p></p>
<table id='result_table' class="table table-bordered">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
<td>测试套件/测试用例</td>
<td>总数</td>
<td>通过</td>
<td>失败</td>
<td>错误</td>
<td>查看</td>
</tr>
%(test_list)s
<tr id='total_row'>
<td>总计</td>
<td>%(count)s</td>
<td>%(Pass)s</td>
<td>%(fail)s</td>
<td>%(error)s</td>
<td>通过率:%(passrate)s</td>
</tr>
</table>
""" # variables: (test_list, count, Pass, fail, error)
REPORT_TMPL_IMAGES = u"""
<div class="btn-group btn-group-sm">
<button class="btn btn-primary" onclick='javascript:showCase(0)'>概览</button>
<button class="btn btn-success" onclick='javascript:showCase(1)'>成功</button>
<button class="btn btn-danger" onclick='javascript:showCase(2)'>失败</button>
<button class="btn btn-warning" onclick='javascript:showCase(3)'>错误</button>
<button class="btn btn-info" onclick='javascript:showCase(4)'>全部</button>
</div>
<p></p>
<table id='result_table' class="table table-bordered">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
<td>测试套件/测试用例</td>
<td>总数</td>
<td>通过</td>
<td>失败</td>
<td>错误</td>
<td>查看</td>
<td>截图</td>
</tr>
%(test_list)s
<tr id='total_row'>
<td>总计</td>
<td>%(count)s</td>
<td>%(Pass)s</td>
<td>%(fail)s</td>
<td>%(error)s</td>
<td>通过率:%(passrate)s</td>
<td> </td>
</tr>
</table>
""" # variables: (test_list, count, Pass, fail, error)
REPORT_CLASS_TMPL = u"""
<tr class='%(style)s'>
<td>%(desc)s</td>
<td>%(count)s</td>
<td>%(Pass)s</td>
<td>%(fail)s</td>
<td>%(error)s</td>
<td><a href="javascript:showClassDetail('%(cid)s',%(count)s)">详情</a></td>
</tr>
""" # variables: (style, desc, count, Pass, fail, error, cid)
REPORT_CLASS_TMPL_IMAGES = u"""
<tr class='%(style)s'>
<td>%(desc)s</td>
<td>%(count)s</td>
<td>%(Pass)s</td>
<td>%(fail)s</td>
<td>%(error)s</td>
<td><a href="javascript:showClassDetail('%(cid)s',%(count)s)">详情</a></td>
<td> </td>
</tr>
""" # variables: (style, desc, count, Pass, fail, error, cid)
# 修改详情展开与收缩
REPORT_TEST_WITH_OUTPUT_TMPL = r"""
<tr id='%(tid)s' class='%(Class)s'>
<td class='%(style)s'><div class='testcase'>%(desc)s</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_%(tid)s')" >
%(status)s</a>
<div id='div_%(tid)s' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_%(tid)s').style.display = 'none' " >
[x]</a>
</div>
<pre>
%(script)s
</pre>
</div>
<!--css div popup end-->
</td>
</tr>
""" # variables: (tid, Class, style, desc, status)
REPORT_TEST_WITH_OUTPUT_TMPL_IMAGES = r"""
<tr id='%(tid)s' class='%(Class)s'>
<td class='%(style)s'><div class='testcase'>%(desc)s</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_%(tid)s')" >
%(status)s</a>
<div id='div_%(tid)s' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_%(tid)s').style.display = 'none' " >
[x]</a>
</div>
<pre>
%(script)s
</pre>
</div>
<!--css div popup end-->
</td>
<td>%(img)s</td>
</tr>
""" # variables: (tid, Class, style, desc, status)
REPORT_TEST_NO_OUTPUT_TMPL = r"""
<tr id='%(tid)s' class='%(Class)s'>
<td class='%(style)s'><div class='testcase'>%(desc)s</div></td>
<td colspan='5' align='center'>%(status)s</td>
</tr>
""" # variables: (tid, Class, style, desc, status)
REPORT_TEST_NO_OUTPUT_TMPL_IMAGES = r"""
<tr id='%(tid)s' class='%(Class)s'>
<td class='%(style)s'><div class='testcase'>%(desc)s</div></td>
<td colspan='5' align='center'>%(status)s</td>
<td>%(img)s</td>
</tr>
""" # variables: (tid, Class, style, desc, status)
REPORT_TEST_OUTPUT_TMPL = r"""
%(id)s: %(output)s
""" # variables: (id, output)
IMG_TMPL = r"""
<a onfocus='this.blur();' href="javacript:void(0);" onclick="show_img(this)">显示截图</a>
<div align="center" class="screenshots" style="display:none">
<a class="close_shots" onclick="hide_img(this)"></a>
%(imgs)s
<div class="imgyuan"></div>
</div>
"""
# ------------------------------------------------------------------------
# ENDING
#
# 版权和返回顶部
ENDING_TMPL = r"""
<div id='ending'>
<p align="center">
Copyright © 2016
<a href="https://github.com/stingbo/pystest" target="_blank"> StingBo </a>
Inc. All rights reserved.
</p>
</div>
<div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
<a href="#"><span class="glyphicon glyphicon-chevron-up" style = "font-size:30px;" aria-hidden="true">
</span></a></div>
"""
# ----------------------------------------------------------------------
# Template English
class Template_EN(object):
STATUS = {
0: u'pass',
1: u'fail',
2: u'error',
}
# add tester
DEFAULT_TITLE = 'Test Report'
DEFAULT_DESCRIPTION = ''
DEFAULT_TESTER = 'pystest'
# ------------------------------------------------------------------------
# HTML Template
HTML_TMPL = r"""<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>%(title)s</title>
<meta name="generator" content="%(generator)s"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
%(stylesheet)s
<script src="https://cdn.bootcss.com/echarts/3.8.5/echarts.common.min.js"></script>
</head>
<body>
<script language="javascript" type="text/javascript"><!--
output_list = Array();
/*level add test choice
0:Summary //all hiddenRow
1:Pass //pt none, ft hiddenRow, et hiddenRow
2:Failed //pt hiddenRow, ft none, et hiddenRow
3:Error //pt hiddenRow, ft hiddenRow, et none
4:All //pt none, ft none, et none
*/
/* level - 0:Summary; 1:Pass; 2:Failed; 3:Error; 4: All*/
function showCase(level) {
trs = document.getElementsByTagName("tr");
for (var i = 0; i < trs.length; i++) {
tr = trs[i];
id = tr.id;
if (id.substr(0,2) == 'ft') {
if (level == 1 || level == 3 || level == 0) {
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
if (id.substr(0,2) == 'pt') {
if (level == 2 || level == 3 || level == 0){
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
if (id.substr(0,2) == 'et') {
if (level == 1 || level == 2 || level == 0 ){
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
}
}
/* Optimizing Details and Contraction Not Effective */
function showClassDetail(cid, count) {
var id_list = Array(count);
var toHide = 1;
for (var i = 0; i < count; i++) {
tid0 = 't' + cid.substr(1) + '_' + (i+1);
tid = 'f' + tid0;
tr = document.getElementById(tid);
if (!tr) {
tid = 'p' + tid0;
tr = document.getElementById(tid);
}
/* 增加error */
if (!tr) {
tid = 'e' + tid0;
tr = document.getElementById(tid);
}
id_list[i] = tid;
if (tr.className) {
toHide = 0;
}
}
for (var i = 0; i < count; i++) {
tid = id_list[i];
if (toHide) {
document.getElementById('div_'+tid).style.display = 'none'
document.getElementById(tid).className = 'hiddenRow';
}
else {
document.getElementById(tid).className = '';
}
}
}
function showTestDetail(div_id){
var details_div = document.getElementById(div_id)
var displayState = details_div.style.display
// alert(displayState)
if (displayState != 'block' ) {
displayState = 'block'
details_div.style.display = 'block'
}
else {
details_div.style.display = 'none'
}
}
function html_escape(s) {
s = s.replace(/&/g,'&');
s = s.replace(/</g,'<');
s = s.replace(/>/g,'>');
return s;
}
/* add test screenshot from GoverSky*/
function show_img(obj) {
var obj1 = obj.nextElementSibling
obj1.style.display='block'
var index = 0;
var len = obj1.getElementsByTagName('img').length;
var imgyuan = obj1.getElementsByClassName('imgyuan')[0]
//var start=setInterval(autoPlay,500);
obj1.onmouseover=function(){
clearInterval(start);
}
obj1.onmouseout=function(){
start=setInterval(autoPlay,1000);
}
for (var i = 0; i < len; i++) {
var font = document.createElement('font')
imgyuan.appendChild(font)
}
var lis = obj1.getElementsByTagName('font');
changeImg(0)
var funny = function (i) {
lis[i].onmouseover = function () {
index=i
changeImg(i)
}
}
for (var i = 0; i < lis.length; i++) {
funny(i);
}
function autoPlay(){
if(index>len-1){
index=0;
clearInterval(start);
}
changeImg(index++);
}
imgyuan.style.width= 25*len +"px";
function changeImg(index) {
var list = obj1.getElementsByTagName('img');
var list1 = obj1.getElementsByTagName('font');
for (i = 0; i < list.length; i++) {
list[i].style.display = 'none';
list1[i].style.backgroundColor = 'white';
}
list[index].style.display = 'block';
list1[index].style.backgroundColor = 'blue';
}
}
function hide_img(obj){
obj.parentElement.style.display = "none";
obj.parentElement.getElementsByClassName('imgyuan')[0].innerHTML = "";
}
--></script>
<div id="div_base">
%(heading)s
%(report)s
%(ending)s
%(chart_script)s
</div>
</body>
</html>
"""
# variables: (title, generator, stylesheet, heading, report, ending, chart_script)
# add Pie chart from huilansame
ECHARTS_SCRIPT = """
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('chart'));
var option = {
title : {
text: 'Test Result',
x:'center'
},
tooltip : {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%%)"
},
color: ['#00A600', '#FF5151', '#FF8A19'],
legend: {
orient: 'vertical',
left: 'left',
data: ['pass','fail','error']
},
series : [
{
name: 'Test Result',
type: 'pie',
radius : '60%%',
center: ['50%%', '60%%'],
data:[
{value:%(Pass)s, name:'pass'},
{value:%(fail)s, name:'fail'},
{value:%(error)s, name:'error'}
],
itemStyle: {
emphasis: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
};
myChart.setOption(option);
</script>
""" # variables: (Pass, fail, error)
# ------------------------------------------------------------------------
# Stylesheet
#
# alternatively use a <link> for external style sheet, e.g.
# <link rel="stylesheet" href="$url" type="text/css">
STYLESHEET_TMPL = """
<style type="text/css" media="screen">
body { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table { font-size: 100%; }
pre { white-space: pre-wrap;word-wrap: break-word; }
/* -- heading ---------------------------------------------------------------------- */
h1 {
font-size: 16pt;
color: gray;
}
.heading {
margin-top: 0ex;
margin-bottom: 1ex;
}
.heading .attribute {
margin-top: 1ex;
margin-bottom: 0;
}
.heading .description {
margin-top: 2ex;
margin-bottom: 3ex;
}
/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}
a.popup_link:hover {
color: red;
}
.popup_window {
display: none;
position: relative;
left: 0px;
top: 0px;
/*border: solid #627173 1px; */
padding: 10px;
background-color: #E6E6D6;
font-family: "Lucida Console", "Courier New", Courier, monospace;
text-align: left;
font-size: 8pt;
/* width: 500px;*/
}
.img{
height: 100%;
border-collapse: collapse;
border: 2px solid #777;
}
.screenshots {
z-index: 100;
position:fixed;
height: 80%;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
display: none;
}
.imgyuan{
height: 20px;
border-radius: 12px;
background-color: red;
padding-left: 13px;
margin: 0 auto;
position: relative;
top: -40px;
background-color: rgba(1, 150, 0, 0.3);
}
.imgyuan font{
border:1px solid white;
width:11px;
height:11px;
border-radius:50%;
margin-right: 9px;
margin-top: 4px;
display: block;
float: left;
background-color: white;
}
.close_shots {
background-image: url(data:image/png;base64,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/GMzLdsAAD+3aVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzA2NyA3OS4xNTc3NDcsIDIwMTUvMDMvMzAtMjM6NDA6NDIgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+YWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjk4NDVkYzlhLTM2NTEtMTFlOC1hMDRjLWMzZmRjNzFmNjFkZDwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDo3YzQ4OTMyZS0wM2FjLTIxNDctYTJiZi1iNmViOWU4ZDY2Y2Q8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+MEIzOTNDRjk1RDQ0RDlGMDNFQjEzQkZEQ0UxRDA5MjM8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5zYXZlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOmQ0ZjMzNDFjLTRkYjctZjc0YS1iZTAxLWYxMGEwMzNhNjg4ZDwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOC0wNC0wMlQxNjo0MToxMCswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIEVsZW1lbnRzIDE0LjAgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y29udmVydGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpwYXJhbWV0ZXJzPmZyb20gaW1hZ2UvanBlZyB0byBpbWFnZS9wbmc8L3N0RXZ0OnBhcmFtZXRlcnM+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5kZXJpdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpwYXJhbWV0ZXJzPmNvbnZlcnRlZCBmcm9tIGltYWdlL2pwZWcgdG8gaW1hZ2UvcG5nPC9zdEV2dDpwYXJhbWV0ZXJzPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDo3YzQ4OTMyZS0wM2FjLTIxNDctYTJiZi1iNmViOWU4ZDY2Y2Q8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTgtMDQtMDJUMTY6NDE6MTArMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBFbGVtZW50cyAxNC4wIChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8eG1wTU06RGVyaXZlZEZyb20gcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICA8c3RSZWY6aW5zdGFuY2VJRD54bXAuaWlkOmQ0ZjMzNDFjLTRkYjctZjc0YS1iZTAxLWYxMGEwMzNhNjg4ZDwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+MEIzOTNDRjk1RDQ0RDlGMDNFQjEzQkZEQ0UxRDA5MjM8L3N0UmVmOmRvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+MEIzOTNDRjk1RDQ0RDlGMDNFQjEzQkZEQ0UxRDA5MjM8L3N0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHBob3Rvc2hvcDpJQ0NQcm9maWxlPnNSR0IgSUVDNjE5NjYtMi4xPC9waG90b3Nob3A6SUNDUHJvZmlsZT4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTgtMDQtMDJUMTY6MjM6NTUrMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOC0wNC0wMlQxNjo0MToxMCswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6TWV0YWRhdGFEYXRlPjIwMTgtMDQtMDJUMTY6NDE6MTArMDg6MDA8L3htcDpNZXRhZGF0YURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgUGhvdG9zaG9wIEVsZW1lbnRzIDE0LjAgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx0aWZmOkltYWdlV2lkdGg+MjU0PC90aWZmOkltYWdlV2lkdGg+CiAgICAgICAgIDx0aWZmOkltYWdlTGVuZ3RoPjI1NDwvdGlmZjpJbWFnZUxlbmd0aD4KICAgICAgICAgPHRpZmY6Qml0c1BlclNhbXBsZT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGk+ODwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpPjg8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaT44PC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC90aWZmOkJpdHNQZXJTYW1wbGU+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpTYW1wbGVzUGVyUGl4ZWw+MzwvdGlmZjpTYW1wbGVzUGVyUGl4ZWw+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpFeGlmVmVyc2lvbj4wMjIxPC9leGlmOkV4aWZWZXJzaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjE1MDwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4xNTA8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAg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);
background-size: 22px 22px;
-moz-background-size: 22px 22px;
background-repeat: no-repeat;
position: absolute;
top: 5px;
right: 5px;
height: 22px;
z-index: 99;
width: 22px;
}
}
/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
margin-top: 3ex;
margin-bottom: 1ex;
}
#result_table {
width: 99%;
}
#header_row {
font-weight: bold;
color: white;
background-color: #777;
}
#total_row { font-weight: bold; }
.passClass { background-color: #00DB00; }
.failClass { background-color: #FF5151; }
.errorClass { background-color: #FF8A19; }
.passCase { color: #00A600; }
.failCase { color: #FF5151; font-weight: bold; }
.errorCase { color: #FF8A19; font-weight: bold; }
.hiddenRow { display: none; }
.testcase { margin-left: 2em; }
/* -- ending ---------------------------------------------------------------------- */
#ending {
}
#div_base {
position:absolute;
top:0%;
left:5%;
right:5%;
width: auto;
height: auto;
margin: -15px 0 0 0;
}
</style>
"""
# ------------------------------------------------------------------------
# Heading
#
# change Pie chart local
HEADING_TMPL = """
<div class='page-header'>
<h1>%(title)s
</h1>
<div style="float:left;width:50%%;">
<p class='parameters'> %(parameters)s</p>
<br>
<br>
<p class='description'> %(description)s</p>
</div>
<div id="chart" style="float:left;width:50%%;height:250px;"></di>
</div>
""" # variables: (title, parameters, description)
HEADING_ATTRIBUTE_TMPL = """<p class='attribute'><strong>%(name)s:</strong> %(value)s</p>
""" # variables: (name, value)
# ------------------------------------------------------------------------
# Report
#
REPORT_TMPL = u"""
<div class="btn-group btn-group-sm">
<button class="btn btn-primary" onclick='javascript:showCase(0)'>Overview</button>
<button class="btn btn-success" onclick='javascript:showCase(1)'>Passed</button>
<button class="btn btn-danger" onclick='javascript:showCase(2)'>Failed</button>
<button class="btn btn-warning" onclick='javascript:showCase(3)'>Error</button>
<button class="btn btn-info" onclick='javascript:showCase(4)'>ALL</button>
</div>
<p></p>
<table id='result_table' class="table table-bordered">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
<td>Test Group/Test case</td>
<td>Count</td>
<td>Pass</td>
<td>Fail</td>
<td>Error</td>
<td>View</td>
</tr>
%(test_list)s
<tr id='total_row'>
<td>Total</td>
<td>%(count)s</td>
<td>%(Pass)s</td>
<td>%(fail)s</td>
<td>%(error)s</td>
<td>Passing rate:%(passrate)s</td>
</tr>
</table>
""" # variables: (test_list, count, Pass, fail, error)
REPORT_TMPL_IMAGES = u"""
<div class="btn-group btn-group-sm">
<button class="btn btn-primary" onclick='javascript:showCase(0)'>Overview</button>
<button class="btn btn-success" onclick='javascript:showCase(1)'>Passed</button>
<button class="btn btn-danger" onclick='javascript:showCase(2)'>Failed</button>
<button class="btn btn-warning" onclick='javascript:showCase(3)'>Error</button>
<button class="btn btn-info" onclick='javascript:showCase(4)'>ALL</button>
</div>
<p></p>
<table id='result_table' class="table table-bordered">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
<td>Test Group/Test case</td>
<td>Count</td>
<td>Pass</td>
<td>Fail</td>
<td>Error</td>
<td>View</td>
<td>Screenshot</td>
</tr>
%(test_list)s
<tr id='total_row'>
<td>Total</td>
<td>%(count)s</td>
<td>%(Pass)s</td>
<td>%(fail)s</td>
<td>%(error)s</td>
<td>Passing rate:%(passrate)s</td>
<td> </td>
</tr>
</table>
""" # variables: (test_list, count, Pass, fail, error)
REPORT_CLASS_TMPL = u"""
<tr class='%(style)s'>
<td>%(desc)s</td>
<td>%(count)s</td>
<td>%(Pass)s</td>
<td>%(fail)s</td>
<td>%(error)s</td>
<td><a href="javascript:showClassDetail('%(cid)s',%(count)s)">Details</a></td>
</tr>
""" # variables: (style, desc, count, Pass, fail, error, cid)
REPORT_CLASS_TMPL_IMAGES = u"""
<tr class='%(style)s'>
<td>%(desc)s</td>
<td>%(count)s</td>
<td>%(Pass)s</td>
<td>%(fail)s</td>
<td>%(error)s</td>
<td><a href="javascript:showClassDetail('%(cid)s',%(count)s)">Details</a></td>
<td> </td>
</tr>
""" # variables: (style, desc, count, Pass, fail, error, cid)
# Modification Details Expansion and Contraction
REPORT_TEST_WITH_OUTPUT_TMPL = r"""
<tr id='%(tid)s' class='%(Class)s'>
<td class='%(style)s'><div class='testcase'>%(desc)s</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_%(tid)s')" >
%(status)s</a>
<div id='div_%(tid)s' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_%(tid)s').style.display = 'none' " >
[x]</a>
</div>
<pre>
%(script)s
</pre>
</div>
<!--css div popup end-->
</td>
</tr>
""" # variables: (tid, Class, style, desc, status)
REPORT_TEST_WITH_OUTPUT_TMPL_IMAGES = r"""
<tr id='%(tid)s' class='%(Class)s'>
<td class='%(style)s'><div class='testcase'>%(desc)s</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_%(tid)s')" >
%(status)s</a>
<div id='div_%(tid)s' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_%(tid)s').style.display = 'none' " >
[x]</a>
</div>
<pre>
%(script)s
</pre>
</div>
<!--css div popup end-->
</td>
<td>%(img)s</td>
</tr>
""" # variables: (tid, Class, style, desc, status)
REPORT_TEST_NO_OUTPUT_TMPL = r"""
<tr id='%(tid)s' class='%(Class)s'>
<td class='%(style)s'><div class='testcase'>%(desc)s</div></td>
<td colspan='5' align='center'>%(status)s</td>
</tr>
""" # variables: (tid, Class, style, desc, status)
REPORT_TEST_NO_OUTPUT_TMPL_IMAGES = r"""
<tr id='%(tid)s' class='%(Class)s'>
<td class='%(style)s'><div class='testcase'>%(desc)s</div></td>
<td colspan='5' align='center'>%(status)s</td>
<td>%(img)s</td>
</tr>
""" # variables: (tid, Class, style, desc, status)
REPORT_TEST_OUTPUT_TMPL = r"""
%(id)s: %(output)s
""" # variables: (id, output)
IMG_TMPL = r"""
<a onfocus='this.blur();' href="javacript:void(0);" onclick="show_img(this)">Show</a>
<div align="center" class="screenshots" style="display:none">
<a class="close_shots" onclick="hide_img(this)"></a>
%(imgs)s
<div class="imgyuan"></div>
</div>
"""
# ------------------------------------------------------------------------
# ENDING
#
# 版权和返回顶部
ENDING_TMPL = r"""
<div id='ending'>
<p align="center">
Copyright © 2016
<a href="https://github.com/stingbo/pystest" target="_blank"> StingBo </a>
Inc. All rights reserved.
</p>
</div>
<div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
<a href="#"><span class="glyphicon glyphicon-chevron-up" style = "font-size:30px;" aria-hidden="true">
</span></a></div>
"""
# -------------------- The end of the Template class -------------------
TestResult = unittest.TestResult
class _TestResult(TestResult):
# note: _TestResult is a pure representation of results.
# It lacks the output and reporting ability compares to unittest._TextTestResult.
# 增加subtest和通过率
def __init__(self, verbosity=1):
TestResult.__init__(self)
self.stdout0 = None
self.stderr0 = None
self.success_count = 0
self.failure_count = 0
self.error_count = 0
self.verbosity = verbosity
# result is a list of result in 4 tuple
# (
# result code (0: success; 1: fail; 2: error),
# TestCase object,
# Test output (byte string),
# stack trace,
# )
self.result = []
self.subtestlist = []
self.passrate = float(0)
def startTest(self, test):
'''增加截图'''
test.imgs = getattr(test, "imgs", [])
TestResult.startTest(self, test)
# just one buffer for both stdout and stderr
self.outputBuffer = StringIO.StringIO()
stdout_redirector.fp = self.outputBuffer
stderr_redirector.fp = self.outputBuffer
self.stdout0 = sys.stdout
self.stderr0 = sys.stderr
sys.stdout = stdout_redirector
sys.stderr = stderr_redirector
def complete_output(self):
"""
Disconnect output redirection and return buffer.
Safe to call multiple times.
"""
if self.stdout0:
sys.stdout = self.stdout0
sys.stderr = self.stderr0
self.stdout0 = None
self.stderr0 = None
return self.outputBuffer.getvalue()
def stopTest(self, test):
# Usually one of addSuccess, addError or addFailure would have been called.
# But there are some path in unittest that would bypass this.
# We must disconnect stdout in stopTest(), which is guaranteed to be called.
self.complete_output()
def addSuccess(self, test):
if test not in self.subtestlist:
self.success_count += 1
TestResult.addSuccess(self, test)
output = self.complete_output()
self.result.append((0, test, output, ''))
if self.verbosity > 1:
sys.stderr.write(u'ok ')
sys.stderr.write(str(test))
sys.stderr.write(u'\n')
else:
sys.stderr.write(u'.')
def addError(self, test, err):
'''增加截图'''
self.error_count += 1
TestResult.addError(self, test, err)
_, _exc_str = self.errors[-1]
output = self.complete_output()
self.result.append((2, test, output, _exc_str))
if python3:
if not getattr(test, "driver",""):
pass
else:
try:
driver = getattr(test, "driver")
test.imgs.append(driver.get_screenshot_as_base64())
except Exception:
pass
if self.verbosity > 1:
sys.stderr.write(u'E ')
sys.stderr.write(str(test))
sys.stderr.write('\n')
else:
sys.stderr.write(u'E')
def addFailure(self, test, err):
'''增加截图'''
self.failure_count += 1
TestResult.addFailure(self, test, err)
_, _exc_str = self.failures[-1]
output = self.complete_output()
self.result.append((1, test, output, _exc_str))
if python3:
if not getattr(test, "driver",""):
pass
else:
try:
driver = getattr(test, "driver")
test.imgs.append(driver.get_screenshot_as_base64())
except Exception as e:
pass
if self.verbosity > 1:
sys.stderr.write(u'F ')
sys.stderr.write(str(test))
sys.stderr.write(u'\n')
else:
sys.stderr.write(u'F')
def addSubTest(self, test, subtest, err):
if err is not None:
if getattr(self, 'failfast', False):
self.stop()
if issubclass(err[0], test.failureException):
self.failure_count += 1
errors = self.failures
errors.append((subtest, self._exc_info_to_string(err, subtest)))
output = self.complete_output()
self.result.append((1, test, output + '\nSubTestCase Failed:\n' + str(subtest),
self._exc_info_to_string(err, subtest)))
if self.verbosity > 1:
sys.stderr.write('F ')
sys.stderr.write(str(subtest))
sys.stderr.write('\n')
else:
sys.stderr.write('F')
else:
self.error_count += 1
errors = self.errors
errors.append((subtest, self._exc_info_to_string(err, subtest)))
output = self.complete_output()
self.result.append(
(2, test, output + '\nSubTestCase Error:\n' + str(subtest), self._exc_info_to_string(err, subtest)))
if self.verbosity > 1:
sys.stderr.write('E ')
sys.stderr.write(str(subtest))
sys.stderr.write('\n')
else:
sys.stderr.write('E')
self._mirrorOutput = True
else:
self.subtestlist.append(subtest)
self.subtestlist.append(test)
self.success_count += 1
output = self.complete_output()
self.result.append((0, test, output + '\nSubTestCase Pass:\n' + str(subtest), ''))
if self.verbosity > 1:
sys.stderr.write('ok ')
sys.stderr.write(str(subtest))
sys.stderr.write('\n')
else:
sys.stderr.write('.')
class HTMLTestReport(Template_CN):
def __init__(self, stream=sys.stdout, verbosity=1, title=None, description=None,tester=None,images=False):
'''增加测试者'''
self.stream = stream
self.verbosity = verbosity
if title is None:
self.title = self.DEFAULT_TITLE
else:
self.title = title
if description is None:
self.description = self.DEFAULT_DESCRIPTION
else:
self.description = description
if tester is None:
self.tester = self.DEFAULT_TESTER
else:
self.tester = tester
self.IMAGES = images
self.startTime = datetime.datetime.now()
def run(self, test):
"Run the given test case or test suite."
result = _TestResult(self.verbosity)
test(result)
self.stopTime = datetime.datetime.now()
self.generateReport(test, result)
if python3:
sys.stderr.write('\nTime Elapsed: %s\n' % (self.stopTime - self.startTime))
else:
print >>sys.stderr, u'\nTime Elapsed: %s' % (self.stopTime-self.startTime)
return result
def sortResult(self, result_list):
# unittest does not seems to run in any particular order.
# Here at least we want to group them together by class.
rmap = {}
classes = []
for n,t,o,e in result_list:
cls = t.__class__
if not cls in rmap:
rmap[cls] = []
classes.append(cls)
rmap[cls].append((n,t,o,e))
r = [(cls, rmap[cls]) for cls in classes]
return r
def getReportAttributes(self, result):
"""
Return report attributes as a list of (name, value).
Override this to add custom attributes.
"""
startTime = str(self.startTime)[:19]
duration = str(self.stopTime - self.startTime)
status = []
if result.success_count: status.append(u'通过 %s' % result.success_count)
if result.failure_count: status.append(u'失败 %s' % result.failure_count)
if result.error_count: status.append(u'错误 %s' % result.error_count)
total = result.success_count+result.failure_count+result.error_count
if status:
status = ' '.join(status)
self.passrate = str('%.1f%%' % (float(result.success_count) / total*100))
else:
status = 'none'
return [
(u'测试人员', self.tester),
(u'开始时间', startTime),
(u'运行时长', duration),
(u'测试结果', '共 {} {} 通过率:{}'.format(total, status, self.passrate))
]
def generateReport(self, test, result):
report_attrs = self.getReportAttributes(result)
generator = u'HTMLTestRunner %s' % __version__
stylesheet = self._generate_stylesheet()
heading = self._generate_heading(report_attrs)
report = self._generate_report(result)
ending = self._generate_ending()
chart = self._generate_chart(result)
output = self.HTML_TMPL % dict(
title = saxutils.escape(self.title),
generator = generator,
stylesheet = stylesheet,
heading = heading,
report = report,
ending = ending,
chart_script= chart
)
self.stream.write(output.encode('utf8'))
def _generate_stylesheet(self):
return self.STYLESHEET_TMPL
def _generate_heading(self, report_attrs):
a_lines = []
for name, value in report_attrs:
line = self.HEADING_ATTRIBUTE_TMPL % dict(
name = saxutils.escape(name),
value = saxutils.escape(value),
)
a_lines.append(line)
heading = self.HEADING_TMPL % dict(
title = saxutils.escape(self.title),
parameters = ''.join(a_lines),
description = saxutils.escape(self.description),
tester=saxutils.escape(self.tester),
)
return heading
def _generate_report(self, result):
rows = []
sortedResult = self.sortResult(result.result)
for cid, (cls, cls_results) in enumerate(sortedResult):
# subtotal for a class
np = nf = ne = 0
for n,t,o,e in cls_results:
if n == 0: np += 1
elif n == 1: nf += 1
else: ne += 1
# format class description
if cls.__module__ == "__main__":
name = cls.__name__
else:
name = "%s.%s" % (cls.__module__, cls.__name__)
doc = cls.__doc__ and cls.__doc__.split("\n")[0] or ""
desc = doc and '%s: %s' % (name, doc) or name
if self.IMAGES:
row = self.REPORT_CLASS_TMPL_IMAGES % dict(
style = ne > 0 and 'errorClass' or nf > 0 and 'failClass' or 'passClass',
desc = desc,
count = np+nf+ne,
Pass = np,
fail = nf,
error = ne,
cid = u'c%s' % (cid+1),
)
else:
row = self.REPORT_CLASS_TMPL % dict(
style = ne > 0 and 'errorClass' or nf > 0 and 'failClass' or 'passClass',
desc = desc,
count = np+nf+ne,
Pass = np,
fail = nf,
error = ne,
cid = u'c%s' % (cid+1),
)
rows.append(row)
for tid, (n,t,o,e) in enumerate(cls_results):
self._generate_report_test(rows, cid, tid, n, t, o, e)
if self.IMAGES:
report = self.REPORT_TMPL_IMAGES % dict(
test_list = ''.join(rows),
count = str(result.success_count+result.failure_count+result.error_count),
Pass = str(result.success_count),
fail = str(result.failure_count),
error = str(result.error_count),
passrate=self.passrate,
)
else:
report = self.REPORT_TMPL % dict(
test_list = ''.join(rows),
count = str(result.success_count+result.failure_count+result.error_count),
Pass = str(result.success_count),
fail = str(result.failure_count),
error = str(result.error_count),
passrate=self.passrate,
)
return report
def _generate_chart(self, result):
chart = self.ECHARTS_SCRIPT % dict(
Pass=str(result.success_count),
fail=str(result.failure_count),
error=str(result.error_count),
)
return chart
def _generate_report_test(self, rows, cid, tid, n, t, o, e):
# e.g. 'pt1.1', 'ft1.1', etc
has_output = bool(o or e)
# 增加error
tid = (n == 0 and 'p' or n == 1 and 'f' or 'e') + 't%s_%s' % (cid + 1, tid + 1)
name = t.id().split('.')[-1]
doc = t.shortDescription() or ""
desc = doc and ('%s: %s' % (name, doc)) or name
if self.IMAGES:
tmpl = has_output and self.REPORT_TEST_WITH_OUTPUT_TMPL_IMAGES or self.REPORT_TEST_NO_OUTPUT_TMPL_IMAGES
else:
tmpl = has_output and self.REPORT_TEST_WITH_OUTPUT_TMPL or self.REPORT_TEST_NO_OUTPUT_TMPL
# o and e should be byte string because they are collected from stdout and stderr?
if isinstance(o, str):
# uo = unicode(o.encode('string_escape'))
if python3:
uo = o
else:
uo = o.decode('utf-8', 'ignore')
else:
uo = o
if isinstance(e,str):
# TODO: some problem with 'string_escape': it escape \n and mess up formating
# ue = unicode(e.encode('string_escape'))
if python3:
ue = e
else:
# ue = e.decode('latin-1')
ue = e.decode('utf-8', 'ignore')
else:
ue = e
script = self.REPORT_TEST_OUTPUT_TMPL % dict(
id = tid,
output = saxutils.escape(uo+ue),
)
if getattr(t, 'imgs', []):
# 判断截图列表,如果有则追加
tmp = u""
for i, img in enumerate(t.imgs):
if i == 0:
tmp += """ <img src="data:image/jpg;base64,%s" style="display: block;" class="img"/>\n""" % img
else:
tmp += """ <img src="data:image/jpg;base64,%s" style="display: none;" class="img"/>\n""" % img
imgs = self.IMG_TMPL % dict(imgs=tmp)
else:
imgs = u"""没有截图"""
row = tmpl % dict(
tid = tid,
Class = (n == 0 and 'hiddenRow' or 'none'),
style = (n == 2 and 'errorCase') or (n == 1 and 'failCase') or (n == 0 and 'passCase'),
desc = desc,
script = script,
status = self.STATUS[n],
img=imgs,
)
rows.append(row)
if not has_output:
return
def _generate_ending(self):
return self.ENDING_TMPL
class HTMLTestReportEN(Template_EN):
def __init__(self, stream=sys.stdout, verbosity=1, title=None, description=None,tester=None,images=False):
'''add tester'''
self.stream = stream
self.verbosity = verbosity
if title is None:
self.title = self.DEFAULT_TITLE
else:
self.title = title
if description is None:
self.description = self.DEFAULT_DESCRIPTION
else:
self.description = description
if tester is None:
self.tester = self.DEFAULT_TESTER
else:
self.tester = tester
self.IMAGES = images
self.startTime = datetime.datetime.now()
def run(self, test):
"Run the given test case or test suite."
result = _TestResult(self.verbosity)
test(result)
self.stopTime = datetime.datetime.now()
self.generateReport(test, result)
if python3:
sys.stderr.write('\nTime Elapsed: %s\n' % (self.stopTime - self.startTime))
else:
print >>sys.stderr, u'\nTime Elapsed: %s' % (self.stopTime-self.startTime)
return result
def sortResult(self, result_list):
# unittest does not seems to run in any particular order.
# Here at least we want to group them together by class.
rmap = {}
classes = []
for n,t,o,e in result_list:
cls = t.__class__
if not cls in rmap:
rmap[cls] = []
classes.append(cls)
rmap[cls].append((n,t,o,e))
r = [(cls, rmap[cls]) for cls in classes]
return r
def getReportAttributes(self, result):
"""
Return report attributes as a list of (name, value).
Override this to add custom attributes.
"""
startTime = str(self.startTime)[:19]
duration = str(self.stopTime - self.startTime)
status = []
if result.success_count: status.append(u'Pass %s' % result.success_count)
if result.failure_count: status.append(u'Failed %s' % result.failure_count)
if result.error_count: status.append(u'Error %s' % result.error_count)
total = result.success_count+result.failure_count+result.error_count
if status:
status = ' '.join(status)
self.passrate = str('%.1f%%' % (float(result.success_count) / total*100))
else:
status = 'none'
return [
(u'Tester', self.tester),
(u'Start Time', startTime),
(u'Duration', duration),
(u'Status', 'All {} {} Passing Rate:{}'.format(total, status, self.passrate))
]
def generateReport(self, test, result):
report_attrs = self.getReportAttributes(result)
generator = u'HTMLTestRunner %s' % __version__
stylesheet = self._generate_stylesheet()
heading = self._generate_heading(report_attrs)
report = self._generate_report(result)
ending = self._generate_ending()
chart = self._generate_chart(result)
output = self.HTML_TMPL % dict(
title = saxutils.escape(self.title),
generator = generator,
stylesheet = stylesheet,
heading = heading,
report = report,
ending = ending,
chart_script= chart
)
self.stream.write(output.encode('utf8'))
def _generate_stylesheet(self):
return self.STYLESHEET_TMPL
def _generate_heading(self, report_attrs):
a_lines = []
for name, value in report_attrs:
line = self.HEADING_ATTRIBUTE_TMPL % dict(
name = saxutils.escape(name),
value = saxutils.escape(value),
)
a_lines.append(line)
heading = self.HEADING_TMPL % dict(
title = saxutils.escape(self.title),
parameters = ''.join(a_lines),
description = saxutils.escape(self.description),
tester=saxutils.escape(self.tester),
)
return heading
def _generate_report(self, result):
rows = []
sortedResult = self.sortResult(result.result)
for cid, (cls, cls_results) in enumerate(sortedResult):
# subtotal for a class
np = nf = ne = 0
for n,t,o,e in cls_results:
if n == 0: np += 1
elif n == 1: nf += 1
else: ne += 1
# format class description
if cls.__module__ == "__main__":
name = cls.__name__
else:
name = "%s.%s" % (cls.__module__, cls.__name__)
doc = cls.__doc__ and cls.__doc__.split("\n")[0] or ""
desc = doc and '%s: %s' % (name, doc) or name
if self.IMAGES:
row = self.REPORT_CLASS_TMPL_IMAGES % dict(
style = ne > 0 and 'errorClass' or nf > 0 and 'failClass' or 'passClass',
desc = desc,
count = np+nf+ne,
Pass = np,
fail = nf,
error = ne,
cid = u'c%s' % (cid+1),
)
else:
row = self.REPORT_CLASS_TMPL % dict(
style = ne > 0 and 'errorClass' or nf > 0 and 'failClass' or 'passClass',
desc = desc,
count = np+nf+ne,
Pass = np,
fail = nf,
error = ne,
cid = u'c%s' % (cid+1),
)
rows.append(row)
for tid, (n,t,o,e) in enumerate(cls_results):
self._generate_report_test(rows, cid, tid, n, t, o, e)
if self.IMAGES:
report = self.REPORT_TMPL_IMAGES % dict(
test_list = ''.join(rows),
count = str(result.success_count+result.failure_count+result.error_count),
Pass = str(result.success_count),
fail = str(result.failure_count),
error = str(result.error_count),
passrate=self.passrate,
)
else:
report = self.REPORT_TMPL % dict(
test_list = ''.join(rows),
count = str(result.success_count+result.failure_count+result.error_count),
Pass = str(result.success_count),
fail = str(result.failure_count),
error = str(result.error_count),
passrate=self.passrate,
)
return report
def _generate_chart(self, result):
chart = self.ECHARTS_SCRIPT % dict(
Pass=str(result.success_count),
fail=str(result.failure_count),
error=str(result.error_count),
)
return chart
def _generate_report_test(self, rows, cid, tid, n, t, o, e):
# e.g. 'pt1.1', 'ft1.1', etc
has_output = bool(o or e)
# add error
tid = (n == 0 and 'p' or n == 1 and 'f' or 'e') + 't%s_%s' % (cid + 1, tid + 1)
name = t.id().split('.')[-1]
doc = t.shortDescription() or ""
desc = doc and ('%s: %s' % (name, doc)) or name
if self.IMAGES:
tmpl = has_output and self.REPORT_TEST_WITH_OUTPUT_TMPL_IMAGES or self.REPORT_TEST_NO_OUTPUT_TMPL_IMAGES
else:
tmpl = has_output and self.REPORT_TEST_WITH_OUTPUT_TMPL or self.REPORT_TEST_NO_OUTPUT_TMPL
# o and e should be byte string because they are collected from stdout and stderr?
if isinstance(o, str):
# uo = unicode(o.encode('string_escape'))
if python3:
uo = o
else:
uo = o.decode('utf-8', 'ignore')
else:
uo = o
if isinstance(e,str):
# TODO: some problem with 'string_escape': it escape \n and mess up formating
# ue = unicode(e.encode('string_escape'))
if python3:
ue = e
else:
# ue = e.decode('latin-1')
ue = e.decode('utf-8', 'ignore')
else:
ue = e
script = self.REPORT_TEST_OUTPUT_TMPL % dict(
id = tid,
output = saxutils.escape(uo+ue),
)
if getattr(t, 'imgs', []):
# 判断截图列表,如果有则追加
tmp = u""
for i, img in enumerate(t.imgs):
if i == 0:
tmp += """ <img src="data:image/jpg;base64,%s" style="display: block;" class="img"/>\n""" % img
else:
tmp += """ <img src="data:image/jpg;base64,%s" style="display: none;" class="img"/>\n""" % img
imgs = self.IMG_TMPL % dict(imgs=tmp)
else:
imgs = u"""no screenshot"""
row = tmpl % dict(
tid = tid,
Class = (n == 0 and 'hiddenRow' or 'none'),
style = (n == 2 and 'errorCase') or (n == 1 and 'failCase') or (n == 0 and 'passCase'),
desc = desc,
script = script,
status = self.STATUS[n],
img=imgs,
)
rows.append(row)
if not has_output:
return
def _generate_ending(self):
return self.ENDING_TMPL
##############################################################################
# Facilities for running tests from the command line
##############################################################################
# Note: Reuse unittest.TestProgram to launch test. In the future we may
# build our own launcher to support more specific command line
# parameters like test title, CSS, etc.
class TestProgram(unittest.TestProgram):
"""
A variation of the unittest.TestProgram. Please refer to the base
class for command line parameters.
"""
def runTests(self):
# Pick HTMLTestRunner as the default test runner.
# base class's testRunner parameter is not useful because it means
# we have to instantiate HTMLTestRunner before we know self.verbosity.
if self.testRunner is None:
# self.testRunner = HTMLTestRunner(verbosity=self.verbosity)
self.testRunner = HTMLTestReport(verbosity=self.verbosity)
unittest.TestProgram.runTests(self)
main = TestProgram
##############################################################################
# Executing this module from the command line
##############################################################################
if __name__ == "__main__":
main(module=None)
| 83.247475
| 51,622
| 0.803046
| 8,869
| 164,830
| 14.858947
| 0.186154
| 0.002368
| 0.001518
| 0.00258
| 0.971218
| 0.969883
| 0.968539
| 0.967811
| 0.966286
| 0.965755
| 0
| 0.078582
| 0.118789
| 164,830
| 1,979
| 51,623
| 83.28954
| 0.828709
| 0.031724
| 0
| 0.818458
| 0
| 0.043716
| 0.848661
| 0.691942
| 0
| 1
| 0
| 0.001011
| 0
| 1
| 0.021251
| false
| 0.035823
| 0.004857
| 0.002429
| 0.067395
| 0.001214
| 0
| 0
| 1
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
a31af76d5a53cc3cbe59f9464455bbb3e93651e0
| 3,051
|
py
|
Python
|
polliwog/line/test_line_intersect.py
|
algrs/polliwog
|
faa6531e8e2f7d0b52e928d64a4c1914199c4023
|
[
"BSD-2-Clause"
] | null | null | null |
polliwog/line/test_line_intersect.py
|
algrs/polliwog
|
faa6531e8e2f7d0b52e928d64a4c1914199c4023
|
[
"BSD-2-Clause"
] | null | null | null |
polliwog/line/test_line_intersect.py
|
algrs/polliwog
|
faa6531e8e2f7d0b52e928d64a4c1914199c4023
|
[
"BSD-2-Clause"
] | null | null | null |
import numpy as np
from .line_intersect import line_intersect2, line_intersect3
def test_line_intersect2():
p0, q0 = np.array([[0.0, 3.0], [4.0, 11.0]])
p1, q1 = np.array([[-2.0, 8.0], [6.0, 4.0]])
np.testing.assert_array_equal(line_intersect2(p0, q0, p1, q1), [1.6, 6.2])
def test_line_intersect2_duplicate_point():
p0, q0 = np.array([[0.0, 3.0], [5.0, 5.0]])
p1, q1 = np.array([[5.0, 5.0], [6.0, 4.0]])
np.testing.assert_array_equal(line_intersect2(p0, q0, p1, q1), [5.0, 5.0])
def test_line_intersect2_with_collinear_lines():
p0, q0 = np.array([[0.0, 1.0], [0.0, 10.0]])
p1, q1 = np.array([[0.0, 2.0], [0.0, 4.0]])
assert line_intersect2(p0, q0, p1, q1) is None
def test_line_intersect2_with_parallel_lines():
p0, q0 = np.array([[0.0, 1.0], [0.0, 10.0]])
p1, q1 = np.array([[1.0, 2.0], [1.0, 11.0]])
assert line_intersect2(p0, q0, p1, q1) is None
def test_line_intersect3_with_collinear_lines():
p0, q0 = np.array([[0.0, 1.0, 2.0], [0.0, 10.0, 20.0]])
p1, q1 = np.array([[0.0, 2.0, 4.0], [0.0, 4.0, 8.0]])
assert line_intersect3(p0, q0, p1, q1) is None
def test_line_intersect3_with_parallel_lines():
p0, q0 = np.array([[0.0, 1.0, 2.0], [0.0, 10.0, 20.0]])
p1, q1 = np.array([[1.0, 2.0, 3.0], [1.0, 11.0, 21.0]])
assert line_intersect3(p0, q0, p1, q1) is None
def test_line_intersect3_with_degenerate_input_p():
p0, q0 = np.array([[0.0, 1.0, 2.0], [0.0, 10.0, 20.0]])
p1, q1 = np.array([[0.0, 1.0, 2.0], [1.0, 11.0, 21.0]])
np.testing.assert_array_equal(line_intersect3(p0, q0, p1, q1), [0.0, 1.0, 2.0])
def test_line_intersect3_with_degenerate_input_q():
p0, q0 = np.array([[0.0, 1.0, 2.0], [0.0, 10.0, 20.0]])
p1, q1 = np.array([[1.0, 2.0, 3.0], [0.0, 10.0, 20.0]])
np.testing.assert_array_equal(line_intersect3(p0, q0, p1, q1), [0.0, 10.0, 20.0])
def test_line_intersect3_with_degenerate_input_q_2():
p0, q0 = np.array([[0.0, 1.0, 2.0], [0.0, 10.0, 20.0]])
p1, q1 = np.array([[0.0, 10.0, 20.0], [1.0, 2.0, 3.0]])
np.testing.assert_array_equal(line_intersect3(p0, q0, p1, q1), [0.0, 10.0, 20.0])
def test_line_intersect3_example_1():
"""
This example tests the codirectional cross product case.
"""
p0, q0 = np.array([[5.0, 5.0, 4.0], [10.0, 10.0, 6.0]])
p1, q1 = np.array([[5.0, 5.0, 5.0], [10.0, 10.0, 3.0]])
np.testing.assert_array_equal(
line_intersect3(p0, q0, p1, q1), [25.0 / 4, 25.0 / 4, 9.0 / 2]
)
def test_line_intersect3_example_2():
"""
This example tests the opposite direction cross product case.
"""
p0, q0 = np.array([[5.0, 5.0, 4.0], [10.0, 10.0, -6.0]])
p1, q1 = np.array([[5.0, 5.0, 5.0], [10.0, 10.0, -3.0]])
np.testing.assert_array_equal(line_intersect3(p0, q0, p1, q1), [2.5, 2.5, 9])
def test_line_intersect3_example_3():
p0, q0 = np.array([[6.0, 8.0, 4.0], [12.0, 15.0, 4.0]])
p1, q1 = np.array([[6.0, 8.0, 2.0], [12.0, 15.0, 6.0]])
np.testing.assert_array_equal(line_intersect3(p0, q0, p1, q1), [9.0, 23.0 / 2, 4.0])
| 36.759036
| 88
| 0.588332
| 633
| 3,051
| 2.696682
| 0.091627
| 0.042179
| 0.044523
| 0.068541
| 0.857059
| 0.777387
| 0.757469
| 0.739309
| 0.714118
| 0.663152
| 0
| 0.187925
| 0.180269
| 3,051
| 82
| 89
| 37.207317
| 0.494602
| 0.038676
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 1
| 0.230769
| true
| 0
| 0.038462
| 0
| 0.269231
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
a369d96a87f229db0991f69e07470e49b5275ed3
| 43,716
|
py
|
Python
|
obp/ope/estimators_slate.py
|
Tanvikapoor14/zr-obp
|
51eba00f0dda5c26c1fa6826f544c60de485da52
|
[
"Apache-2.0"
] | null | null | null |
obp/ope/estimators_slate.py
|
Tanvikapoor14/zr-obp
|
51eba00f0dda5c26c1fa6826f544c60de485da52
|
[
"Apache-2.0"
] | null | null | null |
obp/ope/estimators_slate.py
|
Tanvikapoor14/zr-obp
|
51eba00f0dda5c26c1fa6826f544c60de485da52
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (c) Yuta Saito, Yusuke Narita, and ZOZO Technologies, Inc. All rights reserved.
# Licensed under the Apache 2.0 License.
"""Off-Policy Estimators for Slate/Ranking Policies."""
from abc import ABCMeta
from abc import abstractmethod
from dataclasses import dataclass
from typing import Dict
from typing import Optional
import numpy as np
from sklearn.utils import check_scalar
from ..utils import check_cascade_dr_inputs
from ..utils import check_iips_inputs
from ..utils import check_rips_inputs
from ..utils import check_sips_inputs
from ..utils import estimate_confidence_interval_by_bootstrap
@dataclass
class BaseSlateOffPolicyEstimator(metaclass=ABCMeta):
"""Base class for Slate OPE estimators."""
@abstractmethod
def _estimate_round_rewards(self) -> np.ndarray:
"""Estimate round-wise (or sample-wise) rewards."""
raise NotImplementedError
@abstractmethod
def estimate_policy_value(self) -> float:
"""Estimate the policy value of evaluation policy."""
raise NotImplementedError
@abstractmethod
def estimate_interval(self) -> Dict[str, float]:
"""Estimate the confidence interval of the policy value using bootstrap."""
raise NotImplementedError
@dataclass
class BaseSlateInverseProbabilityWeighting(BaseSlateOffPolicyEstimator):
"""Base Class of Inverse Probability Weighting Estimators for the slate contextual bandit setting.
len_list: int (> 1)
Length of a list of actions in a recommendation/ranking inferface, slate size.
When Open Bandit Dataset is used, `len_list=3`.
"""
len_list: int
def _estimate_round_rewards(
self,
reward: np.ndarray,
position: np.ndarray,
behavior_policy_pscore: np.ndarray,
evaluation_policy_pscore: np.ndarray,
**kwargs,
) -> np.ndarray:
"""Estimate rewards for each slate and slot (position).
Parameters
----------
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
behavior_policy_pscore: array-like, shape (<= n_rounds * len_list,)
Marginal probabilities of behavior policy choosing a particular action at each position (slot) or
joint probabilities of behavior policy choosing a whole slate/ranking of actions.
evaluation_policy_pscore: array-like, shape (<= n_rounds * len_list,)
Marginal probabilities of evaluation policy choosing a particular action at each slot/position or
joint probabilities of evaluation policy choosing a whole slate/ranking of actions.
Returns
----------
estimated_rewards: array-like, shape (<= n_rounds * len_list,)
Rewards estimated for each slate and slot (position).
"""
iw = evaluation_policy_pscore / behavior_policy_pscore
estimated_rewards = reward * iw
return estimated_rewards
def _estimate_slate_confidence_interval_by_bootstrap(
self,
slate_id: np.ndarray,
estimated_rewards: np.ndarray,
alpha: float = 0.05,
n_bootstrap_samples: int = 10000,
random_state: Optional[int] = None,
) -> Dict[str, float]:
"""Estimate the confidence interval of the policy value using bootstrap.
Parameters
----------
slate_id: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
estimated_rewards: array-like, shape (<= n_rounds * len_list,)
Rewards estimated for each slate and slot (position).
alpha: float, default=0.05
Significance level.
n_bootstrap_samples: int, default=10000
Number of resampling performed in bootstrap sampling.
random_state: int, default=None
Controls the random seed in bootstrap sampling.
Returns
----------
estimated_confidence_interval: Dict[str, float]
Dictionary storing the estimated mean and upper-lower confidence bounds.
"""
unique_slate = np.unique(slate_id)
# sum estimated_rewards in each slate
estimated_round_rewards = list()
for slate in unique_slate:
estimated_round_rewards.append(estimated_rewards[slate_id == slate].sum())
estimated_round_rewards = np.array(estimated_round_rewards)
return estimate_confidence_interval_by_bootstrap(
samples=estimated_round_rewards,
alpha=alpha,
n_bootstrap_samples=n_bootstrap_samples,
random_state=random_state,
)
@dataclass
class SlateStandardIPS(BaseSlateInverseProbabilityWeighting):
"""Standard Inverse Propensity Scoring (SIPS) Estimator.
Note
-------
SIPS estimates the policy value of evaluation policy :math:`\\pi_e`
without imposing any assumption on user behavior.
Please refer to Eq.(1) in Section 3 of McInerney et al.(2020) for more details.
Parameters
----------
estimator_name: str, default='sips'.
Name of the estimator.
References
------------
James McInerney, Brian Brost, Praveen Chandar, Rishabh Mehrotra, and Ben Carterette.
"Counterfactual Evaluation of Slate Recommendations with Sequential Reward Interactions.", 2020.
"""
estimator_name: str = "sips"
def estimate_policy_value(
self,
slate_id: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
pscore: np.ndarray,
evaluation_policy_pscore: np.ndarray,
**kwargs,
) -> float:
"""Estimate the policy value of evaluation policy.
Parameters
----------
slate_id: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of behavior policy choosing a slate action, i.e., :math:`\\pi_b(a_i|x_i)`.
This parameter must be unique in each slate.
evaluation_policy_pscore: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of evaluation policy choosing a slate action, i.e., :math:`\\pi_e(a_i|x_i)`.
This parameter must be unique in each slate.
Returns
----------
V_hat: float
Estimated policy value of evaluation policy.
"""
check_sips_inputs(
slate_id=slate_id,
reward=reward,
position=position,
pscore=pscore,
evaluation_policy_pscore=evaluation_policy_pscore,
)
return (
self._estimate_round_rewards(
reward=reward,
position=position,
behavior_policy_pscore=pscore,
evaluation_policy_pscore=evaluation_policy_pscore,
).sum()
/ np.unique(slate_id).shape[0]
)
def estimate_interval(
self,
slate_id: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
pscore: np.ndarray,
evaluation_policy_pscore: np.ndarray,
alpha: float = 0.05,
n_bootstrap_samples: int = 10000,
random_state: Optional[int] = None,
**kwargs,
) -> Dict[str, float]:
"""Estimate the confidence interval of the policy value using bootstrap.
Parameters
----------
slate_id: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of behavior policy choosing a slate action, i.e., :math:`\\pi_b(a_i|x_i)`.
This parameter must be unique in each slate.
evaluation_policy_pscore: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of evaluation policy choosing a slate action, i.e., :math:`\\pi_e(a_i|x_i)`.
This parameter must be unique in each slate.
alpha: float, default=0.05
Significance level.
n_bootstrap_samples: int, default=10000
Number of resampling performed in bootstrap sampling.
random_state: int, default=None
Controls the random seed in bootstrap sampling.
Returns
----------
estimated_confidence_interval: Dict[str, float]
Dictionary storing the estimated mean and upper-lower confidence bounds.
"""
check_sips_inputs(
slate_id=slate_id,
reward=reward,
position=position,
pscore=pscore,
evaluation_policy_pscore=evaluation_policy_pscore,
)
estimated_rewards = self._estimate_round_rewards(
reward=reward,
position=position,
behavior_policy_pscore=pscore,
evaluation_policy_pscore=evaluation_policy_pscore,
)
return self._estimate_slate_confidence_interval_by_bootstrap(
slate_id=slate_id,
estimated_rewards=estimated_rewards,
alpha=alpha,
n_bootstrap_samples=n_bootstrap_samples,
random_state=random_state,
)
@dataclass
class SlateIndependentIPS(BaseSlateInverseProbabilityWeighting):
"""Independent Inverse Propensity Scoring (IIPS) Estimator.
Note
-------
IIPS estimates the policy value of evaluation policy :math:`\\pi_e` assuming
the item-position click model (rewards observed at each position are assumed to be independent of any other positions.).
Please refer to Eq.(2) in Section 3 of McInerney et al.(2020) for more details.
Parameters
----------
estimator_name: str, default='iips'.
Name of the estimator.
References
------------
Shuai Li, Yasin Abbasi-Yadkori, Branislav Kveton, S. Muthukrishnan, Vishwa Vinay, Zheng Wen.
"Offline Evaluation of Ranking Policies with Click Models", 2018.
James McInerney, Brian Brost, Praveen Chandar, Rishabh Mehrotra, and Ben Carterette.
"Counterfactual Evaluation of Slate Recommendations with Sequential Reward Interactions.", 2020.
"""
estimator_name: str = "iips"
def estimate_policy_value(
self,
slate_id: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
pscore_item_position: np.ndarray,
evaluation_policy_pscore_item_position: np.ndarray,
**kwargs,
) -> float:
"""Estimate the policy value of evaluation policy.
Parameters
----------
slate_id: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore_item_position: array-like, shape (<= n_rounds * len_list,)
Marginal probabilities of behavior policy choosing a particular action at each position (slot),
i.e., :math:`\\pi_b(a_{i}(l) |x_i)`.
evaluation_policy_pscore_item_position: array-like, shape (<= n_rounds * len_list,)
Marginal probabilities of evaluation policy choosing a particular action at each position (slot),
i.e., :math:`\\pi_e(a_{i}(l) |x_i)`.
Returns
----------
V_hat: float
Estimated policy value of evaluation policy.
"""
check_iips_inputs(
slate_id=slate_id,
reward=reward,
position=position,
pscore_item_position=pscore_item_position,
evaluation_policy_pscore_item_position=evaluation_policy_pscore_item_position,
)
return (
self._estimate_round_rewards(
reward=reward,
position=position,
behavior_policy_pscore=pscore_item_position,
evaluation_policy_pscore=evaluation_policy_pscore_item_position,
).sum()
/ np.unique(slate_id).shape[0]
)
def estimate_interval(
self,
slate_id: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
pscore_item_position: np.ndarray,
evaluation_policy_pscore_item_position: np.ndarray,
alpha: float = 0.05,
n_bootstrap_samples: int = 10000,
random_state: Optional[int] = None,
**kwargs,
) -> Dict[str, float]:
"""Estimate the confidence interval of the policy value using bootstrap.
Parameters
----------
slate_id: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore_item_position: array-like, shape (<= n_rounds * len_list,)
Marginal probabilities of behavior policy choosing a particular action at each position (slot),
i.e., :math:`\\pi_b(a_{i}(l) |x_i)`.
evaluation_policy_pscore_item_position: array-like, shape (<= n_rounds * len_list,)
Marginal probabilities of evaluation policy choosing a particular action at each position (slot),
i.e., :math:`\\pi_e(a_{i}(l) |x_i)`.
alpha: float, default=0.05
Significance level.
n_bootstrap_samples: int, default=10000
Number of resampling performed in bootstrap sampling.
random_state: int, default=None
Controls the random seed in bootstrap sampling.
Returns
----------
estimated_confidence_interval: Dict[str, float]
Dictionary storing the estimated mean and upper-lower confidence bounds.
"""
check_iips_inputs(
slate_id=slate_id,
reward=reward,
position=position,
pscore_item_position=pscore_item_position,
evaluation_policy_pscore_item_position=evaluation_policy_pscore_item_position,
)
estimated_rewards = self._estimate_round_rewards(
reward=reward,
position=position,
behavior_policy_pscore=pscore_item_position,
evaluation_policy_pscore=evaluation_policy_pscore_item_position,
)
return self._estimate_slate_confidence_interval_by_bootstrap(
slate_id=slate_id,
estimated_rewards=estimated_rewards,
alpha=alpha,
n_bootstrap_samples=n_bootstrap_samples,
random_state=random_state,
)
@dataclass
class SlateRewardInteractionIPS(BaseSlateInverseProbabilityWeighting):
"""Reward Interaction Inverse Propensity Scoring (RIPS) Estimator.
Note
-------
RIPS estimates the policy value of evaluation policy :math:`\\pi_e` assuming
the cascade click model (users interact with actions from the top position to the bottom in a slate).
Please refer to Eq.(3)-Eq.(4) in Section 3 of McInerney et al.(2020) for more details.
Parameters
----------
estimator_name: str, default='rips'.
Name of the estimator.
References
------------
James McInerney, Brian Brost, Praveen Chandar, Rishabh Mehrotra, and Ben Carterette.
"Counterfactual Evaluation of Slate Recommendations with Sequential Reward Interactions.", 2020.
"""
estimator_name: str = "rips"
def estimate_policy_value(
self,
slate_id: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
pscore_cascade: np.ndarray,
evaluation_policy_pscore_cascade: np.ndarray,
**kwargs,
) -> float:
"""Estimate the policy value of evaluation policy.
Parameters
----------
slate_id: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore_cascade: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of behavior policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`). This type of action choice probabilities corresponds to the cascade model.
evaluation_policy_pscore_cascade: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of behavior policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`). This type of action choice probabilities corresponds to the cascade model.
Returns
----------
V_hat: float
Estimated policy value of evaluation policy.
"""
check_rips_inputs(
slate_id=slate_id,
reward=reward,
position=position,
pscore_cascade=pscore_cascade,
evaluation_policy_pscore_cascade=evaluation_policy_pscore_cascade,
)
return (
self._estimate_round_rewards(
reward=reward,
position=position,
behavior_policy_pscore=pscore_cascade,
evaluation_policy_pscore=evaluation_policy_pscore_cascade,
).sum()
/ np.unique(slate_id).shape[0]
)
def estimate_interval(
self,
slate_id: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
pscore_cascade: np.ndarray,
evaluation_policy_pscore_cascade: np.ndarray,
alpha: float = 0.05,
n_bootstrap_samples: int = 10000,
random_state: Optional[int] = None,
**kwargs,
) -> Dict[str, float]:
"""Estimate the confidence interval of the policy value using bootstrap.
Parameters
----------
slate_id: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore_cascade: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of behavior policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`). This type of action choice probabilities corresponds to the cascade model.
evaluation_policy_pscore_cascade: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of behavior policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`). This type of action choice probabilities corresponds to the cascade model.
alpha: float, default=0.05
Significance level.
n_bootstrap_samples: int, default=10000
Number of resampling performed in bootstrap sampling.
random_state: int, default=None
Controls the random seed in bootstrap sampling.
Returns
----------
estimated_confidence_interval: Dict[str, float]
Dictionary storing the estimated mean and upper-lower confidence bounds.
"""
check_rips_inputs(
slate_id=slate_id,
reward=reward,
position=position,
pscore_cascade=pscore_cascade,
evaluation_policy_pscore_cascade=evaluation_policy_pscore_cascade,
)
estimated_rewards = self._estimate_round_rewards(
reward=reward,
position=position,
behavior_policy_pscore=pscore_cascade,
evaluation_policy_pscore=evaluation_policy_pscore_cascade,
)
return self._estimate_slate_confidence_interval_by_bootstrap(
slate_id=slate_id,
estimated_rewards=estimated_rewards,
alpha=alpha,
n_bootstrap_samples=n_bootstrap_samples,
random_state=random_state,
)
@dataclass
class SlateCascadeDoublyRobust(BaseSlateOffPolicyEstimator):
"""Cascade Doubly Robust (Cascade-DR) Estimator.
Note
-------
Cascade-DR estimates the policy value of evaluation (ranking) policy :math:`\\pi_e` assuming
the cascade click model (users interact with actions from the top position to the bottom in a slate).
It also uses the Q function estimates :math:`\\hat{Q}_l` as a control variate, which is derived using `obp.ope.SlateRegressionModel`.
Please refer to Section 3.1 of Kiyohara et al.(2022) for more details.
Parameters
----------
len_list: int
Length of a list of actions in a recommendation/ranking interface, slate size.
When Open Bandit Dataset is used, 3 should be set.
n_unique_action: int
Number of unique actions.
estimator_name: str, default='cascade-dr'.
Name of the estimator.
References
------------
Haruka Kiyohara, Yuta Saito, Tatsuya Matsuhiro, Yusuke Narita, Nobuyuki Shimizu, and Yasuo Yamamoto.
"Doubly Robust Off-Policy Evaluation for Ranking Policies under the Cascade Behavior Model.", 2022.
"""
len_list: int
n_unique_action: int
estimator_name: str = "cascade-dr"
def __post_init__(self):
"""Initialize Class."""
check_scalar(self.n_unique_action, "n_unique_action", int, min_val=1)
def _estimate_round_rewards(
self,
action: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
behavior_policy_pscore: np.ndarray,
evaluation_policy_pscore: np.ndarray,
q_hat: np.ndarray,
evaluation_policy_action_dist: np.ndarray,
**kwargs,
) -> np.ndarray:
"""Estimate rewards for each slate and slot (position).
Parameters
----------
action: array-like, (n_rounds * len_list,)
Actions observed at each slot in a ranking/slate in logged bandit data, i.e., :math:`a_{i}(l)`,
which is chosen by the behavior policy :math:`\\pi_b`.
reward: array-like, shape (n_rounds * len_list,)
Slot-level rewards observed for each data in logged bandit data, i.e., :math:`r_{i}(l)`.
position: array-like, shape (n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore_cascade: array-like, shape (n_rounds * len_list,)
Joint probabilities of behavior policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`). This type of action choice probabilities corresponds to the cascade model.
evaluation_policy_pscore_cascade: array-like, shape (n_rounds * len_list,)
Joint probabilities of evaluation policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`). This type of action choice probabilities corresponds to the cascade model.
q_hat: array-like (n_rounds * len_list * n_unique_actions, )
:math:`\\hat{Q}_l` for all unique actions,
i.e., :math:`\\hat{Q}_{i,l}(x_i, a_i(1), \\ldots, a_i(l-1), a_i(l)) \\forall a_i(l) \\in \\mathcal{A}`.
evaluation_policy_action_dist: array-like (n_rounds * len_list * n_unique_actions, )
Plackett-luce style action distribution induced by evaluation policy
(action choice probabilities at each slot given previous action choices)
, i.e., :math:`\\pi_e(a_i(l) | x_i, a_i(1), \\ldots, a_i(l-1)) \\forall a_i(l) \\in \\mathcal{A}`.
Returns
----------
estimated_rewards: array-like, shape (n_rounds * len_list,)
Rewards rewards for each slate and slot (position).
"""
# (n_rounds_ * len_list * n_unique_action, ) -> (n_rounds_, len_list, n_unique_action)
q_hat_3d = q_hat.reshape((-1, self.len_list, self.n_unique_action))
# the estimated Q functions for the action taken by the behavior policy
# (n_rounds_, len_list, n_unique_action) -> (n_rounds_ * len_list, )
q_hat_for_observed_action = []
for i in range(self.n_rounds_):
for pos_ in range(self.len_list):
q_hat_for_observed_action.append(
q_hat_3d[i, pos_, action[i * self.len_list + pos_]]
)
q_hat_for_observed_action = np.array(q_hat_for_observed_action)
# the expected Q function under the evaluation policy
# (n_rounds_ * len_list * n_unique_action, ) -> (n_rounds_, len_list, n_unique_action) -> (n_rounds_, len_list) -> (n_rounds_ * len_list, )
expected_q_hat_under_eval_policy = (
(evaluation_policy_action_dist * q_hat)
.reshape((-1, self.len_list, self.n_unique_action))
.sum(axis=2)
.flatten()
)
# importance weights
# (n_rounds * len_list, )
iw = evaluation_policy_pscore / behavior_policy_pscore
iw_prev = np.roll(iw, 1)
iw_prev[np.array([i * self.len_list for i in range(self.n_rounds_)])] = 1
# estimate policy value given each round and slot in a doubly robust manner
estimated_rewards = (
iw * (reward - q_hat_for_observed_action)
+ iw_prev * expected_q_hat_under_eval_policy
)
return estimated_rewards
def estimate_policy_value(
self,
slate_id: np.ndarray,
action: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
pscore_cascade: np.ndarray,
evaluation_policy_pscore_cascade: np.ndarray,
q_hat: np.ndarray,
evaluation_policy_action_dist: np.ndarray,
**kwargs,
) -> float:
"""Estimate the policy value of evaluation policy.
Parameters
----------
slate_id: array-like, shape (n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
action: array-like, (n_rounds * len_list,)
Actions observed at each slot in a ranking/slate in logged bandit data, i.e., :math:`a_{i}(l)`,
which is chosen by the behavior policy :math:`\\pi_b`.
reward: array-like, shape (n_rounds * len_list,)
Slot-level rewards observed for each data in logged bandit data, i.e., :math:`r_{i}(l)`.
position: array-like, shape (n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore_cascade: array-like, shape (n_rounds * len_list,)
Joint probabilities of behavior policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`).
evaluation_policy_pscore_cascade: array-like, shape (n_rounds * len_list,)
Joint probabilities of evaluation policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`). This type of action choice probabilities corresponds to the cascade model.
q_hat: array-like (n_rounds * len_list * n_unique_actions, )
:math:`\\hat{Q}_l` for all unique actions,
i.e., :math:`\\hat{Q}_{i,l}(x_i, a_i(1), \\ldots, a_i(l-1), a_i(l)) \\forall a_i(l) \\in \\mathcal{A}`.
evaluation_policy_action_dist: array-like (n_rounds * len_list * n_unique_actions, )
Plackett-luce style action distribution induced by evaluation policy
(action choice probabilities at each slot given previous action choices)
, i.e., :math:`\\pi_e(a_i(l) | x_i, a_i(1), \\ldots, a_i(l-1)) \\forall a_i(l) \\in \\mathcal{A}`.
Returns
----------
V_hat: array-like, shape (n_rounds * len_list,)
Estimated policy value of evaluation policy.
"""
check_cascade_dr_inputs(
n_unique_action=self.n_unique_action,
slate_id=slate_id,
action=action,
reward=reward,
position=position,
pscore_cascade=pscore_cascade,
evaluation_policy_pscore_cascade=evaluation_policy_pscore_cascade,
q_hat=q_hat,
evaluation_policy_action_dist=evaluation_policy_action_dist,
)
self.n_rounds_ = np.unique(slate_id).shape[0]
return (
self._estimate_round_rewards(
action=action,
reward=reward,
position=position,
behavior_policy_pscore=pscore_cascade,
evaluation_policy_pscore=evaluation_policy_pscore_cascade,
q_hat=q_hat,
evaluation_policy_action_dist=evaluation_policy_action_dist,
).sum()
/ self.n_rounds_
)
def estimate_interval(
self,
slate_id: np.ndarray,
action: np.ndarray,
reward: np.ndarray,
position: np.ndarray,
pscore_cascade: np.ndarray,
evaluation_policy_pscore_cascade: np.ndarray,
q_hat: np.ndarray,
evaluation_policy_action_dist: np.ndarray,
alpha: float = 0.05,
n_bootstrap_samples: int = 10000,
random_state: Optional[int] = None,
**kwargs,
) -> Dict[str, float]:
"""Estimate the confidence interval of the policy value using bootstrap.
Parameters
----------
slate_id: array-like, shape (n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
action: array-like, (n_rounds * len_list,)
Actions observed at each slot in a ranking/slate in logged bandit data, i.e., :math:`a_{i}(l)`,
which is chosen by the behavior policy :math:`\\pi_b`.
reward: array-like, shape (n_rounds * len_list,)
Slot-level rewards observed for each data in logged bandit data, i.e., :math:`r_{i}(l)`.
position: array-like, shape (n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore_cascade: array-like, shape (n_rounds * len_list,)
Joint probabilities of behavior policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`).
evaluation_policy_pscore_cascade: array-like, shape (n_rounds * len_list,)
Joint probabilities of evaluation policy choosing a particular sequence of actions from the top position to the :math:`l`-th position (:math:`a_{1:l}`). This type of action choice probabilities corresponds to the cascade model.
q_hat: array-like (n_rounds * len_list * n_unique_actions, )
:math:`\\hat{Q}_l` for all unique actions,
i.e., :math:`\\hat{Q}_{i,l}(x_i, a_i(1), \\ldots, a_i(l-1), a_i(l)) \\forall a_i(l) \\in \\mathcal{A}`.
evaluation_policy_action_dist: array-like (n_rounds * len_list * n_unique_actions, )
Plackett-luce style action distribution induced by evaluation policy
(action choice probabilities at each slot given previous action choices)
, i.e., :math:`\\pi_e(a_i(l) | x_i, a_i(1), \\ldots, a_i(l-1)) \\forall a_i(l) \\in \\mathcal{A}`.
alpha: float, default=0.05
Significance level.
n_bootstrap_samples: int, default=10000
Number of resampling performed in bootstrap sampling.
random_state: int, default=None
Controls the random seed in bootstrap sampling.
Returns
----------
estimated_confidence_interval: Dict[str, float]
Dictionary storing the estimated mean and upper-lower confidence bounds.
"""
check_cascade_dr_inputs(
n_unique_action=self.n_unique_action,
slate_id=slate_id,
action=action,
reward=reward,
position=position,
pscore_cascade=pscore_cascade,
evaluation_policy_pscore_cascade=evaluation_policy_pscore_cascade,
q_hat=q_hat,
evaluation_policy_action_dist=evaluation_policy_action_dist,
)
self.n_rounds_ = np.unique(slate_id).shape[0]
estimated_rewards = self._estimate_round_rewards(
action=action,
reward=reward,
position=position,
behavior_policy_pscore=pscore_cascade,
evaluation_policy_pscore=evaluation_policy_pscore_cascade,
q_hat=q_hat,
evaluation_policy_action_dist=evaluation_policy_action_dist,
)
return self._estimate_slate_confidence_interval_by_bootstrap(
slate_id=slate_id,
estimated_rewards=estimated_rewards,
alpha=alpha,
n_bootstrap_samples=n_bootstrap_samples,
random_state=random_state,
)
def _estimate_slate_confidence_interval_by_bootstrap(
self,
slate_id: np.ndarray,
estimated_rewards: np.ndarray,
alpha: float = 0.05,
n_bootstrap_samples: int = 10000,
random_state: Optional[int] = None,
) -> Dict[str, float]:
"""Estimate the confidence interval of the policy value using bootstrap.
Parameters
----------
slate_id: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slates (i.e., ranking or list of actions)
estimated_rewards: array-like, shape (<= n_rounds * len_list,)
Rewards estimated for each slate and slot (position).
alpha: float, default=0.05
Significance level.
n_bootstrap_samples: int, default=10000
Number of resampling performed in bootstrap sampling.
random_state: int, default=None
Controls the random seed in bootstrap sampling.
Returns
----------
estimated_confidence_interval: Dict[str, float]
Dictionary storing the estimated mean and upper-lower confidence bounds.
"""
unique_slate = np.unique(slate_id)
# sum estimated_rewards in each slate
estimated_round_rewards = list()
for slate in unique_slate:
estimated_round_rewards.append(estimated_rewards[slate_id == slate].sum())
estimated_round_rewards = np.array(estimated_round_rewards)
return estimate_confidence_interval_by_bootstrap(
samples=estimated_round_rewards,
alpha=alpha,
n_bootstrap_samples=n_bootstrap_samples,
random_state=random_state,
)
@dataclass
class BaseSlateSelfNormalizedInverseProbabilityWeighting(
BaseSlateInverseProbabilityWeighting
):
"""Base Class of Self-Normalized Inverse Probability Weighting Estimators for the slate contextual bandit setting.
len_list: int (> 1)
Length of a list of actions in a recommendation/ranking inferface, slate size.
When Open Bandit Dataset is used, `len_list=3`.
"""
len_list: int
def _estimate_round_rewards(
self,
reward: np.ndarray,
position: np.ndarray,
behavior_policy_pscore: np.ndarray,
evaluation_policy_pscore: np.ndarray,
**kwargs,
) -> np.ndarray:
"""Self-Normalized estimated rewards for each slate and slot (position).
Parameters
----------
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
behavior_policy_pscore: array-like, shape (<= n_rounds * len_list,)
Marginal probabilities of behavior policy choosing a particular action at each position (slot) or
joint probabilities of behavior policy choosing a whole slate/ranking of actions.
evaluation_policy_pscore: array-like, shape (<= n_rounds * len_list,)
Marginal probabilities of evaluation policy choosing a particular action at each slot/position or
joint probabilities of evaluation policy choosing a whole slate/ranking of actions.
Returns
----------
estimated_rewards: array-like, shape (<= n_rounds * len_list,)
Self-Normalized rewards estimated for each slate and slot (position).
"""
estimated_rewards = np.zeros_like(behavior_policy_pscore)
iw = np.zeros_like(behavior_policy_pscore)
for pos_ in range(self.len_list):
idx = position == pos_
iw[idx] = evaluation_policy_pscore[idx] / behavior_policy_pscore[idx]
estimated_rewards[idx] = reward[idx] * iw[idx] / iw[idx].mean()
return estimated_rewards
@dataclass
class SelfNormalizedSlateStandardIPS(
SlateStandardIPS, BaseSlateSelfNormalizedInverseProbabilityWeighting
):
"""Self-Normalized Standard Inverse Propensity Scoring (SNSIPS) Estimator.
Note
-------
SNSIPS is the self-normalized version of `obp.ope.SlateStandardIPS`.
SNSIPS calculates the empirical average of importance weights
and normalizes the observed slate-level rewards by the empirical average of the importance weights.
A Self-Normalized estimator is not unbiased even when the behavior policy is known.
However, it is still consistent for the true policy value and gains some stability in OPE.
See the reference papers for more details.
Parameters
----------
estimator_name: str, default='snsips'.
Name of the estimator.
References
----------
James McInerney, Brian Brost, Praveen Chandar, Rishabh Mehrotra, and Ben Carterette.
"Counterfactual Evaluation of Slate Recommendations with Sequential Reward Interactions.", 2020.
Adith Swaminathan and Thorsten Joachims.
"The Self-normalized Estimator for Counterfactual Learning.", 2015.
Nathan Kallus and Masatoshi Uehara.
"Intrinsically Efficient, Stable, and Bounded Off-Policy Evaluation for Reinforcement Learning.", 2019.
"""
estimator_name: str = "snsips"
def _estimate_round_rewards(
self,
reward: np.ndarray,
position: np.ndarray,
behavior_policy_pscore: np.ndarray,
evaluation_policy_pscore: np.ndarray,
**kwargs,
) -> np.ndarray:
"""Estimate rewards for each slate and slot (position).
Parameters
----------
reward: array-like, shape (<= n_rounds * len_list,)
Slot-level rewards, i.e., :math:`r_{i}(l)`.
position: array-like, shape (<= n_rounds * len_list,)
Indices to differentiate slots/positions in a slate/ranking.
pscore: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of behavior policy choosing a slate action, i.e., :math:`\\pi_b(a_i|x_i)`.
This parameter must be unique in each slate.
evaluation_policy_pscore: array-like, shape (<= n_rounds * len_list,)
Joint probabilities of evaluation policy choosing a slate action, i.e., :math:`\\pi_e(a_i|x_i)`.
This parameter must be unique in each slate.
Returns
----------
estimated_rewards: array-like, shape (<= n_rounds * len_list,)
Rewards estimated by the SNSIPS estimator for each slate and slot (position).
"""
estimated_rewards = np.zeros_like(behavior_policy_pscore)
iw = evaluation_policy_pscore / behavior_policy_pscore
estimated_rewards = reward * iw / iw.mean()
return estimated_rewards
@dataclass
class SelfNormalizedSlateIndependentIPS(
SlateIndependentIPS, BaseSlateSelfNormalizedInverseProbabilityWeighting
):
"""Self-Normalized Independent Inverse Propensity Scoring (SNIIPS) Estimator.
Note
-------
SNIIPS is the self-normalized version of `obp.ope.SlateIndependentIPS`.
SNIIPS calculates the slot-level empirical average of importance weights
and normalizes the observed slot-level rewards by the empirical average of the importance weights.
A Self-Normalized estimator is not unbiased even when the behavior policy is known.
However, it is still consistent for the true policy value and gains some stability in OPE.
See the reference papers for more details.
Parameters
----------
estimator_name: str, default='sniips'.
Name of the estimator.
References
----------
Shuai Li, Yasin Abbasi-Yadkori, Branislav Kveton, S. Muthukrishnan, Vishwa Vinay, Zheng Wen.
"Offline Evaluation of Ranking Policies with Click Models", 2018.
James McInerney, Brian Brost, Praveen Chandar, Rishabh Mehrotra, and Ben Carterette.
"Counterfactual Evaluation of Slate Recommendations with Sequential Reward Interactions.", 2020.
Adith Swaminathan and Thorsten Joachims.
"The Self-normalized Estimator for Counterfactual Learning.", 2015.
Nathan Kallus and Masatoshi Uehara.
"Intrinsically Efficient, Stable, and Bounded Off-Policy Evaluation for Reinforcement Learning.", 2019.
"""
estimator_name: str = "sniips"
@dataclass
class SelfNormalizedSlateRewardInteractionIPS(
SlateRewardInteractionIPS, BaseSlateSelfNormalizedInverseProbabilityWeighting
):
"""Self-Normalized Reward Interaction Inverse Propensity Scoring (SNRIPS) Estimator.
Note
-------
SNRIPS is the self-normalized version of `obp.ope.SlateRewardInteractionIPS`.
SNRIPS calculates the slot-level empirical average of the importance weights
and normalizes the observed slot-level rewards by the empirical average of the importance weights.
A Self-Normalized estimator is not unbiased even when the behavior policy is known.
However, it is still consistent for the true policy value and gains some stability in OPE.
See the reference papers for more details.
Parameters
----------
estimator_name: str, default='snrips'.
Name of the estimator.
References
----------
James McInerney, Brian Brost, Praveen Chandar, Rishabh Mehrotra, and Ben Carterette.
"Counterfactual Evaluation of Slate Recommendations with Sequential Reward Interactions.", 2020.
Adith Swaminathan and Thorsten Joachims.
"The Self-normalized Estimator for Counterfactual Learning.", 2015.
Nathan Kallus and Masatoshi Uehara.
"Intrinsically Efficient, Stable, and Bounded Off-Policy Evaluation for Reinforcement Learning.", 2019.
"""
estimator_name: str = "snrips"
| 39.24237
| 239
| 0.650082
| 5,257
| 43,716
| 5.207723
| 0.067339
| 0.060197
| 0.030317
| 0.042444
| 0.886218
| 0.867772
| 0.859773
| 0.847354
| 0.839391
| 0.835227
| 0
| 0.006902
| 0.260934
| 43,716
| 1,113
| 240
| 39.277628
| 0.840447
| 0.568785
| 0
| 0.793349
| 0
| 0
| 0.003511
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.042755
| false
| 0
| 0.028504
| 0
| 0.154394
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6e678d1ca600ccf2b1b89f797f78a8fba0778072
| 1,246
|
py
|
Python
|
Server/core/pnetserver.py
|
PNet-Communications/PNet
|
3274ba511e09dea0a05c63999a1c0da9bc081303
|
[
"Apache-2.0"
] | null | null | null |
Server/core/pnetserver.py
|
PNet-Communications/PNet
|
3274ba511e09dea0a05c63999a1c0da9bc081303
|
[
"Apache-2.0"
] | null | null | null |
Server/core/pnetserver.py
|
PNet-Communications/PNet
|
3274ba511e09dea0a05c63999a1c0da9bc081303
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
import socket
from pathlib import Path
import keyboard
from getpass import getpass
pwd = Path("key.txt")
if pwd.is_file():
s = socket.socket()
hostip = socket.gethostbyname(socket.gethostname())
host = socket.gethostname()
port = 9090
s.bind((host,port))
print("PNet server IP: " + hostip)
print("Waiting for connection...")
s.listen(5)
while True:
conn,addr = s.accept()
print('Got Connection from', addr)
message = "Successfully connected to " + hostip
conn.send(message.encode())
else:
password_provided = getpass("Enter a secure password: ")
file = open(r"key.txt", "w")
file.write(password_provided)
file.close()
s = socket.socket()
hostip = socket.gethostbyname(socket.gethostname())
host = socket.gethostname()
port = 9090
s.bind((host,port))
print("PNet server IP: " + hostip)
print("Waiting for connection...")
s.listen(5)
while True:
conn,addr = s.accept()
print('Got Connection from', addr)
message = "Successfully connected to " + hostip
conn.send(message.encode())
| 25.958333
| 60
| 0.583467
| 141
| 1,246
| 5.134752
| 0.397163
| 0.093923
| 0.035912
| 0.052486
| 0.718232
| 0.718232
| 0.718232
| 0.718232
| 0.718232
| 0.718232
| 0
| 0.011338
| 0.292135
| 1,246
| 48
| 61
| 25.958333
| 0.809524
| 0.012841
| 0
| 0.702703
| 0
| 0
| 0.172358
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.081081
| 0.108108
| 0
| 0.108108
| 0.162162
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
6e680e3238315926616c50adf544fb1e816b70d8
| 1,435
|
py
|
Python
|
temporalio/bridge/proto/bridge/__init__.py
|
cretz/temporal-sdk-python
|
431ca1967d365556a9cf5aa9aac00243b71059f8
|
[
"MIT"
] | 55
|
2022-01-31T22:02:22.000Z
|
2022-03-30T11:17:21.000Z
|
temporalio/bridge/proto/bridge/__init__.py
|
cretz/temporal-sdk-python
|
431ca1967d365556a9cf5aa9aac00243b71059f8
|
[
"MIT"
] | 7
|
2022-02-04T14:08:46.000Z
|
2022-03-22T13:27:30.000Z
|
temporalio/bridge/proto/bridge/__init__.py
|
cretz/temporal-sdk-python
|
431ca1967d365556a9cf5aa9aac00243b71059f8
|
[
"MIT"
] | 4
|
2022-01-31T17:31:49.000Z
|
2022-03-29T01:04:46.000Z
|
from .bridge_pb2 import (
CompleteActivityTaskRequest,
CompleteActivityTaskResponse,
CompleteWorkflowActivationRequest,
CompleteWorkflowActivationResponse,
CreateClientRequest,
CreateWorkerRequest,
FetchBufferedLogsRequest,
FetchBufferedLogsResponse,
InitResponse,
InitTelemetryRequest,
LogLevel,
PollActivityTaskRequest,
PollActivityTaskResponse,
PollWorkflowActivationRequest,
PollWorkflowActivationResponse,
RecordActivityHeartbeatRequest,
RecordActivityHeartbeatResponse,
RegisterWorkerResponse,
RequestWorkflowEvictionRequest,
RequestWorkflowEvictionResponse,
ShutdownWorkerRequest,
ShutdownWorkerResponse,
)
__all__ = [
"CompleteActivityTaskRequest",
"CompleteActivityTaskResponse",
"CompleteWorkflowActivationRequest",
"CompleteWorkflowActivationResponse",
"CreateClientRequest",
"CreateWorkerRequest",
"FetchBufferedLogsRequest",
"FetchBufferedLogsResponse",
"InitResponse",
"InitTelemetryRequest",
"LogLevel",
"PollActivityTaskRequest",
"PollActivityTaskResponse",
"PollWorkflowActivationRequest",
"PollWorkflowActivationResponse",
"RecordActivityHeartbeatRequest",
"RecordActivityHeartbeatResponse",
"RegisterWorkerResponse",
"RequestWorkflowEvictionRequest",
"RequestWorkflowEvictionResponse",
"ShutdownWorkerRequest",
"ShutdownWorkerResponse",
]
| 28.7
| 41
| 0.774216
| 49
| 1,435
| 22.571429
| 0.55102
| 0.099458
| 0.159132
| 0.220615
| 0.980109
| 0.980109
| 0.980109
| 0.980109
| 0.980109
| 0.980109
| 0
| 0.00083
| 0.160279
| 1,435
| 49
| 42
| 29.285714
| 0.917012
| 0
| 0
| 0
| 0
| 0
| 0.3777
| 0.323345
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.020833
| 0
| 0.020833
| 0
| 0
| 0
| 1
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
6e6bd2c417ec8bbe4c80b362190d353d960fffc9
| 12,139
|
py
|
Python
|
tests/unit/html_elements_test_io/html_elements_6_functions_io.py
|
MickyHCorbett/MorfLess
|
9761197d7767c250cc27262e1ab41adf21c59333
|
[
"MIT"
] | null | null | null |
tests/unit/html_elements_test_io/html_elements_6_functions_io.py
|
MickyHCorbett/MorfLess
|
9761197d7767c250cc27262e1ab41adf21c59333
|
[
"MIT"
] | null | null | null |
tests/unit/html_elements_test_io/html_elements_6_functions_io.py
|
MickyHCorbett/MorfLess
|
9761197d7767c250cc27262e1ab41adf21c59333
|
[
"MIT"
] | null | null | null |
#
import libraries.constants as ct
import libraries.globals as gb
import libraries.schematics as sch
from collections import OrderedDict
#
test_values_1 = [\
{ 'remark': 'Test Case 1:pcom_insert_quote_box_command - HEADER placement, empty syntax',
'syntax': '',
'custom_class': '',
'placement': ct.PCOM_HEADER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
<div class="post pm-quote clearfix-small">
<span class="pm-quotation-marks"><i class="fa fa-quote-left fa-3x fa-pull-left" aria-hidden="true"></i></span>
<span class="pm-quote-ref">
</span><!-- end of .pm-quote-ref -->
</div><!-- end of .pm-quote -->
"""
},
{ 'remark': 'Test Case 2:pcom_insert_quote_box_command - MAIN placement, body only and custom class',
'syntax': 'body={ This is the body of the quote with various things in it }:',
'custom_class': 'my-class',
'placement': ct.PCOM_MAIN_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
<div class="main-outer clearfix-small pm-quote-wrap my-class">
<div class="main-inner clearfix-small pm-quote-wrap my-class">
<div class="post pm-quote clearfix-small my-class">
<span class="pm-quotation-marks"><i class="fa fa-quote-left fa-3x fa-pull-left" aria-hidden="true"></i></span>
This is the body of the quote with various things in it
<span class="pm-quote-ref">
</span><!-- end of .pm-quote-ref -->
</div><!-- end of .pm-quote -->
</div><!-- end of .main-inner -->
</div><!-- end of .main-outer -->
"""
},
{ 'remark': 'Test Case 3:pcom_insert_quote_box_command - MAIN placement, body and ref, custom class',
'syntax': """
body={ This is the body of the quote with various things in it }:
ref={ John of Old }:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_MAIN_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
<div class="main-outer clearfix-small pm-quote-wrap my-class">
<div class="main-inner clearfix-small pm-quote-wrap my-class">
<div class="post pm-quote clearfix-small my-class">
<span class="pm-quotation-marks"><i class="fa fa-quote-left fa-3x fa-pull-left" aria-hidden="true"></i></span>
This is the body of the quote with various things in it
<span class="pm-quote-ref">John of Old
</span><!-- end of .pm-quote-ref -->
</div><!-- end of .pm-quote -->
</div><!-- end of .main-inner -->
</div><!-- end of .main-outer -->
"""
},
{ 'remark': 'Test Case 4:pcom_insert_quote_box_command - FOOTER placement, body, ref, url custom class',
'syntax': """
body={ This is the body of the quote with various things in it }:
ref={ John of Old }:
link={ http://something/to/linkto/ }:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
<div class="post pm-quote clearfix-small my-class">
<span class="pm-quotation-marks"><i class="fa fa-quote-left fa-3x fa-pull-left" aria-hidden="true"></i></span>
This is the body of the quote with various things in it
<span class="pm-quote-ref">
<a href="http://something/to/linkto/">John of Old</a>
</span><!-- end of .pm-quote-ref -->
</div><!-- end of .pm-quote -->
"""
},
]
test_values_2 = [\
{ 'remark': 'Test Case 1:pcom_add_header_content_to_head - FOOTER placement, syntax',
'syntax': """
content={
Something here
Something there
}:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': []
},
{ 'remark': 'Test Case 2:pcom_add_header_content_to_head - HEADER placement, empty syntax',
'syntax': """
""",
'custom_class': 'my-class',
'placement': ct.PCOM_HEADER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': []
},
{ 'remark': 'Test Case 3:pcom_add_header_content_to_head - HEADER placement, syntax',
'syntax': """
content={
Something here
Something there
}:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_HEADER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ['Something here\n Something there']
},
{ 'remark': 'Test Case 4:pcom_add_header_content_to_head - HEADER placement, syntax with custom added',
'syntax': """
content_CUSTOM: this thing ={
Something here
Something there
}:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_HEADER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ['Something here\n Something there']
},
{ 'remark': 'Test Case 5:pcom_add_header_content_to_head - HEADER placement, syntax with custom added and other keywords',
'syntax': """
content_CUSTOM: this thing ={
Something here
Something there
}:
ref={ I know }:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_HEADER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ['Something here\n Something there']
},
]
test_values_3 = [\
{ 'remark': 'Test Case 1:pcom_add_footer_content_to_footer - HEADER placement, syntax',
'syntax': """
content={
Something here
Something there
}:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_HEADER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': []
},
{ 'remark': 'Test Case 2:pcom_add_footer_content_to_footer - FOOTER placement, empty syntax',
'syntax': """
""",
'custom_class': 'my-class',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': []
},
{ 'remark': 'Test Case 3:pcom_add_footer_content_to_footer - FOOTER placement, syntax',
'syntax': """
content={
Something here
Something there
}:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ['Something here\n Something there']
},
{ 'remark': 'Test Case 4:pcom_add_footer_content_to_footer - FOOTER placement, syntax with custom added',
'syntax': """
content_CUSTOM: this thing ={
Something here
Something there
}:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ['Something here\n Something there']
},
{ 'remark': 'Test Case 5:pcom_add_footer_content_to_footer - FOOTER placement, syntax with custom added and other keywords',
'syntax': """
content_CUSTOM: this thing ={
Something here
Something there
}:
ref={ I know }:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ['Something here\n Something there']
},
]
test_values_4 = [\
{ 'remark': 'Test Case 1:pcom_process_section_command - FOOTER placement, empty syntax',
'syntax': """
""",
'custom_class': '',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
"""
},
{ 'remark': 'Test Case 2:pcom_process_section_command - FOOTER placement, syntax - name identifier only but empty name',
'syntax': """
{{ }}
""",
'custom_class': '',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
"""
},
{ 'remark': 'Test Case 3:pcom_process_section_command - FOOTER placement, syntax - name identifier',
'syntax': """
{{ section-1 }}
""",
'custom_class': '',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ct.PCOM_NO_ENTRY
},
{ 'remark': 'Test Case 4:pcom_process_section_command - FOOTER placement, syntax - name identifier, commands before and after but with wrong identifiers',
'syntax': """
%%CONTENT::
{{ section-1 }}
%%CONTENT_META::
""",
'custom_class': '',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
<div id="section-1" class="pm-section ">
NONE
</div><!-- end of section -->
"""
},
{ 'remark': 'Test Case 5:pcom_process_section_command - MAIN placement, syntax - name identifier, commands before and after but with wrong identifiers, custom class',
'syntax': """
[%CONTENT:]
TEXT=[ Something here]:
{{ section-1 }}
[%CONTENT_META:]
""",
'custom_class': 'my-class',
'placement': ct.PCOM_MAIN_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': '\
$$SIDEBAR_TAB%%<div id="section-1" class="pm-section my-class">\n\
\n\
\n\
<div class="main-outer clearfix-small">\n\
<div class="main-inner clearfix-small">\n\
<div class="post">\n\
Something here\n\
</div><!-- end of .post -->\n\
</div><!-- end of .main-inner -->\n\
</div><!-- end of .main-outer -->\n\
\n\
CONTENT_META=[MAIN:title,author,date_created,date_modified]:\n\
$$SIDEBAR_TAB%%</div><!-- end of section -->\n'
},
{ 'remark': 'Test Case 6:pcom_process_section_command - MAIN WITH SIDEBAR placement, syntax - name identifier, commands before and after but with wrong identifiers, custom class',
'syntax': """
[%CONTENT:]
TEXT=[ Something here]:
{{ section-1 }}
[%CONTENT_META:]
""",
'custom_class': 'my-class',
'placement': ct.PCOM_MAIN_WITH_SIDEBAR_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': '\
<div id="section-1" class="pm-section my-class">\n\
\n\
<div class="post">\n\
Something here\n\
</div><!-- end of .post -->\n\
\n\
CONTENT_META=[MAIN_WITH_SIDEBAR:title,author,date_created,date_modified]:\n\
</div><!-- end of section -->'
},
]
test_values_5 = [\
{ 'remark': 'Test Case 1:pcom_add_raw_content_command - custom class, no syntax, main with sidebar placement',
'syntax': """
""",
'custom_class': 'my-class',
'placement': ct.PCOM_MAIN_WITH_SIDEBAR_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ''
},
{ 'remark': 'Test Case 2:pcom_add_raw_content_command - custom class, wrong subcommand, main placement',
'syntax': """
THING=[
This text here
And this
]:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_MAIN_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': ''
},
{ 'remark': 'Test Case 3:pcom_add_raw_content_command - custom class, subcommand, main placement',
'syntax': """
TEXT=[
This text here
And this
]:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_MAIN_PLACEMENT,
'type': '',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
This text here
And this
"""
},
{ 'remark': 'Test Case 4:pcom_add_raw_content_command - custom class, subcommand, footer placement',
'syntax': """
TEXT=[
This text here again
And this
]:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': 'this',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
This text here again
And this
"""
},
{ 'remark': 'Test Case 5:pcom_add_raw_content_command - custom class, keyword, footer placement',
'syntax': """
text={
This text here again
And this
}:
""",
'custom_class': 'my-class',
'placement': ct.PCOM_FOOTER_PLACEMENT,
'type': 'this',
'settings': gb.DEFAULT_SETTINGS,
'assertEqual': """
"""
},
]
| 24.424547
| 182
| 0.60285
| 1,447
| 12,139
| 4.893573
| 0.083621
| 0.054371
| 0.049428
| 0.070612
| 0.933625
| 0.891823
| 0.85454
| 0.82912
| 0.793956
| 0.760768
| 0
| 0.004377
| 0.228355
| 12,139
| 496
| 183
| 24.47379
| 0.751575
| 0
| 0
| 0.762667
| 0
| 0.021333
| 0.648266
| 0.092115
| 0
| 0
| 0
| 0
| 0.066667
| 1
| 0
| false
| 0
| 0.010667
| 0
| 0.010667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
42b553d0ee2c231e4a6c9d5f4d6eb496c202a390
| 214
|
py
|
Python
|
tiny_router/__init__.py
|
nekonoshiri/tiny-router
|
3bb808bcc9f9eb368ee390179dfc5e9d48cf8600
|
[
"MIT"
] | null | null | null |
tiny_router/__init__.py
|
nekonoshiri/tiny-router
|
3bb808bcc9f9eb368ee390179dfc5e9d48cf8600
|
[
"MIT"
] | null | null | null |
tiny_router/__init__.py
|
nekonoshiri/tiny-router
|
3bb808bcc9f9eb368ee390179dfc5e9d48cf8600
|
[
"MIT"
] | null | null | null |
from .exceptions import MethodNotAllowed as MethodNotAllowed
from .exceptions import ResourceNotFound as ResourceNotFound
from .exceptions import RouteNotFound as RouteNotFound
from .router import Router as Router
| 42.8
| 60
| 0.869159
| 24
| 214
| 7.75
| 0.333333
| 0.225806
| 0.322581
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11215
| 214
| 4
| 61
| 53.5
| 0.978947
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
42b86bec71cb812a2c306eea76367497f61de011
| 10,015
|
py
|
Python
|
django/electric_power_sale/migrations/0006_auto_20220309_0900.py
|
zcjwin/hasura-django-auth
|
fd052bb05f051ee7fdaecf9433d5f6d7db580ca9
|
[
"MIT"
] | null | null | null |
django/electric_power_sale/migrations/0006_auto_20220309_0900.py
|
zcjwin/hasura-django-auth
|
fd052bb05f051ee7fdaecf9433d5f6d7db580ca9
|
[
"MIT"
] | 1
|
2022-03-21T03:04:31.000Z
|
2022-03-21T03:04:31.000Z
|
django/electric_power_sale/migrations/0006_auto_20220309_0900.py
|
zcjwin/hasura-django-auth
|
fd052bb05f051ee7fdaecf9433d5f6d7db580ca9
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.2.12 on 2022-03-09 09:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import electric_power_sale.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0008_auto_20220309_0900'),
('electric_power_sale', '0005_auto_20220303_0722'),
]
operations = [
migrations.CreateModel(
name='Contract',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, verbose_name='合同名称')),
('contract_no', models.CharField(blank=True, max_length=40, null=True, verbose_name='合同编号')),
('contract_year', models.IntegerField(default=electric_power_sale.models.default_cur_year, verbose_name='所属年度')),
('contract_start_date', models.DateField(default=electric_power_sale.models.default_year_start_date, verbose_name='合同生效日期')),
('contract_end_date', models.DateField(default=electric_power_sale.models.default_year_end_date, verbose_name='合同结束日期')),
('contract_price_type', models.CharField(choices=[('price_type_common', '常规'), ('price_type_seprate_time', '分时段')], default='price_type_common', max_length=40, verbose_name='电价价方式')),
('price_common', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='常规时段电价(元/KWA)')),
('price_peak', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='峰时段电价(元/KWA)')),
('price_flat', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='平时段电价(元/KWA)')),
('price_valley', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='谷时段电价(元/KWA)')),
('state', models.CharField(default='draft', max_length=40, verbose_name='状态')),
('note', models.TextField(blank=True, null=True, verbose_name='备注1')),
('created_at', models.DateTimeField(default=electric_power_sale.models.default_cur_datetime, verbose_name='录入时间')),
('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='录入人')),
],
),
migrations.CreateModel(
name='MthAdjust',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('mth', models.IntegerField(default=electric_power_sale.models.default_cur_mth, verbose_name='月份')),
('state', models.CharField(default='draft', max_length=40, verbose_name='状态')),
('note', models.TextField(blank=True, null=True, verbose_name='备注')),
('created_at', models.DateTimeField(default=electric_power_sale.models.default_cur_datetime, verbose_name='录入时间')),
('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='录入人')),
('organization', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.organization', verbose_name='所属机构')),
],
),
migrations.CreateModel(
name='MthAdjustLine',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('state', models.CharField(default='draft', max_length=40, verbose_name='状态')),
('note', models.TextField(blank=True, null=True, verbose_name='备注')),
],
),
migrations.AddField(
model_name='agent',
name='created_at',
field=models.DateTimeField(default=electric_power_sale.models.default_cur_datetime, verbose_name='录入时间'),
),
migrations.AddField(
model_name='agent',
name='created_by',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='录入人'),
),
migrations.AlterField(
model_name='customer',
name='organization',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.organization', verbose_name='所属机构'),
),
migrations.CreateModel(
name='MthAdjustLineDetail',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('mth', models.IntegerField(default=electric_power_sale.models.default_cur_mth, verbose_name='月份')),
('previous_plan_common', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='调整前计划电量-常规')),
('previous_plan_flat', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='调整前计划电量-平时段')),
('previous_plan_valley', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='调整前计划电量-谷时段')),
('previous_plan_peak', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='调整前计划电量-峰时段')),
('adjust_plan_common', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量调整-常规')),
('adjust_plan_flat', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量调整-平时段')),
('adjust_plan_valley', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量调整-谷时段')),
('adjust_plan_peak', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量调整-峰时段')),
('state', models.CharField(default='draft', max_length=40, verbose_name='状态')),
('note', models.TextField(blank=True, null=True, verbose_name='备注')),
('mth_adjust_line', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='electric_power_sale.mthadjustline', verbose_name='月度电量调整子表')),
],
),
migrations.AddField(
model_name='mthadjustline',
name='customer',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='electric_power_sale.customer', verbose_name='关联客户'),
),
migrations.AddField(
model_name='mthadjustline',
name='mth_adjust',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='electric_power_sale.mthadjust', verbose_name='月度电量调整主表'),
),
migrations.CreateModel(
name='ContractLine',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('mth', models.IntegerField(default=electric_power_sale.models.default_cur_mth, verbose_name='月份')),
('plan_common', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量-常规')),
('plan_flat', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量-平时段')),
('plan_valley', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量-谷时段')),
('plan_peak', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量-峰时段')),
('adjust_plan_common', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量调整-常规')),
('adjust_plan_flat', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量调整-平时段')),
('adjust_plan_valley', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量调整-谷时段')),
('adjust_plan_peak', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='计划电量调整-峰时段')),
('act_common', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='电量结算-常规')),
('act_flat', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='电量结算-平时段')),
('act_valley', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='电量结算-谷时段')),
('act_peak', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='电量结算-峰时段')),
('price_common', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='常规时段电价(元/KWA)')),
('price_peak', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='峰时段电价(元/KWA)')),
('price_flat', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='平时段电价(元/KWA)')),
('price_valley', models.DecimalField(decimal_places=4, default=0, max_digits=20, verbose_name='谷时段电价(元/KWA)')),
('state', models.CharField(default='draft', max_length=40, verbose_name='状态')),
('note', models.TextField(blank=True, null=True, verbose_name='备注1')),
('contract', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='electric_power_sale.contract', verbose_name='合同')),
],
),
migrations.AddField(
model_name='contract',
name='customer',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='electric_power_sale.customer', verbose_name='关联客户'),
),
migrations.AddField(
model_name='contract',
name='organization',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.organization', verbose_name='所属机构'),
),
]
| 72.572464
| 199
| 0.656615
| 1,181
| 10,015
| 5.316681
| 0.121931
| 0.115624
| 0.111483
| 0.138239
| 0.839943
| 0.836439
| 0.820513
| 0.806816
| 0.806816
| 0.797579
| 0
| 0.022319
| 0.199201
| 10,015
| 137
| 200
| 73.10219
| 0.760599
| 0.004593
| 0
| 0.648855
| 1
| 0
| 0.155012
| 0.021571
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.030534
| 0
| 0.053435
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
42dcb5755e55744e0fa7d78c77a8e24f869943e8
| 104
|
py
|
Python
|
crawler/crawler/services/config/__init__.py
|
amosproj/amos-ss2020-metadata-hub
|
f8434b27b306332c117a8dd20a8a55a3104d0f89
|
[
"MIT"
] | 9
|
2020-04-23T14:22:48.000Z
|
2022-02-25T21:35:05.000Z
|
crawler/crawler/services/config/__init__.py
|
amosproj/amos-ss2020-metadata-hub
|
f8434b27b306332c117a8dd20a8a55a3104d0f89
|
[
"MIT"
] | 42
|
2020-04-24T17:59:33.000Z
|
2022-02-16T01:09:23.000Z
|
crawler/crawler/services/config/__init__.py
|
amosproj/amos-ss2020-metadata-hub
|
f8434b27b306332c117a8dd20a8a55a3104d0f89
|
[
"MIT"
] | 2
|
2020-08-17T11:19:44.000Z
|
2021-04-30T08:32:05.000Z
|
from .typedef import Config
from .parser import ConfigParser
from .parser import ConfigParsingException
| 26
| 42
| 0.855769
| 12
| 104
| 7.416667
| 0.583333
| 0.224719
| 0.359551
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 104
| 3
| 43
| 34.666667
| 0.967391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
42f116c1a97ae3aa32e40cfcb80b11e23697abb4
| 13,917
|
py
|
Python
|
models/blocks.py
|
salmank255/ROADSlowFast
|
e939d8f79fe3eb6f3dd32e967a34530d00f45c8e
|
[
"Apache-2.0"
] | null | null | null |
models/blocks.py
|
salmank255/ROADSlowFast
|
e939d8f79fe3eb6f3dd32e967a34530d00f45c8e
|
[
"Apache-2.0"
] | null | null | null |
models/blocks.py
|
salmank255/ROADSlowFast
|
e939d8f79fe3eb6f3dd32e967a34530d00f45c8e
|
[
"Apache-2.0"
] | null | null | null |
import torch.nn as nn
import torch
class RCU(nn.Module):
def __init__(self, planes, kernel_size=1, stride=1, bias=False):
super(RCU, self).__init__()
# Module for recurrent part
self.conv_whh = nn.Conv3d(
planes, planes, kernel_size=kernel_size, stride=stride, bias=bias)
def forward(self, in_data):
h = in_data[:, :, 0, :, :]
h = h.unsqueeze(2)
out = h
for i in range(1, in_data.size(2)):
h = self.conv_whh(h)
h = (h + in_data[:, :, i, :, :].unsqueeze(2)) / 2.0
out = torch.cat((out, h), 2)
return out
class BottleneckRCN(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, temp_kernal=1, downsample=None):
super(BottleneckRCN, self).__init__()
self.temp_kernal = temp_kernal
temp_pad = 1
if temp_kernal == 1:
temp_pad = 0
self.conv1 = nn.Conv3d(inplanes, planes, kernel_size=(
1, 1, 1), padding=(0, 0, 0), bias=False)
if self.temp_kernal > 1:
self.rcu = RCU(planes, kernel_size=1, stride=1, bias=False)
self.bn1 = nn.BatchNorm3d(planes)
self.conv2 = nn.Conv3d(planes, planes, kernel_size=(1, 3, 3), stride=(
1, stride, stride), padding=(0, 1, 1), bias=False)
self.bn2 = nn.BatchNorm3d(planes)
self.conv3 = nn.Conv3d(
planes, planes * self.expansion, kernel_size=1, bias=False)
self.bn3 = nn.BatchNorm3d(planes * self.expansion)
self.relu = nn.ReLU(inplace=True)
self.downsample = downsample
self.stride = stride
def forward(self, x):
residual = x
# print(x.shape)
out = self.conv1(x)
if self.temp_kernal > 1:
out = self.rcu(out)
out = self.bn1(out)
out = self.relu(out)
out = self.conv2(out)
out = self.bn2(out)
out = self.relu(out)
out = self.conv3(out)
out = self.bn3(out)
# print(out.shape)
if self.downsample is not None:
residual = self.downsample(x)
# print(residual.shape)
out += residual
out = self.relu(out)
return out
class CLSTM(nn.Module):
def __init__(self, planes, kernel_size=1, stride=1, bias=True):
super(CLSTM, self).__init__()
self.hidden_dim = planes
self.recurrent_conv = nn.Conv2d(
planes*2, planes*4, kernel_size=kernel_size, stride=stride, bias=bias)
def forward(self, in_data):
in_shape = in_data.shape
h_curr = torch.zeros(in_shape[0], in_shape[1], in_shape[3], in_shape[4], device=in_data.device)
c_curr = torch.zeros(in_shape[0], in_shape[1], in_shape[3], in_shape[4], device=in_data.device)
out = None
for i in range(in_data.size(2)):
x = torch.cat((in_data[:, :, i, :, :], h_curr), 1)
cx = self.recurrent_conv(x)
it, ft, ot, gt = torch.split(cx, self.hidden_dim, dim=1)
it = torch.sigmoid(it)
ft = torch.sigmoid(ft)
ot = torch.sigmoid(ot)
gt = torch.tanh(gt)
c_curr = ft * c_curr + it * gt
h_curr = ot * torch.tanh(c_curr)
if out is None:
out = h_curr.unsqueeze(2)
else:
out = torch.cat((out, h_curr.unsqueeze(2)), 2)
return out
class BottleneckRCLSTM(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, temp_kernal=1, downsample=None):
super(BottleneckRCLSTM, self).__init__()
self.temp_kernal = temp_kernal
temp_pad = 1
if temp_kernal == 1:
temp_pad = 0
self.conv1 = nn.Conv3d(inplanes, planes, kernel_size=(
1, 1, 1), padding=(0, 0, 0), bias=False)
if self.temp_kernal > 1:
self.clstm = CLSTM(planes, kernel_size=1, stride=1, bias=True)
self.bn1 = nn.BatchNorm3d(planes)
self.conv2 = nn.Conv3d(planes, planes, kernel_size=(1, 3, 3), stride=(
1, stride, stride), padding=(0, 1, 1), bias=False)
self.bn2 = nn.BatchNorm3d(planes)
self.conv3 = nn.Conv3d(
planes, planes * self.expansion, kernel_size=1, bias=False)
self.bn3 = nn.BatchNorm3d(planes * self.expansion)
self.relu = nn.ReLU(inplace=True)
self.downsample = downsample
self.stride = stride
def forward(self, x):
residual = x
# print(x.shape)
out = self.conv1(x)
if self.temp_kernal > 1:
out1 = self.clstm(out)
out = out1 + out
out = self.bn1(out)
out = self.relu(out)
out = self.conv2(out)
out = self.bn2(out)
out = self.relu(out)
out = self.conv3(out)
out = self.bn3(out)
# print(out.shape)
if self.downsample is not None:
residual = self.downsample(x)
# print(residual.shape)
out += residual
out = self.relu(out)
return out
class CGRU(nn.Module):
def __init__(self, planes, kernel_size=1, stride=1, bias=True):
super(CGRU, self).__init__()
self.hidden_dim = planes
self.recurrent_conv_gates = nn.Conv2d(
planes*2, planes*2, kernel_size=kernel_size, stride=stride, bias=bias)
self.recurrent_conv_out = nn.Conv2d(
planes*2, planes, kernel_size=kernel_size, stride=stride, bias=bias)
def forward(self, in_data):
in_shape = in_data.shape
# h_curr = torch.zeros(in_shape[0], in_shape[1], in_shape[3], in_shape[4], device=in_data.device)
# h_curr = torch.zeros(in_shape[0], in_shape[1], in_shape[3], in_shape[4], device=in_data.device)
h_curr = in_data[:,:,0,:,:]
out = None
for i in range(in_data.size(2)):
xin = torch.cat((in_data[:, :, i, :, :], h_curr), 1)
cx = self.recurrent_conv_gates(xin)
update, reset = torch.split(cx, self.hidden_dim, dim=1)
update = torch.sigmoid(update)
reset = torch.sigmoid(reset)
x_out = torch.tanh(self.recurrent_conv_out(torch.cat([in_data[:, :, i, :, :], h_curr * reset], dim=1)))
h_curr = h_curr * (1 - update) + x_out * update
if out is None:
out = h_curr.unsqueeze(2)
else:
out = torch.cat((out, h_curr.unsqueeze(2)), 2)
return out
class BottleneckRCGRU(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, temp_kernal=1, downsample=None):
super(BottleneckRCGRU, self).__init__()
self.temp_kernal = temp_kernal
temp_pad = 1
if temp_kernal == 1:
temp_pad = 0
self.conv1 = nn.Conv3d(inplanes, planes, kernel_size=(
1, 1, 1), padding=(0, 0, 0), bias=False)
if self.temp_kernal > 1:
self.cgru = CGRU(planes, kernel_size=1, stride=1, bias=True)
self.bn1 = nn.BatchNorm3d(planes)
self.conv2 = nn.Conv3d(planes, planes, kernel_size=(1, 3, 3), stride=(
1, stride, stride), padding=(0, 1, 1), bias=False)
self.bn2 = nn.BatchNorm3d(planes)
self.conv3 = nn.Conv3d(
planes, planes * self.expansion, kernel_size=1, bias=False)
self.bn3 = nn.BatchNorm3d(planes * self.expansion)
self.relu = nn.ReLU(inplace=True)
self.downsample = downsample
self.stride = stride
def forward(self, x):
residual = x
# print(x.shape)
out = self.conv1(x)
if self.temp_kernal > 1:
out1 = self.cgru(out)
out = out1 + out
out = self.bn1(out)
out = self.relu(out)
out = self.conv2(out)
out = self.bn2(out)
out = self.relu(out)
out = self.conv3(out)
out = self.bn3(out)
# print(out.shape)
if self.downsample is not None:
residual = self.downsample(x)
# print(residual.shape)
out += residual
out = self.relu(out)
return out
class BottleneckI3D(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, temp_kernal=1, downsample=None):
super(BottleneckI3D, self).__init__()
# self.expansion = 4
temp_pad = 1
if temp_kernal == 1:
temp_pad = 0
self.conv1 = nn.Conv3d(inplanes, planes, kernel_size=(
temp_kernal, 1, 1), padding=(temp_pad, 0, 0), bias=False)
self.bn1 = nn.BatchNorm3d(planes)
self.conv2 = nn.Conv3d(planes, planes, kernel_size=(1, 3, 3), stride=(
1, stride, stride), padding=(0, 1, 1), bias=False)
self.bn2 = nn.BatchNorm3d(planes)
self.conv3 = nn.Conv3d(
planes, planes * self.expansion, kernel_size=1, bias=False)
self.bn3 = nn.BatchNorm3d(planes * self.expansion)
self.relu = nn.ReLU(inplace=True)
self.downsample = downsample
self.stride = stride
def forward(self, x):
residual = x
out = self.conv1(x)
out = self.bn1(out)
out = self.relu(out)
out = self.conv2(out)
out = self.bn2(out)
out = self.relu(out)
out = self.conv3(out)
out = self.bn3(out)
if self.downsample is not None:
residual = self.downsample(x)
out += residual
out = self.relu(out)
return out
class Bottleneck2PD(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, temp_kernal=1, downsample=None):
super(Bottleneck2PD, self).__init__()
self.temp_kernal = temp_kernal
middle_filters = planes
if self.temp_kernal>1:
i = 1 * inplanes * planes * 1 * 1
i /= inplanes * 1 * 1 + 1 * planes
middle_filters = int(i)
print('Middlefilters are 1', middle_filters)
self.conv1 = nn.Conv3d(inplanes, middle_filters,
kernel_size=1, bias=False)
self.bn1 = nn.BatchNorm3d(middle_filters)
if self.temp_kernal > 1:
self.conv1_seprated = nn.Conv3d(
middle_filters, planes, kernel_size=1, bias=False)
self.bn1s = nn.BatchNorm3d(planes)
if self.temp_kernal > 1:
i = 3 * planes * planes * 3 * 3
i /= planes * 3 * 3 + 3 * planes
middle_filters = int(i)
print('Middlefilters are 2', middle_filters)
self.conv2 = nn.Conv3d(planes, middle_filters, kernel_size=(1, 3, 3), stride=(1, stride, stride),
padding=(0, 1, 1), bias=False)
self.bn2 = nn.BatchNorm3d(middle_filters)
if self.temp_kernal > 1:
self.conv2_seprated = nn.Conv3d(middle_filters, planes, kernel_size=(3, 1, 1), stride=(stride, 1, 1),
padding=(1, 0, 0),
bias=False)
self.bn2s = nn.BatchNorm3d(planes)
out_planes = planes * self.expansion
middle_filters = out_planes
if self.temp_kernal > 1:
i = 1 * out_planes * planes * 1 * 1
i /= planes * 1 * 1 + 1 * out_planes
middle_filters = int(i)
self.conv3 = nn.Conv3d(planes, middle_filters,
kernel_size=1, bias=False)
self.bn3 = nn.BatchNorm3d(middle_filters)
if self.temp_kernal > 1:
self.conv3_seprated = nn.Conv3d(
middle_filters, out_planes, kernel_size=1, bias=False)
self.bn3s = nn.BatchNorm3d(out_planes)
self.relu = nn.ReLU(inplace=True)
self.downsample = downsample
self.stride = stride
def forward(self, x):
residual = x
out = self.conv1(x)
out = self.bn1(out)
out = self.relu(out)
if self.temp_kernal>1:
out = self.conv1_seprated(out)
out = self.bn1s(out)
out = self.relu(out)
out = self.conv2(out)
out = self.bn2(out)
out = self.relu(out)
if self.temp_kernal > 1:
out = self.conv2_seprated(out)
out = self.bn2s(out)
out = self.relu(out)
out = self.conv3(out)
out = self.bn3(out)
if self.temp_kernal > 1:
out = self.relu(out)
out = self.conv3_seprated(out)
out = self.bn3s(out)
if self.downsample is not None:
residual = self.downsample(x)
out += residual
out = self.relu(out)
return out
class BottleneckC2D(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, temp_kernal=1, downsample=None):
super(BottleneckC2D, self).__init__()
# self.expansion = 4
self.conv1 = nn.Conv3d(inplanes, planes, kernel_size=1, bias=False)
self.bn1 = nn.BatchNorm3d(planes)
self.conv2 = nn.Conv3d(planes, planes, kernel_size=(1, 3, 3), stride=(
1, stride, stride), padding=(0, 1, 1), bias=False)
self.bn2 = nn.BatchNorm3d(planes)
self.conv3 = nn.Conv3d(
planes, planes * self.expansion, kernel_size=1, bias=False)
self.bn3 = nn.BatchNorm3d(planes * self.expansion)
self.relu = nn.ReLU(inplace=True)
self.downsample = downsample
self.stride = stride
# self.apply(c2_msra_fill)
def forward(self, x):
residual = x
out = self.conv1(x)
out = self.bn1(out)
out = self.relu(out)
out = self.conv2(out)
out = self.bn2(out)
out = self.relu(out)
out = self.conv3(out)
out = self.bn3(out)
if self.downsample is not None:
residual = self.downsample(x)
out += residual
out = self.relu(out)
return out
| 33.615942
| 115
| 0.556873
| 1,815
| 13,917
| 4.131129
| 0.057851
| 0.059749
| 0.060016
| 0.03921
| 0.856095
| 0.825687
| 0.82382
| 0.804348
| 0.745799
| 0.721392
| 0
| 0.03668
| 0.322196
| 13,917
| 413
| 116
| 33.697337
| 0.758189
| 0.03176
| 0
| 0.700617
| 0
| 0
| 0.002823
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055556
| false
| 0
| 0.006173
| 0
| 0.135802
| 0.006173
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6e4abd7743e424c5e80cf44c349878bc63ec184f
| 119
|
py
|
Python
|
Python practice/Mit opencourceware(2.7)/first.py
|
chiranjeevbitp/Python27new
|
d366efee57857402bae16cabf1df94c657490750
|
[
"bzip2-1.0.6"
] | null | null | null |
Python practice/Mit opencourceware(2.7)/first.py
|
chiranjeevbitp/Python27new
|
d366efee57857402bae16cabf1df94c657490750
|
[
"bzip2-1.0.6"
] | null | null | null |
Python practice/Mit opencourceware(2.7)/first.py
|
chiranjeevbitp/Python27new
|
d366efee57857402bae16cabf1df94c657490750
|
[
"bzip2-1.0.6"
] | null | null | null |
y= raw_input('enter a nuber: ')
print type(y)
print y
y =float(raw_input('enter a nuber: '))
print type(y)
print y
| 19.833333
| 39
| 0.663866
| 23
| 119
| 3.347826
| 0.391304
| 0.207792
| 0.337662
| 0.363636
| 0.909091
| 0.909091
| 0.909091
| 0.909091
| 0.909091
| 0.909091
| 0
| 0
| 0.184874
| 119
| 6
| 40
| 19.833333
| 0.793814
| 0
| 0
| 0.666667
| 0
| 0
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.666667
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 13
|
281123b336b60f59823e227e281fa1cdbffc3b7f
| 1,813
|
py
|
Python
|
backend/benefit/applications/migrations/0016_benefit_amount.py
|
jannetasa/yjdh
|
5d86a56c722dfbcee03110f66c7e7ddbea966db9
|
[
"MIT"
] | 2
|
2021-05-10T09:28:35.000Z
|
2021-05-17T12:15:34.000Z
|
backend/benefit/applications/migrations/0016_benefit_amount.py
|
jannetasa/yjdh
|
5d86a56c722dfbcee03110f66c7e7ddbea966db9
|
[
"MIT"
] | 931
|
2021-05-21T15:24:35.000Z
|
2022-03-31T20:07:40.000Z
|
backend/benefit/applications/migrations/0016_benefit_amount.py
|
jannetasa/yjdh
|
5d86a56c722dfbcee03110f66c7e7ddbea966db9
|
[
"MIT"
] | 6
|
2021-07-06T11:07:02.000Z
|
2022-02-07T12:42:21.000Z
|
# Generated by Django 3.2.4 on 2021-08-24 06:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("applications", "0015_application_batch_api"),
]
operations = [
migrations.AddField(
model_name="application",
name="calculated_benefit_amount",
field=models.DecimalField(
blank=True,
decimal_places=2,
max_digits=8,
null=True,
verbose_name="amount of the benefit granted, calculated by the system",
),
),
migrations.AddField(
model_name="application",
name="manual_benefit_amount",
field=models.DecimalField(
blank=True,
decimal_places=2,
max_digits=8,
null=True,
verbose_name="amount of the benefit manually entered by the application handler",
),
),
migrations.AddField(
model_name="historicalapplication",
name="calculated_benefit_amount",
field=models.DecimalField(
blank=True,
decimal_places=2,
max_digits=8,
null=True,
verbose_name="amount of the benefit granted, calculated by the system",
),
),
migrations.AddField(
model_name="historicalapplication",
name="manual_benefit_amount",
field=models.DecimalField(
blank=True,
decimal_places=2,
max_digits=8,
null=True,
verbose_name="amount of the benefit manually entered by the application handler",
),
),
]
| 31.258621
| 97
| 0.530061
| 163
| 1,813
| 5.730061
| 0.319018
| 0.077088
| 0.098501
| 0.115632
| 0.830835
| 0.830835
| 0.704497
| 0.704497
| 0.704497
| 0.704497
| 0
| 0.024434
| 0.390513
| 1,813
| 57
| 98
| 31.807018
| 0.820814
| 0.024821
| 0
| 0.862745
| 1
| 0
| 0.245753
| 0.0906
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.019608
| 0
| 0.078431
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
28152a5fdc8a3b60562186083ccfc2b96e0d5890
| 241
|
py
|
Python
|
scripts/item/consume_2436741.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 54
|
2019-04-16T23:24:48.000Z
|
2021-12-18T11:41:50.000Z
|
scripts/item/consume_2436741.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 3
|
2019-05-19T15:19:41.000Z
|
2020-04-27T16:29:16.000Z
|
scripts/item/consume_2436741.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 49
|
2020-11-25T23:29:16.000Z
|
2022-03-26T16:20:24.000Z
|
# Created by MechAviv
# Chinese Text Damage Skin (30 Day) | (2436741)
if sm.addDamageSkin(2436741):
sm.chat("'Chinese Text Damage Skin (30 Day)' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem()
| 48.2
| 120
| 0.726141
| 36
| 241
| 4.861111
| 0.638889
| 0.228571
| 0.194286
| 0.24
| 0.297143
| 0.297143
| 0
| 0
| 0
| 0
| 0
| 0.09
| 0.170124
| 241
| 5
| 121
| 48.2
| 0.785
| 0.26971
| 0
| 0
| 0
| 0.333333
| 0.603448
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
95467f48eee829b2cc2f0ddb435cc116a07d9b51
| 3,409
|
py
|
Python
|
api/tests/test_company_upload.py
|
matchd-ch/matchd-backend
|
84be4aab1b4708cae50a8988301b15df877c8db0
|
[
"Apache-2.0"
] | 1
|
2022-03-03T09:55:57.000Z
|
2022-03-03T09:55:57.000Z
|
api/tests/test_company_upload.py
|
matchd-ch/matchd-backend
|
84be4aab1b4708cae50a8988301b15df877c8db0
|
[
"Apache-2.0"
] | 7
|
2022-02-09T10:44:53.000Z
|
2022-03-28T03:29:43.000Z
|
api/tests/test_company_upload.py
|
matchd-ch/matchd-backend
|
84be4aab1b4708cae50a8988301b15df877c8db0
|
[
"Apache-2.0"
] | null | null | null |
import pytest
from django.contrib.auth.models import AnonymousUser
from db.models import AttachmentKey
@pytest.mark.django_db
def test_upload_company_image(login, user_employee, upload, file_image_jpg, attachments_for_user):
login(user_employee)
data, errors = upload(user_employee, AttachmentKey.COMPANY_AVATAR, file_image_jpg)
assert data is not None
assert errors is None
assert data.get('upload') is not None
assert data.get('upload').get('success')
attachments = attachments_for_user(user_employee, AttachmentKey.COMPANY_AVATAR)
assert len(attachments) == 1
@pytest.mark.django_db
def test_upload_company_document(login, user_employee, upload, file_document_pdf,
attachments_for_user):
login(user_employee)
data, errors = upload(user_employee, AttachmentKey.COMPANY_DOCUMENTS, file_document_pdf)
assert data is not None
assert errors is None
assert data.get('upload') is not None
assert data.get('upload').get('success') is False
errors = data.get('upload').get('errors')
assert errors is not None
assert 'file' in errors
attachments = attachments_for_user(user_employee, AttachmentKey.COMPANY_DOCUMENTS)
assert len(attachments) == 0
@pytest.mark.django_db
def test_upload_company_video(login, user_employee, upload, file_video_mp4, attachments_for_user):
login(user_employee)
data, errors = upload(user_employee, AttachmentKey.COMPANY_DOCUMENTS, file_video_mp4)
assert data is not None
assert errors is None
assert data.get('upload') is not None
assert data.get('upload').get('success')
attachments = attachments_for_user(user_employee, AttachmentKey.COMPANY_DOCUMENTS)
assert len(attachments) == 1
@pytest.mark.django_db
def test_upload_company_without_login(upload, file_image_jpg):
data, errors = upload(AnonymousUser(), AttachmentKey.COMPANY_AVATAR, file_image_jpg)
assert data is not None
assert errors is not None
assert data.get('upload') is None
@pytest.mark.django_db
def test_upload_student_avatar_as_company(login, user_employee, upload, file_image_jpg,
attachments_for_user):
login(user_employee)
data, errors = upload(user_employee, AttachmentKey.STUDENT_AVATAR, file_image_jpg)
assert data is not None
assert errors is None
assert data.get('upload') is not None
assert data.get('upload').get('success') is False
errors = data.get('upload').get('errors')
assert errors is not None
assert 'key' in errors
attachments = attachments_for_user(user_employee, AttachmentKey.STUDENT_AVATAR)
assert len(attachments) == 0
@pytest.mark.django_db
def test_upload_too_many_uploads(login, user_employee, upload, file_image_jpg,
attachments_for_user):
login(user_employee)
upload(user_employee, AttachmentKey.COMPANY_AVATAR, file_image_jpg)
data, errors = upload(user_employee, AttachmentKey.COMPANY_AVATAR, file_image_jpg)
assert data is not None
assert errors is None
assert data.get('upload') is not None
assert data.get('upload').get('success') is False
errors = data.get('upload').get('errors')
assert errors is not None
assert 'key' in errors
attachments = attachments_for_user(user_employee, AttachmentKey.COMPANY_AVATAR)
assert len(attachments) == 1
| 35.884211
| 98
| 0.736286
| 457
| 3,409
| 5.258206
| 0.107221
| 0.104869
| 0.05618
| 0.093633
| 0.908448
| 0.877653
| 0.865169
| 0.841448
| 0.822722
| 0.799417
| 0
| 0.002505
| 0.180405
| 3,409
| 94
| 99
| 36.265957
| 0.857552
| 0
| 0
| 0.763889
| 0
| 0
| 0.043121
| 0
| 0
| 0
| 0
| 0
| 0.472222
| 1
| 0.083333
| false
| 0
| 0.041667
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
959e5d8edc5f41df17eb1794debd929404789e8e
| 15,528
|
py
|
Python
|
tests/unittests/test_team.py
|
ZPascal/grafana_api_sdk
|
97c347790200e8e9a2aafd47e322297aa97b964c
|
[
"Apache-2.0"
] | 2
|
2022-02-01T20:18:48.000Z
|
2022-02-02T01:22:14.000Z
|
tests/unittests/test_team.py
|
ZPascal/grafana_api_sdk
|
97c347790200e8e9a2aafd47e322297aa97b964c
|
[
"Apache-2.0"
] | 5
|
2022-01-12T06:55:54.000Z
|
2022-03-26T13:35:50.000Z
|
tests/unittests/test_team.py
|
ZPascal/grafana_api_sdk
|
97c347790200e8e9a2aafd47e322297aa97b964c
|
[
"Apache-2.0"
] | null | null | null |
from unittest import TestCase
from unittest.mock import MagicMock, Mock, patch
from src.grafana_api.model import APIModel, TeamObject
from src.grafana_api.team import Team
class TeamTestCase(TestCase):
@patch("src.grafana_api.api.Api.call_the_api")
def test_search_team(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"totalCount": 1}))
call_the_api_mock.return_value = mock
self.assertEqual(dict({"totalCount": 1}), team.search_team())
@patch("src.grafana_api.api.Api.call_the_api")
def test_search_team_query(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"totalCount": 1}))
call_the_api_mock.return_value = mock
self.assertEqual(
dict({"totalCount": 1}),
team.search_team(query="Test"),
)
@patch("src.grafana_api.api.Api.call_the_api")
def test_search_team_no_team(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.search_team()
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_by_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"id": 1}))
call_the_api_mock.return_value = mock
self.assertEqual(dict({"id": 1}), team.get_team_by_id(1))
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_by_id_no_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.get_team_by_id(0)
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_by_id_no_team(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.get_team_by_id(1)
@patch("src.grafana_api.api.Api.call_the_api")
def test_add_team(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
team_object: TeamObject = TeamObject(name="test", email="test", org_id=1)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Team created", "teamId": 1}))
call_the_api_mock.return_value = mock
self.assertEqual(1, team.add_team(team_object))
@patch("src.grafana_api.api.Api.call_the_api")
def test_add_team_no_team(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.add_team(None)
@patch("src.grafana_api.api.Api.call_the_api")
def test_add_team_add_not_possible(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
team_object: TeamObject = TeamObject(name="test", email="test", org_id=1)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Test"}))
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.add_team(team_object)
@patch("src.grafana_api.api.Api.call_the_api")
def test_update_team(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Team updated"}))
call_the_api_mock.return_value = mock
self.assertEqual(None, team.update_team(1, "test", "test"))
@patch("src.grafana_api.api.Api.call_the_api")
def test_update_team_no_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.update_team(0, None, None)
@patch("src.grafana_api.api.Api.call_the_api")
def test_update_team_update_not_possible(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Test"}))
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.update_team(1, "test", "test")
@patch("src.grafana_api.api.Api.call_the_api")
def test_delete_team_by_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Team deleted"}))
call_the_api_mock.return_value = mock
self.assertEqual(None, team.delete_team_by_id(1))
@patch("src.grafana_api.api.Api.call_the_api")
def test_delete_team_by_id_no_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.delete_team_by_id(0)
@patch("src.grafana_api.api.Api.call_the_api")
def test_delete_team_by_id_delete_not_possible(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Test"}))
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.delete_team_by_id(1)
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_members(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=list([{"userId": 1}]))
call_the_api_mock.return_value = mock
self.assertEqual(list([{"userId": 1}]), team.get_team_members(1))
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_members_no_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=list())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.get_team_members(0)
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_members_no_team_members(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=list())
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.get_team_members(1)
@patch("src.grafana_api.api.Api.call_the_api")
def test_add_team_member(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Member added to Team"}))
call_the_api_mock.return_value = mock
self.assertEqual(None, team.add_team_member(1, 1))
@patch("src.grafana_api.api.Api.call_the_api")
def test_add_team_member_no_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.add_team_member(0, 0)
@patch("src.grafana_api.api.Api.call_the_api")
def test_add_team_member_add_not_possible(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Test"}))
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.add_team_member(1, 1)
@patch("src.grafana_api.api.Api.call_the_api")
def test_delete_team_member(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Team Member removed"}))
call_the_api_mock.return_value = mock
self.assertEqual(None, team.delete_team_member(1, 1))
@patch("src.grafana_api.api.Api.call_the_api")
def test_delete_team_member_no_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.delete_team_member(0, 0)
@patch("src.grafana_api.api.Api.call_the_api")
def test_delete_team_member_deletion_not_possible(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Test"}))
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.delete_team_member(1, 1)
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_preferences(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(
return_value=dict(
{"theme": "light", "homeDashboardId": "Test", "timezone": "utc"}
)
)
call_the_api_mock.return_value = mock
self.assertEqual(
dict({"theme": "light", "homeDashboardId": "Test", "timezone": "utc"}),
team.get_team_preferences(1),
)
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_preferences_no_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.get_team_preferences(0)
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_team_preferences_no_preferences_available(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.get_team_preferences(1)
@patch("src.grafana_api.api.Api.call_the_api")
def test_update_team_preferences(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Preferences updated"}))
call_the_api_mock.return_value = mock
self.assertEqual(None, team.update_team_preferences(1, 1))
@patch("src.grafana_api.api.Api.call_the_api")
def test_update_team_preferences_no_id(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict())
call_the_api_mock.return_value = mock
with self.assertRaises(ValueError):
team.update_team_preferences(0)
@patch("src.grafana_api.api.Api.call_the_api")
def test_update_team_preferences_update_not_possible(self, call_the_api_mock):
model: APIModel = APIModel(
host=MagicMock(), username=MagicMock(), password=MagicMock()
)
team: Team = Team(grafana_api_model=model)
mock: Mock = Mock()
mock.json = Mock(return_value=dict({"message": "Test"}))
call_the_api_mock.return_value = mock
with self.assertRaises(Exception):
team.update_team_preferences(1)
| 33.830065
| 85
| 0.642903
| 1,958
| 15,528
| 4.797753
| 0.036772
| 0.067064
| 0.095806
| 0.089419
| 0.967213
| 0.964765
| 0.964765
| 0.956249
| 0.956249
| 0.956249
| 0
| 0.003639
| 0.239052
| 15,528
| 458
| 86
| 33.90393
| 0.791385
| 0
| 0
| 0.666667
| 0
| 0
| 0.094024
| 0.069552
| 0
| 0
| 0
| 0
| 0.089286
| 1
| 0.089286
| false
| 0.089286
| 0.011905
| 0
| 0.104167
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
251b9cbf15005781ce5a7a3824d7cf3c522c2e7b
| 98,693
|
py
|
Python
|
tests/EVM/test_EVMSIGNEXTEND.py
|
mroll/manticore
|
d731562f7761ed9437cce406b24c815303de370c
|
[
"Apache-2.0"
] | null | null | null |
tests/EVM/test_EVMSIGNEXTEND.py
|
mroll/manticore
|
d731562f7761ed9437cce406b24c815303de370c
|
[
"Apache-2.0"
] | null | null | null |
tests/EVM/test_EVMSIGNEXTEND.py
|
mroll/manticore
|
d731562f7761ed9437cce406b24c815303de370c
|
[
"Apache-2.0"
] | null | null | null |
import struct
import unittest
import json
from manticore.platforms import evm
from manticore.core import state
from manticore.core.smtlib import Operators, ConstraintSet
import os
class EVMTest_SIGNEXTEND(unittest.TestCase):
_multiprocess_can_split_ = True
maxDiff=None
def _execute(self, new_vm):
last_returned = None
last_exception = None
try:
new_vm.execute()
except evm.Stop, e:
last_exception = "STOP"
except evm.NotEnoughGas:
last_exception = "OOG"
except evm.StackUnderflow:
last_exception = "INSUFICIENT STACK"
except evm.InvalidOpcode:
last_exception = "INVALID"
except evm.SelfDestruct:
last_exception = "SUICIDED"
except evm.Return as e:
last_exception = "RETURN"
last_returned = e.data
except evm.Revert:
last_exception = "REVERT"
return last_exception, last_returned
def test_SIGNEXTEND_1(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_2(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_3(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_4(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_5(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_6(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_7(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_8(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_9(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639935L])
def test_SIGNEXTEND_10(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0])
def test_SIGNEXTEND_11(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0])
def test_SIGNEXTEND_12(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0])
def test_SIGNEXTEND_13(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0])
def test_SIGNEXTEND_14(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0])
def test_SIGNEXTEND_15(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0L])
def test_SIGNEXTEND_16(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0])
def test_SIGNEXTEND_17(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0])
def test_SIGNEXTEND_18(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(0)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0])
def test_SIGNEXTEND_19(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1])
def test_SIGNEXTEND_20(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1])
def test_SIGNEXTEND_21(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1])
def test_SIGNEXTEND_22(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1])
def test_SIGNEXTEND_23(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1])
def test_SIGNEXTEND_24(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1L])
def test_SIGNEXTEND_25(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1])
def test_SIGNEXTEND_26(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1])
def test_SIGNEXTEND_27(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(1)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [1])
def test_SIGNEXTEND_28(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [57896044618658097711785492504343953926634992332820282019728792003956564819952L])
def test_SIGNEXTEND_29(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639920L])
def test_SIGNEXTEND_30(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639920L])
def test_SIGNEXTEND_31(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [57896044618658097711785492504343953926634992332820282019728792003956564819952L])
def test_SIGNEXTEND_32(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [57896044618658097711785492504343953926634992332820282019728792003956564819952L])
def test_SIGNEXTEND_33(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [115792089237316195423570985008687907853269984665640564039457584007913129639920L])
def test_SIGNEXTEND_34(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [57896044618658097711785492504343953926634992332820282019728792003956564819952L])
def test_SIGNEXTEND_35(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [57896044618658097711785492504343953926634992332820282019728792003956564819952L])
def test_SIGNEXTEND_36(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [57896044618658097711785492504343953926634992332820282019728792003956564819952L])
def test_SIGNEXTEND_37(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [3618502788666131106986593281521497120414687020801267626233049500247285301263L])
def test_SIGNEXTEND_38(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [15L])
def test_SIGNEXTEND_39(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [15L])
def test_SIGNEXTEND_40(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [3618502788666131106986593281521497120414687020801267626233049500247285301263L])
def test_SIGNEXTEND_41(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [3618502788666131106986593281521497120414687020801267626233049500247285301263L])
def test_SIGNEXTEND_42(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [15L])
def test_SIGNEXTEND_43(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [3618502788666131106986593281521497120414687020801267626233049500247285301263L])
def test_SIGNEXTEND_44(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [3618502788666131106986593281521497120414687020801267626233049500247285301263L])
def test_SIGNEXTEND_45(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [3618502788666131106986593281521497120414687020801267626233049500247285301263L])
def test_SIGNEXTEND_46(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16])
def test_SIGNEXTEND_47(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16])
def test_SIGNEXTEND_48(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16])
def test_SIGNEXTEND_49(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16])
def test_SIGNEXTEND_50(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16])
def test_SIGNEXTEND_51(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16L])
def test_SIGNEXTEND_52(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16])
def test_SIGNEXTEND_53(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16])
def test_SIGNEXTEND_54(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(16)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [16])
def test_SIGNEXTEND_55(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32])
def test_SIGNEXTEND_56(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32])
def test_SIGNEXTEND_57(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32])
def test_SIGNEXTEND_58(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32])
def test_SIGNEXTEND_59(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32])
def test_SIGNEXTEND_60(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32L])
def test_SIGNEXTEND_61(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32])
def test_SIGNEXTEND_62(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32])
def test_SIGNEXTEND_63(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(32)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [32])
def test_SIGNEXTEND_64(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48])
def test_SIGNEXTEND_65(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48])
def test_SIGNEXTEND_66(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48])
def test_SIGNEXTEND_67(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48])
def test_SIGNEXTEND_68(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48])
def test_SIGNEXTEND_69(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48L])
def test_SIGNEXTEND_70(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48])
def test_SIGNEXTEND_71(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48])
def test_SIGNEXTEND_72(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(48)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [48])
def test_SIGNEXTEND_73(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(115792089237316195423570985008687907853269984665640564039457584007913129639935L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [6089590155545428825848686802984512581899718912L])
def test_SIGNEXTEND_74(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(0)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [0L])
def test_SIGNEXTEND_75(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(1)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [4352L])
def test_SIGNEXTEND_76(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(57896044618658097711785492504343953926634992332820282019728792003956564819952L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [6089590155545428825848686802984512581899718912L])
def test_SIGNEXTEND_77(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(3618502788666131106986593281521497120414687020801267626233049500247285301263L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [6089590155545428825848686802984512581899718912L])
def test_SIGNEXTEND_78(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(16)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [5807485728784016443108259966835510808832L])
def test_SIGNEXTEND_79(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(32)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [6089590155545428825848686802984512581899718912L])
def test_SIGNEXTEND_80(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(48)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [6089590155545428825848686802984512581899718912L])
def test_SIGNEXTEND_81(self):
#Make the constraint store
constraints = ConstraintSet()
#make the ethereum world state
world = evm.EVMWorld(constraints)
address=0x222222222222222222222222222222222222200
caller=origin=0x111111111111111111111111111111111111100
price=0
value=10000
bytecode='\x0b'
data = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
header = { 'coinbase': 0,
'timestamp': 0,
'number': 0,
'difficulty': 0,
'gaslimit': 0,
}
gas = 1000000
new_vm = evm.EVM(constraints, address, origin, price, data, caller, value, bytecode, header, gas=gas, global_storage=world.storage)
new_vm._push(6089590155545428825848686802984512581899718912L)
new_vm._push(6089590155545428825848686802984512581899718912L)
last_exception, last_returned = self._execute(new_vm)
self.assertEqual(last_exception, None)
self.assertEqual(new_vm.pc, 1)
self.assertEqual(new_vm.stack, [6089590155545428825848686802984512581899718912L])
if __name__ == '__main__':
unittest.main()
| 42.779801
| 143
| 0.574235
| 8,049
| 98,693
| 6.88657
| 0.022363
| 0.044019
| 0.026303
| 0.058452
| 0.982537
| 0.982537
| 0.982537
| 0.982537
| 0.982537
| 0.982537
| 0
| 0.243578
| 0.349569
| 98,693
| 2,306
| 144
| 42.798352
| 0.619912
| 0.044319
| 0
| 0.893987
| 0
| 0
| 0.065147
| 0.025808
| 0
| 0
| 0.070543
| 0
| 0.128165
| 0
| null | null | 0
| 0.003692
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
255025d2ef4d9bfa9b734e532b8743f4da26379e
| 131
|
py
|
Python
|
app/component/topic/__init__.py
|
melphi/kafkaform
|
391c4c70b6aff9fd5ad703dcf4b6e863e92d53b6
|
[
"MIT"
] | null | null | null |
app/component/topic/__init__.py
|
melphi/kafkaform
|
391c4c70b6aff9fd5ad703dcf4b6e863e92d53b6
|
[
"MIT"
] | null | null | null |
app/component/topic/__init__.py
|
melphi/kafkaform
|
391c4c70b6aff9fd5ad703dcf4b6e863e92d53b6
|
[
"MIT"
] | null | null | null |
from app.component.topic.parser import *
from app.component.topic.resolver import *
from app.component.topic.transitioner import *
| 32.75
| 46
| 0.816794
| 18
| 131
| 5.944444
| 0.444444
| 0.196262
| 0.448598
| 0.588785
| 0.504673
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091603
| 131
| 3
| 47
| 43.666667
| 0.89916
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
255d6a66001eb4f8ec32511b7a33445aae76a23d
| 428
|
py
|
Python
|
src/SocialNetwork_API/arango_services/__init__.py
|
HoangNguyenHuy/SocialNetwork
|
495062d9b85cfdaa3df41002c2c4a88ab4b53446
|
[
"MIT"
] | null | null | null |
src/SocialNetwork_API/arango_services/__init__.py
|
HoangNguyenHuy/SocialNetwork
|
495062d9b85cfdaa3df41002c2c4a88ab4b53446
|
[
"MIT"
] | null | null | null |
src/SocialNetwork_API/arango_services/__init__.py
|
HoangNguyenHuy/SocialNetwork
|
495062d9b85cfdaa3df41002c2c4a88ab4b53446
|
[
"MIT"
] | null | null | null |
from SocialNetwork_API.arango_services.base import ArangoBaseService
from SocialNetwork_API.arango_services.user import ArangoUserService
from SocialNetwork_API.arango_services.data import ArangoDataService
from SocialNetwork_API.arango_services.post import ArangoPostService
from SocialNetwork_API.arango_services.comment import ArangoCommentService
from SocialNetwork_API.arango_services.download import ArangoDownloadService
| 61.142857
| 76
| 0.915888
| 48
| 428
| 7.916667
| 0.375
| 0.268421
| 0.315789
| 0.410526
| 0.536842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056075
| 428
| 6
| 77
| 71.333333
| 0.940594
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
c29abc49da3942a3aff816611782e8048de3110b
| 37,967
|
py
|
Python
|
pyboto3/applicationautoscaling.py
|
thecraftman/pyboto3
|
653a0db2b00b06708334431da8f169d1f7c7734f
|
[
"MIT"
] | null | null | null |
pyboto3/applicationautoscaling.py
|
thecraftman/pyboto3
|
653a0db2b00b06708334431da8f169d1f7c7734f
|
[
"MIT"
] | null | null | null |
pyboto3/applicationautoscaling.py
|
thecraftman/pyboto3
|
653a0db2b00b06708334431da8f169d1f7c7734f
|
[
"MIT"
] | null | null | null |
'''
The MIT License (MIT)
Copyright (c) 2016 WavyCloud
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.
'''
def can_paginate(operation_name=None):
"""
Check if an operation can be paginated.
:type operation_name: string
:param operation_name: The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo, and you'd normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator('create_foo').
"""
pass
def delete_scaling_policy(PolicyName=None, ServiceNamespace=None, ResourceId=None, ScalableDimension=None):
"""
Deletes the specified Application Auto Scaling scaling policy.
Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action.
To create a scaling policy or update an existing one, see PutScalingPolicy .
See also: AWS API Documentation
Examples
This example deletes a scaling policy for the Amazon ECS service called web-app, which is running in the default cluster.
Expected Output:
:example: response = client.delete_scaling_policy(
PolicyName='string',
ServiceNamespace='ecs'|'elasticmapreduce'|'ec2'|'appstream',
ResourceId='string',
ScalableDimension='ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity'
)
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the scaling policy.
:type ServiceNamespace: string
:param ServiceNamespace: [REQUIRED]
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
:type ResourceId: string
:param ResourceId: [REQUIRED]
The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
:type ScalableDimension: string
:param ScalableDimension: [REQUIRED]
The scalable dimension. This string consists of the service namespace, resource type, and scaling property.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.
appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet.
:rtype: dict
:return: {}
:returns:
(dict) --
"""
pass
def deregister_scalable_target(ServiceNamespace=None, ResourceId=None, ScalableDimension=None):
"""
Deregisters a scalable target.
Deregistering a scalable target deletes the scaling policies that are associated with it.
To create a scalable target or update an existing one, see RegisterScalableTarget .
See also: AWS API Documentation
Examples
This example deregisters a scalable target for an Amazon ECS service called web-app that is running in the default cluster.
Expected Output:
:example: response = client.deregister_scalable_target(
ServiceNamespace='ecs'|'elasticmapreduce'|'ec2'|'appstream',
ResourceId='string',
ScalableDimension='ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity'
)
:type ServiceNamespace: string
:param ServiceNamespace: [REQUIRED]
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
:type ResourceId: string
:param ResourceId: [REQUIRED]
The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
:type ScalableDimension: string
:param ScalableDimension: [REQUIRED]
The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.
appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet.
:rtype: dict
:return: {}
:returns:
(dict) --
"""
pass
def describe_scalable_targets(ServiceNamespace=None, ResourceIds=None, ScalableDimension=None, MaxResults=None, NextToken=None):
"""
Provides descriptive information about the scalable targets in the specified namespace.
You can filter the results using the ResourceIds and ScalableDimension parameters.
To create a scalable target or update an existing one, see RegisterScalableTarget . If you are no longer using a scalable target, you can deregister it using DeregisterScalableTarget .
See also: AWS API Documentation
Examples
This example describes the scalable targets for the ecs service namespace.
Expected Output:
:example: response = client.describe_scalable_targets(
ServiceNamespace='ecs'|'elasticmapreduce'|'ec2'|'appstream',
ResourceIds=[
'string',
],
ScalableDimension='ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity',
MaxResults=123,
NextToken='string'
)
:type ServiceNamespace: string
:param ServiceNamespace: [REQUIRED]
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
:type ResourceIds: list
:param ResourceIds: The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID.
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
(string) --
:type ScalableDimension: string
:param ScalableDimension: The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.
appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet.
:type MaxResults: integer
:param MaxResults: The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50.
If this parameter is used, the operation returns up to MaxResults results at a time, along with a NextToken value. To get the next set of results, include the NextToken value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a NextToken value, if applicable.
:type NextToken: string
:param NextToken: The token for the next set of results.
:rtype: dict
:return: {
'ScalableTargets': [
{
'ServiceNamespace': 'ecs'|'elasticmapreduce'|'ec2'|'appstream',
'ResourceId': 'string',
'ScalableDimension': 'ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity',
'MinCapacity': 123,
'MaxCapacity': 123,
'RoleARN': 'string',
'CreationTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
:returns:
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
"""
pass
def describe_scaling_activities(ServiceNamespace=None, ResourceId=None, ScalableDimension=None, MaxResults=None, NextToken=None):
"""
Provides descriptive information about the scaling activities in the specified namespace from the previous six weeks.
You can filter the results using the ResourceId and ScalableDimension parameters.
Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the scaling policies for a service namespace, see DescribeScalingPolicies . To create a scaling policy or update an existing one, see PutScalingPolicy .
See also: AWS API Documentation
Examples
This example describes the scaling activities for an Amazon ECS service called web-app that is running in the default cluster.
Expected Output:
:example: response = client.describe_scaling_activities(
ServiceNamespace='ecs'|'elasticmapreduce'|'ec2'|'appstream',
ResourceId='string',
ScalableDimension='ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity',
MaxResults=123,
NextToken='string'
)
:type ServiceNamespace: string
:param ServiceNamespace: [REQUIRED]
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
:type ResourceId: string
:param ResourceId: The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID.
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
:type ScalableDimension: string
:param ScalableDimension: The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.
appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet.
:type MaxResults: integer
:param MaxResults: The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50.
If this parameter is used, the operation returns up to MaxResults results at a time, along with a NextToken value. To get the next set of results, include the NextToken value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a NextToken value, if applicable.
:type NextToken: string
:param NextToken: The token for the next set of results.
:rtype: dict
:return: {
'ScalingActivities': [
{
'ActivityId': 'string',
'ServiceNamespace': 'ecs'|'elasticmapreduce'|'ec2'|'appstream',
'ResourceId': 'string',
'ScalableDimension': 'ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity',
'Description': 'string',
'Cause': 'string',
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'StatusCode': 'Pending'|'InProgress'|'Successful'|'Overridden'|'Unfulfilled'|'Failed',
'StatusMessage': 'string',
'Details': 'string'
},
],
'NextToken': 'string'
}
:returns:
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
"""
pass
def describe_scaling_policies(PolicyNames=None, ServiceNamespace=None, ResourceId=None, ScalableDimension=None, MaxResults=None, NextToken=None):
"""
Provides descriptive information about the scaling policies in the specified namespace.
You can filter the results using the ResourceId , ScalableDimension , and PolicyNames parameters.
To create a scaling policy or update an existing one, see PutScalingPolicy . If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy .
See also: AWS API Documentation
Examples
This example describes the scaling policies for the ecs service namespace.
Expected Output:
:example: response = client.describe_scaling_policies(
PolicyNames=[
'string',
],
ServiceNamespace='ecs'|'elasticmapreduce'|'ec2'|'appstream',
ResourceId='string',
ScalableDimension='ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity',
MaxResults=123,
NextToken='string'
)
:type PolicyNames: list
:param PolicyNames: The names of the scaling policies to describe.
(string) --
:type ServiceNamespace: string
:param ServiceNamespace: [REQUIRED]
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
:type ResourceId: string
:param ResourceId: The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID.
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
:type ScalableDimension: string
:param ScalableDimension: The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.
appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet.
:type MaxResults: integer
:param MaxResults: The maximum number of scalable target results. This value can be between 1 and 50. The default value is 50.
If this parameter is used, the operation returns up to MaxResults results at a time, along with a NextToken value. To get the next set of results, include the NextToken value in a subsequent call. If this parameter is not used, the operation returns up to 50 results and a NextToken value, if applicable.
:type NextToken: string
:param NextToken: The token for the next set of results.
:rtype: dict
:return: {
'ScalingPolicies': [
{
'PolicyARN': 'string',
'PolicyName': 'string',
'ServiceNamespace': 'ecs'|'elasticmapreduce'|'ec2'|'appstream',
'ResourceId': 'string',
'ScalableDimension': 'ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity',
'PolicyType': 'StepScaling',
'StepScalingPolicyConfiguration': {
'AdjustmentType': 'ChangeInCapacity'|'PercentChangeInCapacity'|'ExactCapacity',
'StepAdjustments': [
{
'MetricIntervalLowerBound': 123.0,
'MetricIntervalUpperBound': 123.0,
'ScalingAdjustment': 123
},
],
'MinAdjustmentMagnitude': 123,
'Cooldown': 123,
'MetricAggregationType': 'Average'|'Minimum'|'Maximum'
},
'Alarms': [
{
'AlarmName': 'string',
'AlarmARN': 'string'
},
],
'CreationTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
:returns:
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
"""
pass
def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None):
"""
Generate a presigned url given a client, its method, and arguments
:type ClientMethod: string
:param ClientMethod: The client method to presign for
:type Params: dict
:param Params: The parameters normally passed to
ClientMethod.
:type ExpiresIn: int
:param ExpiresIn: The number of seconds the presigned url is valid
for. By default it expires in an hour (3600 seconds)
:type HttpMethod: string
:param HttpMethod: The http method to use on the generated url. By
default, the http method is whatever is used in the method's model.
"""
pass
def get_paginator(operation_name=None):
"""
Create a paginator for an operation.
:type operation_name: string
:param operation_name: The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo, and you'd normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator('create_foo').
:rtype: L{botocore.paginate.Paginator}
"""
pass
def get_waiter():
"""
"""
pass
def put_scaling_policy(PolicyName=None, ServiceNamespace=None, ResourceId=None, ScalableDimension=None, PolicyType=None, StepScalingPolicyConfiguration=None):
"""
Creates or updates a policy for an Application Auto Scaling scalable target.
Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scaling policy applies to the scalable target identified by those three attributes. You cannot create a scaling policy without first registering a scalable target using RegisterScalableTarget .
To update a policy, specify its policy name and the parameters that you want to change. Any parameters that you don't specify are not changed by this update request.
You can view the scaling policies for a service namespace using DescribeScalingPolicies . If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy .
See also: AWS API Documentation
Examples
This example applies a scaling policy to an Amazon ECS service called web-app in the default cluster. The policy increases the desired count of the service by 200%, with a cool down period of 60 seconds.
Expected Output:
This example applies a scaling policy to an Amazon EC2 Spot fleet. The policy increases the target capacity of the spot fleet by 200%, with a cool down period of 180 seconds.",
Expected Output:
:example: response = client.put_scaling_policy(
PolicyName='string',
ServiceNamespace='ecs'|'elasticmapreduce'|'ec2'|'appstream',
ResourceId='string',
ScalableDimension='ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity',
PolicyType='StepScaling',
StepScalingPolicyConfiguration={
'AdjustmentType': 'ChangeInCapacity'|'PercentChangeInCapacity'|'ExactCapacity',
'StepAdjustments': [
{
'MetricIntervalLowerBound': 123.0,
'MetricIntervalUpperBound': 123.0,
'ScalingAdjustment': 123
},
],
'MinAdjustmentMagnitude': 123,
'Cooldown': 123,
'MetricAggregationType': 'Average'|'Minimum'|'Maximum'
}
)
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the scaling policy.
:type ServiceNamespace: string
:param ServiceNamespace: [REQUIRED]
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
:type ResourceId: string
:param ResourceId: [REQUIRED]
The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier.
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
:type ScalableDimension: string
:param ScalableDimension: [REQUIRED]
The scalable dimension. This string consists of the service namespace, resource type, and scaling property.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.
appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet.
:type PolicyType: string
:param PolicyType: The policy type. If you are creating a new policy, this parameter is required. If you are updating a policy, this parameter is not required.
:type StepScalingPolicyConfiguration: dict
:param StepScalingPolicyConfiguration: The configuration for the step scaling policy. If you are creating a new policy, this parameter is required. If you are updating a policy, this parameter is not required. For more information, see StepScalingPolicyConfiguration and StepAdjustment .
AdjustmentType (string) --The adjustment type, which specifies how the ScalingAdjustment parameter in a StepAdjustment is interpreted.
StepAdjustments (list) --A set of adjustments that enable you to scale based on the size of the alarm breach.
(dict) --Represents a step adjustment for a StepScalingPolicyConfiguration . Describes an adjustment based on the difference between the value of the aggregated CloudWatch metric and the breach threshold that you've defined for the alarm.
For the following examples, suppose that you have an alarm with a breach threshold of 50:
To trigger the adjustment when the metric is greater than or equal to 50 and less than 60, specify a lower bound of 0 and an upper bound of 10.
To trigger the adjustment when the metric is greater than 40 and less than or equal to 50, specify a lower bound of -10 and an upper bound of 0.
There are a few rules for the step adjustments for your step policy:
The ranges of your step adjustments can't overlap or have a gap.
At most one step adjustment can have a null lower bound. If one step adjustment has a negative lower bound, then there must be a step adjustment with a null lower bound.
At most one step adjustment can have a null upper bound. If one step adjustment has a positive upper bound, then there must be a step adjustment with a null upper bound.
The upper and lower bound can't be null in the same step adjustment.
MetricIntervalLowerBound (float) --The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it is exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.
MetricIntervalUpperBound (float) --The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it is inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity.
The upper bound must be greater than the lower bound.
ScalingAdjustment (integer) -- [REQUIRED]The amount by which to scale, based on the specified adjustment type. A positive value adds to the current scalable dimension while a negative number removes from the current scalable dimension.
MinAdjustmentMagnitude (integer) --The minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is PercentChangeInCapacity , the scaling policy changes the scalable dimension of the scalable target by this amount.
Cooldown (integer) --The amount of time, in seconds, after a scaling activity completes where previous trigger-related scaling activities can influence future scaling events.
For scale out policies, while Cooldown is in effect, the capacity that has been added by the previous scale out event that initiated the Cooldown is calculated as part of the desired capacity for the next scale out. The intention is to continuously (but not excessively) scale out. For example, an alarm triggers a step scaling policy to scale out an Amazon ECS service by 2 tasks, the scaling activity completes successfully, and a Cooldown period of 5 minutes starts. During the Cooldown period, if the alarm triggers the same policy again but at a more aggressive step adjustment to scale out the service by 3 tasks, the 2 tasks that were added in the previous scale out event are considered part of that capacity and only 1 additional task is added to the desired count.
For scale in policies, the Cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the Cooldown period after a scale-in, Application Auto Scaling scales out your scalable target immediately.
MetricAggregationType (string) --The aggregation type for the CloudWatch metrics. Valid values are Minimum , Maximum , and Average .
:rtype: dict
:return: {
'PolicyARN': 'string'
}
"""
pass
def register_scalable_target(ServiceNamespace=None, ResourceId=None, ScalableDimension=None, MinCapacity=None, MaxCapacity=None, RoleARN=None):
"""
Registers or updates a scalable target. A scalable target is a resource that Application Auto Scaling can scale out or scale in. After you have registered a scalable target, you can use this operation to update the minimum and maximum values for your scalable dimension.
After you register a scalable target, you can create and apply scaling policies using PutScalingPolicy . You can view the scaling policies for a service namespace using DescribeScalableTargets . If you are no longer using a scalable target, you can deregister it using DeregisterScalableTarget .
See also: AWS API Documentation
Examples
This example registers a scalable target from an Amazon ECS service called web-app that is running on the default cluster, with a minimum desired count of 1 task and a maximum desired count of 10 tasks.
Expected Output:
This example registers a scalable target from an Amazon EC2 Spot fleet with a minimum target capacity of 1 and a maximum of 10.
Expected Output:
:example: response = client.register_scalable_target(
ServiceNamespace='ecs'|'elasticmapreduce'|'ec2'|'appstream',
ResourceId='string',
ScalableDimension='ecs:service:DesiredCount'|'ec2:spot-fleet-request:TargetCapacity'|'elasticmapreduce:instancegroup:InstanceCount'|'appstream:fleet:DesiredCapacity',
MinCapacity=123,
MaxCapacity=123,
RoleARN='string'
)
:type ServiceNamespace: string
:param ServiceNamespace: [REQUIRED]
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
:type ResourceId: string
:param ResourceId: [REQUIRED]
The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.
ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/default/sample-webapp .
Spot fleet request - The resource type is spot-fleet-request and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE .
EMR cluster - The resource type is instancegroup and the unique identifier is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0 .
AppStream 2.0 fleet - The resource type is fleet and the unique identifier is the fleet name. Example: fleet/sample-fleet .
:type ScalableDimension: string
:param ScalableDimension: [REQUIRED]
The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property.
ecs:service:DesiredCount - The desired task count of an ECS service.
ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot fleet request.
elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group.
appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0 fleet.
:type MinCapacity: integer
:param MinCapacity: The minimum value to scale to in response to a scale in event. This parameter is required if you are registering a scalable target and optional if you are updating one.
:type MaxCapacity: integer
:param MaxCapacity: The maximum value to scale to in response to a scale out event. This parameter is required if you are registering a scalable target and optional if you are updating one.
:type RoleARN: string
:param RoleARN: The ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. This parameter is required when you register a scalable target and optional when you update one.
:rtype: dict
:return: {}
:returns:
(dict) --
"""
pass
| 61.435275
| 786
| 0.711644
| 4,784
| 37,967
| 5.637542
| 0.10138
| 0.022358
| 0.037968
| 0.025213
| 0.747608
| 0.728884
| 0.718873
| 0.715017
| 0.698702
| 0.688246
| 0
| 0.015381
| 0.231148
| 37,967
| 617
| 787
| 61.534846
| 0.908533
| 0.910949
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
c2ab8003f1b753b5e1411f66ffb6ad6ccf0e3554
| 167
|
py
|
Python
|
kolibri/core/__init__.py
|
rtibbles/kolibri
|
7efdf0497738c793f281013f9913f8ecc1a55f10
|
[
"MIT"
] | 1
|
2021-11-09T11:30:12.000Z
|
2021-11-09T11:30:12.000Z
|
kolibri/core/__init__.py
|
rtibbles/kolibri
|
7efdf0497738c793f281013f9913f8ecc1a55f10
|
[
"MIT"
] | 7
|
2016-06-23T16:01:02.000Z
|
2018-12-01T22:15:13.000Z
|
kolibri/core/__init__.py
|
aronasorman/kolibri
|
940672bc849cd0b26d7d84ee08a34f072c4f6cd6
|
[
"MIT"
] | 1
|
2021-06-01T23:15:26.000Z
|
2021-06-01T23:15:26.000Z
|
"""TODO: Write something about this module (everything in the docstring
enters the docs)
"""
from __future__ import print_function, unicode_literals, absolute_import
| 27.833333
| 72
| 0.808383
| 22
| 167
| 5.818182
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125749
| 167
| 5
| 73
| 33.4
| 0.876712
| 0.508982
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
c2c24d3bdfe2dbff47146a874fac5e05d2815336
| 6,766
|
py
|
Python
|
logical/examples/examples_from_gate_to_serial_annealer/one_way_equal_dwave.py
|
malcolmregan/GateCircuit-to-AnnealerEmbedding
|
33a1a4ea2ebd707ade0677e0df468d5120a861db
|
[
"Apache-2.0"
] | null | null | null |
logical/examples/examples_from_gate_to_serial_annealer/one_way_equal_dwave.py
|
malcolmregan/GateCircuit-to-AnnealerEmbedding
|
33a1a4ea2ebd707ade0677e0df468d5120a861db
|
[
"Apache-2.0"
] | null | null | null |
logical/examples/examples_from_gate_to_serial_annealer/one_way_equal_dwave.py
|
malcolmregan/GateCircuit-to-AnnealerEmbedding
|
33a1a4ea2ebd707ade0677e0df468d5120a861db
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python3
import dimod
################################################################################
## NOT - target: q0_0 ##
################################################################################
if 'q0_0' not in globals():
q0_0=0
bqm = dimod.BinaryQuadraticModel({'q0_0' : -4, 'outq0_0' : -4}, {('q0_0', 'outq0_0') : 8}, 4, dimod.BINARY)
sampler = dimod.ExactSolver()
response = sampler.sample(bqm)
for sample, energy in response.data(['sample', 'energy']):
if sample['q0_0']==q0_0 and int(energy)==0:
q0_0_before = sample['q0_0']
q0_0=sample['outq0_0']
break
print('#' * 80)
print("NOT operation on q0_0:")
print(" in: q0_0={0}".format(q0_0_before))
print(" out: q0_0={0}".format(q0_0))
print('#' * 80)
print()
################################################################################
## NOT - target: q1_0 ##
################################################################################
if 'q1_0' not in globals():
q1_0=0
bqm = dimod.BinaryQuadraticModel({'q1_0' : -4, 'outq1_0' : -4}, {('q1_0', 'outq1_0') : 8}, 4, dimod.BINARY)
sampler = dimod.ExactSolver()
response = sampler.sample(bqm)
for sample, energy in response.data(['sample', 'energy']):
if sample['q1_0']==q1_0 and int(energy)==0:
q1_0_before = sample['q1_0']
q1_0=sample['outq1_0']
break
print('#' * 80)
print("NOT operation on q1_0:")
print(" in: q1_0={0}".format(q1_0_before))
print(" out: q1_0={0}".format(q1_0))
print('#' * 80)
print()
################################################################################
## NOT - target: q3_0 ##
################################################################################
if 'q3_0' not in globals():
q3_0=0
bqm = dimod.BinaryQuadraticModel({'q3_0' : -4, 'outq3_0' : -4}, {('q3_0', 'outq3_0') : 8}, 4, dimod.BINARY)
sampler = dimod.ExactSolver()
response = sampler.sample(bqm)
for sample, energy in response.data(['sample', 'energy']):
if sample['q3_0']==q3_0 and int(energy)==0:
q3_0_before = sample['q3_0']
q3_0=sample['outq3_0']
break
print('#' * 80)
print("NOT operation on q3_0:")
print(" in: q3_0={0}".format(q3_0_before))
print(" out: q3_0={0}".format(q3_0))
print('#' * 80)
print()
################################################################################
## CNOT - control: q3_0 target: q2_0 ##
################################################################################
if 'q3_0' not in globals():
q3_0=0
if 'q2_0' not in globals():
q2_0=0
bqm = dimod.BinaryQuadraticModel({'q3_0' : 1, 'q2_0' : 1, 'outq2_0' : 1, 'anc' : 4}, {('q3_0', 'q2_0') : 2, ('q3_0', 'outq2_0') : -2, ('q2_0', 'outq2_0') : -2, ('q3_0', 'anc') : -4, ('q2_0', 'anc') : -4, ('outq2_0', 'anc') : 4}, 0, dimod.BINARY)
sampler = dimod.ExactSolver()
response = sampler.sample(bqm)
for sample, energy in response.data(['sample', 'energy']):
if sample['q3_0']==q3_0 and sample['q2_0']==q2_0 and int(energy)==0:
q3_0=sample['q3_0']
q2_0=sample['outq2_0']
tgt_before = sample['q2_0']
break
print('#' * 80)
print("CNOT operation on q3_0 (control) and q2_0 (target):")
print(" in: q3_0={0}, q2_0={1}".format(q3_0,tgt_before))
print(" out: q3_0={0}, q2_0={1}".format(q3_0,q2_0))
print('#' * 80)
print()
################################################################################
## CCNOT - control1: q0_0 control2: q3_0 target: q2_0 ##
################################################################################
if 'q0_0' not in globals():
q0_0=0
if 'q3_0' not in globals():
q3_0=0
if 'q2_0' not in globals():
q2_0=0
bqm = dimod.BinaryQuadraticModel({'anc1' : 4, 'anc2' : 4, 'outq2_0' : 1, 'q2_0' : 1}, {('anc1', 'anc2') : -4, ('anc1', 'outq2_0') : 4, ('anc1','q2_0') : -4, ('anc2', 'q0_0') : -2, ('anc2', 'q3_0') : -2, ('anc2', 'outq2_0') : -2, ('anc2', 'q2_0') : 2, ('q0_0', 'q3_0') : 1, ('outq2_0', 'q2_0') : -2}, 0, dimod.BINARY)
sampler = dimod.ExactSolver()
response = sampler.sample(bqm)
for sample, energy in response.data(['sample', 'energy']):
if sample['q0_0']==q0_0 and sample['q3_0']==q3_0 and sample['q2_0']==q2_0 and int(energy)==0:
q0_0=sample['q0_0']
q3_0=sample['q3_0']
q2_0=sample['outq2_0']
tgt_before = sample['q2_0']
break
print('#' * 80)
print("CCNOT operation on q0_0 (control1), q3_0 (control2) and q2_0 (target):")
print(" in: q0_0={0}, q3_0={1}, q2_0={2}".format(q0_0,q3_0,tgt_before))
print(" out: q0_0={0}, q3_0={1}, q2_0={2}".format(q0_0,q3_0,q2_0))
print('#' * 80)
print()
################################################################################
## CCNOT - control1: q1_0 control2: q3_0 target: q2_0 ##
################################################################################
if 'q1_0' not in globals():
q1_0=0
if 'q3_0' not in globals():
q3_0=0
if 'q2_0' not in globals():
q2_0=0
bqm = dimod.BinaryQuadraticModel({'anc1' : 4, 'anc2' : 4, 'outq2_0' : 1, 'q2_0' : 1}, {('anc1', 'anc2') : -4, ('anc1', 'outq2_0') : 4, ('anc1','q2_0') : -4, ('anc2', 'q1_0') : -2, ('anc2', 'q3_0') : -2, ('anc2', 'outq2_0') : -2, ('anc2', 'q2_0') : 2, ('q1_0', 'q3_0') : 1, ('outq2_0', 'q2_0') : -2}, 0, dimod.BINARY)
sampler = dimod.ExactSolver()
response = sampler.sample(bqm)
for sample, energy in response.data(['sample', 'energy']):
if sample['q1_0']==q1_0 and sample['q3_0']==q3_0 and sample['q2_0']==q2_0 and int(energy)==0:
q1_0=sample['q1_0']
q3_0=sample['q3_0']
q2_0=sample['outq2_0']
tgt_before = sample['q2_0']
break
print('#' * 80)
print("CCNOT operation on q1_0 (control1), q3_0 (control2) and q2_0 (target):")
print(" in: q1_0={0}, q3_0={1}, q2_0={2}".format(q1_0,q3_0,tgt_before))
print(" out: q1_0={0}, q3_0={1}, q2_0={2}".format(q1_0,q3_0,q2_0))
print('#' * 80)
print()
################################################################################
## NOT - target: q3_0 ##
################################################################################
if 'q3_0' not in globals():
q3_0=0
bqm = dimod.BinaryQuadraticModel({'q3_0' : -4, 'outq3_0' : -4}, {('q3_0', 'outq3_0') : 8}, 4, dimod.BINARY)
sampler = dimod.ExactSolver()
response = sampler.sample(bqm)
for sample, energy in response.data(['sample', 'energy']):
if sample['q3_0']==q3_0 and int(energy)==0:
q3_0_before = sample['q3_0']
q3_0=sample['outq3_0']
break
print('#' * 80)
print("NOT operation on q3_0:")
print(" in: q3_0={0}".format(q3_0_before))
print(" out: q3_0={0}".format(q3_0))
print('#' * 80)
print()
print("Measurement of q0_0 => {0}".format(q0_0))
print("Measurement of q1_0 => {0}".format(q1_0))
print("Measurement of q2_0 => {0}".format(q2_0))
| 38.443182
| 316
| 0.495123
| 976
| 6,766
| 3.202869
| 0.055328
| 0.071017
| 0.028151
| 0.049904
| 0.903391
| 0.871721
| 0.834293
| 0.791107
| 0.757198
| 0.728407
| 0
| 0.100522
| 0.150163
| 6,766
| 175
| 317
| 38.662857
| 0.44313
| 0.034732
| 0
| 0.732824
| 0
| 0
| 0.250139
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.007634
| 0
| 0.007634
| 0.343511
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
c2d7c15490cba5848ac44c0604efb2729042a2e1
| 633
|
py
|
Python
|
src/entities/projectiles/projectile_base.py
|
Oasixer/drive-and-survive
|
134ca725efed16fdd31df0bb76c520cd15d7b1ed
|
[
"MIT"
] | 1
|
2019-02-24T23:37:34.000Z
|
2019-02-24T23:37:34.000Z
|
src/entities/projectiles/projectile_base.py
|
Oasixer/drive-and-survive
|
134ca725efed16fdd31df0bb76c520cd15d7b1ed
|
[
"MIT"
] | null | null | null |
src/entities/projectiles/projectile_base.py
|
Oasixer/drive-and-survive
|
134ca725efed16fdd31df0bb76c520cd15d7b1ed
|
[
"MIT"
] | null | null | null |
from entities.entity_base import Entity
class Projectile(Entity):
def __init__(self, position, velocity, sprite, movement="normal", duration=None):
pass
'''
class Bomb(Projectile):
def __init__(self, position, velocity):
sprite = None
Projectile.__init__(position, velocity, sprite)
pass
class Bullet(Projectile):
def __init__(self, position, velocity):
sprite = None
Projectile.__init__(position, velocity, sprite)
class Laser(Projectile):
def __init__(self, position, velocity):
sprite = None
Projectile.__init__(position, velocity, sprite)'''
| 24.346154
| 85
| 0.679305
| 66
| 633
| 6.075758
| 0.318182
| 0.279302
| 0.38404
| 0.189526
| 0.703242
| 0.703242
| 0.620948
| 0.620948
| 0.620948
| 0.620948
| 0
| 0
| 0.219589
| 633
| 26
| 86
| 24.346154
| 0.811741
| 0
| 0
| 0
| 0
| 0
| 0.035294
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 8
|
6c5521b1ed1905de6d3de3673bb25d276dcb9ae4
| 124
|
py
|
Python
|
demo.py
|
WowCZ/strac
|
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
|
[
"Apache-2.0"
] | null | null | null |
demo.py
|
WowCZ/strac
|
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
|
[
"Apache-2.0"
] | null | null | null |
demo.py
|
WowCZ/strac
|
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
|
[
"Apache-2.0"
] | null | null | null |
import os
os.system('sbatch -p cpu -n 1 -c 2 -o env1_parallel_log/LOG0 -e env1_parallel_log/ERR env1_parallel_log/run0.sh')
| 41.333333
| 113
| 0.774194
| 26
| 124
| 3.461538
| 0.730769
| 0.4
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063636
| 0.112903
| 124
| 2
| 114
| 62
| 0.754545
| 0
| 0
| 0
| 0
| 0.5
| 0.806452
| 0.548387
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 9
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.