INSTRUCTION stringlengths 1 46.3k | RESPONSE stringlengths 75 80.2k |
|---|---|
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() dir... | 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 call... | 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_overla... | 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... | 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... | 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._s... | 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.
Arguments:
queryset -- QuerySet for Layer
Keyword args:
stylename -- str name of style to apply | 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.
Arguments:
bbox -- OGRGeometry polygon to zoom map 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 thisO... | 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 thisO... | 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 vi... | 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 th... | 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 th... | 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 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() ... | 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 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() direct... | 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 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... | 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.
:param tuple fastqs: RNA-Seq FASTQ Filestore IDs
:param dict star_output: Dictionary containing STAR output files
:param dict univ_options: universal arguments used by almost all tools
:param dict star_fusion_options: STAR-Fusi... | 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
:param tuple fastqs: RNA-Seq FASTQ Filestore IDs
:param toil.fileStore.FileID junction_file: Chimeric junction file
:param dict univ_options: universal arguments used by almost all tools
:param dict star_fusion_options: STAR-Fusion specifi... | 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
:param str infile: path to STAR-Fusion prediction file
:return: Fusion prediction attributes
:rtype: bd2k.util.expando.Expando | 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
:param str transcript_file: path to transcript FASTA
:return: de novo assembled transcripts
:rtype: dict | 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
:param str annotation_path: Path to transcript annotation file
:param dict transcripts: Dictionary of fusion transcripts
:return: 5' donor sequences and 3' acceptor sequences
:rtype: tuple | 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
:param str fusion_bed: path to fusion annotation
:return: dict | 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
:param toil.fileStore.FileID fusion_annot: Fusion annotation
:param toil.fileStore.FileID fusion_file: STAR-fusion prediction file
:param toil.fileStore.FileID transcript_file: Fusion transcript FASTA file
:param toil.fileStore.FileID transcript_gff_... | 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
... | 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 call... | 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.
:param set|dict test_object: The test set or dict
:param set|dict required_object: The entries that need to be present in the test set (keys of
input dict if input is dict)
:param ... | 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.
:param set|dict patient_object: The values passed to the samples patient group
:param str patient_name: Optional name for the set
:raises ParameterError: If required entry doesnt exist | 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
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: The dict to be updated
:param dict defaults_dict: Dict cont... | 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... |
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
:return: The path to the fastq_2 file
:rtype: str | 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... |
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.
:param dict input_group: The dict of values of the input group
:param dict required_group: Th... | 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... |
Parse a dict of patient entries to retain only the useful entries (The user may provide more
than we need and we don't want to download redundant things)
:param dict patient_dict: The dict of patient entries parsed from the input config
:param bool skip_fusions: A flag to identify if we're skipping fusions... | def parse_patients(job, patient_dict, skip_fusions=False):
"""
Parse a dict of patient entries to retain only the useful entries (The user may provide more
than we need and we don't want to download redundant things)
:param dict patient_dict: The dict of patient entries parsed from the input config
... |
Parse the input yaml config file and download all tool inputs into the file store.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job.
:return: tuple of dict of sample dicts, dict of universal options, dict of dicts of tool o... | def _parse_config_file(job, config_file, max_cores=None):
"""
Parse the input yaml config file and download all tool inputs into the file store.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job.
:return: tuple of di... |
Parse the config file and spawn a ProTECT job for every input sample.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job. | def parse_config_file(job, config_file, max_cores=None):
"""
Parse the config file and spawn a ProTECT job for every input sample.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job.
"""
sample_set, univ_options, ... |
Ascertain the number of cpus allowed for each high-compte job instance (bwa, star, rsem, phlat).
:param max_cores: The user-specified max
:return: The number of cpus allowed for each high-compte job instance
:rtype: int | def ascertain_cpu_share(max_cores=None):
"""
Ascertain the number of cpus allowed for each high-compte job instance (bwa, star, rsem, phlat).
:param max_cores: The user-specified max
:return: The number of cpus allowed for each high-compte job instance
:rtype: int
"""
# Ascertain the number... |
The launchpad for ProTECT. The DAG for ProTECT can be viewed in Flowchart.txt.
:param dict patient_data: Dict of information regarding the input sequences for the patient
:param dict univ_options: Dict of universal options used by almost all tools
:param dict tool_options: Options for the various tools | def launch_protect(job, patient_data, univ_options, tool_options):
"""
The launchpad for ProTECT. The DAG for ProTECT can be viewed in Flowchart.txt.
:param dict patient_data: Dict of information regarding the input sequences for the patient
:param dict univ_options: Dict of universal options used by a... |
Iterate through all the tool options and download required files from their remote locations.
:param dict tools: A dict of dicts of all tools, and their options
:param str outer_key: If this is being called recursively, what was the outer dict called?
:param list mutation_caller_list: A list of mutation ca... | def get_all_tool_inputs(job, tools, outer_key='', mutation_caller_list=None):
"""
Iterate through all the tool options and download required files from their remote locations.
:param dict tools: A dict of dicts of all tools, and their options
:param str outer_key: If this is being called recursively, w... |
Get the input file from s3 or disk and write to file store.
:param str input_flag: The name of the flag
:param str input_file: The value passed in the config file
:param str encryption_key: Path to the encryption key if encrypted with sse-c
:param bool per_file_encryption: If encrypted, was the file en... | def get_pipeline_inputs(job, input_flag, input_file, encryption_key=None, per_file_encryption=False,
gdc_download_token=None):
"""
Get the input file from s3 or disk and write to file store.
:param str input_flag: The name of the flag
:param str input_file: The value passed in t... |
Obtain the input files for the patient and write them to the file store.
:param dict patient_dict: The input fastq dict
patient_dict:
|- 'tumor_dna_fastq_[12]' OR 'tumor_dna_bam': str
|- 'tumor_rna_fastq_[12]' OR 'tumor_rna_bam': str
|- 'normal_dna_fastq_[12]... | def prepare_samples(job, patient_dict, univ_options):
"""
Obtain the input files for the patient and write them to the file store.
:param dict patient_dict: The input fastq dict
patient_dict:
|- 'tumor_dna_fastq_[12]' OR 'tumor_dna_bam': str
|- 'tumor_rna_fastq_[12]... |
Convenience function to return the bam and its index in the correct format for a sample type.
:param dict patient_dict: dict of patient info
:param str sample_type: 'tumor_rna', 'tumor_dna', 'normal_dna'
:param dict univ_options: Dict of universal options used by almost all tools
:param dict bwa_option... | def get_patient_bams(job, patient_dict, sample_type, univ_options, bwa_options, mutect_options):
"""
Convenience function to return the bam and its index in the correct format for a sample type.
:param dict patient_dict: dict of patient info
:param str sample_type: 'tumor_rna', 'tumor_dna', 'normal_dna... |
Convenience function to get the vcf from the patient dict
:param dict patient_dict: dict of patient info
:return: The vcf
:rtype: toil.fileStore.FileID | def get_patient_vcf(job, patient_dict):
"""
Convenience function to get the vcf from the patient dict
:param dict patient_dict: dict of patient info
:return: The vcf
:rtype: toil.fileStore.FileID
"""
temp = job.fileStore.readGlobalFile(patient_dict['mutation_vcf'],
... |
Convenience function to get the mhc haplotype from the patient dict
:param dict patient_dict: dict of patient info
:return: The MHCI and MHCII haplotypes
:rtype: toil.fileStore.FileID | def get_patient_mhc_haplotype(job, patient_dict):
"""
Convenience function to get the mhc haplotype from the patient dict
:param dict patient_dict: dict of patient info
:return: The MHCI and MHCII haplotypes
:rtype: toil.fileStore.FileID
"""
haplotype_archive = job.fileStore.readGlobalFile(... |
Convenience function to get the expression from the patient dict
:param dict patient_dict: dict of patient info
:return: The gene and isoform expression
:rtype: toil.fileStore.FileID | def get_patient_expression(job, patient_dict):
"""
Convenience function to get the expression from the patient dict
:param dict patient_dict: dict of patient info
:return: The gene and isoform expression
:rtype: toil.fileStore.FileID
"""
expression_archive = job.fileStore.readGlobalFile(pat... |
Generate a config file for a ProTECT run on hg19.
:return: None | def generate_config_file():
"""
Generate a config file for a ProTECT run on hg19.
:return: None
"""
shutil.copy(os.path.join(os.path.dirname(__file__), 'input_parameters.yaml'),
os.path.join(os.getcwd(), 'ProTECT_config.yaml')) |
This is the main function for ProTECT. | def main():
"""
This is the main function for ProTECT.
"""
parser = argparse.ArgumentParser(prog='ProTECT',
description='Prediction of T-Cell Epitopes for Cancer Therapy',
epilog='Contact Arjun Rao (aarao@ucsc.edu) if you encounte... |
Setter method for stp, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/stp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_stp is considered as a private
method. Backends looking to populate this variable should
do... | def _set_stp(self, v, load=False):
"""
Setter method for stp, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/stp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_stp is considered as a private
method. Backends ... |
Setter method for rstp, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/rstp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rstp is considered as a private
method. Backends looking to populate this variable should
... | def _set_rstp(self, v, load=False):
"""
Setter method for rstp, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/rstp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rstp is considered as a private
method. Backe... |
Setter method for mstp, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/mstp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mstp is considered as a private
method. Backends looking to populate this variable should
... | def _set_mstp(self, v, load=False):
"""
Setter method for mstp, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/mstp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mstp is considered as a private
method. Backe... |
Copy either a bot layout template or a Trading-Bots project
layout template into the specified directory.
:param bot_or_project: The string 'bot' or 'project'.
:param name: The name of the bot or project.
:param target: The directory to which the template should be copied.
:param options: The additi... | def handle_template(bot_or_project, name, target=None, **options):
"""
Copy either a bot layout template or a Trading-Bots project
layout template into the specified directory.
:param bot_or_project: The string 'bot' or 'project'.
:param name: The name of the bot or project.
:param target: The d... |
Make sure that the file is writeable.
Useful if our source is read-only. | def make_writeable(filename):
"""
Make sure that the file is writeable.
Useful if our source is read-only.
"""
if not os.access(filename, os.W_OK):
st = os.stat(filename)
new_permissions = stat.S_IMODE(st.st_mode) | stat.S_IWUSR
os.chmod(filename, new_permissions) |
Setter method for fcoe_fabric_mode, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fabric_mode (fcoe-fabric-mode-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_fabric_mode is considered as a private
method. Backends looking to populate this variable should
... | def _set_fcoe_fabric_mode(self, v, load=False):
"""
Setter method for fcoe_fabric_mode, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fabric_mode (fcoe-fabric-mode-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_fabric_mode is considered as a private
... |
Setter method for fcoe_fcf_map, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcf_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_fcf_map is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj... | def _set_fcoe_fcf_map(self, v, load=False):
"""
Setter method for fcoe_fcf_map, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcf_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_fcf_map is considered as a private
method. Backends looking to pop... |
Setter method for fcoe_fcport_group_config, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcport_group_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_fcport_group_config is considered as a private
method. Backends looking to populate this vari... | def _set_fcoe_fcport_group_config(self, v, load=False):
"""
Setter method for fcoe_fcport_group_config, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcport_group_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_fcport_group_config is consid... |
Returns game cards URL filter for a given cardborder
type (TAG_CARDBORDER_NORMAL / TAG_CARDBORDER_FOIL).
To be used in URL_GAMECARDS.
:param str|unicode cardborder_type:
:rtype: str|unicode | def get_filter_cardborder(*cardborder_type):
"""Returns game cards URL filter for a given cardborder
type (TAG_CARDBORDER_NORMAL / TAG_CARDBORDER_FOIL).
To be used in URL_GAMECARDS.
:param str|unicode cardborder_type:
:rtype: str|unicode
"""
filter_ = []
for type_ in cardborder_type:
... |
Setter method for set_http_application_url, mapped from YANG variable /brocade_http_redirect_rpc/set_http_application_url (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_set_http_application_url is considered as a private
method. Backends looking to populate this varia... | def _set_set_http_application_url(self, v, load=False):
"""
Setter method for set_http_application_url, mapped from YANG variable /brocade_http_redirect_rpc/set_http_application_url (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_set_http_application_url is conside... |
Setter method for mode, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_switchport/output/switchport/mode (interface:switchport-mode-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_mode is considered as a private
method. Backends looking to populate ... | def _set_mode(self, v, load=False):
"""
Setter method for mode, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_switchport/output/switchport/mode (interface:switchport-mode-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_mode is considered as a p... |
Setter method for igmps_version, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp/snooping/igmps_version (igmps-version-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmps_version is considered as a private
method. Backends looking to populate this variable sho... | def _set_igmps_version(self, v, load=False):
"""
Setter method for igmps_version, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp/snooping/igmps_version (igmps-version-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmps_version is considered as a private
... |
Setter method for igmps_static_group, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp/snooping/igmps_static_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmps_static_group is considered as a private
method. Backends looking to populate this variable sh... | def _set_igmps_static_group(self, v, load=False):
"""
Setter method for igmps_static_group, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp/snooping/igmps_static_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmps_static_group is considered as a pri... |
Setter method for dynamic_bypass_global, mapped from YANG variable /mpls_state/dynamic_bypass/dynamic_bypass_global (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dynamic_bypass_global is considered as a private
method. Backends looking to populate this variable... | def _set_dynamic_bypass_global(self, v, load=False):
"""
Setter method for dynamic_bypass_global, mapped from YANG variable /mpls_state/dynamic_bypass/dynamic_bypass_global (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dynamic_bypass_global is considered as... |
Setter method for spt_threshold, mapped from YANG variable /rbridge_id/router/hide_pim_holder/pim/spt_threshold (spt-thr-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_spt_threshold is considered as a private
method. Backends looking to populate this variable should
... | def _set_spt_threshold(self, v, load=False):
"""
Setter method for spt_threshold, mapped from YANG variable /rbridge_id/router/hide_pim_holder/pim/spt_threshold (spt-thr-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_spt_threshold is considered as a private
me... |
Setter method for rp_address, mapped from YANG variable /rbridge_id/router/hide_pim_holder/pim/rp_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_rp_address is considered as a private
method. Backends looking to populate this variable should
do so via call... | def _set_rp_address(self, v, load=False):
"""
Setter method for rp_address, mapped from YANG variable /rbridge_id/router/hide_pim_holder/pim/rp_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_rp_address is considered as a private
method. Backends looki... |
Setter method for system_utilization, mapped from YANG variable /telemetry/profile/system_utilization (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_utilization is considered as a private
method. Backends looking to populate this variable should
do so via ... | def _set_system_utilization(self, v, load=False):
"""
Setter method for system_utilization, mapped from YANG variable /telemetry/profile/system_utilization (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_utilization is considered as a private
method. Ba... |
Setter method for enhanced_voq_discard_pkts, mapped from YANG variable /telemetry/profile/enhanced_voq_discard_pkts (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_enhanced_voq_discard_pkts is considered as a private
method. Backends looking to populate this variable ... | def _set_enhanced_voq_discard_pkts(self, v, load=False):
"""
Setter method for enhanced_voq_discard_pkts, mapped from YANG variable /telemetry/profile/enhanced_voq_discard_pkts (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_enhanced_voq_discard_pkts is considered... |
Setter method for enhanced_voq_max_queue_depth, mapped from YANG variable /telemetry/profile/enhanced_voq_max_queue_depth (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_enhanced_voq_max_queue_depth is considered as a private
method. Backends looking to populate this ... | def _set_enhanced_voq_max_queue_depth(self, v, load=False):
"""
Setter method for enhanced_voq_max_queue_depth, mapped from YANG variable /telemetry/profile/enhanced_voq_max_queue_depth (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_enhanced_voq_max_queue_depth i... |
Setter method for tm_voq, mapped from YANG variable /telemetry/profile/tm_voq (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_tm_voq is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_tm_voq() direct... | def _set_tm_voq(self, v, load=False):
"""
Setter method for tm_voq, mapped from YANG variable /telemetry/profile/tm_voq (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_tm_voq is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for mpls_traffic_bypass, mapped from YANG variable /telemetry/profile/mpls_traffic_bypass (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_traffic_bypass is considered as a private
method. Backends looking to populate this variable should
do so v... | def _set_mpls_traffic_bypass(self, v, load=False):
"""
Setter method for mpls_traffic_bypass, mapped from YANG variable /telemetry/profile/mpls_traffic_bypass (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_traffic_bypass is considered as a private
method... |
Setter method for any, mapped from YANG variable /overlay_class_map/cmap_seq/match/any (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_any is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_any() di... | def _set_any(self, v, load=False):
"""
Setter method for any, mapped from YANG variable /overlay_class_map/cmap_seq/match/any (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_any is considered as a private
method. Backends looking to populate this variable sho... |
Setter method for contn_src_dst, mapped from YANG variable /overlay_class_map/cmap_seq/match/contn_src_dst (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_contn_src_dst is considered as a private
method. Backends looking to populate this variable should
do so... | def _set_contn_src_dst(self, v, load=False):
"""
Setter method for contn_src_dst, mapped from YANG variable /overlay_class_map/cmap_seq/match/contn_src_dst (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_contn_src_dst is considered as a private
method. Ba... |
Setter method for source, mapped from YANG variable /overlay_class_map/cmap_seq/match/source (ipv4-address)
If this variable is read-only (config: false) in the
source YANG file, then _set_source is considered as a private
method. Backends looking to populate this variable should
do so via calling thisO... | def _set_source(self, v, load=False):
"""
Setter method for source, mapped from YANG variable /overlay_class_map/cmap_seq/match/source (ipv4-address)
If this variable is read-only (config: false) in the
source YANG file, then _set_source is considered as a private
method. Backends looking to populat... |
Setter method for ma_bd_vid, mapped from YANG variable /protocol/cfm/domain_name/ma_name/ma_bd_vid (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_ma_bd_vid is considered as a private
method. Backends looking to populate this variable should
do so via calling th... | def _set_ma_bd_vid(self, v, load=False):
"""
Setter method for ma_bd_vid, mapped from YANG variable /protocol/cfm/domain_name/ma_name/ma_bd_vid (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_ma_bd_vid is considered as a private
method. Backends looking to p... |
Setter method for dom_name, mapped from YANG variable /ip/dns/dom_name (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dom_name is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_dom_name() dire... | def _set_dom_name(self, v, load=False):
"""
Setter method for dom_name, mapped from YANG variable /ip/dns/dom_name (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dom_name is considered as a private
method. Backends looking to populate this variable shoul... |
Setter method for name_server, mapped from YANG variable /ip/dns/name_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_name_server is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_name_server... | def _set_name_server(self, v, load=False):
"""
Setter method for name_server, mapped from YANG variable /ip/dns/name_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_name_server is considered as a private
method. Backends looking to populate this variabl... |
Setter method for circuit_encap, mapped from YANG variable /isis_state/interface_detail/isis_intf/circuit_encap (isis-circ-encap)
If this variable is read-only (config: false) in the
source YANG file, then _set_circuit_encap is considered as a private
method. Backends looking to populate this variable shoul... | def _set_circuit_encap(self, v, load=False):
"""
Setter method for circuit_encap, mapped from YANG variable /isis_state/interface_detail/isis_intf/circuit_encap (isis-circ-encap)
If this variable is read-only (config: false) in the
source YANG file, then _set_circuit_encap is considered as a private
... |
Setter method for circ_chstats, mapped from YANG variable /isis_state/interface_detail/isis_intf/circ_chstats (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_circ_chstats is considered as a private
method. Backends looking to populate this variable should
do ... | def _set_circ_chstats(self, v, load=False):
"""
Setter method for circ_chstats, mapped from YANG variable /isis_state/interface_detail/isis_intf/circ_chstats (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_circ_chstats is considered as a private
method. B... |
Setter method for reverse_metric_info, mapped from YANG variable /isis_state/interface_detail/isis_intf/reverse_metric_info (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_reverse_metric_info is considered as a private
method. Backends looking to populate this va... | def _set_reverse_metric_info(self, v, load=False):
"""
Setter method for reverse_metric_info, mapped from YANG variable /isis_state/interface_detail/isis_intf/reverse_metric_info (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_reverse_metric_info is considere... |
Setter method for mpls_info, mapped from YANG variable /isis_state/interface_detail/isis_intf/mpls_info (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_info is considered as a private
method. Backends looking to populate this variable should
do so via ca... | def _set_mpls_info(self, v, load=False):
"""
Setter method for mpls_info, mapped from YANG variable /isis_state/interface_detail/isis_intf/mpls_info (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mpls_info is considered as a private
method. Backends look... |
Setter method for ldp_sync_info, mapped from YANG variable /isis_state/interface_detail/isis_intf/ldp_sync_info (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_sync_info is considered as a private
method. Backends looking to populate this variable should
... | def _set_ldp_sync_info(self, v, load=False):
"""
Setter method for ldp_sync_info, mapped from YANG variable /isis_state/interface_detail/isis_intf/ldp_sync_info (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_sync_info is considered as a private
metho... |
Setter method for config_src, mapped from YANG variable /brocade_tunnels_ext_rpc/get_tunnel_info/output/tunnel/config_src (config-src-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_config_src is considered as a private
method. Backends looking to populate this variabl... | def _set_config_src(self, v, load=False):
"""
Setter method for config_src, mapped from YANG variable /brocade_tunnels_ext_rpc/get_tunnel_info/output/tunnel/config_src (config-src-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_config_src is considered as a private... |
Setter method for fcoe_interface_bind, mapped from YANG variable /interface/fcoe/fcoe_interface_bind (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_interface_bind is considered as a private
method. Backends looking to populate this variable should
do so... | def _set_fcoe_interface_bind(self, v, load=False):
"""
Setter method for fcoe_interface_bind, mapped from YANG variable /interface/fcoe/fcoe_interface_bind (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_interface_bind is considered as a private
meth... |
Setter method for microcode, mapped from YANG variable /firmware/peripheral_update/microcode (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_microcode is considered as a private
method. Backends looking to populate this variable should
do so via calling thisO... | def _set_microcode(self, v, load=False):
"""
Setter method for microcode, mapped from YANG variable /firmware/peripheral_update/microcode (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_microcode is considered as a private
method. Backends looking to popu... |
Setter method for ldp_fec_summary, mapped from YANG variable /mpls_state/ldp/fec/ldp_fec_summary (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_fec_summary is considered as a private
method. Backends looking to populate this variable should
do so via cal... | def _set_ldp_fec_summary(self, v, load=False):
"""
Setter method for ldp_fec_summary, mapped from YANG variable /mpls_state/ldp/fec/ldp_fec_summary (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_fec_summary is considered as a private
method. Backends... |
Setter method for ldp_fec_prefixes, mapped from YANG variable /mpls_state/ldp/fec/ldp_fec_prefixes (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_fec_prefixes is considered as a private
method. Backends looking to populate this variable should
do so via ... | def _set_ldp_fec_prefixes(self, v, load=False):
"""
Setter method for ldp_fec_prefixes, mapped from YANG variable /mpls_state/ldp/fec/ldp_fec_prefixes (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_fec_prefixes is considered as a private
method. Back... |
Setter method for ldp_fec_vcs, mapped from YANG variable /mpls_state/ldp/fec/ldp_fec_vcs (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_fec_vcs is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj... | def _set_ldp_fec_vcs(self, v, load=False):
"""
Setter method for ldp_fec_vcs, mapped from YANG variable /mpls_state/ldp/fec/ldp_fec_vcs (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_fec_vcs is considered as a private
method. Backends looking to popu... |
Setter method for ldp_fec_prefix_prefix, mapped from YANG variable /mpls_state/ldp/fec/ldp_fec_prefix_prefix (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_fec_prefix_prefix is considered as a private
method. Backends looking to populate this variable should... | def _set_ldp_fec_prefix_prefix(self, v, load=False):
"""
Setter method for ldp_fec_prefix_prefix, mapped from YANG variable /mpls_state/ldp/fec/ldp_fec_prefix_prefix (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ldp_fec_prefix_prefix is considered as a priv... |
Setter method for fcf_map_fif_rbid, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcf_map/fcf_map_fif_rbid (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcf_map_fif_rbid is considered as a private
method. Backends looking to populate this variable should... | def _set_fcf_map_fif_rbid(self, v, load=False):
"""
Setter method for fcf_map_fif_rbid, mapped from YANG variable /fcoe/fcoe_fabric_map/fcoe_fcf_map/fcf_map_fif_rbid (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcf_map_fif_rbid is considered as a private
... |
Setter method for tunnel_dst, mapped from YANG variable /overlay_gateway/site/tunnel_dst (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_tunnel_dst is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_... | def _set_tunnel_dst(self, v, load=False):
"""
Setter method for tunnel_dst, mapped from YANG variable /overlay_gateway/site/tunnel_dst (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_tunnel_dst is considered as a private
method. Backends looking to populate th... |
Setter method for extend, mapped from YANG variable /overlay_gateway/site/extend (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_extend is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_extend(... | def _set_extend(self, v, load=False):
"""
Setter method for extend, mapped from YANG variable /overlay_gateway/site/extend (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_extend is considered as a private
method. Backends looking to populate this variable... |
Setter method for show_linkinfo, mapped from YANG variable /brocade_fabric_service_rpc/show_linkinfo (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_linkinfo is considered as a private
method. Backends looking to populate this variable should
do so via calling... | def _set_show_linkinfo(self, v, load=False):
"""
Setter method for show_linkinfo, mapped from YANG variable /brocade_fabric_service_rpc/show_linkinfo (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_linkinfo is considered as a private
method. Backends looki... |
Setter method for show_portindex_interface_info, mapped from YANG variable /brocade_fabric_service_rpc/show_portindex_interface_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_portindex_interface_info is considered as a private
method. Backends looking to pop... | def _set_show_portindex_interface_info(self, v, load=False):
"""
Setter method for show_portindex_interface_info, mapped from YANG variable /brocade_fabric_service_rpc/show_portindex_interface_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_portindex_inte... |
Setter method for show_fibrechannel_interface_info, mapped from YANG variable /brocade_fabric_service_rpc/show_fibrechannel_interface_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_fibrechannel_interface_info is considered as a private
method. Backends looki... | def _set_show_fibrechannel_interface_info(self, v, load=False):
"""
Setter method for show_fibrechannel_interface_info, mapped from YANG variable /brocade_fabric_service_rpc/show_fibrechannel_interface_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_fibre... |
Setter method for show_fabric_trunk_info, mapped from YANG variable /brocade_fabric_service_rpc/show_fabric_trunk_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_fabric_trunk_info is considered as a private
method. Backends looking to populate this variable s... | def _set_show_fabric_trunk_info(self, v, load=False):
"""
Setter method for show_fabric_trunk_info, mapped from YANG variable /brocade_fabric_service_rpc/show_fabric_trunk_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_fabric_trunk_info is considered as ... |
Request | def request(self, command_string):
""" Request """
self.tn.write((command_string + "\n").encode())
if self.debug: print "Telnet Request: %s" % (command_string)
while True:
response = urllib.unquote(self.tn.read_until(b"\n").decode())
if "success... |
Poll
Check for a non-response string generated by LCDd and return any string read.
LCDd generates strings for key presses, menu events & screen visibility changes. | def poll(self):
"""
Poll
Check for a non-response string generated by LCDd and return any string read.
LCDd generates strings for key presses, menu events & screen visibility changes.
"""
if select.select([self.tn], [], [], 0) == ([self.tn], [], []):
... |
Sets the client's output (on, off, int)
Sets the general purpose output on some display modules to this value.
Use on to set all outputs to high state, and off to set all to low state.
The meaning of the integer value depends on your specific device, usually
it is a bit pattern ... | def output(self, value):
"""
Sets the client's output (on, off, int)
Sets the general purpose output on some display modules to this value.
Use on to set all outputs to high state, and off to set all to low state.
The meaning of the integer value depends on your specific... |
Setter method for af_ipv6_unicast, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_af_ipv6_unicast is considered as a private
method. Backends lookin... | def _set_af_ipv6_unicast(self, v, load=False):
"""
Setter method for af_ipv6_unicast, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_af_ipv6_uni... |
Setter method for rp_cand_grp_prefix, mapped from YANG variable /rbridge_id/router/hide_pim_holder/pim/rp_candidate/rp_cand_grp_prefix (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_rp_cand_grp_prefix is considered as a private
method. Backends looking to populate th... | def _set_rp_cand_grp_prefix(self, v, load=False):
"""
Setter method for rp_cand_grp_prefix, mapped from YANG variable /rbridge_id/router/hide_pim_holder/pim/rp_candidate/rp_cand_grp_prefix (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_rp_cand_grp_prefix is consi... |
Configure the settings (this happens as a side effect of accessing the
first setting), configure logging and populate the app registry. | def setup():
"""
Configure the settings (this happens as a side effect of accessing the
first setting), configure logging and populate the app registry.
"""
from trading_bots.bots import bots
from trading_bots.conf import settings
bots.populate(settings.installed_bots) |
Setter method for gre, mapped from YANG variable /interface/tunnel/mode/gre (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_gre is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_gre() directly. | def _set_gre(self, v, load=False):
"""
Setter method for gre, mapped from YANG variable /interface/tunnel/mode/gre (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_gre is considered as a private
method. Backends looking to populate this variable should
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.