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/nos/v7_2_0/rbridge_id/ip/__init__.py
ip._set_as_path
def _set_as_path(self, v, load=False): """ Setter method for as_path, mapped from YANG variable /rbridge_id/ip/as_path (container) If this variable is read-only (config: false) in the source YANG file, then _set_as_path is considered as a private method. Backends looking to populate this variable sh...
python
def _set_as_path(self, v, load=False): """ Setter method for as_path, mapped from YANG variable /rbridge_id/ip/as_path (container) If this variable is read-only (config: false) in the source YANG file, then _set_as_path is considered as a private method. Backends looking to populate this variable sh...
[ "def", "_set_as_path", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for as_path, mapped from YANG variable /rbridge_id/ip/as_path (container) If this variable is read-only (config: false) in the source YANG file, then _set_as_path is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_as_path() d...
[ "Setter", "method", "for", "as_path", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ip", "/", "as_path", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/ip/__init__.py#L246-L267
train
Set the AS path of the node.
StackStorm/pybind
pybind/nos/v7_2_0/rbridge_id/ip/__init__.py
ip._set_community_list
def _set_community_list(self, v, load=False): """ Setter method for community_list, mapped from YANG variable /rbridge_id/ip/community_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_community_list is considered as a private method. Backends looking ...
python
def _set_community_list(self, v, load=False): """ Setter method for community_list, mapped from YANG variable /rbridge_id/ip/community_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_community_list is considered as a private method. Backends looking ...
[ "def", "_set_community_list", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for community_list, mapped from YANG variable /rbridge_id/ip/community_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_community_list is considered as a private method. Backends looking to populate this variable should do so via calling thi...
[ "Setter", "method", "for", "community_list", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ip", "/", "community_list", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/ip/__init__.py#L279-L300
train
Sets the community list for the
StackStorm/pybind
pybind/slxos/v17r_2_00/hardware/profile/route/predefined/__init__.py
predefined._set_route_profiletype
def _set_route_profiletype(self, v, load=False): """ Setter method for route_profiletype, mapped from YANG variable /hardware/profile/route/predefined/route_profiletype (route-profile-subtype) If this variable is read-only (config: false) in the source YANG file, then _set_route_profiletype is considere...
python
def _set_route_profiletype(self, v, load=False): """ Setter method for route_profiletype, mapped from YANG variable /hardware/profile/route/predefined/route_profiletype (route-profile-subtype) If this variable is read-only (config: false) in the source YANG file, then _set_route_profiletype is considere...
[ "def", "_set_route_profiletype", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for route_profiletype, mapped from YANG variable /hardware/profile/route/predefined/route_profiletype (route-profile-subtype) If this variable is read-only (config: false) in the source YANG file, then _set_route_profiletype is considered as a private method. Backends looking to populate this ...
[ "Setter", "method", "for", "route_profiletype", "mapped", "from", "YANG", "variable", "/", "hardware", "/", "profile", "/", "route", "/", "predefined", "/", "route_profiletype", "(", "route", "-", "profile", "-", "subtype", ")", "If", "this", "variable", "is",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/hardware/profile/route/predefined/__init__.py#L93-L114
train
Sets the route profiletype of the
StackStorm/pybind
pybind/slxos/v17r_2_00/hardware/profile/route/predefined/__init__.py
predefined._set_route_parameter
def _set_route_parameter(self, v, load=False): """ Setter method for route_parameter, mapped from YANG variable /hardware/profile/route/predefined/route_parameter (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_parameter is considered as a private m...
python
def _set_route_parameter(self, v, load=False): """ Setter method for route_parameter, mapped from YANG variable /hardware/profile/route/predefined/route_parameter (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_parameter is considered as a private m...
[ "def", "_set_route_parameter", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for route_parameter, mapped from YANG variable /hardware/profile/route/predefined/route_parameter (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_parameter is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "route_parameter", "mapped", "from", "YANG", "variable", "/", "hardware", "/", "profile", "/", "route", "/", "predefined", "/", "route_parameter", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "co...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/hardware/profile/route/predefined/__init__.py#L126-L147
train
Sets the route parameter of the based on the given route parameter.
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fortygigabitethernet/ipv6/interface_ospfv3_conf/authentication/__init__.py
authentication._set_ipsec
def _set_ipsec(self, v, load=False): """ Setter method for ipsec, mapped from YANG variable /interface/fortygigabitethernet/ipv6/interface_ospfv3_conf/authentication/ipsec (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipsec is considered as a private me...
python
def _set_ipsec(self, v, load=False): """ Setter method for ipsec, mapped from YANG variable /interface/fortygigabitethernet/ipv6/interface_ospfv3_conf/authentication/ipsec (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipsec is considered as a private me...
[ "def", "_set_ipsec", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for ipsec, mapped from YANG variable /interface/fortygigabitethernet/ipv6/interface_ospfv3_conf/authentication/ipsec (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipsec is considered as a private method. Backends looking to populate this variable ...
[ "Setter", "method", "for", "ipsec", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fortygigabitethernet", "/", "ipv6", "/", "interface_ospfv3_conf", "/", "authentication", "/", "ipsec", "(", "container", ")", "If", "this", "variable", "is", "read"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fortygigabitethernet/ipv6/interface_ospfv3_conf/authentication/__init__.py#L131-L154
train
Set the ipsec field of the
StackStorm/pybind
pybind/nos/v6_0_2f/interface/port_channel/qos/__init__.py
qos._set_trust
def _set_trust(self, v, load=False): """ Setter method for trust, mapped from YANG variable /interface/port_channel/qos/trust (container) If this variable is read-only (config: false) in the source YANG file, then _set_trust is considered as a private method. Backends looking to populate this variab...
python
def _set_trust(self, v, load=False): """ Setter method for trust, mapped from YANG variable /interface/port_channel/qos/trust (container) If this variable is read-only (config: false) in the source YANG file, then _set_trust is considered as a private method. Backends looking to populate this variab...
[ "def", "_set_trust", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for trust, mapped from YANG variable /interface/port_channel/qos/trust (container) If this variable is read-only (config: false) in the source YANG file, then _set_trust is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_trus...
[ "Setter", "method", "for", "trust", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "qos", "/", "trust", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/qos/__init__.py#L137-L158
train
Sets the trust property of the
StackStorm/pybind
pybind/nos/v6_0_2f/interface/port_channel/track/__init__.py
track._set_remove_
def _set_remove_(self, v, load=False): """ Setter method for remove_, mapped from YANG variable /interface/port_channel/track/remove (container) If this variable is read-only (config: false) in the source YANG file, then _set_remove_ is considered as a private method. Backends looking to populate th...
python
def _set_remove_(self, v, load=False): """ Setter method for remove_, mapped from YANG variable /interface/port_channel/track/remove (container) If this variable is read-only (config: false) in the source YANG file, then _set_remove_ is considered as a private method. Backends looking to populate th...
[ "def", "_set_remove_", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for remove_, mapped from YANG variable /interface/port_channel/track/remove (container) If this variable is read-only (config: false) in the source YANG file, then _set_remove_ is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
[ "Setter", "method", "for", "remove_", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "track", "/", "remove", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/track/__init__.py#L211-L234
train
Sets the remove parameter of the
StackStorm/pybind
pybind/slxos/v17s_1_02/control_plane/ipv6/__init__.py
ipv6._set_subnet_rate_limit
def _set_subnet_rate_limit(self, v, load=False): """ Setter method for subnet_rate_limit, mapped from YANG variable /control_plane/ipv6/subnet_rate_limit (container) If this variable is read-only (config: false) in the source YANG file, then _set_subnet_rate_limit is considered as a private method. ...
python
def _set_subnet_rate_limit(self, v, load=False): """ Setter method for subnet_rate_limit, mapped from YANG variable /control_plane/ipv6/subnet_rate_limit (container) If this variable is read-only (config: false) in the source YANG file, then _set_subnet_rate_limit is considered as a private method. ...
[ "def", "_set_subnet_rate_limit", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for subnet_rate_limit, mapped from YANG variable /control_plane/ipv6/subnet_rate_limit (container) If this variable is read-only (config: false) in the source YANG file, then _set_subnet_rate_limit is considered as a private method. Backends looking to populate this variable should do so v...
[ "Setter", "method", "for", "subnet_rate_limit", "mapped", "from", "YANG", "variable", "/", "control_plane", "/", "ipv6", "/", "subnet_rate_limit", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/control_plane/ipv6/__init__.py#L92-L113
train
Sets the subnet rate limit for the specified control plane.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/__init__.py
redistribute._set_redistribute_isis
def _set_redistribute_isis(self, v, load=False): """ Setter method for redistribute_isis, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/redistribute_isis (container) If this variable is read-onl...
python
def _set_redistribute_isis(self, v, load=False): """ Setter method for redistribute_isis, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/redistribute_isis (container) If this variable is read-onl...
[ "def", "_set_redistribute_isis", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for redistribute_isis, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/redistribute_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_redi...
[ "Setter", "method", "for", "redistribute_isis", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "router_bgp", "/", "address_family", "/", "ipv6", "/", "ipv6_unicast", "/", "default_vrf", "/", "af_ipv6_uc_and_vrf_cmds_call_point_holder", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/__init__.py#L201-L224
train
Sets the value of the redistribute_isis variable in the virtual network.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/evpn_config/evpn/evpn_instance/vlan/__init__.py
vlan._set_vlan_add
def _set_vlan_add(self, v, load=False): """ Setter method for vlan_add, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/vlan_add (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_add is considered as a private method. Back...
python
def _set_vlan_add(self, v, load=False): """ Setter method for vlan_add, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/vlan_add (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_add is considered as a private method. Back...
[ "def", "_set_vlan_add", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for vlan_add, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/vlan_add (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_add is considered as a private method. Backends looking to populate this variable should do...
[ "Setter", "method", "for", "vlan_add", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "evpn_config", "/", "evpn", "/", "evpn_instance", "/", "vlan", "/", "vlan_add", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/evpn_config/evpn/evpn_instance/vlan/__init__.py#L94-L115
train
Set the flag for vlan_add
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/evpn_config/evpn/evpn_instance/vlan/__init__.py
vlan._set_evpn_vlan
def _set_evpn_vlan(self, v, load=False): """ Setter method for evpn_vlan, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/evpn_vlan (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_vlan is considered as a private method. Backe...
python
def _set_evpn_vlan(self, v, load=False): """ Setter method for evpn_vlan, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/evpn_vlan (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_vlan is considered as a private method. Backe...
[ "def", "_set_evpn_vlan", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for evpn_vlan, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/evpn_vlan (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_vlan is considered as a private method. Backends looking to populate this variable should do s...
[ "Setter", "method", "for", "evpn_vlan", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "evpn_config", "/", "evpn", "/", "evpn_instance", "/", "vlan", "/", "evpn_vlan", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/evpn_config/evpn/evpn_instance/vlan/__init__.py#L129-L152
train
Set the value of EVPN VLANs in the EVPN Sequential Vlan system.
StackStorm/pybind
pybind/slxos/v17s_1_02/interface/__init__.py
interface._set_ethernet
def _set_ethernet(self, v, load=False): """ Setter method for ethernet, mapped from YANG variable /interface/ethernet (list) If this variable is read-only (config: false) in the source YANG file, then _set_ethernet is considered as a private method. Backends looking to populate this variable should ...
python
def _set_ethernet(self, v, load=False): """ Setter method for ethernet, mapped from YANG variable /interface/ethernet (list) If this variable is read-only (config: false) in the source YANG file, then _set_ethernet is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_ethernet", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for ethernet, mapped from YANG variable /interface/ethernet (list) If this variable is read-only (config: false) in the source YANG file, then _set_ethernet is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ethernet() direct...
[ "Setter", "method", "for", "ethernet", "mapped", "from", "YANG", "variable", "/", "interface", "/", "ethernet", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface/__init__.py#L108-L134
train
Set the ethernet field of the .
StackStorm/pybind
pybind/slxos/v17s_1_02/interface/__init__.py
interface._set_homerun
def _set_homerun(self, v, load=False): """ Setter method for homerun, mapped from YANG variable /interface/homerun (list) If this variable is read-only (config: false) in the source YANG file, then _set_homerun is considered as a private method. Backends looking to populate this variable should ...
python
def _set_homerun(self, v, load=False): """ Setter method for homerun, mapped from YANG variable /interface/homerun (list) If this variable is read-only (config: false) in the source YANG file, then _set_homerun is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_homerun", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for homerun, mapped from YANG variable /interface/homerun (list) If this variable is read-only (config: false) in the source YANG file, then _set_homerun is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_homerun() directly. ...
[ "Setter", "method", "for", "homerun", "mapped", "from", "YANG", "variable", "/", "interface", "/", "homerun", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface/__init__.py#L229-L255
train
Sets the value of the Homerun property in the base base.
StackStorm/pybind
pybind/slxos/v17s_1_02/interface/__init__.py
interface._set_tunnel
def _set_tunnel(self, v, load=False): """ Setter method for tunnel, mapped from YANG variable /interface/tunnel (list) If this variable is read-only (config: false) in the source YANG file, then _set_tunnel is considered as a private method. Backends looking to populate this variable should do s...
python
def _set_tunnel(self, v, load=False): """ Setter method for tunnel, mapped from YANG variable /interface/tunnel (list) If this variable is read-only (config: false) in the source YANG file, then _set_tunnel is considered as a private method. Backends looking to populate this variable should do s...
[ "def", "_set_tunnel", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for tunnel, mapped from YANG variable /interface/tunnel (list) If this variable is read-only (config: false) in the source YANG file, then _set_tunnel is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_tunnel() directly.
[ "Setter", "method", "for", "tunnel", "mapped", "from", "YANG", "variable", "/", "interface", "/", "tunnel", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface/__init__.py#L267-L288
train
Set tunnel for the
StackStorm/pybind
pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py
alarm_entry._set_alarm_interval
def _set_alarm_interval(self, v, load=False): """ Setter method for alarm_interval, mapped from YANG variable /rmon/alarm_entry/alarm_interval (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_interval is considered as a private method. Backends looking ...
python
def _set_alarm_interval(self, v, load=False): """ Setter method for alarm_interval, mapped from YANG variable /rmon/alarm_entry/alarm_interval (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_interval is considered as a private method. Backends looking ...
[ "def", "_set_alarm_interval", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for alarm_interval, mapped from YANG variable /rmon/alarm_entry/alarm_interval (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_interval is considered as a private method. Backends looking to populate this variable should do so via calling thi...
[ "Setter", "method", "for", "alarm_interval", "mapped", "from", "YANG", "variable", "/", "rmon", "/", "alarm_entry", "/", "alarm_interval", "(", "uint32", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py#L170-L191
train
Sets the alarm interval for the
StackStorm/pybind
pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py
alarm_entry._set_alarm_sample
def _set_alarm_sample(self, v, load=False): """ Setter method for alarm_sample, mapped from YANG variable /rmon/alarm_entry/alarm_sample (alarm-sample-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_sample is considered as a private method. Backends looki...
python
def _set_alarm_sample(self, v, load=False): """ Setter method for alarm_sample, mapped from YANG variable /rmon/alarm_entry/alarm_sample (alarm-sample-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_sample is considered as a private method. Backends looki...
[ "def", "_set_alarm_sample", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for alarm_sample, mapped from YANG variable /rmon/alarm_entry/alarm_sample (alarm-sample-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_sample is considered as a private method. Backends looking to populate this variable should do so via callin...
[ "Setter", "method", "for", "alarm_sample", "mapped", "from", "YANG", "variable", "/", "rmon", "/", "alarm_entry", "/", "alarm_sample", "(", "alarm", "-", "sample", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py#L203-L224
train
Sets the alarm sample for the
StackStorm/pybind
pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py
alarm_entry._set_alarm_falling_threshold
def _set_alarm_falling_threshold(self, v, load=False): """ Setter method for alarm_falling_threshold, mapped from YANG variable /rmon/alarm_entry/alarm_falling_threshold (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_threshold is considered as a p...
python
def _set_alarm_falling_threshold(self, v, load=False): """ Setter method for alarm_falling_threshold, mapped from YANG variable /rmon/alarm_entry/alarm_falling_threshold (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_threshold is considered as a p...
[ "def", "_set_alarm_falling_threshold", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for alarm_falling_threshold, mapped from YANG variable /rmon/alarm_entry/alarm_falling_threshold (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_threshold is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "alarm_falling_threshold", "mapped", "from", "YANG", "variable", "/", "rmon", "/", "alarm_entry", "/", "alarm_falling_threshold", "(", "uint32", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py#L302-L323
train
Sets the alarm falling threshold for the
StackStorm/pybind
pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py
alarm_entry._set_alarm_falling_event_index
def _set_alarm_falling_event_index(self, v, load=False): """ Setter method for alarm_falling_event_index, mapped from YANG variable /rmon/alarm_entry/alarm_falling_event_index (alarm-falling-event-index-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_...
python
def _set_alarm_falling_event_index(self, v, load=False): """ Setter method for alarm_falling_event_index, mapped from YANG variable /rmon/alarm_entry/alarm_falling_event_index (alarm-falling-event-index-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_...
[ "def", "_set_alarm_falling_event_index", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v"...
Setter method for alarm_falling_event_index, mapped from YANG variable /rmon/alarm_entry/alarm_falling_event_index (alarm-falling-event-index-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_event_index is considered as a private method. Backends looking t...
[ "Setter", "method", "for", "alarm_falling_event_index", "mapped", "from", "YANG", "variable", "/", "rmon", "/", "alarm_entry", "/", "alarm_falling_event_index", "(", "alarm", "-", "falling", "-", "event", "-", "index", "-", "type", ")", "If", "this", "variable",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py#L335-L356
train
Sets the alarm - falling - event - index of the sequence.
StackStorm/pybind
pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py
alarm_entry._set_alarm_owner
def _set_alarm_owner(self, v, load=False): """ Setter method for alarm_owner, mapped from YANG variable /rmon/alarm_entry/alarm_owner (owner-string) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_owner is considered as a private method. Backends looking to pop...
python
def _set_alarm_owner(self, v, load=False): """ Setter method for alarm_owner, mapped from YANG variable /rmon/alarm_entry/alarm_owner (owner-string) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_owner is considered as a private method. Backends looking to pop...
[ "def", "_set_alarm_owner", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for alarm_owner, mapped from YANG variable /rmon/alarm_entry/alarm_owner (owner-string) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_owner is considered as a private method. Backends looking to populate this variable should do so via calling thisOb...
[ "Setter", "method", "for", "alarm_owner", "mapped", "from", "YANG", "variable", "/", "rmon", "/", "alarm_entry", "/", "alarm_owner", "(", "owner", "-", "string", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rmon/alarm_entry/__init__.py#L368-L389
train
Set the alarm owner for the
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2/into/__init__.py
into._set_level2_into_level1
def _set_level2_into_level1(self, v, load=False): """ Setter method for level2_into_level1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2/into/level2_into_level1 (container) ...
python
def _set_level2_into_level1(self, v, load=False): """ Setter method for level2_into_level1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2/into/level2_into_level1 (container) ...
[ "def", "_set_level2_into_level1", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for level2_into_level1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2/into/level2_into_level1 (container) If this variable is read-only (config: false) in the sourc...
[ "Setter", "method", "for", "level2_into_level1", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "isis", "/", "router_isis_cmds_holder", "/", "address_family", "/", "ipv6", "/", "af_ipv6_unicast", "/", "af_ipv6_attributes", "/", "af_...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2/into/__init__.py#L92-L113
train
Sets the value of level - 1 in the hierarchy.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/spanning_tree/__init__.py
spanning_tree._set_ieee_bpdu
def _set_ieee_bpdu(self, v, load=False): """ Setter method for ieee_bpdu, mapped from YANG variable /rbridge_id/spanning_tree/ieee_bpdu (container) If this variable is read-only (config: false) in the source YANG file, then _set_ieee_bpdu is considered as a private method. Backends looking to popula...
python
def _set_ieee_bpdu(self, v, load=False): """ Setter method for ieee_bpdu, mapped from YANG variable /rbridge_id/spanning_tree/ieee_bpdu (container) If this variable is read-only (config: false) in the source YANG file, then _set_ieee_bpdu is considered as a private method. Backends looking to popula...
[ "def", "_set_ieee_bpdu", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for ieee_bpdu, mapped from YANG variable /rbridge_id/spanning_tree/ieee_bpdu (container) If this variable is read-only (config: false) in the source YANG file, then _set_ieee_bpdu is considered as a private method. Backends looking to populate this variable should do so via calling thisObj...
[ "Setter", "method", "for", "ieee_bpdu", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "spanning_tree", "/", "ieee_bpdu", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "th...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/spanning_tree/__init__.py#L92-L113
train
Sets the ieee_bpdu variable in the tree.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_firmware_ext_rpc/__init__.py
brocade_firmware_ext._set_show_firmware_version
def _set_show_firmware_version(self, v, load=False): """ Setter method for show_firmware_version, mapped from YANG variable /brocade_firmware_ext_rpc/show_firmware_version (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_firmware_version is considered as a priv...
python
def _set_show_firmware_version(self, v, load=False): """ Setter method for show_firmware_version, mapped from YANG variable /brocade_firmware_ext_rpc/show_firmware_version (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_firmware_version is considered as a priv...
[ "def", "_set_show_firmware_version", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for show_firmware_version, mapped from YANG variable /brocade_firmware_ext_rpc/show_firmware_version (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_firmware_version is considered as a private method. Backends looking to populate this variable should...
[ "Setter", "method", "for", "show_firmware_version", "mapped", "from", "YANG", "variable", "/", "brocade_firmware_ext_rpc", "/", "show_firmware_version", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_firmware_ext_rpc/__init__.py#L98-L121
train
Sets the show_firmware_version field of the .
StackStorm/pybind
pybind/slxos/v17s_1_02/police_remark_profile/__init__.py
police_remark_profile._set_action
def _set_action(self, v, load=False): """ Setter method for action, mapped from YANG variable /police_remark_profile/action (list) 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 sho...
python
def _set_action(self, v, load=False): """ Setter method for action, mapped from YANG variable /police_remark_profile/action (list) 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 sho...
[ "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 /police_remark_profile/action (list) 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() di...
[ "Setter", "method", "for", "action", "mapped", "from", "YANG", "variable", "/", "police_remark_profile", "/", "action", "(", "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/police_remark_profile/__init__.py#L131-L152
train
Set action for the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/__init__.py
ipv6_local_anycast_gateway._set_load_balancing
def _set_load_balancing(self, v, load=False): """ Setter method for load_balancing, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/load_balancing (container) If this variable is read-only (config: false) in the source YANG file, then _set_load_balancing is considered ...
python
def _set_load_balancing(self, v, load=False): """ Setter method for load_balancing, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/load_balancing (container) If this variable is read-only (config: false) in the source YANG file, then _set_load_balancing is considered ...
[ "def", "_set_load_balancing", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for load_balancing, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/load_balancing (container) If this variable is read-only (config: false) in the source YANG file, then _set_load_balancing is considered as a private method. Backends looking to populate this...
[ "Setter", "method", "for", "load_balancing", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "interface", "/", "ve", "/", "ipv6", "/", "ipv6_local_anycast_gateway", "/", "load_balancing", "(", "container", ")", "If", "this", "variable", "is", "read...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/__init__.py#L201-L222
train
Sets the load - balancing property of the .
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/__init__.py
ipv6_local_anycast_gateway._set_ipv6_track
def _set_ipv6_track(self, v, load=False): """ Setter method for ipv6_track, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/ipv6_track (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_track is considered as a private ...
python
def _set_ipv6_track(self, v, load=False): """ Setter method for ipv6_track, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/ipv6_track (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_track is considered as a private ...
[ "def", "_set_ipv6_track", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for ipv6_track, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/ipv6_track (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_track is considered as a private method. Backends looking to populate this variable sh...
[ "Setter", "method", "for", "ipv6_track", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "interface", "/", "ve", "/", "ipv6", "/", "ipv6_local_anycast_gateway", "/", "ipv6_track", "(", "container", ")", "If", "this", "variable", "is", "read", "-"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/__init__.py#L234-L255
train
Sets the ipv6_track property of the
idlesign/steampak
steampak/libsteam/resources/user.py
User.name
def name(self): """User name (the same name as on the users community profile page). :rtype: str """ uid = self.user_id if self._iface_user.get_id() == uid: return self._iface.get_my_name() return self._iface.get_name(uid)
python
def name(self): """User name (the same name as on the users community profile page). :rtype: str """ uid = self.user_id if self._iface_user.get_id() == uid: return self._iface.get_my_name() return self._iface.get_name(uid)
[ "def", "name", "(", "self", ")", ":", "uid", "=", "self", ".", "user_id", "if", "self", ".", "_iface_user", ".", "get_id", "(", ")", "==", "uid", ":", "return", "self", ".", "_iface", ".", "get_my_name", "(", ")", "return", "self", ".", "_iface", "...
User name (the same name as on the users community profile page). :rtype: str
[ "User", "name", "(", "the", "same", "name", "as", "on", "the", "users", "community", "profile", "page", ")", "." ]
cb3f2c737e272b0360802d947e388df7e34f50f3
https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/user.py#L52-L62
train
Return the name of the user.
idlesign/steampak
steampak/libsteam/resources/user.py
User.name_history
def name_history(self): """A list of user names (as user can change those occasionally). :rtype: list """ history = [] idx = 0 get_history = self._iface.get_name_history uid = self.user_id while True: name = get_history(uid, idx) ...
python
def name_history(self): """A list of user names (as user can change those occasionally). :rtype: list """ history = [] idx = 0 get_history = self._iface.get_name_history uid = self.user_id while True: name = get_history(uid, idx) ...
[ "def", "name_history", "(", "self", ")", ":", "history", "=", "[", "]", "idx", "=", "0", "get_history", "=", "self", ".", "_iface", ".", "get_name_history", "uid", "=", "self", ".", "user_id", "while", "True", ":", "name", "=", "get_history", "(", "uid...
A list of user names (as user can change those occasionally). :rtype: list
[ "A", "list", "of", "user", "names", "(", "as", "user", "can", "change", "those", "occasionally", ")", "." ]
cb3f2c737e272b0360802d947e388df7e34f50f3
https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/user.py#L65-L85
train
A list of user names as user can change those occasionally.
idlesign/steampak
steampak/libsteam/resources/user.py
User.get_state
def get_state(self, as_str=False): """Returns user state. See ``UserState``. :param bool as_str: Return human-friendly state name instead of an ID. :rtype: int|str """ uid = self.user_id if self._iface_user.get_id() == uid: result = self._iface.get_my_state...
python
def get_state(self, as_str=False): """Returns user state. See ``UserState``. :param bool as_str: Return human-friendly state name instead of an ID. :rtype: int|str """ uid = self.user_id if self._iface_user.get_id() == uid: result = self._iface.get_my_state...
[ "def", "get_state", "(", "self", ",", "as_str", "=", "False", ")", ":", "uid", "=", "self", ".", "user_id", "if", "self", ".", "_iface_user", ".", "get_id", "(", ")", "==", "uid", ":", "result", "=", "self", ".", "_iface", ".", "get_my_state", "(", ...
Returns user state. See ``UserState``. :param bool as_str: Return human-friendly state name instead of an ID. :rtype: int|str
[ "Returns", "user", "state", ".", "See", "UserState", "." ]
cb3f2c737e272b0360802d947e388df7e34f50f3
https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/user.py#L95-L113
train
Returns the state of the user.
idlesign/steampak
steampak/libsteam/resources/user.py
User.has_friends
def has_friends(self, flt=FriendFilter.ALL): """Indicated whether the user has friends, who meet the given criteria (filter). :param int flt: Filter value from FriendFilter. Filters can be combined with `|`. :rtype: bool """ return self._iface.get_has_friend(self.user_id, flt)
python
def has_friends(self, flt=FriendFilter.ALL): """Indicated whether the user has friends, who meet the given criteria (filter). :param int flt: Filter value from FriendFilter. Filters can be combined with `|`. :rtype: bool """ return self._iface.get_has_friend(self.user_id, flt)
[ "def", "has_friends", "(", "self", ",", "flt", "=", "FriendFilter", ".", "ALL", ")", ":", "return", "self", ".", "_iface", ".", "get_has_friend", "(", "self", ".", "user_id", ",", "flt", ")" ]
Indicated whether the user has friends, who meet the given criteria (filter). :param int flt: Filter value from FriendFilter. Filters can be combined with `|`. :rtype: bool
[ "Indicated", "whether", "the", "user", "has", "friends", "who", "meet", "the", "given", "criteria", "(", "filter", ")", "." ]
cb3f2c737e272b0360802d947e388df7e34f50f3
https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/user.py#L131-L137
train
Indicated whether the user has friends who meet the given criteria.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/clock/__init__.py
clock._set_timezone
def _set_timezone(self, v, load=False): """ Setter method for timezone, mapped from YANG variable /rbridge_id/clock/timezone (common-def:timezone) If this variable is read-only (config: false) in the source YANG file, then _set_timezone is considered as a private method. Backends looking to populate...
python
def _set_timezone(self, v, load=False): """ Setter method for timezone, mapped from YANG variable /rbridge_id/clock/timezone (common-def:timezone) If this variable is read-only (config: false) in the source YANG file, then _set_timezone is considered as a private method. Backends looking to populate...
[ "def", "_set_timezone", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for timezone, mapped from YANG variable /rbridge_id/clock/timezone (common-def:timezone) If this variable is read-only (config: false) in the source YANG file, then _set_timezone is considered as a private method. Backends looking to populate this variable should do so via calling thisObj....
[ "Setter", "method", "for", "timezone", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "clock", "/", "timezone", "(", "common", "-", "def", ":", "timezone", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "fals...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/clock/__init__.py#L91-L112
train
Initialize the language of the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/router/ospf/max_metric/router_lsa/__init__.py
router_lsa._set_external_lsa
def _set_external_lsa(self, v, load=False): """ Setter method for external_lsa, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/external_lsa (container) If this variable is read-only (config: false) in the source YANG file, then _set_external_lsa is considered as a private me...
python
def _set_external_lsa(self, v, load=False): """ Setter method for external_lsa, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/external_lsa (container) If this variable is read-only (config: false) in the source YANG file, then _set_external_lsa is considered as a private me...
[ "def", "_set_external_lsa", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for external_lsa, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/external_lsa (container) If this variable is read-only (config: false) in the source YANG file, then _set_external_lsa is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "external_lsa", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "ospf", "/", "max_metric", "/", "router_lsa", "/", "external_lsa", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "on...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/max_metric/router_lsa/__init__.py#L166-L187
train
Set the value of external_lsa in the base base
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/router/ospf/max_metric/router_lsa/__init__.py
router_lsa._set_on_startup
def _set_on_startup(self, v, load=False): """ Setter method for on_startup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup (container) If this variable is read-only (config: false) in the source YANG file, then _set_on_startup is considered as a private method. Ba...
python
def _set_on_startup(self, v, load=False): """ Setter method for on_startup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup (container) If this variable is read-only (config: false) in the source YANG file, then _set_on_startup is considered as a private method. Ba...
[ "def", "_set_on_startup", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for on_startup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup (container) If this variable is read-only (config: false) in the source YANG file, then _set_on_startup is considered as a private method. Backends looking to populate this variable should do...
[ "Setter", "method", "for", "on_startup", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "ospf", "/", "max_metric", "/", "router_lsa", "/", "on_startup", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/max_metric/router_lsa/__init__.py#L265-L286
train
Sets the on - startup property of the
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/__init__.py
mpls_cmds_holder._set_dynamic_bypass
def _set_dynamic_bypass(self, v, load=False): """ Setter method for dynamic_bypass, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/dynamic_bypass (container) If this variable is read-only (config: false) in the source YANG file, then _set_dynamic_bypass is considered as a private ...
python
def _set_dynamic_bypass(self, v, load=False): """ Setter method for dynamic_bypass, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/dynamic_bypass (container) If this variable is read-only (config: false) in the source YANG file, then _set_dynamic_bypass is considered as a private ...
[ "def", "_set_dynamic_bypass", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for dynamic_bypass, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/dynamic_bypass (container) If this variable is read-only (config: false) in the source YANG file, then _set_dynamic_bypass is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "dynamic_bypass", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "dynamic_bypass", "(", "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/__init__.py#L281-L302
train
Sets the dynamic bypass configuration for the .
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fortygigabitethernet/rmon/collection/__init__.py
collection._set_ether_stats_entry
def _set_ether_stats_entry(self, v, load=False): """ Setter method for ether_stats_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/ether_stats_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_ether_stats_entry is considered as...
python
def _set_ether_stats_entry(self, v, load=False): """ Setter method for ether_stats_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/ether_stats_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_ether_stats_entry is considered as...
[ "def", "_set_ether_stats_entry", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for ether_stats_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/ether_stats_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_ether_stats_entry is considered as a private method. Backends looking to populate this vari...
[ "Setter", "method", "for", "ether_stats_entry", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fortygigabitethernet", "/", "rmon", "/", "collection", "/", "ether_stats_entry", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fortygigabitethernet/rmon/collection/__init__.py#L94-L115
train
Set the ether_stats_entry property of the ether_stats_list
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fortygigabitethernet/rmon/collection/__init__.py
collection._set_history_control_entry
def _set_history_control_entry(self, v, load=False): """ Setter method for history_control_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/history_control_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_history_control_entry ...
python
def _set_history_control_entry(self, v, load=False): """ Setter method for history_control_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/history_control_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_history_control_entry ...
[ "def", "_set_history_control_entry", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for history_control_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/history_control_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_history_control_entry is considered as a private method. Backends looking to popula...
[ "Setter", "method", "for", "history_control_entry", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fortygigabitethernet", "/", "rmon", "/", "collection", "/", "history_control_entry", "(", "list", ")", "If", "this", "variable", "is", "read", "-", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fortygigabitethernet/rmon/collection/__init__.py#L127-L148
train
Sets the history control entry for the
inveniosoftware/invenio-access
invenio_access/factory.py
action_factory
def action_factory(name, parameter=False): """Factory method for creating new actions (w/wo parameters). :param name: Name of the action (prefix with your module name). :param parameter: Determines if action should take parameters or not. Default is ``False``. """ if parameter: retu...
python
def action_factory(name, parameter=False): """Factory method for creating new actions (w/wo parameters). :param name: Name of the action (prefix with your module name). :param parameter: Determines if action should take parameters or not. Default is ``False``. """ if parameter: retu...
[ "def", "action_factory", "(", "name", ",", "parameter", "=", "False", ")", ":", "if", "parameter", ":", "return", "partial", "(", "ParameterizedActionNeed", ",", "name", ")", "else", ":", "return", "ActionNeed", "(", "name", ")" ]
Factory method for creating new actions (w/wo parameters). :param name: Name of the action (prefix with your module name). :param parameter: Determines if action should take parameters or not. Default is ``False``.
[ "Factory", "method", "for", "creating", "new", "actions", "(", "w", "/", "wo", "parameters", ")", "." ]
3b033a4bdc110eb2f7e9f08f0744a780884bfc80
https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/factory.py#L20-L30
train
Factory method for creating new actions.
inveniosoftware/invenio-access
invenio_access/loaders.py
load_permissions_on_identity_loaded
def load_permissions_on_identity_loaded(sender, identity): """Add system roles "Needs" to users' identities. Every user gets the **any_user** Need. Authenticated users get in addition the **authenticated_user** Need. """ identity.provides.add( any_user ) # if the user is not anonymo...
python
def load_permissions_on_identity_loaded(sender, identity): """Add system roles "Needs" to users' identities. Every user gets the **any_user** Need. Authenticated users get in addition the **authenticated_user** Need. """ identity.provides.add( any_user ) # if the user is not anonymo...
[ "def", "load_permissions_on_identity_loaded", "(", "sender", ",", "identity", ")", ":", "identity", ".", "provides", ".", "add", "(", "any_user", ")", "# if the user is not anonymous", "if", "current_user", ".", "is_authenticated", ":", "# Add the need provided to authent...
Add system roles "Needs" to users' identities. Every user gets the **any_user** Need. Authenticated users get in addition the **authenticated_user** Need.
[ "Add", "system", "roles", "Needs", "to", "users", "identities", "." ]
3b033a4bdc110eb2f7e9f08f0744a780884bfc80
https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/loaders.py#L15-L29
train
Add system roles Requires to users identities.
StackStorm/pybind
pybind/nos/v6_0_2f/interface/port_channel/__init__.py
port_channel._set_load_balance
def _set_load_balance(self, v, load=False): """ Setter method for load_balance, mapped from YANG variable /interface/port_channel/load_balance (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance is considered as a private method. Backends looki...
python
def _set_load_balance(self, v, load=False): """ Setter method for load_balance, mapped from YANG variable /interface/port_channel/load_balance (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance is considered as a private method. Backends looki...
[ "def", "_set_load_balance", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for load_balance, mapped from YANG variable /interface/port_channel/load_balance (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance is considered as a private method. Backends looking to populate this variable should do so via callin...
[ "Setter", "method", "for", "load_balance", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "load_balance", "(", "enumeration", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/__init__.py#L772-L793
train
Sets the load balance of the node.
inveniosoftware/invenio-access
invenio_access/alembic/dbe499bfda43_prevent_null_in_actionusers_for_.py
upgrade
def upgrade(): """Upgrade database.""" op.drop_constraint(u'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.alter_column('access_...
python
def upgrade(): """Upgrade database.""" op.drop_constraint(u'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.alter_column('access_...
[ "def", "upgrade", "(", ")", ":", "op", ".", "drop_constraint", "(", "u'fk_access_actionsusers_user_id_accounts_user'", ",", "'access_actionsusers'", ",", "type_", "=", "'foreignkey'", ")", "op", ".", "drop_index", "(", "op", ".", "f", "(", "'ix_access_actionsusers_u...
Upgrade database.
[ "Upgrade", "database", "." ]
3b033a4bdc110eb2f7e9f08f0744a780884bfc80
https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/alembic/dbe499bfda43_prevent_null_in_actionusers_for_.py#L21-L35
train
Drop and create the user_id column in the database.
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_tm_stats_rpc/__init__.py
brocade_tm_stats._set_clear_tm_voq_stat_ing_all_egr_all
def _set_clear_tm_voq_stat_ing_all_egr_all(self, v, load=False): """ Setter method for clear_tm_voq_stat_ing_all_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_ing_all_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_...
python
def _set_clear_tm_voq_stat_ing_all_egr_all(self, v, load=False): """ Setter method for clear_tm_voq_stat_ing_all_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_ing_all_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_...
[ "def", "_set_clear_tm_voq_stat_ing_all_egr_all", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(...
Setter method for clear_tm_voq_stat_ing_all_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_ing_all_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_stat_ing_all_egr_all is considered as a private method. Backends looking ...
[ "Setter", "method", "for", "clear_tm_voq_stat_ing_all_egr_all", "mapped", "from", "YANG", "variable", "/", "brocade_tm_stats_rpc", "/", "clear_tm_voq_stat_ing_all_egr_all", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "fa...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_tm_stats_rpc/__init__.py#L100-L121
train
Sets the flag for clear_tm_stat_ing_all_egr_all
StackStorm/pybind
pybind/slxos/v17r_1_01a/brocade_tm_stats_rpc/__init__.py
brocade_tm_stats._set_clear_tm_voq_stat_slot_id_egr_all
def _set_clear_tm_voq_stat_slot_id_egr_all(self, v, load=False): """ Setter method for clear_tm_voq_stat_slot_id_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_slot_id_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_...
python
def _set_clear_tm_voq_stat_slot_id_egr_all(self, v, load=False): """ Setter method for clear_tm_voq_stat_slot_id_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_slot_id_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_...
[ "def", "_set_clear_tm_voq_stat_slot_id_egr_all", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(...
Setter method for clear_tm_voq_stat_slot_id_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_slot_id_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_stat_slot_id_egr_all is considered as a private method. Backends looking ...
[ "Setter", "method", "for", "clear_tm_voq_stat_slot_id_egr_all", "mapped", "from", "YANG", "variable", "/", "brocade_tm_stats_rpc", "/", "clear_tm_voq_stat_slot_id_egr_all", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "fa...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_tm_stats_rpc/__init__.py#L166-L187
train
Sets the flag for clear_tm_stat_slot_id_egr_all
StackStorm/pybind
pybind/nos/v6_0_2f/nas/__init__.py
nas._set_auto_qos
def _set_auto_qos(self, v, load=False): """ Setter method for auto_qos, mapped from YANG variable /nas/auto_qos (container) If this variable is read-only (config: false) in the source YANG file, then _set_auto_qos is considered as a private method. Backends looking to populate this variable should ...
python
def _set_auto_qos(self, v, load=False): """ Setter method for auto_qos, mapped from YANG variable /nas/auto_qos (container) If this variable is read-only (config: false) in the source YANG file, then _set_auto_qos is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_auto_qos", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for auto_qos, mapped from YANG variable /nas/auto_qos (container) If this variable is read-only (config: false) in the source YANG file, then _set_auto_qos is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_auto_qos() directl...
[ "Setter", "method", "for", "auto_qos", "mapped", "from", "YANG", "variable", "/", "nas", "/", "auto_qos", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/nas/__init__.py#L97-L121
train
Sets the auto - qos of the sequence.
StackStorm/pybind
pybind/nos/v6_0_2f/nas/__init__.py
nas._set_server_ip
def _set_server_ip(self, v, load=False): """ Setter method for server_ip, mapped from YANG variable /nas/server_ip (list) If this variable is read-only (config: false) in the source YANG file, then _set_server_ip is considered as a private method. Backends looking to populate this variable should ...
python
def _set_server_ip(self, v, load=False): """ Setter method for server_ip, mapped from YANG variable /nas/server_ip (list) If this variable is read-only (config: false) in the source YANG file, then _set_server_ip is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_server_ip", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for server_ip, mapped from YANG variable /nas/server_ip (list) If this variable is read-only (config: false) in the source YANG file, then _set_server_ip is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_server_ip() directly...
[ "Setter", "method", "for", "server_ip", "mapped", "from", "YANG", "variable", "/", "nas", "/", "server_ip", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/nas/__init__.py#L133-L154
train
Sets the server IP of the based on the server_ip property.
StackStorm/pybind
pybind/slxos/v17s_1_02/bridge_domain_state/bridge_domain_list/outer_vlan_list/tagged_ports_list/__init__.py
tagged_ports_list._set_lif_main_intf_type
def _set_lif_main_intf_type(self, v, load=False): """ Setter method for lif_main_intf_type, mapped from YANG variable /bridge_domain_state/bridge_domain_list/outer_vlan_list/tagged_ports_list/lif_main_intf_type (nsm-dcm-lif-main-intf-type) If this variable is read-only (config: false) in the source YANG...
python
def _set_lif_main_intf_type(self, v, load=False): """ Setter method for lif_main_intf_type, mapped from YANG variable /bridge_domain_state/bridge_domain_list/outer_vlan_list/tagged_ports_list/lif_main_intf_type (nsm-dcm-lif-main-intf-type) If this variable is read-only (config: false) in the source YANG...
[ "def", "_set_lif_main_intf_type", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for lif_main_intf_type, mapped from YANG variable /bridge_domain_state/bridge_domain_list/outer_vlan_list/tagged_ports_list/lif_main_intf_type (nsm-dcm-lif-main-intf-type) If this variable is read-only (config: false) in the source YANG file, then _set_lif_main_intf_type is considered as a private...
[ "Setter", "method", "for", "lif_main_intf_type", "mapped", "from", "YANG", "variable", "/", "bridge_domain_state", "/", "bridge_domain_list", "/", "outer_vlan_list", "/", "tagged_ports_list", "/", "lif_main_intf_type", "(", "nsm", "-", "dcm", "-", "lif", "-", "main"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/bridge_domain_state/bridge_domain_list/outer_vlan_list/tagged_ports_list/__init__.py#L185-L208
train
Sets the LIF Main interface type based on the LIF main interface type.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/__init__.py
intf_isis._set_interface_isis
def _set_interface_isis(self, v, load=False): """ Setter method for interface_isis, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_isis is considered as a private m...
python
def _set_interface_isis(self, v, load=False): """ Setter method for interface_isis, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_isis is considered as a private m...
[ "def", "_set_interface_isis", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for interface_isis, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_isis is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "interface_isis", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "intf_isis", "/", "interface_isis", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/intf_isis/__init__.py#L92-L113
train
Set the value of interface_isis mapped from YANG variable / routing_system / interface_isis / interface_isis
StackStorm/pybind
pybind/nos/v6_0_2f/rmon/__init__.py
rmon._set_event_entry
def _set_event_entry(self, v, load=False): """ Setter method for event_entry, mapped from YANG variable /rmon/event_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_event_entry is considered as a private method. Backends looking to populate this variable ...
python
def _set_event_entry(self, v, load=False): """ Setter method for event_entry, mapped from YANG variable /rmon/event_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_event_entry is considered as a private method. Backends looking to populate this variable ...
[ "def", "_set_event_entry", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for event_entry, mapped from YANG variable /rmon/event_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_event_entry is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_event_entry()...
[ "Setter", "method", "for", "event_entry", "mapped", "from", "YANG", "variable", "/", "rmon", "/", "event_entry", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rmon/__init__.py#L94-L115
train
Set event entry for the
StackStorm/pybind
pybind/nos/v6_0_2f/rmon/__init__.py
rmon._set_alarm_entry
def _set_alarm_entry(self, v, load=False): """ Setter method for alarm_entry, mapped from YANG variable /rmon/alarm_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_entry is considered as a private method. Backends looking to populate this variable ...
python
def _set_alarm_entry(self, v, load=False): """ Setter method for alarm_entry, mapped from YANG variable /rmon/alarm_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_entry is considered as a private method. Backends looking to populate this variable ...
[ "def", "_set_alarm_entry", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for alarm_entry, mapped from YANG variable /rmon/alarm_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_entry is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_alarm_entry()...
[ "Setter", "method", "for", "alarm_entry", "mapped", "from", "YANG", "variable", "/", "rmon", "/", "alarm_entry", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rmon/__init__.py#L127-L148
train
Set the alarm entry for the
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_nameserver_rpc/__init__.py
brocade_nameserver._set_get_nameserver_detail
def _set_get_nameserver_detail(self, v, load=False): """ Setter method for get_nameserver_detail, mapped from YANG variable /brocade_nameserver_rpc/get_nameserver_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_nameserver_detail is considered as a privat...
python
def _set_get_nameserver_detail(self, v, load=False): """ Setter method for get_nameserver_detail, mapped from YANG variable /brocade_nameserver_rpc/get_nameserver_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_nameserver_detail is considered as a privat...
[ "def", "_set_get_nameserver_detail", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for get_nameserver_detail, mapped from YANG variable /brocade_nameserver_rpc/get_nameserver_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_nameserver_detail is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "get_nameserver_detail", "mapped", "from", "YANG", "variable", "/", "brocade_nameserver_rpc", "/", "get_nameserver_detail", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_nameserver_rpc/__init__.py#L189-L213
train
Set the get_nameserver_detail variable.
StackStorm/pybind
pybind/slxos/v17r_2_00/interface/port_channel/qos/flowcontrol/__init__.py
flowcontrol._set_pfc_threshold
def _set_pfc_threshold(self, v, load=False): """ Setter method for pfc_threshold, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc_threshold (container) If this variable is read-only (config: false) in the source YANG file, then _set_pfc_threshold is considered as a private meth...
python
def _set_pfc_threshold(self, v, load=False): """ Setter method for pfc_threshold, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc_threshold (container) If this variable is read-only (config: false) in the source YANG file, then _set_pfc_threshold is considered as a private meth...
[ "def", "_set_pfc_threshold", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for pfc_threshold, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc_threshold (container) If this variable is read-only (config: false) in the source YANG file, then _set_pfc_threshold is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "pfc_threshold", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "qos", "/", "flowcontrol", "/", "pfc_threshold", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "c...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/qos/flowcontrol/__init__.py#L197-L218
train
Sets the pfc_threshold property of the
StackStorm/pybind
pybind/slxos/v17r_1_01a/interface/ethernet/delay_link_event/__init__.py
delay_link_event._set_delay_link
def _set_delay_link(self, v, load=False): """ Setter method for delay_link, mapped from YANG variable /interface/ethernet/delay_link_event/delay_link (container) If this variable is read-only (config: false) in the source YANG file, then _set_delay_link is considered as a private method. Backends lo...
python
def _set_delay_link(self, v, load=False): """ Setter method for delay_link, mapped from YANG variable /interface/ethernet/delay_link_event/delay_link (container) If this variable is read-only (config: false) in the source YANG file, then _set_delay_link is considered as a private method. Backends lo...
[ "def", "_set_delay_link", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for delay_link, mapped from YANG variable /interface/ethernet/delay_link_event/delay_link (container) If this variable is read-only (config: false) in the source YANG file, then _set_delay_link is considered as a private method. Backends looking to populate this variable should do so via c...
[ "Setter", "method", "for", "delay_link", "mapped", "from", "YANG", "variable", "/", "interface", "/", "ethernet", "/", "delay_link_event", "/", "delay_link", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "fal...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface/ethernet/delay_link_event/__init__.py#L92-L113
train
Sets the delay link of the
StackStorm/pybind
pybind/slxos/v17r_2_00/bridge_domain/__init__.py
bridge_domain._set_peer
def _set_peer(self, v, load=False): """ Setter method for peer, mapped from YANG variable /bridge_domain/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 vi...
python
def _set_peer(self, v, load=False): """ Setter method for peer, mapped from YANG variable /bridge_domain/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 vi...
[ "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 /bridge_domain/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", "/", "bridge_domain", "/", "peer", "(", "list", ")", "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/bridge_domain/__init__.py#L266-L287
train
Set the peer of the based on ip address.
StackStorm/pybind
pybind/slxos/v17r_2_00/bridge_domain/__init__.py
bridge_domain._set_router_interface
def _set_router_interface(self, v, load=False): """ Setter method for router_interface, mapped from YANG variable /bridge_domain/router_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_router_interface is considered as a private method. Backends looki...
python
def _set_router_interface(self, v, load=False): """ Setter method for router_interface, mapped from YANG variable /bridge_domain/router_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_router_interface is considered as a private method. Backends looki...
[ "def", "_set_router_interface", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for router_interface, mapped from YANG variable /bridge_domain/router_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_router_interface is considered as a private method. Backends looking to populate this variable should do so via calling th...
[ "Setter", "method", "for", "router_interface", "mapped", "from", "YANG", "variable", "/", "bridge_domain", "/", "router_interface", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/bridge_domain/__init__.py#L336-L357
train
Set the router_interface of the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/vrf/address_family/ipv6/__init__.py
ipv6._set_unicast
def _set_unicast(self, v, load=False): """ Setter method for unicast, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_unicast is considered as a private method. Backends looking to popu...
python
def _set_unicast(self, v, load=False): """ Setter method for unicast, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_unicast is considered as a private method. Backends looking to popu...
[ "def", "_set_unicast", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for unicast, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_unicast is considered as a private method. Backends looking to populate this variable should do so via calling thi...
[ "Setter", "method", "for", "unicast", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "vrf", "/", "address_family", "/", "ipv6", "/", "unicast", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/vrf/address_family/ipv6/__init__.py#L92-L113
train
Set the unicast address of the node.
StackStorm/pybind
pybind/slxos/v17r_1_01a/cpu_state/__init__.py
cpu_state._set_history
def _set_history(self, v, load=False): """ Setter method for history, mapped from YANG variable /cpu_state/history (container) If this variable is read-only (config: false) in the source YANG file, then _set_history is considered as a private method. Backends looking to populate this variable should...
python
def _set_history(self, v, load=False): """ Setter method for history, mapped from YANG variable /cpu_state/history (container) If this variable is read-only (config: false) in the source YANG file, then _set_history is considered as a private method. Backends looking to populate this variable should...
[ "def", "_set_history", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for history, mapped from YANG variable /cpu_state/history (container) If this variable is read-only (config: false) in the source YANG file, then _set_history is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_history() direc...
[ "Setter", "method", "for", "history", "mapped", "from", "YANG", "variable", "/", "cpu_state", "/", "history", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "fi...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cpu_state/__init__.py#L141-L164
train
Sets the history property of the
StackStorm/pybind
pybind/slxos/v17r_1_01a/cpu_state/__init__.py
cpu_state._set_top
def _set_top(self, v, load=False): """ Setter method for top, mapped from YANG variable /cpu_state/top (container) If this variable is read-only (config: false) in the source YANG file, then _set_top is considered as a private method. Backends looking to populate this variable should do so via c...
python
def _set_top(self, v, load=False): """ Setter method for top, mapped from YANG variable /cpu_state/top (container) If this variable is read-only (config: false) in the source YANG file, then _set_top is considered as a private method. Backends looking to populate this variable should do so via c...
[ "def", "_set_top", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", "...
Setter method for top, mapped from YANG variable /cpu_state/top (container) If this variable is read-only (config: false) in the source YANG file, then _set_top is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_top() directly. YANG D...
[ "Setter", "method", "for", "top", "mapped", "from", "YANG", "variable", "/", "cpu_state", "/", "top", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "file", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cpu_state/__init__.py#L178-L201
train
Sets the top CPU utilization of the .
StackStorm/pybind
pybind/slxos/v17r_1_01a/cpu_state/__init__.py
cpu_state._set_all_partition
def _set_all_partition(self, v, load=False): """ Setter method for all_partition, mapped from YANG variable /cpu_state/all_partition (container) If this variable is read-only (config: false) in the source YANG file, then _set_all_partition is considered as a private method. Backends looking to popul...
python
def _set_all_partition(self, v, load=False): """ Setter method for all_partition, mapped from YANG variable /cpu_state/all_partition (container) If this variable is read-only (config: false) in the source YANG file, then _set_all_partition is considered as a private method. Backends looking to popul...
[ "def", "_set_all_partition", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for all_partition, mapped from YANG variable /cpu_state/all_partition (container) If this variable is read-only (config: false) in the source YANG file, then _set_all_partition is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
[ "Setter", "method", "for", "all_partition", "mapped", "from", "YANG", "variable", "/", "cpu_state", "/", "all_partition", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cpu_state/__init__.py#L215-L238
train
Sets the all - partition of the
StackStorm/pybind
pybind/slxos/v17r_1_01a/cpu_state/__init__.py
cpu_state._set_process_list
def _set_process_list(self, v, load=False): """ Setter method for process_list, mapped from YANG variable /cpu_state/process_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_process_list is considered as a private method. Backends looking to populate ...
python
def _set_process_list(self, v, load=False): """ Setter method for process_list, mapped from YANG variable /cpu_state/process_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_process_list is considered as a private method. Backends looking to populate ...
[ "def", "_set_process_list", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for process_list, mapped from YANG variable /cpu_state/process_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_process_list is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_...
[ "Setter", "method", "for", "process_list", "mapped", "from", "YANG", "variable", "/", "cpu_state", "/", "process_list", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YA...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cpu_state/__init__.py#L252-L275
train
Sets the process_list property of the
BD2KGenomics/protect
setup.py
check_tool_version
def check_tool_version(tool, required_version, blacklisted_versions=None, binary=False): """ This will ensure that the required_version of `tool` is at least `required_version`. :param str tool: The tool under review :param str required_version: The version of the tool required by ProTECT :param lis...
python
def check_tool_version(tool, required_version, blacklisted_versions=None, binary=False): """ This will ensure that the required_version of `tool` is at least `required_version`. :param str tool: The tool under review :param str required_version: The version of the tool required by ProTECT :param lis...
[ "def", "check_tool_version", "(", "tool", ",", "required_version", ",", "blacklisted_versions", "=", "None", ",", "binary", "=", "False", ")", ":", "if", "binary", ":", "try", ":", "installed_version", "=", "subprocess", ".", "check_output", "(", "[", "tool", ...
This will ensure that the required_version of `tool` is at least `required_version`. :param str tool: The tool under review :param str required_version: The version of the tool required by ProTECT :param list blacklisted_versions: Version of the tool blacklisted by ProTECT :param bool binary: Is the too...
[ "This", "will", "ensure", "that", "the", "required_version", "of", "tool", "is", "at", "least", "required_version", ".", ":", "param", "str", "tool", ":", "The", "tool", "under", "review", ":", "param", "str", "required_version", ":", "The", "version", "of",...
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/setup.py#L38-L78
train
Check that the required_version of the tool is at least required_version.
StackStorm/pybind
pybind/slxos/v17r_1_01a/interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/__init__.py
get_untagged_vlan_dummy._set_untagged
def _set_untagged(self, v, load=False): """ Setter method for untagged, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged (container) If this variable is read-only (config: false...
python
def _set_untagged(self, v, load=False): """ Setter method for untagged, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged (container) If this variable is read-only (config: false...
[ "def", "_set_untagged", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for untagged, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged (container) If this variable is read-only (config: false) in the source YANG file, then _set_untagged is...
[ "Setter", "method", "for", "untagged", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "logical_interface", "/", "port_channel", "/", "pc_cmd_container_dummy", "/", "service_instance_vlan_cmds_dummy_container", "/", "get_untagged_vlan_dummy...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/__init__.py#L92-L113
train
Sets the untagged flag of the node.
StackStorm/pybind
pybind/slxos/v17s_1_02/overlay_gateway/map_/__init__.py
map_._set_vlan_and_bd
def _set_vlan_and_bd(self, v, load=False): """ Setter method for vlan_and_bd, mapped from YANG variable /overlay_gateway/map/vlan_and_bd (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_and_bd is considered as a private method. Backends looking to pop...
python
def _set_vlan_and_bd(self, v, load=False): """ Setter method for vlan_and_bd, mapped from YANG variable /overlay_gateway/map/vlan_and_bd (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_and_bd is considered as a private method. Backends looking to pop...
[ "def", "_set_vlan_and_bd", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for vlan_and_bd, mapped from YANG variable /overlay_gateway/map/vlan_and_bd (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_and_bd is considered as a private method. Backends looking to populate this variable should do so via calling thisOb...
[ "Setter", "method", "for", "vlan_and_bd", "mapped", "from", "YANG", "variable", "/", "overlay_gateway", "/", "map", "/", "vlan_and_bd", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/overlay_gateway/map_/__init__.py#L162-L183
train
Sets the value of vlan_and_bd in the Overlay Gateway
StackStorm/pybind
pybind/nos/v6_0_2f/overlay_gateway/site/bfd/__init__.py
bfd._set_params
def _set_params(self, v, load=False): """ Setter method for params, mapped from YANG variable /overlay_gateway/site/bfd/params (container) If this variable is read-only (config: false) in the source YANG file, then _set_params is considered as a private method. Backends looking to populate this vari...
python
def _set_params(self, v, load=False): """ Setter method for params, mapped from YANG variable /overlay_gateway/site/bfd/params (container) If this variable is read-only (config: false) in the source YANG file, then _set_params is considered as a private method. Backends looking to populate this vari...
[ "def", "_set_params", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for params, mapped from YANG variable /overlay_gateway/site/bfd/params (container) If this variable is read-only (config: false) in the source YANG file, then _set_params is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_par...
[ "Setter", "method", "for", "params", "mapped", "from", "YANG", "variable", "/", "overlay_gateway", "/", "site", "/", "bfd", "/", "params", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/overlay_gateway/site/bfd/__init__.py#L94-L117
train
Sets the parameters of the BFD tunnels.
StackStorm/pybind
pybind/slxos/v17s_1_02/tvf_domain_list_state/domain_list/__init__.py
domain_list._set_port_list
def _set_port_list(self, v, load=False): """ Setter method for port_list, mapped from YANG variable /tvf_domain_list_state/domain_list/port_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_port_list is considered as a private method. Backends looking ...
python
def _set_port_list(self, v, load=False): """ Setter method for port_list, mapped from YANG variable /tvf_domain_list_state/domain_list/port_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_port_list is considered as a private method. Backends looking ...
[ "def", "_set_port_list", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for port_list, mapped from YANG variable /tvf_domain_list_state/domain_list/port_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_port_list is considered as a private method. Backends looking to populate this variable should do so via callin...
[ "Setter", "method", "for", "port_list", "mapped", "from", "YANG", "variable", "/", "tvf_domain_list_state", "/", "domain_list", "/", "port_list", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "i...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/tvf_domain_list_state/domain_list/__init__.py#L139-L162
train
Sets the port_list property of the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/area/__init__.py
area._set_area_range
def _set_area_range(self, v, load=False): """ Setter method for area_range, mapped from YANG variable /rbridge_id/ipv6/router/ospf/area/area_range (list) If this variable is read-only (config: false) in the source YANG file, then _set_area_range is considered as a private method. Backends looking to...
python
def _set_area_range(self, v, load=False): """ Setter method for area_range, mapped from YANG variable /rbridge_id/ipv6/router/ospf/area/area_range (list) If this variable is read-only (config: false) in the source YANG file, then _set_area_range is considered as a private method. Backends looking to...
[ "def", "_set_area_range", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for area_range, mapped from YANG variable /rbridge_id/ipv6/router/ospf/area/area_range (list) If this variable is read-only (config: false) in the source YANG file, then _set_area_range is considered as a private method. Backends looking to populate this variable should do so via calling t...
[ "Setter", "method", "for", "area_range", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ipv6", "/", "router", "/", "ospf", "/", "area", "/", "area_range", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ipv6/router/ospf/area/__init__.py#L325-L348
train
Set the area range of the NSSA route.
StackStorm/pybind
pybind/nos/v7_2_0/rbridge_id/router/router_bgp/address_family/l2vpn/evpn/neighbor/__init__.py
neighbor._set_evpn_neighbor_ipv6
def _set_evpn_neighbor_ipv6(self, v, load=False): """ Setter method for evpn_neighbor_ipv6, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/l2vpn/evpn/neighbor/evpn_neighbor_ipv6 (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_neighbor_...
python
def _set_evpn_neighbor_ipv6(self, v, load=False): """ Setter method for evpn_neighbor_ipv6, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/l2vpn/evpn/neighbor/evpn_neighbor_ipv6 (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_neighbor_...
[ "def", "_set_evpn_neighbor_ipv6", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for evpn_neighbor_ipv6, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/l2vpn/evpn/neighbor/evpn_neighbor_ipv6 (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_neighbor_ipv6 is considered as a private method. Backends looking t...
[ "Setter", "method", "for", "evpn_neighbor_ipv6", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "router_bgp", "/", "address_family", "/", "l2vpn", "/", "evpn", "/", "neighbor", "/", "evpn_neighbor_ipv6", "(", "list", ")", "If", "t...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/router/router_bgp/address_family/l2vpn/evpn/neighbor/__init__.py#L162-L183
train
Set the value of evpn_neighbor_ipv6 mapped from YANG variable to ipv6 address.
HEPData/hepdata-validator
hepdata_validator/__init__.py
Validator.get_messages
def get_messages(self, file_name=None): """ Return messages for a file (if file_name provided). If file_name is none, returns all messages as a dict. :param file_name: :return: array if file_name is provided, dict otherwise. """ if file_name is None: r...
python
def get_messages(self, file_name=None): """ Return messages for a file (if file_name provided). If file_name is none, returns all messages as a dict. :param file_name: :return: array if file_name is provided, dict otherwise. """ if file_name is None: r...
[ "def", "get_messages", "(", "self", ",", "file_name", "=", "None", ")", ":", "if", "file_name", "is", "None", ":", "return", "self", ".", "messages", "elif", "file_name", "in", "self", ".", "messages", ":", "return", "self", ".", "messages", "[", "file_n...
Return messages for a file (if file_name provided). If file_name is none, returns all messages as a dict. :param file_name: :return: array if file_name is provided, dict otherwise.
[ "Return", "messages", "for", "a", "file", "(", "if", "file_name", "provided", ")", ".", "If", "file_name", "is", "none", "returns", "all", "messages", "as", "a", "dict", ".", ":", "param", "file_name", ":", ":", "return", ":", "array", "if", "file_name",...
d0b0cab742a009c8f0e8aac9f8c8e434a524d43c
https://github.com/HEPData/hepdata-validator/blob/d0b0cab742a009c8f0e8aac9f8c8e434a524d43c/hepdata_validator/__init__.py#L65-L79
train
Returns a list of all the messages for a file.
HEPData/hepdata-validator
hepdata_validator/__init__.py
Validator.add_validation_message
def add_validation_message(self, message): """ Adds a message to the messages dict :param message: """ if message.file not in self.messages: self.messages[message.file] = [] self.messages[message.file].append(message)
python
def add_validation_message(self, message): """ Adds a message to the messages dict :param message: """ if message.file not in self.messages: self.messages[message.file] = [] self.messages[message.file].append(message)
[ "def", "add_validation_message", "(", "self", ",", "message", ")", ":", "if", "message", ".", "file", "not", "in", "self", ".", "messages", ":", "self", ".", "messages", "[", "message", ".", "file", "]", "=", "[", "]", "self", ".", "messages", "[", "...
Adds a message to the messages dict :param message:
[ "Adds", "a", "message", "to", "the", "messages", "dict", ":", "param", "message", ":" ]
d0b0cab742a009c8f0e8aac9f8c8e434a524d43c
https://github.com/HEPData/hepdata-validator/blob/d0b0cab742a009c8f0e8aac9f8c8e434a524d43c/hepdata_validator/__init__.py#L88-L96
train
Adds a message to the messages dict
HEPData/hepdata-validator
hepdata_validator/__init__.py
Validator.print_errors
def print_errors(self, file_name): """ Prints the errors observed for a file """ for error in self.get_messages(file_name): print('\t', error.__unicode__())
python
def print_errors(self, file_name): """ Prints the errors observed for a file """ for error in self.get_messages(file_name): print('\t', error.__unicode__())
[ "def", "print_errors", "(", "self", ",", "file_name", ")", ":", "for", "error", "in", "self", ".", "get_messages", "(", "file_name", ")", ":", "print", "(", "'\\t'", ",", "error", ".", "__unicode__", "(", ")", ")" ]
Prints the errors observed for a file
[ "Prints", "the", "errors", "observed", "for", "a", "file" ]
d0b0cab742a009c8f0e8aac9f8c8e434a524d43c
https://github.com/HEPData/hepdata-validator/blob/d0b0cab742a009c8f0e8aac9f8c8e434a524d43c/hepdata_validator/__init__.py#L98-L103
train
Prints the errors observed for a file
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/qos/__init__.py
qos._set_rcv_queue
def _set_rcv_queue(self, v, load=False): """ Setter method for rcv_queue, mapped from YANG variable /rbridge_id/qos/rcv_queue (container) If this variable is read-only (config: false) in the source YANG file, then _set_rcv_queue is considered as a private method. Backends looking to populate this va...
python
def _set_rcv_queue(self, v, load=False): """ Setter method for rcv_queue, mapped from YANG variable /rbridge_id/qos/rcv_queue (container) If this variable is read-only (config: false) in the source YANG file, then _set_rcv_queue is considered as a private method. Backends looking to populate this va...
[ "def", "_set_rcv_queue", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for rcv_queue, mapped from YANG variable /rbridge_id/qos/rcv_queue (container) If this variable is read-only (config: false) in the source YANG file, then _set_rcv_queue is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_rcv_...
[ "Setter", "method", "for", "rcv_queue", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "qos", "/", "rcv_queue", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "sou...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/qos/__init__.py#L127-L148
train
Sets the qos queue for the
StackStorm/pybind
pybind/slxos/v17r_2_00/protocol/__init__.py
protocol._set_link_oam
def _set_link_oam(self, v, load=False): """ Setter method for link_oam, mapped from YANG variable /protocol/link_oam (container) If this variable is read-only (config: false) in the source YANG file, then _set_link_oam is considered as a private method. Backends looking to populate this variable sho...
python
def _set_link_oam(self, v, load=False): """ Setter method for link_oam, mapped from YANG variable /protocol/link_oam (container) If this variable is read-only (config: false) in the source YANG file, then _set_link_oam is considered as a private method. Backends looking to populate this variable sho...
[ "def", "_set_link_oam", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for link_oam, mapped from YANG variable /protocol/link_oam (container) If this variable is read-only (config: false) in the source YANG file, then _set_link_oam is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_link_oam() di...
[ "Setter", "method", "for", "link_oam", "mapped", "from", "YANG", "variable", "/", "protocol", "/", "link_oam", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "f...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/protocol/__init__.py#L100-L121
train
Set the value of the link - oam variable.
StackStorm/pybind
pybind/slxos/v17r_2_00/protocol/__init__.py
protocol._set_edge_loop_detection
def _set_edge_loop_detection(self, v, load=False): """ Setter method for edge_loop_detection, mapped from YANG variable /protocol/edge_loop_detection (container) If this variable is read-only (config: false) in the source YANG file, then _set_edge_loop_detection is considered as a private method. Ba...
python
def _set_edge_loop_detection(self, v, load=False): """ Setter method for edge_loop_detection, mapped from YANG variable /protocol/edge_loop_detection (container) If this variable is read-only (config: false) in the source YANG file, then _set_edge_loop_detection is considered as a private method. Ba...
[ "def", "_set_edge_loop_detection", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",...
Setter method for edge_loop_detection, mapped from YANG variable /protocol/edge_loop_detection (container) If this variable is read-only (config: false) in the source YANG file, then _set_edge_loop_detection is considered as a private method. Backends looking to populate this variable should do so via c...
[ "Setter", "method", "for", "edge_loop_detection", "mapped", "from", "YANG", "variable", "/", "protocol", "/", "edge_loop_detection", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "s...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/protocol/__init__.py#L133-L154
train
Sets the edge - loop - detection variable in the FD tree.
StackStorm/pybind
pybind/nos/v6_0_2f/support/__init__.py
support._set_autoupload_param
def _set_autoupload_param(self, v, load=False): """ Setter method for autoupload_param, mapped from YANG variable /support/autoupload_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload_param is considered as a private method. Backends lookin...
python
def _set_autoupload_param(self, v, load=False): """ Setter method for autoupload_param, mapped from YANG variable /support/autoupload_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload_param is considered as a private method. Backends lookin...
[ "def", "_set_autoupload_param", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for autoupload_param, mapped from YANG variable /support/autoupload_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload_param is considered as a private method. Backends looking to populate this variable should do so via calling thi...
[ "Setter", "method", "for", "autoupload_param", "mapped", "from", "YANG", "variable", "/", "support", "/", "autoupload_param", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/support/__init__.py#L97-L118
train
Sets the autoupload parameter for the
StackStorm/pybind
pybind/nos/v6_0_2f/support/__init__.py
support._set_support_param
def _set_support_param(self, v, load=False): """ Setter method for support_param, mapped from YANG variable /support/support_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_support_param is considered as a private method. Backends looking to populat...
python
def _set_support_param(self, v, load=False): """ Setter method for support_param, mapped from YANG variable /support/support_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_support_param is considered as a private method. Backends looking to populat...
[ "def", "_set_support_param", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for support_param, mapped from YANG variable /support/support_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_support_param is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set...
[ "Setter", "method", "for", "support_param", "mapped", "from", "YANG", "variable", "/", "support", "/", "support_param", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YA...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/support/__init__.py#L130-L151
train
Sets the support parameter of the .
StackStorm/pybind
pybind/nos/v6_0_2f/support/__init__.py
support._set_autoupload
def _set_autoupload(self, v, load=False): """ Setter method for autoupload, mapped from YANG variable /support/autoupload (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload is considered as a private method. Backends looking to populate this varia...
python
def _set_autoupload(self, v, load=False): """ Setter method for autoupload, mapped from YANG variable /support/autoupload (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload is considered as a private method. Backends looking to populate this varia...
[ "def", "_set_autoupload", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for autoupload, mapped from YANG variable /support/autoupload (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_autouplo...
[ "Setter", "method", "for", "autoupload", "mapped", "from", "YANG", "variable", "/", "support", "/", "autoupload", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/support/__init__.py#L163-L184
train
Sets the autoupload parameter of the
StackStorm/pybind
pybind/slxos/v17r_1_01a/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/remote_mep/__init__.py
remote_mep._set_action_profile_association
def _set_action_profile_association(self, v, load=False): """ Setter method for action_profile_association, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/remote_mep/action_profile_association (string) If this variable is read-only (config: false) in...
python
def _set_action_profile_association(self, v, load=False): """ Setter method for action_profile_association, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/remote_mep/action_profile_association (string) If this variable is read-only (config: false) in...
[ "def", "_set_action_profile_association", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v...
Setter method for action_profile_association, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/remote_mep/action_profile_association (string) If this variable is read-only (config: false) in the source YANG file, then _set_action_profile_association is con...
[ "Setter", "method", "for", "action_profile_association", "mapped", "from", "YANG", "variable", "/", "protocol", "/", "cfm", "/", "domain_name", "/", "ma_name", "/", "cfm_ma_sub_commands", "/", "mep", "/", "cfm_mep_sub_commands", "/", "remote_mep", "/", "action_profi...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/remote_mep/__init__.py#L165-L186
train
Sets the action - profile association for the non - remote action - profile.
StackStorm/pybind
pybind/slxos/v17s_1_02/qos/cpu/__init__.py
cpu._set_slot
def _set_slot(self, v, load=False): """ Setter method for slot, mapped from YANG variable /qos/cpu/slot (list) If this variable is read-only (config: false) in the source YANG file, then _set_slot is considered as a private method. Backends looking to populate this variable should do so via call...
python
def _set_slot(self, v, load=False): """ Setter method for slot, mapped from YANG variable /qos/cpu/slot (list) If this variable is read-only (config: false) in the source YANG file, then _set_slot is considered as a private method. Backends looking to populate this variable should do so via call...
[ "def", "_set_slot", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for slot, mapped from YANG variable /qos/cpu/slot (list) If this variable is read-only (config: false) in the source YANG file, then _set_slot is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_slot() directly.
[ "Setter", "method", "for", "slot", "mapped", "from", "YANG", "variable", "/", "qos", "/", "cpu", "/", "slot", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "fil...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos/cpu/__init__.py#L92-L113
train
Set the slot of the
bkg/django-spillway
spillway/forms/forms.py
QuerySetForm.query
def query(self, force=False): """Returns the filtered/selected GeoQuerySet.""" if not self.is_valid(): raise forms.ValidationError(self.errors) if force: self._is_selected = False if not self._is_selected: if self.queryset is None: rais...
python
def query(self, force=False): """Returns the filtered/selected GeoQuerySet.""" if not self.is_valid(): raise forms.ValidationError(self.errors) if force: self._is_selected = False if not self._is_selected: if self.queryset is None: rais...
[ "def", "query", "(", "self", ",", "force", "=", "False", ")", ":", "if", "not", "self", ".", "is_valid", "(", ")", ":", "raise", "forms", ".", "ValidationError", "(", "self", ".", "errors", ")", "if", "force", ":", "self", ".", "_is_selected", "=", ...
Returns the filtered/selected GeoQuerySet.
[ "Returns", "the", "filtered", "/", "selected", "GeoQuerySet", "." ]
c488a62642430b005f1e0d4a19e160d8d5964b67
https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/forms/forms.py#L30-L42
train
Returns the filtered and selected GeoQuerySet.
bkg/django-spillway
spillway/forms/forms.py
RasterQueryForm.clean
def clean(self): """Return cleaned fields as a dict, determine which geom takes precedence. """ data = super(RasterQueryForm, self).clean() geom = data.pop('upload', None) or data.pop('bbox', None) if geom: data['g'] = geom return data
python
def clean(self): """Return cleaned fields as a dict, determine which geom takes precedence. """ data = super(RasterQueryForm, self).clean() geom = data.pop('upload', None) or data.pop('bbox', None) if geom: data['g'] = geom return data
[ "def", "clean", "(", "self", ")", ":", "data", "=", "super", "(", "RasterQueryForm", ",", "self", ")", ".", "clean", "(", ")", "geom", "=", "data", ".", "pop", "(", "'upload'", ",", "None", ")", "or", "data", ".", "pop", "(", "'bbox'", ",", "None...
Return cleaned fields as a dict, determine which geom takes precedence.
[ "Return", "cleaned", "fields", "as", "a", "dict", "determine", "which", "geom", "takes", "precedence", "." ]
c488a62642430b005f1e0d4a19e160d8d5964b67
https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/forms/forms.py#L125-L133
train
Return cleaned fields as a dict determine which geom takes precedence.
StackStorm/pybind
pybind/slxos/v17r_1_01a/interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged/__init__.py
untagged._set_untagged_vlan
def _set_untagged_vlan(self, v, load=False): """ Setter method for untagged_vlan, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged/untagged_vlan (container) If this variable is ...
python
def _set_untagged_vlan(self, v, load=False): """ Setter method for untagged_vlan, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged/untagged_vlan (container) If this variable is ...
[ "def", "_set_untagged_vlan", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for untagged_vlan, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged/untagged_vlan (container) If this variable is read-only (config: false) in the source YANG file, th...
[ "Setter", "method", "for", "untagged_vlan", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "logical_interface", "/", "port_channel", "/", "pc_cmd_container_dummy", "/", "service_instance_vlan_cmds_dummy_container", "/", "get_untagged_vlan_...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged/__init__.py#L92-L113
train
Sets the untagged VLAN for this logical interface
StackStorm/pybind
pybind/nos/v6_0_2f/aaa_config/aaa/accounting/__init__.py
accounting._set_exec_
def _set_exec_(self, v, load=False): """ Setter method for exec_, mapped from YANG variable /aaa_config/aaa/accounting/exec (container) If this variable is read-only (config: false) in the source YANG file, then _set_exec_ is considered as a private method. Backends looking to populate this variable...
python
def _set_exec_(self, v, load=False): """ Setter method for exec_, mapped from YANG variable /aaa_config/aaa/accounting/exec (container) If this variable is read-only (config: false) in the source YANG file, then _set_exec_ is considered as a private method. Backends looking to populate this variable...
[ "def", "_set_exec_", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for exec_, mapped from YANG variable /aaa_config/aaa/accounting/exec (container) If this variable is read-only (config: false) in the source YANG file, then _set_exec_ is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_exec_(...
[ "Setter", "method", "for", "exec_", "mapped", "from", "YANG", "variable", "/", "aaa_config", "/", "aaa", "/", "accounting", "/", "exec", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/aaa_config/aaa/accounting/__init__.py#L94-L115
train
Set the exec variable.
StackStorm/pybind
pybind/nos/v6_0_2f/aaa_config/aaa/accounting/__init__.py
accounting._set_commands
def _set_commands(self, v, load=False): """ Setter method for commands, mapped from YANG variable /aaa_config/aaa/accounting/commands (container) If this variable is read-only (config: false) in the source YANG file, then _set_commands is considered as a private method. Backends looking to populate ...
python
def _set_commands(self, v, load=False): """ Setter method for commands, mapped from YANG variable /aaa_config/aaa/accounting/commands (container) If this variable is read-only (config: false) in the source YANG file, then _set_commands is considered as a private method. Backends looking to populate ...
[ "def", "_set_commands", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for commands, mapped from YANG variable /aaa_config/aaa/accounting/commands (container) If this variable is read-only (config: false) in the source YANG file, then _set_commands is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
[ "Setter", "method", "for", "commands", "mapped", "from", "YANG", "variable", "/", "aaa_config", "/", "aaa", "/", "accounting", "/", "commands", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/aaa_config/aaa/accounting/__init__.py#L127-L148
train
Set the commands field of the
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path/lsp_secpath_auto_bandwidth/__init__.py
lsp_secpath_auto_bandwidth._set_lsp_secpath_autobw_template
def _set_lsp_secpath_autobw_template(self, v, load=False): """ Setter method for lsp_secpath_autobw_template, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path/lsp_secpath_auto_bandwidth/lsp_secpath_autobw_template (leafref) If this variable is read-only (config: false) ...
python
def _set_lsp_secpath_autobw_template(self, v, load=False): """ Setter method for lsp_secpath_autobw_template, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path/lsp_secpath_auto_bandwidth/lsp_secpath_autobw_template (leafref) If this variable is read-only (config: false) ...
[ "def", "_set_lsp_secpath_autobw_template", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "...
Setter method for lsp_secpath_autobw_template, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path/lsp_secpath_auto_bandwidth/lsp_secpath_autobw_template (leafref) If this variable is read-only (config: false) in the source YANG file, then _set_lsp_secpath_autobw_template is c...
[ "Setter", "method", "for", "lsp_secpath_autobw_template", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "lsp", "/", "secondary_path", "/", "lsp_secpath_auto_bandwidth", "/", "lsp_secpath_autobw_templa...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path/lsp_secpath_auto_bandwidth/__init__.py#L99-L120
train
Sets the value of lsp_secpath_autobw_template in the secondary path
StackStorm/pybind
pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast/af_vpnv4_neighbor_address_holder/__init__.py
af_vpnv4_neighbor_address_holder._set_af_vpnv4_neighbor
def _set_af_vpnv4_neighbor(self, v, load=False): """ Setter method for af_vpnv4_neighbor, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast/af_vpnv4_neighbor_address_holder/af_vpnv4_neighbor (list) If this variable is read-only (config: false) in the source Y...
python
def _set_af_vpnv4_neighbor(self, v, load=False): """ Setter method for af_vpnv4_neighbor, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast/af_vpnv4_neighbor_address_holder/af_vpnv4_neighbor (list) If this variable is read-only (config: false) in the source Y...
[ "def", "_set_af_vpnv4_neighbor", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for af_vpnv4_neighbor, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast/af_vpnv4_neighbor_address_holder/af_vpnv4_neighbor (list) If this variable is read-only (config: false) in the source YANG file, then _set_af_vpnv4_neighbor is considered as a priv...
[ "Setter", "method", "for", "af_vpnv4_neighbor", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "router_bgp", "/", "address_family", "/", "vpnv4", "/", "vpnv4_unicast", "/", "af_vpnv4_neighbor_address_holder", "/", "af_vpnv4_neighbor", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast/af_vpnv4_neighbor_address_holder/__init__.py#L92-L113
train
Sets the value of af_vpnv4_neighbor in the virtual network.
drslump/pyshould
pyshould/matchers.py
register
def register(matcher, *aliases): """ Register a matcher associated to one or more aliases. Each alias given is also normalized. """ docstr = matcher.__doc__ if matcher.__doc__ is not None else '' helpmatchers[matcher] = docstr.strip() for alias in aliases: matchers[alias] = matcher ...
python
def register(matcher, *aliases): """ Register a matcher associated to one or more aliases. Each alias given is also normalized. """ docstr = matcher.__doc__ if matcher.__doc__ is not None else '' helpmatchers[matcher] = docstr.strip() for alias in aliases: matchers[alias] = matcher ...
[ "def", "register", "(", "matcher", ",", "*", "aliases", ")", ":", "docstr", "=", "matcher", ".", "__doc__", "if", "matcher", ".", "__doc__", "is", "not", "None", "else", "''", "helpmatchers", "[", "matcher", "]", "=", "docstr", ".", "strip", "(", ")", ...
Register a matcher associated to one or more aliases. Each alias given is also normalized.
[ "Register", "a", "matcher", "associated", "to", "one", "or", "more", "aliases", ".", "Each", "alias", "given", "is", "also", "normalized", "." ]
7210859d4c84cfbaa64f91b30c2a541aea788ddf
https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/matchers.py#L54-L68
train
Register a matcher associated to one or more aliases.
drslump/pyshould
pyshould/matchers.py
unregister
def unregister(matcher): """ Unregister a matcher (or alias) from the registry """ # If it's a string handle it like an alias if isinstance(matcher, text_types) and matcher in matchers: matcher = matchers[matcher] # Find all aliases associated to the matcher aliases = [k for k, v in mat...
python
def unregister(matcher): """ Unregister a matcher (or alias) from the registry """ # If it's a string handle it like an alias if isinstance(matcher, text_types) and matcher in matchers: matcher = matchers[matcher] # Find all aliases associated to the matcher aliases = [k for k, v in mat...
[ "def", "unregister", "(", "matcher", ")", ":", "# If it's a string handle it like an alias", "if", "isinstance", "(", "matcher", ",", "text_types", ")", "and", "matcher", "in", "matchers", ":", "matcher", "=", "matchers", "[", "matcher", "]", "# Find all aliases ass...
Unregister a matcher (or alias) from the registry
[ "Unregister", "a", "matcher", "(", "or", "alias", ")", "from", "the", "registry" ]
7210859d4c84cfbaa64f91b30c2a541aea788ddf
https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/matchers.py#L71-L91
train
Unregister a matcher or alias from the registry
drslump/pyshould
pyshould/matchers.py
normalize
def normalize(alias): """ Normalizes an alias by removing adverbs defined in IGNORED_WORDS """ # Convert from CamelCase to snake_case alias = re.sub(r'([a-z])([A-Z])', r'\1_\2', alias) # Ignore words words = alias.lower().split('_') words = filter(lambda w: w not in IGNORED_WORDS, words) ...
python
def normalize(alias): """ Normalizes an alias by removing adverbs defined in IGNORED_WORDS """ # Convert from CamelCase to snake_case alias = re.sub(r'([a-z])([A-Z])', r'\1_\2', alias) # Ignore words words = alias.lower().split('_') words = filter(lambda w: w not in IGNORED_WORDS, words) ...
[ "def", "normalize", "(", "alias", ")", ":", "# Convert from CamelCase to snake_case", "alias", "=", "re", ".", "sub", "(", "r'([a-z])([A-Z])'", ",", "r'\\1_\\2'", ",", "alias", ")", "# Ignore words", "words", "=", "alias", ".", "lower", "(", ")", ".", "split",...
Normalizes an alias by removing adverbs defined in IGNORED_WORDS
[ "Normalizes", "an", "alias", "by", "removing", "adverbs", "defined", "in", "IGNORED_WORDS" ]
7210859d4c84cfbaa64f91b30c2a541aea788ddf
https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/matchers.py#L94-L102
train
Normalizes an alias by removing adverbs defined in IGNORED_WORDS
drslump/pyshould
pyshould/matchers.py
lookup
def lookup(alias): """ Tries to find a matcher callable associated to the given alias. If an exact match does not exists it will try normalizing it and even removing underscores to find one. """ if alias in matchers: return matchers[alias] else: norm = normalize(alias) ...
python
def lookup(alias): """ Tries to find a matcher callable associated to the given alias. If an exact match does not exists it will try normalizing it and even removing underscores to find one. """ if alias in matchers: return matchers[alias] else: norm = normalize(alias) ...
[ "def", "lookup", "(", "alias", ")", ":", "if", "alias", "in", "matchers", ":", "return", "matchers", "[", "alias", "]", "else", ":", "norm", "=", "normalize", "(", "alias", ")", "if", "norm", "in", "normalized", ":", "alias", "=", "normalized", "[", ...
Tries to find a matcher callable associated to the given alias. If an exact match does not exists it will try normalizing it and even removing underscores to find one.
[ "Tries", "to", "find", "a", "matcher", "callable", "associated", "to", "the", "given", "alias", ".", "If", "an", "exact", "match", "does", "not", "exists", "it", "will", "try", "normalizing", "it", "and", "even", "removing", "underscores", "to", "find", "o...
7210859d4c84cfbaa64f91b30c2a541aea788ddf
https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/matchers.py#L105-L124
train
Tries to find a matcher callable associated to the given alias. If no match is found None is returned.
drslump/pyshould
pyshould/matchers.py
suggest
def suggest(alias, max=3, cutoff=0.5): """ Suggest a list of aliases which are similar enough """ aliases = matchers.keys() similar = get_close_matches(alias, aliases, n=max, cutoff=cutoff) return similar
python
def suggest(alias, max=3, cutoff=0.5): """ Suggest a list of aliases which are similar enough """ aliases = matchers.keys() similar = get_close_matches(alias, aliases, n=max, cutoff=cutoff) return similar
[ "def", "suggest", "(", "alias", ",", "max", "=", "3", ",", "cutoff", "=", "0.5", ")", ":", "aliases", "=", "matchers", ".", "keys", "(", ")", "similar", "=", "get_close_matches", "(", "alias", ",", "aliases", ",", "n", "=", "max", ",", "cutoff", "=...
Suggest a list of aliases which are similar enough
[ "Suggest", "a", "list", "of", "aliases", "which", "are", "similar", "enough" ]
7210859d4c84cfbaa64f91b30c2a541aea788ddf
https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/matchers.py#L127-L134
train
Suggest a list of aliases which are similar enough
StackStorm/pybind
pybind/nos/v7_2_0/firmware/__init__.py
firmware._set_peripheral_update
def _set_peripheral_update(self, v, load=False): """ Setter method for peripheral_update, mapped from YANG variable /firmware/peripheral_update (container) If this variable is read-only (config: false) in the source YANG file, then _set_peripheral_update is considered as a private method. Backends l...
python
def _set_peripheral_update(self, v, load=False): """ Setter method for peripheral_update, mapped from YANG variable /firmware/peripheral_update (container) If this variable is read-only (config: false) in the source YANG file, then _set_peripheral_update is considered as a private method. Backends l...
[ "def", "_set_peripheral_update", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for peripheral_update, mapped from YANG variable /firmware/peripheral_update (container) If this variable is read-only (config: false) in the source YANG file, then _set_peripheral_update is considered as a private method. Backends looking to populate this variable should do so via calling...
[ "Setter", "method", "for", "peripheral_update", "mapped", "from", "YANG", "variable", "/", "firmware", "/", "peripheral_update", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "sourc...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/firmware/__init__.py#L127-L148
train
Set the value of the peripheral update variable.
StackStorm/pybind
pybind/slxos/v17s_1_02/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
cfm_ma_sub_commands._set_ccm_interval
def _set_ccm_interval(self, v, load=False): """ Setter method for ccm_interval, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/ccm_interval (ccm-interval-type) If this variable is read-only (config: false) in the source YANG file, then _set_ccm_interval is considered as ...
python
def _set_ccm_interval(self, v, load=False): """ Setter method for ccm_interval, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/ccm_interval (ccm-interval-type) If this variable is read-only (config: false) in the source YANG file, then _set_ccm_interval is considered as ...
[ "def", "_set_ccm_interval", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for ccm_interval, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/ccm_interval (ccm-interval-type) If this variable is read-only (config: false) in the source YANG file, then _set_ccm_interval is considered as a private method. Backends looking to populate this ...
[ "Setter", "method", "for", "ccm_interval", "mapped", "from", "YANG", "variable", "/", "protocol", "/", "cfm", "/", "domain_name", "/", "ma_name", "/", "cfm_ma_sub_commands", "/", "ccm_interval", "(", "ccm", "-", "interval", "-", "type", ")", "If", "this", "v...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py#L94-L115
train
Sets the interval of the CCM.
StackStorm/pybind
pybind/slxos/v17s_1_02/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
cfm_ma_sub_commands._set_mip_policy
def _set_mip_policy(self, v, load=False): """ Setter method for mip_policy, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mip_policy (mip-policy-type) If this variable is read-only (config: false) in the source YANG file, then _set_mip_policy is considered as a private ...
python
def _set_mip_policy(self, v, load=False): """ Setter method for mip_policy, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mip_policy (mip-policy-type) If this variable is read-only (config: false) in the source YANG file, then _set_mip_policy is considered as a private ...
[ "def", "_set_mip_policy", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for mip_policy, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mip_policy (mip-policy-type) If this variable is read-only (config: false) in the source YANG file, then _set_mip_policy is considered as a private method. Backends looking to populate this variable...
[ "Setter", "method", "for", "mip_policy", "mapped", "from", "YANG", "variable", "/", "protocol", "/", "cfm", "/", "domain_name", "/", "ma_name", "/", "cfm_ma_sub_commands", "/", "mip_policy", "(", "mip", "-", "policy", "-", "type", ")", "If", "this", "variabl...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py#L127-L148
train
Sets the MIP policy for the sequence of MIPs.
StackStorm/pybind
pybind/slxos/v17s_1_02/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
cfm_ma_sub_commands._set_mep
def _set_mep(self, v, load=False): """ Setter method for mep, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep (list) If this variable is read-only (config: false) in the source YANG file, then _set_mep is considered as a private method. Backends looking to populat...
python
def _set_mep(self, v, load=False): """ Setter method for mep, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep (list) If this variable is read-only (config: false) in the source YANG file, then _set_mep is considered as a private method. Backends looking to populat...
[ "def", "_set_mep", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", "...
Setter method for mep, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep (list) If this variable is read-only (config: false) in the source YANG file, then _set_mep is considered as a private method. Backends looking to populate this variable should do so via calling th...
[ "Setter", "method", "for", "mep", "mapped", "from", "YANG", "variable", "/", "protocol", "/", "cfm", "/", "domain_name", "/", "ma_name", "/", "cfm_ma_sub_commands", "/", "mep", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py#L160-L181
train
Set the Mep field of the sequence.
StackStorm/pybind
pybind/slxos/v17s_1_02/interface/port_channel/hide_vrrp_holer/vrrp/__init__.py
vrrp._set_version
def _set_version(self, v, load=False): """ Setter method for version, mapped from YANG variable /interface/port_channel/hide_vrrp_holer/vrrp/version (uint8) If this variable is read-only (config: false) in the source YANG file, then _set_version is considered as a private method. Backends looking to...
python
def _set_version(self, v, load=False): """ Setter method for version, mapped from YANG variable /interface/port_channel/hide_vrrp_holer/vrrp/version (uint8) If this variable is read-only (config: false) in the source YANG file, then _set_version is considered as a private method. Backends looking to...
[ "def", "_set_version", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "parent", "=", "getattr", "(", "self", ",", "\"_parent\"", ",", "None", ")", "if", "parent", "is", "not", "None", "and", "load", "is", "False", ":", "raise", "Attribut...
Setter method for version, mapped from YANG variable /interface/port_channel/hide_vrrp_holer/vrrp/version (uint8) If this variable is read-only (config: false) in the source YANG file, then _set_version is considered as a private method. Backends looking to populate this variable should do so via callin...
[ "Setter", "method", "for", "version", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "hide_vrrp_holer", "/", "vrrp", "/", "version", "(", "uint8", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface/port_channel/hide_vrrp_holer/vrrp/__init__.py#L144-L170
train
Sets the version of the
BD2KGenomics/protect
src/protect/mutation_calling/common.py
sample_chromosomes
def sample_chromosomes(job, genome_fai_file): """ Get a list of chromosomes in the input data. :param toil.fileStore.FileID genome_fai_file: Job store file ID for the genome fai file :return: Chromosomes in the sample :rtype: list[str] """ work_dir = os.getcwd() genome_fai = untargz(job...
python
def sample_chromosomes(job, genome_fai_file): """ Get a list of chromosomes in the input data. :param toil.fileStore.FileID genome_fai_file: Job store file ID for the genome fai file :return: Chromosomes in the sample :rtype: list[str] """ work_dir = os.getcwd() genome_fai = untargz(job...
[ "def", "sample_chromosomes", "(", "job", ",", "genome_fai_file", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "genome_fai", "=", "untargz", "(", "job", ".", "fileStore", ".", "readGlobalFile", "(", "genome_fai_file", ")", ",", "work_dir", ")", ...
Get a list of chromosomes in the input data. :param toil.fileStore.FileID genome_fai_file: Job store file ID for the genome fai file :return: Chromosomes in the sample :rtype: list[str]
[ "Get", "a", "list", "of", "chromosomes", "in", "the", "input", "data", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/common.py#L25-L35
train
Get a list of chromosomes in the input data.
BD2KGenomics/protect
src/protect/mutation_calling/common.py
chromosomes_from_fai
def chromosomes_from_fai(genome_fai): """ Read a fasta index (fai) file and parse the input chromosomes. :param str genome_fai: Path to the fai file. :return: list of input chromosomes :rtype: list[str] """ chromosomes = [] with open(genome_fai) as fai_file: for line in fai_file...
python
def chromosomes_from_fai(genome_fai): """ Read a fasta index (fai) file and parse the input chromosomes. :param str genome_fai: Path to the fai file. :return: list of input chromosomes :rtype: list[str] """ chromosomes = [] with open(genome_fai) as fai_file: for line in fai_file...
[ "def", "chromosomes_from_fai", "(", "genome_fai", ")", ":", "chromosomes", "=", "[", "]", "with", "open", "(", "genome_fai", ")", "as", "fai_file", ":", "for", "line", "in", "fai_file", ":", "line", "=", "line", ".", "strip", "(", ")", ".", "split", "(...
Read a fasta index (fai) file and parse the input chromosomes. :param str genome_fai: Path to the fai file. :return: list of input chromosomes :rtype: list[str]
[ "Read", "a", "fasta", "index", "(", "fai", ")", "file", "and", "parse", "the", "input", "chromosomes", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/common.py#L38-L51
train
Read a fasta index file and parse the input chromosomes.
BD2KGenomics/protect
src/protect/mutation_calling/common.py
run_mutation_aggregator
def run_mutation_aggregator(job, mutation_results, univ_options): """ Aggregate all the called mutations. :param dict mutation_results: Dict of dicts of the various mutation callers in a per chromosome format :param dict univ_options: Dict of universal options used by almost all tools :r...
python
def run_mutation_aggregator(job, mutation_results, univ_options): """ Aggregate all the called mutations. :param dict mutation_results: Dict of dicts of the various mutation callers in a per chromosome format :param dict univ_options: Dict of universal options used by almost all tools :r...
[ "def", "run_mutation_aggregator", "(", "job", ",", "mutation_results", ",", "univ_options", ")", ":", "# Setup an input data structure for the merge function", "out", "=", "{", "}", "for", "chrom", "in", "mutation_results", "[", "'mutect'", "]", ".", "keys", "(", ")...
Aggregate all the called mutations. :param dict mutation_results: Dict of dicts of the various mutation callers in a per chromosome format :param dict univ_options: Dict of universal options used by almost all tools :returns: fsID for the merged mutations file :rtype: toil.fileStore.FileID
[ "Aggregate", "all", "the", "called", "mutations", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/common.py#L54-L71
train
This function will aggregate all the called mutations.
BD2KGenomics/protect
src/protect/mutation_calling/common.py
merge_perchrom_mutations
def merge_perchrom_mutations(job, chrom, mutations, univ_options): """ Merge the mutation calls for a single chromosome. :param str chrom: Chromosome to process :param dict mutations: dict of dicts of the various mutation caller names as keys, and a dict of per chromosome job store ids for v...
python
def merge_perchrom_mutations(job, chrom, mutations, univ_options): """ Merge the mutation calls for a single chromosome. :param str chrom: Chromosome to process :param dict mutations: dict of dicts of the various mutation caller names as keys, and a dict of per chromosome job store ids for v...
[ "def", "merge_perchrom_mutations", "(", "job", ",", "chrom", ",", "mutations", ",", "univ_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "from", "protect", ".", "mutation_calling", ".", "muse", "import", "process_muse_vcf", "from", "protec...
Merge the mutation calls for a single chromosome. :param str chrom: Chromosome to process :param dict mutations: dict of dicts of the various mutation caller names as keys, and a dict of per chromosome job store ids for vcfs as value :param dict univ_options: Dict of universal options used by al...
[ "Merge", "the", "mutation", "calls", "for", "a", "single", "chromosome", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/common.py#L74-L143
train
This function takes a mutation call and processes the mutations for a single chromosome.
BD2KGenomics/protect
src/protect/mutation_calling/common.py
read_vcf
def read_vcf(vcf_file): """ Read a vcf file to a dict of lists. :param str vcf_file: Path to a vcf file. :return: dict of lists of vcf records :rtype: dict """ vcf_dict = [] with open(vcf_file, 'r') as invcf: for line in invcf: if line.startswith('#'): ...
python
def read_vcf(vcf_file): """ Read a vcf file to a dict of lists. :param str vcf_file: Path to a vcf file. :return: dict of lists of vcf records :rtype: dict """ vcf_dict = [] with open(vcf_file, 'r') as invcf: for line in invcf: if line.startswith('#'): ...
[ "def", "read_vcf", "(", "vcf_file", ")", ":", "vcf_dict", "=", "[", "]", "with", "open", "(", "vcf_file", ",", "'r'", ")", "as", "invcf", ":", "for", "line", "in", "invcf", ":", "if", "line", ".", "startswith", "(", "'#'", ")", ":", "continue", "li...
Read a vcf file to a dict of lists. :param str vcf_file: Path to a vcf file. :return: dict of lists of vcf records :rtype: dict
[ "Read", "a", "vcf", "file", "to", "a", "dict", "of", "lists", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/common.py#L146-L161
train
Read a vcf file to a dict of lists.
BD2KGenomics/protect
src/protect/mutation_calling/common.py
merge_perchrom_vcfs
def merge_perchrom_vcfs(job, perchrom_vcfs, tool_name, univ_options): """ Merge per-chromosome vcf files into a single genome level vcf. :param dict perchrom_vcfs: Dictionary with chromosome name as key and fsID of the corresponding vcf as value :param str tool_name: Name of the tool that ge...
python
def merge_perchrom_vcfs(job, perchrom_vcfs, tool_name, univ_options): """ Merge per-chromosome vcf files into a single genome level vcf. :param dict perchrom_vcfs: Dictionary with chromosome name as key and fsID of the corresponding vcf as value :param str tool_name: Name of the tool that ge...
[ "def", "merge_perchrom_vcfs", "(", "job", ",", "perchrom_vcfs", ",", "tool_name", ",", "univ_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "input_files", "=", "{", "''", ".", "join", "(", "[", "chrom", ",", "'.vcf'", "]", ")", ":"...
Merge per-chromosome vcf files into a single genome level vcf. :param dict perchrom_vcfs: Dictionary with chromosome name as key and fsID of the corresponding vcf as value :param str tool_name: Name of the tool that generated the vcfs :returns: fsID for the merged vcf :rtype: toil.fileStore....
[ "Merge", "per", "-", "chromosome", "vcf", "files", "into", "a", "single", "genome", "level", "vcf", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/common.py#L164-L192
train
This function will merge the per - chromosome vcf files into a single genome level vcf.
BD2KGenomics/protect
src/protect/mutation_calling/common.py
unmerge
def unmerge(job, input_vcf, tool_name, chromosomes, tool_options, univ_options): """ Un-merge a vcf file into per-chromosome vcfs. :param str input_vcf: Input vcf :param str tool_name: The name of the mutation caller :param list chromosomes: List of chromosomes to retain :param dict tool_option...
python
def unmerge(job, input_vcf, tool_name, chromosomes, tool_options, univ_options): """ Un-merge a vcf file into per-chromosome vcfs. :param str input_vcf: Input vcf :param str tool_name: The name of the mutation caller :param list chromosomes: List of chromosomes to retain :param dict tool_option...
[ "def", "unmerge", "(", "job", ",", "input_vcf", ",", "tool_name", ",", "chromosomes", ",", "tool_options", ",", "univ_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "input_files", "=", "{", "'input.vcf'", ":", "input_vcf", ",", "'genom...
Un-merge a vcf file into per-chromosome vcfs. :param str input_vcf: Input vcf :param str tool_name: The name of the mutation caller :param list chromosomes: List of chromosomes to retain :param dict tool_options: Options specific to the mutation caller :param dict univ_options: Dict of universal op...
[ "Un", "-", "merge", "a", "vcf", "file", "into", "per", "-", "chromosome", "vcfs", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/common.py#L195-L243
train
Un - merge a vcf file into per - chromosome vcfs.
StackStorm/pybind
pybind/nos/v6_0_2f/interface_vlan/interface/__init__.py
interface._set_vlan
def _set_vlan(self, v, load=False): """ Setter method for vlan, mapped from YANG variable /interface_vlan/interface/vlan (list) If this variable is read-only (config: false) in the source YANG file, then _set_vlan is considered as a private method. Backends looking to populate this variable should ...
python
def _set_vlan(self, v, load=False): """ Setter method for vlan, mapped from YANG variable /interface_vlan/interface/vlan (list) If this variable is read-only (config: false) in the source YANG file, then _set_vlan is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_vlan", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for vlan, mapped from YANG variable /interface_vlan/interface/vlan (list) If this variable is read-only (config: false) in the source YANG file, then _set_vlan is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_vlan() directl...
[ "Setter", "method", "for", "vlan", "mapped", "from", "YANG", "variable", "/", "interface_vlan", "/", "interface", "/", "vlan", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface_vlan/interface/__init__.py#L101-L126
train
Set the vlan of the