INSTRUCTION
stringlengths
1
46.3k
RESPONSE
stringlengths
75
80.2k
Setter method for interface_hello, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello is considered as a private method. Backends looking to populate this...
def _set_interface_hello(self, v, load=False): """ Setter method for interface_hello, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello is considered...
Setter method for interface_hello_interval, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_interval (list) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello_interval is considered as a private method. Backends lo...
def _set_interface_hello_interval(self, v, load=False): """ Setter method for interface_hello_interval, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_interval (list) If this variable is read-only (config: false) in the source YANG file, then _set_interfa...
Setter method for interface_hello_multiplier, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_multiplier (list) If this variable is read-only (config: false) in the source YANG file, then _set_interface_hello_multiplier is considered as a private method. Backe...
def _set_interface_hello_multiplier(self, v, load=False): """ Setter method for interface_hello_multiplier, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_hello_multiplier (list) If this variable is read-only (config: false) in the source YANG file, then _set_i...
Setter method for circuit_type, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/circuit_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_circuit_type is considered as a private method. Backends looking to populate this variab...
def _set_circuit_type(self, v, load=False): """ Setter method for circuit_type, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/circuit_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_circuit_type is considered as a priv...
Setter method for interface_ipv6, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6 (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_ipv6 is considered as a private method. Backends looking to populate this va...
def _set_interface_ipv6(self, v, load=False): """ Setter method for interface_ipv6, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_ipv6 (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_ipv6 is considered as ...
Setter method for interface_priority, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_priority is considered as a private method. Backends looking to popu...
def _set_interface_priority(self, v, load=False): """ Setter method for interface_priority, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_priority (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_priority i...
Setter method for interface_bfd, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_bfd (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_bfd is considered as a private method. Backends looking to populate this varia...
def _set_interface_bfd(self, v, load=False): """ Setter method for interface_bfd, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/interface_bfd (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_bfd is considered as a pr...
Setter method for dest_ethernet_val, mapped from YANG variable /monitor/session/span_command/dest_ethernet_val (span-if-type) If this variable is read-only (config: false) in the source YANG file, then _set_dest_ethernet_val is considered as a private method. Backends looking to populate this variable shoul...
def _set_dest_ethernet_val(self, v, load=False): """ Setter method for dest_ethernet_val, mapped from YANG variable /monitor/session/span_command/dest_ethernet_val (span-if-type) If this variable is read-only (config: false) in the source YANG file, then _set_dest_ethernet_val is considered as a private...
Setter method for direction, mapped from YANG variable /monitor/session/span_command/direction (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_direction is considered as a private method. Backends looking to populate this variable should do so via calling t...
def _set_direction(self, v, load=False): """ Setter method for direction, mapped from YANG variable /monitor/session/span_command/direction (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_direction is considered as a private method. Backends looking to ...
Setter method for overlay_acl_in, mapped from YANG variable /overlay_gateway/access_lists/overlay_acl_in (container) If this variable is read-only (config: false) in the source YANG file, then _set_overlay_acl_in is considered as a private method. Backends looking to populate this variable should do so ...
def _set_overlay_acl_in(self, v, load=False): """ Setter method for overlay_acl_in, mapped from YANG variable /overlay_gateway/access_lists/overlay_acl_in (container) If this variable is read-only (config: false) in the source YANG file, then _set_overlay_acl_in is considered as a private method. Ba...
Setter method for trunk, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association/trunk (list) If this variable is read-only (config: false) in the source YANG file, then _set_trunk is considered as a private method. Backends looking to populate this variable should do so vi...
def _set_trunk(self, v, load=False): """ Setter method for trunk, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association/trunk (list) If this variable is read-only (config: false) in the source YANG file, then _set_trunk is considered as a private method. Backends look...
Run a specified BOT by label e.g. 'MyBot
def run(bot, config, settings): """Run a specified BOT by label e.g. 'MyBot'""" print_options(bot, config, settings) click.echo() bot_task = BotTask(bot, config) bot_task.run_once()
Schedule a BOT (by label) to run on an interval, e.g. 'MyBot -i 60
def loop(bot, config, interval, settings): """Schedule a BOT (by label) to run on an interval, e.g. 'MyBot -i 60'""" print_options(bot, config, settings) click.echo(f'- Interval: {interval}s') click.echo() bot_task = BotTask(bot, config) bot_task.run_loop(interval)
Run the abort command of a specified BOT by label e.g. 'MyBot
def abort(bot, config, settings): """Run the abort command of a specified BOT by label e.g. 'MyBot'""" print_options(bot, config, settings) click.echo() bot_task = BotTask(bot, config) bot_task.abort()
Creates a Trading-Bots project directory structure for the given project NAME in the current directory or optionally in the given DIRECTORY.
def startproject(name, directory, verbosity): """ Creates a Trading-Bots project directory structure for the given project NAME in the current directory or optionally in the given DIRECTORY. """ handle_template('project', name, target=directory, verbosity=verbosity) click.echo(f"Success: '{name}...
Creates a Bot's directory structure for the given bot NAME in the current directory or optionally in the given DIRECTORY.
def createbot(name, directory, verbosity): """ Creates a Bot's directory structure for the given bot NAME in the current directory or optionally in the given DIRECTORY. """ handle_template('bot', name, target=directory, verbosity=verbosity) click.echo(f"Success: '{name}' bot was successfully cre...
Setter method for kap_custom_profile, mapped from YANG variable /hardware/custom_profile/kap_custom_profile (list) If this variable is read-only (config: false) in the source YANG file, then _set_kap_custom_profile is considered as a private method. Backends looking to populate this variable should do s...
def _set_kap_custom_profile(self, v, load=False): """ Setter method for kap_custom_profile, mapped from YANG variable /hardware/custom_profile/kap_custom_profile (list) If this variable is read-only (config: false) in the source YANG file, then _set_kap_custom_profile is considered as a private meth...
Setter method for static_ag_ip_config, mapped from YANG variable /rbridge_id/ip/static_ag_ip_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_static_ag_ip_config is considered as a private method. Backends looking to populate this variable should do so ...
def _set_static_ag_ip_config(self, v, load=False): """ Setter method for static_ag_ip_config, mapped from YANG variable /rbridge_id/ip/static_ag_ip_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_static_ag_ip_config is considered as a private metho...
Setter method for as_path, mapped from YANG variable /rbridge_id/ip/as_path (container) If this variable is read-only (config: false) in the source YANG file, then _set_as_path is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_as_path() d...
def _set_as_path(self, v, load=False): """ Setter method for as_path, mapped from YANG variable /rbridge_id/ip/as_path (container) If this variable is read-only (config: false) in the source YANG file, then _set_as_path is considered as a private method. Backends looking to populate this variable sh...
Setter method for community_list, mapped from YANG variable /rbridge_id/ip/community_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_community_list is considered as a private method. Backends looking to populate this variable should do so via calling thi...
def _set_community_list(self, v, load=False): """ Setter method for community_list, mapped from YANG variable /rbridge_id/ip/community_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_community_list is considered as a private method. Backends looking ...
Setter method for route_profiletype, mapped from YANG variable /hardware/profile/route/predefined/route_profiletype (route-profile-subtype) If this variable is read-only (config: false) in the source YANG file, then _set_route_profiletype is considered as a private method. Backends looking to populate this ...
def _set_route_profiletype(self, v, load=False): """ Setter method for route_profiletype, mapped from YANG variable /hardware/profile/route/predefined/route_profiletype (route-profile-subtype) If this variable is read-only (config: false) in the source YANG file, then _set_route_profiletype is considere...
Setter method for route_parameter, mapped from YANG variable /hardware/profile/route/predefined/route_parameter (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_parameter is considered as a private method. Backends looking to populate this variable should ...
def _set_route_parameter(self, v, load=False): """ Setter method for route_parameter, mapped from YANG variable /hardware/profile/route/predefined/route_parameter (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_parameter is considered as a private m...
Setter method for ipsec, mapped from YANG variable /interface/fortygigabitethernet/ipv6/interface_ospfv3_conf/authentication/ipsec (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipsec is considered as a private method. Backends looking to populate this variable ...
def _set_ipsec(self, v, load=False): """ Setter method for ipsec, mapped from YANG variable /interface/fortygigabitethernet/ipv6/interface_ospfv3_conf/authentication/ipsec (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipsec is considered as a private me...
Setter method for trust, mapped from YANG variable /interface/port_channel/qos/trust (container) If this variable is read-only (config: false) in the source YANG file, then _set_trust is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_trus...
def _set_trust(self, v, load=False): """ Setter method for trust, mapped from YANG variable /interface/port_channel/qos/trust (container) If this variable is read-only (config: false) in the source YANG file, then _set_trust is considered as a private method. Backends looking to populate this variab...
Setter method for remove_, mapped from YANG variable /interface/port_channel/track/remove (container) If this variable is read-only (config: false) in the source YANG file, then _set_remove_ is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
def _set_remove_(self, v, load=False): """ Setter method for remove_, mapped from YANG variable /interface/port_channel/track/remove (container) If this variable is read-only (config: false) in the source YANG file, then _set_remove_ is considered as a private method. Backends looking to populate th...
Setter method for subnet_rate_limit, mapped from YANG variable /control_plane/ipv6/subnet_rate_limit (container) If this variable is read-only (config: false) in the source YANG file, then _set_subnet_rate_limit is considered as a private method. Backends looking to populate this variable should do so v...
def _set_subnet_rate_limit(self, v, load=False): """ Setter method for subnet_rate_limit, mapped from YANG variable /control_plane/ipv6/subnet_rate_limit (container) If this variable is read-only (config: false) in the source YANG file, then _set_subnet_rate_limit is considered as a private method. ...
Setter method for redistribute_isis, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/redistribute_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_redi...
def _set_redistribute_isis(self, v, load=False): """ Setter method for redistribute_isis, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/redistribute_isis (container) If this variable is read-onl...
Setter method for vlan_add, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/vlan_add (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_add is considered as a private method. Backends looking to populate this variable should do...
def _set_vlan_add(self, v, load=False): """ Setter method for vlan_add, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/vlan_add (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_add is considered as a private method. Back...
Setter method for evpn_vlan, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/evpn_vlan (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_vlan is considered as a private method. Backends looking to populate this variable should do s...
def _set_evpn_vlan(self, v, load=False): """ Setter method for evpn_vlan, mapped from YANG variable /routing_system/evpn_config/evpn/evpn_instance/vlan/evpn_vlan (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_vlan is considered as a private method. Backe...
Setter method for ethernet, mapped from YANG variable /interface/ethernet (list) If this variable is read-only (config: false) in the source YANG file, then _set_ethernet is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ethernet() direct...
def _set_ethernet(self, v, load=False): """ Setter method for ethernet, mapped from YANG variable /interface/ethernet (list) If this variable is read-only (config: false) in the source YANG file, then _set_ethernet is considered as a private method. Backends looking to populate this variable should ...
Setter method for homerun, mapped from YANG variable /interface/homerun (list) If this variable is read-only (config: false) in the source YANG file, then _set_homerun is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_homerun() directly. ...
def _set_homerun(self, v, load=False): """ Setter method for homerun, mapped from YANG variable /interface/homerun (list) If this variable is read-only (config: false) in the source YANG file, then _set_homerun is considered as a private method. Backends looking to populate this variable should ...
Setter method for tunnel, mapped from YANG variable /interface/tunnel (list) If this variable is read-only (config: false) in the source YANG file, then _set_tunnel is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_tunnel() directly.
def _set_tunnel(self, v, load=False): """ Setter method for tunnel, mapped from YANG variable /interface/tunnel (list) If this variable is read-only (config: false) in the source YANG file, then _set_tunnel is considered as a private method. Backends looking to populate this variable should do s...
Setter method for alarm_sample, mapped from YANG variable /rmon/alarm_entry/alarm_sample (alarm-sample-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_sample is considered as a private method. Backends looking to populate this variable should do so via callin...
def _set_alarm_sample(self, v, load=False): """ Setter method for alarm_sample, mapped from YANG variable /rmon/alarm_entry/alarm_sample (alarm-sample-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_sample is considered as a private method. Backends looki...
Setter method for alarm_interval, mapped from YANG variable /rmon/alarm_entry/alarm_interval (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_interval is considered as a private method. Backends looking to populate this variable should do so via calling thi...
def _set_alarm_interval(self, v, load=False): """ Setter method for alarm_interval, mapped from YANG variable /rmon/alarm_entry/alarm_interval (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_interval is considered as a private method. Backends looking ...
Setter method for alarm_falling_threshold, mapped from YANG variable /rmon/alarm_entry/alarm_falling_threshold (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_threshold is considered as a private method. Backends looking to populate this variable shoul...
def _set_alarm_falling_threshold(self, v, load=False): """ Setter method for alarm_falling_threshold, mapped from YANG variable /rmon/alarm_entry/alarm_falling_threshold (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_threshold is considered as a p...
Setter method for alarm_falling_event_index, mapped from YANG variable /rmon/alarm_entry/alarm_falling_event_index (alarm-falling-event-index-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_event_index is considered as a private method. Backends looking t...
def _set_alarm_falling_event_index(self, v, load=False): """ Setter method for alarm_falling_event_index, mapped from YANG variable /rmon/alarm_entry/alarm_falling_event_index (alarm-falling-event-index-type) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_falling_...
Setter method for alarm_owner, mapped from YANG variable /rmon/alarm_entry/alarm_owner (owner-string) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_owner is considered as a private method. Backends looking to populate this variable should do so via calling thisOb...
def _set_alarm_owner(self, v, load=False): """ Setter method for alarm_owner, mapped from YANG variable /rmon/alarm_entry/alarm_owner (owner-string) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_owner is considered as a private method. Backends looking to pop...
Setter method for level2_into_level1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2/into/level2_into_level1 (container) If this variable is read-only (config: false) in the sourc...
def _set_level2_into_level1(self, v, load=False): """ Setter method for level2_into_level1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2/into/level2_into_level1 (container) ...
Setter method for ieee_bpdu, mapped from YANG variable /rbridge_id/spanning_tree/ieee_bpdu (container) If this variable is read-only (config: false) in the source YANG file, then _set_ieee_bpdu is considered as a private method. Backends looking to populate this variable should do so via calling thisObj...
def _set_ieee_bpdu(self, v, load=False): """ Setter method for ieee_bpdu, mapped from YANG variable /rbridge_id/spanning_tree/ieee_bpdu (container) If this variable is read-only (config: false) in the source YANG file, then _set_ieee_bpdu is considered as a private method. Backends looking to popula...
Setter method for show_firmware_version, mapped from YANG variable /brocade_firmware_ext_rpc/show_firmware_version (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_firmware_version is considered as a private method. Backends looking to populate this variable should...
def _set_show_firmware_version(self, v, load=False): """ Setter method for show_firmware_version, mapped from YANG variable /brocade_firmware_ext_rpc/show_firmware_version (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_firmware_version is considered as a priv...
Setter method for action, mapped from YANG variable /police_remark_profile/action (list) If this variable is read-only (config: false) in the source YANG file, then _set_action is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_action() di...
def _set_action(self, v, load=False): """ Setter method for action, mapped from YANG variable /police_remark_profile/action (list) If this variable is read-only (config: false) in the source YANG file, then _set_action is considered as a private method. Backends looking to populate this variable sho...
Setter method for load_balancing, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/load_balancing (container) If this variable is read-only (config: false) in the source YANG file, then _set_load_balancing is considered as a private method. Backends looking to populate this...
def _set_load_balancing(self, v, load=False): """ Setter method for load_balancing, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/load_balancing (container) If this variable is read-only (config: false) in the source YANG file, then _set_load_balancing is considered ...
Setter method for ipv6_track, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/ipv6_track (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_track is considered as a private method. Backends looking to populate this variable sh...
def _set_ipv6_track(self, v, load=False): """ Setter method for ipv6_track, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_local_anycast_gateway/ipv6_track (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_track is considered as a private ...
User name (the same name as on the users community profile page). :rtype: str
def name(self): """User name (the same name as on the users community profile page). :rtype: str """ uid = self.user_id if self._iface_user.get_id() == uid: return self._iface.get_my_name() return self._iface.get_name(uid)
A list of user names (as user can change those occasionally). :rtype: list
def name_history(self): """A list of user names (as user can change those occasionally). :rtype: list """ history = [] idx = 0 get_history = self._iface.get_name_history uid = self.user_id while True: name = get_history(uid, idx) ...
Returns user state. See ``UserState``. :param bool as_str: Return human-friendly state name instead of an ID. :rtype: int|str
def get_state(self, as_str=False): """Returns user state. See ``UserState``. :param bool as_str: Return human-friendly state name instead of an ID. :rtype: int|str """ uid = self.user_id if self._iface_user.get_id() == uid: result = self._iface.get_my_state...
Indicated whether the user has friends, who meet the given criteria (filter). :param int flt: Filter value from FriendFilter. Filters can be combined with `|`. :rtype: bool
def has_friends(self, flt=FriendFilter.ALL): """Indicated whether the user has friends, who meet the given criteria (filter). :param int flt: Filter value from FriendFilter. Filters can be combined with `|`. :rtype: bool """ return self._iface.get_has_friend(self.user_id, flt)
Setter method for external_lsa, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/external_lsa (container) If this variable is read-only (config: false) in the source YANG file, then _set_external_lsa is considered as a private method. Backends looking to populate this variable should ...
def _set_external_lsa(self, v, load=False): """ Setter method for external_lsa, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/external_lsa (container) If this variable is read-only (config: false) in the source YANG file, then _set_external_lsa is considered as a private me...
Setter method for on_startup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup (container) If this variable is read-only (config: false) in the source YANG file, then _set_on_startup is considered as a private method. Backends looking to populate this variable should do...
def _set_on_startup(self, v, load=False): """ Setter method for on_startup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup (container) If this variable is read-only (config: false) in the source YANG file, then _set_on_startup is considered as a private method. Ba...
Setter method for dynamic_bypass, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/dynamic_bypass (container) If this variable is read-only (config: false) in the source YANG file, then _set_dynamic_bypass is considered as a private method. Backends looking to populate this variable shoul...
def _set_dynamic_bypass(self, v, load=False): """ Setter method for dynamic_bypass, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/dynamic_bypass (container) If this variable is read-only (config: false) in the source YANG file, then _set_dynamic_bypass is considered as a private ...
Setter method for ether_stats_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/ether_stats_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_ether_stats_entry is considered as a private method. Backends looking to populate this vari...
def _set_ether_stats_entry(self, v, load=False): """ Setter method for ether_stats_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/ether_stats_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_ether_stats_entry is considered as...
Setter method for history_control_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/history_control_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_history_control_entry is considered as a private method. Backends looking to popula...
def _set_history_control_entry(self, v, load=False): """ Setter method for history_control_entry, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection/history_control_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_history_control_entry ...
Factory method for creating new actions (w/wo parameters). :param name: Name of the action (prefix with your module name). :param parameter: Determines if action should take parameters or not. Default is ``False``.
def action_factory(name, parameter=False): """Factory method for creating new actions (w/wo parameters). :param name: Name of the action (prefix with your module name). :param parameter: Determines if action should take parameters or not. Default is ``False``. """ if parameter: retu...
Add system roles "Needs" to users' identities. Every user gets the **any_user** Need. Authenticated users get in addition the **authenticated_user** Need.
def load_permissions_on_identity_loaded(sender, identity): """Add system roles "Needs" to users' identities. Every user gets the **any_user** Need. Authenticated users get in addition the **authenticated_user** Need. """ identity.provides.add( any_user ) # if the user is not anonymo...
Setter method for load_balance, mapped from YANG variable /interface/port_channel/load_balance (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance is considered as a private method. Backends looking to populate this variable should do so via callin...
def _set_load_balance(self, v, load=False): """ Setter method for load_balance, mapped from YANG variable /interface/port_channel/load_balance (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance is considered as a private method. Backends looki...
Upgrade database.
def upgrade(): """Upgrade database.""" op.drop_constraint(u'fk_access_actionsusers_user_id_accounts_user', 'access_actionsusers', type_='foreignkey') op.drop_index(op.f('ix_access_actionsusers_user_id'), table_name='access_actionsusers') op.alter_column('access_...
Setter method for clear_tm_voq_stat_ing_all_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_ing_all_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_stat_ing_all_egr_all is considered as a private method. Backends looking ...
def _set_clear_tm_voq_stat_ing_all_egr_all(self, v, load=False): """ Setter method for clear_tm_voq_stat_ing_all_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_ing_all_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_...
Setter method for clear_tm_voq_stat_slot_id_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_slot_id_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_stat_slot_id_egr_all is considered as a private method. Backends looking ...
def _set_clear_tm_voq_stat_slot_id_egr_all(self, v, load=False): """ Setter method for clear_tm_voq_stat_slot_id_egr_all, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_stat_slot_id_egr_all (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_clear_tm_voq_...
Setter method for auto_qos, mapped from YANG variable /nas/auto_qos (container) If this variable is read-only (config: false) in the source YANG file, then _set_auto_qos is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_auto_qos() directl...
def _set_auto_qos(self, v, load=False): """ Setter method for auto_qos, mapped from YANG variable /nas/auto_qos (container) If this variable is read-only (config: false) in the source YANG file, then _set_auto_qos is considered as a private method. Backends looking to populate this variable should ...
Setter method for server_ip, mapped from YANG variable /nas/server_ip (list) If this variable is read-only (config: false) in the source YANG file, then _set_server_ip is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_server_ip() directly...
def _set_server_ip(self, v, load=False): """ Setter method for server_ip, mapped from YANG variable /nas/server_ip (list) If this variable is read-only (config: false) in the source YANG file, then _set_server_ip is considered as a private method. Backends looking to populate this variable should ...
Setter method for lif_main_intf_type, mapped from YANG variable /bridge_domain_state/bridge_domain_list/outer_vlan_list/tagged_ports_list/lif_main_intf_type (nsm-dcm-lif-main-intf-type) If this variable is read-only (config: false) in the source YANG file, then _set_lif_main_intf_type is considered as a private...
def _set_lif_main_intf_type(self, v, load=False): """ Setter method for lif_main_intf_type, mapped from YANG variable /bridge_domain_state/bridge_domain_list/outer_vlan_list/tagged_ports_list/lif_main_intf_type (nsm-dcm-lif-main-intf-type) If this variable is read-only (config: false) in the source YANG...
Setter method for interface_isis, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_isis is considered as a private method. Backends looking to populate this variable should ...
def _set_interface_isis(self, v, load=False): """ Setter method for interface_isis, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_isis is considered as a private m...
Setter method for event_entry, mapped from YANG variable /rmon/event_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_event_entry is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_event_entry()...
def _set_event_entry(self, v, load=False): """ Setter method for event_entry, mapped from YANG variable /rmon/event_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_event_entry is considered as a private method. Backends looking to populate this variable ...
Setter method for alarm_entry, mapped from YANG variable /rmon/alarm_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_entry is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_alarm_entry()...
def _set_alarm_entry(self, v, load=False): """ Setter method for alarm_entry, mapped from YANG variable /rmon/alarm_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_alarm_entry is considered as a private method. Backends looking to populate this variable ...
Setter method for get_nameserver_detail, mapped from YANG variable /brocade_nameserver_rpc/get_nameserver_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_nameserver_detail is considered as a private method. Backends looking to populate this variable should ...
def _set_get_nameserver_detail(self, v, load=False): """ Setter method for get_nameserver_detail, mapped from YANG variable /brocade_nameserver_rpc/get_nameserver_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_nameserver_detail is considered as a privat...
Setter method for pfc_threshold, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc_threshold (container) If this variable is read-only (config: false) in the source YANG file, then _set_pfc_threshold is considered as a private method. Backends looking to populate this variable should ...
def _set_pfc_threshold(self, v, load=False): """ Setter method for pfc_threshold, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc_threshold (container) If this variable is read-only (config: false) in the source YANG file, then _set_pfc_threshold is considered as a private meth...
Setter method for delay_link, mapped from YANG variable /interface/ethernet/delay_link_event/delay_link (container) If this variable is read-only (config: false) in the source YANG file, then _set_delay_link is considered as a private method. Backends looking to populate this variable should do so via c...
def _set_delay_link(self, v, load=False): """ Setter method for delay_link, mapped from YANG variable /interface/ethernet/delay_link_event/delay_link (container) If this variable is read-only (config: false) in the source YANG file, then _set_delay_link is considered as a private method. Backends lo...
Setter method for peer, mapped from YANG variable /bridge_domain/peer (list) If this variable is read-only (config: false) in the source YANG file, then _set_peer is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_peer() directly.
def _set_peer(self, v, load=False): """ Setter method for peer, mapped from YANG variable /bridge_domain/peer (list) If this variable is read-only (config: false) in the source YANG file, then _set_peer is considered as a private method. Backends looking to populate this variable should do so vi...
Setter method for router_interface, mapped from YANG variable /bridge_domain/router_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_router_interface is considered as a private method. Backends looking to populate this variable should do so via calling th...
def _set_router_interface(self, v, load=False): """ Setter method for router_interface, mapped from YANG variable /bridge_domain/router_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_router_interface is considered as a private method. Backends looki...
Setter method for unicast, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_unicast is considered as a private method. Backends looking to populate this variable should do so via calling thi...
def _set_unicast(self, v, load=False): """ Setter method for unicast, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast (container) If this variable is read-only (config: false) in the source YANG file, then _set_unicast is considered as a private method. Backends looking to popu...
Setter method for history, mapped from YANG variable /cpu_state/history (container) If this variable is read-only (config: false) in the source YANG file, then _set_history is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_history() direc...
def _set_history(self, v, load=False): """ Setter method for history, mapped from YANG variable /cpu_state/history (container) If this variable is read-only (config: false) in the source YANG file, then _set_history is considered as a private method. Backends looking to populate this variable should...
Setter method for top, mapped from YANG variable /cpu_state/top (container) If this variable is read-only (config: false) in the source YANG file, then _set_top is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_top() directly. YANG D...
def _set_top(self, v, load=False): """ Setter method for top, mapped from YANG variable /cpu_state/top (container) If this variable is read-only (config: false) in the source YANG file, then _set_top is considered as a private method. Backends looking to populate this variable should do so via c...
Setter method for all_partition, mapped from YANG variable /cpu_state/all_partition (container) If this variable is read-only (config: false) in the source YANG file, then _set_all_partition is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
def _set_all_partition(self, v, load=False): """ Setter method for all_partition, mapped from YANG variable /cpu_state/all_partition (container) If this variable is read-only (config: false) in the source YANG file, then _set_all_partition is considered as a private method. Backends looking to popul...
Setter method for process_list, mapped from YANG variable /cpu_state/process_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_process_list is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_...
def _set_process_list(self, v, load=False): """ Setter method for process_list, mapped from YANG variable /cpu_state/process_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_process_list is considered as a private method. Backends looking to populate ...
This will ensure that the required_version of `tool` is at least `required_version`. :param str tool: The tool under review :param str required_version: The version of the tool required by ProTECT :param list blacklisted_versions: Version of the tool blacklisted by ProTECT :param bool binary: Is the too...
def check_tool_version(tool, required_version, blacklisted_versions=None, binary=False): """ This will ensure that the required_version of `tool` is at least `required_version`. :param str tool: The tool under review :param str required_version: The version of the tool required by ProTECT :param lis...
Setter method for untagged, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged (container) If this variable is read-only (config: false) in the source YANG file, then _set_untagged is...
def _set_untagged(self, v, load=False): """ Setter method for untagged, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged (container) If this variable is read-only (config: false...
Setter method for vlan_and_bd, mapped from YANG variable /overlay_gateway/map/vlan_and_bd (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_and_bd is considered as a private method. Backends looking to populate this variable should do so via calling thisOb...
def _set_vlan_and_bd(self, v, load=False): """ Setter method for vlan_and_bd, mapped from YANG variable /overlay_gateway/map/vlan_and_bd (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlan_and_bd is considered as a private method. Backends looking to pop...
Setter method for params, mapped from YANG variable /overlay_gateway/site/bfd/params (container) If this variable is read-only (config: false) in the source YANG file, then _set_params is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_par...
def _set_params(self, v, load=False): """ Setter method for params, mapped from YANG variable /overlay_gateway/site/bfd/params (container) If this variable is read-only (config: false) in the source YANG file, then _set_params is considered as a private method. Backends looking to populate this vari...
Setter method for port_list, mapped from YANG variable /tvf_domain_list_state/domain_list/port_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_port_list is considered as a private method. Backends looking to populate this variable should do so via callin...
def _set_port_list(self, v, load=False): """ Setter method for port_list, mapped from YANG variable /tvf_domain_list_state/domain_list/port_list (container) If this variable is read-only (config: false) in the source YANG file, then _set_port_list is considered as a private method. Backends looking ...
Setter method for area_range, mapped from YANG variable /rbridge_id/ipv6/router/ospf/area/area_range (list) If this variable is read-only (config: false) in the source YANG file, then _set_area_range is considered as a private method. Backends looking to populate this variable should do so via calling t...
def _set_area_range(self, v, load=False): """ Setter method for area_range, mapped from YANG variable /rbridge_id/ipv6/router/ospf/area/area_range (list) If this variable is read-only (config: false) in the source YANG file, then _set_area_range is considered as a private method. Backends looking to...
Setter method for evpn_neighbor_ipv6, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/l2vpn/evpn/neighbor/evpn_neighbor_ipv6 (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_neighbor_ipv6 is considered as a private method. Backends looking t...
def _set_evpn_neighbor_ipv6(self, v, load=False): """ Setter method for evpn_neighbor_ipv6, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/l2vpn/evpn/neighbor/evpn_neighbor_ipv6 (list) If this variable is read-only (config: false) in the source YANG file, then _set_evpn_neighbor_...
Return messages for a file (if file_name provided). If file_name is none, returns all messages as a dict. :param file_name: :return: array if file_name is provided, dict otherwise.
def get_messages(self, file_name=None): """ Return messages for a file (if file_name provided). If file_name is none, returns all messages as a dict. :param file_name: :return: array if file_name is provided, dict otherwise. """ if file_name is None: r...
Adds a message to the messages dict :param message:
def add_validation_message(self, message): """ Adds a message to the messages dict :param message: """ if message.file not in self.messages: self.messages[message.file] = [] self.messages[message.file].append(message)
Prints the errors observed for a file
def print_errors(self, file_name): """ Prints the errors observed for a file """ for error in self.get_messages(file_name): print('\t', error.__unicode__())
Setter method for rcv_queue, mapped from YANG variable /rbridge_id/qos/rcv_queue (container) If this variable is read-only (config: false) in the source YANG file, then _set_rcv_queue is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_rcv_...
def _set_rcv_queue(self, v, load=False): """ Setter method for rcv_queue, mapped from YANG variable /rbridge_id/qos/rcv_queue (container) If this variable is read-only (config: false) in the source YANG file, then _set_rcv_queue is considered as a private method. Backends looking to populate this va...
Setter method for link_oam, mapped from YANG variable /protocol/link_oam (container) If this variable is read-only (config: false) in the source YANG file, then _set_link_oam is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_link_oam() di...
def _set_link_oam(self, v, load=False): """ Setter method for link_oam, mapped from YANG variable /protocol/link_oam (container) If this variable is read-only (config: false) in the source YANG file, then _set_link_oam is considered as a private method. Backends looking to populate this variable sho...
Setter method for edge_loop_detection, mapped from YANG variable /protocol/edge_loop_detection (container) If this variable is read-only (config: false) in the source YANG file, then _set_edge_loop_detection is considered as a private method. Backends looking to populate this variable should do so via c...
def _set_edge_loop_detection(self, v, load=False): """ Setter method for edge_loop_detection, mapped from YANG variable /protocol/edge_loop_detection (container) If this variable is read-only (config: false) in the source YANG file, then _set_edge_loop_detection is considered as a private method. Ba...
Setter method for autoupload_param, mapped from YANG variable /support/autoupload_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload_param is considered as a private method. Backends looking to populate this variable should do so via calling thi...
def _set_autoupload_param(self, v, load=False): """ Setter method for autoupload_param, mapped from YANG variable /support/autoupload_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload_param is considered as a private method. Backends lookin...
Setter method for support_param, mapped from YANG variable /support/support_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_support_param is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set...
def _set_support_param(self, v, load=False): """ Setter method for support_param, mapped from YANG variable /support/support_param (container) If this variable is read-only (config: false) in the source YANG file, then _set_support_param is considered as a private method. Backends looking to populat...
Setter method for autoupload, mapped from YANG variable /support/autoupload (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_autouplo...
def _set_autoupload(self, v, load=False): """ Setter method for autoupload, mapped from YANG variable /support/autoupload (container) If this variable is read-only (config: false) in the source YANG file, then _set_autoupload is considered as a private method. Backends looking to populate this varia...
Setter method for action_profile_association, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/remote_mep/action_profile_association (string) If this variable is read-only (config: false) in the source YANG file, then _set_action_profile_association is con...
def _set_action_profile_association(self, v, load=False): """ Setter method for action_profile_association, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/remote_mep/action_profile_association (string) If this variable is read-only (config: false) in...
Setter method for slot, mapped from YANG variable /qos/cpu/slot (list) If this variable is read-only (config: false) in the source YANG file, then _set_slot is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_slot() directly.
def _set_slot(self, v, load=False): """ Setter method for slot, mapped from YANG variable /qos/cpu/slot (list) If this variable is read-only (config: false) in the source YANG file, then _set_slot is considered as a private method. Backends looking to populate this variable should do so via call...
Returns the filtered/selected GeoQuerySet.
def query(self, force=False): """Returns the filtered/selected GeoQuerySet.""" if not self.is_valid(): raise forms.ValidationError(self.errors) if force: self._is_selected = False if not self._is_selected: if self.queryset is None: rais...
Return cleaned fields as a dict, determine which geom takes precedence.
def clean(self): """Return cleaned fields as a dict, determine which geom takes precedence. """ data = super(RasterQueryForm, self).clean() geom = data.pop('upload', None) or data.pop('bbox', None) if geom: data['g'] = geom return data
Setter method for untagged_vlan, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged/untagged_vlan (container) If this variable is read-only (config: false) in the source YANG file, th...
def _set_untagged_vlan(self, v, load=False): """ Setter method for untagged_vlan, mapped from YANG variable /interface/port_channel/logical_interface/port_channel/pc_cmd_container_dummy/service_instance_vlan_cmds_dummy_container/get_untagged_vlan_dummy/untagged/untagged_vlan (container) If this variable is ...
Setter method for exec_, mapped from YANG variable /aaa_config/aaa/accounting/exec (container) If this variable is read-only (config: false) in the source YANG file, then _set_exec_ is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_exec_(...
def _set_exec_(self, v, load=False): """ Setter method for exec_, mapped from YANG variable /aaa_config/aaa/accounting/exec (container) If this variable is read-only (config: false) in the source YANG file, then _set_exec_ is considered as a private method. Backends looking to populate this variable...
Setter method for commands, mapped from YANG variable /aaa_config/aaa/accounting/commands (container) If this variable is read-only (config: false) in the source YANG file, then _set_commands is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
def _set_commands(self, v, load=False): """ Setter method for commands, mapped from YANG variable /aaa_config/aaa/accounting/commands (container) If this variable is read-only (config: false) in the source YANG file, then _set_commands is considered as a private method. Backends looking to populate ...
Setter method for lsp_secpath_autobw_template, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path/lsp_secpath_auto_bandwidth/lsp_secpath_autobw_template (leafref) If this variable is read-only (config: false) in the source YANG file, then _set_lsp_secpath_autobw_template is c...
def _set_lsp_secpath_autobw_template(self, v, load=False): """ Setter method for lsp_secpath_autobw_template, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/secondary_path/lsp_secpath_auto_bandwidth/lsp_secpath_autobw_template (leafref) If this variable is read-only (config: false) ...
Setter method for af_vpnv4_neighbor, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast/af_vpnv4_neighbor_address_holder/af_vpnv4_neighbor (list) If this variable is read-only (config: false) in the source YANG file, then _set_af_vpnv4_neighbor is considered as a priv...
def _set_af_vpnv4_neighbor(self, v, load=False): """ Setter method for af_vpnv4_neighbor, mapped from YANG variable /routing_system/router/router_bgp/address_family/vpnv4/vpnv4_unicast/af_vpnv4_neighbor_address_holder/af_vpnv4_neighbor (list) If this variable is read-only (config: false) in the source Y...
Register a matcher associated to one or more aliases. Each alias given is also normalized.
def register(matcher, *aliases): """ Register a matcher associated to one or more aliases. Each alias given is also normalized. """ docstr = matcher.__doc__ if matcher.__doc__ is not None else '' helpmatchers[matcher] = docstr.strip() for alias in aliases: matchers[alias] = matcher ...