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
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py
brocade_mpls._set_get_mpls_ldp_neighbor_brief
def _set_get_mpls_ldp_neighbor_brief(self, v, load=False): """ Setter method for get_mpls_ldp_neighbor_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_ldp_neighbor_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_ldp_neighbor_brief is cons...
python
def _set_get_mpls_ldp_neighbor_brief(self, v, load=False): """ Setter method for get_mpls_ldp_neighbor_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_ldp_neighbor_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_ldp_neighbor_brief is cons...
[ "def", "_set_get_mpls_ldp_neighbor_brief", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "...
Setter method for get_mpls_ldp_neighbor_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_ldp_neighbor_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_ldp_neighbor_brief is considered as a private method. Backends looking to populate this varia...
[ "Setter", "method", "for", "get_mpls_ldp_neighbor_brief", "mapped", "from", "YANG", "variable", "/", "brocade_mpls_rpc", "/", "get_mpls_ldp_neighbor_brief", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L1971-L1992
train
Sets the value of get_mpls_ldp_neighbor_brief in the MPLs file.
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py
brocade_mpls._set_show_mpls_ldp
def _set_show_mpls_ldp(self, v, load=False): """ Setter method for show_mpls_ldp, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_ldp is considered as a private method. Backends looking to popu...
python
def _set_show_mpls_ldp(self, v, load=False): """ Setter method for show_mpls_ldp, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_ldp is considered as a private method. Backends looking to popu...
[ "def", "_set_show_mpls_ldp", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for show_mpls_ldp, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_ldp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
[ "Setter", "method", "for", "show_mpls_ldp", "mapped", "from", "YANG", "variable", "/", "brocade_mpls_rpc", "/", "show_mpls_ldp", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L2103-L2124
train
Set the show - mpls - ldp parameter of the .
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py
brocade_mpls._set_show_mpls_statistics_oam
def _set_show_mpls_statistics_oam(self, v, load=False): """ Setter method for show_mpls_statistics_oam, mapped from YANG variable /brocade_mpls_rpc/show_mpls_statistics_oam (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_statistics_oam is considered as a ...
python
def _set_show_mpls_statistics_oam(self, v, load=False): """ Setter method for show_mpls_statistics_oam, mapped from YANG variable /brocade_mpls_rpc/show_mpls_statistics_oam (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_statistics_oam is considered as a ...
[ "def", "_set_show_mpls_statistics_oam", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v",...
Setter method for show_mpls_statistics_oam, mapped from YANG variable /brocade_mpls_rpc/show_mpls_statistics_oam (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_statistics_oam is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "show_mpls_statistics_oam", "mapped", "from", "YANG", "variable", "/", "brocade_mpls_rpc", "/", "show_mpls_statistics_oam", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L2136-L2157
train
Set the show - mpls - statistics - oam variable.
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py
brocade_mpls._set_get_mpls_ldp_session_brief
def _set_get_mpls_ldp_session_brief(self, v, load=False): """ Setter method for get_mpls_ldp_session_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_ldp_session_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_ldp_session_brief is consider...
python
def _set_get_mpls_ldp_session_brief(self, v, load=False): """ Setter method for get_mpls_ldp_session_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_ldp_session_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_ldp_session_brief is consider...
[ "def", "_set_get_mpls_ldp_session_brief", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v...
Setter method for get_mpls_ldp_session_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_ldp_session_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_ldp_session_brief is considered as a private method. Backends looking to populate this variable...
[ "Setter", "method", "for", "get_mpls_ldp_session_brief", "mapped", "from", "YANG", "variable", "/", "brocade_mpls_rpc", "/", "get_mpls_ldp_session_brief", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L2169-L2190
train
Sets the value of get_mpls_ldp_session in the MPLS file.
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py
brocade_mpls._set_get_mpls_autobw_template_brief
def _set_get_mpls_autobw_template_brief(self, v, load=False): """ Setter method for get_mpls_autobw_template_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_autobw_template_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_autobw_template_b...
python
def _set_get_mpls_autobw_template_brief(self, v, load=False): """ Setter method for get_mpls_autobw_template_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_autobw_template_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_autobw_template_b...
[ "def", "_set_get_mpls_autobw_template_brief", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", ...
Setter method for get_mpls_autobw_template_brief, mapped from YANG variable /brocade_mpls_rpc/get_mpls_autobw_template_brief (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_mpls_autobw_template_brief is considered as a private method. Backends looking to populate t...
[ "Setter", "method", "for", "get_mpls_autobw_template_brief", "mapped", "from", "YANG", "variable", "/", "brocade_mpls_rpc", "/", "get_mpls_autobw_template_brief", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L2268-L2289
train
Sets the value of get_mpls_autobw_template_brief mapped from YANG variable to a new node.
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py
brocade_mpls._set_show_mpls_dynamic_bypass
def _set_show_mpls_dynamic_bypass(self, v, load=False): """ Setter method for show_mpls_dynamic_bypass, mapped from YANG variable /brocade_mpls_rpc/show_mpls_dynamic_bypass (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_dynamic_bypass is considered as a ...
python
def _set_show_mpls_dynamic_bypass(self, v, load=False): """ Setter method for show_mpls_dynamic_bypass, mapped from YANG variable /brocade_mpls_rpc/show_mpls_dynamic_bypass (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_dynamic_bypass is considered as a ...
[ "def", "_set_show_mpls_dynamic_bypass", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v",...
Setter method for show_mpls_dynamic_bypass, mapped from YANG variable /brocade_mpls_rpc/show_mpls_dynamic_bypass (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_mpls_dynamic_bypass is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "show_mpls_dynamic_bypass", "mapped", "from", "YANG", "variable", "/", "brocade_mpls_rpc", "/", "show_mpls_dynamic_bypass", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L2367-L2388
train
This variable is used to set the show - mpls - dynamic - bypass value in the MPLs output.
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py
brocade_mpls._set_ping_mpls
def _set_ping_mpls(self, v, load=False): """ Setter method for ping_mpls, mapped from YANG variable /brocade_mpls_rpc/ping_mpls (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_ping_mpls is considered as a private method. Backends looking to populate this variab...
python
def _set_ping_mpls(self, v, load=False): """ Setter method for ping_mpls, mapped from YANG variable /brocade_mpls_rpc/ping_mpls (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_ping_mpls is considered as a private method. Backends looking to populate this variab...
[ "def", "_set_ping_mpls", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for ping_mpls, mapped from YANG variable /brocade_mpls_rpc/ping_mpls (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_ping_mpls is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ping_mpl...
[ "Setter", "method", "for", "ping_mpls", "mapped", "from", "YANG", "variable", "/", "brocade_mpls_rpc", "/", "ping_mpls", "(", "rpc", ")", "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/brocade_mpls_rpc/__init__.py#L2895-L2916
train
Set the ping_mpls field of the .
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/__init__.py
mpls_interface._set_ldp_params
def _set_ldp_params(self, v, load=False): """ Setter method for ldp_params, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/ldp_params (container) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_params is considered as a private ...
python
def _set_ldp_params(self, v, load=False): """ Setter method for ldp_params, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/ldp_params (container) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_params is considered as a private ...
[ "def", "_set_ldp_params", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for ldp_params, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/ldp_params (container) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_params is considered as a private method. Backends looking to populate this variable sh...
[ "Setter", "method", "for", "ldp_params", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "ldp_params", "(", "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/mpls_interface/__init__.py#L208-L229
train
Sets the LDP parameters for the cluster.
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/__init__.py
mpls_interface._set_rsvp
def _set_rsvp(self, v, load=False): """ Setter method for rsvp, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/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 lookin...
python
def _set_rsvp(self, v, load=False): """ Setter method for rsvp, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/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 lookin...
[ "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_config/router/mpls/mpls_cmds_holder/mpls_interface/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...
[ "Setter", "method", "for", "rsvp", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "rsvp", "(", "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/mpls_interface/__init__.py#L241-L262
train
Sets the rsvp parameter of the
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/__init__.py
mpls_interface._set_interface_dynamic_bypass
def _set_interface_dynamic_bypass(self, v, load=False): """ Setter method for interface_dynamic_bypass, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/interface_dynamic_bypass (container) If this variable is read-only (config: false) in the source YANG file, then _set...
python
def _set_interface_dynamic_bypass(self, v, load=False): """ Setter method for interface_dynamic_bypass, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/interface_dynamic_bypass (container) If this variable is read-only (config: false) in the source YANG file, then _set...
[ "def", "_set_interface_dynamic_bypass", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v",...
Setter method for interface_dynamic_bypass, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/interface_dynamic_bypass (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_dynamic_bypass is considered as a private method. Bac...
[ "Setter", "method", "for", "interface_dynamic_bypass", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "mpls_interface", "/", "interface_dynamic_bypass", "(", "container", ")", "If", "this", "variab...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/__init__.py#L274-L295
train
Sets the value of the interface_dynamic_bypass variable.
StackStorm/pybind
pybind/slxos/v17r_2_00/uda_key/profile/uda_profile_offsets/__init__.py
uda_profile_offsets._set_offset_base1
def _set_offset_base1(self, v, load=False): """ Setter method for offset_base1, mapped from YANG variable /uda_key/profile/uda_profile_offsets/offset_base1 (uda-offset-base-type) If this variable is read-only (config: false) in the source YANG file, then _set_offset_base1 is considered as a private ...
python
def _set_offset_base1(self, v, load=False): """ Setter method for offset_base1, mapped from YANG variable /uda_key/profile/uda_profile_offsets/offset_base1 (uda-offset-base-type) If this variable is read-only (config: false) in the source YANG file, then _set_offset_base1 is considered as a private ...
[ "def", "_set_offset_base1", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for offset_base1, mapped from YANG variable /uda_key/profile/uda_profile_offsets/offset_base1 (uda-offset-base-type) If this variable is read-only (config: false) in the source YANG file, then _set_offset_base1 is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "offset_base1", "mapped", "from", "YANG", "variable", "/", "uda_key", "/", "profile", "/", "uda_profile_offsets", "/", "offset_base1", "(", "uda", "-", "offset", "-", "base", "-", "type", ")", "If", "this", "variable", "is", "read"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/uda_key/profile/uda_profile_offsets/__init__.py#L102-L123
train
Sets the offset_base1 of the base - sequence of the last element of the sequence.
StackStorm/pybind
pybind/slxos/v17r_2_00/uda_key/profile/uda_profile_offsets/__init__.py
uda_profile_offsets._set_uda_offset1
def _set_uda_offset1(self, v, load=False): """ Setter method for uda_offset1, mapped from YANG variable /uda_key/profile/uda_profile_offsets/uda_offset1 (union) If this variable is read-only (config: false) in the source YANG file, then _set_uda_offset1 is considered as a private method. Backends lo...
python
def _set_uda_offset1(self, v, load=False): """ Setter method for uda_offset1, mapped from YANG variable /uda_key/profile/uda_profile_offsets/uda_offset1 (union) If this variable is read-only (config: false) in the source YANG file, then _set_uda_offset1 is considered as a private method. Backends lo...
[ "def", "_set_uda_offset1", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for uda_offset1, mapped from YANG variable /uda_key/profile/uda_profile_offsets/uda_offset1 (union) If this variable is read-only (config: false) in the source YANG file, then _set_uda_offset1 is considered as a private method. Backends looking to populate this variable should do so via ca...
[ "Setter", "method", "for", "uda_offset1", "mapped", "from", "YANG", "variable", "/", "uda_key", "/", "profile", "/", "uda_profile_offsets", "/", "uda_offset1", "(", "union", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/uda_key/profile/uda_profile_offsets/__init__.py#L168-L189
train
Sets the uda_offset1 variable in the base - order of the uda - list
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/event_handler/activate/__init__.py
activate._set_name
def _set_name(self, v, load=False): """ Setter method for name, mapped from YANG variable /rbridge_id/event_handler/activate/name (list) If this variable is read-only (config: false) in the source YANG file, then _set_name is considered as a private method. Backends looking to populate this variable...
python
def _set_name(self, v, load=False): """ Setter method for name, mapped from YANG variable /rbridge_id/event_handler/activate/name (list) If this variable is read-only (config: false) in the source YANG file, then _set_name is considered as a private method. Backends looking to populate this variable...
[ "def", "_set_name", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for name, mapped from YANG variable /rbridge_id/event_handler/activate/name (list) If this variable is read-only (config: false) in the source YANG file, then _set_name is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_name(...
[ "Setter", "method", "for", "name", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "event_handler", "/", "activate", "/", "name", "(", "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/event_handler/activate/__init__.py#L92-L113
train
Set the name of the .
BD2KGenomics/protect
src/protect/alignment/common.py
index_bamfile
def index_bamfile(job, bamfile, sample_type, univ_options, samtools_options, sample_info=None, export=True): """ Index `bamfile` using samtools :param toil.fileStore.FileID bamfile: fsID for the bam file :param str sample_type: Description of the sample to inject into the filename ...
python
def index_bamfile(job, bamfile, sample_type, univ_options, samtools_options, sample_info=None, export=True): """ Index `bamfile` using samtools :param toil.fileStore.FileID bamfile: fsID for the bam file :param str sample_type: Description of the sample to inject into the filename ...
[ "def", "index_bamfile", "(", "job", ",", "bamfile", ",", "sample_type", ",", "univ_options", ",", "samtools_options", ",", "sample_info", "=", "None", ",", "export", "=", "True", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "in_bamfile", "=", ...
Index `bamfile` using samtools :param toil.fileStore.FileID bamfile: fsID for the 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 samtools_options: Options specific to samtool...
[ "Index", "bamfile", "using", "samtools" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/alignment/common.py#L33-L74
train
This function will index a BAM file using samtools.
BD2KGenomics/protect
src/protect/alignment/common.py
sort_bamfile
def sort_bamfile(job, bamfile, sample_type, univ_options, samtools_options): """ Sort `bamfile` using samtools :param toil.fileStore.FileID bamfile: fsID for the bam file :param str sample_type: Description of the sample to inject into the filename :param dict univ_options: Dict of universal option...
python
def sort_bamfile(job, bamfile, sample_type, univ_options, samtools_options): """ Sort `bamfile` using samtools :param toil.fileStore.FileID bamfile: fsID for the bam file :param str sample_type: Description of the sample to inject into the filename :param dict univ_options: Dict of universal option...
[ "def", "sort_bamfile", "(", "job", ",", "bamfile", ",", "sample_type", ",", "univ_options", ",", "samtools_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "in_bamfile", "=", "''", ".", "join", "(", "[", "sample_type", ",", "'.bam'", "...
Sort `bamfile` using samtools :param toil.fileStore.FileID bamfile: fsID for the 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 samtools_options: Options specific to samtools...
[ "Sort", "bamfile", "using", "samtools" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/alignment/common.py#L77-L105
train
This module will sort a BAM file using samtools.
StackStorm/pybind
pybind/slxos/v17r_1_01a/loam_show_debug_state/__init__.py
loam_show_debug_state._set_loam_show_debug_information
def _set_loam_show_debug_information(self, v, load=False): """ Setter method for loam_show_debug_information, mapped from YANG variable /loam_show_debug_state/loam_show_debug_information (container) If this variable is read-only (config: false) in the source YANG file, then _set_loam_show_debug_informat...
python
def _set_loam_show_debug_information(self, v, load=False): """ Setter method for loam_show_debug_information, mapped from YANG variable /loam_show_debug_state/loam_show_debug_information (container) If this variable is read-only (config: false) in the source YANG file, then _set_loam_show_debug_informat...
[ "def", "_set_loam_show_debug_information", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "...
Setter method for loam_show_debug_information, mapped from YANG variable /loam_show_debug_state/loam_show_debug_information (container) If this variable is read-only (config: false) in the source YANG file, then _set_loam_show_debug_information is considered as a private method. Backends looking to populate...
[ "Setter", "method", "for", "loam_show_debug_information", "mapped", "from", "YANG", "variable", "/", "loam_show_debug_state", "/", "loam_show_debug_information", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/loam_show_debug_state/__init__.py#L96-L119
train
Sets the value of LOAM_DEBUG_INFORMATION in the current state.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_port_profile_ext_rpc/get_port_profile_for_intf/input/__init__.py
input._set_last_received_interface_info
def _set_last_received_interface_info(self, v, load=False): """ Setter method for last_received_interface_info, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_for_intf/input/last_received_interface_info (container) If this variable is read-only (config: false) in the source YAN...
python
def _set_last_received_interface_info(self, v, load=False): """ Setter method for last_received_interface_info, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_for_intf/input/last_received_interface_info (container) If this variable is read-only (config: false) in the source YAN...
[ "def", "_set_last_received_interface_info", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", ...
Setter method for last_received_interface_info, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_for_intf/input/last_received_interface_info (container) If this variable is read-only (config: false) in the source YANG file, then _set_last_received_interface_info is considered as a privat...
[ "Setter", "method", "for", "last_received_interface_info", "mapped", "from", "YANG", "variable", "/", "brocade_port_profile_ext_rpc", "/", "get_port_profile_for_intf", "/", "input", "/", "last_received_interface_info", "(", "container", ")", "If", "this", "variable", "is"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_port_profile_ext_rpc/get_port_profile_for_intf/input/__init__.py#L274-L321
train
Set the value of last_received_interface_info mapped from YANG variable to the corresponding last received interface info.
StackStorm/pybind
pybind/nos/v6_0_2f/cee_map/remap/__init__.py
remap._set_fabric_priority
def _set_fabric_priority(self, v, load=False): """ Setter method for fabric_priority, mapped from YANG variable /cee_map/remap/fabric_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_fabric_priority is considered as a private method. Backends look...
python
def _set_fabric_priority(self, v, load=False): """ Setter method for fabric_priority, mapped from YANG variable /cee_map/remap/fabric_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_fabric_priority is considered as a private method. Backends look...
[ "def", "_set_fabric_priority", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for fabric_priority, mapped from YANG variable /cee_map/remap/fabric_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_fabric_priority is considered as a private method. Backends looking to populate this variable should do so via calling ...
[ "Setter", "method", "for", "fabric_priority", "mapped", "from", "YANG", "variable", "/", "cee_map", "/", "remap", "/", "fabric_priority", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "t...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/cee_map/remap/__init__.py#L94-L115
train
Sets the fabric priority of the
StackStorm/pybind
pybind/nos/v6_0_2f/cee_map/remap/__init__.py
remap._set_lossless_priority
def _set_lossless_priority(self, v, load=False): """ Setter method for lossless_priority, mapped from YANG variable /cee_map/remap/lossless_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_lossless_priority is considered as a private method. Backe...
python
def _set_lossless_priority(self, v, load=False): """ Setter method for lossless_priority, mapped from YANG variable /cee_map/remap/lossless_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_lossless_priority is considered as a private method. Backe...
[ "def", "_set_lossless_priority", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for lossless_priority, mapped from YANG variable /cee_map/remap/lossless_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_lossless_priority is considered as a private method. Backends looking to populate this variable should do so via ca...
[ "Setter", "method", "for", "lossless_priority", "mapped", "from", "YANG", "variable", "/", "cee_map", "/", "remap", "/", "lossless_priority", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/cee_map/remap/__init__.py#L127-L148
train
Sets the value of the lossless priority for the
inveniosoftware/invenio-access
invenio_access/alembic/2f63be7b7572_create_access_tables.py
upgrade
def upgrade(): """Upgrade database.""" op.create_table( 'access_actionsroles', 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', nullable=...
python
def upgrade(): """Upgrade database.""" op.create_table( 'access_actionsroles', 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', nullable=...
[ "def", "upgrade", "(", ")", ":", "op", ".", "create_table", "(", "'access_actionsroles'", ",", "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/2f63be7b7572_create_access_tables.py#L21-L60
train
Upgrade the database.
StackStorm/pybind
pybind/nos/v6_0_2f/interface_vlan/interface/vlan/ip/arp/inspection/__init__.py
inspection._set_filter
def _set_filter(self, v, load=False): """ Setter method for filter, mapped from YANG variable /interface_vlan/interface/vlan/ip/arp/inspection/filter (container) If this variable is read-only (config: false) in the source YANG file, then _set_filter is considered as a private method. Backends lookin...
python
def _set_filter(self, v, load=False): """ Setter method for filter, mapped from YANG variable /interface_vlan/interface/vlan/ip/arp/inspection/filter (container) If this variable is read-only (config: false) in the source YANG file, then _set_filter is considered as a private method. Backends lookin...
[ "def", "_set_filter", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for filter, mapped from YANG variable /interface_vlan/interface/vlan/ip/arp/inspection/filter (container) If this variable is read-only (config: false) in the source YANG file, then _set_filter is considered as a private method. Backends looking to populate this variable should do so via c...
[ "Setter", "method", "for", "filter", "mapped", "from", "YANG", "variable", "/", "interface_vlan", "/", "interface", "/", "vlan", "/", "ip", "/", "arp", "/", "inspection", "/", "filter", "(", "container", ")", "If", "this", "variable", "is", "read", "-", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface_vlan/interface/vlan/ip/arp/inspection/__init__.py#L128-L149
train
Sets the filter of the
StackStorm/pybind
pybind/slxos/v17r_2_00/keychain/key/accept_lifetime/__init__.py
accept_lifetime._set_start_time
def _set_start_time(self, v, load=False): """ Setter method for start_time, mapped from YANG variable /keychain/key/accept_lifetime/start_time (time-format-start) If this variable is read-only (config: false) in the source YANG file, then _set_start_time is considered as a private method. Backends l...
python
def _set_start_time(self, v, load=False): """ Setter method for start_time, mapped from YANG variable /keychain/key/accept_lifetime/start_time (time-format-start) If this variable is read-only (config: false) in the source YANG file, then _set_start_time is considered as a private method. Backends l...
[ "def", "_set_start_time", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for start_time, mapped from YANG variable /keychain/key/accept_lifetime/start_time (time-format-start) If this variable is read-only (config: false) in the source YANG file, then _set_start_time is considered as a private method. Backends looking to populate this variable should do so via ...
[ "Setter", "method", "for", "start_time", "mapped", "from", "YANG", "variable", "/", "keychain", "/", "key", "/", "accept_lifetime", "/", "start_time", "(", "time", "-", "format", "-", "start", ")", "If", "this", "variable", "is", "read", "-", "only", "(", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/keychain/key/accept_lifetime/__init__.py#L127-L148
train
Sets the start time of the sequence.
StackStorm/pybind
pybind/slxos/v17r_2_00/keychain/key/accept_lifetime/__init__.py
accept_lifetime._set_duration
def _set_duration(self, v, load=False): """ Setter method for duration, mapped from YANG variable /keychain/key/accept_lifetime/duration (container) If this variable is read-only (config: false) in the source YANG file, then _set_duration is considered as a private method. Backends looking to popula...
python
def _set_duration(self, v, load=False): """ Setter method for duration, mapped from YANG variable /keychain/key/accept_lifetime/duration (container) If this variable is read-only (config: false) in the source YANG file, then _set_duration is considered as a private method. Backends looking to popula...
[ "def", "_set_duration", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for duration, mapped from YANG variable /keychain/key/accept_lifetime/duration (container) If this variable is read-only (config: false) in the source YANG file, then _set_duration is considered as a private method. Backends looking to populate this variable should do so via calling thisOb...
[ "Setter", "method", "for", "duration", "mapped", "from", "YANG", "variable", "/", "keychain", "/", "key", "/", "accept_lifetime", "/", "duration", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/keychain/key/accept_lifetime/__init__.py#L160-L181
train
Sets the duration of the node.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_entity_rpc/__init__.py
brocade_entity._set_get_contained_in_ID
def _set_get_contained_in_ID(self, v, load=False): """ Setter method for get_contained_in_ID, mapped from YANG variable /brocade_entity_rpc/get_contained_in_ID (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_contained_in_ID is considered as a private method...
python
def _set_get_contained_in_ID(self, v, load=False): """ Setter method for get_contained_in_ID, mapped from YANG variable /brocade_entity_rpc/get_contained_in_ID (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_contained_in_ID is considered as a private method...
[ "def", "_set_get_contained_in_ID", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",...
Setter method for get_contained_in_ID, mapped from YANG variable /brocade_entity_rpc/get_contained_in_ID (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_contained_in_ID is considered as a private method. Backends looking to populate this variable should do so v...
[ "Setter", "method", "for", "get_contained_in_ID", "mapped", "from", "YANG", "variable", "/", "brocade_entity_rpc", "/", "get_contained_in_ID", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_entity_rpc/__init__.py#L100-L126
train
Sets the get_contained_in_ID variable in the managed device.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_xstp_ext_rpc/__init__.py
brocade_xstp_ext._set_get_stp_brief_info
def _set_get_stp_brief_info(self, v, load=False): """ Setter method for get_stp_brief_info, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_stp_brief_info is considered as a private method. ...
python
def _set_get_stp_brief_info(self, v, load=False): """ Setter method for get_stp_brief_info, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_stp_brief_info is considered as a private method. ...
[ "def", "_set_get_stp_brief_info", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for get_stp_brief_info, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_stp_brief_info is considered as a private method. Backends looking to populate this variable should do so vi...
[ "Setter", "method", "for", "get_stp_brief_info", "mapped", "from", "YANG", "variable", "/", "brocade_xstp_ext_rpc", "/", "get_stp_brief_info", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_xstp_ext_rpc/__init__.py#L105-L129
train
Sets the get_stp_brief_info field of the
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_state/rsvp/sessions/__init__.py
sessions._set_session_role
def _set_session_role(self, v, load=False): """ Setter method for session_role, mapped from YANG variable /mpls_state/rsvp/sessions/session_role (session-role) If this variable is read-only (config: false) in the source YANG file, then _set_session_role is considered as a private method. Backends lo...
python
def _set_session_role(self, v, load=False): """ Setter method for session_role, mapped from YANG variable /mpls_state/rsvp/sessions/session_role (session-role) If this variable is read-only (config: false) in the source YANG file, then _set_session_role is considered as a private method. Backends lo...
[ "def", "_set_session_role", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "parent", "=", "getattr", "(", "self", ",", "\"_parent\"", ",", "None", ")", "if", "parent", "is", "not", "None", "and", "load", "is", "False", ":", "raise", "Att...
Setter method for session_role, mapped from YANG variable /mpls_state/rsvp/sessions/session_role (session-role) If this variable is read-only (config: false) in the source YANG file, then _set_session_role is considered as a private method. Backends looking to populate this variable should do so via cal...
[ "Setter", "method", "for", "session_role", "mapped", "from", "YANG", "variable", "/", "mpls_state", "/", "rsvp", "/", "sessions", "/", "session_role", "(", "session", "-", "role", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_state/rsvp/sessions/__init__.py#L227-L255
train
Sets the session role of the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/log/__init__.py
log._set_log_adjacency
def _set_log_adjacency(self, v, load=False): """ Setter method for log_adjacency, mapped from YANG variable /rbridge_id/ipv6/router/ospf/log/log_adjacency (container) If this variable is read-only (config: false) in the source YANG file, then _set_log_adjacency is considered as a private method. Bac...
python
def _set_log_adjacency(self, v, load=False): """ Setter method for log_adjacency, mapped from YANG variable /rbridge_id/ipv6/router/ospf/log/log_adjacency (container) If this variable is read-only (config: false) in the source YANG file, then _set_log_adjacency is considered as a private method. Bac...
[ "def", "_set_log_adjacency", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for log_adjacency, mapped from YANG variable /rbridge_id/ipv6/router/ospf/log/log_adjacency (container) If this variable is read-only (config: false) in the source YANG file, then _set_log_adjacency is considered as a private method. Backends looking to populate this variable should do so ...
[ "Setter", "method", "for", "log_adjacency", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ipv6", "/", "router", "/", "ospf", "/", "log", "/", "log_adjacency", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/log/__init__.py#L99-L122
train
Sets the log_adjacency variable for the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/log/__init__.py
log._set_log_bad_packet
def _set_log_bad_packet(self, v, load=False): """ Setter method for log_bad_packet, mapped from YANG variable /rbridge_id/ipv6/router/ospf/log/log_bad_packet (container) If this variable is read-only (config: false) in the source YANG file, then _set_log_bad_packet is considered as a private method....
python
def _set_log_bad_packet(self, v, load=False): """ Setter method for log_bad_packet, mapped from YANG variable /rbridge_id/ipv6/router/ospf/log/log_bad_packet (container) If this variable is read-only (config: false) in the source YANG file, then _set_log_bad_packet is considered as a private method....
[ "def", "_set_log_bad_packet", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for log_bad_packet, mapped from YANG variable /rbridge_id/ipv6/router/ospf/log/log_bad_packet (container) If this variable is read-only (config: false) in the source YANG file, then _set_log_bad_packet is considered as a private method. Backends looking to populate this variable should do ...
[ "Setter", "method", "for", "log_bad_packet", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ipv6", "/", "router", "/", "ospf", "/", "log", "/", "log_bad_packet", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/log/__init__.py#L173-L196
train
Sets the flag for log_bad_packet
inveniosoftware/invenio-access
invenio_access/utils.py
get_identity
def get_identity(user): """Create an identity for a given user instance. Primarily useful for testing. """ identity = Identity(user.id) if hasattr(user, 'id'): identity.provides.add(UserNeed(user.id)) for role in getattr(user, 'roles', []): identity.provides.add(RoleNeed(role....
python
def get_identity(user): """Create an identity for a given user instance. Primarily useful for testing. """ identity = Identity(user.id) if hasattr(user, 'id'): identity.provides.add(UserNeed(user.id)) for role in getattr(user, 'roles', []): identity.provides.add(RoleNeed(role....
[ "def", "get_identity", "(", "user", ")", ":", "identity", "=", "Identity", "(", "user", ".", "id", ")", "if", "hasattr", "(", "user", ",", "'id'", ")", ":", "identity", ".", "provides", ".", "add", "(", "UserNeed", "(", "user", ".", "id", ")", ")",...
Create an identity for a given user instance. Primarily useful for testing.
[ "Create", "an", "identity", "for", "a", "given", "user", "instance", "." ]
3b033a4bdc110eb2f7e9f08f0744a780884bfc80
https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/utils.py#L16-L30
train
Create an identity for a given user instance.
StackStorm/pybind
pybind/nos/v6_0_2f/interface_vlan/interface/ve/ip/__init__.py
ip._set_ip_anycast_gateway
def _set_ip_anycast_gateway(self, v, load=False): """ Setter method for ip_anycast_gateway, mapped from YANG variable /interface_vlan/interface/ve/ip/ip_anycast_gateway (list) If this variable is read-only (config: false) in the source YANG file, then _set_ip_anycast_gateway is considered as a private ...
python
def _set_ip_anycast_gateway(self, v, load=False): """ Setter method for ip_anycast_gateway, mapped from YANG variable /interface_vlan/interface/ve/ip/ip_anycast_gateway (list) If this variable is read-only (config: false) in the source YANG file, then _set_ip_anycast_gateway is considered as a private ...
[ "def", "_set_ip_anycast_gateway", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for ip_anycast_gateway, mapped from YANG variable /interface_vlan/interface/ve/ip/ip_anycast_gateway (list) If this variable is read-only (config: false) in the source YANG file, then _set_ip_anycast_gateway is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "ip_anycast_gateway", "mapped", "from", "YANG", "variable", "/", "interface_vlan", "/", "interface", "/", "ve", "/", "ip", "/", "ip_anycast_gateway", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "conf...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface_vlan/interface/ve/ip/__init__.py#L94-L115
train
Sets the value of IP_ANYCAST_GATEWAY in the virtual network.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/ip/intf_router_isis/__init__.py
intf_router_isis._set_int_router_isis
def _set_int_router_isis(self, v, load=False): """ Setter method for int_router_isis, mapped from YANG variable /routing_system/interface/ve/ip/intf_router_isis/int_router_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_int_router_isis is considered as a...
python
def _set_int_router_isis(self, v, load=False): """ Setter method for int_router_isis, mapped from YANG variable /routing_system/interface/ve/ip/intf_router_isis/int_router_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_int_router_isis is considered as a...
[ "def", "_set_int_router_isis", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for int_router_isis, mapped from YANG variable /routing_system/interface/ve/ip/intf_router_isis/int_router_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_int_router_isis is considered as a private method. Backends looking to populate this vari...
[ "Setter", "method", "for", "int_router_isis", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "ip", "/", "intf_router_isis", "/", "int_router_isis", "(", "container", ")", "If", "this", "variable", "is", "read", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ip/intf_router_isis/__init__.py#L92-L113
train
Set the value of int_router_isis mapped from YANG variable int_router_isis_location.
StackStorm/pybind
pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/additional_paths/__init__.py
additional_paths._set_addpath_advertise
def _set_addpath_advertise(self, v, load=False): """ Setter method for addpath_advertise, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/additional_paths/addpath_advertise (container) ...
python
def _set_addpath_advertise(self, v, load=False): """ Setter method for addpath_advertise, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/additional_paths/addpath_advertise (container) ...
[ "def", "_set_addpath_advertise", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for addpath_advertise, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/additional_paths/addpath_advertise (container) If this variable is read-only (config: false) in the sou...
[ "Setter", "method", "for", "addpath_advertise", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "router_bgp", "/", "address_family", "/", "ipv6", "/", "ipv6_unicast", "/", "af_ipv6_vrf", "/", "neighbor", "/", "af_ipv6_vrf_neighbor_ad...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/additional_paths/__init__.py#L161-L182
train
Sets the value of addpath_advertise mapped from YANG variable addpath_advertise.
StackStorm/pybind
pybind/slxos/v17s_1_02/fcoe/fcoe_fabric_map/__init__.py
fcoe_fabric_map._set_fcoe_fabric_map_fcmap
def _set_fcoe_fabric_map_fcmap(self, v, load=False): """ Setter method for fcoe_fabric_map_fcmap, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fabric_map_fcmap (fcoe-fcmap-type) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fabric_map_fcmap is considered a...
python
def _set_fcoe_fabric_map_fcmap(self, v, load=False): """ Setter method for fcoe_fabric_map_fcmap, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fabric_map_fcmap (fcoe-fcmap-type) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fabric_map_fcmap is considered a...
[ "def", "_set_fcoe_fabric_map_fcmap", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for fcoe_fabric_map_fcmap, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fabric_map_fcmap (fcoe-fcmap-type) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fabric_map_fcmap is considered as a private method. Backends looking to populate this variabl...
[ "Setter", "method", "for", "fcoe_fabric_map_fcmap", "mapped", "from", "YANG", "variable", "/", "fcoe", "/", "fcoe_fabric_map", "/", "fcoe_fabric_map_fcmap", "(", "fcoe", "-", "fcmap", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "(", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/fcoe/fcoe_fabric_map/__init__.py#L303-L327
train
Sets the FCMAP value for the FCOE NICs in the order of FC - map.
StackStorm/pybind
pybind/slxos/v17s_1_02/fcoe/fcoe_fabric_map/__init__.py
fcoe_fabric_map._set_fcoe_fip_advertisement
def _set_fcoe_fip_advertisement(self, v, load=False): """ Setter method for fcoe_fip_advertisement, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fip_advertisement (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fip_advertisement is considered as ...
python
def _set_fcoe_fip_advertisement(self, v, load=False): """ Setter method for fcoe_fip_advertisement, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fip_advertisement (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fip_advertisement is considered as ...
[ "def", "_set_fcoe_fip_advertisement", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for fcoe_fip_advertisement, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fip_advertisement (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fip_advertisement is considered as a private method. Backends looking to populate this variable s...
[ "Setter", "method", "for", "fcoe_fip_advertisement", "mapped", "from", "YANG", "variable", "/", "fcoe", "/", "fcoe_fabric_map", "/", "fcoe_fip_advertisement", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/fcoe/fcoe_fabric_map/__init__.py#L342-L366
train
Set the FIP Advertisement interval for the next set of FIP configuration structures.
StackStorm/pybind
pybind/slxos/v17s_1_02/fcoe/fcoe_fabric_map/__init__.py
fcoe_fabric_map._set_fcoe_fip_keep_alive
def _set_fcoe_fip_keep_alive(self, v, load=False): """ Setter method for fcoe_fip_keep_alive, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fip_keep_alive (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fip_keep_alive is considered as a private ...
python
def _set_fcoe_fip_keep_alive(self, v, load=False): """ Setter method for fcoe_fip_keep_alive, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fip_keep_alive (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fip_keep_alive is considered as a private ...
[ "def", "_set_fcoe_fip_keep_alive", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",...
Setter method for fcoe_fip_keep_alive, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fip_keep_alive (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_fip_keep_alive is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "fcoe_fip_keep_alive", "mapped", "from", "YANG", "variable", "/", "fcoe", "/", "fcoe_fabric_map", "/", "fcoe_fip_keep_alive", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/fcoe/fcoe_fabric_map/__init__.py#L381-L405
train
Set the value of the FIP_KEEP_ALIVE variable in the FCoE cluster.
StackStorm/pybind
pybind/nos/v6_0_2f/overlay_gateway/map_/__init__.py
map_._set_vlan_vni_mapping
def _set_vlan_vni_mapping(self, v, load=False): """ Setter method for vlan_vni_mapping, mapped from YANG variable /overlay_gateway/map/vlan_vni_mapping (list) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_vni_mapping is considered as a private method. Backends...
python
def _set_vlan_vni_mapping(self, v, load=False): """ Setter method for vlan_vni_mapping, mapped from YANG variable /overlay_gateway/map/vlan_vni_mapping (list) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_vni_mapping is considered as a private method. Backends...
[ "def", "_set_vlan_vni_mapping", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for vlan_vni_mapping, mapped from YANG variable /overlay_gateway/map/vlan_vni_mapping (list) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_vni_mapping is considered as a private method. Backends looking to populate this variable should do so via call...
[ "Setter", "method", "for", "vlan_vni_mapping", "mapped", "from", "YANG", "variable", "/", "overlay_gateway", "/", "map", "/", "vlan_vni_mapping", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/overlay_gateway/map_/__init__.py#L94-L115
train
Set the vlan_vni_mapping variable.
StackStorm/pybind
pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/vpnv6/__init__.py
vpnv6._set_vpnv6_unicast
def _set_vpnv6_unicast(self, v, load=False): """ Setter method for vpnv6_unicast, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv6/vpnv6_unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_vpnv6_unicast is considered as a p...
python
def _set_vpnv6_unicast(self, v, load=False): """ Setter method for vpnv6_unicast, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv6/vpnv6_unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_vpnv6_unicast is considered as a p...
[ "def", "_set_vpnv6_unicast", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for vpnv6_unicast, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv6/vpnv6_unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_vpnv6_unicast is considered as a private method. Backends looking to populate this vari...
[ "Setter", "method", "for", "vpnv6_unicast", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "router_bgp", "/", "address_family", "/", "vpnv6", "/", "vpnv6_unicast", "(", "container", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/vpnv6/__init__.py#L92-L113
train
Sets the value of vpnv6_unicast
adfinis-sygroup/freeze
freeze/xfreeze.py
freeze
def freeze(data_structure): """Freeze tries to convert any data-structure in a hierarchy of tuples. Tuples are comparable/sortable/hashable, you can use this with with recursive_sort(). freeze has no recursion detection. :param data_structure: The structure to convert. >>> recursive_sort(freeze(...
python
def freeze(data_structure): """Freeze tries to convert any data-structure in a hierarchy of tuples. Tuples are comparable/sortable/hashable, you can use this with with recursive_sort(). freeze has no recursion detection. :param data_structure: The structure to convert. >>> recursive_sort(freeze(...
[ "def", "freeze", "(", "data_structure", ")", ":", "def", "freeze_helper", "(", "data_structure", ")", ":", "# We don't freeze primitive types", "if", "isinstance", "(", "data_structure", ",", "_primitive_types", ")", ":", "return", "data_structure", "was_dict", "=", ...
Freeze tries to convert any data-structure in a hierarchy of tuples. Tuples are comparable/sortable/hashable, you can use this with with recursive_sort(). freeze has no recursion detection. :param data_structure: The structure to convert. >>> recursive_sort(freeze(_TestClass(True))) (('a', 'huhu...
[ "Freeze", "tries", "to", "convert", "any", "data", "-", "structure", "in", "a", "hierarchy", "of", "tuples", ".", "Tuples", "are", "comparable", "/", "sortable", "/", "hashable", "you", "can", "use", "this", "with", "with", "recursive_sort", "()", ".", "fr...
61b4fab8a90ed76d685448723baaa57e2bbd5ef9
https://github.com/adfinis-sygroup/freeze/blob/61b4fab8a90ed76d685448723baaa57e2bbd5ef9/freeze/xfreeze.py#L192-L248
train
Freeze a data - structure in a hierarchy of tuples.
adfinis-sygroup/freeze
freeze/xfreeze.py
object_to_items
def object_to_items(data_structure): """Converts a object to a items list respecting also slots. Use dict(object_to_items(obj)) to get a dictionary.""" items = [] # Get all items from dict try: items = list(data_structure.__dict__.items()) except: pass # Get all slots hi...
python
def object_to_items(data_structure): """Converts a object to a items list respecting also slots. Use dict(object_to_items(obj)) to get a dictionary.""" items = [] # Get all items from dict try: items = list(data_structure.__dict__.items()) except: pass # Get all slots hi...
[ "def", "object_to_items", "(", "data_structure", ")", ":", "items", "=", "[", "]", "# Get all items from dict", "try", ":", "items", "=", "list", "(", "data_structure", ".", "__dict__", ".", "items", "(", ")", ")", "except", ":", "pass", "# Get all slots", "...
Converts a object to a items list respecting also slots. Use dict(object_to_items(obj)) to get a dictionary.
[ "Converts", "a", "object", "to", "a", "items", "list", "respecting", "also", "slots", "." ]
61b4fab8a90ed76d685448723baaa57e2bbd5ef9
https://github.com/adfinis-sygroup/freeze/blob/61b4fab8a90ed76d685448723baaa57e2bbd5ef9/freeze/xfreeze.py#L251-L279
train
Converts a object to a items list respecting also slots. Use dict ( object_to_items ( obj ) to get a dictionary.
adfinis-sygroup/freeze
freeze/xfreeze.py
dump
def dump(data_structure): """Dump will create a human readable version of your data-structure. It will try to dump almost anything, it has recursion detection and will try to display the recursion in a meaningful way. :param data_structure: The structure to convert. When you freeze only content ...
python
def dump(data_structure): """Dump will create a human readable version of your data-structure. It will try to dump almost anything, it has recursion detection and will try to display the recursion in a meaningful way. :param data_structure: The structure to convert. When you freeze only content ...
[ "def", "dump", "(", "data_structure", ")", ":", "identity_set", "=", "set", "(", ")", "dup_set", "=", "set", "(", ")", "def", "dump_helper", "(", "data_structure", ")", ":", "if", "data_structure", "is", "None", ":", "return", "None", "# Primitive types don'...
Dump will create a human readable version of your data-structure. It will try to dump almost anything, it has recursion detection and will try to display the recursion in a meaningful way. :param data_structure: The structure to convert. When you freeze only content counts, same content same hash ...
[ "Dump", "will", "create", "a", "human", "readable", "version", "of", "your", "data", "-", "structure", ".", "It", "will", "try", "to", "dump", "almost", "anything", "it", "has", "recursion", "detection", "and", "will", "try", "to", "display", "the", "recur...
61b4fab8a90ed76d685448723baaa57e2bbd5ef9
https://github.com/adfinis-sygroup/freeze/blob/61b4fab8a90ed76d685448723baaa57e2bbd5ef9/freeze/xfreeze.py#L282-L528
train
Dump the data structure into a human readable version of the data - structure.
adfinis-sygroup/freeze
freeze/xfreeze.py
recursive_sort
def recursive_sort(data_structure): """Sort a recursive data_structure. :param data_structure: The structure to convert. data_structure must be already sortable or you must use freeze() or dump(). The function will work with many kinds of input. Dictionaries will be converted to lists of tuples....
python
def recursive_sort(data_structure): """Sort a recursive data_structure. :param data_structure: The structure to convert. data_structure must be already sortable or you must use freeze() or dump(). The function will work with many kinds of input. Dictionaries will be converted to lists of tuples....
[ "def", "recursive_sort", "(", "data_structure", ")", ":", "# We don't sory primitve types", "if", "not", "isinstance", "(", "data_structure", ",", "_primitive_types", ")", ":", "is_meta", "=", "isinstance", "(", "data_structure", ",", "Meta", ")", "was_dict", "=", ...
Sort a recursive data_structure. :param data_structure: The structure to convert. data_structure must be already sortable or you must use freeze() or dump(). The function will work with many kinds of input. Dictionaries will be converted to lists of tuples. >>> _py2_to_py3(vformat(recursive_sor...
[ "Sort", "a", "recursive", "data_structure", "." ]
61b4fab8a90ed76d685448723baaa57e2bbd5ef9
https://github.com/adfinis-sygroup/freeze/blob/61b4fab8a90ed76d685448723baaa57e2bbd5ef9/freeze/xfreeze.py#L531-L611
train
Sort a recursive data_structure.
adfinis-sygroup/freeze
freeze/xfreeze.py
traverse_frozen_data
def traverse_frozen_data(data_structure): """Yields the leaves of the frozen data-structure pre-order. It will produce the same order as one would write the data-structure.""" parent_stack = [data_structure] while parent_stack: node = parent_stack.pop(0) # We don't iterate strings ...
python
def traverse_frozen_data(data_structure): """Yields the leaves of the frozen data-structure pre-order. It will produce the same order as one would write the data-structure.""" parent_stack = [data_structure] while parent_stack: node = parent_stack.pop(0) # We don't iterate strings ...
[ "def", "traverse_frozen_data", "(", "data_structure", ")", ":", "parent_stack", "=", "[", "data_structure", "]", "while", "parent_stack", ":", "node", "=", "parent_stack", ".", "pop", "(", "0", ")", "# We don't iterate strings", "tlen", "=", "-", "1", "if", "n...
Yields the leaves of the frozen data-structure pre-order. It will produce the same order as one would write the data-structure.
[ "Yields", "the", "leaves", "of", "the", "frozen", "data", "-", "structure", "pre", "-", "order", "." ]
61b4fab8a90ed76d685448723baaa57e2bbd5ef9
https://github.com/adfinis-sygroup/freeze/blob/61b4fab8a90ed76d685448723baaa57e2bbd5ef9/freeze/xfreeze.py#L665-L683
train
Yields the leaves of the frozen data - structure pre - order.
adfinis-sygroup/freeze
freeze/xfreeze.py
tree_diff
def tree_diff(a, b, n=5, sort=False): """Dump any data-structure or object, traverse it depth-first in-order and apply a unified diff. Depth-first in-order is just like structure would be printed. :param a: data_structure a :param b: data_structure b :param ...
python
def tree_diff(a, b, n=5, sort=False): """Dump any data-structure or object, traverse it depth-first in-order and apply a unified diff. Depth-first in-order is just like structure would be printed. :param a: data_structure a :param b: data_structure b :param ...
[ "def", "tree_diff", "(", "a", ",", "b", ",", "n", "=", "5", ",", "sort", "=", "False", ")", ":", "a", "=", "dump", "(", "a", ")", "b", "=", "dump", "(", "b", ")", "if", "not", "sort", ":", "a", "=", "vformat", "(", "a", ")", ".", "split",...
Dump any data-structure or object, traverse it depth-first in-order and apply a unified diff. Depth-first in-order is just like structure would be printed. :param a: data_structure a :param b: data_structure b :param n: lines of context :type n:...
[ "Dump", "any", "data", "-", "structure", "or", "object", "traverse", "it", "depth", "-", "first", "in", "-", "order", "and", "apply", "a", "unified", "diff", "." ]
61b4fab8a90ed76d685448723baaa57e2bbd5ef9
https://github.com/adfinis-sygroup/freeze/blob/61b4fab8a90ed76d685448723baaa57e2bbd5ef9/freeze/xfreeze.py#L752-L823
train
Dump any data - structure or object and apply a unified diff.
adfinis-sygroup/freeze
freeze/xfreeze.py
tree_diff_assert
def tree_diff_assert(a, b, n=5, sort=False): """User tree_diff() to assert a equals b. Dump any data-structure or object, traverse it depth-first and apply a unified diff, to display the result. :param a: data_structure a :param b: data_structure b :param n: ...
python
def tree_diff_assert(a, b, n=5, sort=False): """User tree_diff() to assert a equals b. Dump any data-structure or object, traverse it depth-first and apply a unified diff, to display the result. :param a: data_structure a :param b: data_structure b :param n: ...
[ "def", "tree_diff_assert", "(", "a", ",", "b", ",", "n", "=", "5", ",", "sort", "=", "False", ")", ":", "a", "=", "dump", "(", "a", ")", "b", "=", "dump", "(", "b", ")", "if", "not", "sort", ":", "a", "=", "vformat", "(", "a", ")", ".", "...
User tree_diff() to assert a equals b. Dump any data-structure or object, traverse it depth-first and apply a unified diff, to display the result. :param a: data_structure a :param b: data_structure b :param n: lines of context :type n: int :...
[ "User", "tree_diff", "()", "to", "assert", "a", "equals", "b", ".", "Dump", "any", "data", "-", "structure", "or", "object", "traverse", "it", "depth", "-", "first", "and", "apply", "a", "unified", "diff", "to", "display", "the", "result", "." ]
61b4fab8a90ed76d685448723baaa57e2bbd5ef9
https://github.com/adfinis-sygroup/freeze/blob/61b4fab8a90ed76d685448723baaa57e2bbd5ef9/freeze/xfreeze.py#L826-L902
train
User tree_diff() to assert a and b.
adfinis-sygroup/freeze
freeze/xfreeze.py
TraversalBasedReprCompare._cmp
def _cmp(self, other): """Generic cmp method to support python 2/3""" self_gen = traverse_frozen_data(self.payload) other_gen = traverse_frozen_data(other.payload) while True: try: self_node = repr(next(self_gen)) except StopIteration: ...
python
def _cmp(self, other): """Generic cmp method to support python 2/3""" self_gen = traverse_frozen_data(self.payload) other_gen = traverse_frozen_data(other.payload) while True: try: self_node = repr(next(self_gen)) except StopIteration: ...
[ "def", "_cmp", "(", "self", ",", "other", ")", ":", "self_gen", "=", "traverse_frozen_data", "(", "self", ".", "payload", ")", "other_gen", "=", "traverse_frozen_data", "(", "other", ".", "payload", ")", "while", "True", ":", "try", ":", "self_node", "=", ...
Generic cmp method to support python 2/3
[ "Generic", "cmp", "method", "to", "support", "python", "2", "/", "3" ]
61b4fab8a90ed76d685448723baaa57e2bbd5ef9
https://github.com/adfinis-sygroup/freeze/blob/61b4fab8a90ed76d685448723baaa57e2bbd5ef9/freeze/xfreeze.py#L715-L740
train
Generic cmp method to support python 2. 3
StackStorm/pybind
pybind/slxos/v17s_1_02/telemetry/collector/__init__.py
collector._set_collector_ip
def _set_collector_ip(self, v, load=False): """ Setter method for collector_ip, mapped from YANG variable /telemetry/collector/collector_ip (container) If this variable is read-only (config: false) in the source YANG file, then _set_collector_ip is considered as a private method. Backends looking to...
python
def _set_collector_ip(self, v, load=False): """ Setter method for collector_ip, mapped from YANG variable /telemetry/collector/collector_ip (container) If this variable is read-only (config: false) in the source YANG file, then _set_collector_ip is considered as a private method. Backends looking to...
[ "def", "_set_collector_ip", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for collector_ip, mapped from YANG variable /telemetry/collector/collector_ip (container) If this variable is read-only (config: false) in the source YANG file, then _set_collector_ip is considered as a private method. Backends looking to populate this variable should do so via calling thi...
[ "Setter", "method", "for", "collector_ip", "mapped", "from", "YANG", "variable", "/", "telemetry", "/", "collector", "/", "collector_ip", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "t...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/telemetry/collector/__init__.py#L135-L156
train
Sets the IP address of the next untagged sequence of items.
StackStorm/pybind
pybind/slxos/v17s_1_02/telemetry/collector/__init__.py
collector._set_collector_profile
def _set_collector_profile(self, v, load=False): """ Setter method for collector_profile, mapped from YANG variable /telemetry/collector/collector_profile (list) If this variable is read-only (config: false) in the source YANG file, then _set_collector_profile is considered as a private method. Back...
python
def _set_collector_profile(self, v, load=False): """ Setter method for collector_profile, mapped from YANG variable /telemetry/collector/collector_profile (list) If this variable is read-only (config: false) in the source YANG file, then _set_collector_profile is considered as a private method. Back...
[ "def", "_set_collector_profile", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for collector_profile, mapped from YANG variable /telemetry/collector/collector_profile (list) If this variable is read-only (config: false) in the source YANG file, then _set_collector_profile is considered as a private method. Backends looking to populate this variable should do so via c...
[ "Setter", "method", "for", "collector_profile", "mapped", "from", "YANG", "variable", "/", "telemetry", "/", "collector", "/", "collector_profile", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/telemetry/collector/__init__.py#L168-L189
train
Sets the collector profile for the
StackStorm/pybind
pybind/slxos/v17s_1_02/telemetry/collector/__init__.py
collector._set_collector_encoding
def _set_collector_encoding(self, v, load=False): """ Setter method for collector_encoding, mapped from YANG variable /telemetry/collector/collector_encoding (collector-encoding-type) If this variable is read-only (config: false) in the source YANG file, then _set_collector_encoding is considered as a p...
python
def _set_collector_encoding(self, v, load=False): """ Setter method for collector_encoding, mapped from YANG variable /telemetry/collector/collector_encoding (collector-encoding-type) If this variable is read-only (config: false) in the source YANG file, then _set_collector_encoding is considered as a p...
[ "def", "_set_collector_encoding", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for collector_encoding, mapped from YANG variable /telemetry/collector/collector_encoding (collector-encoding-type) If this variable is read-only (config: false) in the source YANG file, then _set_collector_encoding is considered as a private method. Backends looking to populate this variable ...
[ "Setter", "method", "for", "collector_encoding", "mapped", "from", "YANG", "variable", "/", "telemetry", "/", "collector", "/", "collector_encoding", "(", "collector", "-", "encoding", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "(",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/telemetry/collector/__init__.py#L234-L255
train
Sets the encoding of the based on the given collector encoding type.
StackStorm/pybind
pybind/slxos/v17s_1_02/ptp_state/clock/__init__.py
clock._set_quality
def _set_quality(self, v, load=False): """ Setter method for quality, mapped from YANG variable /ptp_state/clock/quality (container) If this variable is read-only (config: false) in the source YANG file, then _set_quality is considered as a private method. Backends looking to populate this variable ...
python
def _set_quality(self, v, load=False): """ Setter method for quality, mapped from YANG variable /ptp_state/clock/quality (container) If this variable is read-only (config: false) in the source YANG file, then _set_quality is considered as a private method. Backends looking to populate this variable ...
[ "def", "_set_quality", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for quality, mapped from YANG variable /ptp_state/clock/quality (container) If this variable is read-only (config: false) in the source YANG file, then _set_quality is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_quality()...
[ "Setter", "method", "for", "quality", "mapped", "from", "YANG", "variable", "/", "ptp_state", "/", "clock", "/", "quality", "(", "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/ptp_state/clock/__init__.py#L468-L489
train
Sets the quality of the
StackStorm/pybind
pybind/nos/v7_2_0/brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/__init__.py
port._set_if_role
def _set_if_role(self, v, load=False): """ Setter method for if_role, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/if_role (stp-port-role) If this variable is read-only (config: false) in the source YANG file, then _set_if_role is considered as a private method...
python
def _set_if_role(self, v, load=False): """ Setter method for if_role, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/if_role (stp-port-role) If this variable is read-only (config: false) in the source YANG file, then _set_if_role is considered as a private method...
[ "def", "_set_if_role", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for if_role, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/if_role (stp-port-role) If this variable is read-only (config: false) in the source YANG file, then _set_if_role is considered as a private method. Backends looking to populate this variable should...
[ "Setter", "method", "for", "if_role", "mapped", "from", "YANG", "variable", "/", "brocade_xstp_ext_rpc", "/", "get_stp_mst_detail", "/", "output", "/", "cist", "/", "port", "/", "if_role", "(", "stp", "-", "port", "-", "role", ")", "If", "this", "variable", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/__init__.py#L344-L367
train
Set the if_role of the
StackStorm/pybind
pybind/nos/v7_2_0/brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/__init__.py
port._set_if_state
def _set_if_state(self, v, load=False): """ Setter method for if_state, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/if_state (stp-port-state) If this variable is read-only (config: false) in the source YANG file, then _set_if_state is considered as a private m...
python
def _set_if_state(self, v, load=False): """ Setter method for if_state, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/if_state (stp-port-state) If this variable is read-only (config: false) in the source YANG file, then _set_if_state is considered as a private m...
[ "def", "_set_if_state", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for if_state, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/if_state (stp-port-state) If this variable is read-only (config: false) in the source YANG file, then _set_if_state is considered as a private method. Backends looking to populate this variable sh...
[ "Setter", "method", "for", "if_state", "mapped", "from", "YANG", "variable", "/", "brocade_xstp_ext_rpc", "/", "get_stp_mst_detail", "/", "output", "/", "cist", "/", "port", "/", "if_state", "(", "stp", "-", "port", "-", "state", ")", "If", "this", "variable...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/__init__.py#L381-L404
train
Sets the state of the internal state of the candidate
StackStorm/pybind
pybind/nos/v7_2_0/brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/__init__.py
port._set_transmitted_stp_type
def _set_transmitted_stp_type(self, v, load=False): """ Setter method for transmitted_stp_type, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/transmitted_stp_type (stp-type) If this variable is read-only (config: false) in the source YANG file, then _set_transmitted...
python
def _set_transmitted_stp_type(self, v, load=False): """ Setter method for transmitted_stp_type, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/transmitted_stp_type (stp-type) If this variable is read-only (config: false) in the source YANG file, then _set_transmitted...
[ "def", "_set_transmitted_stp_type", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", "...
Setter method for transmitted_stp_type, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/transmitted_stp_type (stp-type) If this variable is read-only (config: false) in the source YANG file, then _set_transmitted_stp_type is considered as a private method. Backends lookin...
[ "Setter", "method", "for", "transmitted_stp_type", "mapped", "from", "YANG", "variable", "/", "brocade_xstp_ext_rpc", "/", "get_stp_mst_detail", "/", "output", "/", "cist", "/", "port", "/", "transmitted_stp_type", "(", "stp", "-", "type", ")", "If", "this", "va...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/__init__.py#L751-L774
train
Sets the transmitted stp type for the current state of the candidate
StackStorm/pybind
pybind/slxos/v17r_2_00/ntp/__init__.py
ntp._set_server
def _set_server(self, v, load=False): """ Setter method for server, mapped from YANG variable /ntp/server (list) If this variable is read-only (config: false) in the source YANG file, then _set_server is considered as a private method. Backends looking to populate this variable should do so via ...
python
def _set_server(self, v, load=False): """ Setter method for server, mapped from YANG variable /ntp/server (list) If this variable is read-only (config: false) in the source YANG file, then _set_server is considered as a private method. Backends looking to populate this variable should do so via ...
[ "def", "_set_server", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for server, mapped from YANG variable /ntp/server (list) If this variable is read-only (config: false) in the source YANG file, then _set_server is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_server() directly.
[ "Setter", "method", "for", "server", "mapped", "from", "YANG", "variable", "/", "ntp", "/", "server", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file", "then"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/ntp/__init__.py#L102-L123
train
Set the server of the
StackStorm/pybind
pybind/slxos/v17r_2_00/ntp/__init__.py
ntp._set_peer
def _set_peer(self, v, load=False): """ Setter method for peer, mapped from YANG variable /ntp/peer (list) If this variable is read-only (config: false) in the source YANG file, then _set_peer is considered as a private method. Backends looking to populate this variable should do so via calling ...
python
def _set_peer(self, v, load=False): """ Setter method for peer, mapped from YANG variable /ntp/peer (list) If this variable is read-only (config: false) in the source YANG file, then _set_peer is considered as a private method. Backends looking to populate this variable should do so via calling ...
[ "def", "_set_peer", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for peer, mapped from YANG variable /ntp/peer (list) If this variable is read-only (config: false) in the source YANG file, then _set_peer is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_peer() directly.
[ "Setter", "method", "for", "peer", "mapped", "from", "YANG", "variable", "/", "ntp", "/", "peer", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file", "then", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/ntp/__init__.py#L168-L189
train
Set peer of the
StackStorm/pybind
pybind/slxos/v17r_2_00/ntp/__init__.py
ntp._set_source_ip
def _set_source_ip(self, v, load=False): """ Setter method for source_ip, mapped from YANG variable /ntp/source_ip (srcip_type) If this variable is read-only (config: false) in the source YANG file, then _set_source_ip is considered as a private method. Backends looking to populate this variable sho...
python
def _set_source_ip(self, v, load=False): """ Setter method for source_ip, mapped from YANG variable /ntp/source_ip (srcip_type) If this variable is read-only (config: false) in the source YANG file, then _set_source_ip is considered as a private method. Backends looking to populate this variable sho...
[ "def", "_set_source_ip", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for source_ip, mapped from YANG variable /ntp/source_ip (srcip_type) If this variable is read-only (config: false) in the source YANG file, then _set_source_ip is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_source_ip() di...
[ "Setter", "method", "for", "source_ip", "mapped", "from", "YANG", "variable", "/", "ntp", "/", "source_ip", "(", "srcip_type", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "fil...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/ntp/__init__.py#L201-L222
train
Sets the source IP of the
StackStorm/pybind
pybind/slxos/v17r_2_00/ntp/__init__.py
ntp._set_disable
def _set_disable(self, v, load=False): """ Setter method for disable, mapped from YANG variable /ntp/disable (container) If this variable is read-only (config: false) in the source YANG file, then _set_disable is considered as a private method. Backends looking to populate this variable should d...
python
def _set_disable(self, v, load=False): """ Setter method for disable, mapped from YANG variable /ntp/disable (container) If this variable is read-only (config: false) in the source YANG file, then _set_disable is considered as a private method. Backends looking to populate this variable should d...
[ "def", "_set_disable", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for disable, mapped from YANG variable /ntp/disable (container) If this variable is read-only (config: false) in the source YANG file, then _set_disable is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_disable() directly.
[ "Setter", "method", "for", "disable", "mapped", "from", "YANG", "variable", "/", "ntp", "/", "disable", "(", "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_2_00/ntp/__init__.py#L234-L255
train
Sets the disable property of the
StackStorm/pybind
pybind/slxos/v17r_2_00/ntp/__init__.py
ntp._set_authenticate
def _set_authenticate(self, v, load=False): """ Setter method for authenticate, mapped from YANG variable /ntp/authenticate (empty) If this variable is read-only (config: false) in the source YANG file, then _set_authenticate is considered as a private method. Backends looking to populate this varia...
python
def _set_authenticate(self, v, load=False): """ Setter method for authenticate, mapped from YANG variable /ntp/authenticate (empty) If this variable is read-only (config: false) in the source YANG file, then _set_authenticate is considered as a private method. Backends looking to populate this varia...
[ "def", "_set_authenticate", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for authenticate, mapped from YANG variable /ntp/authenticate (empty) If this variable is read-only (config: false) in the source YANG file, then _set_authenticate is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_authentica...
[ "Setter", "method", "for", "authenticate", "mapped", "from", "YANG", "variable", "/", "ntp", "/", "authenticate", "(", "empty", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "fi...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/ntp/__init__.py#L267-L288
train
Sets the authenticate property of the
StackStorm/pybind
pybind/slxos/v17r_2_00/ntp/__init__.py
ntp._set_trusted_key
def _set_trusted_key(self, v, load=False): """ Setter method for trusted_key, mapped from YANG variable /ntp/trusted_key (trust-key) If this variable is read-only (config: false) in the source YANG file, then _set_trusted_key is considered as a private method. Backends looking to populate this varia...
python
def _set_trusted_key(self, v, load=False): """ Setter method for trusted_key, mapped from YANG variable /ntp/trusted_key (trust-key) If this variable is read-only (config: false) in the source YANG file, then _set_trusted_key is considered as a private method. Backends looking to populate this varia...
[ "def", "_set_trusted_key", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for trusted_key, mapped from YANG variable /ntp/trusted_key (trust-key) If this variable is read-only (config: false) in the source YANG file, then _set_trusted_key is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_trusted_k...
[ "Setter", "method", "for", "trusted_key", "mapped", "from", "YANG", "variable", "/", "ntp", "/", "trusted_key", "(", "trust", "-", "key", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/ntp/__init__.py#L300-L321
train
Sets the trusted key of the node.
StackStorm/pybind
pybind/slxos/v17r_2_00/ntp/__init__.py
ntp._set_master
def _set_master(self, v, load=False): """ Setter method for master, mapped from YANG variable /ntp/master (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_master is considered as a private method. Backends looking to populate this variable should do so vi...
python
def _set_master(self, v, load=False): """ Setter method for master, mapped from YANG variable /ntp/master (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_master is considered as a private method. Backends looking to populate this variable should do so vi...
[ "def", "_set_master", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for master, mapped from YANG variable /ntp/master (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_master is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_master() directly.
[ "Setter", "method", "for", "master", "mapped", "from", "YANG", "variable", "/", "ntp", "/", "master", "(", "uint32", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file", "the...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/ntp/__init__.py#L333-L354
train
Sets the master value of the
StackStorm/pybind
pybind/slxos/v17r_1_01a/cfm_state/slm/slm_session_detail/__init__.py
slm_session_detail._set_start_type
def _set_start_type(self, v, load=False): """ Setter method for start_type, mapped from YANG variable /cfm_state/slm/slm_session_detail/start_type (start-stop-type) If this variable is read-only (config: false) in the source YANG file, then _set_start_type is considered as a private method. Backends...
python
def _set_start_type(self, v, load=False): """ Setter method for start_type, mapped from YANG variable /cfm_state/slm/slm_session_detail/start_type (start-stop-type) If this variable is read-only (config: false) in the source YANG file, then _set_start_type is considered as a private method. Backends...
[ "def", "_set_start_type", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for start_type, mapped from YANG variable /cfm_state/slm/slm_session_detail/start_type (start-stop-type) If this variable is read-only (config: false) in the source YANG file, then _set_start_type is considered as a private method. Backends looking to populate this variable should do so vi...
[ "Setter", "method", "for", "start_type", "mapped", "from", "YANG", "variable", "/", "cfm_state", "/", "slm", "/", "slm_session_detail", "/", "start_type", "(", "start", "-", "stop", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "("...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cfm_state/slm/slm_session_detail/__init__.py#L484-L507
train
Sets the start type of the
StackStorm/pybind
pybind/nos/v6_0_2f/interface/tengigabitethernet/ip/__init__.py
ip._set_arp_node_config
def _set_arp_node_config(self, v, load=False): """ Setter method for arp_node_config, mapped from YANG variable /interface/tengigabitethernet/ip/arp_node_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_arp_node_config is considered as a private met...
python
def _set_arp_node_config(self, v, load=False): """ Setter method for arp_node_config, mapped from YANG variable /interface/tengigabitethernet/ip/arp_node_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_arp_node_config is considered as a private met...
[ "def", "_set_arp_node_config", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for arp_node_config, mapped from YANG variable /interface/tengigabitethernet/ip/arp_node_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_arp_node_config is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "arp_node_config", "mapped", "from", "YANG", "variable", "/", "interface", "/", "tengigabitethernet", "/", "ip", "/", "arp_node_config", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/tengigabitethernet/ip/__init__.py#L139-L160
train
Sets the arp node configuration.
StackStorm/pybind
pybind/nos/v6_0_2f/interface/tengigabitethernet/ip/__init__.py
ip._set_interface_te_ospf_conf
def _set_interface_te_ospf_conf(self, v, load=False): """ Setter method for interface_te_ospf_conf, mapped from YANG variable /interface/tengigabitethernet/ip/interface_te_ospf_conf (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_te_ospf_conf is con...
python
def _set_interface_te_ospf_conf(self, v, load=False): """ Setter method for interface_te_ospf_conf, mapped from YANG variable /interface/tengigabitethernet/ip/interface_te_ospf_conf (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_te_ospf_conf is con...
[ "def", "_set_interface_te_ospf_conf", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for interface_te_ospf_conf, mapped from YANG variable /interface/tengigabitethernet/ip/interface_te_ospf_conf (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_te_ospf_conf is considered as a private method. Backends looking to populate this...
[ "Setter", "method", "for", "interface_te_ospf_conf", "mapped", "from", "YANG", "variable", "/", "interface", "/", "tengigabitethernet", "/", "ip", "/", "interface_te_ospf_conf", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "co...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/tengigabitethernet/ip/__init__.py#L271-L292
train
Set the value of interface_te_ospf_conf in the Tengigabitethernet interface.
spoqa/dodotable
dodotable/schema.py
Row.append
def append(self, cell): """행에 cell을 붙입니다. """ assert isinstance(cell, Cell) super(Row, self).append(cell)
python
def append(self, cell): """행에 cell을 붙입니다. """ assert isinstance(cell, Cell) super(Row, self).append(cell)
[ "def", "append", "(", "self", ",", "cell", ")", ":", "assert", "isinstance", "(", "cell", ",", "Cell", ")", "super", "(", "Row", ",", "self", ")", ".", "append", "(", "cell", ")" ]
행에 cell을 붙입니다.
[ "행에", "cell을", "붙입니다", "." ]
083ebdeb8ceb109a8f67264b44a652af49b64250
https://github.com/spoqa/dodotable/blob/083ebdeb8ceb109a8f67264b44a652af49b64250/dodotable/schema.py#L244-L247
train
행에 cell을 붙입니다.
spoqa/dodotable
dodotable/schema.py
Table._order_queries
def _order_queries(self): """쿼리의 정렬 조건을 가져옵니다.""" from .condition import Order order = [] for column in self.columns: if column.order_by: o = Order(self.cls, column.attr, column.order_by) order.append(o.__query__()) if not order: ...
python
def _order_queries(self): """쿼리의 정렬 조건을 가져옵니다.""" from .condition import Order order = [] for column in self.columns: if column.order_by: o = Order(self.cls, column.attr, column.order_by) order.append(o.__query__()) if not order: ...
[ "def", "_order_queries", "(", "self", ")", ":", "from", ".", "condition", "import", "Order", "order", "=", "[", "]", "for", "column", "in", "self", ".", "columns", ":", "if", "column", ".", "order_by", ":", "o", "=", "Order", "(", "self", ".", "cls",...
쿼리의 정렬 조건을 가져옵니다.
[ "쿼리의", "정렬", "조건을", "가져옵니다", "." ]
083ebdeb8ceb109a8f67264b44a652af49b64250
https://github.com/spoqa/dodotable/blob/083ebdeb8ceb109a8f67264b44a652af49b64250/dodotable/schema.py#L364-L377
train
Return list of Order objects.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_lag_rpc/get_port_channel_detail/output/lacp/__init__.py
lacp._set_aggregator_type
def _set_aggregator_type(self, v, load=False): """ Setter method for aggregator_type, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail/output/lacp/aggregator_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_aggregator_type is considere...
python
def _set_aggregator_type(self, v, load=False): """ Setter method for aggregator_type, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail/output/lacp/aggregator_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_aggregator_type is considere...
[ "def", "_set_aggregator_type", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for aggregator_type, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail/output/lacp/aggregator_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_aggregator_type is considered as a private method. Backends looking to populate thi...
[ "Setter", "method", "for", "aggregator_type", "mapped", "from", "YANG", "variable", "/", "brocade_lag_rpc", "/", "get_port_channel_detail", "/", "output", "/", "lacp", "/", "aggregator_type", "(", "enumeration", ")", "If", "this", "variable", "is", "read", "-", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_lag_rpc/get_port_channel_detail/output/lacp/__init__.py#L144-L165
train
Sets the aggregator type for the
StackStorm/pybind
pybind/slxos/v17s_1_02/overlay_policy_map/__init__.py
overlay_policy_map._set_pmap_seq
def _set_pmap_seq(self, v, load=False): """ Setter method for pmap_seq, mapped from YANG variable /overlay_policy_map/pmap_seq (list) If this variable is read-only (config: false) in the source YANG file, then _set_pmap_seq is considered as a private method. Backends looking to populate this variabl...
python
def _set_pmap_seq(self, v, load=False): """ Setter method for pmap_seq, mapped from YANG variable /overlay_policy_map/pmap_seq (list) If this variable is read-only (config: false) in the source YANG file, then _set_pmap_seq is considered as a private method. Backends looking to populate this variabl...
[ "def", "_set_pmap_seq", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for pmap_seq, mapped from YANG variable /overlay_policy_map/pmap_seq (list) If this variable is read-only (config: false) in the source YANG file, then _set_pmap_seq is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_pmap_seq...
[ "Setter", "method", "for", "pmap_seq", "mapped", "from", "YANG", "variable", "/", "overlay_policy_map", "/", "pmap_seq", "(", "list", ")", "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/overlay_policy_map/__init__.py#L133-L154
train
Sets the internal sequence number of the pmap.
StackStorm/pybind
pybind/slxos/v17r_1_01a/interface/ethernet/link_oam_interface/__init__.py
link_oam_interface._set_enable
def _set_enable(self, v, load=False): """ Setter method for enable, mapped from YANG variable /interface/ethernet/link_oam_interface/enable (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_enable is considered as a private method. Backends looking to pop...
python
def _set_enable(self, v, load=False): """ Setter method for enable, mapped from YANG variable /interface/ethernet/link_oam_interface/enable (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_enable is considered as a private method. Backends looking to pop...
[ "def", "_set_enable", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for enable, mapped from YANG variable /interface/ethernet/link_oam_interface/enable (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_enable is considered as a private method. Backends looking to populate this variable should do so via calling t...
[ "Setter", "method", "for", "enable", "mapped", "from", "YANG", "variable", "/", "interface", "/", "ethernet", "/", "link_oam_interface", "/", "enable", "(", "enumeration", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface/ethernet/link_oam_interface/__init__.py#L94-L115
train
Set enable property of the .
StackStorm/pybind
pybind/slxos/v17r_1_01a/interface/ethernet/link_oam_interface/__init__.py
link_oam_interface._set_remote_failure
def _set_remote_failure(self, v, load=False): """ Setter method for remote_failure, mapped from YANG variable /interface/ethernet/link_oam_interface/remote_failure (container) If this variable is read-only (config: false) in the source YANG file, then _set_remote_failure is considered as a private m...
python
def _set_remote_failure(self, v, load=False): """ Setter method for remote_failure, mapped from YANG variable /interface/ethernet/link_oam_interface/remote_failure (container) If this variable is read-only (config: false) in the source YANG file, then _set_remote_failure is considered as a private m...
[ "def", "_set_remote_failure", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for remote_failure, mapped from YANG variable /interface/ethernet/link_oam_interface/remote_failure (container) If this variable is read-only (config: false) in the source YANG file, then _set_remote_failure is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "remote_failure", "mapped", "from", "YANG", "variable", "/", "interface", "/", "ethernet", "/", "link_oam_interface", "/", "remote_failure", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface/ethernet/link_oam_interface/__init__.py#L160-L181
train
Sets the remote failure of the
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6/__init__.py
interface_ipv6._set_interface_ipv6_metric
def _set_interface_ipv6_metric(self, v, load=False): """ Setter method for interface_ipv6_metric, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6/interface_ipv6_metric (list) If this variable is read-only (config: false) in the source YANG file, then _set_i...
python
def _set_interface_ipv6_metric(self, v, load=False): """ Setter method for interface_ipv6_metric, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6/interface_ipv6_metric (list) If this variable is read-only (config: false) in the source YANG file, then _set_i...
[ "def", "_set_interface_ipv6_metric", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for interface_ipv6_metric, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6/interface_ipv6_metric (list) If this variable is read-only (config: false) in the source YANG file, then _set_interface_ipv6_metric is considered as a private method. Backe...
[ "Setter", "method", "for", "interface_ipv6_metric", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_ipv6", "/", "interface_ipv6_metric", "(", "list", ")", "If", "thi...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6/__init__.py#L92-L113
train
Sets the value of interface_ipv6_metric mapped from YANG variable to a new sequence of values.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/threshold_monitor/interface/policy/area/alert/__init__.py
alert._set_above
def _set_above(self, v, load=False): """ Setter method for above, mapped from YANG variable /rbridge_id/threshold_monitor/interface/policy/area/alert/above (container) If this variable is read-only (config: false) in the source YANG file, then _set_above is considered as a private method. Backends l...
python
def _set_above(self, v, load=False): """ Setter method for above, mapped from YANG variable /rbridge_id/threshold_monitor/interface/policy/area/alert/above (container) If this variable is read-only (config: false) in the source YANG file, then _set_above is considered as a private method. Backends l...
[ "def", "_set_above", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for above, mapped from YANG variable /rbridge_id/threshold_monitor/interface/policy/area/alert/above (container) If this variable is read-only (config: false) in the source YANG file, then _set_above is considered as a private method. Backends looking to populate this variable should do so...
[ "Setter", "method", "for", "above", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "threshold_monitor", "/", "interface", "/", "policy", "/", "area", "/", "alert", "/", "above", "(", "container", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/threshold_monitor/interface/policy/area/alert/__init__.py#L94-L115
train
Sets the above variable.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/threshold_monitor/interface/policy/area/alert/__init__.py
alert._set_below
def _set_below(self, v, load=False): """ Setter method for below, mapped from YANG variable /rbridge_id/threshold_monitor/interface/policy/area/alert/below (container) If this variable is read-only (config: false) in the source YANG file, then _set_below is considered as a private method. Backends l...
python
def _set_below(self, v, load=False): """ Setter method for below, mapped from YANG variable /rbridge_id/threshold_monitor/interface/policy/area/alert/below (container) If this variable is read-only (config: false) in the source YANG file, then _set_below is considered as a private method. Backends l...
[ "def", "_set_below", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for below, mapped from YANG variable /rbridge_id/threshold_monitor/interface/policy/area/alert/below (container) If this variable is read-only (config: false) in the source YANG file, then _set_below is considered as a private method. Backends looking to populate this variable should do so...
[ "Setter", "method", "for", "below", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "threshold_monitor", "/", "interface", "/", "policy", "/", "area", "/", "alert", "/", "below", "(", "container", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/threshold_monitor/interface/policy/area/alert/__init__.py#L127-L148
train
Sets the below variable.
StackStorm/pybind
pybind/slxos/v17s_1_02/interface_vlan/vlan/ip/igmpVlan/snooping/__init__.py
snooping._set_igmps_querier
def _set_igmps_querier(self, v, load=False): """ Setter method for igmps_querier, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan/snooping/igmps_querier (container) If this variable is read-only (config: false) in the source YANG file, then _set_igmps_querier is considered as a private me...
python
def _set_igmps_querier(self, v, load=False): """ Setter method for igmps_querier, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan/snooping/igmps_querier (container) If this variable is read-only (config: false) in the source YANG file, then _set_igmps_querier is considered as a private me...
[ "def", "_set_igmps_querier", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for igmps_querier, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan/snooping/igmps_querier (container) If this variable is read-only (config: false) in the source YANG file, then _set_igmps_querier is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "igmps_querier", "mapped", "from", "YANG", "variable", "/", "interface_vlan", "/", "vlan", "/", "ip", "/", "igmpVlan", "/", "snooping", "/", "igmps_querier", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface_vlan/vlan/ip/igmpVlan/snooping/__init__.py#L470-L491
train
Set the value of the IGIM PS QUERIER variable.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_aaa_ext_rpc/__init__.py
brocade_aaa_ext._set_user_session_info
def _set_user_session_info(self, v, load=False): """ Setter method for user_session_info, mapped from YANG variable /brocade_aaa_ext_rpc/user_session_info (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_user_session_info is considered as a private method. Backe...
python
def _set_user_session_info(self, v, load=False): """ Setter method for user_session_info, mapped from YANG variable /brocade_aaa_ext_rpc/user_session_info (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_user_session_info is considered as a private method. Backe...
[ "def", "_set_user_session_info", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for user_session_info, mapped from YANG variable /brocade_aaa_ext_rpc/user_session_info (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_user_session_info is considered as a private method. Backends looking to populate this variable should do so via ca...
[ "Setter", "method", "for", "user_session_info", "mapped", "from", "YANG", "variable", "/", "brocade_aaa_ext_rpc", "/", "user_session_info", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_aaa_ext_rpc/__init__.py#L92-L113
train
Set the user - session - info field of the .
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/__init__.py
ipv4_unicast._set_af_vrf
def _set_af_vrf(self, v, load=False): """ Setter method for af_vrf, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf (list) If this variable is read-only (config: false) in the source YANG file, then _set_af_vrf is considered as a private method. Backen...
python
def _set_af_vrf(self, v, load=False): """ Setter method for af_vrf, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf (list) If this variable is read-only (config: false) in the source YANG file, then _set_af_vrf is considered as a private method. Backen...
[ "def", "_set_af_vrf", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for af_vrf, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf (list) If this variable is read-only (config: false) in the source YANG file, then _set_af_vrf is considered as a private method. Backends looking to populate this variable should do...
[ "Setter", "method", "for", "af_vrf", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "router_bgp", "/", "address_family", "/", "ipv4", "/", "ipv4_unicast", "/", "af_vrf", "(", "list", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/__init__.py#L127-L148
train
This method is used to set the af_vrf field of the BGP route structure.
idlesign/steampak
steampak/libsteam/resources/groups.py
Group.stats
def stats(self): """Basic group statistics. Returned dict has the following keys: 'online' - users online count 'ingame' - users currently in game count 'chatting' - users chatting count :return: dict """ stats_online = CRef.cint() s...
python
def stats(self): """Basic group statistics. Returned dict has the following keys: 'online' - users online count 'ingame' - users currently in game count 'chatting' - users chatting count :return: dict """ stats_online = CRef.cint() s...
[ "def", "stats", "(", "self", ")", ":", "stats_online", "=", "CRef", ".", "cint", "(", ")", "stats_ingame", "=", "CRef", ".", "cint", "(", ")", "stats_chatting", "=", "CRef", ".", "cint", "(", ")", "self", ".", "_iface", ".", "get_clan_stats", "(", "s...
Basic group statistics. Returned dict has the following keys: 'online' - users online count 'ingame' - users currently in game count 'chatting' - users chatting count :return: dict
[ "Basic", "group", "statistics", "." ]
cb3f2c737e272b0360802d947e388df7e34f50f3
https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/groups.py#L24-L50
train
Basic group statistics.
StackStorm/pybind
pybind/slxos/v17s_1_02/rule/__init__.py
rule._set_action
def _set_action(self, v, load=False): """ Setter method for action, mapped from YANG variable /rule/action (rule-action) If this variable is read-only (config: false) in the source YANG file, then _set_action is considered as a private method. Backends looking to populate this variable should do...
python
def _set_action(self, v, load=False): """ Setter method for action, mapped from YANG variable /rule/action (rule-action) If this variable is read-only (config: false) in the source YANG file, then _set_action is considered as a private method. Backends looking to populate this variable should do...
[ "def", "_set_action", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for action, mapped from YANG variable /rule/action (rule-action) If this variable is read-only (config: false) in the source YANG file, then _set_action is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_action() directly.
[ "Setter", "method", "for", "action", "mapped", "from", "YANG", "variable", "/", "rule", "/", "action", "(", "rule", "-", "action", ")", "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/rule/__init__.py#L134-L155
train
Sets the action of the
StackStorm/pybind
pybind/slxos/v17s_1_02/rule/__init__.py
rule._set_operation
def _set_operation(self, v, load=False): """ Setter method for operation, mapped from YANG variable /rule/operation (rule-operation) If this variable is read-only (config: false) in the source YANG file, then _set_operation is considered as a private method. Backends looking to populate this variabl...
python
def _set_operation(self, v, load=False): """ Setter method for operation, mapped from YANG variable /rule/operation (rule-operation) If this variable is read-only (config: false) in the source YANG file, then _set_operation is considered as a private method. Backends looking to populate this variabl...
[ "def", "_set_operation", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for operation, mapped from YANG variable /rule/operation (rule-operation) If this variable is read-only (config: false) in the source YANG file, then _set_operation is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_operation...
[ "Setter", "method", "for", "operation", "mapped", "from", "YANG", "variable", "/", "rule", "/", "operation", "(", "rule", "-", "operation", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/rule/__init__.py#L167-L188
train
Sets the operation field of the
StackStorm/pybind
pybind/slxos/v17s_1_02/brocade_mpls_rpc/show_mpls_ldp_peer_det_rec/output/__init__.py
output._set_ldp_peer_state
def _set_ldp_peer_state(self, v, load=False): """ Setter method for ldp_peer_state, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_peer_det_rec/output/ldp_peer_state (ldp-state-name) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_peer_state is considered ...
python
def _set_ldp_peer_state(self, v, load=False): """ Setter method for ldp_peer_state, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_peer_det_rec/output/ldp_peer_state (ldp-state-name) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_peer_state is considered ...
[ "def", "_set_ldp_peer_state", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for ldp_peer_state, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_peer_det_rec/output/ldp_peer_state (ldp-state-name) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_peer_state is considered as a private method. Backends looking to populate this...
[ "Setter", "method", "for", "ldp_peer_state", "mapped", "from", "YANG", "variable", "/", "brocade_mpls_rpc", "/", "show_mpls_ldp_peer_det_rec", "/", "output", "/", "ldp_peer_state", "(", "ldp", "-", "state", "-", "name", ")", "If", "this", "variable", "is", "read...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/brocade_mpls_rpc/show_mpls_ldp_peer_det_rec/output/__init__.py#L249-L272
train
Set the state of the LDP peer.
inveniosoftware/invenio-access
invenio_access/alembic/2069a982633b_add_on_delete_cascade_constraint.py
upgrade
def upgrade(): """Upgrade database.""" op.create_index(op.f('ix_access_actionsroles_role_id'), 'access_actionsroles', ['role_id'], unique=False) op.drop_constraint(u'fk_access_actionsroles_role_id_accounts_role', 'access_actionsroles', type_='foreignkey') op.cr...
python
def upgrade(): """Upgrade database.""" op.create_index(op.f('ix_access_actionsroles_role_id'), 'access_actionsroles', ['role_id'], unique=False) op.drop_constraint(u'fk_access_actionsroles_role_id_accounts_role', 'access_actionsroles', type_='foreignkey') op.cr...
[ "def", "upgrade", "(", ")", ":", "op", ".", "create_index", "(", "op", ".", "f", "(", "'ix_access_actionsroles_role_id'", ")", ",", "'access_actionsroles'", ",", "[", "'role_id'", "]", ",", "unique", "=", "False", ")", "op", ".", "drop_constraint", "(", "u...
Upgrade database.
[ "Upgrade", "database", "." ]
3b033a4bdc110eb2f7e9f08f0744a780884bfc80
https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/alembic/2069a982633b_add_on_delete_cascade_constraint.py#L20-L35
train
Upgrade database.
inveniosoftware/invenio-access
invenio_access/alembic/2069a982633b_add_on_delete_cascade_constraint.py
downgrade
def downgrade(): """Downgrade database.""" op.drop_constraint(op.f('fk_access_actionsusers_user_id_accounts_user'), 'access_actionsusers', type_='foreignkey') op.drop_index(op.f('ix_access_actionsusers_user_id'), table_name='access_actionsusers') op.create_foreig...
python
def downgrade(): """Downgrade database.""" op.drop_constraint(op.f('fk_access_actionsusers_user_id_accounts_user'), 'access_actionsusers', type_='foreignkey') op.drop_index(op.f('ix_access_actionsusers_user_id'), table_name='access_actionsusers') op.create_foreig...
[ "def", "downgrade", "(", ")", ":", "op", ".", "drop_constraint", "(", "op", ".", "f", "(", "'fk_access_actionsusers_user_id_accounts_user'", ")", ",", "'access_actionsusers'", ",", "type_", "=", "'foreignkey'", ")", "op", ".", "drop_index", "(", "op", ".", "f"...
Downgrade database.
[ "Downgrade", "database", "." ]
3b033a4bdc110eb2f7e9f08f0744a780884bfc80
https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/alembic/2069a982633b_add_on_delete_cascade_constraint.py#L38-L53
train
Downgrade database.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_interface_reverse_metric
def _set_interface_reverse_metric(self, v, load=False): """ Setter method for interface_reverse_metric, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_reverse_metric (container) If this variable is read-only (config: false) in the source YANG file, then _set_in...
python
def _set_interface_reverse_metric(self, v, load=False): """ Setter method for interface_reverse_metric, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_reverse_metric (container) If this variable is read-only (config: false) in the source YANG file, then _set_in...
[ "def", "_set_interface_reverse_metric", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v",...
Setter method for interface_reverse_metric, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_reverse_metric (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_reverse_metric is considered as a private method. Backen...
[ "Setter", "method", "for", "interface_reverse_metric", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_reverse_metric", "(", "container", ")", "If", "this", "variable"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L149-L170
train
Set the interface reverse metric.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_interface_auth_key
def _set_interface_auth_key(self, v, load=False): """ Setter method for interface_auth_key, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_auth_key (list) If this variable is read-only (config: false) in the source YANG file, then _set_interface_auth_key is con...
python
def _set_interface_auth_key(self, v, load=False): """ Setter method for interface_auth_key, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_auth_key (list) If this variable is read-only (config: false) in the source YANG file, then _set_interface_auth_key is con...
[ "def", "_set_interface_auth_key", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for interface_auth_key, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_auth_key (list) If this variable is read-only (config: false) in the source YANG file, then _set_interface_auth_key is considered as a private method. Backends looking to populate ...
[ "Setter", "method", "for", "interface_auth_key", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_auth_key", "(", "list", ")", "If", "this", "variable", "is", "read...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L215-L236
train
Set the authentication key for the ISIS interface.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_interface_hello
def _set_interface_hello(self, v, load=False): """ Setter method for interface_hello, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello is considered...
python
def _set_interface_hello(self, v, load=False): """ Setter method for interface_hello, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello is considered...
[ "def", "_set_interface_hello", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for interface_hello, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello is considered as a private method. Backends looking to populate this...
[ "Setter", "method", "for", "interface_hello", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_hello", "(", "container", ")", "If", "this", "variable", "is", "read"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L248-L269
train
Set the hello mode of the based on the given interfaces
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_interface_hello_interval
def _set_interface_hello_interval(self, v, load=False): """ Setter method for interface_hello_interval, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_interval (list) If this variable is read-only (config: false) in the source YANG file, then _set_interfa...
python
def _set_interface_hello_interval(self, v, load=False): """ Setter method for interface_hello_interval, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_interval (list) If this variable is read-only (config: false) in the source YANG file, then _set_interfa...
[ "def", "_set_interface_hello_interval", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v",...
Setter method for interface_hello_interval, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_interval (list) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello_interval is considered as a private method. Backends lo...
[ "Setter", "method", "for", "interface_hello_interval", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_hello_interval", "(", "list", ")", "If", "this", "variable", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L281-L302
train
Sets the interface - hello - interval of the isis - ve interface.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_interface_hello_multiplier
def _set_interface_hello_multiplier(self, v, load=False): """ Setter method for interface_hello_multiplier, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_multiplier (list) If this variable is read-only (config: false) in the source YANG file, then _set_i...
python
def _set_interface_hello_multiplier(self, v, load=False): """ Setter method for interface_hello_multiplier, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_multiplier (list) If this variable is read-only (config: false) in the source YANG file, then _set_i...
[ "def", "_set_interface_hello_multiplier", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v...
Setter method for interface_hello_multiplier, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_multiplier (list) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello_multiplier is considered as a private method. Backe...
[ "Setter", "method", "for", "interface_hello_multiplier", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_hello_multiplier", "(", "list", ")", "If", "this", "variable",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L314-L335
train
Sets the interface_hello_multiplier variable.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_circuit_type
def _set_circuit_type(self, v, load=False): """ Setter method for circuit_type, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/circuit_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_circuit_type is considered as a priv...
python
def _set_circuit_type(self, v, load=False): """ Setter method for circuit_type, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/circuit_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_circuit_type is considered as a priv...
[ "def", "_set_circuit_type", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for circuit_type, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/circuit_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_circuit_type is considered as a private method. Backends looking to populate this variab...
[ "Setter", "method", "for", "circuit_type", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "circuit_type", "(", "enumeration", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L347-L368
train
Sets the circuit type for the
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_interface_ipv6
def _set_interface_ipv6(self, v, load=False): """ Setter method for interface_ipv6, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6 (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_ipv6 is considered as ...
python
def _set_interface_ipv6(self, v, load=False): """ Setter method for interface_ipv6, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6 (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_ipv6 is considered as ...
[ "def", "_set_interface_ipv6", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for interface_ipv6, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6 (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_ipv6 is considered as a private method. Backends looking to populate this va...
[ "Setter", "method", "for", "interface_ipv6", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_ipv6", "(", "container", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L380-L401
train
Set the ipv6 address of the isis group.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_interface_priority
def _set_interface_priority(self, v, load=False): """ Setter method for interface_priority, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_priority i...
python
def _set_interface_priority(self, v, load=False): """ Setter method for interface_priority, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_priority i...
[ "def", "_set_interface_priority", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for interface_priority, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_priority is considered as a private method. Backends looking to popu...
[ "Setter", "method", "for", "interface_priority", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_priority", "(", "container", ")", "If", "this", "variable", "is", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L512-L533
train
Set the priority of the based on the given interface_priority.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py
interface_isis._set_interface_bfd
def _set_interface_bfd(self, v, load=False): """ Setter method for interface_bfd, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_bfd (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_bfd is considered as a pr...
python
def _set_interface_bfd(self, v, load=False): """ Setter method for interface_bfd, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_bfd (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_bfd is considered as a pr...
[ "def", "_set_interface_bfd", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for interface_bfd, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_bfd (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_bfd is considered as a private method. Backends looking to populate this varia...
[ "Setter", "method", "for", "interface_bfd", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "/", "interface_bfd", "(", "container", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/interface_isis/__init__.py#L545-L566
train
Set the value of interface_bfd mapped from YANG variable to the next non - empty sequence.
StackStorm/pybind
pybind/slxos/v17r_1_01a/monitor/session/span_command/__init__.py
span_command._set_dest_ethernet_val
def _set_dest_ethernet_val(self, v, load=False): """ Setter method for dest_ethernet_val, mapped from YANG variable /monitor/session/span_command/dest_ethernet_val (span-if-type) If this variable is read-only (config: false) in the source YANG file, then _set_dest_ethernet_val is considered as a private...
python
def _set_dest_ethernet_val(self, v, load=False): """ Setter method for dest_ethernet_val, mapped from YANG variable /monitor/session/span_command/dest_ethernet_val (span-if-type) If this variable is read-only (config: false) in the source YANG file, then _set_dest_ethernet_val is considered as a private...
[ "def", "_set_dest_ethernet_val", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for dest_ethernet_val, mapped from YANG variable /monitor/session/span_command/dest_ethernet_val (span-if-type) If this variable is read-only (config: false) in the source YANG file, then _set_dest_ethernet_val is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "dest_ethernet_val", "mapped", "from", "YANG", "variable", "/", "monitor", "/", "session", "/", "span_command", "/", "dest_ethernet_val", "(", "span", "-", "if", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/monitor/session/span_command/__init__.py#L264-L285
train
Sets the value of the destination Ethernet value in the cluster.
StackStorm/pybind
pybind/slxos/v17r_1_01a/monitor/session/span_command/__init__.py
span_command._set_direction
def _set_direction(self, v, load=False): """ Setter method for direction, mapped from YANG variable /monitor/session/span_command/direction (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_direction is considered as a private method. Backends looking to ...
python
def _set_direction(self, v, load=False): """ Setter method for direction, mapped from YANG variable /monitor/session/span_command/direction (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_direction is considered as a private method. Backends looking to ...
[ "def", "_set_direction", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for direction, mapped from YANG variable /monitor/session/span_command/direction (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_direction is considered as a private method. Backends looking to populate this variable should do so via calling t...
[ "Setter", "method", "for", "direction", "mapped", "from", "YANG", "variable", "/", "monitor", "/", "session", "/", "span_command", "/", "direction", "(", "enumeration", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/monitor/session/span_command/__init__.py#L363-L384
train
Sets the direction of the node.
StackStorm/pybind
pybind/slxos/v17r_1_01a/overlay_gateway/access_lists/__init__.py
access_lists._set_overlay_acl_in
def _set_overlay_acl_in(self, v, load=False): """ Setter method for overlay_acl_in, mapped from YANG variable /overlay_gateway/access_lists/overlay_acl_in (container) If this variable is read-only (config: false) in the source YANG file, then _set_overlay_acl_in is considered as a private method. Ba...
python
def _set_overlay_acl_in(self, v, load=False): """ Setter method for overlay_acl_in, mapped from YANG variable /overlay_gateway/access_lists/overlay_acl_in (container) If this variable is read-only (config: false) in the source YANG file, then _set_overlay_acl_in is considered as a private method. Ba...
[ "def", "_set_overlay_acl_in", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for overlay_acl_in, mapped from YANG variable /overlay_gateway/access_lists/overlay_acl_in (container) If this variable is read-only (config: false) in the source YANG file, then _set_overlay_acl_in is considered as a private method. Backends looking to populate this variable should do so ...
[ "Setter", "method", "for", "overlay_acl_in", "mapped", "from", "YANG", "variable", "/", "overlay_gateway", "/", "access_lists", "/", "overlay_acl_in", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/overlay_gateway/access_lists/__init__.py#L92-L113
train
Sets the ACL of the overlay.
StackStorm/pybind
pybind/nos/v6_0_2f/interface/port_channel/switchport/private_vlan/association/__init__.py
association._set_trunk
def _set_trunk(self, v, load=False): """ Setter method for trunk, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association/trunk (list) If this variable is read-only (config: false) in the source YANG file, then _set_trunk is considered as a private method. Backends look...
python
def _set_trunk(self, v, load=False): """ Setter method for trunk, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association/trunk (list) If this variable is read-only (config: false) in the source YANG file, then _set_trunk is considered as a private method. Backends look...
[ "def", "_set_trunk", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for trunk, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association/trunk (list) If this variable is read-only (config: false) in the source YANG file, then _set_trunk is considered as a private method. Backends looking to populate this variable should do so vi...
[ "Setter", "method", "for", "trunk", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "switchport", "/", "private_vlan", "/", "association", "/", "trunk", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/switchport/private_vlan/association/__init__.py#L94-L115
train
Set the trunk field of the private .
budacom/trading-bots
trading_bots/core/management/__init__.py
run
def run(bot, config, settings): """Run a specified BOT by label e.g. 'MyBot'""" print_options(bot, config, settings) click.echo() bot_task = BotTask(bot, config) bot_task.run_once()
python
def run(bot, config, settings): """Run a specified BOT by label e.g. 'MyBot'""" print_options(bot, config, settings) click.echo() bot_task = BotTask(bot, config) bot_task.run_once()
[ "def", "run", "(", "bot", ",", "config", ",", "settings", ")", ":", "print_options", "(", "bot", ",", "config", ",", "settings", ")", "click", ".", "echo", "(", ")", "bot_task", "=", "BotTask", "(", "bot", ",", "config", ")", "bot_task", ".", "run_on...
Run a specified BOT by label e.g. 'MyBot
[ "Run", "a", "specified", "BOT", "by", "label", "e", ".", "g", ".", "MyBot" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/core/management/__init__.py#L63-L68
train
Run a specified BOT by label e. g. MyBot
budacom/trading-bots
trading_bots/core/management/__init__.py
loop
def loop(bot, config, interval, settings): """Schedule a BOT (by label) to run on an interval, e.g. 'MyBot -i 60'""" print_options(bot, config, settings) click.echo(f'- Interval: {interval}s') click.echo() bot_task = BotTask(bot, config) bot_task.run_loop(interval)
python
def loop(bot, config, interval, settings): """Schedule a BOT (by label) to run on an interval, e.g. 'MyBot -i 60'""" print_options(bot, config, settings) click.echo(f'- Interval: {interval}s') click.echo() bot_task = BotTask(bot, config) bot_task.run_loop(interval)
[ "def", "loop", "(", "bot", ",", "config", ",", "interval", ",", "settings", ")", ":", "print_options", "(", "bot", ",", "config", ",", "settings", ")", "click", ".", "echo", "(", "f'- Interval: {interval}s'", ")", "click", ".", "echo", "(", ")", "bot_tas...
Schedule a BOT (by label) to run on an interval, e.g. 'MyBot -i 60
[ "Schedule", "a", "BOT", "(", "by", "label", ")", "to", "run", "on", "an", "interval", "e", ".", "g", ".", "MyBot", "-", "i", "60" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/core/management/__init__.py#L76-L82
train
Schedule a BOT to run on an interval
budacom/trading-bots
trading_bots/core/management/__init__.py
abort
def abort(bot, config, settings): """Run the abort command of a specified BOT by label e.g. 'MyBot'""" print_options(bot, config, settings) click.echo() bot_task = BotTask(bot, config) bot_task.abort()
python
def abort(bot, config, settings): """Run the abort command of a specified BOT by label e.g. 'MyBot'""" print_options(bot, config, settings) click.echo() bot_task = BotTask(bot, config) bot_task.abort()
[ "def", "abort", "(", "bot", ",", "config", ",", "settings", ")", ":", "print_options", "(", "bot", ",", "config", ",", "settings", ")", "click", ".", "echo", "(", ")", "bot_task", "=", "BotTask", "(", "bot", ",", "config", ")", "bot_task", ".", "abor...
Run the abort command of a specified BOT by label e.g. 'MyBot
[ "Run", "the", "abort", "command", "of", "a", "specified", "BOT", "by", "label", "e", ".", "g", ".", "MyBot" ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/core/management/__init__.py#L89-L94
train
Abort a specified BOT
budacom/trading-bots
trading_bots/core/management/__init__.py
startproject
def startproject(name, directory, verbosity): """ Creates a Trading-Bots project directory structure for the given project NAME in the current directory or optionally in the given DIRECTORY. """ handle_template('project', name, target=directory, verbosity=verbosity) click.echo(f"Success: '{name}...
python
def startproject(name, directory, verbosity): """ Creates a Trading-Bots project directory structure for the given project NAME in the current directory or optionally in the given DIRECTORY. """ handle_template('project', name, target=directory, verbosity=verbosity) click.echo(f"Success: '{name}...
[ "def", "startproject", "(", "name", ",", "directory", ",", "verbosity", ")", ":", "handle_template", "(", "'project'", ",", "name", ",", "target", "=", "directory", ",", "verbosity", "=", "verbosity", ")", "click", ".", "echo", "(", "f\"Success: '{name}' proje...
Creates a Trading-Bots project directory structure for the given project NAME in the current directory or optionally in the given DIRECTORY.
[ "Creates", "a", "Trading", "-", "Bots", "project", "directory", "structure", "for", "the", "given", "project", "NAME", "in", "the", "current", "directory", "or", "optionally", "in", "the", "given", "DIRECTORY", "." ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/core/management/__init__.py#L101-L107
train
Create a Trading - Bots project in the given directory.
budacom/trading-bots
trading_bots/core/management/__init__.py
createbot
def createbot(name, directory, verbosity): """ Creates a Bot's directory structure for the given bot NAME in the current directory or optionally in the given DIRECTORY. """ handle_template('bot', name, target=directory, verbosity=verbosity) click.echo(f"Success: '{name}' bot was successfully cre...
python
def createbot(name, directory, verbosity): """ Creates a Bot's directory structure for the given bot NAME in the current directory or optionally in the given DIRECTORY. """ handle_template('bot', name, target=directory, verbosity=verbosity) click.echo(f"Success: '{name}' bot was successfully cre...
[ "def", "createbot", "(", "name", ",", "directory", ",", "verbosity", ")", ":", "handle_template", "(", "'bot'", ",", "name", ",", "target", "=", "directory", ",", "verbosity", "=", "verbosity", ")", "click", ".", "echo", "(", "f\"Success: '{name}' bot was succ...
Creates a Bot's directory structure for the given bot NAME in the current directory or optionally in the given DIRECTORY.
[ "Creates", "a", "Bot", "s", "directory", "structure", "for", "the", "given", "bot", "NAME", "in", "the", "current", "directory", "or", "optionally", "in", "the", "given", "DIRECTORY", "." ]
8cb68bb8d0b5f822108db1cc5dae336e3d3c3452
https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/core/management/__init__.py#L114-L120
train
Create a Bot in the given directory.
StackStorm/pybind
pybind/nos/v6_0_2f/hardware/custom_profile/__init__.py
custom_profile._set_kap_custom_profile
def _set_kap_custom_profile(self, v, load=False): """ Setter method for kap_custom_profile, mapped from YANG variable /hardware/custom_profile/kap_custom_profile (list) If this variable is read-only (config: false) in the source YANG file, then _set_kap_custom_profile is considered as a private meth...
python
def _set_kap_custom_profile(self, v, load=False): """ Setter method for kap_custom_profile, mapped from YANG variable /hardware/custom_profile/kap_custom_profile (list) If this variable is read-only (config: false) in the source YANG file, then _set_kap_custom_profile is considered as a private meth...
[ "def", "_set_kap_custom_profile", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for kap_custom_profile, mapped from YANG variable /hardware/custom_profile/kap_custom_profile (list) If this variable is read-only (config: false) in the source YANG file, then _set_kap_custom_profile is considered as a private method. Backends looking to populate this variable should do s...
[ "Setter", "method", "for", "kap_custom_profile", "mapped", "from", "YANG", "variable", "/", "hardware", "/", "custom_profile", "/", "kap_custom_profile", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/hardware/custom_profile/__init__.py#L92-L113
train
Sets the kap - custom - profile for the cluster.
StackStorm/pybind
pybind/nos/v7_2_0/rbridge_id/ip/__init__.py
ip._set_static_ag_ip_config
def _set_static_ag_ip_config(self, v, load=False): """ Setter method for static_ag_ip_config, mapped from YANG variable /rbridge_id/ip/static_ag_ip_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_static_ag_ip_config is considered as a private metho...
python
def _set_static_ag_ip_config(self, v, load=False): """ Setter method for static_ag_ip_config, mapped from YANG variable /rbridge_id/ip/static_ag_ip_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_static_ag_ip_config is considered as a private metho...
[ "def", "_set_static_ag_ip_config", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",...
Setter method for static_ag_ip_config, mapped from YANG variable /rbridge_id/ip/static_ag_ip_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_static_ag_ip_config is considered as a private method. Backends looking to populate this variable should do so ...
[ "Setter", "method", "for", "static_ag_ip_config", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ip", "/", "static_ag_ip_config", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "i...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/ip/__init__.py#L110-L131
train
Sets the value of static_ag_ip_config in the base node.