code
string
signature
string
docstring
string
loss_without_docstring
float64
loss_with_docstring
float64
factor
float64
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") scp_protocol = ET.SubElement(protocol_type, "scp-p...
def firmware_download_input_protocol_type_scp_protocol_scp_directory(self, **kwargs)
Auto Generated Code
1.358446
1.280735
1.060676
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") scp_protocol = ET.SubElement(protocol_type, "scp-p...
def firmware_download_input_protocol_type_scp_protocol_scp_file(self, **kwargs)
Auto Generated Code
1.359482
1.278529
1.063317
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") ftp_protocol = ET.SubElement(protocol_type, "ftp-p...
def firmware_download_input_protocol_type_ftp_protocol_ftp_user(self, **kwargs)
Auto Generated Code
1.35667
1.271817
1.066718
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") ftp_protocol = ET.SubElement(protocol_type, "ftp-p...
def firmware_download_input_protocol_type_ftp_protocol_ftp_password(self, **kwargs)
Auto Generated Code
1.40295
1.309775
1.071139
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") ftp_protocol = ET.SubElement(protocol_type, "ftp-p...
def firmware_download_input_protocol_type_ftp_protocol_ftp_host(self, **kwargs)
Auto Generated Code
1.383881
1.286042
1.076078
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") ftp_protocol = ET.SubElement(protocol_type, "ftp-p...
def firmware_download_input_protocol_type_ftp_protocol_ftp_directory(self, **kwargs)
Auto Generated Code
1.385143
1.293045
1.071225
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") ftp_protocol = ET.SubElement(protocol_type, "ftp-p...
def firmware_download_input_protocol_type_ftp_protocol_ftp_file(self, **kwargs)
Auto Generated Code
1.3914
1.289177
1.079293
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") sftp_protocol = ET.SubElement(protocol_type, "sftp...
def firmware_download_input_protocol_type_sftp_protocol_sftp_user(self, **kwargs)
Auto Generated Code
1.342791
1.24741
1.076463
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") sftp_protocol = ET.SubElement(protocol_type, "sftp...
def firmware_download_input_protocol_type_sftp_protocol_sftp_password(self, **kwargs)
Auto Generated Code
1.373792
1.268913
1.082653
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") sftp_protocol = ET.SubElement(protocol_type, "sftp...
def firmware_download_input_protocol_type_sftp_protocol_sftp_host(self, **kwargs)
Auto Generated Code
1.367954
1.261635
1.084271
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") sftp_protocol = ET.SubElement(protocol_type, "sftp...
def firmware_download_input_protocol_type_sftp_protocol_sftp_directory(self, **kwargs)
Auto Generated Code
1.366954
1.264634
1.080909
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") sftp_protocol = ET.SubElement(protocol_type, "sftp...
def firmware_download_input_protocol_type_sftp_protocol_sftp_file(self, **kwargs)
Auto Generated Code
1.366892
1.254672
1.089442
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") sftp_protocol = ET.SubElement(protocol_type, "sftp...
def firmware_download_input_protocol_type_sftp_protocol_sftp_port(self, **kwargs)
Auto Generated Code
1.389252
1.284634
1.081438
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") sftp_protocol = ET.SubElement(protocol_type, "sftp...
def firmware_download_input_protocol_type_sftp_protocol_sftp_host_key_check(self, **kwargs)
Auto Generated Code
1.432271
1.296637
1.104605
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") protocol_type = ET.SubElement(input, "protocol-type") usb_protocol = ET.SubElement(protocol_type, "usb-p...
def firmware_download_input_protocol_type_usb_protocol_usb_directory(self, **kwargs)
Auto Generated Code
1.375982
1.286148
1.069848
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') call...
def firmware_download_input_rbridge_id(self, **kwargs)
Auto Generated Code
1.438812
1.296789
1.109519
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download input = ET.SubElement(firmware_download, "input") reboot_options = ET.SubElement(input, "reboot-options") auto_activate = ET.SubElement(reboot_options, "a...
def firmware_download_input_reboot_options_auto_activate_auto_activate(self, **kwargs)
Auto Generated Code
1.468972
1.304227
1.126316
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download output = ET.SubElement(firmware_download, "output") fwdl_cmd_status = ET.SubElement(output, "fwdl-cmd-status") fwdl_cmd_status.text = kwargs.pop('fwdl_cmd...
def firmware_download_output_fwdl_cmd_status(self, **kwargs)
Auto Generated Code
1.462278
1.269938
1.151456
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download output = ET.SubElement(firmware_download, "output") fwdl_cmd_msg = ET.SubElement(output, "fwdl-cmd-msg") fwdl_cmd_msg.text = kwargs.pop('fwdl_cmd_msg') ...
def firmware_download_output_fwdl_cmd_msg(self, **kwargs)
Auto Generated Code
1.606275
1.312518
1.223812
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download output = ET.SubElement(firmware_download, "output") cluster_output = ET.SubElement(output, "cluster-output") rbridge_id = ET.SubElement(cluster_output, "r...
def firmware_download_output_cluster_output_rbridge_id(self, **kwargs)
Auto Generated Code
1.365427
1.262856
1.081222
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download output = ET.SubElement(firmware_download, "output") cluster_output = ET.SubElement(output, "cluster-output") fwdl_status = ET.SubElement(cluster_output, "...
def firmware_download_output_cluster_output_fwdl_status(self, **kwargs)
Auto Generated Code
1.364778
1.246411
1.094966
config = ET.Element("config") firmware_download = ET.Element("firmware_download") config = firmware_download output = ET.SubElement(firmware_download, "output") cluster_output = ET.SubElement(output, "cluster-output") fwdl_msg = ET.SubElement(cluster_output, "fwd...
def firmware_download_output_cluster_output_fwdl_msg(self, **kwargs)
Auto Generated Code
1.379963
1.250008
1.103963
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") user = ET.SubElement(input, "user") user.text = kwargs.pop('user...
def logical_chassis_fwdl_sanity_input_user(self, **kwargs)
Auto Generated Code
1.337524
1.224428
1.092367
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") password = ET.SubElement(input, "password") password.text = kwar...
def logical_chassis_fwdl_sanity_input_password(self, **kwargs)
Auto Generated Code
1.326365
1.227533
1.080513
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") host = ET.SubElement(input, "host") host.text = kwargs.pop('host...
def logical_chassis_fwdl_sanity_input_host(self, **kwargs)
Auto Generated Code
1.35525
1.244873
1.088665
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") directory = ET.SubElement(input, "directory") directory.text = k...
def logical_chassis_fwdl_sanity_input_directory(self, **kwargs)
Auto Generated Code
1.346208
1.233776
1.091129
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") file = ET.SubElement(input, "file") file.text = kwargs.pop('file...
def logical_chassis_fwdl_sanity_input_file(self, **kwargs)
Auto Generated Code
1.398331
1.287717
1.0859
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text ...
def logical_chassis_fwdl_sanity_input_rbridge_id(self, **kwargs)
Auto Generated Code
1.288484
1.217376
1.058411
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") cluster_options = ET.SubElement(input, "cluster-options") auto_a...
def logical_chassis_fwdl_sanity_input_cluster_options_auto_activate_auto_activate(self, **kwargs)
Auto Generated Code
1.343288
1.245686
1.078352
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") cluster_options = ET.SubElement(input, "cluster-options") coldbo...
def logical_chassis_fwdl_sanity_input_cluster_options_coldboot_coldboot(self, **kwargs)
Auto Generated Code
1.317757
1.232965
1.06877
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity input = ET.SubElement(logical_chassis_fwdl_sanity, "input") protocol = ET.SubElement(input, "protocol") protocol.text = kwar...
def logical_chassis_fwdl_sanity_input_protocol(self, **kwargs)
Auto Generated Code
1.316815
1.233959
1.067146
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity output = ET.SubElement(logical_chassis_fwdl_sanity, "output") fwdl_cmd_status = ET.SubElement(output, "fwdl-cmd-status") fwd...
def logical_chassis_fwdl_sanity_output_fwdl_cmd_status(self, **kwargs)
Auto Generated Code
1.267523
1.20348
1.053214
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity output = ET.SubElement(logical_chassis_fwdl_sanity, "output") fwdl_cmd_msg = ET.SubElement(output, "fwdl-cmd-msg") fwdl_cmd_...
def logical_chassis_fwdl_sanity_output_fwdl_cmd_msg(self, **kwargs)
Auto Generated Code
1.289487
1.204936
1.07017
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity output = ET.SubElement(logical_chassis_fwdl_sanity, "output") cluster_output = ET.SubElement(output, "cluster-output") rbrid...
def logical_chassis_fwdl_sanity_output_cluster_output_rbridge_id(self, **kwargs)
Auto Generated Code
1.268041
1.192204
1.063611
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity output = ET.SubElement(logical_chassis_fwdl_sanity, "output") cluster_output = ET.SubElement(output, "cluster-output") fwdl_...
def logical_chassis_fwdl_sanity_output_cluster_output_fwdl_status(self, **kwargs)
Auto Generated Code
1.25626
1.186635
1.058674
config = ET.Element("config") logical_chassis_fwdl_sanity = ET.Element("logical_chassis_fwdl_sanity") config = logical_chassis_fwdl_sanity output = ET.SubElement(logical_chassis_fwdl_sanity, "output") cluster_output = ET.SubElement(output, "cluster-output") fwdl_...
def logical_chassis_fwdl_sanity_output_cluster_output_fwdl_msg(self, **kwargs)
Auto Generated Code
1.260717
1.18311
1.065596
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status input = ET.SubElement(logical_chassis_fwdl_status, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text ...
def logical_chassis_fwdl_status_input_rbridge_id(self, **kwargs)
Auto Generated Code
1.31761
1.249182
1.054778
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") overall_status = ET.SubElement(output, "overall-status") overa...
def logical_chassis_fwdl_status_output_overall_status(self, **kwargs)
Auto Generated Code
1.311873
1.230439
1.066183
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_rbridge_id(self, **kwargs)
Auto Generated Code
1.282019
1.215041
1.055124
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_state(self, **kwargs)
Auto Generated Code
1.255809
1.184028
1.060625
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_index(self, **kwargs)
Auto Generated Code
1.251333
1.18115
1.059419
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_message_id(self, **kwargs)
Auto Generated Code
1.23981
1.172887
1.057058
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_date_and_time_info(self, **kwargs)
Auto Generated Code
1.209582
1.160189
1.042573
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_message(self, **kwargs)
Auto Generated Code
1.239636
1.177428
1.052834
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_blade_slot(self, **kwargs)
Auto Generated Code
1.243277
1.184151
1.04993
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_blade_swbd(self, **kwargs)
Auto Generated Code
1.230706
1.180883
1.042191
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_blade_name(self, **kwargs)
Auto Generated Code
1.252443
1.189069
1.053297
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_blade_state(self, **kwargs)
Auto Generated Code
1.233963
1.17972
1.045979
config = ET.Element("config") logical_chassis_fwdl_status = ET.Element("logical_chassis_fwdl_status") config = logical_chassis_fwdl_status output = ET.SubElement(logical_chassis_fwdl_status, "output") cluster_fwdl_entries = ET.SubElement(output, "cluster-fwdl-entries") ...
def logical_chassis_fwdl_status_output_cluster_fwdl_entries_fwdl_entries_blade_app(self, **kwargs)
Auto Generated Code
1.235155
1.181575
1.045346
config = ET.Element("config") dad_status = ET.Element("dad_status") config = dad_status output = ET.SubElement(dad_status, "output") dad_last_state = ET.SubElement(output, "dad-last-state") dad_last_state.text = kwargs.pop('dad_last_state') callback = kw...
def dad_status_output_dad_last_state(self, **kwargs)
Auto Generated Code
1.506519
1.297659
1.160951
config = ET.Element("config") dad_status = ET.Element("dad_status") config = dad_status output = ET.SubElement(dad_status, "output") dad_status_entries = ET.SubElement(output, "dad-status-entries") index = ET.SubElement(dad_status_entries, "index") index....
def dad_status_output_dad_status_entries_index(self, **kwargs)
Auto Generated Code
1.411349
1.273564
1.108188
config = ET.Element("config") dad_status = ET.Element("dad_status") config = dad_status output = ET.SubElement(dad_status, "output") dad_status_entries = ET.SubElement(output, "dad-status-entries") date_and_time_info = ET.SubElement(dad_status_entries, "date-and-...
def dad_status_output_dad_status_entries_date_and_time_info(self, **kwargs)
Auto Generated Code
1.358506
1.2321
1.102594
config = ET.Element("config") dad_status = ET.Element("dad_status") config = dad_status output = ET.SubElement(dad_status, "output") dad_status_entries = ET.SubElement(output, "dad-status-entries") message = ET.SubElement(dad_status_entries, "message") me...
def dad_status_output_dad_status_entries_message(self, **kwargs)
Auto Generated Code
1.5098
1.304386
1.157479
config = ET.Element("config") event_handler = ET.SubElement(config, "event-handler", xmlns="urn:brocade.com:mgmt:brocade-event-handler") event_handler_list = ET.SubElement(event_handler, "event-handler-list") name = ET.SubElement(event_handler_list, "name") name.text = k...
def event_handler_event_handler_list_name(self, **kwargs)
Auto Generated Code
1.340846
1.290554
1.038969
config = ET.Element("config") event_handler = ET.SubElement(config, "event-handler", xmlns="urn:brocade.com:mgmt:brocade-event-handler") event_handler_list = ET.SubElement(event_handler, "event-handler-list") name_key = ET.SubElement(event_handler_list, "name") name_key....
def event_handler_event_handler_list_trigger_trigger_id(self, **kwargs)
Auto Generated Code
1.260241
1.23162
1.023238
config = ET.Element("config") event_handler = ET.SubElement(config, "event-handler", xmlns="urn:brocade.com:mgmt:brocade-event-handler") event_handler_list = ET.SubElement(event_handler, "event-handler-list") name_key = ET.SubElement(event_handler_list, "name") name_key....
def event_handler_event_handler_list_trigger_trigger_choice_vcs_vcs(self, **kwargs)
Auto Generated Code
1.264862
1.243285
1.017355
config = ET.Element("config") event_handler = ET.SubElement(config, "event-handler", xmlns="urn:brocade.com:mgmt:brocade-event-handler") event_handler_list = ET.SubElement(event_handler, "event-handler-list") name_key = ET.SubElement(event_handler_list, "name") name_key....
def event_handler_event_handler_list_action_action_choice_python_script_python_script(self, **kwargs)
Auto Generated Code
1.267657
1.250562
1.01367
config = ET.Element("config") http_sa = ET.SubElement(config, "http-sa", xmlns="urn:brocade.com:mgmt:brocade-http") http = ET.SubElement(http_sa, "http") server = ET.SubElement(http, "server") shutdown = ET.SubElement(server, "shutdown") callback = kwargs.pop('c...
def http_sa_http_server_shutdown(self, **kwargs)
Auto Generated Code
1.584838
1.49697
1.058698
config = ET.Element("config") http_sa = ET.SubElement(config, "http-sa", xmlns="urn:brocade.com:mgmt:brocade-http") http = ET.SubElement(http_sa, "http") server = ET.SubElement(http, "server") http_vrf_cont = ET.SubElement(server, "http-vrf-cont") use_vrf = ET.Su...
def http_sa_http_server_http_vrf_cont_use_vrf_use_vrf_name(self, **kwargs)
Auto Generated Code
1.285096
1.265181
1.01574
config = ET.Element("config") http_sa = ET.SubElement(config, "http-sa", xmlns="urn:brocade.com:mgmt:brocade-http") http = ET.SubElement(http_sa, "http") server = ET.SubElement(http, "server") http_vrf_cont = ET.SubElement(server, "http-vrf-cont") use_vrf = ET.Su...
def http_sa_http_server_http_vrf_cont_use_vrf_http_vrf_shutdown(self, **kwargs)
Auto Generated Code
1.356935
1.340031
1.012614
''' Overrides the base class to add a PhoheNumberDescriptor rather than the standard FieldDescriptor ''' self.model_class = cls setattr(cls, name, PhoneNumberDescriptor(self)) self._bound = True
def add_to_class(self, cls, name)
Overrides the base class to add a PhoheNumberDescriptor rather than the standard FieldDescriptor
23.392641
4.420028
5.29242
if not hasattr(app, 'extensions'): app.extensions = {} service_name = app.config.get('GSSAPI_SERVICE_NAME', 'HTTP') hostname = app.config.get('GSSAPI_HOSTNAME', socket.getfqdn()) principal = '{}@{}'.format(service_name, hostname) name = gssapi.Name(principal...
def init_app(self, app)
Initialises the Negotiate extension for the given application.
2.81998
2.658233
1.060847
if request.headers.get('Authorization', '').startswith('Negotiate '): in_token = base64.b64decode(request.headers['Authorization'][10:]) try: creds = current_app.extensions['gssapi']['creds'] except KeyError: raise RuntimeError('flask...
def authenticate(self)
Attempts to authenticate the user if a token was provided.
4.74656
4.832643
0.982187
# accept old-style single user keyword-argument as well if user: users = (*users, user) def _require_auth(view_func): @wraps(view_func) def wrapper(*args, **kwargs): username, out_token = self.authenticate() ...
def require_user(self, *users, user=None)
A decorator to protect views with Negotiate authentication.
3.047482
2.822368
1.079761
config = ET.Element("config") username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa") name_key = ET.SubElement(username, "name") name_key.text = kwargs.pop('name') access_time = ET.SubElement(username, "access-time") access_time.tex...
def username_access_time(self, **kwargs)
Auto Generated Code
1.589262
1.369282
1.160653
config = ET.Element("config") username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa") name_key = ET.SubElement(username, "name") name_key.text = kwargs.pop('name') end_time = ET.SubElement(username, "end-time") end_time.text = kwarg...
def username_end_time(self, **kwargs)
Auto Generated Code
1.62047
1.406628
1.152025
config = ET.Element("config") radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(radius_server, "host") use_vrf_key = ET.SubElement(host, "use-vrf") use_vrf_key.text = kwargs.pop('use_vrf') hostna...
def radius_server_host_hostname(self, **kwargs)
Auto Generated Code
1.598177
1.536471
1.040161
config = ET.Element("config") radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(radius_server, "host") hostname_key = ET.SubElement(host, "hostname") hostname_key.text = kwargs.pop('hostname') us...
def radius_server_host_use_vrf(self, **kwargs)
Auto Generated Code
1.376187
1.324439
1.039072
config = ET.Element("config") radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(radius_server, "host") hostname_key = ET.SubElement(host, "hostname") hostname_key.text = kwargs.pop('hostname') us...
def radius_server_host_protocol(self, **kwargs)
Auto Generated Code
1.450974
1.384336
1.048137
config = ET.Element("config") tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(tacacs_server, "host") hostname_key = ET.SubElement(host, "hostname") hostname_key.text = kwargs.pop('hostname') us...
def tacacs_server_host_use_vrf(self, **kwargs)
Auto Generated Code
1.335366
1.270681
1.050905
config = ET.Element("config") tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(tacacs_server, "host") hostname_key = ET.SubElement(host, "hostname") hostname_key.text = kwargs.pop('hostname') us...
def tacacs_server_host_protocol(self, **kwargs)
Auto Generated Code
1.353736
1.316525
1.028264
config = ET.Element("config") tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(tacacs_server, "host") hostname_key = ET.SubElement(host, "hostname") hostname_key.text = kwargs.pop('hostname') us...
def tacacs_server_host_key(self, **kwargs)
Auto Generated Code
1.404796
1.331757
1.054844
config = ET.Element("config") ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(ldap_server, "host") hostname_key = ET.SubElement(host, "hostname") hostname_key.text = kwargs.pop('hostname') use_vrf ...
def ldap_server_host_use_vrf(self, **kwargs)
Auto Generated Code
1.390235
1.320053
1.053166
config = ET.Element("config") ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(ldap_server, "host") hostname_key = ET.SubElement(host, "hostname") hostname_key.text = kwargs.pop('hostname') use_vrf_...
def ldap_server_host_retries(self, **kwargs)
Auto Generated Code
1.517111
1.397685
1.085446
config = ET.Element("config") ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa") host = ET.SubElement(ldap_server, "host") hostname_key = ET.SubElement(host, "hostname") hostname_key.text = kwargs.pop('hostname') use_vrf_...
def ldap_server_host_timeout(self, **kwargs)
Auto Generated Code
1.473642
1.384529
1.064363
name = name.strip() if '<' in name: self.required = True self.boolean = False name = name[:name.index('<')].strip() elif '[' in name: self.required = False self.boolean = False name = name[:name.index('[')].strip(...
def parse(self, name, description)
Parse option name. :param name: option's name :param description: option's description Parsing acceptable names: * -f: shortname * --force: longname * -f, --force: shortname and longname * -o <output>: shortname and a required value ...
2.476123
2.343256
1.056702
if value is None: return self.default if self.resolve: return self.resolve(value) return value
def to_python(self, value=None)
Transform the option value to python data.
4.567451
3.848791
1.186723
value = self._results.get(key) if value is not None: return value # get from option default value option = list(filter(lambda o: o.key == key, self._option_list)) if not option: raise ValueError('No such option: %s' % key) option = opti...
def get(self, key)
Get parsed result. After :func:`parse` the argv, we can get the parsed results:: # command.option('-f', 'description of -f') command.get('-f') command.get('verbose') # we can also get ``verbose``: command.verbose
3.886745
3.379999
1.149925
if isinstance(name, Option): option = name else: name = name.strip() option = Option( name=name, description=description, action=action, resolve=resolve, ) self._option_list.append(option) return s...
def option(self, name, description=None, action=None, resolve=None)
Add or get option. Here are some examples:: command.option('-v, --verbose', 'show more log') command.option('--tag <tag>', 'tag of the package') command.option('-s, --source <source>', 'the source repo') :param name: arguments of the option :param descripti...
2.915757
3.473317
0.839473
if not arg.startswith('-'): return False value = None if '=' in arg: arg, value = arg.split('=') for option in self._option_list: if arg not in (option.shortname, option.longname): continue action = option.acti...
def parse_options(self, arg)
Parse options with the argv :param arg: one arg from argv
3.071777
3.076222
0.998555
for option in self._option_list: # validate options if option.required and option.key not in self._results: raise RuntimeError('Option %s is required.' % option.name)
def validate_options(self)
Validate options
5.716785
5.004603
1.142305
if isinstance(command, Command): self._command_list.append(command) return command # it is a function func = command args, varargs, keywords, defaults = inspect.getargspec(func) if func.__doc__: doclines = func.__doc__.splitlines() ...
def action(self, command)
Add a subcommand. (Alias `subcommand`). :param command: a function or a Command You can add a :class:`Command` as an action, or a function:: command.action(subcommand) If you prefer a decorator:: @command.action def server(port=5000): ''' ...
2.588983
2.507698
1.032414
if not argv: argv = sys.argv elif isinstance(argv, str): argv = argv.split() self._argv = argv[1:] if not self._argv: self.validate_options() if self._command_func: self._command_func(**self._results) ...
def parse(self, argv=None)
Parse argv of terminal :param argv: default is sys.argv
2.73868
2.70435
1.012694
if not self._version: return self if not self._title: print(' %s %s' % (self._name, self._version)) return self print(' %s (%s %s)' % (self._title, self._name, self._version)) return self
def print_version(self)
Print the program version.
3.205052
2.906192
1.102836
print('\n %s %s' % (self._title or self._name, self._version or '')) if self._usage: print('\n %s' % self._usage) else: cmd = self._name if hasattr(self, '_parent') and isinstance(self._parent, Command): cmd = '%s %s' % (self._pare...
def print_help(self)
Print the help menu.
2.540332
2.503238
1.014818
namespace = 'urn:brocade.com:mgmt:brocade-system' get_system_uptime = ET.Element('get-system-uptime', xmlns=namespace) results = self._callback(get_system_uptime, handler='get') system_uptime = dict(days=results.find('.//{%s}days' % namespace).text, ...
def uptime(self)
dict: device uptime
2.584687
2.319105
1.114519
namespace = "urn:brocade.com:mgmt:brocade-rbridge" rbridge_id = kwargs.pop('rbridge_id', '1') chassis_name = ' ' callback = kwargs.pop('callback', self._callback) rid_args = dict(rbridge_id=rbridge_id, chassis_name=chassis_name) rid = getattr(self._rbridge, ...
def chassis_name(self, **kwargs)
Get device's chassis name/Model. Args: rbridge_id (str): The rbridge ID of the device callback (function): A function executed upon completion of the method. The only parameter passed to `callback` will be the ``ElementTree`` `config`. Returns: ...
3.073784
3.004456
1.023075
router_id = kwargs.pop('router_id') rbridge_id = kwargs.pop('rbridge_id', '1') callback = kwargs.pop('callback', self._callback) rid_args = dict(rbridge_id=rbridge_id, router_id=router_id) config = self._rbridge.rbridge_id_ip_rtm_config_router_id(**rid_args) retu...
def router_id(self, **kwargs)
Configures device's Router ID. Args: router_id (str): Router ID for the device. rbridge_id (str): The rbridge ID of the device on which BGP will be configured in a VCS fabric. callback (function): A function executed upon completion of the met...
3.24206
3.463687
0.936014
is_get_config = kwargs.pop('get', False) if not is_get_config: rbridge_id = kwargs.pop('rbridge_id') else: rbridge_id = '' callback = kwargs.pop('callback', self._callback) rid_args = dict(rbridge_id=rbridge_id) rid = getattr(self._rbridge...
def rbridge_id(self, **kwargs)
Configures device's rbridge ID. Setting this property will need a switch reboot Args: rbridge_id (str): The rbridge ID of the device on which BGP will be configured in a VCS fabric. get (bool): Get config instead of editing config. (True, False) callb...
2.548746
2.863122
0.890198
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail input = ET.SubElement(get_port_channel_detail, "input") request_type = ET.SubElement(input, "request-type") get_request = ET.SubElement(...
def get_port_channel_detail_input_request_type_get_request_aggregator_id(self, **kwargs)
Auto Generated Code
1.237543
1.186154
1.043325
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail input = ET.SubElement(get_port_channel_detail, "input") request_type = ET.SubElement(input, "request-type") get_next_request = ET.SubEle...
def get_port_channel_detail_input_request_type_get_next_request_last_aggregator_id(self, **kwargs)
Auto Generated Code
1.238362
1.191502
1.039329
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") aggregator_id = ET.SubElement(lacp, "aggr...
def get_port_channel_detail_output_lacp_aggregator_id(self, **kwargs)
Auto Generated Code
1.263549
1.192432
1.059641
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") aggregator_type = ET.SubElement(lacp, "ag...
def get_port_channel_detail_output_lacp_aggregator_type(self, **kwargs)
Auto Generated Code
1.272789
1.207463
1.054102
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") isvlag = ET.SubElement(lacp, "isvlag") ...
def get_port_channel_detail_output_lacp_isvlag(self, **kwargs)
Auto Generated Code
1.278274
1.186762
1.077111
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") aggregator_mode = ET.SubElement(lacp, "ag...
def get_port_channel_detail_output_lacp_aggregator_mode(self, **kwargs)
Auto Generated Code
1.273155
1.198038
1.0627
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") admin_key = ET.SubElement(lacp, "admin-ke...
def get_port_channel_detail_output_lacp_admin_key(self, **kwargs)
Auto Generated Code
1.261128
1.1935
1.056664
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") oper_key = ET.SubElement(lacp, "oper-key"...
def get_port_channel_detail_output_lacp_oper_key(self, **kwargs)
Auto Generated Code
1.259733
1.217433
1.034745
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") actor_system_id = ET.SubElement(lacp, "ac...
def get_port_channel_detail_output_lacp_actor_system_id(self, **kwargs)
Auto Generated Code
1.250651
1.200771
1.04154
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") partner_system_id = ET.SubElement(lacp, "...
def get_port_channel_detail_output_lacp_partner_system_id(self, **kwargs)
Auto Generated Code
1.244376
1.189848
1.045828
config = ET.Element("config") get_port_channel_detail = ET.Element("get_port_channel_detail") config = get_port_channel_detail output = ET.SubElement(get_port_channel_detail, "output") lacp = ET.SubElement(output, "lacp") system_priority = ET.SubElement(lacp, "sy...
def get_port_channel_detail_output_lacp_system_priority(self, **kwargs)
Auto Generated Code
1.2675
1.19785
1.058146