query stringlengths 9 9.05k | document stringlengths 10 222k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Setter method for certificate_id, mapped from YANG variable /access_points/access_point/system/grpc_server/config/certificate_id (string) | def _set_certificate_id(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="certificate-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/... | [
"def _set_certificate_id(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name=\"certificate-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://op... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for listen_addresses, mapped from YANG variable /access_points/access_point/system/grpc_server/config/listen_addresses (union) | def _set_listen_addresses(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|... | [
"def _set_listen_addresses(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for transport_security, mapped from YANG variable /access_points/access_point/system/grpc_server/state/transport_security (boolean) | def _set_transport_security(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="transport-security", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.n... | [
"def _set_transport_security(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name=\"transport-security\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http:/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for certificate_id, mapped from YANG variable /access_points/access_point/system/grpc_server/state/certificate_id (string) | def _set_certificate_id(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="certificate-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/... | [
"def _set_certificate_id(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name=\"certificate-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://op... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for listen_addresses, mapped from YANG variable /access_points/access_point/system/grpc_server/state/listen_addresses (union) | def _set_listen_addresses(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|... | [
"def _set_listen_addresses(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_dict={'pattern': '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/grpc_server/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=s... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_enable_bfd_config, is_container='container', yang_name=\"config\", parent=self, path_helper=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/grpc_server/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self.... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_enable_bfd_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for protocol_version, mapped from YANG variable /access_points/access_point/system/ssh_server/config/protocol_version (enumeration) | def _set_protocol_version(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'V2': {}, 'V1': {},... | [
"def _set_protocol_version(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 2']}), de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for timeout, mapped from YANG variable /access_points/access_point/system/ssh_server/config/timeout (uint16) | def _set_timeout(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extme... | [
"def _set_timeout(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(\n v,\n base=RestrictedClassType(\n base_type=int, restriction_dict={\"range\": [\"0..65535\"]}, int_size=16\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for protocol_version, mapped from YANG variable /access_points/access_point/system/ssh_server/state/protocol_version (enumeration) | def _set_protocol_version(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'V2': {}, 'V1': {},... | [
"def _set_protocol_version(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 2']}), de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for timeout, mapped from YANG variable /access_points/access_point/system/ssh_server/state/timeout (uint16) | def _set_timeout(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extme... | [
"def _set_timeout(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(\n v,\n base=RestrictedClassType(\n base_type=int, restriction_dict={\"range\": [\"0..65535\"]}, int_size=16\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for rate_limit, mapped from YANG variable /access_points/access_point/system/ssh_server/state/rate_limit (uint16) | def _set_rate_limit(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="rate-limit", parent=self, path_helper=self._path_helper, extmethods=self.... | [
"def maxRate(rate):\n if rate == 'None' or rate is None:\n rate = 0\n else:\n try:\n rate = int(rate)\n except:\n return getRate()\n\n if rate < 0:\n rate = 0\n \n info('Resetting MAX_RATE to: ' + str(rate) + 'KB/s')\n \n rate = rate * 1024\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for session_limit, mapped from YANG variable /access_points/access_point/system/ssh_server/state/session_limit (uint16) | def _set_session_limit(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="session-limit", parent=self, path_helper=self._path_helper, extmethods... | [
"def ca_stc_set_max_sessions(session, slot, max_sessions):\n h_session = CK_SESSION_HANDLE(session)\n h_slot = CK_SLOT_ID(slot)\n c_max_sessions = CK_ULONG(max_sessions)\n ret = CA_STCSetMaxSessions(h_session, h_slot, c_max_sessions)\n return ret",
"def set_limits_session(\n self,\n a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/ssh_server/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_ssh_server_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=se... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/ssh_server/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_ssh_server_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for enable, mapped from YANG variable /access_points/access_point/system/telnet_server/config/enable (boolean) | def _set_enable(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="enable", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfi... | [
"def _set_enabled(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"false\"), is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for timeout, mapped from YANG variable /access_points/access_point/system/telnet_server/config/timeout (uint16) | def _set_timeout(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extme... | [
"def _set_timeout(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(\n v,\n base=RestrictedClassType(\n base_type=int, restriction_dict={\"range\": [\"0..65535\"]}, int_size=16\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for enable, mapped from YANG variable /access_points/access_point/system/telnet_server/state/enable (boolean) | def _set_enable(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="enable", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfi... | [
"def SetEnabled(self, state):\n if state:\n level = COMMAND_VALUE_ON\n else:\n level = COMMAND_VALUE_OFF\n\n try:\n self.RawWrite(COMMAND_SET_ENABLED, [level])\n except KeyboardInterrupt:\n raise\n except:\n self.Print('Failed... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for timeout, mapped from YANG variable /access_points/access_point/system/telnet_server/state/timeout (uint16) | def _set_timeout(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="timeout", parent=self, path_helper=self._path_helper, extmethods=self._extme... | [
"def _set_timeout(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(\n v,\n base=RestrictedClassType(\n base_type=int, restriction_dict={\"range\": [\"0..65535\"]}, int_size=16\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for rate_limit, mapped from YANG variable /access_points/access_point/system/telnet_server/state/rate_limit (uint16) | def _set_rate_limit(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="rate-limit", parent=self, path_helper=self._path_helper, extmethods=self.... | [
"def maxRate(rate):\n if rate == 'None' or rate is None:\n rate = 0\n else:\n try:\n rate = int(rate)\n except:\n return getRate()\n\n if rate < 0:\n rate = 0\n \n info('Resetting MAX_RATE to: ' + str(rate) + 'KB/s')\n \n rate = rate * 1024\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for session_limit, mapped from YANG variable /access_points/access_point/system/telnet_server/state/session_limit (uint16) | def _set_session_limit(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="session-limit", parent=self, path_helper=self._path_helper, extmethods... | [
"def ca_stc_set_max_sessions(session, slot, max_sessions):\n h_session = CK_SESSION_HANDLE(session)\n h_slot = CK_SLOT_ID(slot)\n c_max_sessions = CK_ULONG(max_sessions)\n ret = CA_STCSetMaxSessions(h_session, h_slot, c_max_sessions)\n return ret",
"def validate_session_timelimit(self, value):\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/telnet_server/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_telnet_server_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/telnet_server/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_telnet_server_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=sel... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for facility, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector/config/facility (identityref) | def _get_facility(self):
return self.__facility | [
"def facility_name(self):\n return self.get('facility_name', decode=True, default=None)",
"def facility(facility):\n if isinstance(facility, int):\n return facility\n elif str(facility) == facility:\n if facility not in FACILITY_NAMES:\n raise ValueError(\"Unknown facility: %... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for severity, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector/config/severity (syslogseverity) | def _set_severity(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'EMERGENCY': {}, 'ALERT': {... | [
"def severity(self, severity):\n\n if not severity:\n severity = \"info\"\n\n sev = [\"info\", \"normal\", \"warning\", \"error\", \"fatal\"]\n\n if severity in sev:\n self.__severity = severity\n else:\n raise SeverityError(f'\"{severity}\" not allowed a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for facility, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector/state/facility (identityref) | def _get_facility(self):
return self.__facility | [
"def facility_name(self):\n return self.get('facility_name', decode=True, default=None)",
"def facility(facility):\n if isinstance(facility, int):\n return facility\n elif str(facility) == facility:\n if facility not in FACILITY_NAMES:\n raise ValueError(\"Unknown facility: %... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for severity, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector/state/severity (syslogseverity) | def _set_severity(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'EMERGENCY': {}, 'ALERT': {... | [
"def _set_severity(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'EMERGENCY': {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for facility, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector/facility (leafref) | def _set_facility(self, v, load=False):
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t ... | [
"def setFacility(facility):\n if facility not in list(Cuebot.Config.get(\"cuebot.facility\").keys()):\n default = Cuebot.Config.get(\"cuebot.facility_default\")\n logger.warning(\"The facility '%s' does not exist, defaulting to %s\", facility, default)\n facility = default\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for severity, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector/severity (leafref) | def _set_severity(self, v, load=False):
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t ... | [
"def _set_severity(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'EMERGENCY': {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_logging_console_selectors_selector_config, is_container='container', yang_name="config", parent=self, path_helper=self._pa... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_logging_console_selectors_selector_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_h... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_qos__qos_interfaces_interface_input_classifiers_classifier_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for selector, mapped from YANG variable /access_points/access_point/system/logging/console/selectors/selector (list) | def _set_selector(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("facility severity",yc_selector_openconfig_access_points__access_points_access_point_system_logging_console_selectors_selector, yang_name="selector", parent=self, is_container='... | [
"def setSelector(self, selector: cern.japc.core.Selector) -> 'LsaSelectorBuilder':\n ...",
"def _getSelectorList(self):\r\n return self._selectorList",
"def _setSelectorList(self, selectorList):\r\n self._checkReadonly()\r\n self._selectorList = selectorList",
"def _select(self, se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for selectors, mapped from YANG variable /access_points/access_point/system/logging/console/selectors (container) | def _set_selectors(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_selectors_openconfig_access_points__access_points_access_point_system_logging_console_selectors, is_container='container', yang_name="selectors", parent=self, path_helper=self._path_help... | [
"def _getSelectorList(self):\r\n return self._selectorList",
"def setSelector(self, selector: cern.japc.core.Selector) -> 'LsaSelectorBuilder':\n ...",
"def query_selector_all(self):\n raise NotImplementedError()",
"def _setSelectorList(self, selectorList):\r\n self._checkReadonly(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for severity, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/selectors/selector/config/severity (syslogseverity) | def _set_severity(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'EMERGENCY': {}, 'ALERT': {... | [
"def severity(self, severity):\n\n if not severity:\n severity = \"info\"\n\n sev = [\"info\", \"normal\", \"warning\", \"error\", \"fatal\"]\n\n if severity in sev:\n self.__severity = severity\n else:\n raise SeverityError(f'\"{severity}\" not allowed a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for severity, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/selectors/selector/state/severity (syslogseverity) | def _set_severity(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'EMERGENCY': {}, 'ALERT': {... | [
"def _set_severity(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'EMERGENCY': {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for facility, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/selectors/selector/facility (leafref) | def _set_facility(self, v, load=False):
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t ... | [
"def setFacility(facility):\n if facility not in list(Cuebot.Config.get(\"cuebot.facility\").keys()):\n default = Cuebot.Config.get(\"cuebot.facility_default\")\n logger.warning(\"The facility '%s' does not exist, defaulting to %s\", facility, default)\n facility = default\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for severity, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/selectors/selector/severity (leafref) | def _set_severity(self, v, load=False):
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t ... | [
"def _set_severity(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'EMERGENCY': {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/selectors/selector/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_logging_remote_servers_remote_server_selectors_selector_config, is_container='container', yang_name="config", parent=self,... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/selectors/selector/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_logging_remote_servers_remote_server_selectors_selector_state, is_container='container', yang_name="state", parent=self, pat... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for selector, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/selectors/selector (list) | def _set_selector(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("facility severity",yc_selector_openconfig_access_points__access_points_access_point_system_logging_remote_servers_remote_server_selectors_selector, yang_name="selector", parent... | [
"def _getSelectorList(self):\r\n return self._selectorList",
"def _setSelectorList(self, selectorList):\r\n self._checkReadonly()\r\n self._selectorList = selectorList",
"def setSelector(self, selector: cern.japc.core.Selector) -> 'LsaSelectorBuilder':\n ...",
"def send_selector(se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for host, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/host (leafref) | def _set_host(self, v, load=False):
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YA... | [
"def SetHost(self, host):\n self._host = host",
"def host(self, value):\n if self._host:\n raise RuntimeError(\"HostManager already set!\")\n self._host = value",
"def _set_hostname(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_logging_remote_servers_remote_server_config, is_container='container', yang_name="config", parent=self, path_helper=self._... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_logging_remote_servers_remote_server_state, is_container='container', yang_name="state", parent=self, path_helper=self._path... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for selectors, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server/selectors (container) | def _set_selectors(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_selectors_openconfig_access_points__access_points_access_point_system_logging_remote_servers_remote_server_selectors, is_container='container', yang_name="selectors", parent=self, path_h... | [
"def _getSelectorList(self):\r\n return self._selectorList",
"def parse_select(connectome, sources, targets, method_str):\n assert isinstance(method_str, (str, list))\n if isinstance(method_str, str):\n method_str = [method_str]\n candidate_paths = []\n for entry in method_str:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for remote_server, mapped from YANG variable /access_points/access_point/system/logging/remote_servers/remote_server (list) | def _set_remote_server(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("host",yc_remote_server_openconfig_access_points__access_points_access_point_system_logging_remote_servers_remote_server, yang_name="remote-server", parent=self, is_contain... | [
"def change_remote_server(self):\n pass",
"def remote_hosts(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:\n return pulumi.get(self, \"remote_hosts\")",
"def get_remotes(self):\n remotes = set()\n for line in self._do(['remote', '-v'], as_lines=True):\n parts = line.s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for console, mapped from YANG variable /access_points/access_point/system/logging/console (container) | def _set_console(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_console_openconfig_access_points__access_points_access_point_system_logging_console, is_container='container', yang_name="console", parent=self, path_helper=self._path_helper, extmethods=s... | [
"def _set_console(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'INFO': {'value': 1}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for remote_servers, mapped from YANG variable /access_points/access_point/system/logging/remote_servers (container) | def _get_remote_servers(self):
return self.__remote_servers | [
"def remote_hosts(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:\n return pulumi.get(self, \"remote_hosts\")",
"def get_remotes(self):\n remotes = set()\n for line in self._do(['remote', '-v'], as_lines=True):\n parts = line.split('\\t')\n remotes.add(Remote(parts[0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for remote_servers, mapped from YANG variable /access_points/access_point/system/logging/remote_servers (container) | def _set_remote_servers(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_remote_servers_openconfig_access_points__access_points_access_point_system_logging_remote_servers, is_container='container', yang_name="remote-servers", parent=self, path_helper=sel... | [
"def remote_hosts(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:\n return pulumi.get(self, \"remote_hosts\")",
"def change_remote_server(self):\n pass",
"def get_remotes(self):\n remotes = set()\n for line in self._do(['remote', '-v'], as_lines=True):\n parts = line.s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for authentication_method, mapped from YANG variable /access_points/access_point/system/aaa/authentication/config/authentication_method (union) | def _set_authentication_method(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'TACACS_ALL': {'@module': 'openconfig-aaa-typ... | [
"def _get_auth_method(self, authentication_method=None):\n _logger.debug('%s', where_am_i())\n if authentication_method is None:\n auth_method = OCIUtilsConfiguration.get('auth', 'auth_method')\n else:\n auth_method = authentication_method\n\n _logger.debug('Authent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for authentication_method, mapped from YANG variable /access_points/access_point/system/aaa/authentication/state/authentication_method (union) | def _set_authentication_method(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'TACACS_ALL': {'@module': 'openconfig-aaa-typ... | [
"def _get_auth_method(self, authentication_method=None):\n _logger.debug('%s', where_am_i())\n if authentication_method is None:\n auth_method = OCIUtilsConfiguration.get('auth', 'auth_method')\n else:\n auth_method = authentication_method\n\n _logger.debug('Authent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for admin_password, mapped from YANG variable /access_points/access_point/system/aaa/authentication/admin_user/config/admin_password (string) | def _set_admin_password(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="admin-password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/... | [
"def grafana_admin_password(self):\n action = model.run_action(\n self.grafana_unit,\n \"get-admin-password\",\n raise_on_failure=True,\n )\n self._admin_pass = action.data[\"results\"][\"password\"]\n return self._admin_pass",
"def replaceAdminPw(self,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for admin_password, mapped from YANG variable /access_points/access_point/system/aaa/authentication/admin_user/state/admin_password (string) | def _set_admin_password(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="admin-password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/... | [
"def grafana_admin_password(self):\n action = model.run_action(\n self.grafana_unit,\n \"get-admin-password\",\n raise_on_failure=True,\n )\n self._admin_pass = action.data[\"results\"][\"password\"]\n return self._admin_pass",
"def _update_admin_passwo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for admin_username, mapped from YANG variable /access_points/access_point/system/aaa/authentication/admin_user/state/admin_username (string) | def _get_admin_username(self):
return self.__admin_username | [
"def admin(self) -> Optional[str]:\n return self.raw_data.get(\"admin\")",
"def requesting_admin_name(self, requesting_admin_name):\n if self.local_vars_configuration.client_side_validation and requesting_admin_name is None: # noqa: E501\n raise ValueError(\"Invalid value for `requesting... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for admin_username, mapped from YANG variable /access_points/access_point/system/aaa/authentication/admin_user/state/admin_username (string) | def _set_admin_username(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="admin-username", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/... | [
"def admin_name(self, admin_name):\n\n self._admin_name = admin_name",
"def requesting_admin_name(self, requesting_admin_name):\n if self.local_vars_configuration.client_side_validation and requesting_admin_name is None: # noqa: E501\n raise ValueError(\"Invalid value for `requesting_adm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/aaa/authentication/admin_user/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_aaa_authentication_admin_user_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_he... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/aaa/authentication/admin_user/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_aaa_authentication_admin_user_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for username, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/config/username (string) | def _set_username(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="username", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/ac... | [
"def _set_username(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name=\"username\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for password, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/config/password (string) | def _set_password(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/ac... | [
"def password(self, password):\n self._configuration.password = password",
"def change_password(self, password):\r\n self.password = password",
"def password(self, value):\n match = password_pattern(value)\n if match:\n self._password = Bcrypt().generate_password_hash(valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for ssh_key, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/config/ssh_key (string) | def _set_ssh_key(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="ssh-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/acce... | [
"def user_ssh_key(self, user_ssh_key):\n\n self._user_ssh_key = user_ssh_key",
"def upload_ssh_key(self):\n click.echo(\"Uploading key \" + self.ssh_key.name)\n self.server.addsshkey(self.ssh_key.name, self.ssh_key.public_key)",
"def get_ssh_key(self, ssh_key_id):\n return SSHKey.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for role, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/config/role (union) | def _set_role(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=[six.text_type,RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'SYSTEM_ROLE_ADMIN': {'@module': 'openconfig-aaa-types', '@namespace': 'http://openconfi... | [
"def _set_role(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name=\"role\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:ietf:params:xml:ns:yang:v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for username, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/state/username (string) | def _set_username(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="username", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/ac... | [
"def _set_username(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name=\"username\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for password, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/state/password (string) | def _set_password(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/ac... | [
"def change_password(self, password):\r\n self.password = password",
"def set_password(self, password):\n self.password_hash = generate_password_hash(password)",
"def password(self, value):\n match = password_pattern(value)\n if match:\n self._password = Bcrypt().generate_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for ssh_key, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/state/ssh_key (string) | def _set_ssh_key(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="ssh-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/acce... | [
"def user_ssh_key(self, user_ssh_key):\n\n self._user_ssh_key = user_ssh_key",
"def get_ssh_key(self, ssh_key_id):\n return SSHKey.get_object(api_token=self.token, ssh_key_id=ssh_key_id,\n mocked=self.mocked)",
"def ssh_key(self):\n # Replace extension.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for role, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/state/role (union) | def _set_role(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=[six.text_type,RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'SYSTEM_ROLE_ADMIN': {'@module': 'openconfig-aaa-types', '@namespace': 'http://openconfi... | [
"def _set_role(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name=\"role\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:ietf:params:xml:ns:yang:v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for username, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/username (leafref) | def _set_username(self, v, load=False):
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t ... | [
"def _set_username(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name=\"username\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_aaa_authentication_users_user_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_he... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_aaa_authentication_users_user_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for user, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users/user (list) | def _set_user(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("username",yc_user_openconfig_access_points__access_points_access_point_system_aaa_authentication_users_user, yang_name="user", parent=self, is_container='list', user_ordered=False,... | [
"def _add_user_to_list(self, user):\n self._user_list.append(user)",
"def modify_users(self, user_list):\n return self.user_manager.modify_objects(user_list)",
"def update_user_list():\n\n users_ = bot.client.api_call('users.list')\n users = json.loads(users_.decode('utf8'))['members']\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/aaa/authentication/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_aaa_authentication_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extme... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/aaa/authentication/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_aaa_authentication_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethod... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for admin_user, mapped from YANG variable /access_points/access_point/system/aaa/authentication/admin_user (container) | def _set_admin_user(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_admin_user_openconfig_access_points__access_points_access_point_system_aaa_authentication_admin_user, is_container='container', yang_name="admin-user", parent=self, path_helper=self._pa... | [
"def set_user_admin(self, is_admin: bool):\r\n self.is_admin = is_admin",
"def set_admin_user(self, user, password):\n\n self.user = user\n self.password = password",
"async def set_user_admin(self, userid, value):\n raise NotImplementedError()",
"def admin_name(self, admin_name):\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for users, mapped from YANG variable /access_points/access_point/system/aaa/authentication/users (container) | def _set_users(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_users_openconfig_access_points__access_points_access_point_system_aaa_authentication_users, is_container='container', yang_name="users", parent=self, path_helper=self._path_helper, extmethod... | [
"def enable_users(self, users):\r\n if self._gis.version >= [6,4]:\r\n url = \"{base}/portals/self/enableUsers\".format(base=self._portal.resturl)\r\n params = {\r\n 'f' : 'json',\r\n 'users' : None\r\n }\r\n if isinstance(users, User)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for authorization_method, mapped from YANG variable /access_points/access_point/system/aaa/authorization/config/authorization_method (union) | def _set_authorization_method(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'TACACS_ALL': {'@module': 'openconfig-aaa-type... | [
"def authorization_method(self, authorization_method):\n\n self._authorization_method = authorization_method",
"def set_authmethod(self, authmethod):\n if authmethod not in self._methods:\n raise PgHbaException(\"auth method '%s' unsupported, supported methods are: %s\" %\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for authorization_method, mapped from YANG variable /access_points/access_point/system/aaa/authorization/state/authorization_method (union) | def _set_authorization_method(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'TACACS_ALL': {'@module': 'openconfig-aaa-type... | [
"def authorization_method(self, authorization_method):\n\n self._authorization_method = authorization_method",
"def set_authmethod(self, authmethod):\n if authmethod not in self._methods:\n raise PgHbaException(\"auth method '%s' unsupported, supported methods are: %s\" %\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for event_type, mapped from YANG variable /access_points/access_point/system/aaa/authorization/events/event/config/event_type (identityref) | def _set_event_type(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'AAA_AUTHORIZATION_EVENT_COMMAND': {'@module': 'openconfig-aaa-types', '@namespace': 'http://open... | [
"def _set_type(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'ONE_RATE_TWO_COLOR': {'@module': 'openconfig-qos-types', '@namespace': 'http://openconfig... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for event_type, mapped from YANG variable /access_points/access_point/system/aaa/authorization/events/event/state/event_type (identityref) | def _set_event_type(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'AAA_AUTHORIZATION_EVENT_COMMAND': {'@module': 'openconfig-aaa-types', '@namespace': 'http://open... | [
"def rental_event_type(self, rental_event_type):\n\n self._rental_event_type = rental_event_type",
"def event_type(file):\n file.EICTree.GetEntry(0)\n return file.EICTree.event.ClassName().lstrip('erhic::Event').lower()",
"def _set_type(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for event_type, mapped from YANG variable /access_points/access_point/system/aaa/authorization/events/event/event_type (leafref) | def _set_event_type(self, v, load=False):
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
... | [
"def rental_event_type(self, rental_event_type):\n\n self._rental_event_type = rental_event_type",
"def get_event_type(event):\n event_type_resolver_module_str = htk_setting('HTK_SLACK_EVENT_TYPE_RESOLVER')\n from htk.utils.general import resolve_method_dynamically\n event_type_resolver = resolve_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/aaa/authorization/events/event/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_aaa_authorization_events_event_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_h... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/aaa/authorization/events/event/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_aaa_authorization_events_event_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helpe... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for event, mapped from YANG variable /access_points/access_point/system/aaa/authorization/events/event (list) | def _set_event(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("event_type",yc_event_openconfig_access_points__access_points_access_point_system_aaa_authorization_events_event, yang_name="event", parent=self, is_container='list', user_ordered=... | [
"def list_event(self, **kwargs):\n\n all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n all_params.append('callback')\n\n params = locals()\n for key, val in iteritems(params['kwargs']):\n if key not in all_params:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/aaa/authorization/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_aaa_authorization_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmet... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/aaa/authorization/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_aaa_authorization_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for events, mapped from YANG variable /access_points/access_point/system/aaa/authorization/events (container) | def _set_events(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_events_openconfig_access_points__access_points_access_point_system_aaa_authorization_events, is_container='container', yang_name="events", parent=self, path_helper=self._path_helper, extmet... | [
"def _set_events(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"events\", rest_name=\"events\", parent=self, path_helper=self._path... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for accounting_method, mapped from YANG variable /access_points/access_point/system/aaa/accounting/config/accounting_method (union) | def _set_accounting_method(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'TACACS_ALL': {'@module': 'openconfig-aaa-types',... | [
"def accounting_method(self, accounting_method):\n allowed_values = [\"accrual\", \"cash\"] # noqa: E501\n if (self._configuration.client_side_validation and\n accounting_method not in allowed_values):\n raise ValueError(\n \"Invalid value for `accounting_meth... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for accounting_method, mapped from YANG variable /access_points/access_point/system/aaa/accounting/state/accounting_method (union) | def _set_accounting_method(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,unique=True, base=TypedListType(allowed_type=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'TACACS_ALL': {'@module': 'openconfig-aaa-types',... | [
"def accounting_method(self, accounting_method):\n allowed_values = [\"accrual\", \"cash\"] # noqa: E501\n if (self._configuration.client_side_validation and\n accounting_method not in allowed_values):\n raise ValueError(\n \"Invalid value for `accounting_meth... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for record, mapped from YANG variable /access_points/access_point/system/aaa/accounting/events/event/config/record (enumeration) | def _set_record(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'START_STOP': {}, 'STOP': {}}... | [
"def setRecord( self, record ):\n self._record = record\n self.updateRecordValues()",
"def set_record(self, record):\r\n record = int(record)\r\n now = datetime.datetime.utcnow()\r\n self.obs.writecount = 0\r\n strnow = now.isoformat()\r\n parts = strnow.split('.')... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for record, mapped from YANG variable /access_points/access_point/system/aaa/accounting/events/event/state/record (enumeration) | def _set_record(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'START_STOP': {}, 'STOP': {}}... | [
"def record_states(self, record_states):\n allowed_values = [1, 2, 3, 4, 5] # noqa: E501\n if not set(record_states).issubset(set(allowed_values)):\n raise ValueError(\n \"Invalid values for `record_states` [{0}], must be a subset of [{1}]\" # noqa: E501\n .f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for event_type, mapped from YANG variable /access_points/access_point/system/aaa/accounting/events/event/event_type (leafref) | def _set_event_type(self, v, load=False):
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
... | [
"def rental_event_type(self, rental_event_type):\n\n self._rental_event_type = rental_event_type",
"def event_type(file):\n file.EICTree.GetEntry(0)\n return file.EICTree.event.ClassName().lstrip('erhic::Event').lower()",
"def _set_type(self, v, load=False):\n parent = getattr(self, \"_parent\",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/aaa/accounting/events/event/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_aaa_accounting_events_event_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_help... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/aaa/accounting/events/event/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_aaa_accounting_events_event_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, ... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for event, mapped from YANG variable /access_points/access_point/system/aaa/accounting/events/event (list) | def _set_event(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("event_type",yc_event_openconfig_access_points__access_points_access_point_system_aaa_accounting_events_event, yang_name="event", parent=self, is_container='list', user_ordered=Fal... | [
"def list_event(self, **kwargs):\n\n all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n all_params.append('callback')\n\n params = locals()\n for key, val in iteritems(params['kwargs']):\n if key not in all_params:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/aaa/accounting/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_aaa_accounting_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethod... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/aaa/accounting/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_aaa_accounting_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=se... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for events, mapped from YANG variable /access_points/access_point/system/aaa/accounting/events (container) | def _set_events(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_events_openconfig_access_points__access_points_access_point_system_aaa_accounting_events, is_container='container', yang_name="events", parent=self, path_helper=self._path_helper, extmethod... | [
"def modify_events(self, events):\n\n raise NotImplementedError # pragma: no cover",
"def _set_events(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for name, mapped from YANG variable /access_points/access_point/system/aaa/server_groups/server_group/config/name (string) | def _set_name(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-poi... | [
"def set_cluster_name(self, name: str):\n endpoint = self.build_url(\"/cluster-name\")\n return self.request('put', endpoint, data=dict(name=name))",
"def _set_name(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=six.text_type, is... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for config, mapped from YANG variable /access_points/access_point/system/aaa/server_groups/server_group/servers/server/tacacs/config (container) | def _set_config(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_aaa_server_groups_server_group_servers_server_tacacs_config, is_container='container', yang_name="config", parent=self, pa... | [
"def _set_config(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_config_openconfig_access_points__access_points_access_point_system_grpc_server_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for state, mapped from YANG variable /access_points/access_point/system/aaa/server_groups/server_group/servers/server/tacacs/state (container) | def _set_state(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_aaa_server_groups_server_group_servers_server_tacacs_state, is_container='container', yang_name="state", parent=self, path_h... | [
"def _set_state(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_state_openconfig_access_points__access_points_access_point_system_grpc_server_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, ext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for retransmit_attempts, mapped from YANG variable /access_points/access_point/system/aaa/server_groups/server_group/servers/server/radius/config/retransmit_attempts (uint8) | def _set_retransmit_attempts(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="retransmit-attempts", parent=self, path_helper=self._path_helper, ... | [
"def set_retry_times(self, num):\n self._resend_times = num",
"def RetransmitTimeout(self):\n if self.force_auto_sync:\n self.get('RetransmitTimeout')\n return self._RetransmitTimeout",
"def get_pin_attempts(self) -> int:\n logger.debug(\"Getting PIN attempts\")\n t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for retransmit_attempts, mapped from YANG variable /access_points/access_point/system/aaa/server_groups/server_group/servers/server/radius/state/retransmit_attempts (uint8) | def _set_retransmit_attempts(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="retransmit-attempts", parent=self, path_helper=self._path_helper, ... | [
"def set_retry_times(self, num):\n self._resend_times = num",
"def get_pin_attempts(self) -> int:\n logger.debug(\"Getting PIN attempts\")\n try:\n return self.get_pin_metadata().attempts_remaining\n except NotSupportedError:\n try:\n self.protocol.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for counters, mapped from YANG variable /access_points/access_point/system/aaa/server_groups/server_group/servers/server/radius/state/counters (container) | def _set_counters(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_counters_openconfig_access_points__access_points_access_point_system_aaa_server_groups_server_group_servers_server_radius_state_counters, is_container='container', yang_name="counters", p... | [
"def _set_counters(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_counters_openconfig_wifi_mac__ssids_ssid_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmetho... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |