INSTRUCTION
stringlengths
1
46.3k
RESPONSE
stringlengths
75
80.2k
This module will take a master key and a url, and then make a new key specific to the url, based off the master. :param str master_key: Path to the master key used for encryption. :param str url: Full URL to the potential file location in S3. :returns new_key: The new key that is obtained by hashing the...
def generate_unique_key(master_key, url): """ This module will take a master key and a url, and then make a new key specific to the url, based off the master. :param str master_key: Path to the master key used for encryption. :param str url: Full URL to the potential file location in S3. :return...
This module will take in some datum (a file, or a folder) and write it to S3. It requires a master key to encrypt the datum with, and a bucket to drop the results into. If remote dir is set, the datum is dropped into the provided directory. :param str datum: File or folder that needs to be transferred...
def write_to_s3(datum, master_key, bucket_name, remote_dir=''): """ This module will take in some datum (a file, or a folder) and write it to S3. It requires a master key to encrypt the datum with, and a bucket to drop the results into. If remote dir is set, the datum is dropped into the provided ...
This is the main module for the script. The script will accept a file, or a directory, and then encrypt it with a provided key before pushing it to S3 into a specified bucket.
def main(): """ This is the main module for the script. The script will accept a file, or a directory, and then encrypt it with a provided key before pushing it to S3 into a specified bucket. """ parser = argparse.ArgumentParser(description=main.__doc__, add_help=True) parser.add_argument('-M',...
Queries S3 to identify the region hosting the provided bucket.
def _get_bucket_endpoint(self): """ Queries S3 to identify the region hosting the provided bucket. """ conn = S3Connection() bucket = conn.lookup(self.bucket_name) if not bucket: # TODO: Make the bucket here? raise InputParameterError('The provided...
Setter method for action_profile_name, mapped from YANG variable /protocol/cfm/y1731/action_profile_name (list) If this variable is read-only (config: false) in the source YANG file, then _set_action_profile_name is considered as a private method. Backends looking to populate this variable should do so ...
def _set_action_profile_name(self, v, load=False): """ Setter method for action_profile_name, mapped from YANG variable /protocol/cfm/y1731/action_profile_name (list) If this variable is read-only (config: false) in the source YANG file, then _set_action_profile_name is considered as a private metho...
Setter method for route_source, mapped from YANG variable /rbridge_id/route_map/content/match/ipv6/route_source (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_source is considered as a private method. Backends looking to populate this variable should d...
def _set_route_source(self, v, load=False): """ Setter method for route_source, mapped from YANG variable /rbridge_id/route_map/content/match/ipv6/route_source (container) If this variable is read-only (config: false) in the source YANG file, then _set_route_source is considered as a private method....
Setter method for linkinfo_domain_reachable, mapped from YANG variable /brocade_fabric_service_rpc/show_linkinfo/output/show_link_info/linkinfo_domain_reachable (linkinfo-domain-reachable-type) If this variable is read-only (config: false) in the source YANG file, then _set_linkinfo_domain_reachable is consider...
def _set_linkinfo_domain_reachable(self, v, load=False): """ Setter method for linkinfo_domain_reachable, mapped from YANG variable /brocade_fabric_service_rpc/show_linkinfo/output/show_link_info/linkinfo_domain_reachable (linkinfo-domain-reachable-type) If this variable is read-only (config: false) in the ...
Setter method for proto, mapped from YANG variable /vlan/classifier/rule/proto (container) If this variable is read-only (config: false) in the source YANG file, then _set_proto is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_proto() di...
def _set_proto(self, v, load=False): """ Setter method for proto, mapped from YANG variable /vlan/classifier/rule/proto (container) If this variable is read-only (config: false) in the source YANG file, then _set_proto is considered as a private method. Backends looking to populate this variable sho...
Setter method for mld, mapped from YANG variable /mld_snooping/ipv6/mld (container) If this variable is read-only (config: false) in the source YANG file, then _set_mld is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_mld() directly.
def _set_mld(self, v, load=False): """ Setter method for mld, mapped from YANG variable /mld_snooping/ipv6/mld (container) If this variable is read-only (config: false) in the source YANG file, then _set_mld is considered as a private method. Backends looking to populate this variable should do ...
Setter method for maprole, mapped from YANG variable /ldap_server/maprole (container) If this variable is read-only (config: false) in the source YANG file, then _set_maprole is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_maprole() dir...
def _set_maprole(self, v, load=False): """ Setter method for maprole, mapped from YANG variable /ldap_server/maprole (container) If this variable is read-only (config: false) in the source YANG file, then _set_maprole is considered as a private method. Backends looking to populate this variable shou...
Setter method for enabled_zone, mapped from YANG variable /brocade_zone_rpc/show_zoning_enabled_configuration/output/enabled_configuration/enabled_zone (list) If this variable is read-only (config: false) in the source YANG file, then _set_enabled_zone is considered as a private method. Backends looking to ...
def _set_enabled_zone(self, v, load=False): """ Setter method for enabled_zone, mapped from YANG variable /brocade_zone_rpc/show_zoning_enabled_configuration/output/enabled_configuration/enabled_zone (list) If this variable is read-only (config: false) in the source YANG file, then _set_enabled_zone is ...
Setter method for duplicateWWN, mapped from YANG variable /rbridge_id/fabric/login_policy/duplicateWWN (container) If this variable is read-only (config: false) in the source YANG file, then _set_duplicateWWN is considered as a private method. Backends looking to populate this variable should do so via ...
def _set_duplicateWWN(self, v, load=False): """ Setter method for duplicateWWN, mapped from YANG variable /rbridge_id/fabric/login_policy/duplicateWWN (container) If this variable is read-only (config: false) in the source YANG file, then _set_duplicateWWN is considered as a private method. Backends...
Setter method for red_profile, mapped from YANG variable /qos/ecn/red_profile (container) If this variable is read-only (config: false) in the source YANG file, then _set_red_profile is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_red_p...
def _set_red_profile(self, v, load=False): """ Setter method for red_profile, mapped from YANG variable /qos/ecn/red_profile (container) If this variable is read-only (config: false) in the source YANG file, then _set_red_profile is considered as a private method. Backends looking to populate this v...
Setter method for replicator, mapped from YANG variable /tunnel_settings/system/tunnel/replicator (container) If this variable is read-only (config: false) in the source YANG file, then _set_replicator is considered as a private method. Backends looking to populate this variable should do so via calling...
def _set_replicator(self, v, load=False): """ Setter method for replicator, mapped from YANG variable /tunnel_settings/system/tunnel/replicator (container) If this variable is read-only (config: false) in the source YANG file, then _set_replicator is considered as a private method. Backends looking ...
Setter method for dscp, mapped from YANG variable /qos_mpls/map/dscp_exp/dscp (list) If this variable is read-only (config: false) in the source YANG file, then _set_dscp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_dscp() directly.
def _set_dscp(self, v, load=False): """ Setter method for dscp, mapped from YANG variable /qos_mpls/map/dscp_exp/dscp (list) If this variable is read-only (config: false) in the source YANG file, then _set_dscp is considered as a private method. Backends looking to populate this variable should ...
Setter method for auth_type, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_vrrp_extended/auth_type (container) If this variable is read-only (config: false) in the source YANG file, then _set_auth_type is considered as a private method. Backends looking to populate this variable should ...
def _set_auth_type(self, v, load=False): """ Setter method for auth_type, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_vrrp_extended/auth_type (container) If this variable is read-only (config: false) in the source YANG file, then _set_auth_type is considered as a private method....
Setter method for autobw_threshold_table_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/autobw_threshold_table/autobw_threshold_table_bandwidth (list) If this variable is read-only (config: false) in the source YANG file, then _set_autobw_threshold_table_bandwidth is considered a...
def _set_autobw_threshold_table_bandwidth(self, v, load=False): """ Setter method for autobw_threshold_table_bandwidth, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/autobw_threshold_table/autobw_threshold_table_bandwidth (list) If this variable is read-only (config: false) in the ...
Setter method for random_detect, mapped from YANG variable /interface/ethernet/qos/random_detect (container) If this variable is read-only (config: false) in the source YANG file, then _set_random_detect is considered as a private method. Backends looking to populate this variable should do so via calli...
def _set_random_detect(self, v, load=False): """ Setter method for random_detect, mapped from YANG variable /interface/ethernet/qos/random_detect (container) If this variable is read-only (config: false) in the source YANG file, then _set_random_detect is considered as a private method. Backends loo...
Setter method for drop_monitor, mapped from YANG variable /interface/ethernet/qos/drop_monitor (container) If this variable is read-only (config: false) in the source YANG file, then _set_drop_monitor is considered as a private method. Backends looking to populate this variable should do so via calling ...
def _set_drop_monitor(self, v, load=False): """ Setter method for drop_monitor, mapped from YANG variable /interface/ethernet/qos/drop_monitor (container) If this variable is read-only (config: false) in the source YANG file, then _set_drop_monitor is considered as a private method. Backends looking...
Setter method for standard, mapped from YANG variable /overlay/access_list/type/vxlan/standard (list) If this variable is read-only (config: false) in the source YANG file, then _set_standard is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
def _set_standard(self, v, load=False): """ Setter method for standard, mapped from YANG variable /overlay/access_list/type/vxlan/standard (list) If this variable is read-only (config: false) in the source YANG file, then _set_standard is considered as a private method. Backends looking to populate ...
Setter method for extended, mapped from YANG variable /overlay/access_list/type/vxlan/extended (list) If this variable is read-only (config: false) in the source YANG file, then _set_extended is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
def _set_extended(self, v, load=False): """ Setter method for extended, mapped from YANG variable /overlay/access_list/type/vxlan/extended (list) If this variable is read-only (config: false) in the source YANG file, then _set_extended is considered as a private method. Backends looking to populate ...
Setter method for server, mapped from YANG variable /rbridge_id/ssh/server (container) If this variable is read-only (config: false) in the source YANG file, then _set_server is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_server() dire...
def _set_server(self, v, load=False): """ Setter method for server, mapped from YANG variable /rbridge_id/ssh/server (container) If this variable is read-only (config: false) in the source YANG file, then _set_server is considered as a private method. Backends looking to populate this variable shoul...
Setter method for client, mapped from YANG variable /rbridge_id/ssh/client (container) If this variable is read-only (config: false) in the source YANG file, then _set_client is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_client() dire...
def _set_client(self, v, load=False): """ Setter method for client, mapped from YANG variable /rbridge_id/ssh/client (container) If this variable is read-only (config: false) in the source YANG file, then _set_client is considered as a private method. Backends looking to populate this variable shoul...
Setter method for ipv6_nd_ra, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_nd_ra (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_nd_ra is considered as a private method. Backends looking to populate this variable should do so via calling ...
def _set_ipv6_nd_ra(self, v, load=False): """ Setter method for ipv6_nd_ra, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_nd_ra (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_nd_ra is considered as a private method. Backends looking t...
Setter method for ipv6_ve_intf_cmds, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_ve_intf_cmds (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_ve_intf_cmds is considered as a private method. Backends looking to populate this variable should ...
def _set_ipv6_ve_intf_cmds(self, v, load=False): """ Setter method for ipv6_ve_intf_cmds, mapped from YANG variable /rbridge_id/interface/ve/ipv6/ipv6_ve_intf_cmds (container) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_ve_intf_cmds is considered as a private ...
Setter method for interface_ospfv3_conf, mapped from YANG variable /rbridge_id/interface/ve/ipv6/interface_ospfv3_conf (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_ospfv3_conf is considered as a private method. Backends looking to populate this varia...
def _set_interface_ospfv3_conf(self, v, load=False): """ Setter method for interface_ospfv3_conf, mapped from YANG variable /rbridge_id/interface/ve/ipv6/interface_ospfv3_conf (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_ospfv3_conf is considered...
Setter method for vrrpv3, mapped from YANG variable /rbridge_id/interface/ve/ipv6/vrrpv3 (list) If this variable is read-only (config: false) in the source YANG file, then _set_vrrpv3 is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_vrrp...
def _set_vrrpv3(self, v, load=False): """ Setter method for vrrpv3, mapped from YANG variable /rbridge_id/interface/ve/ipv6/vrrpv3 (list) If this variable is read-only (config: false) in the source YANG file, then _set_vrrpv3 is considered as a private method. Backends looking to populate this varia...
Setter method for show_firmware_option, mapped from YANG variable /show/show_firmware_dummy/show_firmware_option (container) If this variable is read-only (config: false) in the source YANG file, then _set_show_firmware_option is considered as a private method. Backends looking to populate this variable sho...
def _set_show_firmware_option(self, v, load=False): """ Setter method for show_firmware_option, mapped from YANG variable /show/show_firmware_dummy/show_firmware_option (container) If this variable is read-only (config: false) in the source YANG file, then _set_show_firmware_option is considered as a pr...
Setter method for anycast_gateway_mac, mapped from YANG variable /rbridge_id/ipv6/static_ag_ipv6_config/anycast_gateway_mac (container) If this variable is read-only (config: false) in the source YANG file, then _set_anycast_gateway_mac is considered as a private method. Backends looking to populate this va...
def _set_anycast_gateway_mac(self, v, load=False): """ Setter method for anycast_gateway_mac, mapped from YANG variable /rbridge_id/ipv6/static_ag_ipv6_config/anycast_gateway_mac (container) If this variable is read-only (config: false) in the source YANG file, then _set_anycast_gateway_mac is considere...
Setter method for fru, mapped from YANG variable /system_monitor_mail/fru (container) If this variable is read-only (config: false) in the source YANG file, then _set_fru is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_fru() directly.
def _set_fru(self, v, load=False): """ Setter method for fru, mapped from YANG variable /system_monitor_mail/fru (container) If this variable is read-only (config: false) in the source YANG file, then _set_fru is considered as a private method. Backends looking to populate this variable should d...
Setter method for default_vrf, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf (container) If this variable is read-only (config: false) in the source YANG file, then _set_default_vrf is considered as a private method. Backends looking to populate this va...
def _set_default_vrf(self, v, load=False): """ Setter method for default_vrf, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf (container) If this variable is read-only (config: false) in the source YANG file, then _set_default_vrf is considered as a p...
Setter method for ldp_session_summary, mapped from YANG variable /mpls_state/ldp/ldp_session_summary (container) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_session_summary is considered as a private method. Backends looking to populate this variable should do so...
def _set_ldp_session_summary(self, v, load=False): """ Setter method for ldp_session_summary, mapped from YANG variable /mpls_state/ldp/ldp_session_summary (container) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_session_summary is considered as a private meth...
Setter method for ldp_fec_statistics, mapped from YANG variable /mpls_state/ldp/ldp_fec_statistics (container) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_fec_statistics is considered as a private method. Backends looking to populate this variable should do so vi...
def _set_ldp_fec_statistics(self, v, load=False): """ Setter method for ldp_fec_statistics, mapped from YANG variable /mpls_state/ldp/ldp_fec_statistics (container) If this variable is read-only (config: false) in the source YANG file, then _set_ldp_fec_statistics is considered as a private method. ...
Setter method for mpls_traffic_bypasses, mapped from YANG variable /telemetry/profile/mpls_traffic_bypass/mpls_traffic_bypasses (list) If this variable is read-only (config: false) in the source YANG file, then _set_mpls_traffic_bypasses is considered as a private method. Backends looking to populate this v...
def _set_mpls_traffic_bypasses(self, v, load=False): """ Setter method for mpls_traffic_bypasses, mapped from YANG variable /telemetry/profile/mpls_traffic_bypass/mpls_traffic_bypasses (list) If this variable is read-only (config: false) in the source YANG file, then _set_mpls_traffic_bypasses is consid...
Setter method for fwdl_state, mapped from YANG variable /brocade_firmware_rpc/fwdl_status/output/fwdl_state (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_fwdl_state is considered as a private method. Backends looking to populate this variable should do so...
def _set_fwdl_state(self, v, load=False): """ Setter method for fwdl_state, mapped from YANG variable /brocade_firmware_rpc/fwdl_status/output/fwdl_state (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_fwdl_state is considered as a private method. Backe...
Setter method for auth_check_level1, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/auth_check/auth_check_level1 (container) If this variable is read-only (config: false) in the source YANG file, then _set_auth_check_level1 is considered as a private method. Backends looking...
def _set_auth_check_level1(self, v, load=False): """ Setter method for auth_check_level1, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/auth_check/auth_check_level1 (container) If this variable is read-only (config: false) in the source YANG file, then _set_auth_check_l...
Setter method for auth_check_level2, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/auth_check/auth_check_level2 (container) If this variable is read-only (config: false) in the source YANG file, then _set_auth_check_level2 is considered as a private method. Backends looking...
def _set_auth_check_level2(self, v, load=False): """ Setter method for auth_check_level2, mapped from YANG variable /routing_system/interface/ve/intf_isis/interface_isis/auth_check/auth_check_level2 (container) If this variable is read-only (config: false) in the source YANG file, then _set_auth_check_l...
Filer config to set custom private media path http://django-filer.readthedocs.org/en/0.9.4/settings.html#filer-storages
def FILER_STORAGES(self): """Filer config to set custom private media path http://django-filer.readthedocs.org/en/0.9.4/settings.html#filer-storages """ if not self.FILER_CUSTOM_NGINX_SERVER: return {} return { 'public': { 'main': { ...
Setter method for get_port_channel_detail, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_port_channel_detail is considered as a private method. Backends looking to populate this variable should ...
def _set_get_port_channel_detail(self, v, load=False): """ Setter method for get_port_channel_detail, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_port_channel_detail is considered as a priva...
Setter method for get_portchannel_info_by_intf, mapped from YANG variable /brocade_lag_rpc/get_portchannel_info_by_intf (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_portchannel_info_by_intf is considered as a private method. Backends looking to populate this var...
def _set_get_portchannel_info_by_intf(self, v, load=False): """ Setter method for get_portchannel_info_by_intf, mapped from YANG variable /brocade_lag_rpc/get_portchannel_info_by_intf (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_portchannel_info_by_intf is c...
Setter method for cir, mapped from YANG variable /policy_map/class/police/cir (uint64) If this variable is read-only (config: false) in the source YANG file, then _set_cir is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_cir() directly.
def _set_cir(self, v, load=False): """ Setter method for cir, mapped from YANG variable /policy_map/class/police/cir (uint64) If this variable is read-only (config: false) in the source YANG file, then _set_cir is considered as a private method. Backends looking to populate this variable should ...
Setter method for conform_set_dscp, mapped from YANG variable /policy_map/class/police/conform_set_dscp (dscp-value) If this variable is read-only (config: false) in the source YANG file, then _set_conform_set_dscp is considered as a private method. Backends looking to populate this variable should do s...
def _set_conform_set_dscp(self, v, load=False): """ Setter method for conform_set_dscp, mapped from YANG variable /policy_map/class/police/conform_set_dscp (dscp-value) If this variable is read-only (config: false) in the source YANG file, then _set_conform_set_dscp is considered as a private method...
Setter method for vlag, mapped from YANG variable /interface/port_channel/vlag (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlag is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_vlag() dire...
def _set_vlag(self, v, load=False): """ Setter method for vlag, mapped from YANG variable /interface/port_channel/vlag (container) If this variable is read-only (config: false) in the source YANG file, then _set_vlag is considered as a private method. Backends looking to populate this variable shoul...
Setter method for priority_tag_enable, mapped from YANG variable /interface/port_channel/priority_tag_enable (empty) If this variable is read-only (config: false) in the source YANG file, then _set_priority_tag_enable is considered as a private method. Backends looking to populate this variable should d...
def _set_priority_tag_enable(self, v, load=False): """ Setter method for priority_tag_enable, mapped from YANG variable /interface/port_channel/priority_tag_enable (empty) If this variable is read-only (config: false) in the source YANG file, then _set_priority_tag_enable is considered as a private ...
Setter method for load_balance_type, mapped from YANG variable /interface/port_channel/load_balance_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance_type is considered as a private method. Backends looking to populate this variable should d...
def _set_load_balance_type(self, v, load=False): """ Setter method for load_balance_type, mapped from YANG variable /interface/port_channel/load_balance_type (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance_type is considered as a private me...
Setter method for fcoeport, mapped from YANG variable /interface/port_channel/fcoeport (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoeport is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set...
def _set_fcoeport(self, v, load=False): """ Setter method for fcoeport, mapped from YANG variable /interface/port_channel/fcoeport (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoeport is considered as a private method. Backends looking to populate thi...
Setter method for openflowPo, mapped from YANG variable /interface/port_channel/openflowPo (container) If this variable is read-only (config: false) in the source YANG file, then _set_openflowPo is considered as a private method. Backends looking to populate this variable should do so via calling thisOb...
def _set_openflowPo(self, v, load=False): """ Setter method for openflowPo, mapped from YANG variable /interface/port_channel/openflowPo (container) If this variable is read-only (config: false) in the source YANG file, then _set_openflowPo is considered as a private method. Backends looking to popu...
Setter method for port_profile_port, mapped from YANG variable /interface/port_channel/port_profile_port (empty) If this variable is read-only (config: false) in the source YANG file, then _set_port_profile_port is considered as a private method. Backends looking to populate this variable should do so v...
def _set_port_profile_port(self, v, load=False): """ Setter method for port_profile_port, mapped from YANG variable /interface/port_channel/port_profile_port (empty) If this variable is read-only (config: false) in the source YANG file, then _set_port_profile_port is considered as a private method. ...
Setter method for service_policy, mapped from YANG variable /interface/port_channel/service_policy (container) If this variable is read-only (config: false) in the source YANG file, then _set_service_policy is considered as a private method. Backends looking to populate this variable should do so via ca...
def _set_service_policy(self, v, load=False): """ Setter method for service_policy, mapped from YANG variable /interface/port_channel/service_policy (container) If this variable is read-only (config: false) in the source YANG file, then _set_service_policy is considered as a private method. Backends...
Setter method for offsets, mapped from YANG variable /interface/port_channel/offsets (uda-profile-name) If this variable is read-only (config: false) in the source YANG file, then _set_offsets is considered as a private method. Backends looking to populate this variable should do so via calling thisObj....
def _set_offsets(self, v, load=False): """ Setter method for offsets, mapped from YANG variable /interface/port_channel/offsets (uda-profile-name) If this variable is read-only (config: false) in the source YANG file, then _set_offsets is considered as a private method. Backends looking to populate ...
A wrapper for the entire rna alignment subgraph. :param list fastqs: The input fastqs for alignment :param dict univ_options: Dict of universal options used by almost all tools :param dict star_options: Options specific to star :return: Dict containing input bam and the generated index (.bam.bai) :...
def align_rna(job, fastqs, univ_options, star_options): """ A wrapper for the entire rna alignment subgraph. :param list fastqs: The input fastqs for alignment :param dict univ_options: Dict of universal options used by almost all tools :param dict star_options: Options specific to star :return...
Align a pair of fastqs with STAR. :param list fastqs: The input fastqs for alignment :param dict univ_options: Dict of universal options used by almost all tools :param dict star_options: Options specific to star :return: Dict containing output genome bam, genome bai, and transcriptome bam ...
def run_star(job, fastqs, univ_options, star_options): """ Align a pair of fastqs with STAR. :param list fastqs: The input fastqs for alignment :param dict univ_options: Dict of universal options used by almost all tools :param dict star_options: Options specific to star :return: Dict containin...
A wrapper for sorting and indexing the genomic star bam generated by run_star. It is required since run_star returns a dict of 2 bams :param dict star_bams: The bams from run_star :param dict univ_options: Dict of universal options used by almost all tools :param dict star_options: Options specific to ...
def sort_and_index_star(job, star_bams, univ_options, star_options): """ A wrapper for sorting and indexing the genomic star bam generated by run_star. It is required since run_star returns a dict of 2 bams :param dict star_bams: The bams from run_star :param dict univ_options: Dict of universal op...
Setter method for pfc, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc (list) If this variable is read-only (config: false) in the source YANG file, then _set_pfc is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_pfc...
def _set_pfc(self, v, load=False): """ Setter method for pfc, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc (list) If this variable is read-only (config: false) in the source YANG file, then _set_pfc is considered as a private method. Backends looking to populate this variabl...
Setter method for xstp, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/xstp (container) If this variable is read-only (config: false) in the source YANG file, then _set_xstp is considered as a private method. Backends looking to populate this variable should do so via calling this...
def _set_xstp(self, v, load=False): """ Setter method for xstp, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/xstp (container) If this variable is read-only (config: false) in the source YANG file, then _set_xstp is considered as a private method. Backends looking to populate...
Setter method for rpvst, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/rpvst (container) If this variable is read-only (config: false) in the source YANG file, then _set_rpvst is considered as a private method. Backends looking to populate this variable should do so via calling t...
def _set_rpvst(self, v, load=False): """ Setter method for rpvst, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/rpvst (container) If this variable is read-only (config: false) in the source YANG file, then _set_rpvst is considered as a private method. Backends looking to popu...
Setter method for bfd_vxlan, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_vxlan (container) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_vxlan is considered as a private method. Backends looking to populate this variable should do so v...
def _set_bfd_vxlan(self, v, load=False): """ Setter method for bfd_vxlan, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_vxlan (container) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_vxlan is considered as a private method. Backends...
Setter method for bfd_l3, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_l3 (container) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_l3 is considered as a private method. Backends looking to populate this variable should do so via callin...
def _set_bfd_l3(self, v, load=False): """ Setter method for bfd_l3, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_l3 (container) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_l3 is considered as a private method. Backends looking to ...
Setter method for fcoe, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/fcoe (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe is considered as a private method. Backends looking to populate this variable should do so via calling this...
def _set_fcoe(self, v, load=False): """ Setter method for fcoe, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/fcoe (container) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe is considered as a private method. Backends looking to populate...
Setter method for priority_table, mapped from YANG variable /cee_map/priority_table (container) If this variable is read-only (config: false) in the source YANG file, then _set_priority_table is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
def _set_priority_table(self, v, load=False): """ Setter method for priority_table, mapped from YANG variable /cee_map/priority_table (container) If this variable is read-only (config: false) in the source YANG file, then _set_priority_table is considered as a private method. Backends looking to pop...
Setter method for remap, mapped from YANG variable /cee_map/remap (container) If this variable is read-only (config: false) in the source YANG file, then _set_remap is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remap() directly.
def _set_remap(self, v, load=False): """ Setter method for remap, mapped from YANG variable /cee_map/remap (container) If this variable is read-only (config: false) in the source YANG file, then _set_remap is considered as a private method. Backends looking to populate this variable should do so...
Resets the state of the expression
def reset(self): """ Resets the state of the expression """ self.expr = [] self.matcher = None self.last_matcher = None self.description = None
Clone this expression
def clone(self): """ Clone this expression """ from copy import copy clone = copy(self) clone.expr = copy(self.expr) clone.factory = False return clone
Resolve the current expression against the supplied value
def resolve(self, value=None): """ Resolve the current expression against the supplied value """ # If we still have an uninitialized matcher init it now if self.matcher: self._init_matcher() # Evaluate the current set of matchers forming the expression matcher = sel...
Perform the actual assertion for the given matcher and value. Override this method to apply a special configuration when performing the assertion. If the assertion fails it should raise an AssertionError.
def _assertion(self, matcher, value): """ Perform the actual assertion for the given matcher and value. Override this method to apply a special configuration when performing the assertion. If the assertion fails it should raise an AssertionError. """ # To support the synt...
Applies any defined transformation to the given value
def _transform(self, value): """ Applies any defined transformation to the given value """ if self.transform: try: value = self.transform(value) except: import sys exc_type, exc_obj, exc_tb = sys.exc_info() r...
Converts the current expression into a single matcher, applying coordination operators to operands according to their binding rules
def evaluate(self): """ Converts the current expression into a single matcher, applying coordination operators to operands according to their binding rules """ # Apply Shunting Yard algorithm to convert the infix expression # into Reverse Polish Notation. Since we have a ver...
Finds a matcher based on the given alias or raises an error if no matcher could be found.
def _find_matcher(self, alias): """ Finds a matcher based on the given alias or raises an error if no matcher could be found. """ matcher = lookup(alias) if not matcher: msg = 'Matcher "%s" not found' % alias # Try to find similarly named matchers to ...
Executes the current matcher appending it to the expression
def _init_matcher(self, *args, **kwargs): """ Executes the current matcher appending it to the expression """ # If subject-less expectation are provided as arguments convert them # to plain Hamcrest matchers in order to allow complex compositions fn = lambda x: x.evaluate() if isinstanc...
Specify a custom message for the matcher
def described_as(self, description, *args): """ Specify a custom message for the matcher """ if len(args): description = description.format(*args) self.description = description return self
Setter method for fwdl_status, mapped from YANG variable /brocade_firmware_rpc/fwdl_status (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_fwdl_status is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._se...
def _set_fwdl_status(self, v, load=False): """ Setter method for fwdl_status, mapped from YANG variable /brocade_firmware_rpc/fwdl_status (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_fwdl_status is considered as a private method. Backends looking to populate...
Setter method for get_port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_port_profile_status is considered as a private method. Backends looking to populate this varia...
def _set_get_port_profile_status(self, v, load=False): """ Setter method for get_port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_port_profile_status is consider...
Setter method for fast_flood, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/fast_flood (container) If this variable is read-only (config: false) in the source YANG file, then _set_fast_flood is considered as a private method. Backends looking to populat...
def _set_fast_flood(self, v, load=False): """ Setter method for fast_flood, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/fast_flood (container) If this variable is read-only (config: false) in the source YANG file, then _set_fast_flood is considere...
Setter method for set_overload_bit, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit (container) If this variable is read-only (config: false) in the source YANG file, then _set_set_overload_bit is considered as a private method. Backends ...
def _set_set_overload_bit(self, v, load=False): """ Setter method for set_overload_bit, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit (container) If this variable is read-only (config: false) in the source YANG file, then _set_set_o...
Setter method for reverse_metric, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/reverse_metric (container) If this variable is read-only (config: false) in the source YANG file, then _set_reverse_metric is considered as a private method. Backends lookin...
def _set_reverse_metric(self, v, load=False): """ Setter method for reverse_metric, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/reverse_metric (container) If this variable is read-only (config: false) in the source YANG file, then _set_reverse_met...
Setter method for mirror_interface, mapped from YANG variable /openflow_global/openflow/mirror/destination/mirror_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_mirror_interface is considered as a private method. Backends looking to populate this variable s...
def _set_mirror_interface(self, v, load=False): """ Setter method for mirror_interface, mapped from YANG variable /openflow_global/openflow/mirror/destination/mirror_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_mirror_interface is considered as a priv...
Setter method for igmp_po_intf_cfg, mapped from YANG variable /interface/port_channel/ip/igmp_po_intf_cfg (container) If this variable is read-only (config: false) in the source YANG file, then _set_igmp_po_intf_cfg is considered as a private method. Backends looking to populate this variable should do ...
def _set_igmp_po_intf_cfg(self, v, load=False): """ Setter method for igmp_po_intf_cfg, mapped from YANG variable /interface/port_channel/ip/igmp_po_intf_cfg (container) If this variable is read-only (config: false) in the source YANG file, then _set_igmp_po_intf_cfg is considered as a private metho...
Setter method for interface_PO_ospf_conf, mapped from YANG variable /interface/port_channel/ip/interface_PO_ospf_conf (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_PO_ospf_conf is considered as a private method. Backends looking to populate this varia...
def _set_interface_PO_ospf_conf(self, v, load=False): """ Setter method for interface_PO_ospf_conf, mapped from YANG variable /interface/port_channel/ip/interface_PO_ospf_conf (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_PO_ospf_conf is considere...
Setter method for interface_type, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_type (dcm-interface-type) If this variable is read-only (config: false) in the source YANG file, then _set_interface_type is considered as a private method. Backends looking to populate this variable should ...
def _set_interface_type(self, v, load=False): """ Setter method for interface_type, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_type (dcm-interface-type) If this variable is read-only (config: false) in the source YANG file, then _set_interface_type is considered as a private met...
Setter method for hello_status, mapped from YANG variable /mpls_state/rsvp/interfaces/hello_status (feature-config-status) If this variable is read-only (config: false) in the source YANG file, then _set_hello_status is considered as a private method. Backends looking to populate this variable should do...
def _set_hello_status(self, v, load=False): """ Setter method for hello_status, mapped from YANG variable /mpls_state/rsvp/interfaces/hello_status (feature-config-status) If this variable is read-only (config: false) in the source YANG file, then _set_hello_status is considered as a private method. ...
Setter method for interface_flooding_up_threshold, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_flooding_up_threshold (feature-config-source) If this variable is read-only (config: false) in the source YANG file, then _set_interface_flooding_up_threshold is considered as a private method....
def _set_interface_flooding_up_threshold(self, v, load=False): """ Setter method for interface_flooding_up_threshold, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_flooding_up_threshold (feature-config-source) If this variable is read-only (config: false) in the source YANG file, then ...
Setter method for error_counters, mapped from YANG variable /mpls_state/rsvp/interfaces/error_counters (container) If this variable is read-only (config: false) in the source YANG file, then _set_error_counters is considered as a private method. Backends looking to populate this variable should do so vi...
def _set_error_counters(self, v, load=False): """ Setter method for error_counters, mapped from YANG variable /mpls_state/rsvp/interfaces/error_counters (container) If this variable is read-only (config: false) in the source YANG file, then _set_error_counters is considered as a private method. Back...
Setter method for Cpu, mapped from YANG variable /rbridge_id/threshold_monitor/Cpu (container) If this variable is read-only (config: false) in the source YANG file, then _set_Cpu is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_Cpu() di...
def _set_Cpu(self, v, load=False): """ Setter method for Cpu, mapped from YANG variable /rbridge_id/threshold_monitor/Cpu (container) If this variable is read-only (config: false) in the source YANG file, then _set_Cpu is considered as a private method. Backends looking to populate this variable sho...
Setter method for Memory, mapped from YANG variable /rbridge_id/threshold_monitor/Memory (container) If this variable is read-only (config: false) in the source YANG file, then _set_Memory is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set...
def _set_Memory(self, v, load=False): """ Setter method for Memory, mapped from YANG variable /rbridge_id/threshold_monitor/Memory (container) If this variable is read-only (config: false) in the source YANG file, then _set_Memory is considered as a private method. Backends looking to populate this ...
Setter method for Buffer, mapped from YANG variable /rbridge_id/threshold_monitor/Buffer (container) If this variable is read-only (config: false) in the source YANG file, then _set_Buffer is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set...
def _set_Buffer(self, v, load=False): """ Setter method for Buffer, mapped from YANG variable /rbridge_id/threshold_monitor/Buffer (container) If this variable is read-only (config: false) in the source YANG file, then _set_Buffer is considered as a private method. Backends looking to populate this ...
Setter method for global_rsvp_hello_acknowledgements, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/rsvp/global_rsvp_hello_acknowledgements (empty) If this variable is read-only (config: false) in the source YANG file, then _set_global_rsvp_hello_acknowledgements is considered as a private...
def _set_global_rsvp_hello_acknowledgements(self, v, load=False): """ Setter method for global_rsvp_hello_acknowledgements, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/rsvp/global_rsvp_hello_acknowledgements (empty) If this variable is read-only (config: false) in the source YANG...
Setter method for interface_statistics_state, mapped from YANG variable /interface_statistics_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_statistics_state is considered as a private method. Backends looking to populate this variable should ...
def _set_interface_statistics_state(self, v, load=False): """ Setter method for interface_statistics_state, mapped from YANG variable /interface_statistics_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_interface_statistics_state is considered as a pri...
Setter method for system_config, mapped from YANG variable /system_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_system_config is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_system_...
def _set_system_config(self, v, load=False): """ Setter method for system_config, mapped from YANG variable /system_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_system_config is considered as a private method. Backends looking to populate this v...
Setter method for vxlan_acl_state, mapped from YANG variable /vxlan_acl_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_vxlan_acl_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_v...
def _set_vxlan_acl_state(self, v, load=False): """ Setter method for vxlan_acl_state, mapped from YANG variable /vxlan_acl_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_vxlan_acl_state is considered as a private method. Backends looking to populat...
Setter method for cpu_state, mapped from YANG variable /cpu_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_cpu_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_cpu_state() directl...
def _set_cpu_state(self, v, load=False): """ Setter method for cpu_state, mapped from YANG variable /cpu_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_cpu_state is considered as a private method. Backends looking to populate this variable should ...
Setter method for mem_state, mapped from YANG variable /mem_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_mem_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_mem_state() directl...
def _set_mem_state(self, v, load=False): """ Setter method for mem_state, mapped from YANG variable /mem_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_mem_state is considered as a private method. Backends looking to populate this variable should ...
Setter method for load_balance_lag, mapped from YANG variable /load_balance_lag (container) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance_lag is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._se...
def _set_load_balance_lag(self, v, load=False): """ Setter method for load_balance_lag, mapped from YANG variable /load_balance_lag (container) If this variable is read-only (config: false) in the source YANG file, then _set_load_balance_lag is considered as a private method. Backends looking to pop...
Setter method for mac_address_table, mapped from YANG variable /mac_address_table (container) If this variable is read-only (config: false) in the source YANG file, then _set_mac_address_table is considered as a private method. Backends looking to populate this variable should do so via calling thisObj....
def _set_mac_address_table(self, v, load=False): """ Setter method for mac_address_table, mapped from YANG variable /mac_address_table (container) If this variable is read-only (config: false) in the source YANG file, then _set_mac_address_table is considered as a private method. Backends looking to...
Setter method for mac_group, mapped from YANG variable /mac_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_mac_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_mac_group() directly.
def _set_mac_group(self, v, load=False): """ Setter method for mac_group, mapped from YANG variable /mac_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_mac_group is considered as a private method. Backends looking to populate this variable should do...
Setter method for latch_detection_config, mapped from YANG variable /latch_detection_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_latch_detection_config is considered as a private method. Backends looking to populate this variable should do so via c...
def _set_latch_detection_config(self, v, load=False): """ Setter method for latch_detection_config, mapped from YANG variable /latch_detection_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_latch_detection_config is considered as a private method....
Setter method for topology_group, mapped from YANG variable /topology_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_topology_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_topology_...
def _set_topology_group(self, v, load=False): """ Setter method for topology_group, mapped from YANG variable /topology_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_topology_group is considered as a private method. Backends looking to populate this va...
Setter method for mct_l2ys_state, mapped from YANG variable /mct_l2ys_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_mct_l2ys_state is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_mct_...
def _set_mct_l2ys_state(self, v, load=False): """ Setter method for mct_l2ys_state, mapped from YANG variable /mct_l2ys_state (container) If this variable is read-only (config: false) in the source YANG file, then _set_mct_l2ys_state is considered as a private method. Backends looking to populate th...
Setter method for bridge_domain, mapped from YANG variable /bridge_domain (list) If this variable is read-only (config: false) in the source YANG file, then _set_bridge_domain is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_bridge_domai...
def _set_bridge_domain(self, v, load=False): """ Setter method for bridge_domain, mapped from YANG variable /bridge_domain (list) If this variable is read-only (config: false) in the source YANG file, then _set_bridge_domain is considered as a private method. Backends looking to populate this variab...
Setter method for chassis, mapped from YANG variable /chassis (container) If this variable is read-only (config: false) in the source YANG file, then _set_chassis is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_chassis() directly.
def _set_chassis(self, v, load=False): """ Setter method for chassis, mapped from YANG variable /chassis (container) If this variable is read-only (config: false) in the source YANG file, then _set_chassis is considered as a private method. Backends looking to populate this variable should do so...
Setter method for ovsdb_server, mapped from YANG variable /ovsdb_server (list) If this variable is read-only (config: false) in the source YANG file, then _set_ovsdb_server is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ovsdb_server() ...
def _set_ovsdb_server(self, v, load=False): """ Setter method for ovsdb_server, mapped from YANG variable /ovsdb_server (list) If this variable is read-only (config: false) in the source YANG file, then _set_ovsdb_server is considered as a private method. Backends looking to populate this variable s...