code string | signature string | docstring string | loss_without_docstring float64 | loss_with_docstring float64 | factor float64 |
|---|---|---|---|---|---|
config = ET.Element("config")
commit = ET.Element("commit")
config = commit
input = ET.SubElement(commit, "input")
persist_id = ET.SubElement(input, "persist-id")
persist_id.text = kwargs.pop('persist_id')
callback = kwargs.pop('callback', self._callback... | def commit_input_persist_id(self, **kwargs) | Auto Generated Code | 1.934264 | 1.476338 | 1.310176 |
config = ET.Element("config")
cancel_commit = ET.Element("cancel_commit")
config = cancel_commit
input = ET.SubElement(cancel_commit, "input")
persist_id = ET.SubElement(input, "persist-id")
persist_id.text = kwargs.pop('persist_id')
callback = kwargs.po... | def cancel_commit_input_persist_id(self, **kwargs) | Auto Generated Code | 1.637893 | 1.38445 | 1.183064 |
config = ET.Element("config")
validate = ET.Element("validate")
config = validate
input = ET.SubElement(validate, "input")
source = ET.SubElement(input, "source")
config_source = ET.SubElement(source, "config-source")
candidate = ET.SubElement(config_sour... | def validate_input_source_config_source_candidate_candidate(self, **kwargs) | Auto Generated Code | 1.872448 | 1.396014 | 1.341282 |
config = ET.Element("config")
validate = ET.Element("validate")
config = validate
input = ET.SubElement(validate, "input")
source = ET.SubElement(input, "source")
config_source = ET.SubElement(source, "config-source")
running = ET.SubElement(config_source... | def validate_input_source_config_source_running_running(self, **kwargs) | Auto Generated Code | 1.754102 | 1.388533 | 1.263278 |
config = ET.Element("config")
validate = ET.Element("validate")
config = validate
input = ET.SubElement(validate, "input")
source = ET.SubElement(input, "source")
config_source = ET.SubElement(source, "config-source")
startup = ET.SubElement(config_source... | def validate_input_source_config_source_startup_startup(self, **kwargs) | Auto Generated Code | 1.764393 | 1.413305 | 1.248416 |
config = ET.Element("config")
validate = ET.Element("validate")
config = validate
input = ET.SubElement(validate, "input")
source = ET.SubElement(input, "source")
config_source = ET.SubElement(source, "config-source")
url = ET.SubElement(config_source, "u... | def validate_input_source_config_source_url_url(self, **kwargs) | Auto Generated Code | 1.640313 | 1.413086 | 1.160802 |
config = ET.Element("config")
user_session_info = ET.Element("user_session_info")
config = user_session_info
output = ET.SubElement(user_session_info, "output")
user_role = ET.SubElement(output, "user-role")
user_role.text = kwargs.pop('user_role')
callb... | def user_session_info_output_user_role(self, **kwargs) | Auto Generated Code | 1.482618 | 1.320639 | 1.122652 |
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
authentication = ET.SubElement(aaa, "authentication")
login = ET.SubElement(authentication, "login")
fi... | def aaa_config_aaa_authentication_login_first(self, **kwargs) | Auto Generated Code | 1.353479 | 1.256836 | 1.076894 |
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
authentication = ET.SubElement(aaa, "authentication")
login = ET.SubElement(authentication, "login")
se... | def aaa_config_aaa_authentication_login_second(self, **kwargs) | Auto Generated Code | 1.356752 | 1.261665 | 1.075366 |
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
accounting = ET.SubElement(aaa, "accounting")
exc = ET.SubElement(accounting, "exec")
defaultacc = ET.S... | def aaa_config_aaa_accounting_exc_defaultacc_start_stop_server_type(self, **kwargs) | Auto Generated Code | 1.350217 | 1.305056 | 1.034604 |
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name = ET.SubElement(username, "name")
name.text = kwargs.pop('name')
callback = kwargs.pop('callback', self._callback)
return callback(config) | def username_name(self, **kwargs) | Auto Generated Code | 1.804386 | 1.484541 | 1.215451 |
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')
user_password = ET.SubElement(username, "user-password")
user_passwo... | def username_user_password(self, **kwargs) | Auto Generated Code | 1.60715 | 1.381865 | 1.16303 |
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')
encryption_level = ET.SubElement(username, "encryption-level")
encry... | def username_encryption_level(self, **kwargs) | Auto Generated Code | 1.675405 | 1.421508 | 1.178611 |
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')
role = ET.SubElement(username, "role")
role.text = kwargs.pop('role'... | def username_role(self, **kwargs) | Auto Generated Code | 1.730863 | 1.43408 | 1.20695 |
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')
desc = ET.SubElement(username, "desc")
desc.text = kwargs.pop('desc'... | def username_desc(self, **kwargs) | Auto Generated Code | 1.739914 | 1.457332 | 1.193903 |
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')
enable = ET.SubElement(username, "enable")
enable.text = kwargs.pop(... | def username_enable(self, **kwargs) | Auto Generated Code | 1.601884 | 1.367451 | 1.171437 |
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')
expire = ET.SubElement(username, "expire")
expire.text = kwargs.pop(... | def username_expire(self, **kwargs) | Auto Generated Code | 1.743703 | 1.45835 | 1.195669 |
config = ET.Element("config")
service = ET.SubElement(config, "service", xmlns="urn:brocade.com:mgmt:brocade-aaa")
password_encryption = ET.SubElement(service, "password-encryption")
callback = kwargs.pop('callback', self._callback)
return callback(config) | def service_password_encryption(self, **kwargs) | Auto Generated Code | 1.811216 | 1.591945 | 1.137738 |
config = ET.Element("config")
role = ET.SubElement(config, "role", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name = ET.SubElement(role, "name")
name = ET.SubElement(name, "name")
name.text = kwargs.pop('name')
callback = kwargs.pop('callback', self._callback)
... | def role_name_name(self, **kwargs) | Auto Generated Code | 1.580248 | 1.412056 | 1.119112 |
config = ET.Element("config")
role = ET.SubElement(config, "role", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name = ET.SubElement(role, "name")
name_key = ET.SubElement(name, "name")
name_key.text = kwargs.pop('name')
desc = ET.SubElement(name, "desc")
de... | def role_name_desc(self, **kwargs) | Auto Generated Code | 1.545386 | 1.397528 | 1.105799 |
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')
au... | def radius_server_host_auth_port(self, **kwargs) | Auto Generated Code | 1.412118 | 1.325549 | 1.065308 |
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')
ke... | def radius_server_host_key(self, **kwargs) | Auto Generated Code | 1.533655 | 1.398666 | 1.096513 |
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')
en... | def radius_server_host_encryption_level(self, **kwargs) | Auto Generated Code | 1.394237 | 1.335552 | 1.043941 |
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')
re... | def radius_server_host_retries(self, **kwargs) | Auto Generated Code | 1.475361 | 1.371093 | 1.076047 |
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')
ti... | def radius_server_host_timeout(self, **kwargs) | Auto Generated Code | 1.440332 | 1.353973 | 1.063782 |
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 = ET.SubElement(host, "hostname")
hostname.text = kwargs.pop('hostname')
callback ... | def tacacs_server_host_hostname(self, **kwargs) | Auto Generated Code | 1.348432 | 1.276657 | 1.056221 |
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')
po... | def tacacs_server_host_port(self, **kwargs) | Auto Generated Code | 1.365676 | 1.278911 | 1.067843 |
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')
en... | def tacacs_server_host_encryption_level(self, **kwargs) | Auto Generated Code | 1.326614 | 1.268087 | 1.046154 |
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')
re... | def tacacs_server_host_retries(self, **kwargs) | Auto Generated Code | 1.359364 | 1.29134 | 1.052677 |
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')
ti... | def tacacs_server_host_timeout(self, **kwargs) | Auto Generated Code | 1.35284 | 1.289249 | 1.049324 |
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
tacacs_source_ip = ET.SubElement(tacacs_server, "tacacs-source-ip")
tacacs_source_ip.text = kwargs.pop('tacacs_source_ip')
callback = kwargs.po... | def tacacs_server_tacacs_source_ip(self, **kwargs) | Auto Generated Code | 1.315691 | 1.272384 | 1.034036 |
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 = ET.SubElement(host, "hostname")
hostname.text = kwargs.pop('hostname')
callback = kwar... | def ldap_server_host_hostname(self, **kwargs) | Auto Generated Code | 1.485991 | 1.365596 | 1.088163 |
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')
port = E... | def ldap_server_host_port(self, **kwargs) | Auto Generated Code | 1.523167 | 1.374205 | 1.108399 |
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')
basedn =... | def ldap_server_host_basedn(self, **kwargs) | Auto Generated Code | 1.627429 | 1.44022 | 1.129986 |
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
maprole = ET.SubElement(ldap_server, "maprole")
group = ET.SubElement(maprole, "group")
ad_group = ET.SubElement(group, "ad-group")
ad_group... | def ldap_server_maprole_group_ad_group(self, **kwargs) | Auto Generated Code | 1.38514 | 1.307625 | 1.059279 |
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
maprole = ET.SubElement(ldap_server, "maprole")
group = ET.SubElement(maprole, "group")
ad_group_key = ET.SubElement(group, "ad-group")
ad_g... | def ldap_server_maprole_group_switch_role(self, **kwargs) | Auto Generated Code | 1.55671 | 1.461967 | 1.064805 |
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
min_length = ET.SubElement(password_attributes, "min-length")
min_length.text = kwargs.pop('min_length')
callback = kwargs.pop('cal... | def password_attributes_min_length(self, **kwargs) | Auto Generated Code | 1.601956 | 1.395218 | 1.148175 |
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
max_retry = ET.SubElement(password_attributes, "max-retry")
max_retry.text = kwargs.pop('max_retry')
callback = kwargs.pop('callbac... | def password_attributes_max_retry(self, **kwargs) | Auto Generated Code | 1.542816 | 1.385742 | 1.11335 |
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
max_lockout_duration = ET.SubElement(password_attributes, "max-lockout-duration")
max_lockout_duration.text = kwargs.pop('max_lockout_durati... | def password_attributes_max_lockout_duration(self, **kwargs) | Auto Generated Code | 1.453532 | 1.332513 | 1.09082 |
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
character_restriction = ET.SubElement(password_attributes, "character-restriction")
upper = ET.SubElement(character_restriction, "upper")
... | def password_attributes_character_restriction_upper(self, **kwargs) | Auto Generated Code | 1.463579 | 1.348272 | 1.085522 |
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
character_restriction = ET.SubElement(password_attributes, "character-restriction")
lower = ET.SubElement(character_restriction, "lower")
... | def password_attributes_character_restriction_lower(self, **kwargs) | Auto Generated Code | 1.4743 | 1.353195 | 1.089496 |
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
character_restriction = ET.SubElement(password_attributes, "character-restriction")
numeric = ET.SubElement(character_restriction, "numeric"... | def password_attributes_character_restriction_numeric(self, **kwargs) | Auto Generated Code | 1.475411 | 1.340231 | 1.100863 |
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
character_restriction = ET.SubElement(password_attributes, "character-restriction")
special_char = ET.SubElement(character_restriction, "spe... | def password_attributes_character_restriction_special_char(self, **kwargs) | Auto Generated Code | 1.418667 | 1.330717 | 1.066092 |
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
admin_lockout_enable = ET.SubElement(password_attributes, "admin-lockout-enable")
callback = kwargs.pop('callback', self._callback)
... | def password_attributes_admin_lockout_enable(self, **kwargs) | Auto Generated Code | 1.507587 | 1.423247 | 1.059259 |
config = ET.Element("config")
banner = ET.SubElement(config, "banner", xmlns="urn:brocade.com:mgmt:brocade-aaa")
login = ET.SubElement(banner, "login")
login.text = kwargs.pop('login')
callback = kwargs.pop('callback', self._callback)
return callback(config) | def banner_login(self, **kwargs) | Auto Generated Code | 1.904298 | 1.502019 | 1.267826 |
config = ET.Element("config")
banner = ET.SubElement(config, "banner", xmlns="urn:brocade.com:mgmt:brocade-aaa")
motd = ET.SubElement(banner, "motd")
motd.text = kwargs.pop('motd')
callback = kwargs.pop('callback', self._callback)
return callback(config) | def banner_motd(self, **kwargs) | Auto Generated Code | 1.79624 | 1.487757 | 1.207348 |
config = ET.Element("config")
banner = ET.SubElement(config, "banner", xmlns="urn:brocade.com:mgmt:brocade-aaa")
incoming = ET.SubElement(banner, "incoming")
incoming.text = kwargs.pop('incoming')
callback = kwargs.pop('callback', self._callback)
return callback... | def banner_incoming(self, **kwargs) | Auto Generated Code | 2.02932 | 1.586394 | 1.279203 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index = ET.SubElement(rule, "index")
index.text = kwargs.pop('index')
callback = kwargs.pop('callback', self._callback)
return callback(config) | def rule_index(self, **kwargs) | Auto Generated Code | 1.790691 | 1.47629 | 1.212967 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
action = ET.SubElement(rule, "action")
action.text = kwargs.pop('action')
... | def rule_action(self, **kwargs) | Auto Generated Code | 1.839934 | 1.571934 | 1.170491 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
operation = ET.SubElement(rule, "operation")
operation.text = kwargs.pop('op... | def rule_operation(self, **kwargs) | Auto Generated Code | 1.789917 | 1.562325 | 1.145675 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
role = ET.SubElement(rule, "role")
role.text = kwargs.pop('role')
c... | def rule_role(self, **kwargs) | Auto Generated Code | 1.786241 | 1.571977 | 1.136302 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_container_cmds_enumList(self, **kwargs) | Auto Generated Code | 1.442928 | 1.372558 | 1.05127 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_d_interface_fcoe_leaf_interface_fcoe_leaf(self, **kwargs) | Auto Generated Code | 1.344682 | 1.298124 | 1.035865 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_e_interface_te_leaf_interface_tengigabitethernet_leaf(self, **kwargs) | Auto Generated Code | 1.39511 | 1.334678 | 1.045278 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_h_interface_ge_leaf_interface_gigabitethernet_leaf(self, **kwargs) | Auto Generated Code | 1.411748 | 1.337946 | 1.055161 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_j_interface_pc_leaf_interface_port_channel_leaf(self, **kwargs) | Auto Generated Code | 1.446517 | 1.382573 | 1.04625 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_l_interface_vlan_leaf_interface_vlan_leaf(self, **kwargs) | Auto Generated Code | 1.412031 | 1.367407 | 1.032635 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_m_interface_management_leaf_interface_management_leaf(self, **kwargs) | Auto Generated Code | 1.419451 | 1.363815 | 1.040794 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_o_interface_loopback_leaf_interface_loopback_leaf(self, **kwargs) | Auto Generated Code | 1.381365 | 1.331625 | 1.037353 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_q_interface_ve_leaf_interface_ve_leaf(self, **kwargs) | Auto Generated Code | 1.38216 | 1.338492 | 1.032625 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_s_interface_fc_leaf_interface_fibrechannel_leaf(self, **kwargs) | Auto Generated Code | 1.393766 | 1.343392 | 1.037498 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_u_interface_fe_leaf_interface_fortygigabitethernet_leaf(self, **kwargs) | Auto Generated Code | 1.406107 | 1.335281 | 1.053042 |
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
command = ET.SubElement(rule, "command")
cmdlist = ET.SubElement(command, "c... | def rule_command_cmdlist_interface_w_interface_he_leaf_interface_hundredgigabitethernet_leaf(self, **kwargs) | Auto Generated Code | 1.424332 | 1.345562 | 1.058541 |
config = ET.Element("config")
root_sa = ET.SubElement(config, "root-sa", xmlns="urn:brocade.com:mgmt:brocade-aaa")
root = ET.SubElement(root_sa, "root")
enable = ET.SubElement(root, "enable")
callback = kwargs.pop('callback', self._callback)
return callback(conf... | def root_sa_root_enable(self, **kwargs) | Auto Generated Code | 1.625458 | 1.439878 | 1.128886 |
config = ET.Element("config")
root_sa = ET.SubElement(config, "root-sa", xmlns="urn:brocade.com:mgmt:brocade-aaa")
root = ET.SubElement(root_sa, "root")
access = ET.SubElement(root, "access")
access.text = kwargs.pop('access')
callback = kwargs.pop('callback', s... | def root_sa_root_access(self, **kwargs) | Auto Generated Code | 1.655852 | 1.453604 | 1.139136 |
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
alias = ET.SubElement(alias_config, "alias")
name = ET.SubElement(alias, "name")
name.text = kwargs.pop('name')
callback = kwargs.pop('ca... | def alias_config_alias_name(self, **kwargs) | Auto Generated Code | 1.494622 | 1.367879 | 1.092657 |
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
alias = ET.SubElement(alias_config, "alias")
name_key = ET.SubElement(alias, "name")
name_key.text = kwargs.pop('name')
expansion = ET.Sub... | def alias_config_alias_expansion(self, **kwargs) | Auto Generated Code | 1.587298 | 1.40357 | 1.1309 |
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
user = ET.SubElement(alias_config, "user")
name = ET.SubElement(user, "name")
name.text = kwargs.pop('name')
callback = kwargs.pop('callb... | def alias_config_user_name(self, **kwargs) | Auto Generated Code | 1.487781 | 1.367191 | 1.088203 |
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
user = ET.SubElement(alias_config, "user")
name_key = ET.SubElement(user, "name")
name_key.text = kwargs.pop('name')
alias = ET.SubElement... | def alias_config_user_alias_name(self, **kwargs) | Auto Generated Code | 1.411385 | 1.315835 | 1.072615 |
name = kwargs.pop('name')
name_args = dict(name=name)
method_name = 'nsx_controller_name'
method_class = self._brocade_tunnels
nsxcontroller_attr = getattr(method_class, method_name)
config = nsxcontroller_attr(**name_args)
if kwargs.pop('get', False):
... | def nsx_controller_name(self, **kwargs) | Get/Set nsx controller name
Args:
name: (str) : Name of the nsx controller
get (bool) : Get nsx controller config(True,False)
callback (function): A function executed upon completion of the
method.
Returns:
Return value of `callback`.
... | 4.252874 | 4.502353 | 0.944589 |
name = kwargs.pop('name')
ip_addr = str((kwargs.pop('ip_addr', None)))
nsxipaddress = ip_interface(unicode(ip_addr))
if nsxipaddress.version != 4:
raise ValueError('NSX Controller ip must be IPV4')
ip_args = dict(name=name, address=ip_addr)
method_na... | def set_nsxcontroller_ip(self, **kwargs) | Set nsx-controller IP
Args:
IP (str): IPV4 address.
callback (function): A function executed upon completion of the
method.
Returns:
Return value of `callback`.
Raises:
None | 5.038128 | 5.299262 | 0.950723 |
name = kwargs.pop('name')
name_args = dict(name=name)
method_name = 'nsx_controller_activate'
method_class = self._brocade_tunnels
nsxcontroller_attr = getattr(method_class, method_name)
config = nsxcontroller_attr(**name_args)
output = self._callback(con... | def activate_nsxcontroller(self, **kwargs) | Activate NSX Controller
Args:
name (str): nsxcontroller name
callback (function): A function executed upon completion of the
method.
Returns:
Return value of `callback`.
Raises:
None | 5.129036 | 6.072526 | 0.84463 |
name = kwargs.pop('name')
port = str(kwargs.pop('port'))
port_args = dict(name=name, port=port)
method_name = 'nsx_controller_connection_addr_port'
method_class = self._brocade_tunnels
nsxcontroller_attr = getattr(method_class, method_name)
config = nsxco... | def set_nsxcontroller_port(self, **kwargs) | Set Nsx Controller pot on the switch
Args:
port (int): 1 to 65535.
callback (function): A function executed upon completion of the
method.
Returns:
Return value of `callback`.
Raises:
None | 4.8208 | 5.304798 | 0.908762 |
urn = "urn:brocade.com:mgmt:brocade-tunnels"
config = ET.Element("config")
ET.SubElement(config, "nsx-controller", xmlns=urn)
output = self._callback(config, handler='get_config')
result = {}
element = ET.fromstring(str(output))
for controller in element.... | def get_nsx_controller(self) | Get/Set nsx controller name
Args:
name: (str) : Name of the nsx-controller
callback (function): A function executed upon completion of the
method.
Returns: Return dictionary containing nsx-controller information.
Returns blank dict if no ns... | 2.410216 | 2.383292 | 1.011297 |
app = getattr(sender, 'flask_app', None)
if app:
app.extensions['invenio-celery'].load_entry_points() | def celery_module_imports(sender, signal=None, **kwargs) | Load shared celery tasks. | 4.918017 | 4.640882 | 1.059716 |
self.init_config(app)
self.celery = FlaskCeleryExt(app).celery
self.entry_point_group = entry_point_group
app.extensions['invenio-celery'] = self | def init_app(self, app, entry_point_group='invenio_celery.tasks',
**kwargs) | Initialize application object. | 2.807477 | 2.778498 | 1.01043 |
if self.entry_point_group:
task_packages = {}
for item in pkg_resources.iter_entry_points(
group=self.entry_point_group):
# Celery 4.2 requires autodiscover to be called with
# related_name for Python 2.7.
try:
... | def load_entry_points(self) | Load tasks from entry points. | 3.589645 | 3.465171 | 1.035921 |
res = self.celery.control.inspect().active_queues() or dict()
return [result.get('name') for host in res.values() for result in host] | def get_queues(self) | Return a list of current active Celery queues. | 6.449646 | 4.930628 | 1.308078 |
current_tasks = self.celery.control.inspect().active() or dict()
return [
task.get('id') for host in current_tasks.values() for task in host] | def get_active_tasks(self) | Return a list of UUIDs of active tasks. | 6.146726 | 4.864425 | 1.263608 |
for queue in active_queues:
self.disable_queue(queue)
while self.get_active_tasks():
time.sleep(sleep_time) | def suspend_queues(self, active_queues, sleep_time=10.0) | Suspend Celery queues and wait for running tasks to complete. | 3.800495 | 3.248829 | 1.169804 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
input = ET.SubElement(fwdl_status, "input")
fwdl_tid = ET.SubElement(input, "fwdl-tid")
fwdl_tid.text = kwargs.pop('fwdl_tid')
callback = kwargs.pop('callback', se... | def fwdl_status_input_fwdl_tid(self, **kwargs) | Auto Generated Code | 1.491509 | 1.321978 | 1.12824 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
number_of_entries = ET.SubElement(output, "number-of-entries")
number_of_entries.text = kwargs.pop('number_of_entries')
... | def fwdl_status_output_number_of_entries(self, **kwargs) | Auto Generated Code | 1.430815 | 1.289791 | 1.109339 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_state = ET.SubElement(output, "fwdl-state")
fwdl_state.text = kwargs.pop('fwdl_state')
callback = kwargs.pop('ca... | def fwdl_status_output_fwdl_state(self, **kwargs) | Auto Generated Code | 1.464732 | 1.299658 | 1.127013 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
index = ET.SubElement(fwdl_entries, "index")
index.text = kwargs.... | def fwdl_status_output_fwdl_entries_index(self, **kwargs) | Auto Generated Code | 1.385818 | 1.284796 | 1.078629 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
message_id = ET.SubElement(fwdl_entries, "message-id")
message_id... | def fwdl_status_output_fwdl_entries_message_id(self, **kwargs) | Auto Generated Code | 1.358826 | 1.286739 | 1.056023 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
date_and_time_info = ET.SubElement(fwdl_entries, "date-and-time-info")
... | def fwdl_status_output_fwdl_entries_date_and_time_info(self, **kwargs) | Auto Generated Code | 1.337069 | 1.241612 | 1.076881 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
message = ET.SubElement(fwdl_entries, "message")
message.text = k... | def fwdl_status_output_fwdl_entries_message(self, **kwargs) | Auto Generated Code | 1.479702 | 1.314609 | 1.125583 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
blade_slot = ET.SubElement(fwdl_entries, "blade-slot")
blade_slot... | def fwdl_status_output_fwdl_entries_blade_slot(self, **kwargs) | Auto Generated Code | 1.320583 | 1.272801 | 1.03754 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
blade_swbd = ET.SubElement(fwdl_entries, "blade-swbd")
blade_swbd... | def fwdl_status_output_fwdl_entries_blade_swbd(self, **kwargs) | Auto Generated Code | 1.335294 | 1.282019 | 1.041556 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
blade_name = ET.SubElement(fwdl_entries, "blade-name")
blade_name... | def fwdl_status_output_fwdl_entries_blade_name(self, **kwargs) | Auto Generated Code | 1.319322 | 1.272896 | 1.036472 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
blade_state = ET.SubElement(fwdl_entries, "blade-state")
blade_st... | def fwdl_status_output_fwdl_entries_blade_state(self, **kwargs) | Auto Generated Code | 1.327414 | 1.272758 | 1.042943 |
config = ET.Element("config")
fwdl_status = ET.Element("fwdl_status")
config = fwdl_status
output = ET.SubElement(fwdl_status, "output")
fwdl_entries = ET.SubElement(output, "fwdl-entries")
blade_app = ET.SubElement(fwdl_entries, "blade-app")
blade_app.te... | def fwdl_status_output_fwdl_entries_blade_app(self, **kwargs) | Auto Generated Code | 1.350988 | 1.28848 | 1.048513 |
config = ET.Element("config")
activate_status = ET.Element("activate_status")
config = activate_status
input = ET.SubElement(activate_status, "input")
rbridge_id = ET.SubElement(input, "rbridge-id")
rbridge_id.text = kwargs.pop('rbridge_id')
callback = k... | def activate_status_input_rbridge_id(self, **kwargs) | Auto Generated Code | 1.456913 | 1.331799 | 1.093943 |
config = ET.Element("config")
activate_status = ET.Element("activate_status")
config = activate_status
output = ET.SubElement(activate_status, "output")
overall_status = ET.SubElement(output, "overall-status")
overall_status.text = kwargs.pop('overall_status')
... | def activate_status_output_overall_status(self, **kwargs) | Auto Generated Code | 1.587134 | 1.345794 | 1.179329 |
config = ET.Element("config")
activate_status = ET.Element("activate_status")
config = activate_status
output = ET.SubElement(activate_status, "output")
overall_error_msg = ET.SubElement(output, "overall-error-msg")
overall_error_msg.text = kwargs.pop('overall_er... | def activate_status_output_overall_error_msg(self, **kwargs) | Auto Generated Code | 1.560268 | 1.304009 | 1.196516 |
config = ET.Element("config")
activate_status = ET.Element("activate_status")
config = activate_status
output = ET.SubElement(activate_status, "output")
activate_entries = ET.SubElement(output, "activate-entries")
rbridge_id = ET.SubElement(activate_entries, "rbr... | def activate_status_output_activate_entries_rbridge_id(self, **kwargs) | Auto Generated Code | 1.422073 | 1.339016 | 1.062029 |
config = ET.Element("config")
activate_status = ET.Element("activate_status")
config = activate_status
output = ET.SubElement(activate_status, "output")
activate_entries = ET.SubElement(output, "activate-entries")
status = ET.SubElement(activate_entries, "status"... | def activate_status_output_activate_entries_status(self, **kwargs) | Auto Generated Code | 1.444332 | 1.357847 | 1.063693 |
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_user(self, **kwargs) | Auto Generated Code | 1.346692 | 1.269489 | 1.060814 |
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_password(self, **kwargs) | Auto Generated Code | 1.370556 | 1.289451 | 1.062899 |
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_host(self, **kwargs) | Auto Generated Code | 1.357223 | 1.277554 | 1.062361 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.