INSTRUCTION
stringlengths
1
46.3k
RESPONSE
stringlengths
75
80.2k
Setter method for bgp_state, mapped from YANG variable /bgp_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_bgp_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_bgp_state() directl...
def _set_bgp_state(self, v, load=False): """ Setter method for bgp_state, mapped from YANG variable /bgp_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_bgp_state is considered as a private method. Backends looking to populate this variable should ...
Setter method for acl_mirror, mapped from YANG variable /acl_mirror (container) If this variable is read-only (config: false) in the source YANG file, then _set_acl_mirror is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_acl_mirror() dir...
def _set_acl_mirror(self, v, load=False): """ Setter method for acl_mirror, mapped from YANG variable /acl_mirror (container) If this variable is read-only (config: false) in the source YANG file, then _set_acl_mirror is considered as a private method. Backends looking to populate this variable shou...
Setter method for time_property, mapped from YANG variable /ptp_state/time_property (container) If this variable is read-only (config: false) in the source YANG file, then _set_time_property is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
def _set_time_property(self, v, load=False): """ Setter method for time_property, mapped from YANG variable /ptp_state/time_property (container) If this variable is read-only (config: false) in the source YANG file, then _set_time_property is considered as a private method. Backends looking to popul...
Setter method for policy_admin_group, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/policy_admin_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_policy_admin_group is considered as a private method. Backends looking to populate this ...
def _set_policy_admin_group(self, v, load=False): """ Setter method for policy_admin_group, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/policy_admin_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_policy_admin_group is consider...
Setter method for heavy, mapped from YANG variable /rbridge_id/bp_rate_limit/heavy (container) If this variable is read-only (config: false) in the source YANG file, then _set_heavy is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_heavy(...
def _set_heavy(self, v, load=False): """ Setter method for heavy, mapped from YANG variable /rbridge_id/bp_rate_limit/heavy (container) If this variable is read-only (config: false) in the source YANG file, then _set_heavy is considered as a private method. Backends looking to populate this variable...
Setter method for msg_received, mapped from YANG variable /bgp_state/neighbor/evpn/msg_received (container) If this variable is read-only (config: false) in the source YANG file, then _set_msg_received is considered as a private method. Backends looking to populate this variable should do so via calling...
def _set_msg_received(self, v, load=False): """ Setter method for msg_received, mapped from YANG variable /bgp_state/neighbor/evpn/msg_received (container) If this variable is read-only (config: false) in the source YANG file, then _set_msg_received is considered as a private method. Backends lookin...
Redis result backend config
def CELERY_RESULT_BACKEND(self): """Redis result backend config""" # allow specify directly configured = get('CELERY_RESULT_BACKEND', None) if configured: return configured if not self._redis_available(): return None host, port = self.REDIS_HOST...
Setter method for packet_encap_processing_state, mapped from YANG variable /packet_encap_processing_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_packet_encap_processing_state is considered as a private method. Backends looking to populate this variable s...
def _set_packet_encap_processing_state(self, v, load=False): """ Setter method for packet_encap_processing_state, mapped from YANG variable /packet_encap_processing_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_packet_encap_processing_state is conside...
Setter method for get_lldp_neighbor_detail, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_lldp_neighbor_detail is considered as a private method. Backends looking to populate this variable s...
def _set_get_lldp_neighbor_detail(self, v, load=False): """ Setter method for get_lldp_neighbor_detail, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_lldp_neighbor_detail is considered a...
Setter method for lsp_frr_revertive, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_frr/lsp_frr_revertive (container) If this variable is read-only (config: false) in the source YANG file, then _set_lsp_frr_revertive is considered as a private method. Backends looking to populat...
def _set_lsp_frr_revertive(self, v, load=False): """ Setter method for lsp_frr_revertive, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_frr/lsp_frr_revertive (container) If this variable is read-only (config: false) in the source YANG file, then _set_lsp_frr_revertive is co...
Setter method for pvst, mapped from YANG variable /protocol/spanning_tree/pvst (container) If this variable is read-only (config: false) in the source YANG file, then _set_pvst is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_pvst() dire...
def _set_pvst(self, v, load=False): """ Setter method for pvst, mapped from YANG variable /protocol/spanning_tree/pvst (container) If this variable is read-only (config: false) in the source YANG file, then _set_pvst is considered as a private method. Backends looking to populate this variable shoul...
Setter method for mstp, mapped from YANG variable /protocol/spanning_tree/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 do so via calling thisObj._set_mstp() dire...
def _set_mstp(self, v, load=False): """ Setter method for mstp, mapped from YANG variable /protocol/spanning_tree/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 shoul...
Parse the raw data and return as data dictionary.
def parse_data(content, raincontent, latitude=52.091579, longitude=5.119734, timeframe=60, usexml=False): """Parse the raw data and return as data dictionary.""" if usexml: return parse_xml_data(content, raincontent, latitude, longitude, timeframe) else: ...
Setter method for cfm_config, mapped from YANG variable /cfm_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_cfm_config is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_cfm_config() dir...
def _set_cfm_config(self, v, load=False): """ Setter method for cfm_config, mapped from YANG variable /cfm_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_cfm_config is considered as a private method. Backends looking to populate this variable shou...
Setter method for diag, mapped from YANG variable /show/diag (container) If this variable is read-only (config: false) in the source YANG file, then _set_diag is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_diag() directly.
def _set_diag(self, v, load=False): """ Setter method for diag, mapped from YANG variable /show/diag (container) If this variable is read-only (config: false) in the source YANG file, then _set_diag is considered as a private method. Backends looking to populate this variable should do so via ca...
Setter method for interface_hello_padding, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello/interface_hello_padding (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello_padding is considered as a private m...
def _set_interface_hello_padding(self, v, load=False): """ Setter method for interface_hello_padding, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello/interface_hello_padding (container) If this variable is read-only (config: false) in the source YANG file,...
Setter method for ipv6_gateway_address, mapped from YANG variable /interface_vlan/interface/ve/ipv6/ipv6_anycast_gateway/ipv6_gateway_address (list) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_gateway_address is considered as a private method. Backends looking to po...
def _set_ipv6_gateway_address(self, v, load=False): """ Setter method for ipv6_gateway_address, mapped from YANG variable /interface_vlan/interface/ve/ipv6/ipv6_anycast_gateway/ipv6_gateway_address (list) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_gateway_addre...
Setter method for nsx_controller, mapped from YANG variable /nsx_controller (list) If this variable is read-only (config: false) in the source YANG file, then _set_nsx_controller is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_nsx_contr...
def _set_nsx_controller(self, v, load=False): """ Setter method for nsx_controller, mapped from YANG variable /nsx_controller (list) If this variable is read-only (config: false) in the source YANG file, then _set_nsx_controller is considered as a private method. Backends looking to populate this va...
Setter method for ssh_server_port, mapped from YANG variable /ssh_sa/ssh/server/ssh_server_port (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_ssh_server_port is considered as a private method. Backends looking to populate this variable should do so via calling...
def _set_ssh_server_port(self, v, load=False): """ Setter method for ssh_server_port, mapped from YANG variable /ssh_sa/ssh/server/ssh_server_port (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_ssh_server_port is considered as a private method. Backends loo...
Setter method for uda, mapped from YANG variable /uda (container) If this variable is read-only (config: false) in the source YANG file, then _set_uda is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_uda() directly.
def _set_uda(self, v, load=False): """ Setter method for uda, mapped from YANG variable /uda (container) If this variable is read-only (config: false) in the source YANG file, then _set_uda is considered as a private method. Backends looking to populate this variable should do so via calling thi...
Setter method for lsp_frr_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_frr/lsp_frr_bandwidth (container) If this variable is read-only (config: false) in the source YANG file, then _set_lsp_frr_bandwidth is considered as a private method. Backends looking to populat...
def _set_lsp_frr_bandwidth(self, v, load=False): """ Setter method for lsp_frr_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_frr/lsp_frr_bandwidth (container) If this variable is read-only (config: false) in the source YANG file, then _set_lsp_frr_bandwidth is co...
Setter method for implicit_commit, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/implicit_commit (container) If this variable is read-only (config: false) in the source YANG file, then _set_implicit_commit is considered as a private method. Backends looking to populate this vari...
def _set_implicit_commit(self, v, load=False): """ Setter method for implicit_commit, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/implicit_commit (container) If this variable is read-only (config: false) in the source YANG file, then _set_implicit_commit is considered as a...
Load a YAML file from path
def load_yaml_file(file_path: str): """Load a YAML file from path""" with codecs.open(file_path, 'r') as f: return yaml.safe_load(f)
Validates a data file :param file_path: path to file to be loaded. :param data: pre loaded YAML object (optional). :return: Bool to indicate the validity of the file.
def validate(self, **kwargs): """ Validates a data file :param file_path: path to file to be loaded. :param data: pre loaded YAML object (optional). :return: Bool to indicate the validity of the file. """ default_data_schema = json.load(open(self.default_schema_...
Setter method for mtu, mapped from YANG variable /pw_profile/mtu (container) If this variable is read-only (config: false) in the source YANG file, then _set_mtu is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_mtu() directly. YANG ...
def _set_mtu(self, v, load=False): """ Setter method for mtu, mapped from YANG variable /pw_profile/mtu (container) If this variable is read-only (config: false) in the source YANG file, then _set_mtu is considered as a private method. Backends looking to populate this variable should do so via ...
Setter method for load_interval, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/load_interval (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_load_interval is considered as a private method. Backends looking to populate this variable shou...
def _set_load_interval(self, v, load=False): """ Setter method for load_interval, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/load_interval (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_load_interval is considered as a private ...
Setter method for brief, mapped from YANG variable /ptp_state/brief (container) If this variable is read-only (config: false) in the source YANG file, then _set_brief is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_brief() directly.
def _set_brief(self, v, load=False): """ Setter method for brief, mapped from YANG variable /ptp_state/brief (container) If this variable is read-only (config: false) in the source YANG file, then _set_brief is considered as a private method. Backends looking to populate this variable should do ...
Setter method for helper, mapped from YANG variable /rbridge_id/ipv6/router/ospf/graceful_restart/helper (container) If this variable is read-only (config: false) in the source YANG file, then _set_helper is considered as a private method. Backends looking to populate this variable should do so via call...
def _set_helper(self, v, load=False): """ Setter method for helper, mapped from YANG variable /rbridge_id/ipv6/router/ospf/graceful_restart/helper (container) If this variable is read-only (config: false) in the source YANG file, then _set_helper is considered as a private method. Backends looking t...
Generates market Item objects for each inventory item. :param str item_filter: See `TAG_ITEM_CLASS_` contants from .market module.
def traverse_inventory(self, item_filter=None): """Generates market Item objects for each inventory item. :param str item_filter: See `TAG_ITEM_CLASS_` contants from .market module. """ not self._intentory_raw and self._get_inventory_raw() for item in self._intentory_raw['rgDe...
Setter method for stp, mapped from YANG variable /protocol/spanning_tree/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 so via calling thisObj._set_stp() directly...
def _set_stp(self, v, load=False): """ Setter method for stp, mapped from YANG variable /protocol/spanning_tree/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 ...
Setter method for standby, mapped from YANG variable /ssh_sa/ssh/server/standby (container) If this variable is read-only (config: false) in the source YANG file, then _set_standby is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_standby...
def _set_standby(self, v, load=False): """ Setter method for standby, mapped from YANG variable /ssh_sa/ssh/server/standby (container) If this variable is read-only (config: false) in the source YANG file, then _set_standby is considered as a private method. Backends looking to populate this variabl...
Assess the prevalence of the various genes in various cancer pathways and return a report in the txt format. :param toil.fileStore.FileID gene_expression: fsID for the rsem gene expression file :param dict univ_options: Dict of universal options used by almost all tools :param dict reports_options: Opt...
def assess_itx_resistance(job, gene_expression, univ_options, reports_options): """ Assess the prevalence of the various genes in various cancer pathways and return a report in the txt format. :param toil.fileStore.FileID gene_expression: fsID for the rsem gene expression file :param dict univ_opti...
Setter method for mirror, mapped from YANG variable /openflow_global/openflow/mirror (container) If this variable is read-only (config: false) in the source YANG file, then _set_mirror is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_mir...
def _set_mirror(self, v, load=False): """ Setter method for mirror, mapped from YANG variable /openflow_global/openflow/mirror (container) If this variable is read-only (config: false) in the source YANG file, then _set_mirror is considered as a private method. Backends looking to populate this vari...
Setter method for gratuitous_arp, mapped from YANG variable /interface_vlan/interface/ve/ipv6/ipv6_anycast_gateway/gratuitous_arp (container) If this variable is read-only (config: false) in the source YANG file, then _set_gratuitous_arp is considered as a private method. Backends looking to populate this v...
def _set_gratuitous_arp(self, v, load=False): """ Setter method for gratuitous_arp, mapped from YANG variable /interface_vlan/interface/ve/ipv6/ipv6_anycast_gateway/gratuitous_arp (container) If this variable is read-only (config: false) in the source YANG file, then _set_gratuitous_arp is considered as...
Setter method for port_profile_domain, mapped from YANG variable /port_profile_domain (list) If this variable is read-only (config: false) in the source YANG file, then _set_port_profile_domain is considered as a private method. Backends looking to populate this variable should do so via calling thisObj...
def _set_port_profile_domain(self, v, load=False): """ Setter method for port_profile_domain, mapped from YANG variable /port_profile_domain (list) If this variable is read-only (config: false) in the source YANG file, then _set_port_profile_domain is considered as a private method. Backends looking...
Setter method for summary, mapped from YANG variable /mpls_state/summary (container) If this variable is read-only (config: false) in the source YANG file, then _set_summary is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_summary() dire...
def _set_summary(self, v, load=False): """ Setter method for summary, mapped from YANG variable /mpls_state/summary (container) If this variable is read-only (config: false) in the source YANG file, then _set_summary is considered as a private method. Backends looking to populate this variable shoul...
Setter method for rpvst, mapped from YANG variable /protocol/spanning_tree/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._set_rpvst() ...
def _set_rpvst(self, v, load=False): """ Setter method for rpvst, mapped from YANG variable /protocol/spanning_tree/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 s...
Get buienradar xml data and return results.
def get_data(latitude=52.091579, longitude=5.119734, usexml=False): """Get buienradar xml data and return results.""" if usexml: log.info("Getting buienradar XML data for latitude=%s, longitude=%s", latitude, longitude) return get_xml_data(latitude, longitude) else: ...
Setter method for vc_mode, mapped from YANG variable /pw_profile/vc_mode (container) If this variable is read-only (config: false) in the source YANG file, then _set_vc_mode is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_vc_mode() dire...
def _set_vc_mode(self, v, load=False): """ Setter method for vc_mode, mapped from YANG variable /pw_profile/vc_mode (container) If this variable is read-only (config: false) in the source YANG file, then _set_vc_mode is considered as a private method. Backends looking to populate this variable shoul...
Custom setting allowing switch between rabbitmq, redis
def BROKER_TYPE(self): """Custom setting allowing switch between rabbitmq, redis""" broker_type = get('BROKER_TYPE', DEFAULT_BROKER_TYPE) if broker_type not in SUPPORTED_BROKER_TYPES: log.warn("Specified BROKER_TYPE {} not supported. Backing to default {}".format( br...
Setter method for last_update_time, mapped from YANG variable /bgp_state/neighbor/evpn/last_update_time (container) If this variable is read-only (config: false) in the source YANG file, then _set_last_update_time is considered as a private method. Backends looking to populate this variable should do so...
def _set_last_update_time(self, v, load=False): """ Setter method for last_update_time, mapped from YANG variable /bgp_state/neighbor/evpn/last_update_time (container) If this variable is read-only (config: false) in the source YANG file, then _set_last_update_time is considered as a private method....
Setter method for rstp, mapped from YANG variable /protocol/spanning_tree/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 do so via calling thisObj._set_rstp() dire...
def _set_rstp(self, v, load=False): """ Setter method for rstp, mapped from YANG variable /protocol/spanning_tree/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 shoul...
Conversion to bytes
def b(s): """Conversion to bytes""" if sys.version < '3': if isinstance(s, unicode): #pylint: disable=undefined-variable return s.encode('utf-8') else: return s
Returns features in validated form, or raises an Exception. Mostly for internal use
def validatefeatures(self,features): """Returns features in validated form, or raises an Exception. Mostly for internal use""" validatedfeatures = [] for feature in features: if isinstance(feature, int) or isinstance(feature, float): validatedfeatures.append( str(feat...
Adds an instance to a specific file. Especially suitable for generating test files
def addinstance(self, testfile, features, classlabel="?"): """Adds an instance to a specific file. Especially suitable for generating test files""" features = self.validatefeatures(features) if self.delimiter in classlabel: raise ValueError("Class label contains delimiter: " + self...
Train & Test using cross validation, testfile is a file that contains the filenames of all the folds!
def crossvalidate(self, foldsfile): """Train & Test using cross validation, testfile is a file that contains the filenames of all the folds!""" options = "-F " + self.format + " " + self.timbloptions + " -t cross_validate" print("Instantiating Timbl API : " + options,file=stderr) if sys...
Train & Test using leave one out
def leaveoneout(self): """Train & Test using leave one out""" traintestfile = self.fileprefix + '.train' options = "-F " + self.format + " " + self.timbloptions + " -t leave_one_out" if sys.version < '3': self.api = timblapi.TimblAPI(b(options), b"") else: ...
Setter method for router_bgp, mapped from YANG variable /routing_system/router/router_bgp (container) If this variable is read-only (config: false) in the source YANG file, then _set_router_bgp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj...
def _set_router_bgp(self, v, load=False): """ Setter method for router_bgp, mapped from YANG variable /routing_system/router/router_bgp (container) If this variable is read-only (config: false) in the source YANG file, then _set_router_bgp is considered as a private method. Backends looking to popul...
Setter method for pim, mapped from YANG variable /routing_system/router/pim (list) If this variable is read-only (config: false) in the source YANG file, then _set_pim is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_pim() directly.
def _set_pim(self, v, load=False): """ Setter method for pim, mapped from YANG variable /routing_system/router/pim (list) If this variable is read-only (config: false) in the source YANG file, then _set_pim is considered as a private method. Backends looking to populate this variable should do s...
Setter method for isis, mapped from YANG variable /routing_system/router/isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_isis is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_isis() direc...
def _set_isis(self, v, load=False): """ Setter method for isis, mapped from YANG variable /routing_system/router/isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_isis is considered as a private method. Backends looking to populate this variable should...
Setter method for cluster_id, mapped from YANG variable /routing_system/router/router_bgp/router_bgp_attributes/cluster_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_cluster_id is considered as a private method. Backends looking to populate this variable sho...
def _set_cluster_id(self, v, load=False): """ Setter method for cluster_id, mapped from YANG variable /routing_system/router/router_bgp/router_bgp_attributes/cluster_id (container) If this variable is read-only (config: false) in the source YANG file, then _set_cluster_id is considered as a private ...
Store action needs and excludes. .. note:: The action is saved only if a cache system is defined. :param action_key: The unique action name. :param data: The action to be saved.
def set_action_cache(self, action_key, data): """Store action needs and excludes. .. note:: The action is saved only if a cache system is defined. :param action_key: The unique action name. :param data: The action to be saved. """ if self.cache: self.cache.s...
Get action needs and excludes from cache. .. note:: It returns the action if a cache system is defined. :param action_key: The unique action name. :returns: The action stored in cache or ``None``.
def get_action_cache(self, action_key): """Get action needs and excludes from cache. .. note:: It returns the action if a cache system is defined. :param action_key: The unique action name. :returns: The action stored in cache or ``None``. """ data = None if sel...
Delete action needs and excludes from cache. .. note:: It returns the action if a cache system is defined. :param action_key: The unique action name.
def delete_action_cache(self, action_key): """Delete action needs and excludes from cache. .. note:: It returns the action if a cache system is defined. :param action_key: The unique action name. """ if self.cache: self.cache.delete( self.app.config[...
Register an action to be showed in the actions list. .. note:: A action can't be registered two times. If it happens, then an assert exception will be raised. :param action: The action to be registered.
def register_action(self, action): """Register an action to be showed in the actions list. .. note:: A action can't be registered two times. If it happens, then an assert exception will be raised. :param action: The action to be registered. """ assert action.value not i...
Load actions from an entry point group. :param entry_point_group: The entrypoint for extensions.
def load_entry_point_actions(self, entry_point_group): """Load actions from an entry point group. :param entry_point_group: The entrypoint for extensions. """ for ep in pkg_resources.iter_entry_points(group=entry_point_group): self.register_action(ep.load())
Register a system role. .. note:: A system role can't be registered two times. If it happens, then an assert exception will be raised. :param system_role: The system role to be registered.
def register_system_role(self, system_role): """Register a system role. .. note:: A system role can't be registered two times. If it happens, then an assert exception will be raised. :param system_role: The system role to be registered. """ assert system_role.value not ...
Load system roles from an entry point group. :param entry_point_group: The entrypoint for extensions.
def load_entry_point_system_roles(self, entry_point_group): """Load system roles from an entry point group. :param entry_point_group: The entrypoint for extensions. """ for ep in pkg_resources.iter_entry_points(group=entry_point_group): self.register_system_role(ep.load())
Flask application initialization. :param app: The Flask application. :param entry_point_actions: The entrypoint for actions extensions. (Default: ``'invenio_access.actions'``) :param entry_point_system_roles: The entrypoint for system roles extensions. (Default: ``'inve...
def init_app(self, app, entry_point_actions='invenio_access.actions', entry_point_system_roles='invenio_access.system_roles', **kwargs): """Flask application initialization. :param app: The Flask application. :param entry_point_actions: The entrypoint for actio...
Setter method for threshold_memory, mapped from YANG variable /rbridge_id/resource_monitor/memory/threshold_memory (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_threshold_memory is considered as a private method. Backends looking to populate this variable should ...
def _set_threshold_memory(self, v, load=False): """ Setter method for threshold_memory, mapped from YANG variable /rbridge_id/resource_monitor/memory/threshold_memory (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_threshold_memory is considered as a private ...
Setter method for action_memory, mapped from YANG variable /rbridge_id/resource_monitor/memory/action_memory (resource-monitor-actiontype) If this variable is read-only (config: false) in the source YANG file, then _set_action_memory is considered as a private method. Backends looking to populate this varia...
def _set_action_memory(self, v, load=False): """ Setter method for action_memory, mapped from YANG variable /rbridge_id/resource_monitor/memory/action_memory (resource-monitor-actiontype) If this variable is read-only (config: false) in the source YANG file, then _set_action_memory is considered as a pr...
Setter method for logging_rate_memory, mapped from YANG variable /rbridge_id/resource_monitor/memory/logging_rate_memory (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_logging_rate_memory is considered as a private method. Backends looking to populate this variable...
def _set_logging_rate_memory(self, v, load=False): """ Setter method for logging_rate_memory, mapped from YANG variable /rbridge_id/resource_monitor/memory/logging_rate_memory (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_logging_rate_memory is considered as a...
Setter method for grace_period_memory, mapped from YANG variable /rbridge_id/resource_monitor/memory/grace_period_memory (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_grace_period_memory is considered as a private method. Backends looking to populate this variable...
def _set_grace_period_memory(self, v, load=False): """ Setter method for grace_period_memory, mapped from YANG variable /rbridge_id/resource_monitor/memory/grace_period_memory (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_grace_period_memory is considered as a...
Setter method for level_1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_1 (container) If this variable is read-only (config: false) in the source YANG file, then _set_level_1 is c...
def _set_level_1(self, v, load=False): """ Setter method for level_1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_1 (container) If this variable is read-only (config: false) ...
Setter method for level_2, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2 (container) If this variable is read-only (config: false) in the source YANG file, then _set_level_2 is c...
def _set_level_2(self, v, load=False): """ Setter method for level_2, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2 (container) If this variable is read-only (config: false) ...
Setter method for vlan_classification, mapped from YANG variable /hardware/profile/vlan_classification (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_classification is considered as a private method. Backends looking to populate this variable should do ...
def _set_vlan_classification(self, v, load=False): """ Setter method for vlan_classification, mapped from YANG variable /hardware/profile/vlan_classification (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_classification is considered as a private me...
Setter method for adjacency, mapped from YANG variable /rbridge_id/router/ospf/log/adjacency (container) If this variable is read-only (config: false) in the source YANG file, then _set_adjacency is considered as a private method. Backends looking to populate this variable should do so via calling thisO...
def _set_adjacency(self, v, load=False): """ Setter method for adjacency, mapped from YANG variable /rbridge_id/router/ospf/log/adjacency (container) If this variable is read-only (config: false) in the source YANG file, then _set_adjacency is considered as a private method. Backends looking to popu...
Setter method for bad_packet, mapped from YANG variable /rbridge_id/router/ospf/log/bad_packet (container) If this variable is read-only (config: false) in the source YANG file, then _set_bad_packet is considered as a private method. Backends looking to populate this variable should do so via calling th...
def _set_bad_packet(self, v, load=False): """ Setter method for bad_packet, mapped from YANG variable /rbridge_id/router/ospf/log/bad_packet (container) If this variable is read-only (config: false) in the source YANG file, then _set_bad_packet is considered as a private method. Backends looking to ...
Setter method for isis_system_info, mapped from YANG variable /isis_state/router_isis_config/isis_system_info (container) If this variable is read-only (config: false) in the source YANG file, then _set_isis_system_info is considered as a private method. Backends looking to populate this variable should ...
def _set_isis_system_info(self, v, load=False): """ Setter method for isis_system_info, mapped from YANG variable /isis_state/router_isis_config/isis_system_info (container) If this variable is read-only (config: false) in the source YANG file, then _set_isis_system_info is considered as a private m...
Setter method for l2_spf_timer, mapped from YANG variable /isis_state/router_isis_config/l2_spf_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_spf_timer is considered as a private method. Backends looking to populate this variable should do so via c...
def _set_l2_spf_timer(self, v, load=False): """ Setter method for l2_spf_timer, mapped from YANG variable /isis_state/router_isis_config/l2_spf_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_spf_timer is considered as a private method. Backends ...
Setter method for log_handler, mapped from YANG variable /isis_state/router_isis_config/log_handler (container) If this variable is read-only (config: false) in the source YANG file, then _set_log_handler is considered as a private method. Backends looking to populate this variable should do so via call...
def _set_log_handler(self, v, load=False): """ Setter method for log_handler, mapped from YANG variable /isis_state/router_isis_config/log_handler (container) If this variable is read-only (config: false) in the source YANG file, then _set_log_handler is considered as a private method. Backends look...
Setter method for pspf_timer, mapped from YANG variable /isis_state/router_isis_config/pspf_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_pspf_timer is considered as a private method. Backends looking to populate this variable should do so via calling...
def _set_pspf_timer(self, v, load=False): """ Setter method for pspf_timer, mapped from YANG variable /isis_state/router_isis_config/pspf_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_pspf_timer is considered as a private method. Backends looking ...
Setter method for pspf6_timer, mapped from YANG variable /isis_state/router_isis_config/pspf6_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_pspf6_timer is considered as a private method. Backends looking to populate this variable should do so via call...
def _set_pspf6_timer(self, v, load=False): """ Setter method for pspf6_timer, mapped from YANG variable /isis_state/router_isis_config/pspf6_timer (container) If this variable is read-only (config: false) in the source YANG file, then _set_pspf6_timer is considered as a private method. Backends look...
Setter method for is_address_family_v4, mapped from YANG variable /isis_state/router_isis_config/is_address_family_v4 (container) If this variable is read-only (config: false) in the source YANG file, then _set_is_address_family_v4 is considered as a private method. Backends looking to populate this variabl...
def _set_is_address_family_v4(self, v, load=False): """ Setter method for is_address_family_v4, mapped from YANG variable /isis_state/router_isis_config/is_address_family_v4 (container) If this variable is read-only (config: false) in the source YANG file, then _set_is_address_family_v4 is considered as...
Setter method for is_address_family_v6, mapped from YANG variable /isis_state/router_isis_config/is_address_family_v6 (container) If this variable is read-only (config: false) in the source YANG file, then _set_is_address_family_v6 is considered as a private method. Backends looking to populate this variabl...
def _set_is_address_family_v6(self, v, load=False): """ Setter method for is_address_family_v6, mapped from YANG variable /isis_state/router_isis_config/is_address_family_v6 (container) If this variable is read-only (config: false) in the source YANG file, then _set_is_address_family_v6 is considered as...
Setter method for debug_handler, mapped from YANG variable /isis_state/router_isis_config/debug_handler (container) If this variable is read-only (config: false) in the source YANG file, then _set_debug_handler is considered as a private method. Backends looking to populate this variable should do so vi...
def _set_debug_handler(self, v, load=False): """ Setter method for debug_handler, mapped from YANG variable /isis_state/router_isis_config/debug_handler (container) If this variable is read-only (config: false) in the source YANG file, then _set_debug_handler is considered as a private method. Backe...
Setter method for md5_auth, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_vrrp_extended/auth_type/md5_auth (container) If this variable is read-only (config: false) in the source YANG file, then _set_md5_auth is considered as a private method. Backends looking to populate this variable sh...
def _set_md5_auth(self, v, load=False): """ Setter method for md5_auth, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_vrrp_extended/auth_type/md5_auth (container) If this variable is read-only (config: false) in the source YANG file, then _set_md5_auth is considered as a private m...
Setter method for vpnv4_unicast, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_vpnv4_unicast is considered as a private method. Backends looking to populate this vari...
def _set_vpnv4_unicast(self, v, load=False): """ Setter method for vpnv4_unicast, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_vpnv4_unicast is considered as a p...
Run transgene on an input snpeffed vcf file and return the peptides for MHC prediction. :param toil.fileStore.FileID snpeffed_file: fsID for snpeffed vcf :param dict rna_bam: The dict of bams returned by running star :param dict univ_options: Dict of universal options used by almost all tools :param d...
def run_transgene(job, snpeffed_file, rna_bam, univ_options, transgene_options, tumor_dna_bam=None, fusion_calls=None): """ Run transgene on an input snpeffed vcf file and return the peptides for MHC prediction. :param toil.fileStore.FileID snpeffed_file: fsID for snpeffed vcf :param...
Setter method for sample_rate_cpu, mapped from YANG variable /resource_monitor/cpu/sample_rate_cpu (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_sample_rate_cpu is considered as a private method. Backends looking to populate this variable should do so via call...
def _set_sample_rate_cpu(self, v, load=False): """ Setter method for sample_rate_cpu, mapped from YANG variable /resource_monitor/cpu/sample_rate_cpu (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_sample_rate_cpu is considered as a private method. Backends ...
Setter method for offset_cpu, mapped from YANG variable /resource_monitor/cpu/offset_cpu (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_offset_cpu is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._se...
def _set_offset_cpu(self, v, load=False): """ Setter method for offset_cpu, mapped from YANG variable /resource_monitor/cpu/offset_cpu (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_offset_cpu is considered as a private method. Backends looking to populate ...
Setter method for area, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/traffic_engineering/traffic_eng_ospf/area (container) If this variable is read-only (config: false) in the source YANG file, then _set_area is considered as a private method. Backends looking to populate this ...
def _set_area(self, v, load=False): """ Setter method for area, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/traffic_engineering/traffic_eng_ospf/area (container) If this variable is read-only (config: false) in the source YANG file, then _set_area is considered as a privat...
Setter method for process, mapped from YANG variable /rbridge_id/resource_monitor/process (container) If this variable is read-only (config: false) in the source YANG file, then _set_process is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
def _set_process(self, v, load=False): """ Setter method for process, mapped from YANG variable /rbridge_id/resource_monitor/process (container) If this variable is read-only (config: false) in the source YANG file, then _set_process is considered as a private method. Backends looking to populate th...
Setter method for route_map, mapped from YANG variable /routing_system/route_map (list) If this variable is read-only (config: false) in the source YANG file, then _set_route_map is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_route_map...
def _set_route_map(self, v, load=False): """ Setter method for route_map, mapped from YANG variable /routing_system/route_map (list) If this variable is read-only (config: false) in the source YANG file, then _set_route_map is considered as a private method. Backends looking to populate this variabl...
Setter method for static_mac, mapped from YANG variable /mac_address_table/static/static_mac (list) If this variable is read-only (config: false) in the source YANG file, then _set_static_mac is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
def _set_static_mac(self, v, load=False): """ Setter method for static_mac, mapped from YANG variable /mac_address_table/static/static_mac (list) If this variable is read-only (config: false) in the source YANG file, then _set_static_mac is considered as a private method. Backends looking to populat...
Setter method for static_ac_lif, mapped from YANG variable /mac_address_table/static/static_ac_lif (list) If this variable is read-only (config: false) in the source YANG file, then _set_static_ac_lif is considered as a private method. Backends looking to populate this variable should do so via calling ...
def _set_static_ac_lif(self, v, load=False): """ Setter method for static_ac_lif, mapped from YANG variable /mac_address_table/static/static_ac_lif (list) If this variable is read-only (config: false) in the source YANG file, then _set_static_ac_lif is considered as a private method. Backends lookin...
Setter method for y1731, mapped from YANG variable /protocol/cfm/y1731 (container) If this variable is read-only (config: false) in the source YANG file, then _set_y1731 is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_y1731() directly.
def _set_y1731(self, v, load=False): """ Setter method for y1731, mapped from YANG variable /protocol/cfm/y1731 (container) If this variable is read-only (config: false) in the source YANG file, then _set_y1731 is considered as a private method. Backends looking to populate this variable should ...
Setter method for auth, mapped from YANG variable /rbridge_id/fcsp/auth (container) If this variable is read-only (config: false) in the source YANG file, then _set_auth is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_auth() directly.
def _set_auth(self, v, load=False): """ Setter method for auth, mapped from YANG variable /rbridge_id/fcsp/auth (container) If this variable is read-only (config: false) in the source YANG file, then _set_auth is considered as a private method. Backends looking to populate this variable should d...
Setter method for route_type, mapped from YANG variable /rbridge_id/route_map/content/match/route_type (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_type is considered as a private method. Backends looking to populate this variable should do so via ca...
def _set_route_type(self, v, load=False): """ Setter method for route_type, mapped from YANG variable /rbridge_id/route_map/content/match/route_type (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_type is considered as a private method. Backends loo...
Setter method for cam_share, mapped from YANG variable /hardware/profile/tcam/cam_share (container) If this variable is read-only (config: false) in the source YANG file, then _set_cam_share is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
def _set_cam_share(self, v, load=False): """ Setter method for cam_share, mapped from YANG variable /hardware/profile/tcam/cam_share (container) If this variable is read-only (config: false) in the source YANG file, then _set_cam_share is considered as a private method. Backends looking to populate ...
Setter method for limit, mapped from YANG variable /hardware/profile/tcam/limit (container) If this variable is read-only (config: false) in the source YANG file, then _set_limit is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_limit() d...
def _set_limit(self, v, load=False): """ Setter method for limit, mapped from YANG variable /hardware/profile/tcam/limit (container) If this variable is read-only (config: false) in the source YANG file, then _set_limit is considered as a private method. Backends looking to populate this variable sh...
Setter method for ipv6_address, mapped from YANG variable /interface/fortygigabitethernet/ipv6/ipv6_config/address/ipv6_address (list) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_address is considered as a private method. Backends looking to populate this variable s...
def _set_ipv6_address(self, v, load=False): """ Setter method for ipv6_address, mapped from YANG variable /interface/fortygigabitethernet/ipv6/ipv6_config/address/ipv6_address (list) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_address is considered as a private ...
Setter method for l2_circ_metrics, mapped from YANG variable /isis_state/interface_detail/isis_intf/l2_circ_metrics (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_circ_metrics is considered as a private method. Backends looking to populate this variable shoul...
def _set_l2_circ_metrics(self, v, load=False): """ Setter method for l2_circ_metrics, mapped from YANG variable /isis_state/interface_detail/isis_intf/l2_circ_metrics (container) If this variable is read-only (config: false) in the source YANG file, then _set_l2_circ_metrics is considered as a private ...
Setter method for l1_circ_metrics, mapped from YANG variable /isis_state/interface_detail/isis_intf/l1_circ_metrics (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_circ_metrics is considered as a private method. Backends looking to populate this variable shoul...
def _set_l1_circ_metrics(self, v, load=False): """ Setter method for l1_circ_metrics, mapped from YANG variable /isis_state/interface_detail/isis_intf/l1_circ_metrics (container) If this variable is read-only (config: false) in the source YANG file, then _set_l1_circ_metrics is considered as a private ...
Setter method for priority, mapped from YANG variable /qos_mpls/map/traffic_class_exp/priority (list) If this variable is read-only (config: false) in the source YANG file, then _set_priority is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
def _set_priority(self, v, load=False): """ Setter method for priority, mapped from YANG variable /qos_mpls/map/traffic_class_exp/priority (list) If this variable is read-only (config: false) in the source YANG file, then _set_priority is considered as a private method. Backends looking to populate ...
Setter method for ext_seq, mapped from YANG variable /overlay/access_list/type/vxlan/extended/ext_seq (list) If this variable is read-only (config: false) in the source YANG file, then _set_ext_seq is considered as a private method. Backends looking to populate this variable should do so via calling thi...
def _set_ext_seq(self, v, load=False): """ Setter method for ext_seq, mapped from YANG variable /overlay/access_list/type/vxlan/extended/ext_seq (list) If this variable is read-only (config: false) in the source YANG file, then _set_ext_seq is considered as a private method. Backends looking to popu...
Setter method for event_handler_list, mapped from YANG variable /event_handler/event_handler_list (list) If this variable is read-only (config: false) in the source YANG file, then _set_event_handler_list is considered as a private method. Backends looking to populate this variable should do so via call...
def _set_event_handler_list(self, v, load=False): """ Setter method for event_handler_list, mapped from YANG variable /event_handler/event_handler_list (list) If this variable is read-only (config: false) in the source YANG file, then _set_event_handler_list is considered as a private method. Backen...
Setter method for level1_into_level2, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_1/into/level1_into_level2 (container) If this variable is read-only (config: false) in the sourc...
def _set_level1_into_level2(self, v, load=False): """ Setter method for level1_into_level2, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_1/into/level1_into_level2 (container) ...
Setter method for attach, mapped from YANG variable /overlay_gateway/attach (container) If this variable is read-only (config: false) in the source YANG file, then _set_attach is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_attach() dir...
def _set_attach(self, v, load=False): """ Setter method for attach, mapped from YANG variable /overlay_gateway/attach (container) If this variable is read-only (config: false) in the source YANG file, then _set_attach is considered as a private method. Backends looking to populate this variable shou...
Setter method for monitor, mapped from YANG variable /overlay_gateway/monitor (list) If this variable is read-only (config: false) in the source YANG file, then _set_monitor is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_monitor() dire...
def _set_monitor(self, v, load=False): """ Setter method for monitor, mapped from YANG variable /overlay_gateway/monitor (list) If this variable is read-only (config: false) in the source YANG file, then _set_monitor is considered as a private method. Backends looking to populate this variable shoul...