repo stringlengths 7 55 | path stringlengths 4 223 | func_name stringlengths 1 134 | original_string stringlengths 75 104k | language stringclasses 1
value | code stringlengths 75 104k | code_tokens listlengths 19 28.4k | docstring stringlengths 1 46.9k | docstring_tokens listlengths 1 1.97k | sha stringlengths 40 40 | url stringlengths 87 315 | partition stringclasses 3
values | summary stringlengths 4 350 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
BD2KGenomics/protect | src/protect/alignment/dna.py | bam_conversion | def bam_conversion(job, samfile, sample_type, univ_options, samtools_options):
"""
Convert a sam to a bam.
:param dict samfile: The input sam file
:param str sample_type: Description of the sample to inject into the filename
:param dict univ_options: Dict of universal options used by almost all too... | python | def bam_conversion(job, samfile, sample_type, univ_options, samtools_options):
"""
Convert a sam to a bam.
:param dict samfile: The input sam file
:param str sample_type: Description of the sample to inject into the filename
:param dict univ_options: Dict of universal options used by almost all too... | [
"def",
"bam_conversion",
"(",
"job",
",",
"samfile",
",",
"sample_type",
",",
"univ_options",
",",
"samtools_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"sample_type",
"+",
"'.sam'",
":",
"samfile",
"}",
"in... | Convert a sam to a bam.
:param dict samfile: The input sam file
:param str sample_type: Description of the sample to inject into the filename
:param dict univ_options: Dict of universal options used by almost all tools
:param dict samtools_options: Options specific to samtools
:return: fsID for the... | [
"Convert",
"a",
"sam",
"to",
"a",
"bam",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/alignment/dna.py#L150-L179 | train | This module will convert a sam to a bam. This module will convert the sam to a bam and then call samtools to convert the bam to the samfile. |
BD2KGenomics/protect | src/protect/alignment/dna.py | fix_bam_header | def fix_bam_header(job, bamfile, sample_type, univ_options, samtools_options, retained_chroms=None):
"""
Fix the bam header to remove the command line call. Failing to do this causes Picard to reject
the bam.
:param dict bamfile: The input bam file
:param str sample_type: Description of the sample... | python | def fix_bam_header(job, bamfile, sample_type, univ_options, samtools_options, retained_chroms=None):
"""
Fix the bam header to remove the command line call. Failing to do this causes Picard to reject
the bam.
:param dict bamfile: The input bam file
:param str sample_type: Description of the sample... | [
"def",
"fix_bam_header",
"(",
"job",
",",
"bamfile",
",",
"sample_type",
",",
"univ_options",
",",
"samtools_options",
",",
"retained_chroms",
"=",
"None",
")",
":",
"if",
"retained_chroms",
"is",
"None",
":",
"retained_chroms",
"=",
"[",
"]",
"work_dir",
"=",... | Fix the bam header to remove the command line call. Failing to do this causes Picard to reject
the bam.
:param dict bamfile: The input bam file
:param str sample_type: Description of the sample to inject into the filename
:param dict univ_options: Dict of universal options used by almost all tools
... | [
"Fix",
"the",
"bam",
"header",
"to",
"remove",
"the",
"command",
"line",
"call",
".",
"Failing",
"to",
"do",
"this",
"causes",
"Picard",
"to",
"reject",
"the",
"bam",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/alignment/dna.py#L182-L230 | train | This function will remove the command line call from the bam file and add the header to the output file. |
BD2KGenomics/protect | src/protect/alignment/dna.py | add_readgroups | def add_readgroups(job, bamfile, sample_type, univ_options, picard_options):
"""
Add read groups to the bam.
:param dict bamfile: The input bam file
:param str sample_type: Description of the sample to inject into the filename
:param dict univ_options: Dict of universal options used by almost all t... | python | def add_readgroups(job, bamfile, sample_type, univ_options, picard_options):
"""
Add read groups to the bam.
:param dict bamfile: The input bam file
:param str sample_type: Description of the sample to inject into the filename
:param dict univ_options: Dict of universal options used by almost all t... | [
"def",
"add_readgroups",
"(",
"job",
",",
"bamfile",
",",
"sample_type",
",",
"univ_options",
",",
"picard_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"sample_type",
"+",
"'.bam'",
":",
"bamfile",
"}",
"get_... | Add read groups to the bam.
:param dict bamfile: The input bam file
:param str sample_type: Description of the sample to inject into the filename
:param dict univ_options: Dict of universal options used by almost all tools
:param dict picard_options: Options specific to picard
:return: fsID for the... | [
"Add",
"read",
"groups",
"to",
"the",
"bam",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/alignment/dna.py#L233-L267 | train | This function adds read groups to the bam file and returns the fsID of the new bam file. |
StackStorm/pybind | pybind/nos/v6_0_2f/fcoe/fcoe_fabric_map/fcoe_fcport_group_config/__init__.py | fcoe_fcport_group_config._set_fcport_group_rbid | def _set_fcport_group_rbid(self, v, load=False):
"""
Setter method for fcport_group_rbid, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcport_group_config/fcport_group_rbid (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcport_group_rbid is considere... | python | def _set_fcport_group_rbid(self, v, load=False):
"""
Setter method for fcport_group_rbid, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcport_group_config/fcport_group_rbid (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcport_group_rbid is considere... | [
"def",
"_set_fcport_group_rbid",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for fcport_group_rbid, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcport_group_config/fcport_group_rbid (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcport_group_rbid is considered as a private
method. Backends looking to populate this ... | [
"Setter",
"method",
"for",
"fcport_group_rbid",
"mapped",
"from",
"YANG",
"variable",
"/",
"fcoe",
"/",
"fcoe_fabric_map",
"/",
"fcoe_fcport_group_config",
"/",
"fcport_group_rbid",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/fcoe/fcoe_fabric_map/fcoe_fcport_group_config/__init__.py#L97-L121 | train | Set the FC port - group rbid. |
inveniosoftware/invenio-access | invenio_access/alembic/04480be1593e_add_actionsystemroles.py | upgrade | def upgrade():
"""Upgrade database."""
op.create_table(
'access_actionssystemroles',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('action', sa.String(length=80), nullable=True),
sa.Column('exclude', sa.Boolean(name='exclude'), server_default='0',
nul... | python | def upgrade():
"""Upgrade database."""
op.create_table(
'access_actionssystemroles',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('action', sa.String(length=80), nullable=True),
sa.Column('exclude', sa.Boolean(name='exclude'), server_default='0',
nul... | [
"def",
"upgrade",
"(",
")",
":",
"op",
".",
"create_table",
"(",
"'access_actionssystemroles'",
",",
"sa",
".",
"Column",
"(",
"'id'",
",",
"sa",
".",
"Integer",
"(",
")",
",",
"nullable",
"=",
"False",
")",
",",
"sa",
".",
"Column",
"(",
"'action'",
... | Upgrade database. | [
"Upgrade",
"database",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/alembic/04480be1593e_add_actionsystemroles.py#L21-L41 | train | Upgrade the database. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/ipv6/ipv6route/__init__.py | ipv6route._set_route | def _set_route(self, v, load=False):
"""
Setter method for route, mapped from YANG variable /rbridge_id/ipv6/ipv6route/route (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_route is considered as a private
method. Backends looking to populate this variable sho... | python | def _set_route(self, v, load=False):
"""
Setter method for route, mapped from YANG variable /rbridge_id/ipv6/ipv6route/route (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_route is considered as a private
method. Backends looking to populate this variable sho... | [
"def",
"_set_route",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for route, mapped from YANG variable /rbridge_id/ipv6/ipv6route/route (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_route is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_route() di... | [
"Setter",
"method",
"for",
"route",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"ipv6",
"/",
"ipv6route",
"/",
"route",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"th... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/ipv6route/__init__.py#L92-L113 | train | Set the route of the
based on the given route. |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py | lsp._set_lsp_tie_breaking | def _set_lsp_tie_breaking(self, v, load=False):
"""
Setter method for lsp_tie_breaking, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_tie_breaking (tie-breaking)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_tie_breaking is considered ... | python | def _set_lsp_tie_breaking(self, v, load=False):
"""
Setter method for lsp_tie_breaking, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_tie_breaking (tie-breaking)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_tie_breaking is considered ... | [
"def",
"_set_lsp_tie_breaking",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for lsp_tie_breaking, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_tie_breaking (tie-breaking)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_tie_breaking is considered as a private
method. Backends looking to populate this v... | [
"Setter",
"method",
"for",
"lsp_tie_breaking",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_config",
"/",
"router",
"/",
"mpls",
"/",
"mpls_cmds_holder",
"/",
"lsp",
"/",
"lsp_tie_breaking",
"(",
"tie",
"-",
"breaking",
")",
"If",
"this",
"variable",
"is",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py#L326-L347 | train | Sets the value of the lsp_tie_breaking variable. |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py | lsp._set_lsp_auto_bandwidth | def _set_lsp_auto_bandwidth(self, v, load=False):
"""
Setter method for lsp_auto_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_auto_bandwidth (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_auto_bandwidth is consid... | python | def _set_lsp_auto_bandwidth(self, v, load=False):
"""
Setter method for lsp_auto_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_auto_bandwidth (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_auto_bandwidth is consid... | [
"def",
"_set_lsp_auto_bandwidth",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for lsp_auto_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_auto_bandwidth (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_auto_bandwidth is considered as a private
method. Backends looking to populate thi... | [
"Setter",
"method",
"for",
"lsp_auto_bandwidth",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_config",
"/",
"router",
"/",
"mpls",
"/",
"mpls_cmds_holder",
"/",
"lsp",
"/",
"lsp_auto_bandwidth",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py#L854-L875 | train | Sets auto - bandwidth for the given lsp |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py | lsp._set_lsp_frr | def _set_lsp_frr(self, v, load=False):
"""
Setter method for lsp_frr, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_frr (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_frr is considered as a private
method. Backends looki... | python | def _set_lsp_frr(self, v, load=False):
"""
Setter method for lsp_frr, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_frr (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_frr is considered as a private
method. Backends looki... | [
"def",
"_set_lsp_frr",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for lsp_frr, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_frr (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_frr is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"Setter",
"method",
"for",
"lsp_frr",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_config",
"/",
"router",
"/",
"mpls",
"/",
"mpls_cmds_holder",
"/",
"lsp",
"/",
"lsp_frr",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"("... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py#L887-L908 | train | Sets the fast reroute options for the specified LSP sequence. |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py | lsp._set_secondary_path | def _set_secondary_path(self, v, load=False):
"""
Setter method for secondary_path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_secondary_path is considered as a private
... | python | def _set_secondary_path(self, v, load=False):
"""
Setter method for secondary_path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_secondary_path is considered as a private
... | [
"def",
"_set_secondary_path",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for secondary_path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_secondary_path is considered as a private
method. Backends looking to populate this variable should... | [
"Setter",
"method",
"for",
"secondary_path",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_config",
"/",
"router",
"/",
"mpls",
"/",
"mpls_cmds_holder",
"/",
"lsp",
"/",
"secondary_path",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"onl... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py#L920-L941 | train | Set secondary path for the LSP |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py | lsp._set_lsp_select_path | def _set_lsp_select_path(self, v, load=False):
"""
Setter method for lsp_select_path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_select_path (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_select_path is considered as a pr... | python | def _set_lsp_select_path(self, v, load=False):
"""
Setter method for lsp_select_path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_select_path (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_select_path is considered as a pr... | [
"def",
"_set_lsp_select_path",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for lsp_select_path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_select_path (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lsp_select_path is considered as a private
method. Backends looking to populate this variabl... | [
"Setter",
"method",
"for",
"lsp_select_path",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_config",
"/",
"router",
"/",
"mpls",
"/",
"mpls_cmds_holder",
"/",
"lsp",
"/",
"lsp_select_path",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/__init__.py#L953-L974 | train | Sets the selected path in the order of the selected paths. |
StackStorm/pybind | pybind/slxos/v17s_1_02/sysmon/__init__.py | sysmon._set_fe_access_check | def _set_fe_access_check(self, v, load=False):
"""
Setter method for fe_access_check, mapped from YANG variable /sysmon/fe_access_check (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fe_access_check is considered as a private
method. Backends looking to ... | python | def _set_fe_access_check(self, v, load=False):
"""
Setter method for fe_access_check, mapped from YANG variable /sysmon/fe_access_check (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fe_access_check is considered as a private
method. Backends looking to ... | [
"def",
"_set_fe_access_check",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for fe_access_check, mapped from YANG variable /sysmon/fe_access_check (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fe_access_check is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj... | [
"Setter",
"method",
"for",
"fe_access_check",
"mapped",
"from",
"YANG",
"variable",
"/",
"sysmon",
"/",
"fe_access_check",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/sysmon/__init__.py#L96-L117 | train | Sets the fe_access_check property of the
. |
StackStorm/pybind | pybind/slxos/v17s_1_02/sysmon/__init__.py | sysmon._set_link_crc_monitoring | def _set_link_crc_monitoring(self, v, load=False):
"""
Setter method for link_crc_monitoring, mapped from YANG variable /sysmon/link_crc_monitoring (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_link_crc_monitoring is considered as a private
method. Back... | python | def _set_link_crc_monitoring(self, v, load=False):
"""
Setter method for link_crc_monitoring, mapped from YANG variable /sysmon/link_crc_monitoring (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_link_crc_monitoring is considered as a private
method. Back... | [
"def",
"_set_link_crc_monitoring",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for link_crc_monitoring, mapped from YANG variable /sysmon/link_crc_monitoring (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_link_crc_monitoring is considered as a private
method. Backends looking to populate this variable should
do so via cal... | [
"Setter",
"method",
"for",
"link_crc_monitoring",
"mapped",
"from",
"YANG",
"variable",
"/",
"sysmon",
"/",
"link_crc_monitoring",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sou... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/sysmon/__init__.py#L129-L150 | train | Sets the value of link_crc_monitoring in the base node. |
StackStorm/pybind | pybind/slxos/v17s_1_02/sysmon/__init__.py | sysmon._set_sfm_walk | def _set_sfm_walk(self, v, load=False):
"""
Setter method for sfm_walk, mapped from YANG variable /sysmon/sfm_walk (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_sfm_walk is considered as a private
method. Backends looking to populate this variable shoul... | python | def _set_sfm_walk(self, v, load=False):
"""
Setter method for sfm_walk, mapped from YANG variable /sysmon/sfm_walk (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_sfm_walk is considered as a private
method. Backends looking to populate this variable shoul... | [
"def",
"_set_sfm_walk",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for sfm_walk, mapped from YANG variable /sysmon/sfm_walk (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_sfm_walk is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_sfm_walk() dire... | [
"Setter",
"method",
"for",
"sfm_walk",
"mapped",
"from",
"YANG",
"variable",
"/",
"sysmon",
"/",
"sfm_walk",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"fil... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/sysmon/__init__.py#L162-L183 | train | Sets the value of the SFM_WATCH variable in the sysmon output. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/fortygigabitethernet/ip/interface_fo_dhcp_conf/dhcp/relay/__init__.py | relay._set_servers | def _set_servers(self, v, load=False):
"""
Setter method for servers, mapped from YANG variable /interface/fortygigabitethernet/ip/interface_fo_dhcp_conf/dhcp/relay/servers (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_servers is considered as a private
meth... | python | def _set_servers(self, v, load=False):
"""
Setter method for servers, mapped from YANG variable /interface/fortygigabitethernet/ip/interface_fo_dhcp_conf/dhcp/relay/servers (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_servers is considered as a private
meth... | [
"def",
"_set_servers",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for servers, mapped from YANG variable /interface/fortygigabitethernet/ip/interface_fo_dhcp_conf/dhcp/relay/servers (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_servers is considered as a private
method. Backends looking to populate this variable shou... | [
"Setter",
"method",
"for",
"servers",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"fortygigabitethernet",
"/",
"ip",
"/",
"interface_fo_dhcp_conf",
"/",
"dhcp",
"/",
"relay",
"/",
"servers",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fortygigabitethernet/ip/interface_fo_dhcp_conf/dhcp/relay/__init__.py#L93-L114 | train | Sets the list of servers in the order they are added to the internal list. |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_state/ldp/statistics/__init__.py | statistics._set_ldp_protocol_stats_instance_total | def _set_ldp_protocol_stats_instance_total(self, v, load=False):
"""
Setter method for ldp_protocol_stats_instance_total, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_stats_instance_total (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ld... | python | def _set_ldp_protocol_stats_instance_total(self, v, load=False):
"""
Setter method for ldp_protocol_stats_instance_total, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_stats_instance_total (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ld... | [
"def",
"_set_ldp_protocol_stats_instance_total",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(... | Setter method for ldp_protocol_stats_instance_total, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_stats_instance_total (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_protocol_stats_instance_total is considered as a private
method. Backen... | [
"Setter",
"method",
"for",
"ldp_protocol_stats_instance_total",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"ldp",
"/",
"statistics",
"/",
"ldp_protocol_stats_instance_total",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"onl... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_state/ldp/statistics/__init__.py#L133-L154 | train | Sets the ldp - protocol - stats - instance - total value for the object. |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_state/ldp/statistics/__init__.py | statistics._set_ldp_protocol_stats_instance_since_clear | def _set_ldp_protocol_stats_instance_since_clear(self, v, load=False):
"""
Setter method for ldp_protocol_stats_instance_since_clear, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_stats_instance_since_clear (container)
If this variable is read-only (config: false) in the
source YANG ... | python | def _set_ldp_protocol_stats_instance_since_clear(self, v, load=False):
"""
Setter method for ldp_protocol_stats_instance_since_clear, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_stats_instance_since_clear (container)
If this variable is read-only (config: false) in the
source YANG ... | [
"def",
"_set_ldp_protocol_stats_instance_since_clear",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass"... | Setter method for ldp_protocol_stats_instance_since_clear, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_stats_instance_since_clear (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_protocol_stats_instance_since_clear is considered as a private
... | [
"Setter",
"method",
"for",
"ldp_protocol_stats_instance_since_clear",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"ldp",
"/",
"statistics",
"/",
"ldp_protocol_stats_instance_since_clear",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_state/ldp/statistics/__init__.py#L166-L187 | train | Sets the value of ldp_protocol_stats_instance_since_clear in the current state of the tree. |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_state/ldp/statistics/__init__.py | statistics._set_ldp_protocol_errors_instance_since_clear | def _set_ldp_protocol_errors_instance_since_clear(self, v, load=False):
"""
Setter method for ldp_protocol_errors_instance_since_clear, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_errors_instance_since_clear (container)
If this variable is read-only (config: false) in the
source YA... | python | def _set_ldp_protocol_errors_instance_since_clear(self, v, load=False):
"""
Setter method for ldp_protocol_errors_instance_since_clear, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_errors_instance_since_clear (container)
If this variable is read-only (config: false) in the
source YA... | [
"def",
"_set_ldp_protocol_errors_instance_since_clear",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass... | Setter method for ldp_protocol_errors_instance_since_clear, mapped from YANG variable /mpls_state/ldp/statistics/ldp_protocol_errors_instance_since_clear (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_protocol_errors_instance_since_clear is considered as a priva... | [
"Setter",
"method",
"for",
"ldp_protocol_errors_instance_since_clear",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"ldp",
"/",
"statistics",
"/",
"ldp_protocol_errors_instance_since_clear",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_state/ldp/statistics/__init__.py#L199-L220 | train | Sets the value of ldp_protocol_errors_instance_since_clear in the current state of the object. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/ipv6/router/ospf/__init__.py | ospf._set_distance | def _set_distance(self, v, load=False):
"""
Setter method for distance, mapped from YANG variable /routing_system/ipv6/router/ospf/distance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_distance is considered as a private
method. Backends looking to populate... | python | def _set_distance(self, v, load=False):
"""
Setter method for distance, mapped from YANG variable /routing_system/ipv6/router/ospf/distance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_distance is considered as a private
method. Backends looking to populate... | [
"def",
"_set_distance",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for distance, mapped from YANG variable /routing_system/ipv6/router/ospf/distance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_distance is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj.... | [
"Setter",
"method",
"for",
"distance",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"ipv6",
"/",
"router",
"/",
"ospf",
"/",
"distance",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"fals... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/ipv6/router/ospf/__init__.py#L391-L414 | train | Sets the distance of the cluster. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/ipv6/router/ospf/__init__.py | ospf._set_global_metric_type | def _set_global_metric_type(self, v, load=False):
"""
Setter method for global_metric_type, mapped from YANG variable /routing_system/ipv6/router/ospf/global_metric_type (ospf:metric-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_metric_type is considered a... | python | def _set_global_metric_type(self, v, load=False):
"""
Setter method for global_metric_type, mapped from YANG variable /routing_system/ipv6/router/ospf/global_metric_type (ospf:metric-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_metric_type is considered a... | [
"def",
"_set_global_metric_type",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for global_metric_type, mapped from YANG variable /routing_system/ipv6/router/ospf/global_metric_type (ospf:metric-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_metric_type is considered as a private
method. Backends looking to populate this vari... | [
"Setter",
"method",
"for",
"global_metric_type",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"ipv6",
"/",
"router",
"/",
"ospf",
"/",
"global_metric_type",
"(",
"ospf",
":",
"metric",
"-",
"type",
")",
"If",
"this",
"variable",
"is",
"r... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/ipv6/router/ospf/__init__.py#L683-L706 | train | Sets the global metric type for the cluster. |
nepalicalendar/nepalicalendar-py | nepalicalendar/nepcal.py | NepCal.weekday | def weekday(cls, year, month, day):
"""Returns the weekday of the date. 0 = aaitabar"""
return NepDate.from_bs_date(year, month, day).weekday() | python | def weekday(cls, year, month, day):
"""Returns the weekday of the date. 0 = aaitabar"""
return NepDate.from_bs_date(year, month, day).weekday() | [
"def",
"weekday",
"(",
"cls",
",",
"year",
",",
"month",
",",
"day",
")",
":",
"return",
"NepDate",
".",
"from_bs_date",
"(",
"year",
",",
"month",
",",
"day",
")",
".",
"weekday",
"(",
")"
] | Returns the weekday of the date. 0 = aaitabar | [
"Returns",
"the",
"weekday",
"of",
"the",
"date",
".",
"0",
"=",
"aaitabar"
] | a589c28b8e085049f30a7287753476b59eca6f50 | https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/nepcal.py#L24-L26 | train | Returns the weekday of the date. 0 = aaitabar |
nepalicalendar/nepalicalendar-py | nepalicalendar/nepcal.py | NepCal.monthrange | def monthrange(cls, year, month):
"""Returns the number of days in a month"""
functions.check_valid_bs_range(NepDate(year, month, 1))
return values.NEPALI_MONTH_DAY_DATA[year][month - 1] | python | def monthrange(cls, year, month):
"""Returns the number of days in a month"""
functions.check_valid_bs_range(NepDate(year, month, 1))
return values.NEPALI_MONTH_DAY_DATA[year][month - 1] | [
"def",
"monthrange",
"(",
"cls",
",",
"year",
",",
"month",
")",
":",
"functions",
".",
"check_valid_bs_range",
"(",
"NepDate",
"(",
"year",
",",
"month",
",",
"1",
")",
")",
"return",
"values",
".",
"NEPALI_MONTH_DAY_DATA",
"[",
"year",
"]",
"[",
"month... | Returns the number of days in a month | [
"Returns",
"the",
"number",
"of",
"days",
"in",
"a",
"month"
] | a589c28b8e085049f30a7287753476b59eca6f50 | https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/nepcal.py#L29-L32 | train | Returns the number of days in a month |
nepalicalendar/nepalicalendar-py | nepalicalendar/nepcal.py | NepCal.itermonthdates | def itermonthdates(cls, year, month):
"""
Returns an iterator for the month in a year
This iterator will return all days (as NepDate objects) for the month
and all days before the start of the month or after the end of the month
that are required to get a complete week.
"... | python | def itermonthdates(cls, year, month):
"""
Returns an iterator for the month in a year
This iterator will return all days (as NepDate objects) for the month
and all days before the start of the month or after the end of the month
that are required to get a complete week.
"... | [
"def",
"itermonthdates",
"(",
"cls",
",",
"year",
",",
"month",
")",
":",
"curday",
"=",
"NepDate",
".",
"from_bs_date",
"(",
"year",
",",
"month",
",",
"1",
")",
"start_weekday",
"=",
"curday",
".",
"weekday",
"(",
")",
"# Start_weekday represents the numbe... | Returns an iterator for the month in a year
This iterator will return all days (as NepDate objects) for the month
and all days before the start of the month or after the end of the month
that are required to get a complete week. | [
"Returns",
"an",
"iterator",
"for",
"the",
"month",
"in",
"a",
"year",
"This",
"iterator",
"will",
"return",
"all",
"days",
"(",
"as",
"NepDate",
"objects",
")",
"for",
"the",
"month",
"and",
"all",
"days",
"before",
"the",
"start",
"of",
"the",
"month",... | a589c28b8e085049f30a7287753476b59eca6f50 | https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/nepcal.py#L35-L62 | train | Iterate over the month dates in a year. |
nepalicalendar/nepalicalendar-py | nepalicalendar/nepcal.py | NepCal.itermonthdays | def itermonthdays(cls, year, month):
"""Similar to itermonthdates but returns day number instead of NepDate object
"""
for day in NepCal.itermonthdates(year, month):
if day.month == month:
yield day.day
else:
yield 0 | python | def itermonthdays(cls, year, month):
"""Similar to itermonthdates but returns day number instead of NepDate object
"""
for day in NepCal.itermonthdates(year, month):
if day.month == month:
yield day.day
else:
yield 0 | [
"def",
"itermonthdays",
"(",
"cls",
",",
"year",
",",
"month",
")",
":",
"for",
"day",
"in",
"NepCal",
".",
"itermonthdates",
"(",
"year",
",",
"month",
")",
":",
"if",
"day",
".",
"month",
"==",
"month",
":",
"yield",
"day",
".",
"day",
"else",
":... | Similar to itermonthdates but returns day number instead of NepDate object | [
"Similar",
"to",
"itermonthdates",
"but",
"returns",
"day",
"number",
"instead",
"of",
"NepDate",
"object"
] | a589c28b8e085049f30a7287753476b59eca6f50 | https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/nepcal.py#L65-L72 | train | Similar to itermonthdates but returns day number instead of NepDate object
|
nepalicalendar/nepalicalendar-py | nepalicalendar/nepcal.py | NepCal.itermonthdays2 | def itermonthdays2(cls, year, month):
"""Similar to itermonthdays2 but returns tuples of day and weekday.
"""
for day in NepCal.itermonthdates(year, month):
if day.month == month:
yield (day.day, day.weekday())
else:
yield (0, day.weekday()... | python | def itermonthdays2(cls, year, month):
"""Similar to itermonthdays2 but returns tuples of day and weekday.
"""
for day in NepCal.itermonthdates(year, month):
if day.month == month:
yield (day.day, day.weekday())
else:
yield (0, day.weekday()... | [
"def",
"itermonthdays2",
"(",
"cls",
",",
"year",
",",
"month",
")",
":",
"for",
"day",
"in",
"NepCal",
".",
"itermonthdates",
"(",
"year",
",",
"month",
")",
":",
"if",
"day",
".",
"month",
"==",
"month",
":",
"yield",
"(",
"day",
".",
"day",
",",... | Similar to itermonthdays2 but returns tuples of day and weekday. | [
"Similar",
"to",
"itermonthdays2",
"but",
"returns",
"tuples",
"of",
"day",
"and",
"weekday",
"."
] | a589c28b8e085049f30a7287753476b59eca6f50 | https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/nepcal.py#L75-L82 | train | Similar to itermonthdays but returns tuples of day and weekday. |
nepalicalendar/nepalicalendar-py | nepalicalendar/nepcal.py | NepCal.monthdatescalendar | def monthdatescalendar(cls, year, month):
""" Returns a list of week in a month. A week is a list of NepDate objects """
weeks = []
week = []
for day in NepCal.itermonthdates(year, month):
week.append(day)
if len(week) == 7:
weeks.append(week)
... | python | def monthdatescalendar(cls, year, month):
""" Returns a list of week in a month. A week is a list of NepDate objects """
weeks = []
week = []
for day in NepCal.itermonthdates(year, month):
week.append(day)
if len(week) == 7:
weeks.append(week)
... | [
"def",
"monthdatescalendar",
"(",
"cls",
",",
"year",
",",
"month",
")",
":",
"weeks",
"=",
"[",
"]",
"week",
"=",
"[",
"]",
"for",
"day",
"in",
"NepCal",
".",
"itermonthdates",
"(",
"year",
",",
"month",
")",
":",
"week",
".",
"append",
"(",
"day"... | Returns a list of week in a month. A week is a list of NepDate objects | [
"Returns",
"a",
"list",
"of",
"week",
"in",
"a",
"month",
".",
"A",
"week",
"is",
"a",
"list",
"of",
"NepDate",
"objects"
] | a589c28b8e085049f30a7287753476b59eca6f50 | https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/nepcal.py#L85-L96 | train | Returns a list of week in a month. A week is a list of NepDate objects. |
nepalicalendar/nepalicalendar-py | nepalicalendar/nepcal.py | NepCal.monthdayscalendar | def monthdayscalendar(cls, year, month):
"""Return a list of the weeks in the month month of the year as full weeks.
Weeks are lists of seven day numbers."""
weeks = []
week = []
for day in NepCal.itermonthdays(year, month):
week.append(day)
if len(week) =... | python | def monthdayscalendar(cls, year, month):
"""Return a list of the weeks in the month month of the year as full weeks.
Weeks are lists of seven day numbers."""
weeks = []
week = []
for day in NepCal.itermonthdays(year, month):
week.append(day)
if len(week) =... | [
"def",
"monthdayscalendar",
"(",
"cls",
",",
"year",
",",
"month",
")",
":",
"weeks",
"=",
"[",
"]",
"week",
"=",
"[",
"]",
"for",
"day",
"in",
"NepCal",
".",
"itermonthdays",
"(",
"year",
",",
"month",
")",
":",
"week",
".",
"append",
"(",
"day",
... | Return a list of the weeks in the month month of the year as full weeks.
Weeks are lists of seven day numbers. | [
"Return",
"a",
"list",
"of",
"the",
"weeks",
"in",
"the",
"month",
"month",
"of",
"the",
"year",
"as",
"full",
"weeks",
".",
"Weeks",
"are",
"lists",
"of",
"seven",
"day",
"numbers",
"."
] | a589c28b8e085049f30a7287753476b59eca6f50 | https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/nepcal.py#L99-L111 | train | Return a list of the weeks in the month of the year as full weeks. Weeks are lists of seven day numbers. |
nepalicalendar/nepalicalendar-py | nepalicalendar/nepcal.py | NepCal.monthdays2calendar | def monthdays2calendar(cls, year, month):
""" Return a list of the weeks in the month month of the year as full weeks.
Weeks are lists of seven tuples of day numbers and weekday numbers. """
weeks = []
week = []
for day in NepCal.itermonthdays2(year, month):
week.appe... | python | def monthdays2calendar(cls, year, month):
""" Return a list of the weeks in the month month of the year as full weeks.
Weeks are lists of seven tuples of day numbers and weekday numbers. """
weeks = []
week = []
for day in NepCal.itermonthdays2(year, month):
week.appe... | [
"def",
"monthdays2calendar",
"(",
"cls",
",",
"year",
",",
"month",
")",
":",
"weeks",
"=",
"[",
"]",
"week",
"=",
"[",
"]",
"for",
"day",
"in",
"NepCal",
".",
"itermonthdays2",
"(",
"year",
",",
"month",
")",
":",
"week",
".",
"append",
"(",
"day"... | Return a list of the weeks in the month month of the year as full weeks.
Weeks are lists of seven tuples of day numbers and weekday numbers. | [
"Return",
"a",
"list",
"of",
"the",
"weeks",
"in",
"the",
"month",
"month",
"of",
"the",
"year",
"as",
"full",
"weeks",
".",
"Weeks",
"are",
"lists",
"of",
"seven",
"tuples",
"of",
"day",
"numbers",
"and",
"weekday",
"numbers",
"."
] | a589c28b8e085049f30a7287753476b59eca6f50 | https://github.com/nepalicalendar/nepalicalendar-py/blob/a589c28b8e085049f30a7287753476b59eca6f50/nepalicalendar/nepcal.py#L114-L126 | train | Return a list of the weeks in the month of the year as full weeks. |
StackStorm/pybind | pybind/nos/v7_2_0/mac_address_table/mac_move/__init__.py | mac_move._set_mac_move_limit | def _set_mac_move_limit(self, v, load=False):
"""
Setter method for mac_move_limit, mapped from YANG variable /mac_address_table/mac_move/mac_move_limit (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_move_limit is considered as a private
method. Backend... | python | def _set_mac_move_limit(self, v, load=False):
"""
Setter method for mac_move_limit, mapped from YANG variable /mac_address_table/mac_move/mac_move_limit (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_move_limit is considered as a private
method. Backend... | [
"def",
"_set_mac_move_limit",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for mac_move_limit, mapped from YANG variable /mac_address_table/mac_move/mac_move_limit (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_move_limit is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"Setter",
"method",
"for",
"mac_move_limit",
"mapped",
"from",
"YANG",
"variable",
"/",
"mac_address_table",
"/",
"mac_move",
"/",
"mac_move_limit",
"(",
"uint32",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"i... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/mac_address_table/mac_move/__init__.py#L136-L159 | train | Sets the limit of the MAC move detector. |
StackStorm/pybind | pybind/nos/v7_2_0/mac_address_table/mac_move/__init__.py | mac_move._set_mac_move_action | def _set_mac_move_action(self, v, load=False):
"""
Setter method for mac_move_action, mapped from YANG variable /mac_address_table/mac_move/mac_move_action (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_move_action is considered as a private
method... | python | def _set_mac_move_action(self, v, load=False):
"""
Setter method for mac_move_action, mapped from YANG variable /mac_address_table/mac_move/mac_move_action (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_move_action is considered as a private
method... | [
"def",
"_set_mac_move_action",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for mac_move_action, mapped from YANG variable /mac_address_table/mac_move/mac_move_action (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_move_action is considered as a private
method. Backends looking to populate this variable should
do ... | [
"Setter",
"method",
"for",
"mac_move_action",
"mapped",
"from",
"YANG",
"variable",
"/",
"mac_address_table",
"/",
"mac_move",
"/",
"mac_move_action",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/mac_address_table/mac_move/__init__.py#L173-L196 | train | Sets the action of the MAC move sequence. |
StackStorm/pybind | pybind/nos/v7_2_0/mac_address_table/mac_move/__init__.py | mac_move._set_auto_recovery | def _set_auto_recovery(self, v, load=False):
"""
Setter method for auto_recovery, mapped from YANG variable /mac_address_table/mac_move/auto_recovery (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auto_recovery is considered as a private
method. Backends... | python | def _set_auto_recovery(self, v, load=False):
"""
Setter method for auto_recovery, mapped from YANG variable /mac_address_table/mac_move/auto_recovery (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auto_recovery is considered as a private
method. Backends... | [
"def",
"_set_auto_recovery",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"... | Setter method for auto_recovery, mapped from YANG variable /mac_address_table/mac_move/auto_recovery (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auto_recovery is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"Setter",
"method",
"for",
"auto_recovery",
"mapped",
"from",
"YANG",
"variable",
"/",
"mac_address_table",
"/",
"mac_move",
"/",
"auto_recovery",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/mac_address_table/mac_move/__init__.py#L210-L233 | train | Sets auto recovery of port on MAC move |
StackStorm/pybind | pybind/slxos/v17r_2_00/telemetry/profile/mpls_traffic_lsp/__init__.py | mpls_traffic_lsp._set_mpls_traffic_lsps | def _set_mpls_traffic_lsps(self, v, load=False):
"""
Setter method for mpls_traffic_lsps, mapped from YANG variable /telemetry/profile/mpls_traffic_lsp/mpls_traffic_lsps (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_traffic_lsps is considered as a private
... | python | def _set_mpls_traffic_lsps(self, v, load=False):
"""
Setter method for mpls_traffic_lsps, mapped from YANG variable /telemetry/profile/mpls_traffic_lsp/mpls_traffic_lsps (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_traffic_lsps is considered as a private
... | [
"def",
"_set_mpls_traffic_lsps",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for mpls_traffic_lsps, mapped from YANG variable /telemetry/profile/mpls_traffic_lsp/mpls_traffic_lsps (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_traffic_lsps is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"mpls_traffic_lsps",
"mapped",
"from",
"YANG",
"variable",
"/",
"telemetry",
"/",
"profile",
"/",
"mpls_traffic_lsp",
"/",
"mpls_traffic_lsps",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/telemetry/profile/mpls_traffic_lsp/__init__.py#L167-L188 | train | Sets the value of the MPLS Traffic LSPs field in the MPL file. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/__init__.py | mpls_state._set_ldp | def _set_ldp(self, v, load=False):
"""
Setter method for ldp, mapped from YANG variable /mpls_state/ldp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp is considered as a private
method. Backends looking to populate this variable should
do so via ... | python | def _set_ldp(self, v, load=False):
"""
Setter method for ldp, mapped from YANG variable /mpls_state/ldp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp is considered as a private
method. Backends looking to populate this variable should
do so via ... | [
"def",
"_set_ldp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for ldp, mapped from YANG variable /mpls_state/ldp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_ldp() directly.
YANG ... | [
"Setter",
"method",
"for",
"ldp",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"ldp",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/__init__.py#L928-L951 | train | Sets the ldp property of the object. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/__init__.py | mpls_state._set_policy | def _set_policy(self, v, load=False):
"""
Setter method for policy, mapped from YANG variable /mpls_state/policy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_policy is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_policy(self, v, load=False):
"""
Setter method for policy, mapped from YANG variable /mpls_state/policy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_policy is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_policy",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for policy, mapped from YANG variable /mpls_state/policy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_policy is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_policy() directly... | [
"Setter",
"method",
"for",
"policy",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"policy",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"fil... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/__init__.py#L1002-L1025 | train | Set the policy of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/__init__.py | mpls_state._set_rsvp | def _set_rsvp(self, v, load=False):
"""
Setter method for rsvp, mapped from YANG variable /mpls_state/rsvp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rsvp is considered as a private
method. Backends looking to populate this variable should
do so ... | python | def _set_rsvp(self, v, load=False):
"""
Setter method for rsvp, mapped from YANG variable /mpls_state/rsvp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rsvp is considered as a private
method. Backends looking to populate this variable should
do so ... | [
"def",
"_set_rsvp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for rsvp, mapped from YANG variable /mpls_state/rsvp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rsvp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_rsvp() directly.
Y... | [
"Setter",
"method",
"for",
"rsvp",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"rsvp",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/__init__.py#L1039-L1062 | train | Sets the rsvp property of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/__init__.py | mpls_state._set_dynamic_bypass | def _set_dynamic_bypass(self, v, load=False):
"""
Setter method for dynamic_bypass, mapped from YANG variable /mpls_state/dynamic_bypass (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dynamic_bypass is considered as a private
method. Backends looking to ... | python | def _set_dynamic_bypass(self, v, load=False):
"""
Setter method for dynamic_bypass, mapped from YANG variable /mpls_state/dynamic_bypass (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dynamic_bypass is considered as a private
method. Backends looking to ... | [
"def",
"_set_dynamic_bypass",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for dynamic_bypass, mapped from YANG variable /mpls_state/dynamic_bypass (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dynamic_bypass is considered as a private
method. Backends looking to populate this variable should
do so via calling thisOb... | [
"Setter",
"method",
"for",
"dynamic_bypass",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"dynamic_bypass",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/__init__.py#L1076-L1099 | train | Sets the dynamic bypass of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/__init__.py | mpls_state._set_te | def _set_te(self, v, load=False):
"""
Setter method for te, mapped from YANG variable /mpls_state/te (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_te is considered as a private
method. Backends looking to populate this variable should
do so via call... | python | def _set_te(self, v, load=False):
"""
Setter method for te, mapped from YANG variable /mpls_state/te (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_te is considered as a private
method. Backends looking to populate this variable should
do so via call... | [
"def",
"_set_te",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"=... | Setter method for te, mapped from YANG variable /mpls_state/te (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_te is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_te() directly.
YANG Desc... | [
"Setter",
"method",
"for",
"te",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"te",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"t... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/__init__.py#L1113-L1136 | train | Set the te field of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/__init__.py | mpls_state._set_autobw_threshold_table_summary | def _set_autobw_threshold_table_summary(self, v, load=False):
"""
Setter method for autobw_threshold_table_summary, mapped from YANG variable /mpls_state/autobw_threshold_table_summary (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_autobw_threshold_table_sum... | python | def _set_autobw_threshold_table_summary(self, v, load=False):
"""
Setter method for autobw_threshold_table_summary, mapped from YANG variable /mpls_state/autobw_threshold_table_summary (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_autobw_threshold_table_sum... | [
"def",
"_set_autobw_threshold_table_summary",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
... | Setter method for autobw_threshold_table_summary, mapped from YANG variable /mpls_state/autobw_threshold_table_summary (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_autobw_threshold_table_summary is considered as a private
method. Backends looking to populate t... | [
"Setter",
"method",
"for",
"autobw_threshold_table_summary",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"autobw_threshold_table_summary",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/__init__.py#L1150-L1173 | train | Set the autobw_threshold_table_summary property of the autobw_threshold_table_summary variable. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/__init__.py | mpls_state._set_statistics_oam | def _set_statistics_oam(self, v, load=False):
"""
Setter method for statistics_oam, mapped from YANG variable /mpls_state/statistics_oam (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_statistics_oam is considered as a private
method. Backends looking to ... | python | def _set_statistics_oam(self, v, load=False):
"""
Setter method for statistics_oam, mapped from YANG variable /mpls_state/statistics_oam (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_statistics_oam is considered as a private
method. Backends looking to ... | [
"def",
"_set_statistics_oam",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for statistics_oam, mapped from YANG variable /mpls_state/statistics_oam (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_statistics_oam is considered as a private
method. Backends looking to populate this variable should
do so via calling thisOb... | [
"Setter",
"method",
"for",
"statistics_oam",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"statistics_oam",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/__init__.py#L1187-L1210 | train | Sets the statistics_oam variable. |
StackStorm/pybind | pybind/slxos/v17s_1_02/bridge_domain_state/__init__.py | bridge_domain_state._set_bridge_domain_counter | def _set_bridge_domain_counter(self, v, load=False):
"""
Setter method for bridge_domain_counter, mapped from YANG variable /bridge_domain_state/bridge_domain_counter (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bridge_domain_counter is considered as a pri... | python | def _set_bridge_domain_counter(self, v, load=False):
"""
Setter method for bridge_domain_counter, mapped from YANG variable /bridge_domain_state/bridge_domain_counter (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bridge_domain_counter is considered as a pri... | [
"def",
"_set_bridge_domain_counter",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for bridge_domain_counter, mapped from YANG variable /bridge_domain_state/bridge_domain_counter (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bridge_domain_counter is considered as a private
method. Backends looking to populate this variable shoul... | [
"Setter",
"method",
"for",
"bridge_domain_counter",
"mapped",
"from",
"YANG",
"variable",
"/",
"bridge_domain_state",
"/",
"bridge_domain_counter",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/bridge_domain_state/__init__.py#L98-L121 | train | Sets the value of the bridge_domain_counter variable in the network. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_config/router/mpls/mpls_cmds_holder/__init__.py | mpls_cmds_holder._set_path | def _set_path(self, v, load=False):
"""
Setter method for path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/path (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_path is considered as a private
method. Backends looking to populate this v... | python | def _set_path(self, v, load=False):
"""
Setter method for path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/path (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_path is considered as a private
method. Backends looking to populate this v... | [
"def",
"_set_path",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for path, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/path (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_path is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._se... | [
"Setter",
"method",
"for",
"path",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_config",
"/",
"router",
"/",
"mpls",
"/",
"mpls_cmds_holder",
"/",
"path",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"fal... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_config/router/mpls/mpls_cmds_holder/__init__.py#L446-L467 | train | Set the path of the
based on the path_name property. |
StackStorm/pybind | pybind/slxos/v17s_1_02/interface_vlan/vlan/ip/__init__.py | ip._set_igmpPIM | def _set_igmpPIM(self, v, load=False):
"""
Setter method for igmpPIM, mapped from YANG variable /interface_vlan/vlan/ip/igmpPIM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmpPIM is considered as a private
method. Backends looking to populate this va... | python | def _set_igmpPIM(self, v, load=False):
"""
Setter method for igmpPIM, mapped from YANG variable /interface_vlan/vlan/ip/igmpPIM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmpPIM is considered as a private
method. Backends looking to populate this va... | [
"def",
"_set_igmpPIM",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for igmpPIM, mapped from YANG variable /interface_vlan/vlan/ip/igmpPIM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmpPIM is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_ig... | [
"Setter",
"method",
"for",
"igmpPIM",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_vlan",
"/",
"vlan",
"/",
"ip",
"/",
"igmpPIM",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface_vlan/vlan/ip/__init__.py#L166-L187 | train | Set the value of the igmpPIM variable. |
StackStorm/pybind | pybind/slxos/v17s_1_02/interface_vlan/vlan/ip/__init__.py | ip._set_igmpVlan | def _set_igmpVlan(self, v, load=False):
"""
Setter method for igmpVlan, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmpVlan is considered as a private
method. Backends looking to populate thi... | python | def _set_igmpVlan(self, v, load=False):
"""
Setter method for igmpVlan, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmpVlan is considered as a private
method. Backends looking to populate thi... | [
"def",
"_set_igmpVlan",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for igmpVlan, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmpVlan is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"igmpVlan",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_vlan",
"/",
"vlan",
"/",
"ip",
"/",
"igmpVlan",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface_vlan/vlan/ip/__init__.py#L199-L220 | train | Set the value of igmpVlan in the base node. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/openflow/__init__.py | openflow._set_logical_instance | def _set_logical_instance(self, v, load=False):
"""
Setter method for logical_instance, mapped from YANG variable /rbridge_id/openflow/logical_instance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_logical_instance is considered as a private
method. Backends... | python | def _set_logical_instance(self, v, load=False):
"""
Setter method for logical_instance, mapped from YANG variable /rbridge_id/openflow/logical_instance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_logical_instance is considered as a private
method. Backends... | [
"def",
"_set_logical_instance",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for logical_instance, mapped from YANG variable /rbridge_id/openflow/logical_instance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_logical_instance is considered as a private
method. Backends looking to populate this variable should
do so via call... | [
"Setter",
"method",
"for",
"logical_instance",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"openflow",
"/",
"logical_instance",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/openflow/__init__.py#L97-L121 | train | Sets the logical_instance of the specified virtual environment. |
StackStorm/pybind | pybind/nos/v6_0_2f/zoning/defined_configuration/__init__.py | defined_configuration._set_cfg | def _set_cfg(self, v, load=False):
"""
Setter method for cfg, mapped from YANG variable /zoning/defined_configuration/cfg (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfg is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_cfg(self, v, load=False):
"""
Setter method for cfg, mapped from YANG variable /zoning/defined_configuration/cfg (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfg is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_cfg",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for cfg, mapped from YANG variable /zoning/defined_configuration/cfg (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfg is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cfg() directl... | [
"Setter",
"method",
"for",
"cfg",
"mapped",
"from",
"YANG",
"variable",
"/",
"zoning",
"/",
"defined_configuration",
"/",
"cfg",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/zoning/defined_configuration/__init__.py#L96-L117 | train | Sets the value of cfg in the base order. |
StackStorm/pybind | pybind/nos/v6_0_2f/zoning/defined_configuration/__init__.py | defined_configuration._set_zone | def _set_zone(self, v, load=False):
"""
Setter method for zone, mapped from YANG variable /zoning/defined_configuration/zone (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_zone is considered as a private
method. Backends looking to populate this variable shou... | python | def _set_zone(self, v, load=False):
"""
Setter method for zone, mapped from YANG variable /zoning/defined_configuration/zone (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_zone is considered as a private
method. Backends looking to populate this variable shou... | [
"def",
"_set_zone",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for zone, mapped from YANG variable /zoning/defined_configuration/zone (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_zone is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_zone() dir... | [
"Setter",
"method",
"for",
"zone",
"mapped",
"from",
"YANG",
"variable",
"/",
"zoning",
"/",
"defined_configuration",
"/",
"zone",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sour... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/zoning/defined_configuration/__init__.py#L129-L150 | train | Sets the zone of the
based on zone_name |
StackStorm/pybind | pybind/nos/v6_0_2f/zoning/defined_configuration/__init__.py | defined_configuration._set_alias | def _set_alias(self, v, load=False):
"""
Setter method for alias, mapped from YANG variable /zoning/defined_configuration/alias (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_alias is considered as a private
method. Backends looking to populate this variable ... | python | def _set_alias(self, v, load=False):
"""
Setter method for alias, mapped from YANG variable /zoning/defined_configuration/alias (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_alias is considered as a private
method. Backends looking to populate this variable ... | [
"def",
"_set_alias",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for alias, mapped from YANG variable /zoning/defined_configuration/alias (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_alias is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_alias()... | [
"Setter",
"method",
"for",
"alias",
"mapped",
"from",
"YANG",
"variable",
"/",
"zoning",
"/",
"defined_configuration",
"/",
"alias",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"so... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/zoning/defined_configuration/__init__.py#L162-L183 | train | Sets the alias of the
based on the given list of aliases. |
StackStorm/pybind | pybind/nos/v6_0_2f/aaa_config/aaa/authentication/__init__.py | authentication._set_login | def _set_login(self, v, load=False):
"""
Setter method for login, mapped from YANG variable /aaa_config/aaa/authentication/login (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_login is considered as a private
method. Backends looking to populate this var... | python | def _set_login(self, v, load=False):
"""
Setter method for login, mapped from YANG variable /aaa_config/aaa/authentication/login (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_login is considered as a private
method. Backends looking to populate this var... | [
"def",
"_set_login",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for login, mapped from YANG variable /aaa_config/aaa/authentication/login (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_login is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_l... | [
"Setter",
"method",
"for",
"login",
"mapped",
"from",
"YANG",
"variable",
"/",
"aaa_config",
"/",
"aaa",
"/",
"authentication",
"/",
"login",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"i... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/aaa_config/aaa/authentication/__init__.py#L92-L113 | train | Set login property. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_fan | def _set_fan(self, v, load=False):
"""
Setter method for fan, mapped from YANG variable /system_monitor/fan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fan is considered as a private
method. Backends looking to populate this variable should
do so ... | python | def _set_fan(self, v, load=False):
"""
Setter method for fan, mapped from YANG variable /system_monitor/fan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fan is considered as a private
method. Backends looking to populate this variable should
do so ... | [
"def",
"_set_fan",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for fan, mapped from YANG variable /system_monitor/fan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fan is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_fan() directly. | [
"Setter",
"method",
"for",
"fan",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"fan",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L110-L131 | train | Sets the fan value for the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_temp | def _set_temp(self, v, load=False):
"""
Setter method for temp, mapped from YANG variable /system_monitor/temp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_temp is considered as a private
method. Backends looking to populate this variable should
do... | python | def _set_temp(self, v, load=False):
"""
Setter method for temp, mapped from YANG variable /system_monitor/temp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_temp is considered as a private
method. Backends looking to populate this variable should
do... | [
"def",
"_set_temp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for temp, mapped from YANG variable /system_monitor/temp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_temp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_temp() directly. | [
"Setter",
"method",
"for",
"temp",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"temp",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"fil... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L176-L197 | train | Sets the temperature of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_cid_card | def _set_cid_card(self, v, load=False):
"""
Setter method for cid_card, mapped from YANG variable /system_monitor/cid_card (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cid_card is considered as a private
method. Backends looking to populate this variab... | python | def _set_cid_card(self, v, load=False):
"""
Setter method for cid_card, mapped from YANG variable /system_monitor/cid_card (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cid_card is considered as a private
method. Backends looking to populate this variab... | [
"def",
"_set_cid_card",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for cid_card, mapped from YANG variable /system_monitor/cid_card (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cid_card is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cid_car... | [
"Setter",
"method",
"for",
"cid_card",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"cid_card",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L209-L230 | train | Sets the cid_card of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_compact_flash | def _set_compact_flash(self, v, load=False):
"""
Setter method for compact_flash, mapped from YANG variable /system_monitor/compact_flash (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_compact_flash is considered as a private
method. Backends looking to ... | python | def _set_compact_flash(self, v, load=False):
"""
Setter method for compact_flash, mapped from YANG variable /system_monitor/compact_flash (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_compact_flash is considered as a private
method. Backends looking to ... | [
"def",
"_set_compact_flash",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"... | Setter method for compact_flash, mapped from YANG variable /system_monitor/compact_flash (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_compact_flash is considered as a private
method. Backends looking to populate this variable should
do so via calling thisO... | [
"Setter",
"method",
"for",
"compact_flash",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"compact_flash",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L242-L263 | train | Sets the compact_flash variable for the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_MM | def _set_MM(self, v, load=False):
"""
Setter method for MM, mapped from YANG variable /system_monitor/MM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_MM is considered as a private
method. Backends looking to populate this variable should
do so via ... | python | def _set_MM(self, v, load=False):
"""
Setter method for MM, mapped from YANG variable /system_monitor/MM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_MM is considered as a private
method. Backends looking to populate this variable should
do so via ... | [
"def",
"_set_MM",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"=... | Setter method for MM, mapped from YANG variable /system_monitor/MM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_MM is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_MM() directly. | [
"Setter",
"method",
"for",
"MM",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"MM",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L275-L296 | train | Sets the value of the MM variable. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_LineCard | def _set_LineCard(self, v, load=False):
"""
Setter method for LineCard, mapped from YANG variable /system_monitor/LineCard (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_LineCard is considered as a private
method. Backends looking to populate this variab... | python | def _set_LineCard(self, v, load=False):
"""
Setter method for LineCard, mapped from YANG variable /system_monitor/LineCard (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_LineCard is considered as a private
method. Backends looking to populate this variab... | [
"def",
"_set_LineCard",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for LineCard, mapped from YANG variable /system_monitor/LineCard (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_LineCard is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_LineCar... | [
"Setter",
"method",
"for",
"LineCard",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"LineCard",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L308-L329 | train | Sets the LineCard field of the
. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_SFM | def _set_SFM(self, v, load=False):
"""
Setter method for SFM, mapped from YANG variable /system_monitor/SFM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_SFM is considered as a private
method. Backends looking to populate this variable should
do so ... | python | def _set_SFM(self, v, load=False):
"""
Setter method for SFM, mapped from YANG variable /system_monitor/SFM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_SFM is considered as a private
method. Backends looking to populate this variable should
do so ... | [
"def",
"_set_SFM",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for SFM, mapped from YANG variable /system_monitor/SFM (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_SFM is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_SFM() directly. | [
"Setter",
"method",
"for",
"SFM",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"SFM",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L341-L362 | train | Sets the value of the SOFM variable. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_port | def _set_port(self, v, load=False):
"""
Setter method for port, mapped from YANG variable /system_monitor/port (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_port is considered as a private
method. Backends looking to populate this variable should
do... | python | def _set_port(self, v, load=False):
"""
Setter method for port, mapped from YANG variable /system_monitor/port (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_port is considered as a private
method. Backends looking to populate this variable should
do... | [
"def",
"_set_port",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for port, mapped from YANG variable /system_monitor/port (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_port is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_port() directly. | [
"Setter",
"method",
"for",
"port",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"port",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"fil... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L374-L395 | train | Sets the port property of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/system_monitor/__init__.py | system_monitor._set_tm | def _set_tm(self, v, load=False):
"""
Setter method for tm, mapped from YANG variable /system_monitor/tm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tm is considered as a private
method. Backends looking to populate this variable should
do so via ... | python | def _set_tm(self, v, load=False):
"""
Setter method for tm, mapped from YANG variable /system_monitor/tm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tm is considered as a private
method. Backends looking to populate this variable should
do so via ... | [
"def",
"_set_tm",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"=... | Setter method for tm, mapped from YANG variable /system_monitor/tm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tm is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_tm() directly. | [
"Setter",
"method",
"for",
"tm",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_monitor",
"/",
"tm",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/system_monitor/__init__.py#L407-L428 | train | Sets the value of the tm variable in the system monitor |
StackStorm/pybind | pybind/nos/v6_0_2f/protocol/__init__.py | protocol._set_lldp | def _set_lldp(self, v, load=False):
"""
Setter method for lldp, mapped from YANG variable /protocol/lldp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lldp is considered as a private
method. Backends looking to populate this variable should
do so vi... | python | def _set_lldp(self, v, load=False):
"""
Setter method for lldp, mapped from YANG variable /protocol/lldp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lldp is considered as a private
method. Backends looking to populate this variable should
do so vi... | [
"def",
"_set_lldp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for lldp, mapped from YANG variable /protocol/lldp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_lldp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_lldp() directly. | [
"Setter",
"method",
"for",
"lldp",
"mapped",
"from",
"YANG",
"variable",
"/",
"protocol",
"/",
"lldp",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/protocol/__init__.py#L131-L152 | train | Set the value of the lldp field. |
StackStorm/pybind | pybind/nos/v6_0_2f/rule/command/__init__.py | command._set_enumList | def _set_enumList(self, v, load=False):
"""
Setter method for enumList, mapped from YANG variable /rule/command/enumList (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_enumList is considered as a private
method. Backends looking to populate this variab... | python | def _set_enumList(self, v, load=False):
"""
Setter method for enumList, mapped from YANG variable /rule/command/enumList (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_enumList is considered as a private
method. Backends looking to populate this variab... | [
"def",
"_set_enumList",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for enumList, mapped from YANG variable /rule/command/enumList (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_enumList is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_enumLis... | [
"Setter",
"method",
"for",
"enumList",
"mapped",
"from",
"YANG",
"variable",
"/",
"rule",
"/",
"command",
"/",
"enumList",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sourc... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rule/command/__init__.py#L155-L176 | train | Sets the value of the enumList property of the base base |
StackStorm/pybind | pybind/nos/v6_0_2f/rule/command/__init__.py | command._set_interface_fe | def _set_interface_fe(self, v, load=False):
"""
Setter method for interface_fe, mapped from YANG variable /rule/command/interface_fe (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_fe is considered as a private
method. Backends looking to popula... | python | def _set_interface_fe(self, v, load=False):
"""
Setter method for interface_fe, mapped from YANG variable /rule/command/interface_fe (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_fe is considered as a private
method. Backends looking to popula... | [
"def",
"_set_interface_fe",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for interface_fe, mapped from YANG variable /rule/command/interface_fe (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_fe is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._s... | [
"Setter",
"method",
"for",
"interface_fe",
"mapped",
"from",
"YANG",
"variable",
"/",
"rule",
"/",
"command",
"/",
"interface_fe",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rule/command/__init__.py#L815-L836 | train | Sets the interface of the
based on the given interface. |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos/__init__.py | qos._set_tx_queue | def _set_tx_queue(self, v, load=False):
"""
Setter method for tx_queue, mapped from YANG variable /qos/tx_queue (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tx_queue is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_tx_queue(self, v, load=False):
"""
Setter method for tx_queue, mapped from YANG variable /qos/tx_queue (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tx_queue is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_tx_queue",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for tx_queue, mapped from YANG variable /qos/tx_queue (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tx_queue is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_tx_queue() directl... | [
"Setter",
"method",
"for",
"tx_queue",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"tx_queue",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos/__init__.py#L168-L189 | train | Sets the transmit queue of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/interface_vlan/interface/vlan/__init__.py | vlan._set_transport_service | def _set_transport_service(self, v, load=False):
"""
Setter method for transport_service, mapped from YANG variable /interface_vlan/interface/vlan/transport_service (uint16)
If this variable is read-only (config: false) in the
source YANG file, then _set_transport_service is considered as a private
... | python | def _set_transport_service(self, v, load=False):
"""
Setter method for transport_service, mapped from YANG variable /interface_vlan/interface/vlan/transport_service (uint16)
If this variable is read-only (config: false) in the
source YANG file, then _set_transport_service is considered as a private
... | [
"def",
"_set_transport_service",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for transport_service, mapped from YANG variable /interface_vlan/interface/vlan/transport_service (uint16)
If this variable is read-only (config: false) in the
source YANG file, then _set_transport_service is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"transport_service",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_vlan",
"/",
"interface",
"/",
"vlan",
"/",
"transport_service",
"(",
"uint16",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface_vlan/interface/vlan/__init__.py#L154-L177 | train | Sets the transport service of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/interface_vlan/interface/vlan/__init__.py | vlan._set_vlan_name | def _set_vlan_name(self, v, load=False):
"""
Setter method for vlan_name, mapped from YANG variable /interface_vlan/interface/vlan/vlan_name (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlan_name is considered as a private
method. Backends looking to popu... | python | def _set_vlan_name(self, v, load=False):
"""
Setter method for vlan_name, mapped from YANG variable /interface_vlan/interface/vlan/vlan_name (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlan_name is considered as a private
method. Backends looking to popu... | [
"def",
"_set_vlan_name",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for vlan_name, mapped from YANG variable /interface_vlan/interface/vlan/vlan_name (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlan_name is considered as a private
method. Backends looking to populate this variable should
do so via calling thisO... | [
"Setter",
"method",
"for",
"vlan_name",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_vlan",
"/",
"interface",
"/",
"vlan",
"/",
"vlan_name",
"(",
"string",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface_vlan/interface/vlan/__init__.py#L255-L276 | train | Sets the vlan name of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/interface_vlan/interface/vlan/__init__.py | vlan._set_private_vlan | def _set_private_vlan(self, v, load=False):
"""
Setter method for private_vlan, mapped from YANG variable /interface_vlan/interface/vlan/private_vlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_private_vlan is considered as a private
method. Backends ... | python | def _set_private_vlan(self, v, load=False):
"""
Setter method for private_vlan, mapped from YANG variable /interface_vlan/interface/vlan/private_vlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_private_vlan is considered as a private
method. Backends ... | [
"def",
"_set_private_vlan",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for private_vlan, mapped from YANG variable /interface_vlan/interface/vlan/private_vlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_private_vlan is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"Setter",
"method",
"for",
"private_vlan",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_vlan",
"/",
"interface",
"/",
"vlan",
"/",
"private_vlan",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface_vlan/interface/vlan/__init__.py#L290-L313 | train | Sets the value of the private_vlan field in the order of the VLANs in the order they are assigned. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface_vlan/interface/vlan/__init__.py | vlan._set_remote_span | def _set_remote_span(self, v, load=False):
"""
Setter method for remote_span, mapped from YANG variable /interface_vlan/interface/vlan/remote_span (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_remote_span is considered as a private
method. Backends looking ... | python | def _set_remote_span(self, v, load=False):
"""
Setter method for remote_span, mapped from YANG variable /interface_vlan/interface/vlan/remote_span (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_remote_span is considered as a private
method. Backends looking ... | [
"def",
"_set_remote_span",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for remote_span, mapped from YANG variable /interface_vlan/interface/vlan/remote_span (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_remote_span is considered as a private
method. Backends looking to populate this variable should
do so via calling ... | [
"Setter",
"method",
"for",
"remote_span",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_vlan",
"/",
"interface",
"/",
"vlan",
"/",
"remote_span",
"(",
"empty",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface_vlan/interface/vlan/__init__.py#L432-L453 | train | Set the remote_span property of the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py | map_._set_exp_traffic_class | def _set_exp_traffic_class(self, v, load=False):
"""
Setter method for exp_traffic_class, mapped from YANG variable /qos_mpls/map/exp_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_exp_traffic_class is considered as a private
method. Backends lo... | python | def _set_exp_traffic_class(self, v, load=False):
"""
Setter method for exp_traffic_class, mapped from YANG variable /qos_mpls/map/exp_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_exp_traffic_class is considered as a private
method. Backends lo... | [
"def",
"_set_exp_traffic_class",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for exp_traffic_class, mapped from YANG variable /qos_mpls/map/exp_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_exp_traffic_class is considered as a private
method. Backends looking to populate this variable should
do so via calling ... | [
"Setter",
"method",
"for",
"exp_traffic_class",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos_mpls",
"/",
"map",
"/",
"exp_traffic_class",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py#L100-L121 | train | Sets the exp - traffic class of the tree. |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py | map_._set_traffic_class_exp | def _set_traffic_class_exp(self, v, load=False):
"""
Setter method for traffic_class_exp, mapped from YANG variable /qos_mpls/map/traffic_class_exp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_exp is considered as a private
method. Backends lo... | python | def _set_traffic_class_exp(self, v, load=False):
"""
Setter method for traffic_class_exp, mapped from YANG variable /qos_mpls/map/traffic_class_exp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_exp is considered as a private
method. Backends lo... | [
"def",
"_set_traffic_class_exp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for traffic_class_exp, mapped from YANG variable /qos_mpls/map/traffic_class_exp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_exp is considered as a private
method. Backends looking to populate this variable should
do so via calling ... | [
"Setter",
"method",
"for",
"traffic_class_exp",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos_mpls",
"/",
"map",
"/",
"traffic_class_exp",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py#L133-L154 | train | Sets the value of the Traffic Class Exp Map. |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py | map_._set_dscp_exp | def _set_dscp_exp(self, v, load=False):
"""
Setter method for dscp_exp, mapped from YANG variable /qos_mpls/map/dscp_exp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_dscp_exp is considered as a private
method. Backends looking to populate this variable shou... | python | def _set_dscp_exp(self, v, load=False):
"""
Setter method for dscp_exp, mapped from YANG variable /qos_mpls/map/dscp_exp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_dscp_exp is considered as a private
method. Backends looking to populate this variable shou... | [
"def",
"_set_dscp_exp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for dscp_exp, mapped from YANG variable /qos_mpls/map/dscp_exp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_dscp_exp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_dscp_exp() dir... | [
"Setter",
"method",
"for",
"dscp_exp",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos_mpls",
"/",
"map",
"/",
"dscp_exp",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py#L166-L187 | train | Sets the value of dscp_exp mapped from QosMplsMap_dscp_exp_map_name to QosMplsMap_dscp_exp_map_name |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py | map_._set_exp_dscp | def _set_exp_dscp(self, v, load=False):
"""
Setter method for exp_dscp, mapped from YANG variable /qos_mpls/map/exp_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_exp_dscp is considered as a private
method. Backends looking to populate this variable shou... | python | def _set_exp_dscp(self, v, load=False):
"""
Setter method for exp_dscp, mapped from YANG variable /qos_mpls/map/exp_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_exp_dscp is considered as a private
method. Backends looking to populate this variable shou... | [
"def",
"_set_exp_dscp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for exp_dscp, mapped from YANG variable /qos_mpls/map/exp_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_exp_dscp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_exp_dscp() dir... | [
"Setter",
"method",
"for",
"exp_dscp",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos_mpls",
"/",
"map",
"/",
"exp_dscp",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py#L199-L220 | train | Set the value of exp_dscp mapped from QuantFigure map exp_dscp_map_name |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py | map_._set_inexp_outexp | def _set_inexp_outexp(self, v, load=False):
"""
Setter method for inexp_outexp, mapped from YANG variable /qos_mpls/map/inexp_outexp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_inexp_outexp is considered as a private
method. Backends looking to populate th... | python | def _set_inexp_outexp(self, v, load=False):
"""
Setter method for inexp_outexp, mapped from YANG variable /qos_mpls/map/inexp_outexp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_inexp_outexp is considered as a private
method. Backends looking to populate th... | [
"def",
"_set_inexp_outexp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for inexp_outexp, mapped from YANG variable /qos_mpls/map/inexp_outexp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_inexp_outexp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_in... | [
"Setter",
"method",
"for",
"inexp_outexp",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos_mpls",
"/",
"map",
"/",
"inexp_outexp",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sour... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_/__init__.py#L232-L253 | train | Sets the value of the inexp_outexp field in the internal representation. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/lsp/frr/__init__.py | frr._set_computation_mode | def _set_computation_mode(self, v, load=False):
"""
Setter method for computation_mode, mapped from YANG variable /mpls_state/lsp/frr/computation_mode (lsp-cspf-computation-mode)
If this variable is read-only (config: false) in the
source YANG file, then _set_computation_mode is considered as a private
... | python | def _set_computation_mode(self, v, load=False):
"""
Setter method for computation_mode, mapped from YANG variable /mpls_state/lsp/frr/computation_mode (lsp-cspf-computation-mode)
If this variable is read-only (config: false) in the
source YANG file, then _set_computation_mode is considered as a private
... | [
"def",
"_set_computation_mode",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for computation_mode, mapped from YANG variable /mpls_state/lsp/frr/computation_mode (lsp-cspf-computation-mode)
If this variable is read-only (config: false) in the
source YANG file, then _set_computation_mode is considered as a private
method. Backends looking to populate this variable shoul... | [
"Setter",
"method",
"for",
"computation_mode",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"lsp",
"/",
"frr",
"/",
"computation_mode",
"(",
"lsp",
"-",
"cspf",
"-",
"computation",
"-",
"mode",
")",
"If",
"this",
"variable",
"is",
"read",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/lsp/frr/__init__.py#L691-L714 | train | Sets the value of the lsp - cspf - computation - mode mapped from YANG variable |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos_mpls/__init__.py | qos_mpls._set_map_apply | def _set_map_apply(self, v, load=False):
"""
Setter method for map_apply, mapped from YANG variable /qos_mpls/map_apply (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_map_apply is considered as a private
method. Backends looking to populate this variable... | python | def _set_map_apply(self, v, load=False):
"""
Setter method for map_apply, mapped from YANG variable /qos_mpls/map_apply (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_map_apply is considered as a private
method. Backends looking to populate this variable... | [
"def",
"_set_map_apply",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for map_apply, mapped from YANG variable /qos_mpls/map_apply (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_map_apply is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_map_apply(... | [
"Setter",
"method",
"for",
"map_apply",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos_mpls",
"/",
"map_apply",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/__init__.py#L127-L148 | train | Sets the value of _map_apply mapped from QosMpls_Map_Apply |
StackStorm/pybind | pybind/slxos/v17s_1_02/protocol/cfm/__init__.py | cfm._set_domain_name | def _set_domain_name(self, v, load=False):
"""
Setter method for domain_name, mapped from YANG variable /protocol/cfm/domain_name (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_domain_name is considered as a private
method. Backends looking to populate this v... | python | def _set_domain_name(self, v, load=False):
"""
Setter method for domain_name, mapped from YANG variable /protocol/cfm/domain_name (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_domain_name is considered as a private
method. Backends looking to populate this v... | [
"def",
"_set_domain_name",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for domain_name, mapped from YANG variable /protocol/cfm/domain_name (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_domain_name is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_domai... | [
"Setter",
"method",
"for",
"domain_name",
"mapped",
"from",
"YANG",
"variable",
"/",
"protocol",
"/",
"cfm",
"/",
"domain_name",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/protocol/cfm/__init__.py#L92-L113 | train | Sets the domain name of the
. |
BD2KGenomics/protect | src/protect/mutation_calling/somaticsniper.py | run_somaticsniper_with_merge | def run_somaticsniper_with_merge(job, tumor_bam, normal_bam, univ_options, somaticsniper_options):
"""
A wrapper for the the entire SomaticSniper sub-graph.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict of bam and bai for normal DNA-Seq
:param dict univ_o... | python | def run_somaticsniper_with_merge(job, tumor_bam, normal_bam, univ_options, somaticsniper_options):
"""
A wrapper for the the entire SomaticSniper sub-graph.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict of bam and bai for normal DNA-Seq
:param dict univ_o... | [
"def",
"run_somaticsniper_with_merge",
"(",
"job",
",",
"tumor_bam",
",",
"normal_bam",
",",
"univ_options",
",",
"somaticsniper_options",
")",
":",
"spawn",
"=",
"job",
".",
"wrapJobFn",
"(",
"run_somaticsniper",
",",
"tumor_bam",
",",
"normal_bam",
",",
"univ_op... | A wrapper for the the entire SomaticSniper sub-graph.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict of bam and bai for normal DNA-Seq
:param dict univ_options: Dict of universal options used by almost all tools
:param dict somaticsniper_options: Options speci... | [
"A",
"wrapper",
"for",
"the",
"the",
"entire",
"SomaticSniper",
"sub",
"-",
"graph",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/somaticsniper.py#L50-L64 | train | A wrapper for the entire SomaticSniper sub - graph. |
BD2KGenomics/protect | src/protect/mutation_calling/somaticsniper.py | run_somaticsniper | def run_somaticsniper(job, tumor_bam, normal_bam, univ_options, somaticsniper_options, split=True):
"""
Run the SomaticSniper subgraph on the DNA bams. Optionally split the results into
per-chromosome vcfs.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict o... | python | def run_somaticsniper(job, tumor_bam, normal_bam, univ_options, somaticsniper_options, split=True):
"""
Run the SomaticSniper subgraph on the DNA bams. Optionally split the results into
per-chromosome vcfs.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict o... | [
"def",
"run_somaticsniper",
"(",
"job",
",",
"tumor_bam",
",",
"normal_bam",
",",
"univ_options",
",",
"somaticsniper_options",
",",
"split",
"=",
"True",
")",
":",
"# Get a list of chromosomes to handle",
"if",
"somaticsniper_options",
"[",
"'chromosomes'",
"]",
":",... | Run the SomaticSniper subgraph on the DNA bams. Optionally split the results into
per-chromosome vcfs.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict of bam and bai for normal DNA-Seq
:param dict univ_options: Dict of universal options used by almost all tool... | [
"Run",
"the",
"SomaticSniper",
"subgraph",
"on",
"the",
"DNA",
"bams",
".",
"Optionally",
"split",
"the",
"results",
"into",
"per",
"-",
"chromosome",
"vcfs",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/somaticsniper.py#L67-L123 | train | This function will run the SomaticSniper subgraph on the DNA bams. |
BD2KGenomics/protect | src/protect/mutation_calling/somaticsniper.py | run_somaticsniper_full | def run_somaticsniper_full(job, tumor_bam, normal_bam, univ_options, somaticsniper_options):
"""
Run SomaticSniper on the DNA bams.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict of bam and bai for normal DNA-Seq
:param dict univ_options: Dict of universal... | python | def run_somaticsniper_full(job, tumor_bam, normal_bam, univ_options, somaticsniper_options):
"""
Run SomaticSniper on the DNA bams.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict of bam and bai for normal DNA-Seq
:param dict univ_options: Dict of universal... | [
"def",
"run_somaticsniper_full",
"(",
"job",
",",
"tumor_bam",
",",
"normal_bam",
",",
"univ_options",
",",
"somaticsniper_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"'tumor.bam'",
":",
"tumor_bam",
"[",
"'tumo... | Run SomaticSniper on the DNA bams.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict of bam and bai for normal DNA-Seq
:param dict univ_options: Dict of universal options used by almost all tools
:param dict somaticsniper_options: Options specific to SomaticSnipe... | [
"Run",
"SomaticSniper",
"on",
"the",
"DNA",
"bams",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/somaticsniper.py#L126-L165 | train | This module will run SomaticSniper on the DNA bams and return the fsID of the output file. |
BD2KGenomics/protect | src/protect/mutation_calling/somaticsniper.py | filter_somaticsniper | def filter_somaticsniper(job, tumor_bam, somaticsniper_output, tumor_pileup, univ_options,
somaticsniper_options):
"""
Filter SomaticSniper calls.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param toil.fileStore.FileID somaticsniper_output: SomaticSniper outpu... | python | def filter_somaticsniper(job, tumor_bam, somaticsniper_output, tumor_pileup, univ_options,
somaticsniper_options):
"""
Filter SomaticSniper calls.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param toil.fileStore.FileID somaticsniper_output: SomaticSniper outpu... | [
"def",
"filter_somaticsniper",
"(",
"job",
",",
"tumor_bam",
",",
"somaticsniper_output",
",",
"tumor_pileup",
",",
"univ_options",
",",
"somaticsniper_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"'tumor.bam'",
":... | Filter SomaticSniper calls.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param toil.fileStore.FileID somaticsniper_output: SomaticSniper output vcf
:param toil.fileStore.FileID tumor_pileup: Pileup generated for the tumor bam
:param dict univ_options: Dict of universal options used by ... | [
"Filter",
"SomaticSniper",
"calls",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/somaticsniper.py#L168-L243 | train | This module will filter the SomaticSniper calls to get the correct set of genome - level vcf files for the given DNA - Seq bam and pileup. |
BD2KGenomics/protect | src/protect/mutation_calling/somaticsniper.py | run_pileup | def run_pileup(job, tumor_bam, univ_options, somaticsniper_options):
"""
Runs a samtools pileup on the tumor bam.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict univ_options: Dict of universal options used by almost all tools
:param dict somaticsniper_options: Options spec... | python | def run_pileup(job, tumor_bam, univ_options, somaticsniper_options):
"""
Runs a samtools pileup on the tumor bam.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict univ_options: Dict of universal options used by almost all tools
:param dict somaticsniper_options: Options spec... | [
"def",
"run_pileup",
"(",
"job",
",",
"tumor_bam",
",",
"univ_options",
",",
"somaticsniper_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"'tumor.bam'",
":",
"tumor_bam",
"[",
"'tumor_dna_fix_pg_sorted.bam'",
"]",
... | Runs a samtools pileup on the tumor bam.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict univ_options: Dict of universal options used by almost all tools
:param dict somaticsniper_options: Options specific to SomaticSniper
:return: fsID for the pileup file
:rtype: toil.file... | [
"Runs",
"a",
"samtools",
"pileup",
"on",
"the",
"tumor",
"bam",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/somaticsniper.py#L261-L294 | train | This function runs a samtools pileup on the tumor bam. |
inveniosoftware/invenio-access | invenio_access/models.py | get_action_cache_key | def get_action_cache_key(name, argument):
"""Get an action cache key string."""
tokens = [str(name)]
if argument:
tokens.append(str(argument))
return '::'.join(tokens) | python | def get_action_cache_key(name, argument):
"""Get an action cache key string."""
tokens = [str(name)]
if argument:
tokens.append(str(argument))
return '::'.join(tokens) | [
"def",
"get_action_cache_key",
"(",
"name",
",",
"argument",
")",
":",
"tokens",
"=",
"[",
"str",
"(",
"name",
")",
"]",
"if",
"argument",
":",
"tokens",
".",
"append",
"(",
"str",
"(",
"argument",
")",
")",
"return",
"'::'",
".",
"join",
"(",
"token... | Get an action cache key string. | [
"Get",
"an",
"action",
"cache",
"key",
"string",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/models.py#L200-L205 | train | Get an action cache key string. |
inveniosoftware/invenio-access | invenio_access/models.py | removed_or_inserted_action | def removed_or_inserted_action(mapper, connection, target):
"""Remove the action from cache when an item is inserted or deleted."""
current_access.delete_action_cache(get_action_cache_key(target.action,
target.argument)) | python | def removed_or_inserted_action(mapper, connection, target):
"""Remove the action from cache when an item is inserted or deleted."""
current_access.delete_action_cache(get_action_cache_key(target.action,
target.argument)) | [
"def",
"removed_or_inserted_action",
"(",
"mapper",
",",
"connection",
",",
"target",
")",
":",
"current_access",
".",
"delete_action_cache",
"(",
"get_action_cache_key",
"(",
"target",
".",
"action",
",",
"target",
".",
"argument",
")",
")"
] | Remove the action from cache when an item is inserted or deleted. | [
"Remove",
"the",
"action",
"from",
"cache",
"when",
"an",
"item",
"is",
"inserted",
"or",
"deleted",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/models.py#L208-L211 | train | Remove the action from cache when an item is inserted or deleted. |
inveniosoftware/invenio-access | invenio_access/models.py | changed_action | def changed_action(mapper, connection, target):
"""Remove the action from cache when an item is updated."""
action_history = get_history(target, 'action')
argument_history = get_history(target, 'argument')
owner_history = get_history(
target,
'user' if isinstance(target, ActionUsers) els... | python | def changed_action(mapper, connection, target):
"""Remove the action from cache when an item is updated."""
action_history = get_history(target, 'action')
argument_history = get_history(target, 'argument')
owner_history = get_history(
target,
'user' if isinstance(target, ActionUsers) els... | [
"def",
"changed_action",
"(",
"mapper",
",",
"connection",
",",
"target",
")",
":",
"action_history",
"=",
"get_history",
"(",
"target",
",",
"'action'",
")",
"argument_history",
"=",
"get_history",
"(",
"target",
",",
"'argument'",
")",
"owner_history",
"=",
... | Remove the action from cache when an item is updated. | [
"Remove",
"the",
"action",
"from",
"cache",
"when",
"an",
"item",
"is",
"updated",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/models.py#L214-L233 | train | Remove the action from cache when an item is updated. |
inveniosoftware/invenio-access | invenio_access/models.py | ActionNeedMixin.create | def create(cls, action, **kwargs):
"""Create new database row using the provided action need.
:param action: An object containing a method equal to ``'action'`` and
a value.
:param argument: The action argument. If this parameter is not passed,
then the ``action.argument... | python | def create(cls, action, **kwargs):
"""Create new database row using the provided action need.
:param action: An object containing a method equal to ``'action'`` and
a value.
:param argument: The action argument. If this parameter is not passed,
then the ``action.argument... | [
"def",
"create",
"(",
"cls",
",",
"action",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"action",
".",
"method",
"==",
"'action'",
"argument",
"=",
"kwargs",
".",
"pop",
"(",
"'argument'",
",",
"None",
")",
"or",
"getattr",
"(",
"action",
",",
"'arg... | Create new database row using the provided action need.
:param action: An object containing a method equal to ``'action'`` and
a value.
:param argument: The action argument. If this parameter is not passed,
then the ``action.argument`` will be used instead. If the
``... | [
"Create",
"new",
"database",
"row",
"using",
"the",
"provided",
"action",
"need",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/models.py#L41-L59 | train | Create a new record in the database using the provided action need. |
inveniosoftware/invenio-access | invenio_access/models.py | ActionNeedMixin.allow | def allow(cls, action, **kwargs):
"""Allow the given action need.
:param action: The action to allow.
:returns: A :class:`invenio_access.models.ActionNeedMixin` instance.
"""
return cls.create(action, exclude=False, **kwargs) | python | def allow(cls, action, **kwargs):
"""Allow the given action need.
:param action: The action to allow.
:returns: A :class:`invenio_access.models.ActionNeedMixin` instance.
"""
return cls.create(action, exclude=False, **kwargs) | [
"def",
"allow",
"(",
"cls",
",",
"action",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"cls",
".",
"create",
"(",
"action",
",",
"exclude",
"=",
"False",
",",
"*",
"*",
"kwargs",
")"
] | Allow the given action need.
:param action: The action to allow.
:returns: A :class:`invenio_access.models.ActionNeedMixin` instance. | [
"Allow",
"the",
"given",
"action",
"need",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/models.py#L62-L68 | train | Allow the given action need. |
inveniosoftware/invenio-access | invenio_access/models.py | ActionNeedMixin.deny | def deny(cls, action, **kwargs):
"""Deny the given action need.
:param action: The action to deny.
:returns: A :class:`invenio_access.models.ActionNeedMixin` instance.
"""
return cls.create(action, exclude=True, **kwargs) | python | def deny(cls, action, **kwargs):
"""Deny the given action need.
:param action: The action to deny.
:returns: A :class:`invenio_access.models.ActionNeedMixin` instance.
"""
return cls.create(action, exclude=True, **kwargs) | [
"def",
"deny",
"(",
"cls",
",",
"action",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"cls",
".",
"create",
"(",
"action",
",",
"exclude",
"=",
"True",
",",
"*",
"*",
"kwargs",
")"
] | Deny the given action need.
:param action: The action to deny.
:returns: A :class:`invenio_access.models.ActionNeedMixin` instance. | [
"Deny",
"the",
"given",
"action",
"need",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/models.py#L71-L77 | train | Deny the given action need. |
inveniosoftware/invenio-access | invenio_access/models.py | ActionNeedMixin.query_by_action | def query_by_action(cls, action, argument=None):
"""Prepare query object with filtered action.
:param action: The action to deny.
:param argument: The action argument. If it's ``None`` then, if exists,
the ``action.argument`` will be taken. In the worst case will be
set ... | python | def query_by_action(cls, action, argument=None):
"""Prepare query object with filtered action.
:param action: The action to deny.
:param argument: The action argument. If it's ``None`` then, if exists,
the ``action.argument`` will be taken. In the worst case will be
set ... | [
"def",
"query_by_action",
"(",
"cls",
",",
"action",
",",
"argument",
"=",
"None",
")",
":",
"query",
"=",
"cls",
".",
"query",
".",
"filter_by",
"(",
"action",
"=",
"action",
".",
"value",
")",
"argument",
"=",
"argument",
"or",
"getattr",
"(",
"actio... | Prepare query object with filtered action.
:param action: The action to deny.
:param argument: The action argument. If it's ``None`` then, if exists,
the ``action.argument`` will be taken. In the worst case will be
set as ``None``. (Default: ``None``)
:returns: A query o... | [
"Prepare",
"query",
"object",
"with",
"filtered",
"action",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/models.py#L80-L98 | train | Prepare query object with filtered action. |
inveniosoftware/invenio-access | invenio_access/models.py | ActionSystemRoles.create | def create(cls, action, **kwargs):
"""Create new database row using the provided action need."""
role = kwargs.pop('role', None)
if role:
assert role.method == 'system_role'
kwargs['role_name'] = role.value
return super(ActionSystemRoles, cls).create(action, **kwa... | python | def create(cls, action, **kwargs):
"""Create new database row using the provided action need."""
role = kwargs.pop('role', None)
if role:
assert role.method == 'system_role'
kwargs['role_name'] = role.value
return super(ActionSystemRoles, cls).create(action, **kwa... | [
"def",
"create",
"(",
"cls",
",",
"action",
",",
"*",
"*",
"kwargs",
")",
":",
"role",
"=",
"kwargs",
".",
"pop",
"(",
"'role'",
",",
"None",
")",
"if",
"role",
":",
"assert",
"role",
".",
"method",
"==",
"'system_role'",
"kwargs",
"[",
"'role_name'"... | Create new database row using the provided action need. | [
"Create",
"new",
"database",
"row",
"using",
"the",
"provided",
"action",
"need",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/models.py#L180-L186 | train | Create new database row using the provided action need. |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_ras_rpc/__init__.py | brocade_ras._set_bna_config_cmd | def _set_bna_config_cmd(self, v, load=False):
"""
Setter method for bna_config_cmd, mapped from YANG variable /brocade_ras_rpc/bna_config_cmd (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_bna_config_cmd is considered as a private
method. Backends looking to p... | python | def _set_bna_config_cmd(self, v, load=False):
"""
Setter method for bna_config_cmd, mapped from YANG variable /brocade_ras_rpc/bna_config_cmd (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_bna_config_cmd is considered as a private
method. Backends looking to p... | [
"def",
"_set_bna_config_cmd",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for bna_config_cmd, mapped from YANG variable /brocade_ras_rpc/bna_config_cmd (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_bna_config_cmd is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj... | [
"Setter",
"method",
"for",
"bna_config_cmd",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_ras_rpc",
"/",
"bna_config_cmd",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_ras_rpc/__init__.py#L99-L122 | train | Set the value of bna - config - cmd. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mct_l2ys_state/__init__.py | mct_l2ys_state._set_show_cluster_mem_bd | def _set_show_cluster_mem_bd(self, v, load=False):
"""
Setter method for show_cluster_mem_bd, mapped from YANG variable /mct_l2ys_state/show_cluster_mem_bd (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_cluster_mem_bd is considered as a private
meth... | python | def _set_show_cluster_mem_bd(self, v, load=False):
"""
Setter method for show_cluster_mem_bd, mapped from YANG variable /mct_l2ys_state/show_cluster_mem_bd (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_cluster_mem_bd is considered as a private
meth... | [
"def",
"_set_show_cluster_mem_bd",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for show_cluster_mem_bd, mapped from YANG variable /mct_l2ys_state/show_cluster_mem_bd (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_cluster_mem_bd is considered as a private
method. Backends looking to populate this variable should
do so... | [
"Setter",
"method",
"for",
"show_cluster_mem_bd",
"mapped",
"from",
"YANG",
"variable",
"/",
"mct_l2ys_state",
"/",
"show_cluster_mem_bd",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mct_l2ys_state/__init__.py#L135-L158 | train | Sets the show_cluster_mem_bd variable in the cluster BD tree. |
StackStorm/pybind | pybind/slxos/v17s_1_02/topology_group_state/topology_group_data/__init__.py | topology_group_data._set_master_vlan | def _set_master_vlan(self, v, load=False):
"""
Setter method for master_vlan, mapped from YANG variable /topology_group_state/topology_group_data/master_vlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_master_vlan is considered as a private
method. Ba... | python | def _set_master_vlan(self, v, load=False):
"""
Setter method for master_vlan, mapped from YANG variable /topology_group_state/topology_group_data/master_vlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_master_vlan is considered as a private
method. Ba... | [
"def",
"_set_master_vlan",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for master_vlan, mapped from YANG variable /topology_group_state/topology_group_data/master_vlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_master_vlan is considered as a private
method. Backends looking to populate this variable should
do ... | [
"Setter",
"method",
"for",
"master_vlan",
"mapped",
"from",
"YANG",
"variable",
"/",
"topology_group_state",
"/",
"topology_group_data",
"/",
"master_vlan",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/topology_group_state/topology_group_data/__init__.py#L181-L204 | train | Sets the master vlan of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/redistribute/__init__.py | redistribute._set_redistribute_connected | def _set_redistribute_connected(self, v, load=False):
"""
Setter method for redistribute_connected, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_connected (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_connect... | python | def _set_redistribute_connected(self, v, load=False):
"""
Setter method for redistribute_connected, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_connected (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_connect... | [
"def",
"_set_redistribute_connected",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for redistribute_connected, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_connected (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_connected is considered as a private
method. Backends looking to popu... | [
"Setter",
"method",
"for",
"redistribute_connected",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"ipv6",
"/",
"router",
"/",
"ospf",
"/",
"redistribute",
"/",
"redistribute_connected",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"rea... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/redistribute/__init__.py#L102-L125 | train | Sets the connected routes in the BGP subtree. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/redistribute/__init__.py | redistribute._set_redistribute_static | def _set_redistribute_static(self, v, load=False):
"""
Setter method for redistribute_static, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_static (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_static is consid... | python | def _set_redistribute_static(self, v, load=False):
"""
Setter method for redistribute_static, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_static (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_static is consid... | [
"def",
"_set_redistribute_static",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for redistribute_static, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_static (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_static is considered as a private
method. Backends looking to populate this... | [
"Setter",
"method",
"for",
"redistribute_static",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"ipv6",
"/",
"router",
"/",
"ospf",
"/",
"redistribute",
"/",
"redistribute_static",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/redistribute/__init__.py#L139-L162 | train | Sets the static routes of the next set of static routes in the next set of static routes. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/redistribute/__init__.py | redistribute._set_redistribute_bgp | def _set_redistribute_bgp(self, v, load=False):
"""
Setter method for redistribute_bgp, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_bgp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_bgp is considered as a pr... | python | def _set_redistribute_bgp(self, v, load=False):
"""
Setter method for redistribute_bgp, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_bgp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_bgp is considered as a pr... | [
"def",
"_set_redistribute_bgp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for redistribute_bgp, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_bgp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_bgp is considered as a private
method. Backends looking to populate this variable... | [
"Setter",
"method",
"for",
"redistribute_bgp",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"ipv6",
"/",
"router",
"/",
"ospf",
"/",
"redistribute",
"/",
"redistribute_bgp",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/redistribute/__init__.py#L176-L199 | train | Sets the BGP routing table for BGP routing |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/redistribute/__init__.py | redistribute._set_redistribute_ospf | def _set_redistribute_ospf(self, v, load=False):
"""
Setter method for redistribute_ospf, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_ospf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_ospf is considered as ... | python | def _set_redistribute_ospf(self, v, load=False):
"""
Setter method for redistribute_ospf, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_ospf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_ospf is considered as ... | [
"def",
"_set_redistribute_ospf",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for redistribute_ospf, mapped from YANG variable /rbridge_id/ipv6/router/ospf/redistribute/redistribute_ospf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_redistribute_ospf is considered as a private
method. Backends looking to populate this varia... | [
"Setter",
"method",
"for",
"redistribute_ospf",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"ipv6",
"/",
"router",
"/",
"ospf",
"/",
"redistribute",
"/",
"redistribute_ospf",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/redistribute/__init__.py#L213-L236 | train | Sets the value of the redistribute_ospf variable. |
BD2KGenomics/protect | src/protect/binding_prediction/mhci.py | predict_mhci_binding | def predict_mhci_binding(job, peptfile, allele, peplen, univ_options, mhci_options):
"""
Predict binding for each peptide in `peptfile` to `allele` using the IEDB mhci binding
prediction tool.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict bindin... | python | def predict_mhci_binding(job, peptfile, allele, peplen, univ_options, mhci_options):
"""
Predict binding for each peptide in `peptfile` to `allele` using the IEDB mhci binding
prediction tool.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict bindin... | [
"def",
"predict_mhci_binding",
"(",
"job",
",",
"peptfile",
",",
"allele",
",",
"peplen",
",",
"univ_options",
",",
"mhci_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"'peptfile.faa'",
":",
"peptfile",
"}",
"... | Predict binding for each peptide in `peptfile` to `allele` using the IEDB mhci binding
prediction tool.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding against
:param str peplen: Length of peptides to process
:param dict univ_options: Dict... | [
"Predict",
"binding",
"for",
"each",
"peptide",
"in",
"peptfile",
"to",
"allele",
"using",
"the",
"IEDB",
"mhci",
"binding",
"prediction",
"tool",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/mhci.py#L23-L54 | train | Predict binding for each peptide in peptfile to allele using the IEDB mhci binding tool. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/ospf/timers/__init__.py | timers._set_throttle | def _set_throttle(self, v, load=False):
"""
Setter method for throttle, mapped from YANG variable /rbridge_id/router/ospf/timers/throttle (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_throttle is considered as a private
method. Backends looking to popul... | python | def _set_throttle(self, v, load=False):
"""
Setter method for throttle, mapped from YANG variable /rbridge_id/router/ospf/timers/throttle (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_throttle is considered as a private
method. Backends looking to popul... | [
"def",
"_set_throttle",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for throttle, mapped from YANG variable /rbridge_id/router/ospf/timers/throttle (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_throttle is considered as a private
method. Backends looking to populate this variable should
do so via calling thisO... | [
"Setter",
"method",
"for",
"throttle",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"timers",
"/",
"throttle",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"f... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/timers/__init__.py#L126-L147 | train | Sets the throttle property of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/interface/port_channel/switchport/mode/private_vlan/__init__.py | private_vlan._set_private_vlan_trunk | def _set_private_vlan_trunk(self, v, load=False):
"""
Setter method for private_vlan_trunk, mapped from YANG variable /interface/port_channel/switchport/mode/private_vlan/private_vlan_trunk (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_private_vlan_trunk is... | python | def _set_private_vlan_trunk(self, v, load=False):
"""
Setter method for private_vlan_trunk, mapped from YANG variable /interface/port_channel/switchport/mode/private_vlan/private_vlan_trunk (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_private_vlan_trunk is... | [
"def",
"_set_private_vlan_trunk",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for private_vlan_trunk, mapped from YANG variable /interface/port_channel/switchport/mode/private_vlan/private_vlan_trunk (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_private_vlan_trunk is considered as a private
method. Backends looking to popul... | [
"Setter",
"method",
"for",
"private_vlan_trunk",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"switchport",
"/",
"mode",
"/",
"private_vlan",
"/",
"private_vlan_trunk",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/switchport/mode/private_vlan/__init__.py#L94-L115 | train | Sets the value of the private_vlan trunk in the order they are on the port. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/tm_state/__init__.py | tm_state._set_cngn_mon_dev | def _set_cngn_mon_dev(self, v, load=False):
"""
Setter method for cngn_mon_dev, mapped from YANG variable /tm_state/cngn_mon_dev (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_dev is considered as a private
method. Backends looking to populate t... | python | def _set_cngn_mon_dev(self, v, load=False):
"""
Setter method for cngn_mon_dev, mapped from YANG variable /tm_state/cngn_mon_dev (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_dev is considered as a private
method. Backends looking to populate t... | [
"def",
"_set_cngn_mon_dev",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for cngn_mon_dev, mapped from YANG variable /tm_state/cngn_mon_dev (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_dev is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_c... | [
"Setter",
"method",
"for",
"cngn_mon_dev",
"mapped",
"from",
"YANG",
"variable",
"/",
"tm_state",
"/",
"cngn_mon_dev",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YAN... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/tm_state/__init__.py#L118-L141 | train | Sets the CNGN - MON - DEV variable. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/tm_state/__init__.py | tm_state._set_cngn_mon_voq | def _set_cngn_mon_voq(self, v, load=False):
"""
Setter method for cngn_mon_voq, mapped from YANG variable /tm_state/cngn_mon_voq (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_voq is considered as a private
method. Backends looking to populate t... | python | def _set_cngn_mon_voq(self, v, load=False):
"""
Setter method for cngn_mon_voq, mapped from YANG variable /tm_state/cngn_mon_voq (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_voq is considered as a private
method. Backends looking to populate t... | [
"def",
"_set_cngn_mon_voq",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for cngn_mon_voq, mapped from YANG variable /tm_state/cngn_mon_voq (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_voq is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_c... | [
"Setter",
"method",
"for",
"cngn_mon_voq",
"mapped",
"from",
"YANG",
"variable",
"/",
"tm_state",
"/",
"cngn_mon_voq",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YAN... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/tm_state/__init__.py#L155-L178 | train | Sets the variable to be discarded from the list of available VOQ packets. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/tm_state/__init__.py | tm_state._set_cngn_mon_del_pkt | def _set_cngn_mon_del_pkt(self, v, load=False):
"""
Setter method for cngn_mon_del_pkt, mapped from YANG variable /tm_state/cngn_mon_del_pkt (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_del_pkt is considered as a private
method. Backends looki... | python | def _set_cngn_mon_del_pkt(self, v, load=False):
"""
Setter method for cngn_mon_del_pkt, mapped from YANG variable /tm_state/cngn_mon_del_pkt (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_del_pkt is considered as a private
method. Backends looki... | [
"def",
"_set_cngn_mon_del_pkt",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for cngn_mon_del_pkt, mapped from YANG variable /tm_state/cngn_mon_del_pkt (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cngn_mon_del_pkt is considered as a private
method. Backends looking to populate this variable should
do so via calling th... | [
"Setter",
"method",
"for",
"cngn_mon_del_pkt",
"mapped",
"from",
"YANG",
"variable",
"/",
"tm_state",
"/",
"cngn_mon_del_pkt",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/tm_state/__init__.py#L192-L215 | train | Sets the flag for the CM delete pkt. |
StackStorm/pybind | pybind/nos/v6_0_2f/vcenter/discovery/__init__.py | discovery._set_ignore_delete_all_response | def _set_ignore_delete_all_response(self, v, load=False):
"""
Setter method for ignore_delete_all_response, mapped from YANG variable /vcenter/discovery/ignore_delete_all_response (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ignore_delete_all_response is c... | python | def _set_ignore_delete_all_response(self, v, load=False):
"""
Setter method for ignore_delete_all_response, mapped from YANG variable /vcenter/discovery/ignore_delete_all_response (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ignore_delete_all_response is c... | [
"def",
"_set_ignore_delete_all_response",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v... | Setter method for ignore_delete_all_response, mapped from YANG variable /vcenter/discovery/ignore_delete_all_response (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ignore_delete_all_response is considered as a private
method. Backends looking to populate this v... | [
"Setter",
"method",
"for",
"ignore_delete_all_response",
"mapped",
"from",
"YANG",
"variable",
"/",
"vcenter",
"/",
"discovery",
"/",
"ignore_delete_all_response",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"f... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/vcenter/discovery/__init__.py#L94-L117 | train | Set the ignore_delete_all_response field of the
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.