code string | signature string | docstring string | loss_without_docstring float64 | loss_with_docstring float64 | factor float64 |
|---|---|---|---|---|---|
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
map = ET.SubElement(qos, "map")
cos_traffic_class = ET.SubElement(map, "cos-traffic-class")
name_key = ET.SubElement(cos_traffic_class, "name")
name_key.tex... | def qos_map_cos_traffic_class_cos2(self, **kwargs) | Auto Generated Code | 1.338731 | 1.279698 | 1.04613 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
map = ET.SubElement(qos, "map")
cos_traffic_class = ET.SubElement(map, "cos-traffic-class")
name_key = ET.SubElement(cos_traffic_class, "name")
name_key.tex... | def qos_map_cos_traffic_class_cos3(self, **kwargs) | Auto Generated Code | 1.334587 | 1.276497 | 1.045507 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
map = ET.SubElement(qos, "map")
cos_traffic_class = ET.SubElement(map, "cos-traffic-class")
name_key = ET.SubElement(cos_traffic_class, "name")
name_key.tex... | def qos_map_cos_traffic_class_cos4(self, **kwargs) | Auto Generated Code | 1.328502 | 1.269982 | 1.04608 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
map = ET.SubElement(qos, "map")
cos_traffic_class = ET.SubElement(map, "cos-traffic-class")
name_key = ET.SubElement(cos_traffic_class, "name")
name_key.tex... | def qos_map_cos_traffic_class_cos5(self, **kwargs) | Auto Generated Code | 1.338131 | 1.274378 | 1.050027 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
map = ET.SubElement(qos, "map")
cos_traffic_class = ET.SubElement(map, "cos-traffic-class")
name_key = ET.SubElement(cos_traffic_class, "name")
name_key.tex... | def qos_map_cos_traffic_class_cos6(self, **kwargs) | Auto Generated Code | 1.334572 | 1.270482 | 1.050446 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
map = ET.SubElement(qos, "map")
cos_traffic_class = ET.SubElement(map, "cos-traffic-class")
name_key = ET.SubElement(cos_traffic_class, "name")
name_key.tex... | def qos_map_cos_traffic_class_cos7(self, **kwargs) | Auto Generated Code | 1.343846 | 1.280827 | 1.049201 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
red_profile = ET.SubElement(qos, "red-profile")
profile_id = ET.SubElement(red_profile, "profile-id")
profile_id.text = kwargs.pop('profile_id')
callback =... | def qos_red_profile_profile_id(self, **kwargs) | Auto Generated Code | 1.344692 | 1.258644 | 1.068366 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
red_profile = ET.SubElement(qos, "red-profile")
profile_id_key = ET.SubElement(red_profile, "profile-id")
profile_id_key.text = kwargs.pop('profile_id')
min... | def qos_red_profile_min_threshold(self, **kwargs) | Auto Generated Code | 1.347915 | 1.272962 | 1.058881 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
red_profile = ET.SubElement(qos, "red-profile")
profile_id_key = ET.SubElement(red_profile, "profile-id")
profile_id_key.text = kwargs.pop('profile_id')
max... | def qos_red_profile_max_threshold(self, **kwargs) | Auto Generated Code | 1.336858 | 1.271712 | 1.051227 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
red_profile = ET.SubElement(qos, "red-profile")
profile_id_key = ET.SubElement(red_profile, "profile-id")
profile_id_key.text = kwargs.pop('profile_id')
dro... | def qos_red_profile_drop_probability(self, **kwargs) | Auto Generated Code | 1.350446 | 1.28267 | 1.05284 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
multicast = ET.SubElement(queue, "multicast")
scheduler = ET.SubElement(multicast, "scheduler")
dwrr = ET.SubElement(sch... | def qos_queue_multicast_scheduler_dwrr_dwrr_traffic_class0(self, **kwargs) | Auto Generated Code | 1.217789 | 1.186092 | 1.026724 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
priority_num... | def qos_queue_scheduler_strict_priority_priority_number(self, **kwargs) | Auto Generated Code | 1.286805 | 1.247346 | 1.031635 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
scheduler_ty... | def qos_queue_scheduler_strict_priority_scheduler_type(self, **kwargs) | Auto Generated Code | 1.292894 | 1.2556 | 1.029702 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
dwrr_traffic... | def qos_queue_scheduler_strict_priority_dwrr_traffic_class0(self, **kwargs) | Auto Generated Code | 1.239108 | 1.201674 | 1.031152 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
dwrr_traffic... | def qos_queue_scheduler_strict_priority_dwrr_traffic_class1(self, **kwargs) | Auto Generated Code | 1.235477 | 1.202462 | 1.027456 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
dwrr_traffic... | def qos_queue_scheduler_strict_priority_dwrr_traffic_class2(self, **kwargs) | Auto Generated Code | 1.235819 | 1.203 | 1.02728 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
dwrr_traffic... | def qos_queue_scheduler_strict_priority_dwrr_traffic_class3(self, **kwargs) | Auto Generated Code | 1.23693 | 1.203792 | 1.027528 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
dwrr_traffic... | def qos_queue_scheduler_strict_priority_dwrr_traffic_class4(self, **kwargs) | Auto Generated Code | 1.235595 | 1.202196 | 1.027781 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
dwrr_traffic... | def qos_queue_scheduler_strict_priority_dwrr_traffic_class5(self, **kwargs) | Auto Generated Code | 1.238116 | 1.200724 | 1.031141 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
dwrr_traffic... | def qos_queue_scheduler_strict_priority_dwrr_traffic_class6(self, **kwargs) | Auto Generated Code | 1.236398 | 1.202126 | 1.028509 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
queue = ET.SubElement(qos, "queue")
scheduler = ET.SubElement(queue, "scheduler")
strict_priority = ET.SubElement(scheduler, "strict-priority")
dwrr_traffic... | def qos_queue_scheduler_strict_priority_dwrr_traffic_class_last(self, **kwargs) | Auto Generated Code | 1.241555 | 1.215313 | 1.021593 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
threshold = ET.SubElement(multicast, "threshold")
traffic_clas... | def qos_rcv_queue_multicast_threshold_traffic_class0(self, **kwargs) | Auto Generated Code | 1.24658 | 1.225278 | 1.017385 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
threshold = ET.SubElement(multicast, "threshold")
traffic_clas... | def qos_rcv_queue_multicast_threshold_traffic_class1(self, **kwargs) | Auto Generated Code | 1.243448 | 1.220324 | 1.018949 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
threshold = ET.SubElement(multicast, "threshold")
traffic_clas... | def qos_rcv_queue_multicast_threshold_traffic_class2(self, **kwargs) | Auto Generated Code | 1.241571 | 1.219848 | 1.017808 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
threshold = ET.SubElement(multicast, "threshold")
traffic_clas... | def qos_rcv_queue_multicast_threshold_traffic_class3(self, **kwargs) | Auto Generated Code | 1.243419 | 1.217041 | 1.021674 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
threshold = ET.SubElement(multicast, "threshold")
traffic_clas... | def qos_rcv_queue_multicast_threshold_traffic_class4(self, **kwargs) | Auto Generated Code | 1.245976 | 1.217443 | 1.023437 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
threshold = ET.SubElement(multicast, "threshold")
traffic_clas... | def qos_rcv_queue_multicast_threshold_traffic_class5(self, **kwargs) | Auto Generated Code | 1.238804 | 1.211331 | 1.02268 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
threshold = ET.SubElement(multicast, "threshold")
traffic_clas... | def qos_rcv_queue_multicast_threshold_traffic_class6(self, **kwargs) | Auto Generated Code | 1.24306 | 1.211909 | 1.025705 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
threshold = ET.SubElement(multicast, "threshold")
traffic_clas... | def qos_rcv_queue_multicast_threshold_traffic_class7(self, **kwargs) | Auto Generated Code | 1.240657 | 1.213647 | 1.022255 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
rate_limit = ET.SubElement(multicast, "rate-limit")
limit = ET... | def qos_rcv_queue_multicast_rate_limit_limit(self, **kwargs) | Auto Generated Code | 1.316619 | 1.266424 | 1.039635 |
config = ET.Element("config")
qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos")
rcv_queue = ET.SubElement(qos, "rcv-queue")
multicast = ET.SubElement(rcv_queue, "multicast")
rate_limit = ET.SubElement(multicast, "rate-limit")
burst = ET... | def qos_rcv_queue_multicast_rate_limit_burst(self, **kwargs) | Auto Generated Code | 1.296878 | 1.258638 | 1.030382 |
config = ET.Element("config")
nas = ET.SubElement(config, "nas", xmlns="urn:brocade.com:mgmt:brocade-qos")
auto_qos = ET.SubElement(nas, "auto-qos")
set = ET.SubElement(auto_qos, "set")
cos = ET.SubElement(set, "cos")
cos.text = kwargs.pop('cos')
callbac... | def nas_auto_qos_set_cos(self, **kwargs) | Auto Generated Code | 1.435501 | 1.330445 | 1.078963 |
config = ET.Element("config")
nas = ET.SubElement(config, "nas", xmlns="urn:brocade.com:mgmt:brocade-qos")
auto_qos = ET.SubElement(nas, "auto-qos")
set = ET.SubElement(auto_qos, "set")
dscp = ET.SubElement(set, "dscp")
dscp.text = kwargs.pop('dscp')
cal... | def nas_auto_qos_set_dscp(self, **kwargs) | Auto Generated Code | 1.404999 | 1.333637 | 1.053509 |
config = ET.Element("config")
nas = ET.SubElement(config, "nas", xmlns="urn:brocade.com:mgmt:brocade-qos")
server_ip = ET.SubElement(nas, "server-ip")
server_ip = ET.SubElement(server_ip, "server-ip")
server_ip.text = kwargs.pop('server_ip')
callback = kwargs.po... | def nas_server_ip_server_ip(self, **kwargs) | Auto Generated Code | 1.492705 | 1.423699 | 1.04847 |
config = ET.Element("config")
nas = ET.SubElement(config, "nas", xmlns="urn:brocade.com:mgmt:brocade-qos")
server_ip = ET.SubElement(nas, "server-ip")
server_ip_key = ET.SubElement(server_ip, "server-ip")
server_ip_key.text = kwargs.pop('server_ip')
vrf = ET.SubE... | def nas_server_ip_vrf_vrf_name(self, **kwargs) | Auto Generated Code | 1.491682 | 1.400167 | 1.06536 |
config = ET.Element("config")
nas = ET.SubElement(config, "nas", xmlns="urn:brocade.com:mgmt:brocade-qos")
server_ip = ET.SubElement(nas, "server-ip")
server_ip_key = ET.SubElement(server_ip, "server-ip")
server_ip_key.text = kwargs.pop('server_ip')
vlan = ET.Sub... | def nas_server_ip_vlan_vlan_number(self, **kwargs) | Auto Generated Code | 1.448483 | 1.368059 | 1.058787 |
config = ET.Element("config")
ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list")
ip = ET.SubElement(ip_acl, "ip")
access_list = ET.SubElement(ip, "access-list")
standard = ET.SubElement(access_list, "standard")
name = ET... | def ip_acl_ip_access_list_standard_name(self, **kwargs) | Auto Generated Code | 1.292654 | 1.259843 | 1.026044 |
config = ET.Element("config")
ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list")
ip = ET.SubElement(ip_acl, "ip")
access_list = ET.SubElement(ip, "access-list")
standard = ET.SubElement(access_list, "standard")
name_key ... | def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_seq_id(self, **kwargs) | Auto Generated Code | 1.256451 | 1.220764 | 1.029234 |
config = ET.Element("config")
ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list")
ip = ET.SubElement(ip_acl, "ip")
access_list = ET.SubElement(ip, "access-list")
standard = ET.SubElement(access_list, "standard")
name_key ... | def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_action(self, **kwargs) | Auto Generated Code | 1.279806 | 1.250263 | 1.02363 |
config = ET.Element("config")
ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list")
ip = ET.SubElement(ip_acl, "ip")
access_list = ET.SubElement(ip, "access-list")
extended = ET.SubElement(access_list, "extended")
name = ET... | def ip_acl_ip_access_list_extended_name(self, **kwargs) | Auto Generated Code | 1.309215 | 1.27309 | 1.028376 |
config = ET.Element("config")
ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list")
ip = ET.SubElement(ip_acl, "ip")
access_list = ET.SubElement(ip, "access-list")
extended = ET.SubElement(access_list, "extended")
name_key ... | def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_seq_id(self, **kwargs) | Auto Generated Code | 1.253438 | 1.215829 | 1.030932 |
config = ET.Element("config")
ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list")
ip = ET.SubElement(ip_acl, "ip")
access_list = ET.SubElement(ip, "access-list")
extended = ET.SubElement(access_list, "extended")
name_key ... | def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_action(self, **kwargs) | Auto Generated Code | 1.279692 | 1.253958 | 1.020522 |
is_get_config = kwargs.pop('get', False)
delete = kwargs.pop('delete', False)
rbridge_id = kwargs.pop('rbridge_id')
callback = kwargs.pop('callback', self._callback)
rid_args = dict(rbridge_id=rbridge_id)
rid = getattr(self._rbridge,
'rbridg... | def maintenance_mode(self, **kwargs) | Configures maintenance mode on the device
Args:
rbridge_id (str): The rbridge ID of the device on which
Maintenance mode
will be configured in a VCS fabric.
get (bool): Get config instead of editing config. (True, False)
callback (function): A fu... | 2.905184 | 2.628323 | 1.105338 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
raslog = ET.SubElement(logging, "raslog")
message = ET.SubElement(raslog, "message")
msgId = ET.SubElement(message, "msgId")
msgId = ET.SubElement(m... | def logging_raslog_message_msgId_msgId(self, **kwargs) | Auto Generated Code | 1.42823 | 1.312434 | 1.08823 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
raslog = ET.SubElement(logging, "raslog")
message = ET.SubElement(raslog, "message")
msgId = ET.SubElement(message, "msgId")
msgId_key = ET.SubEleme... | def logging_raslog_message_msgId_suppress(self, **kwargs) | Auto Generated Code | 1.47339 | 1.335843 | 1.102966 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
raslog = ET.SubElement(logging, "raslog")
module = ET.SubElement(raslog, "module")
modId = ET.SubElement(module, "modId")
modId = ET.SubElement(modI... | def logging_raslog_module_modId_modId(self, **kwargs) | Auto Generated Code | 1.378179 | 1.290036 | 1.068326 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
raslog = ET.SubElement(logging, "raslog")
console = ET.SubElement(raslog, "console")
console.text = kwargs.pop('console')
callback = kwargs.pop('ca... | def logging_raslog_console(self, **kwargs) | Auto Generated Code | 1.812434 | 1.411933 | 1.283654 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
auditlog = ET.SubElement(logging, "auditlog")
clss = ET.SubElement(auditlog, "class")
clss = ET.SubElement(clss, "class")
clss.text = kwargs.pop('cl... | def logging_auditlog_clss_clss(self, **kwargs) | Auto Generated Code | 1.635332 | 1.534636 | 1.065616 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
syslog_facility = ET.SubElement(logging, "syslog-facility")
local = ET.SubElement(syslog_facility, "local")
local.text = kwargs.pop('local')
callba... | def logging_syslog_facility_local(self, **kwargs) | Auto Generated Code | 1.672815 | 1.459907 | 1.145836 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
syslog_client = ET.SubElement(logging, "syslog-client")
localip = ET.SubElement(syslog_client, "localip")
localip.text = kwargs.pop('localip')
call... | def logging_syslog_client_localip(self, **kwargs) | Auto Generated Code | 1.498365 | 1.376562 | 1.088484 |
config = ET.Element("config")
system = ET.SubElement(config, "system", xmlns="urn:brocade.com:mgmt:brocade-ras")
switch_attributes = ET.SubElement(system, "switch-attributes")
rbridge_id = ET.SubElement(switch_attributes, "rbridge-id")
rbridge_id = ET.SubElement(rbridge_... | def system_switch_attributes_rbridge_id_rbridge_id(self, **kwargs) | Auto Generated Code | 1.369273 | 1.313347 | 1.042582 |
config = ET.Element("config")
system = ET.SubElement(config, "system", xmlns="urn:brocade.com:mgmt:brocade-ras")
switch_attributes = ET.SubElement(system, "switch-attributes")
rbridge_id = ET.SubElement(switch_attributes, "rbridge-id")
rbridge_id_key = ET.SubElement(rbri... | def system_switch_attributes_rbridge_id_chassis_name(self, **kwargs) | Auto Generated Code | 1.307316 | 1.255844 | 1.040986 |
config = ET.Element("config")
system = ET.SubElement(config, "system", xmlns="urn:brocade.com:mgmt:brocade-ras")
switch_attributes = ET.SubElement(system, "switch-attributes")
rbridge_id = ET.SubElement(switch_attributes, "rbridge-id")
rbridge_id_key = ET.SubElement(rbri... | def system_switch_attributes_rbridge_id_host_name(self, **kwargs) | Auto Generated Code | 1.312702 | 1.264735 | 1.037927 |
config = ET.Element("config")
system = ET.SubElement(config, "system", xmlns="urn:brocade.com:mgmt:brocade-ras")
switch_attributes = ET.SubElement(system, "switch-attributes")
chassis_name = ET.SubElement(switch_attributes, "chassis-name")
chassis_name.text = kwargs.pop(... | def system_switch_attributes_chassis_name(self, **kwargs) | Auto Generated Code | 1.4433 | 1.360399 | 1.060938 |
config = ET.Element("config")
system = ET.SubElement(config, "system", xmlns="urn:brocade.com:mgmt:brocade-ras")
switch_attributes = ET.SubElement(system, "switch-attributes")
host_name = ET.SubElement(switch_attributes, "host-name")
host_name.text = kwargs.pop('host_nam... | def system_switch_attributes_host_name(self, **kwargs) | Auto Generated Code | 1.463545 | 1.391473 | 1.051796 |
config = ET.Element("config")
bna_config_cmd = ET.Element("bna_config_cmd")
config = bna_config_cmd
input = ET.SubElement(bna_config_cmd, "input")
src = ET.SubElement(input, "src")
src.text = kwargs.pop('src')
callback = kwargs.pop('callback', self._call... | def bna_config_cmd_input_src(self, **kwargs) | Auto Generated Code | 1.60004 | 1.337591 | 1.196211 |
config = ET.Element("config")
bna_config_cmd = ET.Element("bna_config_cmd")
config = bna_config_cmd
input = ET.SubElement(bna_config_cmd, "input")
dest = ET.SubElement(input, "dest")
dest.text = kwargs.pop('dest')
callback = kwargs.pop('callback', self._... | def bna_config_cmd_input_dest(self, **kwargs) | Auto Generated Code | 1.648993 | 1.398087 | 1.179464 |
config = ET.Element("config")
bna_config_cmd = ET.Element("bna_config_cmd")
config = bna_config_cmd
output = ET.SubElement(bna_config_cmd, "output")
session_id = ET.SubElement(output, "session-id")
session_id.text = kwargs.pop('session_id')
callback = kw... | def bna_config_cmd_output_session_id(self, **kwargs) | Auto Generated Code | 1.464243 | 1.329624 | 1.101246 |
config = ET.Element("config")
bna_config_cmd = ET.Element("bna_config_cmd")
config = bna_config_cmd
output = ET.SubElement(bna_config_cmd, "output")
status = ET.SubElement(output, "status")
status.text = kwargs.pop('status')
callback = kwargs.pop('callba... | def bna_config_cmd_output_status(self, **kwargs) | Auto Generated Code | 1.580124 | 1.382507 | 1.142941 |
config = ET.Element("config")
bna_config_cmd = ET.Element("bna_config_cmd")
config = bna_config_cmd
output = ET.SubElement(bna_config_cmd, "output")
status_string = ET.SubElement(output, "status-string")
status_string.text = kwargs.pop('status_string')
c... | def bna_config_cmd_output_status_string(self, **kwargs) | Auto Generated Code | 1.574596 | 1.388847 | 1.133744 |
config = ET.Element("config")
bna_config_cmd_status = ET.Element("bna_config_cmd_status")
config = bna_config_cmd_status
input = ET.SubElement(bna_config_cmd_status, "input")
session_id = ET.SubElement(input, "session-id")
session_id.text = kwargs.pop('session_id... | def bna_config_cmd_status_input_session_id(self, **kwargs) | Auto Generated Code | 1.378005 | 1.265215 | 1.089146 |
config = ET.Element("config")
bna_config_cmd_status = ET.Element("bna_config_cmd_status")
config = bna_config_cmd_status
output = ET.SubElement(bna_config_cmd_status, "output")
status = ET.SubElement(output, "status")
status.text = kwargs.pop('status')
c... | def bna_config_cmd_status_output_status(self, **kwargs) | Auto Generated Code | 1.438022 | 1.315364 | 1.09325 |
config = ET.Element("config")
bna_config_cmd_status = ET.Element("bna_config_cmd_status")
config = bna_config_cmd_status
output = ET.SubElement(bna_config_cmd_status, "output")
status_string = ET.SubElement(output, "status-string")
status_string.text = kwargs.pop... | def bna_config_cmd_status_output_status_string(self, **kwargs) | Auto Generated Code | 1.438273 | 1.317934 | 1.091309 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
autoupload_param = ET.SubElement(support, "autoupload-param")
hostip = ET.SubElement(autoupload_param, "hostip")
hostip.text = kwargs.pop('hostip')
... | def support_autoupload_param_hostip(self, **kwargs) | Auto Generated Code | 1.4697 | 1.35593 | 1.083905 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
autoupload_param = ET.SubElement(support, "autoupload-param")
username = ET.SubElement(autoupload_param, "username")
username.text = kwargs.pop('username')
... | def support_autoupload_param_username(self, **kwargs) | Auto Generated Code | 1.595184 | 1.383129 | 1.153316 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
autoupload_param = ET.SubElement(support, "autoupload-param")
directory = ET.SubElement(autoupload_param, "directory")
directory.text = kwargs.pop('director... | def support_autoupload_param_directory(self, **kwargs) | Auto Generated Code | 1.638916 | 1.417166 | 1.156475 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
autoupload_param = ET.SubElement(support, "autoupload-param")
protocol = ET.SubElement(autoupload_param, "protocol")
protocol.text = kwargs.pop('protocol')
... | def support_autoupload_param_protocol(self, **kwargs) | Auto Generated Code | 1.559489 | 1.383832 | 1.126935 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
autoupload_param = ET.SubElement(support, "autoupload-param")
password = ET.SubElement(autoupload_param, "password")
password.text = kwargs.pop('password')
... | def support_autoupload_param_password(self, **kwargs) | Auto Generated Code | 1.575562 | 1.386644 | 1.136241 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
support_param = ET.SubElement(support, "support-param")
hostip = ET.SubElement(support_param, "hostip")
hostip.text = kwargs.pop('hostip')
callback... | def support_support_param_hostip(self, **kwargs) | Auto Generated Code | 1.472353 | 1.360609 | 1.082128 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
support_param = ET.SubElement(support, "support-param")
username = ET.SubElement(support_param, "username")
username.text = kwargs.pop('username')
... | def support_support_param_username(self, **kwargs) | Auto Generated Code | 1.582557 | 1.376881 | 1.149378 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
support_param = ET.SubElement(support, "support-param")
directory = ET.SubElement(support_param, "directory")
directory.text = kwargs.pop('directory')
... | def support_support_param_directory(self, **kwargs) | Auto Generated Code | 1.681744 | 1.432889 | 1.173674 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
support_param = ET.SubElement(support, "support-param")
protocol = ET.SubElement(support_param, "protocol")
protocol.text = kwargs.pop('protocol')
... | def support_support_param_protocol(self, **kwargs) | Auto Generated Code | 1.579911 | 1.388912 | 1.137517 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
support_param = ET.SubElement(support, "support-param")
password = ET.SubElement(support_param, "password")
password.text = kwargs.pop('password')
... | def support_support_param_password(self, **kwargs) | Auto Generated Code | 1.552843 | 1.378199 | 1.126719 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
autoupload = ET.SubElement(support, "autoupload")
enable = ET.SubElement(autoupload, "enable")
callback = kwargs.pop('callback', self._callback)
re... | def support_autoupload_enable(self, **kwargs) | Auto Generated Code | 1.703196 | 1.432998 | 1.188555 |
config = ET.Element("config")
support = ET.SubElement(config, "support", xmlns="urn:brocade.com:mgmt:brocade-ras")
ffdc = ET.SubElement(support, "ffdc")
callback = kwargs.pop('callback', self._callback)
return callback(config) | def support_ffdc(self, **kwargs) | Auto Generated Code | 2.114944 | 1.706316 | 1.23948 |
config = ET.Element("config")
hide_intf_loopback_holder = ET.SubElement(config, "hide-intf-loopback-holder", xmlns="urn:brocade.com:mgmt:brocade-intf-loopback")
interface = ET.SubElement(hide_intf_loopback_holder, "interface")
loopback = ET.SubElement(interface, "loopback")
... | def hide_intf_loopback_holder_interface_loopback_id(self, **kwargs) | Auto Generated Code | 1.370055 | 1.309683 | 1.046096 |
config = ET.Element("config")
hide_intf_loopback_holder = ET.SubElement(config, "hide-intf-loopback-holder", xmlns="urn:brocade.com:mgmt:brocade-intf-loopback")
interface = ET.SubElement(hide_intf_loopback_holder, "interface")
loopback = ET.SubElement(interface, "loopback")
... | def hide_intf_loopback_holder_interface_loopback_vrf_forwarding(self, **kwargs) | Auto Generated Code | 1.396897 | 1.333987 | 1.047159 |
config = ET.Element("config")
hide_intf_loopback_holder = ET.SubElement(config, "hide-intf-loopback-holder", xmlns="urn:brocade.com:mgmt:brocade-intf-loopback")
interface = ET.SubElement(hide_intf_loopback_holder, "interface")
loopback = ET.SubElement(interface, "loopback")
... | def hide_intf_loopback_holder_interface_loopback_intf_loopback_shutdown(self, **kwargs) | Auto Generated Code | 1.365511 | 1.309075 | 1.043112 |
config = ET.Element("config")
hide_intf_loopback_holder = ET.SubElement(config, "hide-intf-loopback-holder", xmlns="urn:brocade.com:mgmt:brocade-intf-loopback")
interface = ET.SubElement(hide_intf_loopback_holder, "interface")
loopback = ET.SubElement(interface, "loopback")
... | def hide_intf_loopback_holder_interface_loopback_ip_ip_config_address_address(self, **kwargs) | Auto Generated Code | 1.345719 | 1.314037 | 1.02411 |
config = ET.Element("config")
hide_intf_loopback_holder = ET.SubElement(config, "hide-intf-loopback-holder", xmlns="urn:brocade.com:mgmt:brocade-intf-loopback")
interface = ET.SubElement(hide_intf_loopback_holder, "interface")
loopback = ET.SubElement(interface, "loopback")
... | def hide_intf_loopback_holder_interface_loopback_ipv6_ipv6_config_address_link_local_config_link_local_address(self, **kwargs) | Auto Generated Code | 1.336169 | 1.296547 | 1.030559 |
config = ET.Element("config")
hide_intf_loopback_holder = ET.SubElement(config, "hide-intf-loopback-holder", xmlns="urn:brocade.com:mgmt:brocade-intf-loopback")
interface = ET.SubElement(hide_intf_loopback_holder, "interface")
loopback = ET.SubElement(interface, "loopback")
... | def hide_intf_loopback_holder_interface_loopback_ipv6_ipv6_config_address_ipv6_address_address(self, **kwargs) | Auto Generated Code | 1.377597 | 1.331723 | 1.034447 |
table = []
namespace = 'urn:brocade.com:mgmt:brocade-mac-address-table'
request_mac_table = ET.Element('get-mac-address-table',
xmlns=namespace)
result = self._callback(request_mac_table, handler='get')
for entry in result.findall('... | def mac_table(self) | list[dict]: the MAC table of the device. | 2.152635 | 2.036525 | 1.057014 |
namespace = "urn:brocade.com:mgmt:brocade-firmware-ext"
request_ver = ET.Element("show-firmware-version", xmlns=namespace)
ver = self._callback(request_ver, handler='get')
return ver.find('.//*{%s}os-version' % namespace).text | def firmware_version(self) | Returns firmware version.
Args:
None
Returns:
Dictionary
Raises:
None | 6.818283 | 7.189856 | 0.94832 |
try:
if handler == 'get_config':
call = ET.tostring(call.getchildren()[0])
return self._mgr.get(filter=('subtree', call))
call = ET.tostring(call)
if handler == 'get':
call_element = xml_.to_ele(call)
r... | def _callback_main(self, call, handler='edit_config', target='running',
source='startup') | Callback for NETCONF calls.
Args:
call: An Element Tree element containing the XML of the NETCONF
call you intend to make to the device.
handler: Type of ncclient call to make.
get_config: NETCONF standard get config.
get: ncclient dispatc... | 2.668996 | 2.420112 | 1.10284 |
if self._auth_method is "userpass":
self._mgr = manager.connect(host=self._conn[0],
port=self._conn[1],
username=self._auth[0],
password=self._auth[1],
... | def reconnect(self) | Reconnect session with device.
Args:
None
Returns:
bool: True if reconnect succeeds, False if not.
Raises:
None | 2.398616 | 2.524549 | 0.950117 |
mac = kwargs.pop('mac_address')
results = [x for x in self.mac_table if x['mac_address'] == mac]
return results | def find_interface_by_mac(self, **kwargs) | Find the interface through which a MAC can be reached.
Args:
mac_address (str): A MAC address in 'xx:xx:xx:xx:xx:xx' format.
Returns:
list[dict]: a list of mac table data.
Raises:
KeyError: if `mac_address` is not specified.
Examples:
>... | 4.039617 | 5.566059 | 0.725759 |
prompt = name + (default and ' [%s]' % default or '')
prompt += name.endswith('?') and ' ' or ': '
while True:
try:
rv = raw_input(prompt)
except NameError:
rv = input(prompt)
if rv:
return rv
if default is not None:
retur... | def prompt(name, default=None) | Grab user input from command line.
:param name: prompt text
:param default: default value if no input provided. | 3.301853 | 3.432193 | 0.962024 |
prompt = name + (default and ' [%s]' % default or '')
prompt += name.endswith('?') and ' ' or ': '
while True:
rv = getpass.getpass(prompt)
if rv:
return rv
if default is not None:
return default | def password(name, default=None) | Grabs hidden (password) input from command line.
:param name: prompt text
:param default: default value if no input provided. | 3.769755 | 4.217054 | 0.893931 |
if not resolve:
resolve = lambda o: o.lower()
_choices = []
options = []
for choice in choices:
if isinstance(choice, string_type):
options.append(choice)
else:
options.append("%s [%s]" % (choice[1], choice[0]))
choice = choice[0]
... | def choose(name, choices, default=None, resolve=None, no_choice=('none',)) | Grabs user input from command line from set of provided choices.
:param name: prompt text
:param choices: list or tuple of available choices. Choices may be
single strings or (key, value) tuples.
:param default: default value if no input provided.
:param no_choice: acceptable list o... | 2.824699 | 2.827725 | 0.99893 |
# Check that at least one piece is provided.
if not sum(pieces.values()):
context = click.get_current_context()
raise BadParameter('No piece provided.', ctx=context, param_hint=[
'--{}'.format(label) for label in PIECE_LABELS])
# Setup the optionnal profiler.
profiler =... | def solve(ctx, length, height, silent, profile, **pieces) | Solve a puzzle constrained by board dimensions and pieces. | 5.211384 | 5.218207 | 0.998693 |
# Use all cores but one on multi-core CPUs.
pool_size = multiprocessing.cpu_count() - 1
if pool_size < 1:
pool_size = 1
# Start a pool of workers. Only allow 1 task per child, to force flushing
# of solver's internal caches.
pool = multiprocessing.Pool(processes=pool_size, maxtasks... | def benchmark() | Run a benchmarking suite and measure time taken by the solver.
Each scenario is run in an isolated process, and results are appended to
CSV file. | 5.015787 | 4.963458 | 1.010543 |
value = super(PositiveInt, self).convert(value, param, ctx)
if value < 0:
self.fail('%s is not positive' % value, param, ctx)
if not self.allow_zero and not value:
self.fail('%s is not greater than 0' % value, param, ctx)
return value | def convert(self, value, param, ctx) | Reuse standard integer validator but add checks on sign and zero. | 2.634992 | 2.257768 | 1.167078 |
config = ET.Element("config")
preprovision = ET.SubElement(config, "preprovision", xmlns="urn:brocade.com:mgmt:brocade-preprovision")
rbridge_id = ET.SubElement(preprovision, "rbridge-id")
wwn_key = ET.SubElement(rbridge_id, "wwn")
wwn_key.text = kwargs.pop('wwn')
... | def preprovision_rbridge_id_rbridge_id(self, **kwargs) | Auto Generated Code | 1.53179 | 1.454466 | 1.053163 |
config = ET.Element("config")
preprovision = ET.SubElement(config, "preprovision", xmlns="urn:brocade.com:mgmt:brocade-preprovision")
rbridge_id = ET.SubElement(preprovision, "rbridge-id")
rbridge_id_key = ET.SubElement(rbridge_id, "rbridge-id")
rbridge_id_key.text = kwa... | def preprovision_rbridge_id_wwn(self, **kwargs) | Auto Generated Code | 1.325155 | 1.233293 | 1.074485 |
config = ET.Element("config")
show_bare_metal_state = ET.Element("show_bare_metal_state")
config = show_bare_metal_state
output = ET.SubElement(show_bare_metal_state, "output")
bare_metal_state = ET.SubElement(output, "bare-metal-state")
bare_metal_state.text = k... | def show_bare_metal_state_output_bare_metal_state(self, **kwargs) | Auto Generated Code | 1.333803 | 1.220612 | 1.092733 |
config = ET.Element("config")
redundancy = ET.Element("redundancy")
config = redundancy
input = ET.SubElement(redundancy, "input")
rbridge_id = ET.SubElement(input, "rbridge-id")
rbridge_id.text = kwargs.pop('rbridge_id')
callback = kwargs.pop('callback'... | def redundancy_input_rbridge_id(self, **kwargs) | Auto Generated Code | 1.503941 | 1.390858 | 1.081304 |
config = ET.Element("config")
redundancy = ET.Element("redundancy")
config = redundancy
output = ET.SubElement(redundancy, "output")
rd_status = ET.SubElement(output, "rd_status")
rd_status.text = kwargs.pop('rd_status')
callback = kwargs.pop('callback',... | def redundancy_output_rd_status(self, **kwargs) | Auto Generated Code | 1.629895 | 1.446627 | 1.126687 |
config = ET.Element("config")
redundancy = ET.Element("redundancy")
config = redundancy
output = ET.SubElement(redundancy, "output")
rd_mesg = ET.SubElement(output, "rd_mesg")
rd_mesg.text = kwargs.pop('rd_mesg')
callback = kwargs.pop('callback', self._c... | def redundancy_output_rd_mesg(self, **kwargs) | Auto Generated Code | 1.64871 | 1.444069 | 1.141711 |
app.config.setdefault('EDITS_URL', '/edits')
app.config.setdefault('EDITS_PREVIEW', True)
app.config.setdefault('EDITS_SUMMERNOTE', False)
if 'EDITS_PATH' not in app.config:
raise Exception('EDITS_PATH not set in app configuration.')
if os.path.isfile(app.c... | def init_app(self, app) | Register the Jinja extension, load edits from
app.config['EDITS_PATH'] and register blueprints.
:param app:
Flask application instance | 2.423716 | 2.333076 | 1.03885 |
xmlns = 'urn:brocade.com:mgmt:brocade-arp'
get_arp_info = ET.Element('get-arp', xmlns=xmlns)
results = self._callback(get_arp_info, handler='get')
result = []
for item in results.findall('{%s}arp-entry' % xmlns):
ip_address = item.find('{%s}ip-address' % xmln... | def arp(self) | dict: trill link details | 1.79415 | 1.750731 | 1.0248 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.