code
string
signature
string
docstring
string
loss_without_docstring
float64
loss_with_docstring
float64
factor
float64
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id = ET.SubElement(fc...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_fcoe_port_id(self, **kwargs)
Auto Generated Code
1.292306
1.222089
1.057457
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_port_type(self, **kwargs)
Auto Generated Code
1.356124
1.302958
1.040804
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_config_port_type(self, **kwargs)
Auto Generated Code
1.365449
1.286392
1.061457
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_port_state(self, **kwargs)
Auto Generated Code
1.350917
1.291955
1.045638
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_fabric_map_name(self, **kwargs)
Auto Generated Code
1.324889
1.270145
1.0431
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_eth_port_id(self, **kwargs)
Auto Generated Code
1.339145
1.282243
1.044377
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_interface_type(self, **kwargs)
Auto Generated Code
1.394785
1.32502
1.052652
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_interface_name(self, **kwargs)
Auto Generated Code
1.409266
1.335244
1.055437
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_admin_status(self, **kwargs)
Auto Generated Code
1.319374
1.263413
1.044293
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_peer_fcf_mac(self, **kwargs)
Auto Generated Code
1.335579
1.269487
1.052062
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_device_count(self, **kwargs)
Auto Generated Code
1.330257
1.27606
1.042473
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_ifindex(self, **kwargs)
Auto Generated Code
1.338972
1.284414
1.042477
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_wwn(self, **kwargs)
Auto Generated Code
1.341444
1.2757
1.051535
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_enode_bind_type(self, **kwargs)
Auto Generated Code
1.341724
1.270729
1.05587
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_port_bind_type(self, **kwargs)
Auto Generated Code
1.362696
1.3023
1.046377
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_enode_mac_address(self, **kwargs)
Auto Generated Code
1.336056
1.265605
1.055666
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_rx_vlan_disc_req(self, **kwargs)
Auto Generated Code
1.336143
1.276824
1.046458
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_rx_disc_solicitations(self, **kwargs)
Auto Generated Code
1.331322
1.26775
1.050146
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_rx_flogi(self, **kwargs)
Auto Generated Code
1.345782
1.280358
1.051098
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_rx_fdiscs(self, **kwargs)
Auto Generated Code
1.361872
1.289496
1.056127
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_rx_logo(self, **kwargs)
Auto Generated Code
1.341296
1.278216
1.04935
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_rx_errors(self, **kwargs)
Auto Generated Code
1.338195
1.285493
1.040997
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_tx_vlan_disc_resp(self, **kwargs)
Auto Generated Code
1.321295
1.269055
1.041164
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_tx_disc_sol_adv(self, **kwargs)
Auto Generated Code
1.314437
1.263195
1.040565
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_tx_disc_unsol_adv(self, **kwargs)
Auto Generated Code
1.313902
1.261315
1.041693
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_rx_enode_ka(self, **kwargs)
Auto Generated Code
1.35907
1.294195
1.050128
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_rx_vnport_ka(self, **kwargs)
Auto Generated Code
1.35103
1.288519
1.048514
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_tx_accepts(self, **kwargs)
Auto Generated Code
1.327834
1.270074
1.045478
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_tx_ls_rjt(self, **kwargs)
Auto Generated Code
1.331785
1.26777
1.050494
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_time_since_last_change(self, **kwargs)
Auto Generated Code
1.307474
1.257104
1.040069
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_last_counters_cleared(self, **kwargs)
Auto Generated Code
1.350706
1.293378
1.044324
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_list = ET.SubElement(output, "fcoe-intf-list") fcoe_intf_fcoe_port_id_key = ET.SubElemen...
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_tx_cvls(self, **kwargs)
Auto Generated Code
1.332676
1.27056
1.048889
config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interface, "output") fcoe_intf_total_interfaces = ET.SubElement(output, "fcoe-intf-total-interfaces") fcoe_intf_total_i...
def fcoe_get_interface_output_fcoe_intf_total_interfaces(self, **kwargs)
Auto Generated Code
1.375125
1.301191
1.05682
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login input = ET.SubElement(fcoe_get_login, "input") fcoe_login_interface = ET.SubElement(input, "fcoe-login-interface") fcoe_login_interface.text = kwargs.pop('fcoe_log...
def fcoe_get_login_input_fcoe_login_interface(self, **kwargs)
Auto Generated Code
1.352931
1.288089
1.050339
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login input = ET.SubElement(fcoe_get_login, "input") fcoe_login_vfid = ET.SubElement(input, "fcoe-login-vfid") fcoe_login_vfid.text = kwargs.pop('fcoe_login_vfid') ...
def fcoe_get_login_input_fcoe_login_vfid(self, **kwargs)
Auto Generated Code
1.312807
1.252282
1.048332
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login input = ET.SubElement(fcoe_get_login, "input") fcoe_login_vlan = ET.SubElement(input, "fcoe-login-vlan") fcoe_login_vlan.text = kwargs.pop('fcoe_login_vlan') ...
def fcoe_get_login_input_fcoe_login_vlan(self, **kwargs)
Auto Generated Code
1.325379
1.265782
1.047083
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login input = ET.SubElement(fcoe_get_login, "input") fcoe_login_rbridge_id = ET.SubElement(input, "fcoe-login-rbridge-id") fcoe_login_rbridge_id.text = kwargs.pop('fcoe_...
def fcoe_get_login_input_fcoe_login_rbridge_id(self, **kwargs)
Auto Generated Code
1.34278
1.26876
1.058341
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac = ET.SubElement(fcoe_login_list,...
def fcoe_get_login_output_fcoe_login_list_fcoe_login_session_mac(self, **kwargs)
Auto Generated Code
1.266316
1.230048
1.029485
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac_key = ET.SubElement(fcoe_login_l...
def fcoe_get_login_output_fcoe_login_list_fcoe_login_fcoe_interface_name(self, **kwargs)
Auto Generated Code
1.407624
1.364877
1.031319
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac_key = ET.SubElement(fcoe_login_l...
def fcoe_get_login_output_fcoe_login_list_fcoe_login_interface_name(self, **kwargs)
Auto Generated Code
1.421044
1.388425
1.023494
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac_key = ET.SubElement(fcoe_login_l...
def fcoe_get_login_output_fcoe_login_list_interface_type(self, **kwargs)
Auto Generated Code
1.451228
1.421187
1.021138
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac_key = ET.SubElement(fcoe_login_l...
def fcoe_get_login_output_fcoe_login_list_interface_name(self, **kwargs)
Auto Generated Code
1.463197
1.43105
1.022464
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac_key = ET.SubElement(fcoe_login_l...
def fcoe_get_login_output_fcoe_login_list_fcoe_login_device_wwn(self, **kwargs)
Auto Generated Code
1.395854
1.350789
1.033362
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac_key = ET.SubElement(fcoe_login_l...
def fcoe_get_login_output_fcoe_login_list_fcoe_login_device_mac(self, **kwargs)
Auto Generated Code
1.344784
1.31444
1.023085
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac_key = ET.SubElement(fcoe_login_l...
def fcoe_get_login_output_fcoe_login_list_fcoe_login_direct_attached(self, **kwargs)
Auto Generated Code
1.405879
1.371957
1.024726
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_list = ET.SubElement(output, "fcoe-login-list") fcoe_login_session_mac_key = ET.SubElement(fcoe_login_l...
def fcoe_get_login_output_fcoe_login_list_fcoe_login_connected_peer_type(self, **kwargs)
Auto Generated Code
1.375305
1.35093
1.018043
config = ET.Element("config") fcoe_get_login = ET.Element("fcoe_get_login") config = fcoe_get_login output = ET.SubElement(fcoe_get_login, "output") fcoe_login_total_logins = ET.SubElement(output, "fcoe-login-total-logins") fcoe_login_total_logins.text = kwargs.p...
def fcoe_get_login_output_fcoe_login_total_logins(self, **kwargs)
Auto Generated Code
1.340691
1.260951
1.063238
namespace = 'urn:ietf:params:xml:ns:netconf:base:1.0' bgp_filter = 'rbridge-id/router/bgp' bgp_config = ET.Element('get-config', xmlns="%s" % namespace) source = ET.SubElement(bgp_config, 'source') ET.SubElement(source, 'running') ET.SubElement(bgp_config, 'filte...
def enabled(self)
bool: ``True`` if BGP is enabled; ``False`` if BGP is disabled.
2.956953
2.809975
1.052306
vrf = kwargs.pop('vrf', 'default') is_get_config = kwargs.pop('get', False) if not is_get_config: local_as = kwargs.pop('local_as') else: local_as = '' rbridge_id = kwargs.pop('rbridge_id', '1') callback = kwargs.pop('callback', self._call...
def local_asn(self, **kwargs)
Set BGP local ASN. Args: local_as (str): Local ASN of NOS deice. vrf (str): The VRF for this BGP process. 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 con...
2.453046
2.463194
0.99588
vrf = kwargs.pop('vrf', 'default') rbridge_id = kwargs.pop('rbridge_id', '1') callback = kwargs.pop('callback', self._callback) bgp_args = dict(vrf_name=vrf, rbridge_id=rbridge_id) config = self._rbridge.rbridge_id_router_bgp_vrf_name(**bgp_args) config.find('.//...
def remove_bgp(self, **kwargs)
Remove BGP process completely. Args: vrf (str): The VRF for this BGP process. 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 metho...
2.580448
2.862809
0.901369
callback = kwargs.pop('callback', self._callback) neighbor_args = dict(router_bgp_neighbor_address='', remote_as='', vrf_name=kwargs.pop('vrf', 'default'), rbridge_id=kwargs.pop('rbridge_id', '1')) ...
def get_bgp_neighbors(self, **kwargs)
Get BGP neighbors configured on a device. Args: rbridge_id (str): The rbridge ID of the device on which BGP will be configured in a VCS fabric. vrf (str): The VRF for this BGP process. callback (function): A function executed upon completion of the ...
2.194123
2.205752
0.994728
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name = ET.SubElement(cee_map, "name") name.text = kwargs.pop('name') callback = kwargs.pop('callback', self._callback) return callback(config)
def cee_map_name(self, **kwargs)
Auto Generated Code
1.709466
1.39702
1.223651
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') precedence = ET.SubElement(cee_map, "precedence") precedence.text =...
def cee_map_precedence(self, **kwargs)
Auto Generated Code
1.580034
1.354607
1.166415
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_group_table = ET.SubElement(cee_map, "priority-group-table") ...
def cee_map_priority_group_table_PGID(self, **kwargs)
Auto Generated Code
1.344304
1.271213
1.057497
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_group_table = ET.SubElement(cee_map, "priority-group-table") ...
def cee_map_priority_group_table_weight(self, **kwargs)
Auto Generated Code
1.443097
1.36963
1.05364
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_group_table = ET.SubElement(cee_map, "priority-group-table") ...
def cee_map_priority_group_table_pfc(self, **kwargs)
Auto Generated Code
1.437851
1.371634
1.048276
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_table = ET.SubElement(cee_map, "priority-table") map_cos0_...
def cee_map_priority_table_map_cos0_pgid(self, **kwargs)
Auto Generated Code
1.332102
1.253832
1.062424
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_table = ET.SubElement(cee_map, "priority-table") map_cos1_...
def cee_map_priority_table_map_cos1_pgid(self, **kwargs)
Auto Generated Code
1.331488
1.258537
1.057966
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_table = ET.SubElement(cee_map, "priority-table") map_cos2_...
def cee_map_priority_table_map_cos2_pgid(self, **kwargs)
Auto Generated Code
1.329501
1.25359
1.060555
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_table = ET.SubElement(cee_map, "priority-table") map_cos3_...
def cee_map_priority_table_map_cos3_pgid(self, **kwargs)
Auto Generated Code
1.336043
1.259622
1.06067
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_table = ET.SubElement(cee_map, "priority-table") map_cos4_...
def cee_map_priority_table_map_cos4_pgid(self, **kwargs)
Auto Generated Code
1.334854
1.258428
1.060731
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_table = ET.SubElement(cee_map, "priority-table") map_cos5_...
def cee_map_priority_table_map_cos5_pgid(self, **kwargs)
Auto Generated Code
1.334803
1.261034
1.058499
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_table = ET.SubElement(cee_map, "priority-table") map_cos6_...
def cee_map_priority_table_map_cos6_pgid(self, **kwargs)
Auto Generated Code
1.330755
1.254741
1.060582
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') priority_table = ET.SubElement(cee_map, "priority-table") map_cos7_...
def cee_map_priority_table_map_cos7_pgid(self, **kwargs)
Auto Generated Code
1.330396
1.2556
1.05957
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') remap = ET.SubElement(cee_map, "remap") fabric_priority = ET.SubEle...
def cee_map_remap_fabric_priority_fabric_remapped_priority(self, **kwargs)
Auto Generated Code
1.32875
1.26412
1.051127
config = ET.Element("config") cee_map = ET.SubElement(config, "cee-map", xmlns="urn:brocade.com:mgmt:brocade-cee-map") name_key = ET.SubElement(cee_map, "name") name_key.text = kwargs.pop('name') remap = ET.SubElement(cee_map, "remap") lossless_priority = ET.SubE...
def cee_map_remap_lossless_priority_lossless_remapped_priority(self, **kwargs)
Auto Generated Code
1.435978
1.33388
1.076542
r = o.isoformat() if o.microsecond: r = r[:23] + r[26:] if r.endswith('+00:00'): r = r[:-6] + 'Z' return r
def encode_datetime(o)
Encodes a Python datetime.datetime object as an ECMA-262 compliant datetime string.
1.724252
1.753284
0.983441
r = o.isoformat() if o.microsecond: r = r[:12] if r.endswith('+00:00'): r = r[:-6] + 'Z' return r
def encode_time(o)
Encodes a Python datetime.time object as an ECMA-262 compliant time string.
2.05161
2.207001
0.929592
config = ET.Element("config") get_contained_in_ID = ET.Element("get_contained_in_ID") config = get_contained_in_ID output = ET.SubElement(get_contained_in_ID, "output") contained_in_ID = ET.SubElement(output, "contained-in-ID") contained_in_ID.text = kwargs.pop('...
def get_contained_in_ID_output_contained_in_ID(self, **kwargs)
Auto Generated Code
1.352919
1.219791
1.10914
"Find out if your terminal environment supports color." # shinx.util.console if not hasattr(sys.stdout, 'isatty'): return False if not sys.stdout.isatty() and 'TERMINAL-COLOR' not in os.environ: return False if sys.platform == 'win32': # pragma: no cover try: i...
def is_color_supported()
Find out if your terminal environment supports color.
3.638406
2.981839
1.220188
# Thanks to # https://github.com/tehmaze/ansi/blob/master/ansi/colour/rgb.py grayscale = False poss = True step = 2.5 while poss: if min(r, g, b) < step: grayscale = max(r, g, b) < step poss = False step += 42.5 if grayscale: return 2...
def rgb2ansi(r, g, b)
Convert an RGB color to 256 ansi graphics.
4.612968
4.506672
1.023586
if code.startswith('#'): code = code[1:] if len(code) == 3: # efc -> eeffcc return rgb2ansi(*map(lambda o: int(o * 2, 16), code)) if len(code) != 6: raise ValueError('invalid color code') rgb = (code[:2], code[2:4], code[4:]) return rgb2ansi(*map(lambda o: in...
def hex2ansi(code)
Convert hex code to ansi.
3.478384
3.296456
1.055189
if color in _styles: c = Color(text) c.styles = [_styles.index(color) + 1] return c c = Color(text) if background: c.bgcolor = _color2ansi(color) else: c.fgcolor = _color2ansi(color) return c
def colorize(text, color, background=False)
Colorize text with hex code. :param text: the text you want to paint :param color: a hex color or rgb color :param background: decide to colorize background :: colorize('hello', 'ff0000') colorize('hello', '#ff0000') colorize('hello', (255, 0, 0))
3.739194
4.664659
0.801601
config = ET.Element("config") fcoe_fsb = ET.SubElement(config, "fcoe-fsb", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fsb_enable = ET.SubElement(fcoe_fsb, "fcoe-fsb-enable") callback = kwargs.pop('callback', self._callback) return callback(config)
def fcoe_fsb_fcoe_fsb_enable(self, **kwargs)
Auto Generated Code
1.383566
1.285971
1.075893
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name.text ...
def fcoe_fcoe_fabric_map_fcoe_fabric_map_name(self, **kwargs)
Auto Generated Code
1.275723
1.205506
1.058246
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fabric_map_vlan(self, **kwargs)
Auto Generated Code
1.219848
1.177298
1.036143
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fabric_mode(self, **kwargs)
Auto Generated Code
1.266959
1.201076
1.054853
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fabric_map_priority(self, **kwargs)
Auto Generated Code
1.227184
1.170976
1.048001
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fabric_map_virtual_fabric(self, **kwargs)
Auto Generated Code
1.22875
1.178511
1.042629
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fabric_map_fcmap(self, **kwargs)
Auto Generated Code
1.2578
1.206092
1.042872
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fip_advertisement_fcoe_fip_advertisement_interval(self, **kwargs)
Auto Generated Code
1.214807
1.166599
1.041323
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fip_keep_alive_fcoe_fip_keep_alive_timeout(self, **kwargs)
Auto Generated Code
1.263942
1.219555
1.036396
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fcf_map_fcf_map_name(self, **kwargs)
Auto Generated Code
1.306662
1.241204
1.052737
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fcf_map_fcf_map_fcf_rbid(self, **kwargs)
Auto Generated Code
1.230226
1.195827
1.028766
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fcf_map_fcf_map_fif_rbid_fcf_map_fif_rbid_add(self, **kwargs)
Auto Generated Code
1.196884
1.172794
1.020541
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_fabric_map = ET.SubElement(fcoe, "fcoe-fabric-map") fcoe_fabric_map_name_key = ET.SubElement(fcoe_fabric_map, "fcoe-fabric-map-name") fcoe_fabric_map_name_k...
def fcoe_fcoe_fabric_map_fcoe_fcport_group_config_fcport_group_rbid_fcport_group_rbid_add(self, **kwargs)
Auto Generated Code
1.208109
1.167699
1.034607
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_map = ET.SubElement(fcoe, "fcoe-map") fcoe_map_name = ET.SubElement(fcoe_map, "fcoe-map-name") fcoe_map_name.text = kwargs.pop('fcoe_map_name') cal...
def fcoe_fcoe_map_fcoe_map_name(self, **kwargs)
Auto Generated Code
1.29519
1.218688
1.062774
config = ET.Element("config") fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe") fcoe_map = ET.SubElement(fcoe, "fcoe-map") fcoe_map_name_key = ET.SubElement(fcoe_map, "fcoe-map-name") fcoe_map_name_key.text = kwargs.pop('fcoe_map_name') ...
def fcoe_fcoe_map_fcoe_map_cee_map_fcoe_map_cee_map_leaf(self, **kwargs)
Auto Generated Code
1.220268
1.182597
1.031854
if not methods and not endpoints: raise ValueError('Filter cannot be added with no criteria.') filter = TraceFilter(methods, endpoints) self.filters.append(filter) return filter
def add_filter(self, methods=None, endpoints=None)
Adds a filter. :param methods: The HTTP methods to be filtered. :param endpoints: The endpoints to be filtered. :return Filter: The filter added.
5.37139
5.119342
1.049234
if len(self.filters) == 0: return True for filter in self.filters: if filter.match(rule): return True return False
def match(self, rule)
Checks if the given rule matches with any filter added. :param rule: The Flask rule to be matched. :return: True if there is a filter that matches.
2.849447
2.721274
1.0471
data = self.__collect_trace_data(request, response, error, latency) self.inspector(data) self.emitter(data)
def trace(self, request, response, error, latency)
Collects the data from the given parameters and emit it. :param request: The Flask request. :param response: The Flask response. :param error: The error occurred if any. :param latency: The time elapsed to process the request.
8.033632
6.74674
1.190743
data = OrderedDict() data['latency'] = latency.elapsed data['request_method'] = request.environ['REQUEST_METHOD'] data['request_url'] = request.url data['request_headers'] = request.headers body = request.get_data(as_text=True) if body: data...
def __collect_trace_data(self, request, response, error, latency)
Collects the tracing data from the given parameters. :param request: The Flask request. :param response: The flask response. :param error: The error occurred if any. :param latency: The time elapsed to process the request. :return: The tracing data.
2.253376
2.158437
1.043985
message = format_trace_data(data) self.io.logger.info(message)
def __default_emit_trace(self, data)
Writes the given tracing data to Python Logging. :param data: The tracing data to be written.
10.482649
16.691278
0.628032
if self.methods: for method in self.methods: if method in rule.methods: return True if self.endpoints: for endpoint in self.endpoints: if endpoint == rule.endpoint: return True return False
def match(self, rule)
Checks if the given rule matches with the filter. :param rule: The Flask rule to be matched. :return: True if the filter matches.
2.876958
2.779178
1.035183
config = ET.Element("config") l2traceroute = ET.Element("l2traceroute") config = l2traceroute input = ET.SubElement(l2traceroute, "input") src_mac = ET.SubElement(input, "src-mac") src_mac.text = kwargs.pop('src_mac') callback = kwargs.pop('callback', se...
def l2traceroute_input_src_mac(self, **kwargs)
Auto Generated Code
1.455092
1.294364
1.124175
config = ET.Element("config") l2traceroute = ET.Element("l2traceroute") config = l2traceroute input = ET.SubElement(l2traceroute, "input") dest_mac = ET.SubElement(input, "dest-mac") dest_mac.text = kwargs.pop('dest_mac') callback = kwargs.pop('callback'...
def l2traceroute_input_dest_mac(self, **kwargs)
Auto Generated Code
1.447471
1.288735
1.123172
config = ET.Element("config") l2traceroute = ET.Element("l2traceroute") config = l2traceroute input = ET.SubElement(l2traceroute, "input") vlan_id = ET.SubElement(input, "vlan-id") vlan_id.text = kwargs.pop('vlan_id') callback = kwargs.pop('callback', se...
def l2traceroute_input_vlan_id(self, **kwargs)
Auto Generated Code
1.420838
1.285414
1.105355
config = ET.Element("config") l2traceroute = ET.Element("l2traceroute") config = l2traceroute input = ET.SubElement(l2traceroute, "input") rbridge_id = ET.SubElement(input, "rbridge-id") rbridge_id.text = kwargs.pop('rbridge_id') callback = kwargs.pop('c...
def l2traceroute_input_rbridge_id(self, **kwargs)
Auto Generated Code
1.411223
1.297212
1.08789
config = ET.Element("config") l2traceroute = ET.Element("l2traceroute") config = l2traceroute input = ET.SubElement(l2traceroute, "input") protocolType = ET.SubElement(input, "protocolType") IP = ET.SubElement(protocolType, "IP") src_ip = ET.SubElement(IP...
def l2traceroute_input_protocolType_IP_src_ip(self, **kwargs)
Auto Generated Code
1.31755
1.272716
1.035227
config = ET.Element("config") l2traceroute = ET.Element("l2traceroute") config = l2traceroute input = ET.SubElement(l2traceroute, "input") protocolType = ET.SubElement(input, "protocolType") IP = ET.SubElement(protocolType, "IP") dest_ip = ET.SubElement(I...
def l2traceroute_input_protocolType_IP_dest_ip(self, **kwargs)
Auto Generated Code
1.30638
1.261606
1.03549