code
string
signature
string
docstring
string
loss_without_docstring
float64
loss_with_docstring
float64
factor
float64
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") designated_port_id...
def get_stp_mst_detail_output_cist_port_designated_port_id(self, **kwargs)
Auto Generated Code
1.259853
1.218566
1.033881
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") port_priority = ET...
def get_stp_mst_detail_output_cist_port_port_priority(self, **kwargs)
Auto Generated Code
1.268763
1.221141
1.038998
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") designated_bridge_...
def get_stp_mst_detail_output_cist_port_designated_bridge_id(self, **kwargs)
Auto Generated Code
1.259488
1.224437
1.028626
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") port_hello_time = ...
def get_stp_mst_detail_output_cist_port_port_hello_time(self, **kwargs)
Auto Generated Code
1.25315
1.211687
1.034219
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") forward_transition...
def get_stp_mst_detail_output_cist_port_forward_transitions_count(self, **kwargs)
Auto Generated Code
1.317051
1.257989
1.046949
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") received_stp_type ...
def get_stp_mst_detail_output_cist_port_received_stp_type(self, **kwargs)
Auto Generated Code
1.266066
1.223865
1.034482
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") transmitted_stp_ty...
def get_stp_mst_detail_output_cist_port_transmitted_stp_type(self, **kwargs)
Auto Generated Code
1.269836
1.229291
1.032983
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") edge_port = ET.Sub...
def get_stp_mst_detail_output_cist_port_edge_port(self, **kwargs)
Auto Generated Code
1.279629
1.224384
1.045121
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") auto_edge = ET.Sub...
def get_stp_mst_detail_output_cist_port_auto_edge(self, **kwargs)
Auto Generated Code
1.261829
1.215849
1.037817
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") admin_edge = ET.Su...
def get_stp_mst_detail_output_cist_port_admin_edge(self, **kwargs)
Auto Generated Code
1.258216
1.210011
1.039839
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") edge_delay = ET.Su...
def get_stp_mst_detail_output_cist_port_edge_delay(self, **kwargs)
Auto Generated Code
1.257191
1.214567
1.035094
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") configured_root_gu...
def get_stp_mst_detail_output_cist_port_configured_root_guard(self, **kwargs)
Auto Generated Code
1.277025
1.224831
1.042613
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") oper_root_guard = ...
def get_stp_mst_detail_output_cist_port_oper_root_guard(self, **kwargs)
Auto Generated Code
1.281393
1.243354
1.030594
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") boundary_port = ET...
def get_stp_mst_detail_output_cist_port_boundary_port(self, **kwargs)
Auto Generated Code
1.312532
1.253506
1.047089
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") oper_bpdu_guard = ...
def get_stp_mst_detail_output_cist_port_oper_bpdu_guard(self, **kwargs)
Auto Generated Code
1.276833
1.235159
1.033739
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") oper_bpdu_filter =...
def get_stp_mst_detail_output_cist_port_oper_bpdu_filter(self, **kwargs)
Auto Generated Code
1.277364
1.232582
1.036332
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") link_type = ET.Sub...
def get_stp_mst_detail_output_cist_port_link_type(self, **kwargs)
Auto Generated Code
1.269516
1.22266
1.038324
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") rx_bpdu_count = ET...
def get_stp_mst_detail_output_cist_port_rx_bpdu_count(self, **kwargs)
Auto Generated Code
1.273807
1.235767
1.030783
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") cist = ET.SubElement(output, "cist") port = ET.SubElement(cist, "port") tx_bpdu_count = ET...
def get_stp_mst_detail_output_cist_port_tx_bpdu_count(self, **kwargs)
Auto Generated Code
1.270865
1.228107
1.034816
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id = ET.SubElement(msti, "instance-id") inst...
def get_stp_mst_detail_output_msti_instance_id(self, **kwargs)
Auto Generated Code
1.289486
1.219046
1.057783
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_msti_root_id(self, **kwargs)
Auto Generated Code
1.291331
1.222118
1.056634
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_msti_bridge_id(self, **kwargs)
Auto Generated Code
1.300361
1.240919
1.047901
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_msti_bridge_priority(self, **kwargs)
Auto Generated Code
1.290609
1.238036
1.042465
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_interface_type(self, **kwargs)
Auto Generated Code
1.28988
1.235833
1.043733
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_interface_name(self, **kwargs)
Auto Generated Code
1.285456
1.230929
1.044298
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_spanningtree_enabled(self, **kwargs)
Auto Generated Code
1.337884
1.261633
1.060439
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_if_index(self, **kwargs)
Auto Generated Code
1.338182
1.27192
1.052096
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_interface_id(self, **kwargs)
Auto Generated Code
1.296909
1.239458
1.046352
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_if_role(self, **kwargs)
Auto Generated Code
1.324534
1.259255
1.05184
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_if_state(self, **kwargs)
Auto Generated Code
1.31688
1.267541
1.038925
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_external_path_cost(self, **kwargs)
Auto Generated Code
1.282459
1.221626
1.049797
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_internal_path_cost(self, **kwargs)
Auto Generated Code
1.289114
1.225071
1.052277
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_configured_path_cost(self, **kwargs)
Auto Generated Code
1.292477
1.229198
1.05148
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_designated_port_id(self, **kwargs)
Auto Generated Code
1.273632
1.219853
1.044087
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_port_priority(self, **kwargs)
Auto Generated Code
1.291147
1.253373
1.030138
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_designated_bridge_id(self, **kwargs)
Auto Generated Code
1.282434
1.230235
1.04243
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_port_hello_time(self, **kwargs)
Auto Generated Code
1.282052
1.242667
1.031694
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_forward_transitions_count(self, **kwargs)
Auto Generated Code
1.315529
1.253741
1.049283
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_received_stp_type(self, **kwargs)
Auto Generated Code
1.308123
1.25374
1.043377
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_transmitted_stp_type(self, **kwargs)
Auto Generated Code
1.321533
1.262195
1.047012
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_edge_port(self, **kwargs)
Auto Generated Code
1.306438
1.252039
1.043449
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_auto_edge(self, **kwargs)
Auto Generated Code
1.291679
1.232732
1.047818
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_admin_edge(self, **kwargs)
Auto Generated Code
1.291621
1.235541
1.045389
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_edge_delay(self, **kwargs)
Auto Generated Code
1.294394
1.243748
1.04072
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_configured_root_guard(self, **kwargs)
Auto Generated Code
1.300719
1.238947
1.049858
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_oper_root_guard(self, **kwargs)
Auto Generated Code
1.298679
1.251099
1.03803
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_boundary_port(self, **kwargs)
Auto Generated Code
1.340406
1.282378
1.04525
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_oper_bpdu_guard(self, **kwargs)
Auto Generated Code
1.299118
1.256441
1.033967
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_oper_bpdu_filter(self, **kwargs)
Auto Generated Code
1.297812
1.25361
1.035259
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_link_type(self, **kwargs)
Auto Generated Code
1.303751
1.242871
1.048983
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_rx_bpdu_count(self, **kwargs)
Auto Generated Code
1.304721
1.255885
1.038886
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") msti = ET.SubElement(output, "msti") instance_id_key = ET.SubElement(msti, "instance-id") ...
def get_stp_mst_detail_output_msti_port_tx_bpdu_count(self, **kwargs)
Auto Generated Code
1.301601
1.249543
1.041662
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") has_more = ET.SubElement(output, "has-more") has_more.text = kwargs.pop('has_more') callb...
def get_stp_mst_detail_output_has_more(self, **kwargs)
Auto Generated Code
1.316908
1.209584
1.088728
config = ET.Element("config") get_stp_mst_detail = ET.Element("get_stp_mst_detail") config = get_stp_mst_detail output = ET.SubElement(get_stp_mst_detail, "output") last_instance = ET.SubElement(output, "last-instance") instance_id = ET.SubElement(last_instance, ...
def get_stp_mst_detail_output_last_instance_instance_id(self, **kwargs)
Auto Generated Code
1.267288
1.195191
1.060323
''' Decorator for making sure a method can only be executed once ''' def wrapper(*args, **kwargs): if not wrapper.has_run: wrapper.has_run = True return func(*args, **kwargs) wrapper.has_run = False return wrapper
def run_once(func)
Decorator for making sure a method can only be executed once
2.530238
2.022723
1.250907
config = ET.Element("config") openflow_controller = ET.SubElement(config, "openflow-controller", xmlns="urn:brocade.com:mgmt:brocade-openflow") controller_name_key = ET.SubElement(openflow_controller, "controller-name") controller_name_key.text = kwargs.pop('controller_name') ...
def openflow_controller_connection_address_active_controller_vrf(self, **kwargs)
Auto Generated Code
1.309763
1.234267
1.061166
config = ET.Element("config") bp_rate_limit = ET.SubElement(config, "bp-rate-limit", xmlns="urn:brocade.com:mgmt:brocade-bprate-limit") heavy = ET.SubElement(bp_rate_limit, "heavy") bp_rate_limit_slot = ET.SubElement(heavy, "bp-rate-limit-slot") bp_rate_limit_slot_num = ...
def bp_rate_limit_heavy_bp_rate_limit_slot_bp_rate_limit_slot_num(self, **kwargs)
Auto Generated Code
1.384844
1.330982
1.040468
urn = "{urn:brocade.com:mgmt:brocade-firmware}" request_fwdl = self.get_firmware_download_request(protocol, host, user, password, file_name, rbridge) response = self._call...
def download(self, protocol, host, user, password, file_name, rbridge='all')
Download firmware to device
3.434777
3.325235
1.032943
''' This methods registers a resource with the router and connects all receivers to their respective signals :param resource: The resource class to register :type resource: A subclass of ``Resource`` class :param endpoint: the name of the reso...
def register(self, resource, endpoint)
This methods registers a resource with the router and connects all receivers to their respective signals :param resource: The resource class to register :type resource: A subclass of ``Resource`` class :param endpoint: the name of the resource's endpoint as i...
5.211358
2.316382
2.249783
''' Iterate through all resources registered with this router and create a list endpoint and a detail endpoint for each one. Uses the router name as prefix and endpoint name of the resource when registered, to assemble the url pattern. Uses the constructor-passed url method or cl...
def urls_old(self, protocol=Resource.Protocol.http)
Iterate through all resources registered with this router and create a list endpoint and a detail endpoint for each one. Uses the router name as prefix and endpoint name of the resource when registered, to assemble the url pattern. Uses the constructor-passed url method or class for generating u...
3.685353
2.205976
1.670622
''' Dispatches an incoming request and passes it to the relevant resource returning the response. :param app: Application handler. must be passed as part of the request :param payload: The request payload, contains all the parameters of the request ...
async def dispatch(self, app, payload)
Dispatches an incoming request and passes it to the relevant resource returning the response. :param app: Application handler. must be passed as part of the request :param payload: The request payload, contains all the parameters of the request
4.550521
3.074717
1.47998
config = ET.Element("config") show_fabric_trunk_info = ET.Element("show_fabric_trunk_info") config = show_fabric_trunk_info input = ET.SubElement(show_fabric_trunk_info, "input") rbridge_id_or_all = ET.SubElement(input, "rbridge-id-or-all") all = ET.SubElement(rb...
def show_fabric_trunk_info_input_rbridge_id_or_all_all_all(self, **kwargs)
Auto Generated Code
1.368973
1.260126
1.086378
config = ET.Element("config") vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch") id = ET.SubElement(vcenter, "id") id.text = kwargs.pop('id') credentials = ET.SubElement(vcenter, "credentials") ...
def add_vcenter(self, **kwargs)
Add vCenter on the switch Args: id(str) : Name of an established vCenter url (bool) : vCenter URL username (str): Username of the vCenter password (str): Password of the vCenter callback (function): A function executed upon completion of the ...
1.949107
1.727415
1.128338
name = kwargs.pop('name') activate = kwargs.pop('activate', True) vcenter_args = dict(id=name) method_class = self._brocade_vswitch if activate: method_name = 'vcenter_activate' vcenter_attr = getattr(method_class, method_name) config ...
def activate_vcenter(self, **kwargs)
Activate vCenter on the switch Args: name: (str) : Name of an established vCenter activate (bool) : Activates the vCenter if activate=True else deactivates it callback (function): A function executed upon completion of the metho...
4.883862
4.826987
1.011783
config = ET.Element("config") urn = "urn:brocade.com:mgmt:brocade-vswitch" ET.SubElement(config, "vcenter", xmlns=urn) output = self._callback(config, handler='get_config') result = [] element = ET.fromstring(str(output)) for vcenter in element.iter('{%s}...
def get_vcenter(self, **kwargs)
Get vCenter hosts on the switch Args: callback (function): A function executed upon completion of the method. Returns: Returns a list of vcenters Raises: None
2.880433
2.808655
1.025556
config = ET.Element("config") netconf_config_change = ET.SubElement(config, "netconf-config-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") changed_by = ET.SubElement(netconf_config_change, "changed-by") server_or_user = ET.SubElement(changed_by, "server...
def netconf_config_change_changed_by_server_or_user_server_server(self, **kwargs)
Auto Generated Code
1.460906
1.345973
1.08539
config = ET.Element("config") netconf_config_change = ET.SubElement(config, "netconf-config-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") changed_by = ET.SubElement(netconf_config_change, "changed-by") server_or_user = ET.SubElement(changed_by, "server...
def netconf_config_change_changed_by_server_or_user_by_user_username(self, **kwargs)
Auto Generated Code
1.483541
1.388346
1.068567
config = ET.Element("config") netconf_config_change = ET.SubElement(config, "netconf-config-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") changed_by = ET.SubElement(netconf_config_change, "changed-by") server_or_user = ET.SubElement(changed_by, "server...
def netconf_config_change_changed_by_server_or_user_by_user_session_id(self, **kwargs)
Auto Generated Code
1.46512
1.378457
1.06287
config = ET.Element("config") netconf_config_change = ET.SubElement(config, "netconf-config-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") changed_by = ET.SubElement(netconf_config_change, "changed-by") server_or_user = ET.SubElement(changed_by, "server...
def netconf_config_change_changed_by_server_or_user_by_user_source_host(self, **kwargs)
Auto Generated Code
1.426941
1.349337
1.057513
config = ET.Element("config") netconf_config_change = ET.SubElement(config, "netconf-config-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") datastore = ET.SubElement(netconf_config_change, "datastore") datastore.text = kwargs.pop('datastore') ca...
def netconf_config_change_datastore(self, **kwargs)
Auto Generated Code
1.604423
1.500847
1.069012
config = ET.Element("config") netconf_config_change = ET.SubElement(config, "netconf-config-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") edit = ET.SubElement(netconf_config_change, "edit") target = ET.SubElement(edit, "target") target.text = k...
def netconf_config_change_edit_target(self, **kwargs)
Auto Generated Code
1.534248
1.357314
1.130356
config = ET.Element("config") netconf_config_change = ET.SubElement(config, "netconf-config-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") edit = ET.SubElement(netconf_config_change, "edit") operation = ET.SubElement(edit, "operation") operation...
def netconf_config_change_edit_operation(self, **kwargs)
Auto Generated Code
1.54676
1.368075
1.130611
config = ET.Element("config") netconf_capability_change = ET.SubElement(config, "netconf-capability-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") changed_by = ET.SubElement(netconf_capability_change, "changed-by") server_or_user = ET.SubElement(changed...
def netconf_capability_change_changed_by_server_or_user_server_server(self, **kwargs)
Auto Generated Code
1.413837
1.328363
1.064346
config = ET.Element("config") netconf_capability_change = ET.SubElement(config, "netconf-capability-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") changed_by = ET.SubElement(netconf_capability_change, "changed-by") server_or_user = ET.SubElement(changed...
def netconf_capability_change_changed_by_server_or_user_by_user_username(self, **kwargs)
Auto Generated Code
1.440157
1.36664
1.053794
config = ET.Element("config") netconf_capability_change = ET.SubElement(config, "netconf-capability-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") changed_by = ET.SubElement(netconf_capability_change, "changed-by") server_or_user = ET.SubElement(changed...
def netconf_capability_change_changed_by_server_or_user_by_user_session_id(self, **kwargs)
Auto Generated Code
1.420869
1.362993
1.042463
config = ET.Element("config") netconf_capability_change = ET.SubElement(config, "netconf-capability-change", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") changed_by = ET.SubElement(netconf_capability_change, "changed-by") server_or_user = ET.SubElement(changed...
def netconf_capability_change_changed_by_server_or_user_by_user_source_host(self, **kwargs)
Auto Generated Code
1.386629
1.327668
1.04441
config = ET.Element("config") netconf_session_start = ET.SubElement(config, "netconf-session-start", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") username = ET.SubElement(netconf_session_start, "username") username.text = kwargs.pop('username') callba...
def netconf_session_start_username(self, **kwargs)
Auto Generated Code
1.504001
1.391903
1.080536
config = ET.Element("config") netconf_session_start = ET.SubElement(config, "netconf-session-start", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") session_id = ET.SubElement(netconf_session_start, "session-id") session_id.text = kwargs.pop('session_id') ...
def netconf_session_start_session_id(self, **kwargs)
Auto Generated Code
1.479446
1.397481
1.058652
config = ET.Element("config") netconf_session_start = ET.SubElement(config, "netconf-session-start", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") source_host = ET.SubElement(netconf_session_start, "source-host") source_host.text = kwargs.pop('source_host') ...
def netconf_session_start_source_host(self, **kwargs)
Auto Generated Code
1.471506
1.379771
1.066486
config = ET.Element("config") netconf_session_end = ET.SubElement(config, "netconf-session-end", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") username = ET.SubElement(netconf_session_end, "username") username.text = kwargs.pop('username') callback = k...
def netconf_session_end_username(self, **kwargs)
Auto Generated Code
1.527091
1.397967
1.092366
config = ET.Element("config") netconf_session_end = ET.SubElement(config, "netconf-session-end", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") session_id = ET.SubElement(netconf_session_end, "session-id") session_id.text = kwargs.pop('session_id') call...
def netconf_session_end_session_id(self, **kwargs)
Auto Generated Code
1.513048
1.418407
1.066723
config = ET.Element("config") netconf_session_end = ET.SubElement(config, "netconf-session-end", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") source_host = ET.SubElement(netconf_session_end, "source-host") source_host.text = kwargs.pop('source_host') ...
def netconf_session_end_source_host(self, **kwargs)
Auto Generated Code
1.481326
1.38104
1.072617
config = ET.Element("config") netconf_session_end = ET.SubElement(config, "netconf-session-end", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") killed_by = ET.SubElement(netconf_session_end, "killed-by") killed_by.text = kwargs.pop('killed_by') callback...
def netconf_session_end_killed_by(self, **kwargs)
Auto Generated Code
1.526062
1.377183
1.108104
config = ET.Element("config") netconf_session_end = ET.SubElement(config, "netconf-session-end", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") termination_reason = ET.SubElement(netconf_session_end, "termination-reason") termination_reason.text = kwargs.pop('te...
def netconf_session_end_termination_reason(self, **kwargs)
Auto Generated Code
1.447925
1.380535
1.048815
config = ET.Element("config") netconf_confirmed_commit = ET.SubElement(config, "netconf-confirmed-commit", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") username = ET.SubElement(netconf_confirmed_commit, "username") username.text = kwargs.pop('username') ...
def netconf_confirmed_commit_username(self, **kwargs)
Auto Generated Code
1.483865
1.381441
1.074143
config = ET.Element("config") netconf_confirmed_commit = ET.SubElement(config, "netconf-confirmed-commit", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") session_id = ET.SubElement(netconf_confirmed_commit, "session-id") session_id.text = kwargs.pop('session_id'...
def netconf_confirmed_commit_session_id(self, **kwargs)
Auto Generated Code
1.445169
1.360469
1.062258
config = ET.Element("config") netconf_confirmed_commit = ET.SubElement(config, "netconf-confirmed-commit", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") source_host = ET.SubElement(netconf_confirmed_commit, "source-host") source_host.text = kwargs.pop('source_h...
def netconf_confirmed_commit_source_host(self, **kwargs)
Auto Generated Code
1.424834
1.349958
1.055465
config = ET.Element("config") netconf_confirmed_commit = ET.SubElement(config, "netconf-confirmed-commit", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") confirm_event = ET.SubElement(netconf_confirmed_commit, "confirm-event") confirm_event.text = kwargs.pop('co...
def netconf_confirmed_commit_confirm_event(self, **kwargs)
Auto Generated Code
1.577048
1.433556
1.100095
config = ET.Element("config") netconf_confirmed_commit = ET.SubElement(config, "netconf-confirmed-commit", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications") timeout = ET.SubElement(netconf_confirmed_commit, "timeout") timeout.text = kwargs.pop('timeout') c...
def netconf_confirmed_commit_timeout(self, **kwargs)
Auto Generated Code
1.481757
1.38811
1.067464
config = ET.Element("config") maps_re_apply_policy = ET.Element("maps_re_apply_policy") config = maps_re_apply_policy input = ET.SubElement(maps_re_apply_policy, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') ...
def maps_re_apply_policy_input_rbridge_id(self, **kwargs)
Auto Generated Code
1.354578
1.280967
1.057465
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules input = ET.SubElement(maps_get_default_rules, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridg...
def maps_get_default_rules_input_rbridge_id(self, **kwargs)
Auto Generated Code
1.347739
1.285154
1.048699
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") rbridgeid = ET.SubElement(rules, "rbridgeid...
def maps_get_default_rules_output_rules_rbridgeid(self, **kwargs)
Auto Generated Code
1.346482
1.272281
1.058321
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") rulename = ET.SubElement(rules, "rulename")...
def maps_get_default_rules_output_rules_rulename(self, **kwargs)
Auto Generated Code
1.278073
1.236812
1.03336
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") groupname = ET.SubElement(rules, "groupname...
def maps_get_default_rules_output_rules_groupname(self, **kwargs)
Auto Generated Code
1.309123
1.258579
1.04016
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") monitor = ET.SubElement(rules, "monitor") ...
def maps_get_default_rules_output_rules_monitor(self, **kwargs)
Auto Generated Code
1.321038
1.264752
1.044504
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") op = ET.SubElement(rules, "op") op....
def maps_get_default_rules_output_rules_op(self, **kwargs)
Auto Generated Code
1.297019
1.245831
1.041088
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") value = ET.SubElement(rules, "value") ...
def maps_get_default_rules_output_rules_value(self, **kwargs)
Auto Generated Code
1.35304
1.315714
1.028369
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") action = ET.SubElement(rules, "action") ...
def maps_get_default_rules_output_rules_action(self, **kwargs)
Auto Generated Code
1.315625
1.260309
1.043891
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") timebase = ET.SubElement(rules, "timebase")...
def maps_get_default_rules_output_rules_timebase(self, **kwargs)
Auto Generated Code
1.289056
1.24184
1.038021
config = ET.Element("config") maps_get_default_rules = ET.Element("maps_get_default_rules") config = maps_get_default_rules output = ET.SubElement(maps_get_default_rules, "output") rules = ET.SubElement(output, "rules") policyname = ET.SubElement(rules, "policyna...
def maps_get_default_rules_output_rules_policyname(self, **kwargs)
Auto Generated Code
1.303083
1.259624
1.034502