INSTRUCTION stringlengths 1 8.43k | RESPONSE stringlengths 75 104k |
|---|---|
Setter method for mpls_traffic_bypasses mapped from YANG variable/ telemetry/ profile/ mpls_traffic_bypass/ mpls_traffic_bypasses ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_mpls_traffic_bypasses is considered as a private method. Backends looking to populate this variab... | def _set_mpls_traffic_bypasses(self, v, load=False):
"""
Setter method for mpls_traffic_bypasses, mapped from YANG variable /telemetry/profile/mpls_traffic_bypass/mpls_traffic_bypasses (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_traffic_bypasses is consid... |
Setter method for fwdl_state mapped from YANG variable/ brocade_firmware_rpc/ fwdl_status/ output/ fwdl_state ( enumeration ) If this variable is read - only ( config: false ) in the source YANG file then _set_fwdl_state is considered as a private method. Backends looking to populate this variable should do so via call... | def _set_fwdl_state(self, v, load=False):
"""
Setter method for fwdl_state, mapped from YANG variable /brocade_firmware_rpc/fwdl_status/output/fwdl_state (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_fwdl_state is considered as a private
method. Backe... |
Setter method for auth_check_level1 mapped from YANG variable/ routing_system/ interface/ ve/ intf_isis/ interface_isis/ auth_check/ auth_check_level1 ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_auth_check_level1 is considered as a private method. Backends looking t... | def _set_auth_check_level1(self, v, load=False):
"""
Setter method for auth_check_level1, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/auth_check/auth_check_level1 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auth_check_l... |
Setter method for auth_check_level2 mapped from YANG variable/ routing_system/ interface/ ve/ intf_isis/ interface_isis/ auth_check/ auth_check_level2 ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_auth_check_level2 is considered as a private method. Backends looking t... | def _set_auth_check_level2(self, v, load=False):
"""
Setter method for auth_check_level2, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/auth_check/auth_check_level2 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auth_check_l... |
Filer config to set custom private media path http:// django - filer. readthedocs. org/ en/ 0. 9. 4/ settings. html#filer - storages | def FILER_STORAGES(self):
"""Filer config to set custom private media path
http://django-filer.readthedocs.org/en/0.9.4/settings.html#filer-storages
"""
if not self.FILER_CUSTOM_NGINX_SERVER:
return {}
return {
'public': {
'main': {
... |
Setter method for get_port_channel_detail mapped from YANG variable/ brocade_lag_rpc/ get_port_channel_detail ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_get_port_channel_detail is considered as a private method. Backends looking to populate this variable should do so via... | def _set_get_port_channel_detail(self, v, load=False):
"""
Setter method for get_port_channel_detail, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_port_channel_detail is considered as a priva... |
Setter method for get_portchannel_info_by_intf mapped from YANG variable/ brocade_lag_rpc/ get_portchannel_info_by_intf ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_get_portchannel_info_by_intf is considered as a private method. Backends looking to populate this variable s... | def _set_get_portchannel_info_by_intf(self, v, load=False):
"""
Setter method for get_portchannel_info_by_intf, mapped from YANG variable /brocade_lag_rpc/get_portchannel_info_by_intf (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_portchannel_info_by_intf is c... |
Setter method for cir mapped from YANG variable/ policy_map/ class/ police/ cir ( uint64 ) If this variable is read - only ( config: false ) in the source YANG file then _set_cir is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_cir () directly. | def _set_cir(self, v, load=False):
"""
Setter method for cir, mapped from YANG variable /policy_map/class/police/cir (uint64)
If this variable is read-only (config: false) in the
source YANG file, then _set_cir is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for conform_set_dscp mapped from YANG variable/ policy_map/ class/ police/ conform_set_dscp ( dscp - value ) If this variable is read - only ( config: false ) in the source YANG file then _set_conform_set_dscp is considered as a private method. Backends looking to populate this variable should do so via c... | def _set_conform_set_dscp(self, v, load=False):
"""
Setter method for conform_set_dscp, mapped from YANG variable /policy_map/class/police/conform_set_dscp (dscp-value)
If this variable is read-only (config: false) in the
source YANG file, then _set_conform_set_dscp is considered as a private
method... |
Setter method for vlag mapped from YANG variable/ interface/ port_channel/ vlag ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_vlag is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_vlag () directly. | def _set_vlag(self, v, load=False):
"""
Setter method for vlag, mapped from YANG variable /interface/port_channel/vlag (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlag is considered as a private
method. Backends looking to populate this variable shoul... |
Setter method for priority_tag_enable mapped from YANG variable/ interface/ port_channel/ priority_tag_enable ( empty ) If this variable is read - only ( config: false ) in the source YANG file then _set_priority_tag_enable is considered as a private method. Backends looking to populate this variable should do so via c... | def _set_priority_tag_enable(self, v, load=False):
"""
Setter method for priority_tag_enable, mapped from YANG variable /interface/port_channel/priority_tag_enable (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_priority_tag_enable is considered as a private
... |
Setter method for load_balance_type mapped from YANG variable/ interface/ port_channel/ load_balance_type ( enumeration ) If this variable is read - only ( config: false ) in the source YANG file then _set_load_balance_type is considered as a private method. Backends looking to populate this variable should do so via c... | def _set_load_balance_type(self, v, load=False):
"""
Setter method for load_balance_type, mapped from YANG variable /interface/port_channel/load_balance_type (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_load_balance_type is considered as a private
me... |
Setter method for fcoeport mapped from YANG variable/ interface/ port_channel/ fcoeport ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_fcoeport is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_fcoeport... | def _set_fcoeport(self, v, load=False):
"""
Setter method for fcoeport, mapped from YANG variable /interface/port_channel/fcoeport (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoeport is considered as a private
method. Backends looking to populate thi... |
Setter method for openflowPo mapped from YANG variable/ interface/ port_channel/ openflowPo ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_openflowPo is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_op... | def _set_openflowPo(self, v, load=False):
"""
Setter method for openflowPo, mapped from YANG variable /interface/port_channel/openflowPo (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_openflowPo is considered as a private
method. Backends looking to popu... |
Setter method for port_profile_port mapped from YANG variable/ interface/ port_channel/ port_profile_port ( empty ) If this variable is read - only ( config: false ) in the source YANG file then _set_port_profile_port is considered as a private method. Backends looking to populate this variable should do so via calling... | def _set_port_profile_port(self, v, load=False):
"""
Setter method for port_profile_port, mapped from YANG variable /interface/port_channel/port_profile_port (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_profile_port is considered as a private
method. ... |
Setter method for service_policy mapped from YANG variable/ interface/ port_channel/ service_policy ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_service_policy is considered as a private method. Backends looking to populate this variable should do so via calling this... | def _set_service_policy(self, v, load=False):
"""
Setter method for service_policy, mapped from YANG variable /interface/port_channel/service_policy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_service_policy is considered as a private
method. Backends... |
Setter method for offsets mapped from YANG variable/ interface/ port_channel/ offsets ( uda - profile - name ) If this variable is read - only ( config: false ) in the source YANG file then _set_offsets is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_... | def _set_offsets(self, v, load=False):
"""
Setter method for offsets, mapped from YANG variable /interface/port_channel/offsets (uda-profile-name)
If this variable is read-only (config: false) in the
source YANG file, then _set_offsets is considered as a private
method. Backends looking to populate ... |
A wrapper for the entire rna alignment subgraph. | def align_rna(job, fastqs, univ_options, star_options):
"""
A wrapper for the entire rna alignment subgraph.
:param list fastqs: The input fastqs for alignment
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to star
:return... |
Align a pair of fastqs with STAR. | def run_star(job, fastqs, univ_options, star_options):
"""
Align a pair of fastqs with STAR.
:param list fastqs: The input fastqs for alignment
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to star
:return: Dict containin... |
A wrapper for sorting and indexing the genomic star bam generated by run_star. It is required since run_star returns a dict of 2 bams | def sort_and_index_star(job, star_bams, univ_options, star_options):
"""
A wrapper for sorting and indexing the genomic star bam generated by run_star. It is required
since run_star returns a dict of 2 bams
:param dict star_bams: The bams from run_star
:param dict univ_options: Dict of universal op... |
Setter method for pfc mapped from YANG variable/ interface/ port_channel/ qos/ flowcontrol/ pfc ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_pfc is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_pfc () dir... | def _set_pfc(self, v, load=False):
"""
Setter method for pfc, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_pfc is considered as a private
method. Backends looking to populate this variabl... |
Setter method for xstp mapped from YANG variable/ hardware/ custom_profile/ kap_custom_profile/ xstp ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_xstp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set... | def _set_xstp(self, v, load=False):
"""
Setter method for xstp, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/xstp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_xstp is considered as a private
method. Backends looking to populate... |
Setter method for rpvst mapped from YANG variable/ hardware/ custom_profile/ kap_custom_profile/ rpvst ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_rpvst is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _... | def _set_rpvst(self, v, load=False):
"""
Setter method for rpvst, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/rpvst (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rpvst is considered as a private
method. Backends looking to popu... |
Setter method for bfd_vxlan mapped from YANG variable/ hardware/ custom_profile/ kap_custom_profile/ bfd_vxlan ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_bfd_vxlan is considered as a private method. Backends looking to populate this variable should do so via callin... | def _set_bfd_vxlan(self, v, load=False):
"""
Setter method for bfd_vxlan, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_vxlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bfd_vxlan is considered as a private
method. Backends... |
Setter method for bfd_l3 mapped from YANG variable/ hardware/ custom_profile/ kap_custom_profile/ bfd_l3 ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_bfd_l3 is considered as a private method. Backends looking to populate this variable should do so via calling thisObj... | def _set_bfd_l3(self, v, load=False):
"""
Setter method for bfd_l3, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_l3 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bfd_l3 is considered as a private
method. Backends looking to ... |
Setter method for fcoe mapped from YANG variable/ hardware/ custom_profile/ kap_custom_profile/ fcoe ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_fcoe is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set... | def _set_fcoe(self, v, load=False):
"""
Setter method for fcoe, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/fcoe (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe is considered as a private
method. Backends looking to populate... |
Setter method for priority_table mapped from YANG variable/ cee_map/ priority_table ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_priority_table is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_priori... | def _set_priority_table(self, v, load=False):
"""
Setter method for priority_table, mapped from YANG variable /cee_map/priority_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_priority_table is considered as a private
method. Backends looking to pop... |
Setter method for remap mapped from YANG variable/ cee_map/ remap ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_remap is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_remap () directly. | def _set_remap(self, v, load=False):
"""
Setter method for remap, mapped from YANG variable /cee_map/remap (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_remap is considered as a private
method. Backends looking to populate this variable should
do so... |
Resets the state of the expression | def reset(self):
""" Resets the state of the expression """
self.expr = []
self.matcher = None
self.last_matcher = None
self.description = None |
Clone this expression | def clone(self):
""" Clone this expression """
from copy import copy
clone = copy(self)
clone.expr = copy(self.expr)
clone.factory = False
return clone |
Resolve the current expression against the supplied value | def resolve(self, value=None):
""" Resolve the current expression against the supplied value """
# If we still have an uninitialized matcher init it now
if self.matcher:
self._init_matcher()
# Evaluate the current set of matchers forming the expression
matcher = sel... |
Perform the actual assertion for the given matcher and value. Override this method to apply a special configuration when performing the assertion. If the assertion fails it should raise an AssertionError. | def _assertion(self, matcher, value):
""" Perform the actual assertion for the given matcher and value. Override
this method to apply a special configuration when performing the assertion.
If the assertion fails it should raise an AssertionError.
"""
# To support the synt... |
Applies any defined transformation to the given value | def _transform(self, value):
""" Applies any defined transformation to the given value
"""
if self.transform:
try:
value = self.transform(value)
except:
import sys
exc_type, exc_obj, exc_tb = sys.exc_info()
r... |
Converts the current expression into a single matcher applying coordination operators to operands according to their binding rules | def evaluate(self):
""" Converts the current expression into a single matcher, applying
coordination operators to operands according to their binding rules
"""
# Apply Shunting Yard algorithm to convert the infix expression
# into Reverse Polish Notation. Since we have a ver... |
Finds a matcher based on the given alias or raises an error if no matcher could be found. | def _find_matcher(self, alias):
""" Finds a matcher based on the given alias or raises an error if no
matcher could be found.
"""
matcher = lookup(alias)
if not matcher:
msg = 'Matcher "%s" not found' % alias
# Try to find similarly named matchers to ... |
Executes the current matcher appending it to the expression | def _init_matcher(self, *args, **kwargs):
""" Executes the current matcher appending it to the expression """
# If subject-less expectation are provided as arguments convert them
# to plain Hamcrest matchers in order to allow complex compositions
fn = lambda x: x.evaluate() if isinstanc... |
Specify a custom message for the matcher | def described_as(self, description, *args):
""" Specify a custom message for the matcher """
if len(args):
description = description.format(*args)
self.description = description
return self |
Setter method for fwdl_status mapped from YANG variable/ brocade_firmware_rpc/ fwdl_status ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_fwdl_status is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_fwdl_sta... | def _set_fwdl_status(self, v, load=False):
"""
Setter method for fwdl_status, mapped from YANG variable /brocade_firmware_rpc/fwdl_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_fwdl_status is considered as a private
method. Backends looking to populate... |
Setter method for get_port_profile_status mapped from YANG variable/ brocade_port_profile_ext_rpc/ get_port_profile_status ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_get_port_profile_status is considered as a private method. Backends looking to populate this variable sho... | def _set_get_port_profile_status(self, v, load=False):
"""
Setter method for get_port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_port_profile_status is consider... |
Setter method for fast_flood mapped from YANG variable/ routing_system/ router/ isis/ router_isis_cmds_holder/ router_isis_attributes/ fast_flood ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_fast_flood is considered as a private method. Backends looking to populate t... | def _set_fast_flood(self, v, load=False):
"""
Setter method for fast_flood, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/fast_flood (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fast_flood is considere... |
Setter method for set_overload_bit mapped from YANG variable/ routing_system/ router/ isis/ router_isis_cmds_holder/ router_isis_attributes/ set_overload_bit ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_set_overload_bit is considered as a private method. Backends loo... | def _set_set_overload_bit(self, v, load=False):
"""
Setter method for set_overload_bit, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_set_o... |
Setter method for reverse_metric mapped from YANG variable/ routing_system/ router/ isis/ router_isis_cmds_holder/ router_isis_attributes/ reverse_metric ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_reverse_metric is considered as a private method. Backends looking t... | def _set_reverse_metric(self, v, load=False):
"""
Setter method for reverse_metric, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/reverse_metric (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_reverse_met... |
Setter method for mirror_interface mapped from YANG variable/ openflow_global/ openflow/ mirror/ destination/ mirror_interface ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_mirror_interface is considered as a private method. Backends looking to populate this variable shoul... | def _set_mirror_interface(self, v, load=False):
"""
Setter method for mirror_interface, mapped from YANG variable /openflow_global/openflow/mirror/destination/mirror_interface (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mirror_interface is considered as a priv... |
Setter method for igmp_po_intf_cfg mapped from YANG variable/ interface/ port_channel/ ip/ igmp_po_intf_cfg ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_igmp_po_intf_cfg is considered as a private method. Backends looking to populate this variable should do so via ca... | def _set_igmp_po_intf_cfg(self, v, load=False):
"""
Setter method for igmp_po_intf_cfg, mapped from YANG variable /interface/port_channel/ip/igmp_po_intf_cfg (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmp_po_intf_cfg is considered as a private
metho... |
Setter method for interface_PO_ospf_conf mapped from YANG variable/ interface/ port_channel/ ip/ interface_PO_ospf_conf ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_interface_PO_ospf_conf is considered as a private method. Backends looking to populate this variable s... | def _set_interface_PO_ospf_conf(self, v, load=False):
"""
Setter method for interface_PO_ospf_conf, mapped from YANG variable /interface/port_channel/ip/interface_PO_ospf_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_PO_ospf_conf is considere... |
Setter method for interface_type mapped from YANG variable/ mpls_state/ rsvp/ interfaces/ interface_type ( dcm - interface - type ) If this variable is read - only ( config: false ) in the source YANG file then _set_interface_type is considered as a private method. Backends looking to populate this variable should do s... | def _set_interface_type(self, v, load=False):
"""
Setter method for interface_type, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_type (dcm-interface-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_type is considered as a private
met... |
Setter method for hello_status mapped from YANG variable/ mpls_state/ rsvp/ interfaces/ hello_status ( feature - config - status ) If this variable is read - only ( config: false ) in the source YANG file then _set_hello_status is considered as a private method. Backends looking to populate this variable should do so v... | def _set_hello_status(self, v, load=False):
"""
Setter method for hello_status, mapped from YANG variable /mpls_state/rsvp/interfaces/hello_status (feature-config-status)
If this variable is read-only (config: false) in the
source YANG file, then _set_hello_status is considered as a private
method. ... |
Setter method for interface_flooding_up_threshold mapped from YANG variable/ mpls_state/ rsvp/ interfaces/ interface_flooding_up_threshold ( feature - config - source ) If this variable is read - only ( config: false ) in the source YANG file then _set_interface_flooding_up_threshold is considered as a private method. ... | def _set_interface_flooding_up_threshold(self, v, load=False):
"""
Setter method for interface_flooding_up_threshold, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_flooding_up_threshold (feature-config-source)
If this variable is read-only (config: false) in the
source YANG file, then ... |
Setter method for error_counters mapped from YANG variable/ mpls_state/ rsvp/ interfaces/ error_counters ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_error_counters is considered as a private method. Backends looking to populate this variable should do so via calling... | def _set_error_counters(self, v, load=False):
"""
Setter method for error_counters, mapped from YANG variable /mpls_state/rsvp/interfaces/error_counters (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_error_counters is considered as a private
method. Back... |
Setter method for Cpu mapped from YANG variable/ rbridge_id/ threshold_monitor/ Cpu ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_Cpu is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_Cpu () directly. | def _set_Cpu(self, v, load=False):
"""
Setter method for Cpu, mapped from YANG variable /rbridge_id/threshold_monitor/Cpu (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Cpu is considered as a private
method. Backends looking to populate this variable sho... |
Setter method for Memory mapped from YANG variable/ rbridge_id/ threshold_monitor/ Memory ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_Memory is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_Memory (... | def _set_Memory(self, v, load=False):
"""
Setter method for Memory, mapped from YANG variable /rbridge_id/threshold_monitor/Memory (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Memory is considered as a private
method. Backends looking to populate this ... |
Setter method for Buffer mapped from YANG variable/ rbridge_id/ threshold_monitor/ Buffer ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_Buffer is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_Buffer (... | def _set_Buffer(self, v, load=False):
"""
Setter method for Buffer, mapped from YANG variable /rbridge_id/threshold_monitor/Buffer (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Buffer is considered as a private
method. Backends looking to populate this ... |
Setter method for global_rsvp_hello_acknowledgements mapped from YANG variable/ mpls_config/ router/ mpls/ mpls_cmds_holder/ rsvp/ global_rsvp_hello_acknowledgements ( empty ) If this variable is read - only ( config: false ) in the source YANG file then _set_global_rsvp_hello_acknowledgements is considered as a privat... | def _set_global_rsvp_hello_acknowledgements(self, v, load=False):
"""
Setter method for global_rsvp_hello_acknowledgements, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/rsvp/global_rsvp_hello_acknowledgements (empty)
If this variable is read-only (config: false) in the
source YANG... |
Setter method for interface_statistics_state mapped from YANG variable/ interface_statistics_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_interface_statistics_state is considered as a private method. Backends looking to populate this variable should do so via c... | def _set_interface_statistics_state(self, v, load=False):
"""
Setter method for interface_statistics_state, mapped from YANG variable /interface_statistics_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_statistics_state is considered as a pri... |
Setter method for system_config mapped from YANG variable/ system_config ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_system_config is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_system_config () d... | def _set_system_config(self, v, load=False):
"""
Setter method for system_config, mapped from YANG variable /system_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_config is considered as a private
method. Backends looking to populate this v... |
Setter method for vxlan_acl_state mapped from YANG variable/ vxlan_acl_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_vxlan_acl_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_vxlan_acl_st... | def _set_vxlan_acl_state(self, v, load=False):
"""
Setter method for vxlan_acl_state, mapped from YANG variable /vxlan_acl_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vxlan_acl_state is considered as a private
method. Backends looking to populat... |
Setter method for cpu_state mapped from YANG variable/ cpu_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_cpu_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_cpu_state () directly. | def _set_cpu_state(self, v, load=False):
"""
Setter method for cpu_state, mapped from YANG variable /cpu_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cpu_state is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for mem_state mapped from YANG variable/ mem_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_mem_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_mem_state () directly. | def _set_mem_state(self, v, load=False):
"""
Setter method for mem_state, mapped from YANG variable /mem_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mem_state is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for load_balance_lag mapped from YANG variable/ load_balance_lag ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_load_balance_lag is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_load_bala... | def _set_load_balance_lag(self, v, load=False):
"""
Setter method for load_balance_lag, mapped from YANG variable /load_balance_lag (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_load_balance_lag is considered as a private
method. Backends looking to pop... |
Setter method for mac_address_table mapped from YANG variable/ mac_address_table ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_mac_address_table is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_mac_ad... | def _set_mac_address_table(self, v, load=False):
"""
Setter method for mac_address_table, mapped from YANG variable /mac_address_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_address_table is considered as a private
method. Backends looking to... |
Setter method for mac_group mapped from YANG variable/ mac_group ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_mac_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_mac_group () directly. | def _set_mac_group(self, v, load=False):
"""
Setter method for mac_group, mapped from YANG variable /mac_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_group is considered as a private
method. Backends looking to populate this variable should
do... |
Setter method for latch_detection_config mapped from YANG variable/ latch_detection_config ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_latch_detection_config is considered as a private method. Backends looking to populate this variable should do so via calling thisO... | def _set_latch_detection_config(self, v, load=False):
"""
Setter method for latch_detection_config, mapped from YANG variable /latch_detection_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_latch_detection_config is considered as a private
method.... |
Setter method for topology_group mapped from YANG variable/ topology_group ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_topology_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_topology_group () di... | def _set_topology_group(self, v, load=False):
"""
Setter method for topology_group, mapped from YANG variable /topology_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_topology_group is considered as a private
method. Backends looking to populate this va... |
Setter method for mct_l2ys_state mapped from YANG variable/ mct_l2ys_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_mct_l2ys_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_mct_l2ys_state ... | def _set_mct_l2ys_state(self, v, load=False):
"""
Setter method for mct_l2ys_state, mapped from YANG variable /mct_l2ys_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mct_l2ys_state is considered as a private
method. Backends looking to populate th... |
Setter method for bridge_domain mapped from YANG variable/ bridge_domain ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_bridge_domain is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_bridge_domain () direct... | def _set_bridge_domain(self, v, load=False):
"""
Setter method for bridge_domain, mapped from YANG variable /bridge_domain (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_bridge_domain is considered as a private
method. Backends looking to populate this variab... |
Setter method for chassis mapped from YANG variable/ chassis ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_chassis is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_chassis () directly. | def _set_chassis(self, v, load=False):
"""
Setter method for chassis, mapped from YANG variable /chassis (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_chassis is considered as a private
method. Backends looking to populate this variable should
do so... |
Setter method for ovsdb_server mapped from YANG variable/ ovsdb_server ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_ovsdb_server is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_ovsdb_server () directly. | def _set_ovsdb_server(self, v, load=False):
"""
Setter method for ovsdb_server, mapped from YANG variable /ovsdb_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ovsdb_server is considered as a private
method. Backends looking to populate this variable s... |
Setter method for loam_state mapped from YANG variable/ loam_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_loam_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_loam_state () directly. | def _set_loam_state(self, v, load=False):
"""
Setter method for loam_state, mapped from YANG variable /loam_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_loam_state is considered as a private
method. Backends looking to populate this variable shou... |
Setter method for loam_show_debug_state mapped from YANG variable/ loam_show_debug_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_loam_show_debug_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj.... | def _set_loam_show_debug_state(self, v, load=False):
"""
Setter method for loam_show_debug_state, mapped from YANG variable /loam_show_debug_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_loam_show_debug_state is considered as a private
method. Bac... |
Setter method for overlay_transit mapped from YANG variable/ overlay_transit ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_overlay_transit is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_overlay_transit (... | def _set_overlay_transit(self, v, load=False):
"""
Setter method for overlay_transit, mapped from YANG variable /overlay_transit (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_overlay_transit is considered as a private
method. Backends looking to populate thi... |
Setter method for vpn_statistics_state mapped from YANG variable/ vpn_statistics_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_vpn_statistics_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _s... | def _set_vpn_statistics_state(self, v, load=False):
"""
Setter method for vpn_statistics_state, mapped from YANG variable /vpn_statistics_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vpn_statistics_state is considered as a private
method. Backend... |
Setter method for system_utilization_state mapped from YANG variable/ system_utilization_state ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_system_utilization_state is considered as a private method. Backends looking to populate this variable should do so via calling... | def _set_system_utilization_state(self, v, load=False):
"""
Setter method for system_utilization_state, mapped from YANG variable /system_utilization_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_utilization_state is considered as a private
... |
Setter method for get_show_cfm mapped from YANG variable/ brocade_dot1ag_rpc/ get_show_cfm ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_get_show_cfm is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_get_sho... | def _set_get_show_cfm(self, v, load=False):
"""
Setter method for get_show_cfm, mapped from YANG variable /brocade_dot1ag_rpc/get_show_cfm (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_show_cfm is considered as a private
method. Backends looking to popula... |
Returns a mapnik PostGIS or SQLite Datasource. | def make_dbsource(**kwargs):
"""Returns a mapnik PostGIS or SQLite Datasource."""
if 'spatialite' in connection.settings_dict.get('ENGINE'):
kwargs.setdefault('file', connection.settings_dict['NAME'])
return mapnik.SQLite(wkb_format='spatialite', **kwargs)
names = (('dbname', 'NAME'), ('user... |
Returns a map Layer. | def layer(self, queryset, stylename=None):
"""Returns a map Layer.
Arguments:
queryset -- QuerySet for Layer
Keyword args:
stylename -- str name of style to apply
"""
cls = RasterLayer if hasattr(queryset, 'image') else VectorLayer
layer = cls(queryset, s... |
Zoom map to geometry extent. | def zoom_bbox(self, bbox):
"""Zoom map to geometry extent.
Arguments:
bbox -- OGRGeometry polygon to zoom map extent
"""
try:
bbox.transform(self.map.srs)
except gdal.GDALException:
pass
else:
self.map.zoom_to_box(mapnik.Box2d(... |
Returns a default Style. | def style(self):
"""Returns a default Style."""
style = mapnik.Style()
rule = mapnik.Rule()
self._symbolizer = self.symbolizer()
rule.symbols.append(self._symbolizer)
style.rules.append(rule)
return style |
Setter method for cos_traffic_class mapped from YANG variable/ qos/ map/ cos_traffic_class ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_cos_traffic_class is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_c... | def _set_cos_traffic_class(self, v, load=False):
"""
Setter method for cos_traffic_class, mapped from YANG variable /qos/map/cos_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_traffic_class is considered as a private
method. Backends looking... |
Setter method for cos_dscp mapped from YANG variable/ qos/ map/ cos_dscp ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_cos_dscp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_cos_dscp () directly. | def _set_cos_dscp(self, v, load=False):
"""
Setter method for cos_dscp, mapped from YANG variable /qos/map/cos_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_dscp is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for traffic_class_cos mapped from YANG variable/ qos/ map/ traffic_class_cos ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_traffic_class_cos is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_t... | def _set_traffic_class_cos(self, v, load=False):
"""
Setter method for traffic_class_cos, mapped from YANG variable /qos/map/traffic_class_cos (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_cos is considered as a private
method. Backends looking... |
Setter method for traffic_class_mutation mapped from YANG variable/ qos/ map/ traffic_class_mutation ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_traffic_class_mutation is considered as a private method. Backends looking to populate this variable should do so via calling ... | def _set_traffic_class_mutation(self, v, load=False):
"""
Setter method for traffic_class_mutation, mapped from YANG variable /qos/map/traffic_class_mutation (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_mutation is considered as a private
meth... |
Setter method for traffic_class_dscp mapped from YANG variable/ qos/ map/ traffic_class_dscp ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_traffic_class_dscp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _se... | def _set_traffic_class_dscp(self, v, load=False):
"""
Setter method for traffic_class_dscp, mapped from YANG variable /qos/map/traffic_class_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_dscp is considered as a private
method. Backends loo... |
Setter method for dscp_traffic_class mapped from YANG variable/ qos/ map/ dscp_traffic_class ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_dscp_traffic_class is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _se... | def _set_dscp_traffic_class(self, v, load=False):
"""
Setter method for dscp_traffic_class, mapped from YANG variable /qos/map/dscp_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_dscp_traffic_class is considered as a private
method. Backends loo... |
Setter method for nport mapped from YANG variable/ rbridge_id/ ag/ pg/ nport ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_nport is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_nport () directly. | def _set_nport(self, v, load=False):
"""
Setter method for nport, mapped from YANG variable /rbridge_id/ag/pg/nport (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_nport is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for modes mapped from YANG variable/ rbridge_id/ ag/ pg/ modes ( pg - policy - types ) If this variable is read - only ( config: false ) in the source YANG file then _set_modes is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_modes () dir... | def _set_modes(self, v, load=False):
"""
Setter method for modes, mapped from YANG variable /rbridge_id/ag/pg/modes (pg-policy-types)
If this variable is read-only (config: false) in the
source YANG file, then _set_modes is considered as a private
method. Backends looking to populate this variable s... |
Setter method for service_policy mapped from YANG variable/ system_qos/ qos/ service_policy ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_service_policy is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_ser... | def _set_service_policy(self, v, load=False):
"""
Setter method for service_policy, mapped from YANG variable /system_qos/qos/service_policy (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_service_policy is considered as a private
method. Backends looking to p... |
A wrapper for run_fusion using the results from cutadapt and star as input. | def wrap_fusion(job,
fastqs,
star_output,
univ_options,
star_fusion_options,
fusion_inspector_options):
"""
A wrapper for run_fusion using the results from cutadapt and star as input.
:param tuple fastqs: RNA-Seq FASTQ Filestor... |
Runs STAR - Fusion and filters fusion calls using FusionInspector | def run_fusion(job,
fastqs,
junction_file,
univ_options,
star_fusion_options,
fusion_inspector_options):
"""
Runs STAR-Fusion and filters fusion calls using FusionInspector
:param tuple fastqs: RNA-Seq FASTQ Filestore IDs
:param... |
Parses STAR - Fusion format and returns an Expando object with basic features | def parse_star_fusion(infile):
"""
Parses STAR-Fusion format and returns an Expando object with basic features
:param str infile: path to STAR-Fusion prediction file
:return: Fusion prediction attributes
:rtype: bd2k.util.expando.Expando
"""
reader = csv.reader(infile, delimiter='\t')
h... |
Parses FusionInspector transcript file and returns dictionary of sequences | def get_transcripts(transcript_file):
"""
Parses FusionInspector transcript file and returns dictionary of sequences
:param str transcript_file: path to transcript FASTA
:return: de novo assembled transcripts
:rtype: dict
"""
with open(transcript_file, 'r') as fa:
transcripts = {}
... |
Finds the breakpoint in the fusion transcript and splits the 5 donor from the 3 acceptor | def split_fusion_transcript(annotation_path, transcripts):
"""
Finds the breakpoint in the fusion transcript and splits the 5' donor from the 3' acceptor
:param str annotation_path: Path to transcript annotation file
:param dict transcripts: Dictionary of fusion transcripts
:return: 5' donor sequen... |
Parses FusionInspector bed file to ascertain the ENSEMBL gene ids | def get_gene_ids(fusion_bed):
"""
Parses FusionInspector bed file to ascertain the ENSEMBL gene ids
:param str fusion_bed: path to fusion annotation
:return: dict
"""
with open(fusion_bed, 'r') as f:
gene_to_id = {}
regex = re.compile(r'(?P<gene>ENSG\d*)')
for line in f:... |
Writes STAR - Fusion results in Transgene BEDPE format | def reformat_star_fusion_output(job,
fusion_annot,
fusion_file,
transcript_file,
transcript_gff_file,
univ_options):
"""
Writes STAR-Fusion results in T... |
Setter method for association mapped from YANG variable/ interface/ port_channel/ switchport/ private_vlan/ association ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_association is considered as a private method. Backends looking to populate this variable should do so... | def _set_association(self, v, load=False):
"""
Setter method for association, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_association is considered as a private
meth... |
Setter method for mapping mapped from YANG variable/ interface/ port_channel/ switchport/ private_vlan/ mapping ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_mapping is considered as a private method. Backends looking to populate this variable should do so via calling this... | def _set_mapping(self, v, load=False):
"""
Setter method for mapping, mapped from YANG variable /interface/port_channel/switchport/private_vlan/mapping (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mapping is considered as a private
method. Backends looking ... |
Ensure that the required entries ( set or keys of a dict ) are present in the test set or keys of the test dict. | def _ensure_set_contains(test_object, required_object, test_set_name=None):
"""
Ensure that the required entries (set or keys of a dict) are present in the test set or keys
of the test dict.
:param set|dict test_object: The test set or dict
:param set|dict required_object: The entries that need to ... |
Ensure that the provided entries for the patient groups is formatted properly. | def _ensure_patient_group_is_ok(patient_object, patient_name=None):
"""
Ensure that the provided entries for the patient groups is formatted properly.
:param set|dict patient_object: The values passed to the samples patient group
:param str patient_name: Optional name for the set
:raises ParameterE... |
Add the entries in defaults dict into input_dict if they don t exist in input_dict | def _add_default_entries(input_dict, defaults_dict):
"""
Add the entries in defaults dict into input_dict if they don't exist in input_dict
This is based on the accepted answer at
http://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth
:param dict input_dict... |
Process one group from the input yaml. Ensure it has the required entries. If there is a subgroup that should be processed and then appended to the rest of the subgroups in that group handle it accordingly. | def _process_group(input_group, required_group, groupname, append_subgroups=None):
"""
Process one group from the input yaml. Ensure it has the required entries. If there is a
subgroup that should be processed and then appended to the rest of the subgroups in that group,
handle it accordingly.
:p... |
For a path to a fastq_1 file return a fastq_2 file with the same prefix and naming scheme. | def get_fastq_2(job, patient_id, sample_type, fastq_1):
"""
For a path to a fastq_1 file, return a fastq_2 file with the same prefix and naming scheme.
:param str patient_id: The patient_id
:param str sample_type: The sample type of the file
:param str fastq_1: The path to the fastq_1 file
:ret... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.