INSTRUCTION stringlengths 1 8.43k | RESPONSE stringlengths 75 104k |
|---|---|
Setter method for queue mapped from YANG variable/ qos/ queue ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_queue is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_queue () directly. | def _set_queue(self, v, load=False):
"""
Setter method for queue, mapped from YANG variable /qos/queue (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_queue is considered as a private
method. Backends looking to populate this variable should
do so via... |
Setter method for cspf_group_computation_mode mapped from YANG variable/ mpls_state/ policy/ cspf_group_computation_mode ( mpls - cspf - grp - comp - mode ) If this variable is read - only ( config: false ) in the source YANG file then _set_cspf_group_computation_mode is considered as a private method. Backends looking... | def _set_cspf_group_computation_mode(self, v, load=False):
"""
Setter method for cspf_group_computation_mode, mapped from YANG variable /mpls_state/policy/cspf_group_computation_mode (mpls-cspf-grp-comp-mode)
If this variable is read-only (config: false) in the
source YANG file, then _set_cspf_group_com... |
Setter method for te_policy_protocol mapped from YANG variable/ mpls_state/ policy/ te_policy_protocol ( te - protocol ) If this variable is read - only ( config: false ) in the source YANG file then _set_te_policy_protocol is considered as a private method. Backends looking to populate this variable should do so via c... | def _set_te_policy_protocol(self, v, load=False):
"""
Setter method for te_policy_protocol, mapped from YANG variable /mpls_state/policy/te_policy_protocol (te-protocol)
If this variable is read-only (config: false) in the
source YANG file, then _set_te_policy_protocol is considered as a private
met... |
Setter method for igmp_statistics mapped from YANG variable/ igmp_snooping_state/ igmp_statistics/ igmp_statistics ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_igmp_statistics is considered as a private method. Backends looking to populate this variable should do so via c... | def _set_igmp_statistics(self, v, load=False):
"""
Setter method for igmp_statistics, mapped from YANG variable /igmp_snooping_state/igmp_statistics/igmp_statistics (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmp_statistics is considered as a private
meth... |
Setter method for fcoe_fabric_map mapped from YANG variable/ fcoe/ fcoe_fabric_map ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_fcoe_fabric_map is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_fcoe_fabric... | def _set_fcoe_fabric_map(self, v, load=False):
"""
Setter method for fcoe_fabric_map, mapped from YANG variable /fcoe/fcoe_fabric_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_fabric_map is considered as a private
method. Backends looking to populat... |
Setter method for fcoe_map mapped from YANG variable/ fcoe/ fcoe_map ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_fcoe_map is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_fcoe_map () directly. | def _set_fcoe_map(self, v, load=False):
"""
Setter method for fcoe_map, mapped from YANG variable /fcoe/fcoe_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_map is considered as a private
method. Backends looking to populate this variable should
d... |
Setter method for access_list mapped from YANG variable/ arp/ access_list ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_access_list is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_access_list () directly. | def _set_access_list(self, v, load=False):
"""
Setter method for access_list, mapped from YANG variable /arp/access_list (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_access_list is considered as a private
method. Backends looking to populate this variable s... |
Setter method for tieBreaking mapped from YANG variable/ brocade_mpls_rpc/ show_mpls_te_path/ input/ tieBreaking ( tie - breaking ) If this variable is read - only ( config: false ) in the source YANG file then _set_tieBreaking is considered as a private method. Backends looking to populate this variable should do so v... | def _set_tieBreaking(self, v, load=False):
"""
Setter method for tieBreaking, mapped from YANG variable /brocade_mpls_rpc/show_mpls_te_path/input/tieBreaking (tie-breaking)
If this variable is read-only (config: false) in the
source YANG file, then _set_tieBreaking is considered as a private
method.... |
Setter method for adj_type mapped from YANG variable/ adj_neighbor_entries_state/ adj_neighbor/ adj_type ( isis - adj - type ) If this variable is read - only ( config: false ) in the source YANG file then _set_adj_type is considered as a private method. Backends looking to populate this variable should do so via calli... | def _set_adj_type(self, v, load=False):
"""
Setter method for adj_type, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_type (isis-adj-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_type is considered as a private
method. Backends lo... |
Setter method for adj_prot mapped from YANG variable/ adj_neighbor_entries_state/ adj_neighbor/ adj_prot ( isis - adj - prot - type ) If this variable is read - only ( config: false ) in the source YANG file then _set_adj_prot is considered as a private method. Backends looking to populate this variable should do so vi... | def _set_adj_prot(self, v, load=False):
"""
Setter method for adj_prot, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_prot (isis-adj-prot-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_prot is considered as a private
method. Backen... |
Setter method for adj_3way_state mapped from YANG variable/ adj_neighbor_entries_state/ adj_neighbor/ adj_3way_state ( isis - dcm - 3way - adj - state ) If this variable is read - only ( config: false ) in the source YANG file then _set_adj_3way_state is considered as a private method. Backends looking to populate this... | def _set_adj_3way_state(self, v, load=False):
"""
Setter method for adj_3way_state, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_3way_state (isis-dcm-3way-adj-state)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_3way_state is considered as... |
Setter method for adj_use mapped from YANG variable/ adj_neighbor_entries_state/ adj_neighbor/ adj_use ( isis - spf - level ) If this variable is read - only ( config: false ) in the source YANG file then _set_adj_use is considered as a private method. Backends looking to populate this variable should do so via calling... | def _set_adj_use(self, v, load=False):
"""
Setter method for adj_use, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_use (isis-spf-level)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_use is considered as a private
method. Backends looki... |
Setter method for interface_counters mapped from YANG variable/ interface_statistics_state/ interface_counters ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_interface_counters is considered as a private method. Backends looking to populate this variable should do so v... | def _set_interface_counters(self, v, load=False):
"""
Setter method for interface_counters, mapped from YANG variable /interface_statistics_state/interface_counters (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_counters is considered as a private
... |
Setter method for dot1q mapped from YANG variable/ vlan/ dot1q ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_dot1q is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_dot1q () directly. | def _set_dot1q(self, v, load=False):
"""
Setter method for dot1q, mapped from YANG variable /vlan/dot1q (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dot1q is considered as a private
method. Backends looking to populate this variable should
do so vi... |
Setter method for ip_anycast_address mapped from YANG variable/ routing_system/ interface/ ve/ ip/ ip_anycast_address ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_ip_anycast_address is considered as a private method. Backends looking to populate this variable should do so... | def _set_ip_anycast_address(self, v, load=False):
"""
Setter method for ip_anycast_address, mapped from YANG variable /routing_system/interface/ve/ip/ip_anycast_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_anycast_address is considered as a private
... |
Setter method for ip_vrrp_extended mapped from YANG variable/ routing_system/ interface/ ve/ ip/ ip_vrrp_extended ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_ip_vrrp_extended is considered as a private method. Backends looking to populate this variable should do so ... | def _set_ip_vrrp_extended(self, v, load=False):
"""
Setter method for ip_vrrp_extended, mapped from YANG variable /routing_system/interface/ve/ip/ip_vrrp_extended (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_vrrp_extended is considered as a private
... |
Setter method for interface_vlan_ospf_conf mapped from YANG variable/ routing_system/ interface/ ve/ ip/ interface_vlan_ospf_conf ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_interface_vlan_ospf_conf is considered as a private method. Backends looking to populate thi... | def _set_interface_vlan_ospf_conf(self, v, load=False):
"""
Setter method for interface_vlan_ospf_conf, mapped from YANG variable /routing_system/interface/ve/ip/interface_vlan_ospf_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_vlan_ospf_conf... |
Setter method for ve mapped from YANG variable/ overlay_gateway/ ip/ interface/ ve ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_ve is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_ve () directly. | def _set_ve(self, v, load=False):
"""
Setter method for ve, mapped from YANG variable /overlay_gateway/ip/interface/ve (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ve is considered as a private
method. Backends looking to populate this variable should
... |
Setter method for cfm_detail mapped from YANG variable/ cfm_state/ cfm_detail ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_cfm_detail is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_cfm_detail () di... | def _set_cfm_detail(self, v, load=False):
"""
Setter method for cfm_detail, mapped from YANG variable /cfm_state/cfm_detail (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_detail is considered as a private
method. Backends looking to populate this var... |
Setter method for cfm_y1731 mapped from YANG variable/ cfm_state/ cfm_y1731 ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_cfm_y1731 is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_cfm_y1731 () direct... | def _set_cfm_y1731(self, v, load=False):
"""
Setter method for cfm_y1731, mapped from YANG variable /cfm_state/cfm_y1731 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_y1731 is considered as a private
method. Backends looking to populate this variabl... |
Setter method for cfm_connectivity mapped from YANG variable/ cfm_state/ cfm_connectivity ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_cfm_connectivity is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _se... | def _set_cfm_connectivity(self, v, load=False):
"""
Setter method for cfm_connectivity, mapped from YANG variable /cfm_state/cfm_connectivity (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_connectivity is considered as a private
method. Backends look... |
Setter method for slm mapped from YANG variable/ cfm_state/ slm ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_slm is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_slm () directly. | def _set_slm(self, v, load=False):
"""
Setter method for slm, mapped from YANG variable /cfm_state/slm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_slm is considered as a private
method. Backends looking to populate this variable should
do so via c... |
Setter method for dmm mapped from YANG variable/ cfm_state/ dmm ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_dmm is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_dmm () directly. | def _set_dmm(self, v, load=False):
"""
Setter method for dmm, mapped from YANG variable /cfm_state/dmm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dmm is considered as a private
method. Backends looking to populate this variable should
do so via c... |
Setter method for run_mode mapped from YANG variable/ rbridge_id/ event_handler/ activate/ name/ run_mode ( enumeration ) If this variable is read - only ( config: false ) in the source YANG file then _set_run_mode is considered as a private method. Backends looking to populate this variable should do so via calling th... | def _set_run_mode(self, v, load=False):
"""
Setter method for run_mode, mapped from YANG variable /rbridge_id/event_handler/activate/name/run_mode (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_run_mode is considered as a private
method. Backends looki... |
Setter method for trigger_mode mapped from YANG variable/ rbridge_id/ event_handler/ activate/ name/ trigger_mode ( enumeration ) If this variable is read - only ( config: false ) in the source YANG file then _set_trigger_mode is considered as a private method. Backends looking to populate this variable should do so vi... | def _set_trigger_mode(self, v, load=False):
"""
Setter method for trigger_mode, mapped from YANG variable /rbridge_id/event_handler/activate/name/trigger_mode (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_trigger_mode is considered as a private
method... |
Setter method for action_profile_event_actions mapped from YANG variable/ cfm_state/ cfm_y1731/ action_profile/ action_profile_event_actions ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_action_profile_event_actions is considered as a private method. Backends looking ... | def _set_action_profile_event_actions(self, v, load=False):
"""
Setter method for action_profile_event_actions, mapped from YANG variable /cfm_state/cfm_y1731/action_profile/action_profile_event_actions (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_action_p... |
Setter method for num_samples_collected mapped from YANG variable/ mpls_state/ lsp/ auto_bandwidth/ num_samples_collected ( uint32 ) If this variable is read - only ( config: false ) in the source YANG file then _set_num_samples_collected is considered as a private method. Backends looking to populate this variable sho... | def _set_num_samples_collected(self, v, load=False):
"""
Setter method for num_samples_collected, mapped from YANG variable /mpls_state/lsp/auto_bandwidth/num_samples_collected (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_num_samples_collected is considered a... |
Setter method for packet_timestamp mapped from YANG variable/ interface/ port_channel/ system/ packet_timestamp ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_packet_timestamp is considered as a private method. Backends looking to populate this variable should do so vi... | def _set_packet_timestamp(self, v, load=False):
"""
Setter method for packet_timestamp, mapped from YANG variable /interface/port_channel/system/packet_timestamp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_packet_timestamp is considered as a private
m... |
Setter method for hide_mac_acl_ext mapped from YANG variable/ mac/ access_list/ extended/ hide_mac_acl_ext ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_hide_mac_acl_ext is considered as a private method. Backends looking to populate this variable should do so via cal... | def _set_hide_mac_acl_ext(self, v, load=False):
"""
Setter method for hide_mac_acl_ext, mapped from YANG variable /mac/access_list/extended/hide_mac_acl_ext (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_hide_mac_acl_ext is considered as a private
method... |
Setter method for msgId mapped from YANG variable/ logging/ raslog/ message/ msgId ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_msgId is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_msgId () directly. | def _set_msgId(self, v, load=False):
"""
Setter method for msgId, mapped from YANG variable /logging/raslog/message/msgId (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_msgId is considered as a private
method. Backends looking to populate this variable should... |
Setter method for instance mapped from YANG variable/ protocol/ spanning_tree/ mstp/ instance ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_instance is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_instanc... | def _set_instance(self, v, load=False):
"""
Setter method for instance, mapped from YANG variable /protocol/spanning_tree/mstp/instance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_instance is considered as a private
method. Backends looking to populate thi... |
Setter method for region mapped from YANG variable/ protocol/ spanning_tree/ mstp/ region ( string ) If this variable is read - only ( config: false ) in the source YANG file then _set_region is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_region () d... | def _set_region(self, v, load=False):
"""
Setter method for region, mapped from YANG variable /protocol/spanning_tree/mstp/region (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_region is considered as a private
method. Backends looking to populate this vari... |
Setter method for neighbor mapped from YANG variable/ rbridge_id/ router/ ospf/ neighbor ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_neighbor is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_neighbor () ... | def _set_neighbor(self, v, load=False):
"""
Setter method for neighbor, mapped from YANG variable /rbridge_id/router/ospf/neighbor (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_neighbor is considered as a private
method. Backends looking to populate this var... |
Setter method for area mapped from YANG variable/ rbridge_id/ router/ ospf/ area ( list ) 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 variable should do so via calling thisObj. _set_area () directly. | def _set_area(self, v, load=False):
"""
Setter method for area, mapped from YANG variable /rbridge_id/router/ospf/area (list)
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 variable should
... |
Setter method for auto_cost mapped from YANG variable/ rbridge_id/ router/ ospf/ auto_cost ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_auto_cost is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_auto... | def _set_auto_cost(self, v, load=False):
"""
Setter method for auto_cost, mapped from YANG variable /rbridge_id/router/ospf/auto_cost (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auto_cost is considered as a private
method. Backends looking to populate... |
Setter method for global_bfd mapped from YANG variable/ rbridge_id/ router/ ospf/ global_bfd ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_global_bfd is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_g... | def _set_global_bfd(self, v, load=False):
"""
Setter method for global_bfd, mapped from YANG variable /rbridge_id/router/ospf/global_bfd (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_bfd is considered as a private
method. Backends looking to popu... |
Setter method for mac_learning mapped from YANG variable/ overlay_gateway/ site/ mac_learning ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_mac_learning is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _se... | def _set_mac_learning(self, v, load=False):
"""
Setter method for mac_learning, mapped from YANG variable /overlay_gateway/site/mac_learning (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_learning is considered as a private
method. Backends looking t... |
Setter method for email_list mapped from YANG variable/ rbridge_id/ maps/ email/ email_list ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_email_list is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_email_l... | def _set_email_list(self, v, load=False):
"""
Setter method for email_list, mapped from YANG variable /rbridge_id/maps/email/email_list (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_email_list is considered as a private
method. Backends looking to populate t... |
Setter method for user_password mapped from YANG variable/ username/ user_password ( user - passwd ) If this variable is read - only ( config: false ) in the source YANG file then _set_user_password is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_user... | def _set_user_password(self, v, load=False):
"""
Setter method for user_password, mapped from YANG variable /username/user_password (user-passwd)
If this variable is read-only (config: false) in the
source YANG file, then _set_user_password is considered as a private
method. Backends looking to popu... |
Setter method for encryption_level mapped from YANG variable/ username/ encryption_level ( enumeration ) If this variable is read - only ( config: false ) in the source YANG file then _set_encryption_level is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _s... | def _set_encryption_level(self, v, load=False):
"""
Setter method for encryption_level, mapped from YANG variable /username/encryption_level (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_encryption_level is considered as a private
method. Backends loo... |
Setter method for desc mapped from YANG variable/ username/ desc ( string ) If this variable is read - only ( config: false ) in the source YANG file then _set_desc is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_desc () directly. | def _set_desc(self, v, load=False):
"""
Setter method for desc, mapped from YANG variable /username/desc (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_desc is considered as a private
method. Backends looking to populate this variable should
do so via c... |
Setter method for expire mapped from YANG variable/ username/ expire ( date ) If this variable is read - only ( config: false ) in the source YANG file then _set_expire is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_expire () directly. | def _set_expire(self, v, load=False):
"""
Setter method for expire, mapped from YANG variable /username/expire (date)
If this variable is read-only (config: false) in the
source YANG file, then _set_expire is considered as a private
method. Backends looking to populate this variable should
do so... |
Setter method for trigger mapped from YANG variable/ event_handler/ event_handler_list/ trigger ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_trigger is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_trigge... | def _set_trigger(self, v, load=False):
"""
Setter method for trigger, mapped from YANG variable /event_handler/event_handler_list/trigger (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_trigger is considered as a private
method. Backends looking to populate th... |
Global achievement unlock percent. | def global_unlock_percent(self):
"""Global achievement unlock percent.
:rtype: float
"""
percent = CRef.cfloat()
result = self._iface.get_ach_progress(self.name, percent)
if not result:
return 0.0
return float(percent) |
True if achievement is unlocked. | def unlocked(self):
"""``True`` if achievement is unlocked.
:rtype: bool
"""
achieved = CRef.cbool()
result = self._iface.get_ach(self.name, achieved)
if not result:
return False
return bool(achieved) |
Unlocks the achievement. | def unlock(self, store=True):
"""Unlocks the achievement.
:param bool store: Whether to send data to server immediately (as to get overlay notification).
:rtype: bool
"""
result = self._iface.ach_unlock(self.name)
result and store and self._store()
return resul... |
Clears ( locks ) the achievement. | def clear(self, store=True):
"""Clears (locks) the achievement.
:rtype: bool
"""
result = self._iface.ach_lock(self.name)
result and store and self._store()
return result |
Returns tuple of unlock data: ( is_unlocked unlocked_datetime ). | def get_unlock_info(self):
"""Returns tuple of unlock data: (is_unlocked, unlocked_datetime).
.. note::
`unlocked_datetime` will be ``None`` if achievement if unlocked before 2009-12-01.
:rtype: tuple[bool, datetime]
"""
unlocked = CRef.cbool()
unlocked_at ... |
Setter method for suppress_ra mapped from YANG variable/ routing_system/ interface/ ve/ ipv6/ ipv6_nd_ra/ ipv6_intf_cmds/ nd/ suppress_ra ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_suppress_ra is considered as a private method. Backends looking to populate this var... | def _set_suppress_ra(self, v, load=False):
"""
Setter method for suppress_ra, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/suppress_ra (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_suppress_ra is considered as a p... |
Setter method for ra_dns_server mapped from YANG variable/ routing_system/ interface/ ve/ ipv6/ ipv6_nd_ra/ ipv6_intf_cmds/ nd/ ra_dns_server ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_ra_dns_server is considered as a private method. Backends looking to populate this va... | def _set_ra_dns_server(self, v, load=False):
"""
Setter method for ra_dns_server, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/ra_dns_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ra_dns_server is considered as ... |
Setter method for ra_domain_name mapped from YANG variable/ routing_system/ interface/ ve/ ipv6/ ipv6_nd_ra/ ipv6_intf_cmds/ nd/ ra_domain_name ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_ra_domain_name is considered as a private method. Backends looking to populate this... | def _set_ra_domain_name(self, v, load=False):
"""
Setter method for ra_domain_name, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/ra_domain_name (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ra_domain_name is considered... |
Setter method for prefix mapped from YANG variable/ routing_system/ interface/ ve/ ipv6/ ipv6_nd_ra/ ipv6_intf_cmds/ nd/ prefix ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_prefix is considered as a private method. Backends looking to populate this variable should do so v... | def _set_prefix(self, v, load=False):
"""
Setter method for prefix, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_prefix is considered as a private
method. Backen... |
Setter method for session_ldp_stats mapped from YANG variable/ mpls_state/ ldp/ ldp_session/ session_ldp_stats ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_session_ldp_stats is considered as a private method. Backends looking to populate this variable should do so vi... | def _set_session_ldp_stats(self, v, load=False):
"""
Setter method for session_ldp_stats, mapped from YANG variable /mpls_state/ldp/ldp_session/session_ldp_stats (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_session_ldp_stats is considered as a private
... |
Setter method for trunk_private_vlan_classification mapped from YANG variable/ interface/ port_channel/ switchport/ trunk_private_vlan_classification ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_trunk_private_vlan_classification is considered as a private method. Bac... | def _set_trunk_private_vlan_classification(self, v, load=False):
"""
Setter method for trunk_private_vlan_classification, mapped from YANG variable /interface/port_channel/switchport/trunk_private_vlan_classification (container)
If this variable is read-only (config: false) in the
source YANG file, then... |
Setter method for external_lsa_onstartup mapped from YANG variable/ rbridge_id/ router/ ospf/ max_metric/ router_lsa/ on_startup/ external_lsa_onstartup ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_external_lsa_onstartup is considered as a private method. Backends lo... | def _set_external_lsa_onstartup(self, v, load=False):
"""
Setter method for external_lsa_onstartup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup/external_lsa_onstartup (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_exter... |
Setter method for summary_lsa_onstartup mapped from YANG variable/ rbridge_id/ router/ ospf/ max_metric/ router_lsa/ on_startup/ summary_lsa_onstartup ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_summary_lsa_onstartup is considered as a private method. Backends looki... | def _set_summary_lsa_onstartup(self, v, load=False):
"""
Setter method for summary_lsa_onstartup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup/summary_lsa_onstartup (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_summary_... |
Setter method for bd_pim mapped from YANG variable/ bridge_domain/ ip/ bd_pim ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_bd_pim is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_bd_pim () directly. | def _set_bd_pim(self, v, load=False):
"""
Setter method for bd_pim, mapped from YANG variable /bridge_domain/ip/bd_pim (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_pim is considered as a private
method. Backends looking to populate this variable sho... |
Setter method for bd_ip_igmp mapped from YANG variable/ bridge_domain/ ip/ bd_ip_igmp ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_bd_ip_igmp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_bd_ip_ig... | def _set_bd_ip_igmp(self, v, load=False):
"""
Setter method for bd_ip_igmp, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_ip_igmp is considered as a private
method. Backends looking to populate t... |
Setter method for show_raslog mapped from YANG variable/ brocade_ras_ext_rpc/ show_raslog ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_show_raslog is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_show_rasl... | def _set_show_raslog(self, v, load=False):
"""
Setter method for show_raslog, mapped from YANG variable /brocade_ras_ext_rpc/show_raslog (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_raslog is considered as a private
method. Backends looking to populate ... |
Setter method for show_support_save_status mapped from YANG variable/ brocade_ras_ext_rpc/ show_support_save_status ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_show_support_save_status is considered as a private method. Backends looking to populate this variable should do... | def _set_show_support_save_status(self, v, load=False):
"""
Setter method for show_support_save_status, mapped from YANG variable /brocade_ras_ext_rpc/show_support_save_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_support_save_status is considered as... |
Setter method for show_system_info mapped from YANG variable/ brocade_ras_ext_rpc/ show_system_info ( rpc ) If this variable is read - only ( config: false ) in the source YANG file then _set_show_system_info is considered as a private method. Backends looking to populate this variable should do so via calling thisObj.... | def _set_show_system_info(self, v, load=False):
"""
Setter method for show_system_info, mapped from YANG variable /brocade_ras_ext_rpc/show_system_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_system_info is considered as a private
method. Backends ... |
Setter method for download mapped from YANG variable/ firmware/ download ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_download is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_download () directly. | def _set_download(self, v, load=False):
"""
Setter method for download, mapped from YANG variable /firmware/download (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_download is considered as a private
method. Backends looking to populate this variable sho... |
Setter method for peripheral_update_option mapped from YANG variable/ firmware/ peripheral_update_option ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_peripheral_update_option is considered as a private method. Backends looking to populate this variable should do so v... | def _set_peripheral_update_option(self, v, load=False):
"""
Setter method for peripheral_update_option, mapped from YANG variable /firmware/peripheral_update_option (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_peripheral_update_option is considered as a pr... |
Convert val into a local datetime for tz Europe/ Amsterdam. | def __to_localdatetime(val):
"""Convert val into a local datetime for tz Europe/Amsterdam."""
try:
dt = datetime.strptime(val, __DATE_FORMAT)
dt = pytz.timezone(__TIMEZONE).localize(dt)
return dt
except (ValueError, TypeError):
return None |
Parse the raw data and return as data dictionary. | def parse_xml_data(content, raincontent, latitude=52.091579,
longitude=5.119734, timeframe=60):
"""Parse the raw data and return as data dictionary."""
result = {SUCCESS: False, MESSAGE: None, DATA: None}
if timeframe < 5 or timeframe > 120:
raise ValueError("Timeframe must be >=... |
Get buienradar xml data and return results. | def __get_ws_data():
"""Get buienradar xml data and return results."""
url = 'https://xml.buienradar.nl/'
result = __get_url(url)
if result[SUCCESS]:
return result
# try secondary url:
url = 'https://api.buienradar.nl/'
result = __get_url(url)
return result |
Parse the buienradar xml and rain data. | def __parse_ws_data(content, latitude=52.091579, longitude=5.119734):
"""Parse the buienradar xml and rain data."""
log.info("Parse ws data: latitude: %s, longitude: %s", latitude, longitude)
result = {SUCCESS: False, MESSAGE: None, DATA: None}
# convert the xml data into a dictionary:
try:
... |
Determine if this can be valid data ( not all 0 s ). | def __is_valid(loc_data):
"""Determine if this can be valid data (not all 0's)."""
for key, [value, func] in SENSOR_TYPES.items():
if (key != CONDITION and key != STATIONNAME and key != MEASURED):
if (func is not None):
sens_data = loc_data.get(value)
if func(... |
Parse the xml data from selected weatherstation. | def __parse_loc_data(loc_data, result):
"""Parse the xml data from selected weatherstation."""
result[DATA] = {ATTRIBUTION: ATTRIBUTION_INFO,
FORECAST: [],
PRECIPITATION_FORECAST: None}
for key, [value, func] in SENSOR_TYPES.items():
result[DATA][key] = None
... |
Parse the forecast data from the xml section. | def __parse_fc_data(fc_data):
"""Parse the forecast data from the xml section."""
from buienradar.buienradar import condition_from_code
fc = []
for daycnt in range(1, 6):
daysection = __BRDAYFC % daycnt
if daysection in fc_data:
tmpsect = fc_data[daysection]
fcdat... |
Get the distance to the weatherstation from wstation section of xml. | def __get_ws_distance(wstation, latitude, longitude):
"""Get the distance to the weatherstation from wstation section of xml.
wstation: weerstation section of buienradar xml (dict)
latitude: our latitude
longitude: our longitude
"""
if wstation:
try:
wslat = float(wstation[_... |
Select the nearest weatherstation. | def __select_nearest_ws(xmldata, latitude, longitude):
"""Select the nearest weatherstation."""
log.debug("__select_nearest_ws: latitude: %s, longitude: %s",
latitude, longitude)
dist = 0
dist2 = 0
loc_data = None
try:
ws_xml = xmldata[__BRWEERGEGEVENS][__BRACTUEELWEER]
... |
Setter method for user mapped from YANG variable/ snmp_server/ user ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_user is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_user () directly. | def _set_user(self, v, load=False):
"""
Setter method for user, mapped from YANG variable /snmp_server/user (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_user is considered as a private
method. Backends looking to populate this variable should
do so via ... |
Setter method for v3host mapped from YANG variable/ snmp_server/ v3host ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_v3host is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_v3host () directly. | def _set_v3host(self, v, load=False):
"""
Setter method for v3host, mapped from YANG variable /snmp_server/v3host (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_v3host is considered as a private
method. Backends looking to populate this variable should
do... |
Setter method for group mapped from YANG variable/ snmp_server/ group ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_group () directly. | def _set_group(self, v, load=False):
"""
Setter method for group, mapped from YANG variable /snmp_server/group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_group is considered as a private
method. Backends looking to populate this variable should
do so ... |
Setter method for mib mapped from YANG variable/ snmp_server/ mib ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_mib is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_mib () directly. | def _set_mib(self, v, load=False):
"""
Setter method for mib, mapped from YANG variable /snmp_server/mib (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mib is considered as a private
method. Backends looking to populate this variable should
do so via... |
Setter method for on_startup_overloadtime mapped from YANG variable/ routing_system/ router/ isis/ router_isis_cmds_holder/ router_isis_attributes/ set_overload_bit/ on_startup/ on_startup_overloadtime ( uint32 ) If this variable is read - only ( config: false ) in the source YANG file then _set_on_startup_overloadtime... | def _set_on_startup_overloadtime(self, v, load=False):
"""
Setter method for on_startup_overloadtime, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/on_startup_overloadtime (uint32)
If this variable is read-only (config: false... |
Setter method for wait_for_bgp mapped from YANG variable/ routing_system/ router/ isis/ router_isis_cmds_holder/ router_isis_attributes/ set_overload_bit/ on_startup/ wait_for_bgp ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_wait_for_bgp is considered as a private me... | def _set_wait_for_bgp(self, v, load=False):
"""
Setter method for wait_for_bgp, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/wait_for_bgp (container)
If this variable is read-only (config: false) in the
source YANG file,... |
Predict binding for each peptide in peptfile to allele using the IEDB mhcii binding prediction tool. | def predict_mhcii_binding(job, peptfile, allele, univ_options, mhcii_options):
"""
Predict binding for each peptide in `peptfile` to `allele` using the IEDB mhcii binding
prediction tool.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding aga... |
Predict binding for each peptide in peptfile to allele using netMHCIIpan. | def predict_netmhcii_binding(job, peptfile, allele, univ_options, netmhciipan_options):
"""
Predict binding for each peptide in `peptfile` to `allele` using netMHCIIpan.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding against
:param dict u... |
Setter method for multicast mapped from YANG variable/ qos/ queue/ multicast ( container ) If this variable is read - only ( config: false ) in the source YANG file then _set_multicast is considered as a private method. Backends looking to populate this variable should do so via calling thisObj. _set_multicast () direc... | def _set_multicast(self, v, load=False):
"""
Setter method for multicast, mapped from YANG variable /qos/queue/multicast (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_multicast is considered as a private
method. Backends looking to populate this variabl... |
Setter method for cos_to_tc_dp_mappings mapped from YANG variable/ qos/ map/ cos_traffic_class/ cos_to_tc_dp_mappings ( list ) If this variable is read - only ( config: false ) in the source YANG file then _set_cos_to_tc_dp_mappings is considered as a private method. Backends looking to populate this variable should do... | def _set_cos_to_tc_dp_mappings(self, v, load=False):
"""
Setter method for cos_to_tc_dp_mappings, mapped from YANG variable /qos/map/cos_traffic_class/cos_to_tc_dp_mappings (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_to_tc_dp_mappings is considered as a pr... |
In - place update of permissions. | def update(self, permission):
"""In-place update of permissions."""
self.needs.update(permission.needs)
self.excludes.update(permission.excludes) |
Load permissions associated to actions. | def _load_permissions(self):
"""Load permissions associated to actions."""
result = _P(needs=set(), excludes=set())
if not self.allow_by_default:
result.needs.update(self.explicit_needs)
for explicit_need in self.explicit_needs:
if explicit_need.method == 'action... |
Decorate function to return LazyProxy. | def lazy_result(f):
"""Decorate function to return LazyProxy."""
@wraps(f)
def decorated(ctx, param, value):
return LocalProxy(lambda: f(ctx, param, value))
return decorated |
Return an action if exists. | def process_action(ctx, param, value):
"""Return an action if exists."""
actions = current_app.extensions['invenio-access'].actions
if value not in actions:
raise click.BadParameter('Action "%s" is not registered.', value)
return actions[value] |
Return an user if it exists. | def process_email(ctx, param, value):
"""Return an user if it exists."""
user = User.query.filter(User.email == value).first()
if not user:
raise click.BadParameter('User with email \'%s\' not found.', value)
return user |
Return a role if it exists. | def process_role(ctx, param, value):
"""Return a role if it exists."""
role = Role.query.filter(Role.name == value).first()
if not role:
raise click.BadParameter('Role with name \'%s\' not found.', value)
return role |
Allow a user identified by an email address. | def allow_user(user):
"""Allow a user identified by an email address."""
def processor(action, argument):
db.session.add(
ActionUsers.allow(action, argument=argument, user_id=user.id)
)
return processor |
Allow a role identified by an email address. | def allow_role(role):
"""Allow a role identified by an email address."""
def processor(action, argument):
db.session.add(
ActionRoles.allow(action, argument=argument, role_id=role.id)
)
return processor |
Process allow action. | def process_allow_action(processors, action, argument):
"""Process allow action."""
for processor in processors:
processor(action, argument)
db.session.commit() |
Deny a user identified by an email address. | def deny_user(user):
"""Deny a user identified by an email address."""
def processor(action, argument):
db.session.add(
ActionUsers.deny(action, argument=argument, user_id=user.id)
)
return processor |
Deny a role identified by an email address. | def deny_role(role):
"""Deny a role identified by an email address."""
def processor(action, argument):
db.session.add(
ActionRoles.deny(action, argument=argument, role_id=role.id)
)
return processor |
Process deny action. | def process_deny_action(processors, action, argument):
"""Process deny action."""
for processor in processors:
processor(action, argument)
db.session.commit() |
Remove global action rule. | def remove_global():
"""Remove global action rule."""
def processor(action, argument):
ActionUsers.query_by_action(action, argument=argument).filter(
ActionUsers.user_id.is_(None)
).delete(synchronize_session=False)
return processor |
Remove a action for a user. | def remove_user(user):
"""Remove a action for a user."""
def processor(action, argument):
ActionUsers.query_by_action(action, argument=argument).filter(
ActionUsers.user_id == user.id
).delete(synchronize_session=False)
return processor |
Remove a action for a role. | def remove_role(role):
"""Remove a action for a role."""
def processor(action, argument):
ActionRoles.query_by_action(action, argument=argument).filter(
ActionRoles.role_id == role.id
).delete(synchronize_session=False)
return processor |
Process action removals. | def process_remove_action(processors, action, argument):
"""Process action removals."""
for processor in processors:
processor(action, argument)
db.session.commit() |
List all registered actions. | def list_actions():
"""List all registered actions."""
for name, action in _current_actions.items():
click.echo('{0}:{1}'.format(
name, '*' if hasattr(action, 'argument') else ''
)) |
Show all assigned actions. | def show_actions(email, role):
"""Show all assigned actions."""
if email:
actions = ActionUsers.query.join(ActionUsers.user).filter(
User.email.in_(email)
).all()
for action in actions:
click.secho('user:{0}:{1}:{2}:{3}'.format(
action.user.email,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.